@ionic/angular 7.5.3-dev.11698436643.117def41 → 7.5.3-dev.11698693746.12de705e

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.
@@ -1,6 +1,6 @@
1
1
  import { __decorate } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { Directive, Attribute, Optional, SkipSelf, Component, ChangeDetectionStrategy, ViewChild, ContentChild, ContentChildren, APP_INITIALIZER, Injectable, HostListener } from '@angular/core';
3
+ import { Directive, Attribute, Optional, SkipSelf, Component, ChangeDetectionStrategy, ViewChild, ContentChild, ContentChildren, APP_INITIALIZER, Injectable, forwardRef, HostListener } from '@angular/core';
4
4
  import * as i2$1 from '@ionic/angular/common';
5
5
  import { IonRouterOutlet as IonRouterOutlet$1, ProxyCmp as ProxyCmp$1, IonBackButton as IonBackButton$1, IonModal as IonModal$1, IonPopover as IonPopover$1, RouterLinkDelegateDirective, RouterLinkWithHrefDelegateDirective, IonTabs as IonTabs$1, ConfigToken, provideComponentInputBinding, AngularDelegate, ModalController, PopoverController, MenuController as MenuController$1, IonNav as IonNav$1, ValueAccessor, setIonicClasses } from '@ionic/angular/common';
6
6
  export { ActionSheetController, AlertController, AnimationController, Config, DomController, GestureController, IonicRouteStrategy, LoadingController, ModalController, NavController, NavParams, PickerController, Platform, PopoverController, ToastController } from '@ionic/angular/common';
@@ -2119,23 +2119,19 @@ const CHECKBOX_INPUTS = [
2119
2119
  'name',
2120
2120
  'value',
2121
2121
  ];
