@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';
@@ -2123,23 +2123,19 @@ const CHECKBOX_INPUTS = [
2123
2123
  'name',
2124
2124
  'value',
2125
2125
  ];
2126
- class IonCheckbox extends ValueAccessor {
2126
+ const accessorProvider$a = {
2127
+ provide: NG_VALUE_ACCESSOR,
2128
+ useExisting: forwardRef(() => IonCheckbox),
2129
+ multi: true,
2130
+ };
2131
+ let IonCheckbox = class IonCheckbox extends ValueAccessor {
2127
2132
  constructor(c, r, z, injector) {
2128
2133
  super(injector, r);
2129
2134
  this.z = z;
2130
- defineCustomElement$17();
2131
2135
  c.detach();
2132
2136
  this.el = r.nativeElement;
2133
2137
  proxyOutputs(this, this.el, ['ionChange', 'ionFocus', 'ionBlur']);
2134
2138
  }
2135
- ngOnInit() {
2136
- /**
2137
- * Data-bound input properties are set
2138
- * by Angular after the constructor, so
2139
- * we need to run the proxy in ngOnInit.
2140
- */
2141
- proxyInputs(IonCheckbox, CHECKBOX_INPUTS);
2142
- }
2143
2139
  writeValue(value) {
2144
2140
  this.elementRef.nativeElement.checked = this.lastValue = value;
2145
2141
  setIonicClasses(this.elementRef);
@@ -2147,15 +2143,15 @@ class IonCheckbox extends ValueAccessor {
2147
2143
  handleIonChange(el) {
2148
2144
  this.handleValueChange(el, el.checked);
2149
2145
  }
2150
- }
2146
+ };
2151
2147
  /** @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 });
2152
- /** @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: [
2153
- {
2154
- provide: NG_VALUE_ACCESSOR,
2155
- useExisting: IonCheckbox,
2156
- multi: true,
2157
- },
2158
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
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: [accessorProvider$a], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2149
+ IonCheckbox = __decorate([
2150
+ ProxyCmp({
2151
+ defineCustomElementFn: defineCustomElement$17,
2152
+ inputs: CHECKBOX_INPUTS,
2153
+ })
2154
+ ], IonCheckbox);
2159
2155
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonCheckbox, decorators: [{
2160
2156
  type: Component,
2161
2157
  args: [{
@@ -2164,13 +2160,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2164
2160
  template: '<ng-content></ng-content>',
2165
2161
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2166
2162
  inputs: CHECKBOX_INPUTS,
2167
- providers: [
2168
- {
2169
- provide: NG_VALUE_ACCESSOR,
2170
- useExisting: IonCheckbox,
2171
- multi: true,
2172
- },
2173
- ],
2163
+ providers: [accessorProvider$a],
2174
2164
  standalone: true,
2175
2165
  }]
2176
2166
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonChange: [{
@@ -2210,37 +2200,32 @@ const DATETIME_INPUTS = [
2210
2200
  'value',
2211
2201
  'yearValues',
2212
2202
  ];
2213
- const DATETIME_METHODS = ['confirm', 'reset', 'cancel'];
2214
- class IonDatetime extends ValueAccessor {
2203
+ const accessorProvider$9 = {
2204
+ provide: NG_VALUE_ACCESSOR,
2205
+ useExisting: forwardRef(() => IonDatetime),
2206
+ multi: true,
2207
+ };
2208
+ let IonDatetime = class IonDatetime extends ValueAccessor {
2215
2209
  constructor(c, r, z, injector) {
2216
2210
  super(injector, r);
2217
2211
  this.z = z;
2218
- defineCustomElement$18();
2219
2212
  c.detach();
2220
2213
  this.el = r.nativeElement;
2221
2214
  proxyOutputs(this, this.el, ['ionCancel', 'ionChange', 'ionFocus', 'ionBlur']);
2222
2215
  }
2223
- ngOnInit() {
2224
- /**
2225
- * Data-bound input properties are set
2226
- * by Angular after the constructor, so
2227
- * we need to run the proxy in ngOnInit.
2228
- */
2229
- proxyInputs(IonDatetime, DATETIME_INPUTS);
2230
- proxyMethods(IonDatetime, DATETIME_METHODS);
2231
- }
2232
2216
  handleIonChange(el) {
2233
2217
  this.handleValueChange(el, el.value);
2234
2218
  }
2235
- }
2219
+ };
2236
2220
  /** @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 });
2237
- /** @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: [
2238
- {
2239
- provide: NG_VALUE_ACCESSOR,
2240
- useExisting: IonDatetime,
2241
- multi: true,
2242
- },
2243
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2221
+ /** @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 });
2222
+ IonDatetime = __decorate([
2223
+ ProxyCmp({
2224
+ defineCustomElementFn: defineCustomElement$18,
2225
+ inputs: DATETIME_INPUTS,
2226
+ methods: ['confirm', 'reset', 'cancel'],
2227
+ })
2228
+ ], IonDatetime);
2244
2229
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonDatetime, decorators: [{
2245
2230
  type: Component,
2246
2231
  args: [{
@@ -2249,13 +2234,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2249
2234
  template: '<ng-content></ng-content>',
2250
2235
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2251
2236
  inputs: DATETIME_INPUTS,
2252
- providers: [
2253
- {
2254
- provide: NG_VALUE_ACCESSOR,
2255
- useExisting: IonDatetime,
2256
- multi: true,
2257
- },
2258
- ],
2237
+ providers: [accessorProvider$9],
2259
2238
  standalone: true,
2260
2239
  }]
2261
2240
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonChange: [{
@@ -2329,25 +2308,19 @@ const INPUT_INPUTS = [
2329
2308
  'type',
2330
2309
  'value',
2331
2310
  ];
2332
- const INPUT_METHODS = ['setFocus', 'getInputElement'];
2333
- class IonInput extends ValueAccessor {
2311
+ const accessorProvider$8 = {
2312
+ provide: NG_VALUE_ACCESSOR,
2313
+ useExisting: forwardRef(() => IonInput),
2314
+ multi: true,
2315
+ };
2316
+ let IonInput = class IonInput extends ValueAccessor {
2334
2317
  constructor(c, r, z, injector) {
2335
2318
  super(injector, r);
2336
2319
  this.z = z;
2337
- defineCustomElement$1a();
2338
2320
  c.detach();
2339
2321
  this.el = r.nativeElement;
2340
2322
  proxyOutputs(this, this.el, ['ionInput', 'ionChange', 'ionBlur', 'ionFocus']);
2341
2323
  }
2342
- ngOnInit() {
2343
- /**
2344
- * Data-bound input properties are set
2345
- * by Angular after the constructor, so
2346
- * we need to run the proxy in ngOnInit.
2347
- */
2348
- proxyInputs(IonInput, INPUT_INPUTS);
2349
- proxyMethods(IonInput, INPUT_METHODS);
2350
- }
2351
2324
  handleIonInput(el) {
2352
2325
  this.handleValueChange(el, el.value);
2353
2326
  }
