cty-mui-angular 1.0.1 → 1.0.3

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.
@@ -3,11 +3,11 @@ import * as i0 from '@angular/core';
3
3
  import { Component, ChangeDetectionStrategy, Injectable, APP_INITIALIZER, NgZone, NgModule } from '@angular/core';
4
4
  import { fromEvent } from 'rxjs';
5
5
  import * as i1 from 'cty-mui-angular/common';
6
- import { OverlayBaseController, ConfigToken } from 'cty-mui-angular/common';
6
+ import { OverlayBaseController, ConfigToken, TemplateRefDirective } from 'cty-mui-angular/common';
7
7
  export { AudioRecorderService, Config, DeviceInfoService, ImagePickerService, KeyboardService, MediaDownloaderService, NetworkService, PaymentService, ScreenOrientationService, ShareService, StatusBarService, UtilsService, VideoCaptureService, VolumeControlService, WechatService } from 'cty-mui-angular/common';
8
8
  import { alertController, actionSheetController, loadingController, cameraPhotoController, cascaderController, recordController, shareSheetController, tutorialController, overlayController, setupConfig } from 'cty-mui-core';
9
9
  export { CTYCityData, DownloadMediaType, Easing, ImagePickerType, MediaSourceType, ModalFade, ModalRotate, ModalSlide, ModalZoom, ShareContentType, SharePlatformType, SlidePosition, UploadProgressTip, WechatMiniProgramType, WechatShareScene, addDays, addHours, addMinutes, addMonths, addSeconds, addYears, camelToKebab, checkScrollEnd, clamp, clipboard, closest, convertDate, convertNumber, convertTimeZone, deepClone, diff, fileSize, formatDate, formatDateTime, fromBase64, getElementRect, getEventClientCoords, getEventPageCoords, getFormatForDatePicker, getFormatForDateTimePicker, getTimeZone, getUTCDate, getUTCDateTime, getValueByKey, identityCodeValid, isDef, isEmail, isEmptyArray, isEmptyObject, isHttp, isJSONObject, isMobileNo, isPrimitive, isPromise, isRealNameForm, isValidDate, kebabToCamel, localDelete, localGet, localSave, mergeObj, numberToChinese, numberToLetter, numericName, pad, parseArray, parseJson, percent, price, randomNum, scrollElementBottom, scrollElementTop, scrollToPoint, secondsToVehicle, sessionDelete, sessionGet, sessionSave, toBase64 } from 'cty-mui-core';
10
- import { actionSheetController as actionSheetController$1, alertController as alertController$1, loadingController as loadingController$1, modalController, pickerController, popoverController, toastController } from '@ionic/core';
10
+ import { actionSheetController as actionSheetController$1, alertController as alertController$1, loadingController as loadingController$1, pickerController, toastController } from '@ionic/core';
11
11
  import { DOCUMENT, CommonModule } from '@angular/common';
12
12
  import { applyPolyfills, defineCustomElements } from 'cty-mui-core/loader';
13
13
 
