cty-mui-angular 1.0.0 → 1.0.2
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/common/directives/template-ref.d.ts +9 -0
- package/common/index.d.ts +1 -0
- package/directive.module.d.ts +8 -0
- package/esm2022/common/directives/template-ref.mjs +21 -0
- package/esm2022/common/index.mjs +2 -1
- package/esm2022/directive.module.mjs +21 -0
- package/esm2022/index.mjs +2 -1
- package/esm2022/providers/ionic-controller.mjs +2 -19
- package/esm2022/standalone/index.mjs +2 -2
- package/esm2022/standalone/providers/ionic-controller.mjs +1 -1
- package/fesm2022/cty-mui-angular-common.mjs +21 -2
- package/fesm2022/cty-mui-angular-common.mjs.map +1 -1
- package/fesm2022/cty-mui-angular-standalone.mjs +1 -1
- package/fesm2022/cty-mui-angular-standalone.mjs.map +1 -1
- package/fesm2022/cty-mui-angular.mjs +20 -20
- package/fesm2022/cty-mui-angular.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +3 -2
- package/providers/ionic-controller.d.ts +2 -4
- package/standalone/index.d.ts +1 -1
- package/standalone/providers/ionic-controller.d.ts +1 -1
|
@@ -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,
|
|
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
|
|
|
@@ -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
|