@@ -2366,15 +2339,16 @@ class IonInput extends ValueAccessor {
2366
2339
  }
2367
2340
  });
2368
2341
  }
2369
- }
2342
+ };
2370
2343
  /** @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 });
2371
- /** @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: [
2372
- {
2373
- provide: NG_VALUE_ACCESSOR,
2374
- useExisting: IonInput,
2375
- multi: true,
2376
- },
2377
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2344
+ /** @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 });
2345
+ IonInput = __decorate([
2346
+ ProxyCmp({
2347
+ defineCustomElementFn: defineCustomElement$1a,
2348
+ inputs: INPUT_INPUTS,
2349
+ methods: ['setFocus', 'getInputElement'],
2350
+ })
2351
+ ], IonInput);
2378
2352
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonInput, decorators: [{
2379
2353
  type: Component,
2380
2354
  args: [{
@@ -2383,13 +2357,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2383
2357
  template: '<ng-content></ng-content>',
2384
2358
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2385
2359
  inputs: INPUT_INPUTS,
2386
- providers: [
2387
- {
2388
- provide: NG_VALUE_ACCESSOR,
2389
- useExisting: IonInput,
2390
- multi: true,
2391
- },
2392
- ],
2360
+ providers: [accessorProvider$8],
2393
2361
  standalone: true,
2394
2362
  }]
2395
2363
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonInput: [{
@@ -2398,35 +2366,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2398
2366
  }] } });
2399
2367
 
2400
2368
  const RADIO_GROUP_INPUTS = ['allowEmptySelection', 'name', 'value'];
2401
- class IonRadioGroup extends ValueAccessor {
2369
+ const accessorProvider$7 = {
2370
+ provide: NG_VALUE_ACCESSOR,
2371
+ useExisting: forwardRef(() => IonRadioGroup),
2372
+ multi: true,
2373
+ };
2374
+ let IonRadioGroup = class IonRadioGroup extends ValueAccessor {
2402
2375
  constructor(c, r, z, injector) {
2403
2376
  super(injector, r);
2404
2377
  this.z = z;
2405
- defineCustomElement$1b();
2406
2378
  c.detach();
2407
2379
  this.el = r.nativeElement;
2408
2380
  proxyOutputs(this, this.el, ['ionChange']);
2409
2381
  }
2410
- ngOnInit() {
2411
- /**
2412
- * Data-bound input properties are set
2413
- * by Angular after the constructor, so
2414
- * we need to run the proxy in ngOnInit.
2415
- */
2416
- proxyInputs(IonRadioGroup, RADIO_GROUP_INPUTS);
2417
- }
2418
2382
  handleIonChange(el) {
2419
2383
  this.handleValueChange(el, el.value);
2420
2384
  }
