zek 14.2.79 → 14.2.89
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/esm2020/lib/modules/file-viewer/file-viewer.mjs +51 -0
- package/esm2020/lib/modules/file-viewer/index.mjs +3 -3
- package/esm2020/lib/modules/file-viewer/module.mjs +30 -0
- package/esm2020/lib/utils/validation-helper.mjs +3 -3
- package/fesm2015/zek.mjs +12 -12
- package/fesm2015/zek.mjs.map +1 -1
- package/fesm2020/zek.mjs +12 -12
- package/fesm2020/zek.mjs.map +1 -1
- package/lib/modules/file-viewer/file-viewer.d.ts +10 -0
- package/lib/modules/file-viewer/index.d.ts +2 -2
- package/lib/modules/file-viewer/{file-viewer.module.d.ts → module.d.ts} +2 -2
- package/package.json +1 -1
- package/esm2020/lib/modules/file-viewer/file-viewer.component.mjs +0 -51
- package/esm2020/lib/modules/file-viewer/file-viewer.module.mjs +0 -30
- package/lib/modules/file-viewer/file-viewer.component.d.ts +0 -10
package/fesm2020/zek.mjs
CHANGED
|
@@ -1115,13 +1115,13 @@ class UrlHelper {
|
|
|
1115
1115
|
|
|
1116
1116
|
class ValidationHelper {
|
|
1117
1117
|
static isValidEmail(email) {
|
|
1118
|
-
if (
|
|
1118
|
+
if (typeof email === 'undefined' || email == null || ((typeof email === 'string') && email.length === 0)) {
|
|
1119
1119
|
return false;
|
|
1120
1120
|
}
|
|
1121
1121
|
return this.emailRegExp.test(email);
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
|
-
ValidationHelper.emailRegExp = /^((
|
|
1124
|
+
ValidationHelper.emailRegExp = /^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
|
|
1125
1125
|
|
|
1126
1126
|
class AuthService {
|
|
1127
1127
|
constructor() {
|
|
@@ -4173,7 +4173,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
|
4173
4173
|
args: [{ name: 'safe' }]
|
|
4174
4174
|
}], ctorParameters: function () { return [{ type: i1$4.DomSanitizer }]; } });
|
|
4175
4175
|
|
|
4176
|
-
class
|
|
4176
|
+
class ZekFileViewer extends CoreComponent {
|
|
4177
4177
|
show(url, extension) {
|
|
4178
4178
|
let ext = extension || FileHelper.getExtension(url);
|
|
4179
4179
|
switch (ext) {
|
|
@@ -4207,11 +4207,11 @@ class FileViewerComponent extends CoreComponent {
|
|
|
4207
4207
|
}
|
|
4208
4208
|
}
|
|
4209
4209
|
}
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type:
|
|
4210
|
+
ZekFileViewer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ZekFileViewer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4211
|
+
ZekFileViewer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: ZekFileViewer, selector: "zek-file-viewer", providers: [], viewQueries: [{ propertyName: "viewModal", first: true, predicate: ["viewModal"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<zek-modal #viewModal [fullscreen]=\"true\" [showHeader]=\"true\" [showFooter]=\"false\">\r\n <ng-container *ngIf=\"src\">\r\n <iframe id=\"office\" width=\"100%\" height=\"99%\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\" scrolling=\"no\" allowfullscreen=\"allowfullscreen\"\r\n [src]=\"src | safe:'resourceUrl'\">\r\n </iframe>\r\n </ng-container>\r\n</zek-modal>", dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ModalComponent, selector: "zek-modal", inputs: ["model", "showOk", "disabledOk", "showCancel", "autoHide", "title", "text", "icon", "okButtonText", "componentType", "large", "xl", "scrollable", "fullscreen", "showHeader", "showFooter"], outputs: ["onShown", "onHidden", "onOk", "onValidating"] }, { kind: "pipe", type: SafePipe, name: "safe" }] });
|
|
4212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ZekFileViewer, decorators: [{
|
|
4213
4213
|
type: Component,
|
|
4214
|
-
args: [{ selector: '
|
|
4214
|
+
args: [{ selector: 'zek-file-viewer', providers: [], template: "<zek-modal #viewModal [fullscreen]=\"true\" [showHeader]=\"true\" [showFooter]=\"false\">\r\n <ng-container *ngIf=\"src\">\r\n <iframe id=\"office\" width=\"100%\" height=\"99%\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\" scrolling=\"no\" allowfullscreen=\"allowfullscreen\"\r\n [src]=\"src | safe:'resourceUrl'\">\r\n </iframe>\r\n </ng-container>\r\n</zek-modal>" }]
|
|
4215
4215
|
}], propDecorators: { viewModal: [{
|
|
4216
4216
|
type: ViewChild,
|
|
4217
4217
|
args: ['viewModal', { static: true }]
|
|
@@ -4333,9 +4333,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
|
4333
4333
|
class FileViewerModule {
|
|
4334
4334
|
}
|
|
4335
4335
|
FileViewerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FileViewerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4336
|
-
FileViewerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: FileViewerModule, declarations: [
|
|
4336
|
+
FileViewerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: FileViewerModule, declarations: [ZekFileViewer], imports: [CommonModule,
|
|
4337
4337
|
ModalModule,
|
|
4338
|
-
SafeModule], exports: [
|
|
4338
|
+
SafeModule], exports: [ZekFileViewer] });
|
|
4339
4339
|
FileViewerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FileViewerModule, imports: [CommonModule,
|
|
4340
4340
|
ModalModule,
|
|
4341
4341
|
SafeModule] });
|
|
@@ -4348,9 +4348,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
|
4348
4348
|
SafeModule
|
|
4349
4349
|
],
|
|
4350
4350
|
declarations: [
|
|
4351
|
-
|
|
4351
|
+
ZekFileViewer
|
|
4352
4352
|
],
|
|
4353
|
-
exports: [
|
|
4353
|
+
exports: [ZekFileViewer]
|
|
4354
4354
|
}]
|
|
4355
4355
|
}] });
|
|
4356
4356
|
|
|
@@ -6625,5 +6625,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
|
6625
6625
|
* Generated bundle index. Do not edit.
|
|
6626
6626
|
*/
|
|
6627
6627
|
|
|
6628
|
-
export { API_BASE_URL, AgeModule, AgePipe, Alert, AlertModule, AlertService, AlertType, AppBaseModule, ApproveModalComponent, ArrayHelper, AuthGuardService, AuthService, AutoCompleteDirective, AutoCompleteModule, Base64Helper, BaseAlert, BaseComponent, BaseService, BitwiseHelper, BootstrapHelper, ButtonBrowseComponent, ButtonBrowseModalBaseComponent, ButtonBrowseModalToolbarComponent, ButtonBrowseModule, CallbackModule, CallbackPipe, CardComponent, CardModule, Color, ComponentType, Convert, CoreComponent, CoreUiComponent, CrudService, CssHelper, CustomHttpParamEncoder, DATE_FORMAT, DateAgoModule, DateAgoPipe, DateHelper, DateValueAccessor, DatepickerModule, DeleteModalComponent, DisapproveModalComponent, EditBase, EditBaseComponent, EditComponent, EditFormComponent, EditToolbarComponent, EditToolbarModule, FileBase, FileBytes, FileHelper, FileModule, FileSizePipe, FileString,
|
|
6628
|
+
export { API_BASE_URL, AgeModule, AgePipe, Alert, AlertModule, AlertService, AlertType, AppBaseModule, ApproveModalComponent, ArrayHelper, AuthGuardService, AuthService, AutoCompleteDirective, AutoCompleteModule, Base64Helper, BaseAlert, BaseComponent, BaseService, BitwiseHelper, BootstrapHelper, ButtonBrowseComponent, ButtonBrowseModalBaseComponent, ButtonBrowseModalToolbarComponent, ButtonBrowseModule, CallbackModule, CallbackPipe, CardComponent, CardModule, Color, ComponentType, Convert, CoreComponent, CoreUiComponent, CrudService, CssHelper, CustomHttpParamEncoder, DATE_FORMAT, DateAgoModule, DateAgoPipe, DateHelper, DateValueAccessor, DatepickerModule, DeleteModalComponent, DisapproveModalComponent, EditBase, EditBaseComponent, EditComponent, EditFormComponent, EditToolbarComponent, EditToolbarModule, FileBase, FileBytes, FileHelper, FileModule, FileSizePipe, FileString, FileViewerModule, FilterBase, FilterHelper, FilterModalComponent, Gender, GridToolbarBarComponent, GridToolbarComponent, GridToolbarModule, HtmlHelper, HttpErrorHandler, KeyPair, KeyPairChecked, KeyPairEx, KeyPairRequired, LANGUAGE, ListBase, ListBaseComponent, ListToolbarComponent, ListToolbarModule, LoadingComponent, LoadingModule, MathHelper, ModalComponent, ModalModule, Month, ObjectHelper, OverlapHelper, PageTitleComponent, PageTitleModule, PagedList, PagedListBase, Pager, PagerBase, PagerComponent, PagerHelper, PagerModule, PasswordComponent, PasswordModule, PeriodRelation, PrintType, ProgressModule, RECAPTCHA_SITE_KEY, RadioComponent, RadioModule, RandomHelper, RangeValidator, ReCaptchaService, ReadOnlyDirective, ReadOnlyModule, RecaptchaModule, RestoreModalComponent, SafeModule, SafePipe, Select2Component, Select2Module, Select2MultipleComponent, Select2MultipleModule, SortButtonGroupComponent, SortDirective, SortModule, StorageHelper, StringHelper, SubmitModalComponent, SumComponent, TimeHelper, TimeModule, TimePipe, TimerService, Toast, Tree, UrlHelper, ValidEventArgs, ValidationHelper, ValidatorModule, Validators, ValidatorsModule, WebApiClient, WebApiModule, WizardComponent, WizardComponent2, WizardModule, ZekAlert, ZekFieldValidator, ZekFileViewer, ZekProgress, ZekSelectModule, ZekSelectMultiple, ZekToast, ZekValidation, firstBy, handler, nullValidator, rangeValidator };
|
|
6629
6629
|
//# sourceMappingURL=zek.mjs.map
|