@@ -220,7 +220,7 @@ let CtyAudio = class CtyAudio {
220
220
  CtyAudio = __decorate([
221
221
  ProxyCmp({
222
222
  inputs: ['allowBackward', 'allowForward', 'autoplay', 'cycleRate', 'initialTime', 'playCtrl', 'rate', 'rateVisible', 'rates', 'trafficMsg', 'unAllowForwardMsg', 'unAllowRateMsg', 'url'],
223
- methods: ['switchAudio', 'play', 'pause', 'setPlayRate', 'getAudioElement']
223
+ methods: ['updatePlayedTime', 'switchAudio', 'play', 'pause', 'setPlayRate', 'getAudioElement']
224
224
  })
225
225
  ], CtyAudio);
226
226
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CtyAudio, decorators: [{
@@ -1311,7 +1311,7 @@ let CtyVideo = class CtyVideo {
1311
1311
  CtyVideo = __decorate([
1312
1312
  ProxyCmp({
1313
1313
  inputs: ['allowBackward', 'allowForward', 'autoplay', 'controls', 'defaultFullscreen', 'directRate', 'direction', 'errorMsg', 'exitFullscreenIcon', 'footerCtrl', 'fullscreenIcon', 'fullscreenOnly', 'headerCtrl', 'interactiveActions', 'landscapeEnterTimer', 'landscapeLeaveTimer', 'loading', 'loadingImg', 'markers', 'orientation', 'player', 'poster', 'preload', 'progressPosition', 'rate', 'rates', 'startTime', 'title', 'togglePlayTimer', 'trafficAutoplay', 'trafficMsg', 'unAllowForwardMsg', 'unAllowRateMsg', 'updateNow', 'url'],
1314
- methods: ['play', 'setCtrlShow', 'pause', 'setVideoCurrentTime', 'toggleVideo', 'toggleVolume', 'setPlayRate', 'getVideoElement']
1314
+ methods: ['play', 'setCtrlShow', 'pause', 'setVideoCurrentTime', 'clearCtrlTimeout', 'setWarningMsg', 'toggleVideo', 'toggleVolume', 'setPlayRate', 'getVideoElement', 'getVideoState']
1315
1315
  })
1316
1316
  ], CtyVideo);
1317
1317
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CtyVideo, decorators: [{
@@ -1508,28 +1508,11 @@ class CtyController {
1508
1508
  await loading.present();
1509
1509
  return loading;
1510
1510
  }
1511
- async Modal(opt) {
1512
- const modal = await modalController.create({
1513
- showBackdrop: false,
1514
- keyboardClose: false,
1515
- ...opt
1516
- });
1517
- await modal.present();
1518
- return modal;
1519
- }
1520
1511
  async Picker(opt) {
1521
1512
  const picker = await pickerController.create(opt);
1522
1513
  await picker.present();
1523
1514
  return picker;
1524
1515
  }
1525
- async Popover(e, opt) {
1526
- const popover = await popoverController.create({
1527
- event: e,
1528
- ...opt
1529
- });
1530
- await popover.present();
1531
- return popover;
1532
- }
1533
1516
  async Toast(opt) {
1534
1517
  const options = {
1535
1518
  ...this.config.get('toastCfg', {})
@@ -1663,9 +1646,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1663
1646
  }]
1664
1647
  }] });
1665
1648
 
1649
+ class DirectiveModule {
1650
+ /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1651
+ /** @nocollapse */ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DirectiveModule, imports: [CommonModule,
1652
+ TemplateRefDirective], exports: [TemplateRefDirective] });
1653
+ /** @nocollapse */ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DirectiveModule, imports: [CommonModule] });
1654
+ }
1655
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DirectiveModule, decorators: [{
1656
+ type: NgModule,
1657
+ args: [{
1658
+ imports: [
1659
+ CommonModule,
1660
+ TemplateRefDirective
1661
+ ],
1662
+ exports: [TemplateRefDirective]
1663
+ }]
1664
+ }] });
1665
+
1666
1666
  /**
1667
1667
  * Generated bundle index. Do not edit.
1668
1668
  */
1669
1669
 
1670
- export { CtyActionSheet, CtyActionSheetController, CtyAgree, CtyAlert, CtyAlertController, CtyAnswerSheet, CtyArticleCard, CtyAudio, CtyBanner, CtyCameraPhoto, CtyCameraPhotoController, CtyCanvasBoard, CtyCanvasVideo, CtyCascader, CtyCascaderController, CtyCircle, CtyController, CtyCountDown, CtyCropImage, CtyDivider, CtyEmpty, CtyFloatingBubble, CtyFloatingPanel, CtyIcon, CtyImageUpload, CtyImageViewer, CtyIndexBar, CtyKeyboard, CtyLoading, CtyLoadingController, CtyMUIModule, CtyMediaCapture, CtyNavBar, CtyNoticeBar, CtyOverlay, CtyOverlayController, CtyPdfViewer, CtyPermissionPurpose, CtyProgress, CtyQuickAccess, CtyRate, CtyRecord, CtyRecordController, CtySegmentSlides, CtyShareSheet, CtyShareSheetController, CtyStep, CtyStepper, CtySteps, CtySwipe, CtySwipeItem, CtySwiper, CtyTextEllipsis, CtyTour, CtyTutorial, CtyTutorialController, CtyVideo, CtyVirtualList };
1670
+ export { CtyActionSheet, CtyActionSheetController, CtyAgree, CtyAlert, CtyAlertController, CtyAnswerSheet, CtyArticleCard, CtyAudio, CtyBanner, CtyCameraPhoto, CtyCameraPhotoController, CtyCanvasBoard, CtyCanvasVideo, CtyCascader, CtyCascaderController, CtyCircle, CtyController, CtyCountDown, CtyCropImage, CtyDivider, CtyEmpty, CtyFloatingBubble, CtyFloatingPanel, CtyIcon, CtyImageUpload, CtyImageViewer, CtyIndexBar, CtyKeyboard, CtyLoading, CtyLoadingController, CtyMUIModule, CtyMediaCapture, CtyNavBar, CtyNoticeBar, CtyOverlay, CtyOverlayController, CtyPdfViewer, CtyPermissionPurpose, CtyProgress, CtyQuickAccess, CtyRate, CtyRecord, CtyRecordController, CtySegmentSlides, CtyShareSheet, CtyShareSheetController, CtyStep, CtyStepper, CtySteps, CtySwipe, CtySwipeItem, CtySwiper, CtyTextEllipsis, CtyTour, CtyTutorial, CtyTutorialController, CtyVideo, CtyVirtualList, DirectiveModule };
1671
1671
  //# sourceMappingURL=cty-mui-angular.mjs.map