2421
- }
2385
+ };
2422
2386
  /** @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 });
2423
- /** @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: [
2424
- {
2425
- provide: NG_VALUE_ACCESSOR,
2426
- useExisting: IonRadioGroup,
2427
- multi: true,
2428
- },
2429
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2387
+ /** @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 });
2388
+ IonRadioGroup = __decorate([
2389
+ ProxyCmp({
2390
+ defineCustomElementFn: defineCustomElement$1b,
2391
+ inputs: RADIO_GROUP_INPUTS,
2392
+ })
2393
+ ], IonRadioGroup);
2430
2394
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRadioGroup, decorators: [{
2431
2395
  type: Component,
2432
2396
  args: [{
@@ -2435,13 +2399,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2435
2399
  template: '<ng-content></ng-content>',
2436
2400
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2437
2401
  inputs: RADIO_GROUP_INPUTS,
2438
- providers: [
2439
- {
2440
- provide: NG_VALUE_ACCESSOR,
2441
- useExisting: IonRadioGroup,
2442
- multi: true,
2443
- },
2444
- ],
2402
+ providers: [accessorProvider$7],
2445
2403
  standalone: true,
2446
2404
  }]
2447
2405
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonChange: [{
@@ -2450,23 +2408,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2450
2408
  }] } });
2451
2409
 
2452
2410
  const RADIO_INPUTS = ['color', 'disabled', 'justify', 'labelPlacement', 'legacy', 'mode', 'name', 'value'];
2453
- class IonRadio extends ValueAccessor {
2411
+ const accessorProvider$6 = {
2412
+ provide: NG_VALUE_ACCESSOR,
2413
+ useExisting: forwardRef(() => IonRadio),
2414
+ multi: true,
2415
+ };
2416
+ let IonRadio = class IonRadio extends ValueAccessor {
2454
2417
  constructor(c, r, z, injector) {
2455
2418
  super(injector, r);
2456
2419
  this.z = z;
2457
- defineCustomElement$1c();
2458
2420
  c.detach();
2459
2421
  this.el = r.nativeElement;
2460
2422
  proxyOutputs(this, this.el, ['ionFocus', 'ionBlur']);
2461
2423
  }
2462
- ngOnInit() {
2463
- /**
2464
- * Data-bound input properties are set
2465
- * by Angular after the constructor, so
2466
- * we need to run the proxy in ngOnInit.
2467
- */
2468
- proxyInputs(IonRadio, RADIO_INPUTS);
2469
- }
2470
2424
  handleIonSelect(el) {
2471
2425
  /**
2472
2426
  * The `el` type is any to access the `checked` state property
@@ -2474,15 +2428,15 @@ class IonRadio extends ValueAccessor {
2474
2428
  */
2475
2429
  this.handleValueChange(el, el.checked);
2476
2430
  }
