@ionic/angular 8.8.9-dev.11781013468.1ed93da9 → 8.8.9-dev.11781098612.122c6758
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/fesm2022/ionic-angular-common.mjs +58 -56
- package/fesm2022/ionic-angular-common.mjs.map +1 -1
- package/fesm2022/ionic-angular-standalone.mjs +303 -306
- package/fesm2022/ionic-angular-standalone.mjs.map +1 -1
- package/fesm2022/ionic-angular.mjs +353 -339
- package/fesm2022/ionic-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/schematics/add/index.js +1 -1
- package/schematics/utils/ast.js +34 -1
- package/schematics/utils/package.js +4 -0
- package/types/ionic-angular-common.d.ts +8 -0
- package/types/ionic-angular.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ionic/angular",
|
|
3
|
-
"version": "8.8.9-dev.
|
|
3
|
+
"version": "8.8.9-dev.11781098612.122c6758",
|
|
4
4
|
"description": "Angular specific wrappers for @ionic/core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ionic",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@ionic/core": "8.8.9-dev.
|
|
47
|
+
"@ionic/core": "8.8.9-dev.11781098612.122c6758",
|
|
48
48
|
"ionicons": "^8.0.13",
|
|
49
49
|
"jsonc-parser": "^3.0.0",
|
|
50
50
|
"tslib": "^2.3.0"
|
package/schematics/add/index.js
CHANGED
|
@@ -163,7 +163,7 @@ function ngAdd(options) {
|
|
|
163
163
|
options.project = (0, config_1.getDefaultAngularAppName)(workspace);
|
|
164
164
|
}
|
|
165
165
|
const project = workspace.projects.get(options.project);
|
|
166
|
-
if (
|
|
166
|
+
if ((project === null || project === void 0 ? void 0 : project.extensions.projectType) !== 'application') {
|
|
167
167
|
throw new schematics_1.SchematicsException(`Ionic Add requires a project type of "application".`);
|
|
168
168
|
}
|
|
169
169
|
const sourcePath = (0, core_1.join)(project.sourceRoot);
|
package/schematics/utils/ast.js
CHANGED
|
@@ -1,10 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
36
|
exports.addIonicModuleImportToNgModule = addIonicModuleImportToNgModule;
|
|
4
37
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
38
|
const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
|
|
6
39
|
const change_1 = require("@schematics/angular/utility/change");
|
|
7
|
-
const ts = require("typescript");
|
|
40
|
+
const ts = __importStar(require("typescript"));
|
|
8
41
|
/**
|
|
9
42
|
* Reads file given path and returns TypeScript source file.
|
|
10
43
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addPackageToPackageJson = addPackageToPackageJson;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
5
|
/**
|
|
5
6
|
* Adds a package to the package.json
|
|
6
7
|
*/
|
|
@@ -8,6 +9,9 @@ function addPackageToPackageJson(host, type, pkg, version) {
|
|
|
8
9
|
var _a;
|
|
9
10
|
if (host.exists('package.json')) {
|
|
10
11
|
const sourceText = (_a = host.read('package.json')) === null || _a === void 0 ? void 0 : _a.toString('utf-8');
|
|
12
|
+
if (sourceText === undefined) {
|
|
13
|
+
throw new schematics_1.SchematicsException('Could not read package.json');
|
|
14
|
+
}
|
|
11
15
|
const json = JSON.parse(sourceText);
|
|
12
16
|
if (!json[type]) {
|
|
13
17
|
json[type] = {};
|
|
@@ -910,6 +910,14 @@ declare abstract class IonTabs implements AfterViewInit, AfterContentInit, After
|
|
|
910
910
|
* @internal
|
|
911
911
|
*/
|
|
912
912
|
onStackDidChange({ enteringView, tabSwitch }: StackDidChangeEvent): void;
|
|
913
|
+
/**
|
|
914
|
+
* Host listener for the `ionTabButtonClick` event. Angular 22 enabled stricter
|
|
915
|
+
* host-binding type checking, which types `$event` as the DOM `Event`. That is
|
|
916
|
+
* not assignable to `select`'s public `string | CustomEvent` parameter, so this
|
|
917
|
+
* thin wrapper narrows the event before forwarding to keep `select`'s public
|
|
918
|
+
* signature intact.
|
|
919
|
+
*/
|
|
920
|
+
onTabButtonClick(ev: Event): Promise<boolean> | undefined;
|
|
913
921
|
/**
|
|
914
922
|
* When a tab button is clicked, there are several scenarios:
|
|
915
923
|
* 1. If the selected tab is currently active (the tab button has been clicked
|
package/types/ionic-angular.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { MaxValidator, MinValidator } from '@angular/forms';
|
|
|
12
12
|
declare class BooleanValueAccessorDirective extends ValueAccessor {
|
|
13
13
|
constructor(injector: Injector, el: ElementRef);
|
|
14
14
|
writeValue(value: boolean): void;
|
|
15
|
-
_handleIonChange(
|
|
15
|
+
_handleIonChange(ev: Event): void;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanValueAccessorDirective, never>;
|
|
17
17
|
static ɵdir: i0.ɵɵDirectiveDeclaration<BooleanValueAccessorDirective, "ion-checkbox,ion-toggle", never, {}, {}, never, never, false, never>;
|
|
18
18
|
}
|
|
@@ -20,7 +20,7 @@ declare class BooleanValueAccessorDirective extends ValueAccessor {
|
|
|
20
20
|
declare class NumericValueAccessorDirective extends ValueAccessor {
|
|
21
21
|
private el;
|
|
22
22
|
constructor(injector: Injector, el: ElementRef<HTMLInputElement | HTMLIonRangeElement>);
|
|
23
|
-
handleInputEvent(
|
|
23
|
+
handleInputEvent(ev: Event): void;
|
|
24
24
|
registerOnChange(fn: (_: number | null) => void): void;
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumericValueAccessorDirective, never>;
|
|
26
26
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NumericValueAccessorDirective, "ion-input[type=number],ion-input-otp:not([type=text]),ion-range", never, {}, {}, never, never, false, never>;
|
|
@@ -28,14 +28,14 @@ declare class NumericValueAccessorDirective extends ValueAccessor {
|
|
|
28
28
|
|
|
29
29
|
declare class SelectValueAccessorDirective extends ValueAccessor {
|
|
30
30
|
constructor(injector: Injector, el: ElementRef);
|
|
31
|
-
_handleChangeEvent(
|
|
31
|
+
_handleChangeEvent(ev: Event): void;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectValueAccessorDirective, never>;
|
|
33
33
|
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectValueAccessorDirective, "ion-select, ion-radio-group, ion-segment, ion-datetime", never, {}, {}, never, never, false, never>;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
declare class TextValueAccessorDirective extends ValueAccessor {
|
|
37
37
|
constructor(injector: Injector, el: ElementRef);
|
|
38
|
-
_handleInputEvent(
|
|
38
|
+
_handleInputEvent(ev: Event): void;
|
|
39
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextValueAccessorDirective, never>;
|
|
40
40
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TextValueAccessorDirective, "ion-input:not([type=number]),ion-input-otp[type=text],ion-textarea,ion-searchbar", never, {}, {}, never, never, false, never>;
|
|
41
41
|
}
|