@ionic/angular 9.0.4-dev.11789406216.162770a8 → 9.0.4-dev.11789496656.1690cf55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/directives/navigation/back-button.d.ts +1 -0
- package/dist/common/directives/navigation/back-button.js +15 -3
- package/dist/common/directives/navigation/back-button.js.map +1 -1
- package/dist/common/directives/navigation/nav.d.ts +2 -0
- package/dist/common/directives/navigation/nav.js +12 -3
- package/dist/common/directives/navigation/nav.js.map +1 -1
- package/dist/common/directives/navigation/router-outlet.d.ts +2 -0
- package/dist/common/directives/navigation/router-outlet.js +8 -2
- package/dist/common/directives/navigation/router-outlet.js.map +1 -1
- package/dist/common/overlays/modal.d.ts +9 -0
- package/dist/common/overlays/modal.js +14 -11
- package/dist/common/overlays/modal.js.map +1 -1
- package/dist/common/overlays/popover.d.ts +10 -0
- package/dist/common/overlays/popover.js +15 -12
- package/dist/common/overlays/popover.js.map +1 -1
- package/dist/common/utils/boolean-attribute.d.ts +24 -0
- package/dist/common/utils/boolean-attribute.js +36 -0
- package/dist/common/utils/boolean-attribute.js.map +1 -0
- package/dist/standalone/directives/checkbox.d.ts +3 -0
- package/dist/standalone/directives/checkbox.js +8 -5
- package/dist/standalone/directives/checkbox.js.map +1 -1
- package/dist/standalone/directives/datetime.d.ts +9 -0
- package/dist/standalone/directives/datetime.js +14 -11
- package/dist/standalone/directives/datetime.js.map +1 -1
- package/dist/standalone/directives/icon.d.ts +3 -0
- package/dist/standalone/directives/icon.js +19 -3
- package/dist/standalone/directives/icon.js.map +1 -1
- package/dist/standalone/directives/input-otp.d.ts +2 -0
- package/dist/standalone/directives/input-otp.js +7 -4
- package/dist/standalone/directives/input-otp.js.map +1 -1
- package/dist/standalone/directives/input.d.ts +10 -0
- package/dist/standalone/directives/input.js +15 -12
- package/dist/standalone/directives/input.js.map +1 -1
- package/dist/standalone/directives/radio-group.d.ts +1 -0
- package/dist/standalone/directives/radio-group.js +13 -3
- package/dist/standalone/directives/radio-group.js.map +1 -1
- package/dist/standalone/directives/range.d.ts +5 -0
- package/dist/standalone/directives/range.js +10 -7
- package/dist/standalone/directives/range.js.map +1 -1
- package/dist/standalone/directives/searchbar.d.ts +4 -0
- package/dist/standalone/directives/searchbar.js +9 -6
- package/dist/standalone/directives/searchbar.js.map +1 -1
- package/dist/standalone/directives/segment.d.ts +4 -0
- package/dist/standalone/directives/segment.js +14 -3
- package/dist/standalone/directives/segment.js.map +1 -1
- package/dist/standalone/directives/select.d.ts +2 -0
- package/dist/standalone/directives/select.js +7 -4
- package/dist/standalone/directives/select.js.map +1 -1
- package/dist/standalone/directives/textarea.d.ts +8 -0
- package/dist/standalone/directives/textarea.js +13 -10
- package/dist/standalone/directives/textarea.js.map +1 -1
- package/dist/standalone/directives/toggle.d.ts +3 -0
- package/dist/standalone/directives/toggle.js +8 -5
- package/dist/standalone/directives/toggle.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/standalone/directives/input.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,uBAAuB,EAEvB,SAAS,EAGT,YAAY,EAGZ,UAAU,GACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAMtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;;AAEvE,MAAM,YAAY,GAAG;IACnB,QAAQ;IACR,gBAAgB;IAChB,cAAc;IACd,aAAa;
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/standalone/directives/input.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,uBAAuB,EAEvB,SAAS,EAGT,YAAY,EAGZ,UAAU,GACX,MAA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AwB,+CACvB,wBAAwB,mDAE5B,wBAAwB,kGAGvB,wBAAwB,oSAaxB,wBAAwB,oGAIxB,wBAAwB,sCACxB,wBAAwB,0EAGtB,wBAAwB,kIAoB9C;YACT;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,WAAW,EAAE,UAAU,EAAC,GAAG,EAAE,CAAC,QAAQ,EAAC;gBACvC,KAAK,EAAE,IAAI;aACZ;SACF,iDATS,2BAA2B;;AAY1B,QAAQ;IApBpB,QAAQ,CAAC;QACR,qBAAqB,EAAE,mBAAmB;QAC1C,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EAAE,CAAC,UAAU,EAAE,iBAAiB,CAAC;KACzC,CAAC;GAgBW,QAAQ,CA4BpB;;2FA5BY,QAAQ;kBAfpB,SAAS;mBAAC;oBACT,QAAQ,EAAE,WAAW;oBACrB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,QAAQ,EAAE,2BAA2B;oBACrC,uEAAuE;oBACvE,MAAM,EAAE,YAAY;oBACpB,SAAS,EAAE;wBACT;4BACE,OAAO,EAAE,iBAAiB;4BAC1B,WAAW,EAAE,UAAU,EAAC,GAAG,EAAE,SAAS,EAAC;4BACvC,KAAK,EAAE,IAAI;yBACZ;qBACF;oBACD,UAAU,EAAE,IAAI;iBACjB;;sBAUE,YAAY;uBAAC,UAAU,EAAE,CAAC,eAAe,CAAC","sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n HostListener,\n Injector,\n NgZone,\n forwardRef,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ValueAccessor } from '@ionic/angular/common';\nimport type {\n InputInputEventDetail as IIonInputInputInputEventDetail,\n InputChangeEventDetail as IIonInputInputChangeEventDetail,\n Components,\n} from '@ionic/core/components';\nimport { defineCustomElement } from '@ionic/core/components/ion-input.js';\n\nimport { nullableBooleanAttribute } from './angular-component-lib/boolean-attribute';\nimport { ProxyCmp, proxyOutputs } from './angular-component-lib/utils';\n\nconst INPUT_INPUTS = [\n 'accept',\n 'autocapitalize',\n 'autocomplete',\n { name: 'autocorrect', transform: nullableBooleanAttribute },\n { name: 'autofocus', transform: nullableBooleanAttribute },\n { name: 'clearInput', transform: nullableBooleanAttribute },\n { name: 'clearOnEdit', transform: nullableBooleanAttribute },\n 'color',\n { name: 'counter', transform: nullableBooleanAttribute },\n 'counterFormatter',\n 'debounce',\n { name: 'disabled', transform: nullableBooleanAttribute },\n 'enterkeyhint',\n 'errorText',\n 'fill',\n 'helperText',\n 'inputmode',\n 'label',\n 'labelPlacement',\n 'max',\n 'maxlength',\n 'min',\n 'minlength',\n 'mode',\n { name: 'multiple', transform: nullableBooleanAttribute },\n 'name',\n 'pattern',\n 'placeholder',\n { name: 'readonly', transform: nullableBooleanAttribute },\n { name: 'required', transform: nullableBooleanAttribute },\n 'shape',\n 'size',\n { name: 'spellcheck', transform: nullableBooleanAttribute },\n 'step',\n 'type',\n 'value',\n];\n\n/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */\nconst INPUT_PROXY_INPUTS = INPUT_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));\n\n@ProxyCmp({\n defineCustomElementFn: defineCustomElement,\n inputs: INPUT_PROXY_INPUTS,\n methods: ['setFocus', 'getInputElement'],\n})\n@Component({\n selector: 'ion-input',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: INPUT_INPUTS,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => IonInput),\n multi: true,\n },\n ],\n standalone: true,\n})\nexport class IonInput extends ValueAccessor {\n protected el: HTMLElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone, injector: Injector) {\n super(injector, r);\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['ionInput', 'ionChange', 'ionBlur', 'ionFocus']);\n }\n\n @HostListener('ionInput', ['$event.target'])\n handleIonInput(el: HTMLIonInputElement): void {\n this.handleValueChange(el, el.value);\n }\n\n registerOnChange(fn: (_: any) => void): void {\n super.registerOnChange((value: string) => {\n if (this.type === 'number') {\n /**\n * If the input type is `number`, we need to convert the value to a number\n * when the value is not empty. If the value is empty, we want to treat\n * the value as null.\n */\n fn(value === '' ? null : parseFloat(value));\n } else {\n fn(value);\n }\n });\n }\n}\n\nexport declare interface IonInput extends Components.IonInput {\n /**\n * The `ionInput` event is fired each time the user modifies the input's value.\nUnlike the `ionChange` event, the `ionInput` event is fired for each alteration\nto the input's value. This typically happens for each keystroke as the user types.\n\nFor elements that accept text input (`type=text`, `type=tel`, etc.), the interface\nis [`InputEvent`](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent); for others,\nthe interface is [`Event`](https://developer.mozilla.org/en-US/docs/Web/API/Event). If\nthe input is cleared on edit, the type is `null`.\n */\n ionInput: EventEmitter<CustomEvent<IIonInputInputInputEventDetail>>;\n /**\n * The `ionChange` event is fired when the user modifies the input's value.\nUnlike the `ionInput` event, the `ionChange` event is only fired when changes\nare committed, not as the user types.\n\nDepending on the way the users interacts with the element, the `ionChange`\nevent fires at a different moment:\n- When the user commits the change explicitly (e.g. by selecting a date\nfrom a date picker for `<ion-input type=\"date\">`, pressing the \"Enter\" key, etc.).\n- When the element loses focus after its value has changed: for elements\nwhere the user's interaction is typing.\n */\n ionChange: EventEmitter<CustomEvent<IIonInputInputChangeEventDetail>>;\n /**\n * Emitted when the input loses focus.\n */\n ionBlur: EventEmitter<CustomEvent<FocusEvent>>;\n /**\n * Emitted when the input has focus.\n */\n ionFocus: EventEmitter<CustomEvent<FocusEvent>>;\n}\n"]}
|
|
@@ -9,6 +9,7 @@ export declare class IonRadioGroup extends ValueAccessor {
|
|
|
9
9
|
handleIonChange(el: HTMLIonRadioGroupElement): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<IonRadioGroup, never>;
|
|
11
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<IonRadioGroup, "ion-radio-group", never, { "allowEmptySelection": { "alias": "allowEmptySelection"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
12
|
+
static ngAcceptInputType_allowEmptySelection: boolean | string | null | undefined;
|
|
12
13
|
}
|
|
13
14
|
export declare interface IonRadioGroup extends Components.IonRadioGroup {
|
|
14
15
|
/**
|
|
@@ -3,9 +3,19 @@ import { ChangeDetectionStrategy, Component, HostListener, forwardRef, } from '@
|
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
4
|
import { ValueAccessor } from '@ionic/angular/common';
|
|
5
5
|
import { defineCustomElement } from '@ionic/core/components/ion-radio-group.js';
|
|
6
|
+
import { nullableBooleanAttribute } from './angular-component-lib/boolean-attribute';
|
|
6
7
|
import { ProxyCmp, proxyOutputs } from './angular-component-lib/utils';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
const RADIO_GROUP_INPUTS = [
|
|
9
|
+
const RADIO_GROUP_INPUTS = [
|
|
10
|
+
{ name: 'allowEmptySelection', transform: nullableBooleanAttribute },
|
|
11
|
+
'compareWith',
|
|
12
|
+
'errorText',
|
|
13
|
+
'helperText',
|
|
14
|
+
'name',
|
|
15
|
+
'value',
|
|
16
|
+
];
|
|
17
|
+
/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */
|
|
18
|
+
const RADIO_GROUP_PROXY_INPUTS = RADIO_GROUP_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));
|
|
9
19
|
let IonRadioGroup = class IonRadioGroup extends ValueAccessor {
|
|
10
20
|
z;
|
|
11
21
|
el;
|
|
@@ -20,7 +30,7 @@ let IonRadioGroup = class IonRadioGroup extends ValueAccessor {
|
|
|
20
30
|
this.handleValueChange(el, el.value);
|
|
21
31
|
}
|
|
22
32
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonRadioGroup, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
33
|
+
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "22.0.0", type: IonRadioGroup, isStandalone: true, selector: "ion-radio-group", inputs: { allowEmptySelection: ["allowEmptySelection", "allowEmptySelection", nullableBooleanAttribute], compareWith: "compareWith", errorText: "errorText", helperText: "helperText", name: "name", value: "value" }, host: { listeners: { "ionChange": "handleIonChange($event.target)" } }, providers: [
|
|
24
34
|
{
|
|
25
35
|
provide: NG_VALUE_ACCESSOR,
|
|
26
36
|
useExisting: forwardRef((() => IonRadioGroup)),
|
|
@@ -31,7 +41,7 @@ let IonRadioGroup = class IonRadioGroup extends ValueAccessor {
|
|
|
31
41
|
IonRadioGroup = __decorate([
|
|
32
42
|
ProxyCmp({
|
|
33
43
|
defineCustomElementFn: defineCustomElement,
|
|
34
|
-
inputs:
|
|
44
|
+
inputs: RADIO_GROUP_PROXY_INPUTS,
|
|
35
45
|
})
|
|
36
46
|
], IonRadioGroup);
|
|
37
47
|
export { IonRadioGroup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../../src/standalone/directives/radio-group.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,uBAAuB,EAEvB,SAAS,EAGT,YAAY,EAGZ,UAAU,GACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB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AI,CAAC,EAAE,GAAG,CAAC,CAAC,aAAa,CAAC;QAC1B,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAC7C,CAAC;IAGD,eAAe,CAAC,EAA4B;QAC1C,IAAI,CAAC,iBAAiB,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;0HAZU,aAAa;8GAAb,aAAa,iIA9BkB,wBAAwB,oMAqBvD;YACT;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,WAAW,EAAE,UAAU,EAAC,GAAG,EAAE,CAAC,aAAa,EAAC;gBAC5C,KAAK,EAAE,IAAI;aACZ;SACF,iDATS,2BAA2B;;AAY1B,aAAa;IAnBzB,QAAQ,CAAC;QACR,qBAAqB,EAAE,mBAAmB;QAC1C,MAAM,EAAE,wBAAwB;KACjC,CAAC;GAgBW,aAAa,CAazB;;2FAbY,aAAa;kBAfzB,SAAS;mBAAC;oBACT,QAAQ,EAAE,iBAAiB;oBAC3B,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,QAAQ,EAAE,2BAA2B;oBACrC,uEAAuE;oBACvE,MAAM,EAAE,kBAAkB;oBAC1B,SAAS,EAAE;wBACT;4BACE,OAAO,EAAE,iBAAiB;4BAC1B,WAAW,EAAE,UAAU,EAAC,GAAG,EAAE,cAAc,EAAC;4BAC5C,KAAK,EAAE,IAAI;yBACZ;qBACF;oBACD,UAAU,EAAE,IAAI;iBACjB;;sBAUE,YAAY;uBAAC,WAAW,EAAE,CAAC,eAAe,CAAC","sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n HostListener,\n Injector,\n NgZone,\n forwardRef,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ValueAccessor } from '@ionic/angular/common';\nimport type { RadioGroupChangeEventDetail, Components } from '@ionic/core/components';\nimport { defineCustomElement } from '@ionic/core/components/ion-radio-group.js';\n\nimport { nullableBooleanAttribute } from './angular-component-lib/boolean-attribute';\nimport { ProxyCmp, proxyOutputs } from './angular-component-lib/utils';\n\nconst RADIO_GROUP_INPUTS = [\n { name: 'allowEmptySelection', transform: nullableBooleanAttribute },\n 'compareWith',\n 'errorText',\n 'helperText',\n 'name',\n 'value',\n];\n\n/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */\nconst RADIO_GROUP_PROXY_INPUTS = RADIO_GROUP_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));\n\n@ProxyCmp({\n defineCustomElementFn: defineCustomElement,\n inputs: RADIO_GROUP_PROXY_INPUTS,\n})\n@Component({\n selector: 'ion-radio-group',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: RADIO_GROUP_INPUTS,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => IonRadioGroup),\n multi: true,\n },\n ],\n standalone: true,\n})\nexport class IonRadioGroup extends ValueAccessor {\n protected el: HTMLElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone, injector: Injector) {\n super(injector, r);\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['ionChange']);\n }\n\n @HostListener('ionChange', ['$event.target'])\n handleIonChange(el: HTMLIonRadioGroupElement): void {\n this.handleValueChange(el, el.value);\n }\n}\n\nexport declare interface IonRadioGroup extends Components.IonRadioGroup {\n /**\n * Emitted when the value has changed.\n */\n ionChange: EventEmitter<CustomEvent<RadioGroupChangeEventDetail>>;\n}\n"]}
|
|
@@ -9,6 +9,11 @@ export declare class IonRange extends ValueAccessor {
|
|
|
9
9
|
handleIonInput(el: HTMLIonRangeElement): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<IonRange, never>;
|
|
11
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<IonRange, "ion-range", never, { "activeBarStart": { "alias": "activeBarStart"; "required": false; }; "color": { "alias": "color"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "dualKnobs": { "alias": "dualKnobs"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "name": { "alias": "name"; "required": false; }; "pin": { "alias": "pin"; "required": false; }; "pinFormatter": { "alias": "pinFormatter"; "required": false; }; "snaps": { "alias": "snaps"; "required": false; }; "step": { "alias": "step"; "required": false; }; "ticks": { "alias": "ticks"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
12
|
+
static ngAcceptInputType_disabled: boolean | string | null | undefined;
|
|
13
|
+
static ngAcceptInputType_dualKnobs: boolean | string | null | undefined;
|
|
14
|
+
static ngAcceptInputType_pin: boolean | string | null | undefined;
|
|
15
|
+
static ngAcceptInputType_snaps: boolean | string | null | undefined;
|
|
16
|
+
static ngAcceptInputType_ticks: boolean | string | null | undefined;
|
|
12
17
|
}
|
|
13
18
|
export declare interface IonRange extends Components.IonRange {
|
|
14
19
|
/**
|
|
@@ -3,27 +3,30 @@ import { ChangeDetectionStrategy, Component, HostListener, forwardRef, } from '@
|
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
4
|
import { ValueAccessor } from '@ionic/angular/common';
|
|
5
5
|
import { defineCustomElement } from '@ionic/core/components/ion-range.js';
|
|
6
|
+
import { nullableBooleanAttribute } from './angular-component-lib/boolean-attribute';
|
|
6
7
|
import { ProxyCmp, proxyOutputs } from './angular-component-lib/utils';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
const RANGE_INPUTS = [
|
|
9
10
|
'activeBarStart',
|
|
10
11
|
'color',
|
|
11
12
|
'debounce',
|
|
12
|
-
'disabled',
|
|
13
|
-
'dualKnobs',
|
|
13
|
+
{ name: 'disabled', transform: nullableBooleanAttribute },
|
|
14
|
+
{ name: 'dualKnobs', transform: nullableBooleanAttribute },
|
|
14
15
|
'label',
|
|
15
16
|
'labelPlacement',
|
|
16
17
|
'max',
|
|
17
18
|
'min',
|
|
18
19
|
'mode',
|
|
19
20
|
'name',
|
|
20
|
-
'pin',
|
|
21
|
+
{ name: 'pin', transform: nullableBooleanAttribute },
|
|
21
22
|
'pinFormatter',
|
|
22
|
-
'snaps',
|
|
23
|
+
{ name: 'snaps', transform: nullableBooleanAttribute },
|
|
23
24
|
'step',
|
|
24
|
-
'ticks',
|
|
25
|
+
{ name: 'ticks', transform: nullableBooleanAttribute },
|
|
25
26
|
'value',
|
|
26
27
|
];
|
|
28
|
+
/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */
|
|
29
|
+
const RANGE_PROXY_INPUTS = RANGE_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));
|
|
27
30
|
let IonRange = class IonRange extends ValueAccessor {
|
|
28
31
|
z;
|
|
29
32
|
el;
|
|
@@ -38,7 +41,7 @@ let IonRange = class IonRange extends ValueAccessor {
|
|
|
38
41
|
this.handleValueChange(el, el.value);
|
|
39
42
|
}
|
|
40
43
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonRange, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
41
|
-
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
44
|
+
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "22.0.0", type: IonRange, isStandalone: true, selector: "ion-range", inputs: { activeBarStart: "activeBarStart", color: "color", debounce: "debounce", disabled: ["disabled", "disabled", nullableBooleanAttribute], dualKnobs: ["dualKnobs", "dualKnobs", nullableBooleanAttribute], label: "label", labelPlacement: "labelPlacement", max: "max", min: "min", mode: "mode", name: "name", pin: ["pin", "pin", nullableBooleanAttribute], pinFormatter: "pinFormatter", snaps: ["snaps", "snaps", nullableBooleanAttribute], step: "step", ticks: ["ticks", "ticks", nullableBooleanAttribute], value: "value" }, host: { listeners: { "ionInput": "handleIonInput($event.target)" } }, providers: [
|
|
42
45
|
{
|
|
43
46
|
provide: NG_VALUE_ACCESSOR,
|
|
44
47
|
useExisting: forwardRef((() => IonRange)),
|
|
@@ -49,7 +52,7 @@ let IonRange = class IonRange extends ValueAccessor {
|
|
|
49
52
|
IonRange = __decorate([
|
|
50
53
|
ProxyCmp({
|
|
51
54
|
defineCustomElementFn: defineCustomElement,
|
|
52
|
-
inputs:
|
|
55
|
+
inputs: RANGE_PROXY_INPUTS,
|
|
53
56
|
})
|
|
54
57
|
], IonRange);
|
|
55
58
|
export { IonRange };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"range.js","sourceRoot":"","sources":["../../../src/standalone/directives/range.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,uBAAuB,EAEvB,SAAS,EAGT,YAAY,EAGZ,UAAU,GACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAOtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;;AAEvE,MAAM,YAAY,GAAG;IACnB,gBAAgB;IAChB,OAAO;IACP,UAAU;IACV,UAAU;
|
|
1
|
+
{"version":3,"file":"range.js","sourceRoot":"","sources":["../../../src/standalone/directives/range.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,uBAAuB,EAEvB,SAAS,EAGT,YAAY,EAGZ,UAAU,GACX,MAAM,eAAe,CAAC;AACvB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C,EAAE,GAAG,CAAC,CAAC,aAAa,CAAC;QAC1B,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,kBAAkB,EAAE,gBAAgB,CAAC,CAAC,CAAC;IACtH,CAAC;IAGD,cAAc,CAAC,EAAuB;QACpC,IAAI,CAAC,iBAAiB,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;0HAZU,QAAQ;8GAAR,QAAQ,kKAtCY,wBAAwB,yCACvB,wBAAwB,6HAO9B,wBAAwB,2DAEtB,wBAAwB,2CAExB,wBAAwB,sGAiBzC;YACT;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,WAAW,EAAE,UAAU,EAAC,GAAG,EAAE,CAAC,QAAQ,EAAC;gBACvC,KAAK,EAAE,IAAI;aACZ;SACF,iDATS,2BAA2B;;AAY1B,QAAQ;IAnBpB,QAAQ,CAAC;QACR,qBAAqB,EAAE,mBAAmB;QAC1C,MAAM,EAAE,kBAAkB;KAC3B,CAAC;GAgBW,QAAQ,CAapB;;2FAbY,QAAQ;kBAfpB,SAAS;mBAAC;oBACT,QAAQ,EAAE,WAAW;oBACrB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,QAAQ,EAAE,2BAA2B;oBACrC,uEAAuE;oBACvE,MAAM,EAAE,YAAY;oBACpB,SAAS,EAAE;wBACT;4BACE,OAAO,EAAE,iBAAiB;4BAC1B,WAAW,EAAE,UAAU,EAAC,GAAG,EAAE,SAAS,EAAC;4BACvC,KAAK,EAAE,IAAI;yBACZ;qBACF;oBACD,UAAU,EAAE,IAAI;iBACjB;;sBAUE,YAAY;uBAAC,UAAU,EAAE,CAAC,eAAe,CAAC","sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n HostListener,\n Injector,\n NgZone,\n forwardRef,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ValueAccessor } from '@ionic/angular/common';\nimport type {\n RangeChangeEventDetail,\n RangeKnobMoveStartEventDetail,\n RangeKnobMoveEndEventDetail,\n Components,\n} from '@ionic/core/components';\nimport { defineCustomElement } from '@ionic/core/components/ion-range.js';\n\nimport { nullableBooleanAttribute } from './angular-component-lib/boolean-attribute';\nimport { ProxyCmp, proxyOutputs } from './angular-component-lib/utils';\n\nconst RANGE_INPUTS = [\n 'activeBarStart',\n 'color',\n 'debounce',\n { name: 'disabled', transform: nullableBooleanAttribute },\n { name: 'dualKnobs', transform: nullableBooleanAttribute },\n 'label',\n 'labelPlacement',\n 'max',\n 'min',\n 'mode',\n 'name',\n { name: 'pin', transform: nullableBooleanAttribute },\n 'pinFormatter',\n { name: 'snaps', transform: nullableBooleanAttribute },\n 'step',\n { name: 'ticks', transform: nullableBooleanAttribute },\n 'value',\n];\n\n/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */\nconst RANGE_PROXY_INPUTS = RANGE_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));\n\n@ProxyCmp({\n defineCustomElementFn: defineCustomElement,\n inputs: RANGE_PROXY_INPUTS,\n})\n@Component({\n selector: 'ion-range',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: RANGE_INPUTS,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => IonRange),\n multi: true,\n },\n ],\n standalone: true,\n})\nexport class IonRange extends ValueAccessor {\n protected el: HTMLElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone, injector: Injector) {\n super(injector, r);\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['ionChange', 'ionInput', 'ionFocus', 'ionBlur', 'ionKnobMoveStart', 'ionKnobMoveEnd']);\n }\n\n @HostListener('ionInput', ['$event.target'])\n handleIonInput(el: HTMLIonRangeElement): void {\n this.handleValueChange(el, el.value);\n }\n}\n\nexport declare interface IonRange extends Components.IonRange {\n /**\n * The `ionChange` event is fired for `<ion-range>` elements when the user\nmodifies the element's value:\n- When the user releases the knob after dragging;\n- When the user moves the knob with keyboard arrows\n\n`ionChange` is not fired when the value is changed programmatically.\n */\n ionChange: EventEmitter<CustomEvent<RangeChangeEventDetail>>;\n /**\n * The `ionInput` event is fired for `<ion-range>` elements when the value\nis modified. Unlike `ionChange`, `ionInput` is fired continuously\nwhile the user is dragging the knob.\n */\n ionInput: EventEmitter<CustomEvent<RangeChangeEventDetail>>;\n /**\n * Emitted when the range has focus.\n */\n ionFocus: EventEmitter<CustomEvent<void>>;\n /**\n * Emitted when the range loses focus.\n */\n ionBlur: EventEmitter<CustomEvent<void>>;\n /**\n * Emitted when the user starts moving the range knob, whether through\nmouse drag, touch gesture, or keyboard interaction.\n */\n ionKnobMoveStart: EventEmitter<CustomEvent<RangeKnobMoveStartEventDetail>>;\n /**\n * Emitted when the user finishes moving the range knob, whether through\nmouse drag, touch gesture, or keyboard interaction.\n */\n ionKnobMoveEnd: EventEmitter<CustomEvent<RangeKnobMoveEndEventDetail>>;\n}\n"]}
|
|
@@ -9,6 +9,10 @@ export declare class IonSearchbar extends ValueAccessor {
|
|
|
9
9
|
handleIonInput(el: HTMLIonSearchbarElement): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<IonSearchbar, never>;
|
|
11
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<IonSearchbar, "ion-searchbar", never, { "animated": { "alias": "animated"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "autocorrect": { "alias": "autocorrect"; "required": false; }; "cancelButtonIcon": { "alias": "cancelButtonIcon"; "required": false; }; "cancelButtonText": { "alias": "cancelButtonText"; "required": false; }; "clearIcon": { "alias": "clearIcon"; "required": false; }; "color": { "alias": "color"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "enterkeyhint": { "alias": "enterkeyhint"; "required": false; }; "inputmode": { "alias": "inputmode"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "name": { "alias": "name"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "searchIcon": { "alias": "searchIcon"; "required": false; }; "showCancelButton": { "alias": "showCancelButton"; "required": false; }; "showClearButton": { "alias": "showClearButton"; "required": false; }; "spellcheck": { "alias": "spellcheck"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
12
|
+
static ngAcceptInputType_animated: boolean | string | null | undefined;
|
|
13
|
+
static ngAcceptInputType_autocorrect: boolean | string | null | undefined;
|
|
14
|
+
static ngAcceptInputType_disabled: boolean | string | null | undefined;
|
|
15
|
+
static ngAcceptInputType_spellcheck: boolean | string | null | undefined;
|
|
12
16
|
}
|
|
13
17
|
export declare interface IonSearchbar extends Components.IonSearchbar {
|
|
14
18
|
/**
|
|
@@ -3,18 +3,19 @@ import { ChangeDetectionStrategy, Component, HostListener, forwardRef, } from '@
|
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
4
|
import { ValueAccessor } from '@ionic/angular/common';
|
|
5
5
|
import { defineCustomElement } from '@ionic/core/components/ion-searchbar.js';
|
|
6
|
+
import { nullableBooleanAttribute } from './angular-component-lib/boolean-attribute';
|
|
6
7
|
import { ProxyCmp, proxyOutputs } from './angular-component-lib/utils';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
const SEARCHBAR_INPUTS = [
|
|
9
|
-
'animated',
|
|
10
|
+
{ name: 'animated', transform: nullableBooleanAttribute },
|
|
10
11
|
'autocomplete',
|
|
11
|
-
'autocorrect',
|
|
12
|
+
{ name: 'autocorrect', transform: nullableBooleanAttribute },
|
|
12
13
|
'cancelButtonIcon',
|
|
13
14
|
'cancelButtonText',
|
|
14
15
|
'clearIcon',
|
|
15
16
|
'color',
|
|
16
17
|
'debounce',
|
|
17
|
-
'disabled',
|
|
18
|
+
{ name: 'disabled', transform: nullableBooleanAttribute },
|
|
18
19
|
'enterkeyhint',
|
|
19
20
|
'inputmode',
|
|
20
21
|
'mode',
|
|
@@ -23,10 +24,12 @@ const SEARCHBAR_INPUTS = [
|
|
|
23
24
|
'searchIcon',
|
|
24
25
|
'showCancelButton',
|
|
25
26
|
'showClearButton',
|
|
26
|
-
'spellcheck',
|
|
27
|
+
{ name: 'spellcheck', transform: nullableBooleanAttribute },
|
|
27
28
|
'type',
|
|
28
29
|
'value',
|
|
29
30
|
];
|
|
31
|
+
/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */
|
|
32
|
+
const SEARCHBAR_PROXY_INPUTS = SEARCHBAR_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));
|
|
30
33
|
let IonSearchbar = class IonSearchbar extends ValueAccessor {
|
|
31
34
|
z;
|
|
32
35
|
el;
|
|
@@ -41,7 +44,7 @@ let IonSearchbar = class IonSearchbar extends ValueAccessor {
|
|
|
41
44
|
this.handleValueChange(el, el.value);
|
|
42
45
|
}
|
|
43
46
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonSearchbar, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
-
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
47
|
+
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "22.0.0", type: IonSearchbar, isStandalone: true, selector: "ion-searchbar", inputs: { animated: ["animated", "animated", nullableBooleanAttribute], autocomplete: "autocomplete", autocorrect: ["autocorrect", "autocorrect", nullableBooleanAttribute], cancelButtonIcon: "cancelButtonIcon", cancelButtonText: "cancelButtonText", clearIcon: "clearIcon", color: "color", debounce: "debounce", disabled: ["disabled", "disabled", nullableBooleanAttribute], enterkeyhint: "enterkeyhint", inputmode: "inputmode", mode: "mode", name: "name", placeholder: "placeholder", searchIcon: "searchIcon", showCancelButton: "showCancelButton", showClearButton: "showClearButton", spellcheck: ["spellcheck", "spellcheck", nullableBooleanAttribute], type: "type", value: "value" }, host: { listeners: { "ionInput": "handleIonInput($event.target)" } }, providers: [
|
|
45
48
|
{
|
|
46
49
|
provide: NG_VALUE_ACCESSOR,
|
|
47
50
|
useExisting: forwardRef((() => IonSearchbar)),
|
|
@@ -52,7 +55,7 @@ let IonSearchbar = class IonSearchbar extends ValueAccessor {
|
|
|
52
55
|
IonSearchbar = __decorate([
|
|
53
56
|
ProxyCmp({
|
|
54
57
|
defineCustomElementFn: defineCustomElement,
|
|
55
|
-
inputs:
|
|
58
|
+
inputs: SEARCHBAR_PROXY_INPUTS,
|
|
56
59
|
methods: ['setFocus', 'getInputElement'],
|
|
57
60
|
})
|
|
58
61
|
], IonSearchbar);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchbar.js","sourceRoot":"","sources":["../../../src/standalone/directives/searchbar.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,uBAAuB,EAEvB,SAAS,EAGT,YAAY,EAGZ,UAAU,GACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAE9E,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;;AAEvE,MAAM,gBAAgB,GAAG;IACvB,UAAU;
|
|
1
|
+
{"version":3,"file":"searchbar.js","sourceRoot":"","sources":["../../../src/standalone/directives/searchbar.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,uBAAuB,EAEvB,SAAS,EAGT,YAAY,EAGZ,UAAU,GACX,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ener,\n Injector,\n NgZone,\n forwardRef,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ValueAccessor } from '@ionic/angular/common';\nimport type { SearchbarInputEventDetail, SearchbarChangeEventDetail, Components } from '@ionic/core/components';\nimport { defineCustomElement } from '@ionic/core/components/ion-searchbar.js';\n\nimport { nullableBooleanAttribute } from './angular-component-lib/boolean-attribute';\nimport { ProxyCmp, proxyOutputs } from './angular-component-lib/utils';\n\nconst SEARCHBAR_INPUTS = [\n { name: 'animated', transform: nullableBooleanAttribute },\n 'autocomplete',\n { name: 'autocorrect', transform: nullableBooleanAttribute },\n 'cancelButtonIcon',\n 'cancelButtonText',\n 'clearIcon',\n 'color',\n 'debounce',\n { name: 'disabled', transform: nullableBooleanAttribute },\n 'enterkeyhint',\n 'inputmode',\n 'mode',\n 'name',\n 'placeholder',\n 'searchIcon',\n 'showCancelButton',\n 'showClearButton',\n { name: 'spellcheck', transform: nullableBooleanAttribute },\n 'type',\n 'value',\n];\n\n/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */\nconst SEARCHBAR_PROXY_INPUTS = SEARCHBAR_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));\n\n@ProxyCmp({\n defineCustomElementFn: defineCustomElement,\n inputs: SEARCHBAR_PROXY_INPUTS,\n methods: ['setFocus', 'getInputElement'],\n})\n@Component({\n selector: 'ion-searchbar',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: SEARCHBAR_INPUTS,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => IonSearchbar),\n multi: true,\n },\n ],\n standalone: true,\n})\nexport class IonSearchbar extends ValueAccessor {\n protected el: HTMLElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone, injector: Injector) {\n super(injector, r);\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['ionInput', 'ionChange', 'ionCancel', 'ionClear', 'ionBlur', 'ionFocus']);\n }\n\n @HostListener('ionInput', ['$event.target'])\n handleIonInput(el: HTMLIonSearchbarElement): void {\n this.handleValueChange(el, el.value);\n }\n}\n\nexport declare interface IonSearchbar extends Components.IonSearchbar {\n /**\n * Emitted when the `value` of the `ion-searchbar` element has changed.\n */\n ionInput: EventEmitter<CustomEvent<SearchbarInputEventDetail>>;\n /**\n * The `ionChange` event is fired for `<ion-searchbar>` elements when the user\nmodifies the element's value. Unlike the `ionInput` event, the `ionChange`\nevent is not necessarily fired for each alteration to an element's value.\n\nThe `ionChange` event is fired when the value has been committed\nby the user. This can happen when the element loses focus or\nwhen the \"Enter\" key is pressed. `ionChange` can also fire\nwhen clicking the clear or cancel buttons.\n */\n ionChange: EventEmitter<CustomEvent<SearchbarChangeEventDetail>>;\n /**\n * Emitted when the cancel button is clicked.\n */\n ionCancel: EventEmitter<CustomEvent<void>>;\n /**\n * Emitted when the clear input button is clicked.\n */\n ionClear: EventEmitter<CustomEvent<void>>;\n /**\n * Emitted when the input loses focus.\n */\n ionBlur: EventEmitter<CustomEvent<void>>;\n /**\n * Emitted when the input has focus.\n */\n ionFocus: EventEmitter<CustomEvent<void>>;\n}\n"]}
|
|
@@ -9,6 +9,10 @@ export declare class IonSegment extends ValueAccessor {
|
|
|
9
9
|
handleIonChange(el: HTMLIonSegmentElement): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<IonSegment, never>;
|
|
11
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<IonSegment, "ion-segment", never, { "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "selectOnFocus": { "alias": "selectOnFocus"; "required": false; }; "swipeGesture": { "alias": "swipeGesture"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
12
|
+
static ngAcceptInputType_disabled: boolean | string | null | undefined;
|
|
13
|
+
static ngAcceptInputType_scrollable: boolean | string | null | undefined;
|
|
14
|
+
static ngAcceptInputType_selectOnFocus: boolean | string | null | undefined;
|
|
15
|
+
static ngAcceptInputType_swipeGesture: boolean | string | null | undefined;
|
|
12
16
|
}
|
|
13
17
|
export declare interface IonSegment extends Components.IonSegment {
|
|
14
18
|
/**
|
|
@@ -3,9 +3,20 @@ import { ChangeDetectionStrategy, Component, HostListener, forwardRef, } from '@
|
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
4
|
import { ValueAccessor } from '@ionic/angular/common';
|
|
5
5
|
import { defineCustomElement } from '@ionic/core/components/ion-segment.js';
|
|
6
|
+
import { nullableBooleanAttribute } from './angular-component-lib/boolean-attribute';
|
|
6
7
|
import { ProxyCmp, proxyOutputs } from './angular-component-lib/utils';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
const SEGMENT_INPUTS = [
|
|
9
|
+
const SEGMENT_INPUTS = [
|
|
10
|
+
'color',
|
|
11
|
+
{ name: 'disabled', transform: nullableBooleanAttribute },
|
|
12
|
+
'mode',
|
|
13
|
+
{ name: 'scrollable', transform: nullableBooleanAttribute },
|
|
14
|
+
{ name: 'selectOnFocus', transform: nullableBooleanAttribute },
|
|
15
|
+
{ name: 'swipeGesture', transform: nullableBooleanAttribute },
|
|
16
|
+
'value',
|
|
17
|
+
];
|
|
18
|
+
/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */
|
|
19
|
+
const SEGMENT_PROXY_INPUTS = SEGMENT_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));
|
|
9
20
|
let IonSegment = class IonSegment extends ValueAccessor {
|
|
10
21
|
z;
|
|
11
22
|
el;
|
|
@@ -20,7 +31,7 @@ let IonSegment = class IonSegment extends ValueAccessor {
|
|
|
20
31
|
this.handleValueChange(el, el.value);
|
|
21
32
|
}
|
|
22
33
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonSegment, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
34
|
+
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "22.0.0", type: IonSegment, isStandalone: true, selector: "ion-segment", inputs: { color: "color", disabled: ["disabled", "disabled", nullableBooleanAttribute], mode: "mode", scrollable: ["scrollable", "scrollable", nullableBooleanAttribute], selectOnFocus: ["selectOnFocus", "selectOnFocus", nullableBooleanAttribute], swipeGesture: ["swipeGesture", "swipeGesture", nullableBooleanAttribute], value: "value" }, host: { listeners: { "ionChange": "handleIonChange($event.target)" } }, providers: [
|
|
24
35
|
{
|
|
25
36
|
provide: NG_VALUE_ACCESSOR,
|
|
26
37
|
useExisting: forwardRef((() => IonSegment)),
|
|
@@ -31,7 +42,7 @@ let IonSegment = class IonSegment extends ValueAccessor {
|
|
|
31
42
|
IonSegment = __decorate([
|
|
32
43
|
ProxyCmp({
|
|
33
44
|
defineCustomElementFn: defineCustomElement,
|
|
34
|
-
inputs:
|
|
45
|
+
inputs: SEGMENT_PROXY_INPUTS,
|
|
35
46
|
})
|
|
36
47
|
], IonSegment);
|
|
37
48
|
export { IonSegment };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segment.js","sourceRoot":"","sources":["../../../src/standalone/directives/segment.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,uBAAuB,EAEvB,SAAS,EAGT,YAAY,EAGZ,UAAU,GACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,mBAAmB,EAAE,MA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one,\n forwardRef,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ValueAccessor } from '@ionic/angular/common';\nimport type { SegmentChangeEventDetail, Components } from '@ionic/core/components';\nimport { defineCustomElement } from '@ionic/core/components/ion-segment.js';\n\nimport { nullableBooleanAttribute } from './angular-component-lib/boolean-attribute';\nimport { ProxyCmp, proxyOutputs } from './angular-component-lib/utils';\n\nconst SEGMENT_INPUTS = [\n 'color',\n { name: 'disabled', transform: nullableBooleanAttribute },\n 'mode',\n { name: 'scrollable', transform: nullableBooleanAttribute },\n { name: 'selectOnFocus', transform: nullableBooleanAttribute },\n { name: 'swipeGesture', transform: nullableBooleanAttribute },\n 'value',\n];\n\n/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */\nconst SEGMENT_PROXY_INPUTS = SEGMENT_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));\n\n@ProxyCmp({\n defineCustomElementFn: defineCustomElement,\n inputs: SEGMENT_PROXY_INPUTS,\n})\n@Component({\n selector: 'ion-segment',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: SEGMENT_INPUTS,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => IonSegment),\n multi: true,\n },\n ],\n standalone: true,\n})\nexport class IonSegment extends ValueAccessor {\n protected el: HTMLElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone, injector: Injector) {\n super(injector, r);\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['ionChange']);\n }\n\n @HostListener('ionChange', ['$event.target'])\n handleIonChange(el: HTMLIonSegmentElement): void {\n this.handleValueChange(el, el.value);\n }\n}\n\nexport declare interface IonSegment extends Components.IonSegment {\n /**\n * Emitted when the value property has changed and any\ndragging pointer has been released from `ion-segment`.\n */\n ionChange: EventEmitter<CustomEvent<SegmentChangeEventDetail>>;\n}\n"]}
|
|
@@ -9,6 +9,8 @@ export declare class IonSelect extends ValueAccessor {
|
|
|
9
9
|
handleIonChange(el: HTMLIonSelectElement): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<IonSelect, never>;
|
|
11
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<IonSelect, "ion-select", never, { "cancelText": { "alias": "cancelText"; "required": false; }; "color": { "alias": "color"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "expandedIcon": { "alias": "expandedIcon"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "interface": { "alias": "interface"; "required": false; }; "interfaceOptions": { "alias": "interfaceOptions"; "required": false; }; "justify": { "alias": "justify"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "name": { "alias": "name"; "required": false; }; "okText": { "alias": "okText"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "selectedText": { "alias": "selectedText"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "toggleIcon": { "alias": "toggleIcon"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
12
|
+
static ngAcceptInputType_disabled: boolean | string | null | undefined;
|
|
13
|
+
static ngAcceptInputType_multiple: boolean | string | null | undefined;
|
|
12
14
|
}
|
|
13
15
|
export declare interface IonSelect extends Components.IonSelect {
|
|
14
16
|
/**
|
|
@@ -3,13 +3,14 @@ import { ChangeDetectionStrategy, Component, HostListener, forwardRef, } from '@
|
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
4
|
import { ValueAccessor } from '@ionic/angular/common';
|
|
5
5
|
import { defineCustomElement } from '@ionic/core/components/ion-select.js';
|
|
6
|
+
import { nullableBooleanAttribute } from './angular-component-lib/boolean-attribute';
|
|
6
7
|
import { ProxyCmp, proxyOutputs } from './angular-component-lib/utils';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
const SELECT_INPUTS = [
|
|
9
10
|
'cancelText',
|
|
10
11
|
'color',
|
|
11
12
|
'compareWith',
|
|
12
|
-
'disabled',
|
|
13
|
+
{ name: 'disabled', transform: nullableBooleanAttribute },
|
|
13
14
|
'errorText',
|
|
14
15
|
'expandedIcon',
|
|
15
16
|
'fill',
|
|
@@ -20,7 +21,7 @@ const SELECT_INPUTS = [
|
|
|
20
21
|
'label',
|
|
21
22
|
'labelPlacement',
|
|
22
23
|
'mode',
|
|
23
|
-
'multiple',
|
|
24
|
+
{ name: 'multiple', transform: nullableBooleanAttribute },
|
|
24
25
|
'name',
|
|
25
26
|
'okText',
|
|
26
27
|
'placeholder',
|
|
@@ -29,6 +30,8 @@ const SELECT_INPUTS = [
|
|
|
29
30
|
'toggleIcon',
|
|
30
31
|
'value',
|
|
31
32
|
];
|
|
33
|
+
/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */
|
|
34
|
+
const SELECT_PROXY_INPUTS = SELECT_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));
|
|
32
35
|
let IonSelect = class IonSelect extends ValueAccessor {
|
|
33
36
|
z;
|
|
34
37
|
el;
|
|
@@ -43,7 +46,7 @@ let IonSelect = class IonSelect extends ValueAccessor {
|
|
|
43
46
|
this.handleValueChange(el, el.value);
|
|
44
47
|
}
|
|
45
48
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonSelect, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
-
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
49
|
+
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "22.0.0", type: IonSelect, isStandalone: true, selector: "ion-select", inputs: { cancelText: "cancelText", color: "color", compareWith: "compareWith", disabled: ["disabled", "disabled", nullableBooleanAttribute], errorText: "errorText", expandedIcon: "expandedIcon", fill: "fill", helperText: "helperText", interface: "interface", interfaceOptions: "interfaceOptions", justify: "justify", label: "label", labelPlacement: "labelPlacement", mode: "mode", multiple: ["multiple", "multiple", nullableBooleanAttribute], name: "name", okText: "okText", placeholder: "placeholder", selectedText: "selectedText", shape: "shape", toggleIcon: "toggleIcon", value: "value" }, host: { listeners: { "ionChange": "handleIonChange($event.target)" } }, providers: [
|
|
47
50
|
{
|
|
48
51
|
provide: NG_VALUE_ACCESSOR,
|
|
49
52
|
useExisting: forwardRef((() => IonSelect)),
|
|
@@ -54,7 +57,7 @@ let IonSelect = class IonSelect extends ValueAccessor {
|
|
|
54
57
|
IonSelect = __decorate([
|
|
55
58
|
ProxyCmp({
|
|
56
59
|
defineCustomElementFn: defineCustomElement,
|
|
57
|
-
inputs:
|
|
60
|
+
inputs: SELECT_PROXY_INPUTS,
|
|
58
61
|
methods: ['open'],
|
|
59
62
|
})
|
|
60
63
|
], IonSelect);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../../src/standalone/directives/select.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,uBAAuB,EAEvB,SAAS,EAGT,YAAY,EAGZ,UAAU,GACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAE3E,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;;AAEvE,MAAM,aAAa,GAAG;IACpB,YAAY;IACZ,OAAO;IACP,aAAa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HostListener,\n Injector,\n NgZone,\n forwardRef,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ValueAccessor } from '@ionic/angular/common';\nimport type { SelectChangeEventDetail, Components } from '@ionic/core/components';\nimport { defineCustomElement } from '@ionic/core/components/ion-select.js';\n\nimport { nullableBooleanAttribute } from './angular-component-lib/boolean-attribute';\nimport { ProxyCmp, proxyOutputs } from './angular-component-lib/utils';\n\nconst SELECT_INPUTS = [\n 'cancelText',\n 'color',\n 'compareWith',\n { name: 'disabled', transform: nullableBooleanAttribute },\n 'errorText',\n 'expandedIcon',\n 'fill',\n 'helperText',\n 'interface',\n 'interfaceOptions',\n 'justify',\n 'label',\n 'labelPlacement',\n 'mode',\n { name: 'multiple', transform: nullableBooleanAttribute },\n 'name',\n 'okText',\n 'placeholder',\n 'selectedText',\n 'shape',\n 'toggleIcon',\n 'value',\n];\n\n/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */\nconst SELECT_PROXY_INPUTS = SELECT_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));\n\n@ProxyCmp({\n defineCustomElementFn: defineCustomElement,\n inputs: SELECT_PROXY_INPUTS,\n methods: ['open'],\n})\n@Component({\n selector: 'ion-select',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: SELECT_INPUTS,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => IonSelect),\n multi: true,\n },\n ],\n standalone: true,\n})\nexport class IonSelect extends ValueAccessor {\n protected el: HTMLElement;\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone, injector: Injector) {\n super(injector, r);\n c.detach();\n this.el = r.nativeElement;\n proxyOutputs(this, this.el, ['ionChange', 'ionCancel', 'ionDismiss', 'ionFocus', 'ionBlur']);\n }\n\n @HostListener('ionChange', ['$event.target'])\n handleIonChange(el: HTMLIonSelectElement): void {\n this.handleValueChange(el, el.value);\n }\n}\n\nexport declare interface IonSelect extends Components.IonSelect {\n /**\n * Emitted when the value has changed.\n */\n ionChange: EventEmitter<CustomEvent<SelectChangeEventDetail>>;\n /**\n * Emitted when the selection is cancelled.\n */\n ionCancel: EventEmitter<CustomEvent<void>>;\n /**\n * Emitted when the overlay is dismissed.\n */\n ionDismiss: EventEmitter<CustomEvent<void>>;\n /**\n * Emitted when the select has focus.\n */\n ionFocus: EventEmitter<CustomEvent<void>>;\n /**\n * Emitted when the select loses focus.\n */\n ionBlur: EventEmitter<CustomEvent<void>>;\n}\n"]}
|
|
@@ -9,6 +9,14 @@ export declare class IonTextarea extends ValueAccessor {
|
|
|
9
9
|
handleIonInput(el: HTMLIonTextareaElement): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<IonTextarea, never>;
|
|
11
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<IonTextarea, "ion-textarea", never, { "autoGrow": { "alias": "autoGrow"; "required": false; }; "autocapitalize": { "alias": "autocapitalize"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "clearOnEdit": { "alias": "clearOnEdit"; "required": false; }; "color": { "alias": "color"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "counter": { "alias": "counter"; "required": false; }; "counterFormatter": { "alias": "counterFormatter"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "enterkeyhint": { "alias": "enterkeyhint"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "inputmode": { "alias": "inputmode"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "name": { "alias": "name"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "spellcheck": { "alias": "spellcheck"; "required": false; }; "value": { "alias": "value"; "required": false; }; "wrap": { "alias": "wrap"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
12
|
+
static ngAcceptInputType_autoGrow: boolean | string | null | undefined;
|
|
13
|
+
static ngAcceptInputType_autofocus: boolean | string | null | undefined;
|
|
14
|
+
static ngAcceptInputType_clearOnEdit: boolean | string | null | undefined;
|
|
15
|
+
static ngAcceptInputType_counter: boolean | string | null | undefined;
|
|
16
|
+
static ngAcceptInputType_disabled: boolean | string | null | undefined;
|
|
17
|
+
static ngAcceptInputType_readonly: boolean | string | null | undefined;
|
|
18
|
+
static ngAcceptInputType_required: boolean | string | null | undefined;
|
|
19
|
+
static ngAcceptInputType_spellcheck: boolean | string | null | undefined;
|
|
12
20
|
}
|
|
13
21
|
export declare interface IonTextarea extends Components.IonTextarea {
|
|
14
22
|
/**
|
|
@@ -3,19 +3,20 @@ import { ChangeDetectionStrategy, Component, HostListener, forwardRef, } from '@
|
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
4
|
import { ValueAccessor } from '@ionic/angular/common';
|
|
5
5
|
import { defineCustomElement } from '@ionic/core/components/ion-textarea.js';
|
|
6
|
+
import { nullableBooleanAttribute } from './angular-component-lib/boolean-attribute';
|
|
6
7
|
import { ProxyCmp, proxyOutputs } from './angular-component-lib/utils';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
const TEXTAREA_INPUTS = [
|
|
9
|
-
'autoGrow',
|
|
10
|
+
{ name: 'autoGrow', transform: nullableBooleanAttribute },
|
|
10
11
|
'autocapitalize',
|
|
11
|
-
'autofocus',
|
|
12
|
-
'clearOnEdit',
|
|
12
|
+
{ name: 'autofocus', transform: nullableBooleanAttribute },
|
|
13
|
+
{ name: 'clearOnEdit', transform: nullableBooleanAttribute },
|
|
13
14
|
'color',
|
|
14
15
|
'cols',
|
|
15
|
-
'counter',
|
|
16
|
+
{ name: 'counter', transform: nullableBooleanAttribute },
|
|
16
17
|
'counterFormatter',
|
|
17
18
|
'debounce',
|
|
18
|
-
'disabled',
|
|
19
|
+
{ name: 'disabled', transform: nullableBooleanAttribute },
|
|
19
20
|
'enterkeyhint',
|
|
20
21
|
'errorText',
|
|
21
22
|
'fill',
|
|
@@ -28,14 +29,16 @@ const TEXTAREA_INPUTS = [
|
|
|
28
29
|
'mode',
|
|
29
30
|
'name',
|
|
30
31
|
'placeholder',
|
|
31
|
-
'readonly',
|
|
32
|
-
'required',
|
|
32
|
+
{ name: 'readonly', transform: nullableBooleanAttribute },
|
|
33
|
+
{ name: 'required', transform: nullableBooleanAttribute },
|
|
33
34
|
'rows',
|
|
34
35
|
'shape',
|
|
35
|
-
'spellcheck',
|
|
36
|
+
{ name: 'spellcheck', transform: nullableBooleanAttribute },
|
|
36
37
|
'value',
|
|
37
38
|
'wrap',
|
|
38
39
|
];
|
|
40
|
+
/* ProxyCmp only needs the names, and runs at runtime rather than through the Angular compiler. */
|
|
41
|
+
const TEXTAREA_PROXY_INPUTS = TEXTAREA_INPUTS.map((input) => (typeof input === 'string' ? input : input.name));
|
|
39
42
|
let IonTextarea = class IonTextarea extends ValueAccessor {
|
|
40
43
|
z;
|
|
41
44
|
el;
|
|
@@ -50,7 +53,7 @@ let IonTextarea = class IonTextarea extends ValueAccessor {
|
|
|
50
53
|
this.handleValueChange(el, el.value);
|
|
51
54
|
}
|
|
52
55
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonTextarea, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
53
|
-
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
56
|
+
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "22.0.0", type: IonTextarea, isStandalone: true, selector: "ion-textarea", inputs: { autoGrow: ["autoGrow", "autoGrow", nullableBooleanAttribute], autocapitalize: "autocapitalize", autofocus: ["autofocus", "autofocus", nullableBooleanAttribute], clearOnEdit: ["clearOnEdit", "clearOnEdit", nullableBooleanAttribute], color: "color", cols: "cols", counter: ["counter", "counter", nullableBooleanAttribute], counterFormatter: "counterFormatter", debounce: "debounce", disabled: ["disabled", "disabled", nullableBooleanAttribute], enterkeyhint: "enterkeyhint", errorText: "errorText", fill: "fill", helperText: "helperText", inputmode: "inputmode", label: "label", labelPlacement: "labelPlacement", maxlength: "maxlength", minlength: "minlength", mode: "mode", name: "name", placeholder: "placeholder", readonly: ["readonly", "readonly", nullableBooleanAttribute], required: ["required", "required", nullableBooleanAttribute], rows: "rows", shape: "shape", spellcheck: ["spellcheck", "spellcheck", nullableBooleanAttribute], value: "value", wrap: "wrap" }, host: { listeners: { "ionInput": "handleIonInput($event.target)" } }, providers: [
|
|
54
57
|
{
|
|
55
58
|
provide: NG_VALUE_ACCESSOR,
|
|
56
59
|
useExisting: forwardRef((() => IonTextarea)),
|
|
@@ -61,7 +64,7 @@ let IonTextarea = class IonTextarea extends ValueAccessor {
|
|
|
61
64
|
IonTextarea = __decorate([
|
|
62
65
|
ProxyCmp({
|
|
63
66
|
defineCustomElementFn: defineCustomElement,
|
|
64
|
-
inputs:
|
|
67
|
+
inputs: TEXTAREA_PROXY_INPUTS,
|
|
65
68
|
methods: ['setFocus', 'getInputElement'],
|
|
66
69
|
})
|
|
67
70
|
], IonTextarea);
|