2477
- }
2431
+ };
2478
2432
  /** @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 });
2479
- /** @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: [
2480
- {
2481
- provide: NG_VALUE_ACCESSOR,
2482
- useExisting: IonRadio,
2483
- multi: true,
2484
- },
2485
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2433
+ /** @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 });
2434
+ IonRadio = __decorate([
2435
+ ProxyCmp({
2436
+ defineCustomElementFn: defineCustomElement$1c,
2437
+ inputs: RADIO_INPUTS,
2438
+ })
2439
+ ], IonRadio);
2486
2440
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRadio, decorators: [{
2487
2441
  type: Component,
2488
2442
  args: [{
@@ -2491,13 +2445,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2491
2445
  template: '<ng-content></ng-content>',
2492
2446
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2493
2447
  inputs: RADIO_INPUTS,
2494
- providers: [
2495
- {
2496
- provide: NG_VALUE_ACCESSOR,
2497
- useExisting: IonRadio,
2498
- multi: true,
2499
- },
2500
- ],
2448
+ providers: [accessorProvider$6],
2501
2449
  standalone: true,
2502
2450
  }]
2503
2451
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonSelect: [{
@@ -2525,35 +2473,31 @@ const RANGE_INPUTS = [
2525
2473
  'ticks',
2526
2474
  'value',
2527
2475
  ];
2528
- class IonRange extends ValueAccessor {
2476
+ const accessorProvider$5 = {
2477
+ provide: NG_VALUE_ACCESSOR,
2478
+ useExisting: forwardRef(() => IonRange),
2479
+ multi: true,
2480
+ };
2481
+ let IonRange = class IonRange extends ValueAccessor {
2529
2482
  constructor(c, r, z, injector) {
2530
2483
  super(injector, r);
2531
2484
  this.z = z;
2532
- defineCustomElement$1d();
2533
2485
  c.detach();
2534
2486
  this.el = r.nativeElement;
2535
2487
  proxyOutputs(this, this.el, ['ionChange', 'ionInput', 'ionFocus', 'ionBlur', 'ionKnobMoveStart', 'ionKnobMoveEnd']);
2536
2488
  }
2537
- ngOnInit() {
2538
- /**
2539
- * Data-bound input properties are set
2540
- * by Angular after the constructor, so
2541
- * we need to run the proxy in ngOnInit.
2542
- */
2543
- proxyInputs(IonRange, RANGE_INPUTS);
2544
- }
2545
2489
  handleIonChange(el) {
2546
2490
  this.handleValueChange(el, el.value);
2547
2491
  }
2548
- }
2492
+ };
2549
2493
  /** @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 });
2550
- /** @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: [
2551
- {
2552
- provide: NG_VALUE_ACCESSOR,
2553
- useExisting: IonRange,
2554
- multi: true,
2555
- },
2556
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2494
+ /** @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 });
2495
+ IonRange = __decorate([
2496
+ ProxyCmp({
2497
+ defineCustomElementFn: defineCustomElement$1d,
2498
+ inputs: RANGE_INPUTS,
2499
+ })
2500
+ ], IonRange);
2557
2501
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonRange, decorators: [{
2558
2502
  type: Component,
2559
2503
  args: [{
@@ -2562,13 +2506,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2562
2506
  template: '<ng-content></ng-content>',
2563
2507
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2564
2508
  inputs: RANGE_INPUTS,
2565
- providers: [
2566
- {
2567
- provide: NG_VALUE_ACCESSOR,
2568
- useExisting: IonRange,
2569
- multi: true,
2570
- },
2571
- ],
2509
+ providers: [accessorProvider$5],
2572
2510
  standalone: true,
2573
2511
  }]
2574
2512
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonChange: [{
@@ -2598,37 +2536,32 @@ const SEARCHBAR_INPUTS = [
2598
2536
  'type',
2599
2537
  'value',
2600
2538
  ];
2601
- const SEARCHBAR_METHODS = ['setFocus', 'getInputElement'];
2602
- class IonSearchbar extends ValueAccessor {
2539
+ const accessorProvider$4 = {
2540
+ provide: NG_VALUE_ACCESSOR,
2541
+ useExisting: forwardRef(() => IonSearchbar),
2542
+ multi: true,
2543
+ };
2544
+ let IonSearchbar = class IonSearchbar extends ValueAccessor {
2603
2545
  constructor(c, r, z, injector) {
2604
2546
  super(injector, r);
2605
2547
  this.z = z;
2606
- defineCustomElement$1e();
2607
2548
  c.detach();
2608
2549
  this.el = r.nativeElement;
2609
2550
  proxyOutputs(this, this.el, ['ionInput', 'ionChange', 'ionCancel', 'ionClear', 'ionBlur', 'ionFocus']);
2610
2551
  }
2611
- ngOnInit() {
2612
- /**
2613
- * Data-bound input properties are set
2614
- * by Angular after the constructor, so
2615
- * we need to run the proxy in ngOnInit.
2616
- */
2617
- proxyInputs(IonSearchbar, SEARCHBAR_INPUTS);
2618
- proxyMethods(IonSearchbar, SEARCHBAR_METHODS);
2619
- }
2620
2552
  handleIonInput(el) {
2621
2553
  this.handleValueChange(el, el.value);
2622
2554
  }