2122
- class IonCheckbox extends ValueAccessor {
2122
+ const accessorProvider$a = {
2123
+ provide: NG_VALUE_ACCESSOR,
2124
+ useExisting: forwardRef(() => IonCheckbox),
2125
+ multi: true,
2126
+ };
2127
+ let IonCheckbox = class IonCheckbox extends ValueAccessor {
2123
2128
  constructor(c, r, z, injector) {
2124
2129
  super(injector, r);
2125
2130
  this.z = z;
2126
- defineCustomElement$17();
2127
2131
  c.detach();
2128
2132
  this.el = r.nativeElement;
2129
2133
  proxyOutputs(this, this.el, ['ionChange', 'ionFocus', 'ionBlur']);
2130
2134
  }
2131
- ngOnInit() {
2132
- /**
2133
- * Data-bound input properties are set
2134
- * by Angular after the constructor, so
2135
- * we need to run the proxy in ngOnInit.
2136
- */
2137
- proxyInputs(IonCheckbox, CHECKBOX_INPUTS);
2138
- }
2139
2135
  writeValue(value) {
2140
2136
  this.elementRef.nativeElement.checked = this.lastValue = value;
2141
2137
  setIonicClasses(this.elementRef);
@@ -2143,15 +2139,15 @@ class IonCheckbox extends ValueAccessor {
2143
2139
  handleIonChange(el) {
2144
2140
  this.handleValueChange(el, el.checked);
2145
2141
  }
2146
- }
2142
+ };
2147
2143
  /** @nocollapse */ IonCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonCheckbox, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
2148
- /** @nocollapse */ IonCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonCheckbox, isStandalone: true, selector: "ion-checkbox", inputs: { checked: "checked", color: "color", disabled: "disabled", indeterminate: "indeterminate", justify: "justify", labelPlacement: "labelPlacement", legacy: "legacy", mode: "mode", name: "name", value: "value" }, host: { listeners: { "ionChange": "handleIonChange($event.target)" } }, providers: [
2149
- {
2150
- provide: NG_VALUE_ACCESSOR,
2151
- useExisting: IonCheckbox,
2152
- multi: true,
2153
- },
2154
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2144
+ /** @nocollapse */ IonCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonCheckbox, isStandalone: true, selector: "ion-checkbox", inputs: { checked: "checked", color: "color", disabled: "disabled", indeterminate: "indeterminate", justify: "justify", labelPlacement: "labelPlacement", legacy: "legacy", mode: "mode", name: "name", value: "value" }, host: { listeners: { "ionChange": "handleIonChange($event.target)" } }, providers: [accessorProvider$a], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2145
+ IonCheckbox = __decorate([
2146
+ ProxyCmp({
2147
+ defineCustomElementFn: defineCustomElement$17,
2148
+ inputs: CHECKBOX_INPUTS,
2149
+ })
2150
+ ], IonCheckbox);
2155
2151
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonCheckbox, decorators: [{
2156
2152
  type: Component,
2157
2153
  args: [{
@@ -2160,13 +2156,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2160
2156
  template: '<ng-content></ng-content>',
2161
2157
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2162
2158
  inputs: CHECKBOX_INPUTS,
2163
- providers: [
2164
- {
2165
- provide: NG_VALUE_ACCESSOR,
2166
- useExisting: IonCheckbox,
2167
- multi: true,
2168
- },
2169
- ],
2159
+ providers: [accessorProvider$a],
2170
2160
  standalone: true,
2171
2161
  }]
2172
2162
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonChange: [{
@@ -2206,37 +2196,32 @@ const DATETIME_INPUTS = [
2206
2196
  'value',
2207
2197
  'yearValues',
2208
2198
  ];
2209
- const DATETIME_METHODS = ['confirm', 'reset', 'cancel'];
2210
- class IonDatetime extends ValueAccessor {
2199
+ const accessorProvider$9 = {
2200
+ provide: NG_VALUE_ACCESSOR,
2201
+ useExisting: forwardRef(() => IonDatetime),
2202
+ multi: true,
2203
+ };
2204
+ let IonDatetime = class IonDatetime extends ValueAccessor {
2211
2205
  constructor(c, r, z, injector) {
2212
2206
  super(injector, r);
2213
2207
  this.z = z;
2214
- defineCustomElement$18();
2215
2208
  c.detach();
2216
2209
  this.el = r.nativeElement;
2217
2210
  proxyOutputs(this, this.el, ['ionCancel', 'ionChange', 'ionFocus', 'ionBlur']);
2218
2211
  }
2219
- ngOnInit() {
2220
- /**
2221
- * Data-bound input properties are set
2222
- * by Angular after the constructor, so
2223
- * we need to run the proxy in ngOnInit.
2224
- */
2225
- proxyInputs(IonDatetime, DATETIME_INPUTS);
2226
- proxyMethods(IonDatetime, DATETIME_METHODS);
2227
- }
2228
2212
  handleIonChange(el) {
2229
2213
  this.handleValueChange(el, el.value);
2230
2214
  }
2231
- }
2215
+ };
2232
2216
  /** @nocollapse */ IonDatetime.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonDatetime, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
2233
- /** @nocollapse */ IonDatetime.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonDatetime, isStandalone: true, selector: "ion-datetime", inputs: { cancelText: "cancelText", clearText: "clearText", color: "color", dayValues: "dayValues", disabled: "disabled", doneText: "doneText", firstDayOfWeek: "firstDayOfWeek", highlightedDates: "highlightedDates", hourCycle: "hourCycle", hourValues: "hourValues", isDateEnabled: "isDateEnabled", locale: "locale", max: "max", min: "min", minuteValues: "minuteValues", mode: "mode", monthValues: "monthValues", multiple: "multiple", name: "name", preferWheel: "preferWheel", presentation: "presentation", readonly: "readonly", showClearButton: "showClearButton", showDefaultButtons: "showDefaultButtons", showDefaultTimeLabel: "showDefaultTimeLabel", showDefaultTitle: "showDefaultTitle", size: "size", titleSelectedDatesFormatter: "titleSelectedDatesFormatter", value: "value", yearValues: "yearValues" }, host: { listeners: { "ionChange": "handleIonChange($event.target)" } }, providers: [
2234
- {
2235
- provide: NG_VALUE_ACCESSOR,
2236
- useExisting: IonDatetime,
2237
- multi: true,
2238
- },
2239
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2217
+ /** @nocollapse */ IonDatetime.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonDatetime, isStandalone: true, selector: "ion-datetime", inputs: { cancelText: "cancelText", clearText: "clearText", color: "color", dayValues: "dayValues", disabled: "disabled", doneText: "doneText", firstDayOfWeek: "firstDayOfWeek", highlightedDates: "highlightedDates", hourCycle: "hourCycle", hourValues: "hourValues", isDateEnabled: "isDateEnabled", locale: "locale", max: "max", min: "min", minuteValues: "minuteValues", mode: "mode", monthValues: "monthValues", multiple: "multiple", name: "name", preferWheel: "preferWheel", presentation: "presentation", readonly: "readonly", showClearButton: "showClearButton", showDefaultButtons: "showDefaultButtons", showDefaultTimeLabel: "showDefaultTimeLabel", showDefaultTitle: "showDefaultTitle", size: "size", titleSelectedDatesFormatter: "titleSelectedDatesFormatter", value: "value", yearValues: "yearValues" }, host: { listeners: { "ionChange": "handleIonChange($event.target)" } }, providers: [accessorProvider$9], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2218
+ IonDatetime = __decorate([
2219
+ ProxyCmp({
2220
+ defineCustomElementFn: defineCustomElement$18,
2221
+ inputs: DATETIME_INPUTS,
2222
+ methods: ['confirm', 'reset', 'cancel'],
2223
+ })
2224
+ ], IonDatetime);
2240
2225
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonDatetime, decorators: [{
2241
2226
  type: Component,
2242
2227
  args: [{
@@ -2245,13 +2230,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2245
2230
  template: '<ng-content></ng-content>',
2246
2231
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2247
2232
  inputs: DATETIME_INPUTS,
2248
- providers: [
2249
- {
2250
- provide: NG_VALUE_ACCESSOR,
2251
- useExisting: IonDatetime,
2252
- multi: true,
2253
- },
2254
- ],
2233
+ providers: [accessorProvider$9],
2255
2234
  standalone: true,
2256
2235
  }]
2257
2236
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonChange: [{
@@ -2325,25 +2304,19 @@ const INPUT_INPUTS = [
2325
2304
  'type',
2326
2305
  'value',
2327
2306
  ];
2328
- const INPUT_METHODS = ['setFocus', 'getInputElement'];
2329
- class IonInput extends ValueAccessor {
2307
+ const accessorProvider$8 = {
2308
+ provide: NG_VALUE_ACCESSOR,
2309
+ useExisting: forwardRef(() => IonInput),
2310
+ multi: true,
2311
+ };
2312
+ let IonInput = class IonInput extends ValueAccessor {
2330
2313
  constructor(c, r, z, injector) {
2331
2314
  super(injector, r);
2332
2315
  this.z = z;
2333
- defineCustomElement$1a();
2334
2316
  c.detach();
2335
2317
  this.el = r.nativeElement;
2336
2318
  proxyOutputs(this, this.el, ['ionInput', 'ionChange', 'ionBlur', 'ionFocus']);
2337
2319
  }
2338
- ngOnInit() {
2339
- /**
2340
- * Data-bound input properties are set
2341
- * by Angular after the constructor, so
2342
- * we need to run the proxy in ngOnInit.
2343
- */
2344
- proxyInputs(IonInput, INPUT_INPUTS);
2345
- proxyMethods(IonInput, INPUT_METHODS);
2346
- }
2347
2320
  handleIonInput(el) {
2348
2321
  this.handleValueChange(el, el.value);
2349
2322
  }
@@ -2362,15 +2335,16 @@ class IonInput extends ValueAccessor {
2362
2335
  }
2363
2336
  });
2364
2337
  }
2365
- }
2338
+ };
2366
2339
  /** @nocollapse */ IonInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonInput, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
2367
- /** @nocollapse */ IonInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonInput, isStandalone: true, selector: "ion-input", inputs: { accept: "accept", autocapitalize: "autocapitalize", autocomplete: "autocomplete", autocorrect: "autocorrect", autofocus: "autofocus", clearInput: "clearInput", clearOnEdit: "clearOnEdit", color: "color", counter: "counter", counterFormatter: "counterFormatter", debounce: "debounce", disabled: "disabled", enterkeyhint: "enterkeyhint", errorText: "errorText", fill: "fill", helperText: "helperText", inputmode: "inputmode", label: "label", labelPlacement: "labelPlacement", legacy: "legacy", max: "max", maxlength: "maxlength", min: "min", minlength: "minlength", mode: "mode", multiple: "multiple", name: "name", pattern: "pattern", placeholder: "placeholder", readonly: "readonly", required: "required", shape: "shape", size: "size", spellcheck: "spellcheck", step: "step", type: "type", value: "value" }, host: { listeners: { "ionInput": "handleIonInput($event.target)" } }, providers: [
2368
- {
2369
- provide: NG_VALUE_ACCESSOR,
2370
- useExisting: IonInput,
2371
- multi: true,
2372
- },
2373
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2340
+ /** @nocollapse */ IonInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonInput, isStandalone: true, selector: "ion-input", inputs: { accept: "accept", autocapitalize: "autocapitalize", autocomplete: "autocomplete", autocorrect: "autocorrect", autofocus: "autofocus", clearInput: "clearInput", clearOnEdit: "clearOnEdit", color: "color", counter: "counter", counterFormatter: "counterFormatter", debounce: "debounce", disabled: "disabled", enterkeyhint: "enterkeyhint", errorText: "errorText", fill: "fill", helperText: "helperText", inputmode: "inputmode", label: "label", labelPlacement: "labelPlacement", legacy: "legacy", max: "max", maxlength: "maxlength", min: "min", minlength: "minlength", mode: "mode", multiple: "multiple", name: "name", pattern: "pattern", placeholder: "placeholder", readonly: "readonly", required: "required", shape: "shape", size: "size", spellcheck: "spellcheck", step: "step", type: "type", value: "value" }, host: { listeners: { "ionInput": "handleIonInput($event.target)" } }, providers: [accessorProvider$8], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2341
+ IonInput = __decorate([
2342
+ ProxyCmp({
2343
+ defineCustomElementFn: defineCustomElement$1a,
2344
+ inputs: INPUT_INPUTS,
2345
+ methods: ['setFocus', 'getInputElement'],
2346
+ })
2347
+ ], IonInput);
2374
2348
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonInput, decorators: [{
2375
2349
  type: Component,
2376
2350
  args: [{
@@ -2379,13 +2353,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2379
2353
  template: '<ng-content></ng-content>',
2380
2354
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2381
2355
  inputs: INPUT_INPUTS,
2382
- providers: [
2383
- {
2384
- provide: NG_VALUE_ACCESSOR,
2385
- useExisting: IonInput,
2386
- multi: true,
2387
- },
2388
- ],
2356
+ providers: [accessorProvider$8],
2389
2357
  standalone: true,
2390
2358
  }]
2391
2359
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonInput: [{
@@ -2394,35 +2362,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2394
2362
  }] } });
2395
2363
 
2396
2364
  const RADIO_GROUP_INPUTS = ['allowEmptySelection', 'name', 'value'];
2397
- class IonRadioGroup extends ValueAccessor {
2365
+ const accessorProvider$7 = {
2366
+ provide: NG_VALUE_ACCESSOR,
2367
+ useExisting: forwardRef(() => IonRadioGroup),
2368
+ multi: true,
2369
+ };
2370
+ let IonRadioGroup = class IonRadioGroup extends ValueAccessor {
2398
2371
  constructor(c, r, z, injector) {
2399
2372
  super(injector, r);
2400
2373
  this.z = z;
2401
- defineCustomElement$1b();
2402
2374
  c.detach();
2403
2375
  this.el = r.nativeElement;
2404
2376
  proxyOutputs(this, this.el, ['ionChange']);
2405
2377
  }
2406
- ngOnInit() {
2407
- /**
2408
- * Data-bound input properties are set
2409
- * by Angular after the constructor, so
2410
- * we need to run the proxy in ngOnInit.
2411
- */
2412
- proxyInputs(IonRadioGroup, RADIO_GROUP_INPUTS);
2413
- }
2414
2378
  handleIonChange(el) {
2415
2379
  this.handleValueChange(el, el.value);
2416
2380
  }
2417
- }
2381
+ };
2418
2382
  /** @nocollapse */ IonRadioGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRadioGroup, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
2419
- /** @nocollapse */ IonRadioGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonRadioGroup, isStandalone: true, selector: "ion-radio-group", inputs: { allowEmptySelection: "allowEmptySelection", name: "name", value: "value" }, host: { listeners: { "ionChange": "handleIonChange($event.target)" } }, providers: [
2420
- {
2421
- provide: NG_VALUE_ACCESSOR,
2422
- useExisting: IonRadioGroup,
2423
- multi: true,
2424
- },
2425
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2383
+ /** @nocollapse */ IonRadioGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonRadioGroup, isStandalone: true, selector: "ion-radio-group", inputs: { allowEmptySelection: "allowEmptySelection", name: "name", value: "value" }, host: { listeners: { "ionChange": "handleIonChange($event.target)" } }, providers: [accessorProvider$7], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2384
+ IonRadioGroup = __decorate([
2385
+ ProxyCmp({
2386
+ defineCustomElementFn: defineCustomElement$1b,
2387
+ inputs: RADIO_GROUP_INPUTS,
2388
+ })
2389
+ ], IonRadioGroup);
2426
2390
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRadioGroup, decorators: [{
2427
2391
  type: Component,
2428
2392
  args: [{
@@ -2431,13 +2395,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2431
2395
  template: '<ng-content></ng-content>',
2432
2396
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2433
2397
  inputs: RADIO_GROUP_INPUTS,
2434
- providers: [
2435
- {
2436
- provide: NG_VALUE_ACCESSOR,
2437
- useExisting: IonRadioGroup,
2438
- multi: true,
2439
- },
2440
- ],
2398
+ providers: [accessorProvider$7],
2441
2399
  standalone: true,
2442
2400
  }]
2443
2401
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonChange: [{
@@ -2446,23 +2404,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2446
2404
  }] } });
2447
2405
 
2448
2406
  const RADIO_INPUTS = ['color', 'disabled', 'justify', 'labelPlacement', 'legacy', 'mode', 'name', 'value'];
2449
- class IonRadio extends ValueAccessor {
2407
+ const accessorProvider$6 = {
2408
+ provide: NG_VALUE_ACCESSOR,
2409
+ useExisting: forwardRef(() => IonRadio),
2410
+ multi: true,
2411
+ };
2412
+ let IonRadio = class IonRadio extends ValueAccessor {
2450
2413
  constructor(c, r, z, injector) {
2451
2414
  super(injector, r);
2452
2415
  this.z = z;
2453
- defineCustomElement$1c();
2454
2416
  c.detach();
2455
2417
  this.el = r.nativeElement;
2456
2418
  proxyOutputs(this, this.el, ['ionFocus', 'ionBlur']);
2457
2419
  }
2458
- ngOnInit() {
2459
- /**
2460
- * Data-bound input properties are set
2461
- * by Angular after the constructor, so
2462
- * we need to run the proxy in ngOnInit.
2463
- */
2464
- proxyInputs(IonRadio, RADIO_INPUTS);
2465
- }
2466
2420
  handleIonSelect(el) {
2467
2421
  /**
2468
2422
  * The `el` type is any to access the `checked` state property
@@ -2470,15 +2424,15 @@ class IonRadio extends ValueAccessor {
2470
2424
  */
2471
2425
  this.handleValueChange(el, el.checked);
2472
2426
  }
2473
- }
2427
+ };
2474
2428
  /** @nocollapse */ IonRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRadio, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
2475
- /** @nocollapse */ IonRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonRadio, isStandalone: true, selector: "ion-radio", inputs: { color: "color", disabled: "disabled", justify: "justify", labelPlacement: "labelPlacement", legacy: "legacy", mode: "mode", name: "name", value: "value" }, host: { listeners: { "ionSelect": "handleIonSelect($event.target)" } }, providers: [
2476
- {
2477
- provide: NG_VALUE_ACCESSOR,
2478
- useExisting: IonRadio,
2479
- multi: true,
2480
- },
2481
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2429
+ /** @nocollapse */ IonRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonRadio, isStandalone: true, selector: "ion-radio", inputs: { color: "color", disabled: "disabled", justify: "justify", labelPlacement: "labelPlacement", legacy: "legacy", mode: "mode", name: "name", value: "value" }, host: { listeners: { "ionSelect": "handleIonSelect($event.target)" } }, providers: [accessorProvider$6], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2430
+ IonRadio = __decorate([
2431
+ ProxyCmp({
2432
+ defineCustomElementFn: defineCustomElement$1c,
2433
+ inputs: RADIO_INPUTS,
2434
+ })
2435
+ ], IonRadio);
2482
2436
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRadio, decorators: [{
2483
2437
  type: Component,
2484
2438
  args: [{
@@ -2487,13 +2441,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2487
2441
  template: '<ng-content></ng-content>',
2488
2442
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2489
2443
  inputs: RADIO_INPUTS,
2490
- providers: [
2491
- {
2492
- provide: NG_VALUE_ACCESSOR,
2493
- useExisting: IonRadio,
2494
- multi: true,
2495
- },
2496
- ],
2444
+ providers: [accessorProvider$6],
2497
2445
  standalone: true,
2498
2446
  }]
2499
2447
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonSelect: [{
@@ -2521,35 +2469,31 @@ const RANGE_INPUTS = [
2521
2469
  'ticks',
2522
2470
  'value',
2523
2471
  ];
2524
- class IonRange extends ValueAccessor {
2472
+ const accessorProvider$5 = {
2473
+ provide: NG_VALUE_ACCESSOR,
2474
+ useExisting: forwardRef(() => IonRange),
2475
+ multi: true,
2476
+ };
2477
+ let IonRange = class IonRange extends ValueAccessor {
2525
2478
  constructor(c, r, z, injector) {
2526
2479
  super(injector, r);
2527
2480
  this.z = z;
2528
- defineCustomElement$1d();
2529
2481
  c.detach();
2530
2482
  this.el = r.nativeElement;
2531
2483
  proxyOutputs(this, this.el, ['ionChange', 'ionInput', 'ionFocus', 'ionBlur', 'ionKnobMoveStart', 'ionKnobMoveEnd']);
2532
2484
  }
2533
- ngOnInit() {
2534
- /**
2535
- * Data-bound input properties are set
2536
- * by Angular after the constructor, so
2537
- * we need to run the proxy in ngOnInit.
2538
- */
2539
- proxyInputs(IonRange, RANGE_INPUTS);
2540
- }
2541
2485
  handleIonChange(el) {
2542
2486
  this.handleValueChange(el, el.value);
2543
2487
  }
2544
- }
2488
+ };
2545
2489
  /** @nocollapse */ IonRange.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRange, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
2546
- /** @nocollapse */ IonRange.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonRange, isStandalone: true, selector: "ion-range", inputs: { activeBarStart: "activeBarStart", color: "color", debounce: "debounce", disabled: "disabled", dualKnobs: "dualKnobs", label: "label", labelPlacement: "labelPlacement", legacy: "legacy", max: "max", min: "min", mode: "mode", name: "name", pin: "pin", pinFormatter: "pinFormatter", snaps: "snaps", step: "step", ticks: "ticks", value: "value" }, host: { listeners: { "ionChange": "handleIonChange($event.target)" } }, providers: [
2547
- {
2548
- provide: NG_VALUE_ACCESSOR,
2549
- useExisting: IonRange,
2550
- multi: true,
2551
- },
2552
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2490
+ /** @nocollapse */ IonRange.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonRange, isStandalone: true, selector: "ion-range", inputs: { activeBarStart: "activeBarStart", color: "color", debounce: "debounce", disabled: "disabled", dualKnobs: "dualKnobs", label: "label", labelPlacement: "labelPlacement", legacy: "legacy", max: "max", min: "min", mode: "mode", name: "name", pin: "pin", pinFormatter: "pinFormatter", snaps: "snaps", step: "step", ticks: "ticks", value: "value" }, host: { listeners: { "ionChange": "handleIonChange($event.target)" } }, providers: [accessorProvider$5], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2491
+ IonRange = __decorate([
2492
+ ProxyCmp({
2493
+ defineCustomElementFn: defineCustomElement$1d,
2494
+ inputs: RANGE_INPUTS,
2495
+ })
2496
+ ], IonRange);
2553
2497
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRange, decorators: [{
2554
2498
  type: Component,
2555
2499
  args: [{
@@ -2558,13 +2502,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2558
2502
  template: '<ng-content></ng-content>',
2559
2503
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2560
2504
  inputs: RANGE_INPUTS,
2561
- providers: [
2562
- {
2563
- provide: NG_VALUE_ACCESSOR,
2564
- useExisting: IonRange,
2565
- multi: true,
2566
- },
2567
- ],
2505
+ providers: [accessorProvider$5],
2568
2506
  standalone: true,
2569
2507
  }]
2570
2508
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonChange: [{
@@ -2594,37 +2532,32 @@ const SEARCHBAR_INPUTS = [
2594
2532
  'type',
2595
2533
  'value',
2596
2534
  ];
2597
- const SEARCHBAR_METHODS = ['setFocus', 'getInputElement'];
2598
- class IonSearchbar extends ValueAccessor {
2535
+ const accessorProvider$4 = {
2536
+ provide: NG_VALUE_ACCESSOR,
2537
+ useExisting: forwardRef(() => IonSearchbar),
2538
+ multi: true,
2539
+ };
2540
+ let IonSearchbar = class IonSearchbar extends ValueAccessor {
2599
2541
  constructor(c, r, z, injector) {
2600
2542
  super(injector, r);
2601
2543
  this.z = z;
2602
- defineCustomElement$1e();
2603
2544
  c.detach();
2604
2545
  this.el = r.nativeElement;
2605
2546
  proxyOutputs(this, this.el, ['ionInput', 'ionChange', 'ionCancel', 'ionClear', 'ionBlur', 'ionFocus']);
2606
2547
  }
2607
- ngOnInit() {
2608
- /**
2609
- * Data-bound input properties are set
2610
- * by Angular after the constructor, so
2611
- * we need to run the proxy in ngOnInit.
2612
- */
2613
- proxyInputs(IonSearchbar, SEARCHBAR_INPUTS);
2614
- proxyMethods(IonSearchbar, SEARCHBAR_METHODS);
2615
- }
2616
2548
  handleIonInput(el) {
2617
2549
  this.handleValueChange(el, el.value);
2618
2550
  }
2619
- }
2551
+ };
2620
2552
  /** @nocollapse */ IonSearchbar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonSearchbar, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
2621
- /** @nocollapse */ IonSearchbar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonSearchbar, isStandalone: true, selector: "ion-searchbar", inputs: { animated: "animated", autocomplete: "autocomplete", autocorrect: "autocorrect", cancelButtonIcon: "cancelButtonIcon", cancelButtonText: "cancelButtonText", clearIcon: "clearIcon", color: "color", debounce: "debounce", disabled: "disabled", enterkeyhint: "enterkeyhint", inputmode: "inputmode", mode: "mode", name: "name", placeholder: "placeholder", searchIcon: "searchIcon", showCancelButton: "showCancelButton", showClearButton: "showClearButton", spellcheck: "spellcheck", type: "type", value: "value" }, host: { listeners: { "ionInput": "handleIonInput($event.target)" } }, providers: [
2622
- {
2623
- provide: NG_VALUE_ACCESSOR,
2624
- useExisting: IonSearchbar,
2625
- multi: true,
2626
- },
2627
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2553
+ /** @nocollapse */ IonSearchbar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonSearchbar, isStandalone: true, selector: "ion-searchbar", inputs: { animated: "animated", autocomplete: "autocomplete", autocorrect: "autocorrect", cancelButtonIcon: "cancelButtonIcon", cancelButtonText: "cancelButtonText", clearIcon: "clearIcon", color: "color", debounce: "debounce", disabled: "disabled", enterkeyhint: "enterkeyhint", inputmode: "inputmode", mode: "mode", name: "name", placeholder: "placeholder", searchIcon: "searchIcon", showCancelButton: "showCancelButton", showClearButton: "showClearButton", spellcheck: "spellcheck", type: "type", value: "value" }, host: { listeners: { "ionInput": "handleIonInput($event.target)" } }, providers: [accessorProvider$4], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2554
+ IonSearchbar = __decorate([
2555
+ ProxyCmp({
2556
+ defineCustomElementFn: defineCustomElement$1e,
2557
+ inputs: SEARCHBAR_INPUTS,
2558
+ methods: ['setFocus', 'getInputElement'],
2559
+ })
2560
+ ], IonSearchbar);
2628
2561
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonSearchbar, decorators: [{
2629
2562
  type: Component,
2630
2563
  args: [{
@@ -2633,13 +2566,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2633
2566
  template: '<ng-content></ng-content>',
2634
2567
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2635
2568
  inputs: SEARCHBAR_INPUTS,
2636
- providers: [
2637
- {
2638
- provide: NG_VALUE_ACCESSOR,
2639
- useExisting: IonSearchbar,
2640
- multi: true,
2641
- },
2642
- ],
2569
+ providers: [accessorProvider$4],
2643
2570
  standalone: true,
2644
2571
  }]
2645
2572
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonInput: [{
@@ -2648,35 +2575,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2648
2575
  }] } });
2649
2576
 
2650
2577
  const SEGMENT_INPUTS = ['color', 'disabled', 'mode', 'scrollable', 'selectOnFocus', 'swipeGesture', 'value'];
2651
- class IonSegment extends ValueAccessor {
2578
+ const accessorProvider$3 = {
2579
+ provide: NG_VALUE_ACCESSOR,
2580
+ useExisting: forwardRef(() => IonSegment),
2581
+ multi: true,
2582
+ };
2583
+ let IonSegment = class IonSegment extends ValueAccessor {
2652
2584
  constructor(c, r, z, injector) {
2653
2585
  super(injector, r);
2654
2586
  this.z = z;
2655
- defineCustomElement$1f();
2656
2587
  c.detach();
2657
2588
  this.el = r.nativeElement;
2658
2589
  proxyOutputs(this, this.el, ['ionChange']);
2659
2590
  }
2660
- ngOnInit() {
2661
- /**
2662
- * Data-bound input properties are set
2663
- * by Angular after the constructor, so
2664
- * we need to run the proxy in ngOnInit.
2665
- */
2666
- proxyInputs(IonSegment, SEGMENT_INPUTS);
2667
- }
2668
2591
  handleIonChange(el) {
2669
2592
  this.handleValueChange(el, el.value);
2670
2593
  }
2671
- }
2594
+ };
2672
2595
  /** @nocollapse */ IonSegment.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonSegment, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
2673
- /** @nocollapse */ IonSegment.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonSegment, isStandalone: true, selector: "ion-segment", inputs: { color: "color", disabled: "disabled", mode: "mode", scrollable: "scrollable", selectOnFocus: "selectOnFocus", swipeGesture: "swipeGesture", value: "value" }, host: { listeners: { "ionChange": "handleIonChange($event.target)" } }, providers: [
2674
- {
2675
- provide: NG_VALUE_ACCESSOR,
2676
- useExisting: IonSegment,
2677
- multi: true,
2678
- },
2679
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2596
+ /** @nocollapse */ IonSegment.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonSegment, isStandalone: true, selector: "ion-segment", inputs: { color: "color", disabled: "disabled", mode: "mode", scrollable: "scrollable", selectOnFocus: "selectOnFocus", swipeGesture: "swipeGesture", value: "value" }, host: { listeners: { "ionChange": "handleIonChange($event.target)" } }, providers: [accessorProvider$3], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2597
+ IonSegment = __decorate([
2598
+ ProxyCmp({
2599
+ defineCustomElementFn: defineCustomElement$1f,
2600
+ inputs: SEGMENT_INPUTS,
2601
+ })
2602
+ ], IonSegment);
2680
2603
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonSegment, decorators: [{
2681
2604
  type: Component,
2682
2605
  args: [{
@@ -2685,13 +2608,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2685
2608
  template: '<ng-content></ng-content>',
2686
2609
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2687
2610
  inputs: SEGMENT_INPUTS,
2688
- providers: [
2689
- {
2690
- provide: NG_VALUE_ACCESSOR,
2691
- useExisting: IonSegment,
2692
- multi: true,
2693
- },
2694
- ],
2611
+ providers: [accessorProvider$3],
2695
2612
  standalone: true,
2696
2613
  }]
2697
2614
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonChange: [{
@@ -2722,37 +2639,32 @@ const SELECT_INPUTS = [
2722
2639
  'toggleIcon',
2723
2640
  'value',
2724
2641
  ];
2725
- const SELECT_METHODS = ['open'];
2726
- class IonSelect extends ValueAccessor {
2642
+ const accessorProvider$2 = {
2643
+ provide: NG_VALUE_ACCESSOR,
2644
+ useExisting: forwardRef(() => IonSelect),
2645
+ multi: true,
2646
+ };
2647
+ let IonSelect = class IonSelect extends ValueAccessor {
2727
2648
  constructor(c, r, z, injector) {
2728
2649
  super(injector, r);
2729
2650
  this.z = z;
2730
- defineCustomElement$1g();
2731
2651
  c.detach();
2732
2652
  this.el = r.nativeElement;
2733
2653
  proxyOutputs(this, this.el, ['ionChange', 'ionCancel', 'ionDismiss', 'ionFocus', 'ionBlur']);
2734
2654
  }
2735
- ngOnInit() {
2736
- /**
2737
- * Data-bound input properties are set
2738
- * by Angular after the constructor, so
2739
- * we need to run the proxy in ngOnInit.
2740
- */
2741
- proxyInputs(IonSelect, SELECT_INPUTS);
2742
- proxyMethods(IonSelect, SELECT_METHODS);
2743
- }
2744
2655
  handleIonChange(el) {
2745
2656
  this.handleValueChange(el, el.value);
2746
2657
  }
2747
- }
2658
+ };
2748
2659
  /** @nocollapse */ IonSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonSelect, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
2749
- /** @nocollapse */ IonSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonSelect, isStandalone: true, selector: "ion-select", inputs: { cancelText: "cancelText", color: "color", compareWith: "compareWith", disabled: "disabled", expandedIcon: "expandedIcon", fill: "fill", interface: "interface", interfaceOptions: "interfaceOptions", justify: "justify", label: "label", labelPlacement: "labelPlacement", legacy: "legacy", mode: "mode", multiple: "multiple", name: "name", okText: "okText", placeholder: "placeholder", selectedText: "selectedText", shape: "shape", toggleIcon: "toggleIcon", value: "value" }, host: { listeners: { "ionChange": "handleIonChange($event.target)" } }, providers: [
2750
- {
2751
- provide: NG_VALUE_ACCESSOR,
2752
- useExisting: IonSelect,
2753
- multi: true,
2754
- },
2755
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2660
+ /** @nocollapse */ IonSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonSelect, isStandalone: true, selector: "ion-select", inputs: { cancelText: "cancelText", color: "color", compareWith: "compareWith", disabled: "disabled", expandedIcon: "expandedIcon", fill: "fill", interface: "interface", interfaceOptions: "interfaceOptions", justify: "justify", label: "label", labelPlacement: "labelPlacement", legacy: "legacy", mode: "mode", multiple: "multiple", name: "name", okText: "okText", placeholder: "placeholder", selectedText: "selectedText", shape: "shape", toggleIcon: "toggleIcon", value: "value" }, host: { listeners: { "ionChange": "handleIonChange($event.target)" } }, providers: [accessorProvider$2], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2661
+ IonSelect = __decorate([
2662
+ ProxyCmp({
2663
+ defineCustomElementFn: defineCustomElement$1g,
2664
+ inputs: SELECT_INPUTS,
2665
+ methods: ['open'],
2666
+ })
2667
+ ], IonSelect);
2756
2668
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonSelect, decorators: [{
2757
2669
  type: Component,
2758
2670
  args: [{
@@ -2761,13 +2673,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2761
2673
  template: '<ng-content></ng-content>',
2762
2674
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2763
2675
  inputs: SELECT_INPUTS,
2764
- providers: [
2765
- {
2766
- provide: NG_VALUE_ACCESSOR,
2767
- useExisting: IonSelect,
2768
- multi: true,
2769
- },
2770
- ],
2676
+ providers: [accessorProvider$2],
2771
2677
  standalone: true,
2772
2678
  }]
2773
2679
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonChange: [{
@@ -2807,37 +2713,32 @@ const TEXTAREA_INPUTS = [
2807
2713
  'value',
2808
2714
  'wrap',
2809
2715
  ];
2810
- const TEXTAREA_METHODS = ['setFocus', 'getInputElement'];
2811
- class IonTextarea extends ValueAccessor {
2716
+ const accessorProvider$1 = {
2717
+ provide: NG_VALUE_ACCESSOR,
2718
+ useExisting: forwardRef(() => IonTextarea),
2719
+ multi: true,
2720
+ };
2721
+ let IonTextarea = class IonTextarea extends ValueAccessor {
2812
2722
  constructor(c, r, z, injector) {
2813
2723
  super(injector, r);
2814
2724
  this.z = z;
2815
- defineCustomElement$1h();
2816
2725
  c.detach();
2817
2726
  this.el = r.nativeElement;
2818
2727
  proxyOutputs(this, this.el, ['ionChange', 'ionInput', 'ionBlur', 'ionFocus']);
2819
2728
  }
2820
- ngOnInit() {
2821
- /**
2822
- * Data-bound input properties are set
2823
- * by Angular after the constructor, so
2824
- * we need to run the proxy in ngOnInit.
2825
- */
2826
- proxyInputs(IonTextarea, TEXTAREA_INPUTS);
2827
- proxyMethods(IonTextarea, TEXTAREA_METHODS);
2828
- }
2829
2729
  handleIonInput(el) {
2830
2730
  this.handleValueChange(el, el.value);
2831
2731
  }
2832
- }
2732
+ };
2833
2733
  /** @nocollapse */ IonTextarea.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonTextarea, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
2834
- /** @nocollapse */ IonTextarea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonTextarea, isStandalone: true, selector: "ion-textarea", inputs: { autoGrow: "autoGrow", autocapitalize: "autocapitalize", autofocus: "autofocus", clearOnEdit: "clearOnEdit", color: "color", cols: "cols", counter: "counter", counterFormatter: "counterFormatter", debounce: "debounce", disabled: "disabled", enterkeyhint: "enterkeyhint", errorText: "errorText", fill: "fill", helperText: "helperText", inputmode: "inputmode", label: "label", labelPlacement: "labelPlacement", legacy: "legacy", maxlength: "maxlength", minlength: "minlength", mode: "mode", name: "name", placeholder: "placeholder", readonly: "readonly", required: "required", rows: "rows", shape: "shape", spellcheck: "spellcheck", value: "value", wrap: "wrap" }, host: { listeners: { "ionInput": "handleIonInput($event.target)" } }, providers: [
2835
- {
2836
- provide: NG_VALUE_ACCESSOR,
2837
- useExisting: IonTextarea,
2838
- multi: true,
2839
- },
2840
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2734
+ /** @nocollapse */ IonTextarea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonTextarea, isStandalone: true, selector: "ion-textarea", inputs: { autoGrow: "autoGrow", autocapitalize: "autocapitalize", autofocus: "autofocus", clearOnEdit: "clearOnEdit", color: "color", cols: "cols", counter: "counter", counterFormatter: "counterFormatter", debounce: "debounce", disabled: "disabled", enterkeyhint: "enterkeyhint", errorText: "errorText", fill: "fill", helperText: "helperText", inputmode: "inputmode", label: "label", labelPlacement: "labelPlacement", legacy: "legacy", maxlength: "maxlength", minlength: "minlength", mode: "mode", name: "name", placeholder: "placeholder", readonly: "readonly", required: "required", rows: "rows", shape: "shape", spellcheck: "spellcheck", value: "value", wrap: "wrap" }, host: { listeners: { "ionInput": "handleIonInput($event.target)" } }, providers: [accessorProvider$1], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2735
+ IonTextarea = __decorate([
2736
+ ProxyCmp({
2737
+ defineCustomElementFn: defineCustomElement$1h,
2738
+ inputs: TEXTAREA_INPUTS,
2739
+ methods: ['setFocus', 'getInputElement'],
2740
+ })
2741
+ ], IonTextarea);
2841
2742
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonTextarea, decorators: [{
2842
2743
  type: Component,
2843
2744
  args: [{
@@ -2846,13 +2747,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2846
2747
  template: '<ng-content></ng-content>',
2847
2748
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2848
2749
  inputs: TEXTAREA_INPUTS,
2849
- providers: [
2850
- {
2851
- provide: NG_VALUE_ACCESSOR,
2852
- useExisting: IonTextarea,
2853
- multi: true,
2854
- },
2855
- ],
2750
+ providers: [accessorProvider$1],
2856
2751
  standalone: true,
2857
2752
  }]
2858
2753
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonInput: [{
@@ -2872,23 +2767,19 @@ const TOGGLE_INPUTS = [
2872
2767
  'name',
2873
2768
  'value',
2874
2769
  ];
2875
- class IonToggle extends ValueAccessor {
2770
+ const accessorProvider = {
2771
+ provide: NG_VALUE_ACCESSOR,
2772
+ useExisting: forwardRef(() => IonToggle),
2773
+ multi: true,
2774
+ };
2775
+ let IonToggle = class IonToggle extends ValueAccessor {
2876
2776
  constructor(c, r, z, injector) {
2877
2777
  super(injector, r);
2878
2778
  this.z = z;
2879
- defineCustomElement$1i();
2880
2779
  c.detach();
2881
2780
  this.el = r.nativeElement;
2882
2781
  proxyOutputs(this, this.el, ['ionChange', 'ionFocus', 'ionBlur']);
2883
2782
  }
2884
- ngOnInit() {
2885
- /**
2886
- * Data-bound input properties are set
2887
- * by Angular after the constructor, so
2888
- * we need to run the proxy in ngOnInit.
2889
- */
2890
- proxyInputs(IonToggle, TOGGLE_INPUTS);
2891
- }
2892
2783
  writeValue(value) {
2893
2784
  this.elementRef.nativeElement.checked = this.lastValue = value;
2894
2785
  setIonicClasses(this.elementRef);
@@ -2896,15 +2787,15 @@ class IonToggle extends ValueAccessor {
2896
2787
  handleIonChange(el) {
2897
2788
  this.handleValueChange(el, el.checked);
2898
2789
  }
2899
- }
2790
+ };
2900
2791
  /** @nocollapse */ IonToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonToggle, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
2901
- /** @nocollapse */ IonToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonToggle, isStandalone: true, selector: "ion-toggle", inputs: { checked: "checked", color: "color", disabled: "disabled", enableOnOffLabels: "enableOnOffLabels", justify: "justify", labelPlacement: "labelPlacement", legacy: "legacy", mode: "mode", name: "name", value: "value" }, host: { listeners: { "ionChange": "handleIonChange($event.target)" } }, providers: [
2902
- {
2903
- provide: NG_VALUE_ACCESSOR,
2904
- useExisting: IonToggle,
2905
- multi: true,
2906
- },
2907
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2792
+ /** @nocollapse */ IonToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: IonToggle, isStandalone: true, selector: "ion-toggle", inputs: { checked: "checked", color: "color", disabled: "disabled", enableOnOffLabels: "enableOnOffLabels", justify: "justify", labelPlacement: "labelPlacement", legacy: "legacy", mode: "mode", name: "name", value: "value" }, host: { listeners: { "ionChange": "handleIonChange($event.target)" } }, providers: [accessorProvider], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2793
+ IonToggle = __decorate([
2794
+ ProxyCmp({
2795
+ defineCustomElementFn: defineCustomElement$1i,
2796
+ inputs: TOGGLE_INPUTS,
2797
+ })
2798
+ ], IonToggle);
2908
2799
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonToggle, decorators: [{
2909
2800
  type: Component,
2910
2801
  args: [{
@@ -2913,13 +2804,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2913
2804
  template: '<ng-content></ng-content>',
2914
2805
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2915
2806
  inputs: TOGGLE_INPUTS,
2916
- providers: [
2917
- {
2918
- provide: NG_VALUE_ACCESSOR,
2919
- useExisting: IonToggle,
2920
- multi: true,
2921
- },
2922
- ],
2807
+ providers: [accessorProvider],
2923
2808
  standalone: true,
2924
2809
  }]
2925
2810
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonChange: [{