2623
- }
2555
+ };
2624
2556
  /** @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 });
2625
- /** @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: [
2626
- {
2627
- provide: NG_VALUE_ACCESSOR,
2628
- useExisting: IonSearchbar,
2629
- multi: true,
2630
- },
2631
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2557
+ /** @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 });
2558
+ IonSearchbar = __decorate([
2559
+ ProxyCmp({
2560
+ defineCustomElementFn: defineCustomElement$1e,
2561
+ inputs: SEARCHBAR_INPUTS,
2562
+ methods: ['setFocus', 'getInputElement'],
2563
+ })
2564
+ ], IonSearchbar);
2632
2565
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonSearchbar, decorators: [{
2633
2566
  type: Component,
2634
2567
  args: [{
@@ -2637,13 +2570,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2637
2570
  template: '<ng-content></ng-content>',
2638
2571
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2639
2572
  inputs: SEARCHBAR_INPUTS,
2640
- providers: [
2641
- {
2642
- provide: NG_VALUE_ACCESSOR,
2643
- useExisting: IonSearchbar,
2644
- multi: true,
2645
- },
2646
- ],
2573
+ providers: [accessorProvider$4],
2647
2574
  standalone: true,
2648
2575
  }]
2649
2576
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonInput: [{
@@ -2652,35 +2579,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2652
2579
  }] } });
2653
2580
 
2654
2581
  const SEGMENT_INPUTS = ['color', 'disabled', 'mode', 'scrollable', 'selectOnFocus', 'swipeGesture', 'value'];
2655
- class IonSegment extends ValueAccessor {
2582
+ const accessorProvider$3 = {
2583
+ provide: NG_VALUE_ACCESSOR,
2584
+ useExisting: forwardRef(() => IonSegment),
2585
+ multi: true,
2586
+ };
2587
+ let IonSegment = class IonSegment extends ValueAccessor {
2656
2588
  constructor(c, r, z, injector) {
2657
2589
  super(injector, r);
2658
2590
  this.z = z;
2659
- defineCustomElement$1f();
2660
2591
  c.detach();
2661
2592
  this.el = r.nativeElement;
2662
2593
  proxyOutputs(this, this.el, ['ionChange']);
2663
2594
  }
2664
- ngOnInit() {
2665
- /**
2666
- * Data-bound input properties are set
2667
- * by Angular after the constructor, so
2668
- * we need to run the proxy in ngOnInit.
2669
- */
2670
- proxyInputs(IonSegment, SEGMENT_INPUTS);
2671
- }
2672
2595
  handleIonChange(el) {
2673
2596
  this.handleValueChange(el, el.value);
2674
2597
  }
2675
- }
2598
+ };
2676
2599
  /** @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 });
2677
- /** @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: [
2678
- {
2679
- provide: NG_VALUE_ACCESSOR,
2680
- useExisting: IonSegment,
2681
- multi: true,
2682
- },
2683
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2600
+ /** @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 });
2601
+ IonSegment = __decorate([
2602
+ ProxyCmp({
2603
+ defineCustomElementFn: defineCustomElement$1f,
2604
+ inputs: SEGMENT_INPUTS,
2605
+ })
2606
+ ], IonSegment);
2684
2607
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonSegment, decorators: [{
2685
2608
  type: Component,
2686
2609
  args: [{
@@ -2689,13 +2612,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2689
2612
  template: '<ng-content></ng-content>',
2690
2613
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2691
2614
  inputs: SEGMENT_INPUTS,
2692
- providers: [
2693
- {
2694
- provide: NG_VALUE_ACCESSOR,
2695
- useExisting: IonSegment,
2696
- multi: true,
2697
- },
2698
- ],
2615
+ providers: [accessorProvider$3],
2699
2616
  standalone: true,
2700
2617
  }]
2701
2618
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonChange: [{
@@ -2726,37 +2643,32 @@ const SELECT_INPUTS = [
2726
2643
  'toggleIcon',
2727
2644
  'value',
2728
2645
  ];
2729
- const SELECT_METHODS = ['open'];
2730
- class IonSelect extends ValueAccessor {
2646
+ const accessorProvider$2 = {
2647
+ provide: NG_VALUE_ACCESSOR,
2648
+ useExisting: forwardRef(() => IonSelect),
2649
+ multi: true,
2650
+ };
2651
+ let IonSelect = class IonSelect extends ValueAccessor {
2731
2652
  constructor(c, r, z, injector) {
2732
2653
  super(injector, r);
2733
2654
  this.z = z;
2734
- defineCustomElement$1g();
2735
2655
  c.detach();
2736
2656
  this.el = r.nativeElement;
2737
2657
  proxyOutputs(this, this.el, ['ionChange', 'ionCancel', 'ionDismiss', 'ionFocus', 'ionBlur']);
2738
2658
  }
2739
- ngOnInit() {
2740
- /**
2741
- * Data-bound input properties are set
2742
- * by Angular after the constructor, so
2743
- * we need to run the proxy in ngOnInit.
2744
- */
2745
- proxyInputs(IonSelect, SELECT_INPUTS);
2746
- proxyMethods(IonSelect, SELECT_METHODS);
2747
- }
2748
2659
  handleIonChange(el) {
2749
2660
  this.handleValueChange(el, el.value);
2750
2661
  }
2751
- }
2662
+ };
2752
2663
  /** @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 });
2753
- /** @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: [
2754
- {
2755
- provide: NG_VALUE_ACCESSOR,
2756
- useExisting: IonSelect,
2757
- multi: true,
2758
- },
2759
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2664
+ /** @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 });
2665
+ IonSelect = __decorate([
2666
+ ProxyCmp({
2667
+ defineCustomElementFn: defineCustomElement$1g,
2668
+ inputs: SELECT_INPUTS,
2669
+ methods: ['open'],
2670
+ })
2671
+ ], IonSelect);
2760
2672
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonSelect, decorators: [{
2761
2673
  type: Component,
2762
2674
  args: [{
@@ -2765,13 +2677,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2765
2677
  template: '<ng-content></ng-content>',
2766
2678
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2767
2679
  inputs: SELECT_INPUTS,
2768
- providers: [
2769
- {
2770
- provide: NG_VALUE_ACCESSOR,
2771
- useExisting: IonSelect,
2772
- multi: true,
2773
- },
2774
- ],
2680
+ providers: [accessorProvider$2],
2775
2681
  standalone: true,
2776
2682
  }]
2777
2683
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonChange: [{
@@ -2811,37 +2717,32 @@ const TEXTAREA_INPUTS = [
2811
2717
  'value',
2812
2718
  'wrap',
2813
2719
  ];
2814
- const TEXTAREA_METHODS = ['setFocus', 'getInputElement'];
2815
- class IonTextarea extends ValueAccessor {
2720
+ const accessorProvider$1 = {
2721
+ provide: NG_VALUE_ACCESSOR,
2722
+ useExisting: forwardRef(() => IonTextarea),
2723
+ multi: true,
2724
+ };
2725
+ let IonTextarea = class IonTextarea extends ValueAccessor {
2816
2726
  constructor(c, r, z, injector) {
2817
2727
  super(injector, r);
2818
2728
  this.z = z;
2819
- defineCustomElement$1h();
2820
2729
  c.detach();
2821
2730
  this.el = r.nativeElement;
2822
2731
  proxyOutputs(this, this.el, ['ionChange', 'ionInput', 'ionBlur', 'ionFocus']);
2823
2732
  }
2824
- ngOnInit() {
2825
- /**
2826
- * Data-bound input properties are set
2827
- * by Angular after the constructor, so
2828
- * we need to run the proxy in ngOnInit.
2829
- */
2830
- proxyInputs(IonTextarea, TEXTAREA_INPUTS);
2831
- proxyMethods(IonTextarea, TEXTAREA_METHODS);
2832
- }
2833
2733
  handleIonInput(el) {
2834
2734
  this.handleValueChange(el, el.value);
2835
2735
  }
2836
- }
2736
+ };
2837
2737
  /** @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 });
2838
- /** @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: [
2839
- {
2840
- provide: NG_VALUE_ACCESSOR,
2841
- useExisting: IonTextarea,
2842
- multi: true,
2843
- },
2844
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2738
+ /** @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 });
2739
+ IonTextarea = __decorate([
2740
+ ProxyCmp({
2741
+ defineCustomElementFn: defineCustomElement$1h,
2742
+ inputs: TEXTAREA_INPUTS,
2743
+ methods: ['setFocus', 'getInputElement'],
2744
+ })
2745
+ ], IonTextarea);
2845
2746
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonTextarea, decorators: [{
2846
2747
  type: Component,
2847
2748
  args: [{
@@ -2850,13 +2751,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2850
2751
  template: '<ng-content></ng-content>',
2851
2752
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2852
2753
  inputs: TEXTAREA_INPUTS,
2853
- providers: [
2854
- {
2855
- provide: NG_VALUE_ACCESSOR,
2856
- useExisting: IonTextarea,
2857
- multi: true,
2858
- },
2859
- ],
2754
+ providers: [accessorProvider$1],
2860
2755
  standalone: true,
2861
2756
  }]
2862
2757
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonInput: [{
@@ -2876,23 +2771,19 @@ const TOGGLE_INPUTS = [
2876
2771
  'name',
2877
2772
  'value',
2878
2773
  ];
2879
- class IonToggle extends ValueAccessor {
2774
+ const accessorProvider = {
2775
+ provide: NG_VALUE_ACCESSOR,
2776
+ useExisting: forwardRef(() => IonToggle),
2777
+ multi: true,
2778
+ };
2779
+ let IonToggle = class IonToggle extends ValueAccessor {
2880
2780
  constructor(c, r, z, injector) {
2881
2781
  super(injector, r);
2882
2782
  this.z = z;
2883
- defineCustomElement$1i();
2884
2783
  c.detach();
2885
2784
  this.el = r.nativeElement;
2886
2785
  proxyOutputs(this, this.el, ['ionChange', 'ionFocus', 'ionBlur']);
2887
2786
  }
2888
- ngOnInit() {
2889
- /**
2890
- * Data-bound input properties are set
2891
- * by Angular after the constructor, so
2892
- * we need to run the proxy in ngOnInit.
2893
- */
2894
- proxyInputs(IonToggle, TOGGLE_INPUTS);
2895
- }
2896
2787
  writeValue(value) {
2897
2788
  this.elementRef.nativeElement.checked = this.lastValue = value;
2898
2789
  setIonicClasses(this.elementRef);
@@ -2900,15 +2791,15 @@ class IonToggle extends ValueAccessor {
2900
2791
  handleIonChange(el) {
2901
2792
  this.handleValueChange(el, el.checked);
2902
2793
  }
2903
- }
2794
+ };
2904
2795
  /** @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 });
2905
- /** @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: [
2906
- {
2907
- provide: NG_VALUE_ACCESSOR,
2908
- useExisting: IonToggle,
2909
- multi: true,
2910
- },
2911
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2796
+ /** @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 });
2797
+ IonToggle = __decorate([
2798
+ ProxyCmp({
2799
+ defineCustomElementFn: defineCustomElement$1i,
2800
+ inputs: TOGGLE_INPUTS,
2801
+ })
2802
+ ], IonToggle);
2912
2803
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: IonToggle, decorators: [{
2913
2804
  type: Component,
2914
2805
  args: [{
@@ -2917,13 +2808,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
2917
2808
  template: '<ng-content></ng-content>',
2918
2809
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2919
2810
  inputs: TOGGLE_INPUTS,
2920
- providers: [
2921
- {
2922
- provide: NG_VALUE_ACCESSOR,
2923
- useExisting: IonToggle,
2924
- multi: true,
2925
- },
2926
- ],
2811
+ providers: [accessorProvider],
2927
2812
  standalone: true,
2928
2813
  }]
2929
2814
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Injector }]; }, propDecorators: { handleIonChange: [{