@ionic/core 7.7.3-dev.11707927732.13defc00 → 7.7.3-dev.11709159644.114cd8b1
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/components/data.js +23 -38
- package/components/ion-content.js +3 -4
- package/components/ion-datetime-button.js +11 -10
- package/components/ion-datetime.js +69 -7
- package/components/ion-searchbar.js +34 -5
- package/dist/cjs/{data-a5109f09.js → data-4487a815.js} +22 -39
- package/dist/cjs/ion-app_8.cjs.entry.js +3 -4
- package/dist/cjs/ion-datetime-button.cjs.entry.js +11 -10
- package/dist/cjs/ion-datetime_3.cjs.entry.js +66 -7
- package/dist/cjs/ion-searchbar.cjs.entry.js +28 -4
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/content/content.js +3 -4
- package/dist/collection/components/datetime/datetime.js +50 -7
- package/dist/collection/components/datetime/test/basic/datetime.e2e.js +77 -0
- package/dist/collection/components/datetime/test/format.spec.js +65 -15
- package/dist/collection/components/datetime/utils/format.js +24 -37
- package/dist/collection/components/datetime/utils/validate.js +45 -0
- package/dist/collection/components/datetime-button/datetime-button.js +11 -10
- package/dist/collection/components/datetime-button/test/basic/datetime-button.e2e.js +65 -0
- package/dist/collection/components/searchbar/searchbar.js +84 -5
- package/dist/collection/components/searchbar/test/searchbar.spec.js +20 -2
- package/dist/docs.json +113 -1
- package/dist/esm/{data-0f3ab200.js → data-bb424ba8.js} +23 -38
- package/dist/esm/ion-app_8.entry.js +3 -4
- package/dist/esm/ion-datetime-button.entry.js +11 -10
- package/dist/esm/ion-datetime_3.entry.js +66 -7
- package/dist/esm/ion-searchbar.entry.js +29 -5
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/data-bb424ba8.js +4 -0
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/html.html-data.json +12 -0
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-0b34d3a7.system.js +1 -1
- package/dist/ionic/p-2d95cfc5.entry.js +4 -0
- package/dist/ionic/p-31450f73.entry.js +4 -0
- package/dist/ionic/p-3789920e.js +4 -0
- package/dist/ionic/p-8a1b0abb.system.js +4 -0
- package/dist/ionic/p-9f207856.entry.js +4 -0
- package/dist/ionic/p-b18b2148.system.entry.js +4 -0
- package/dist/ionic/p-d8ee0efe.system.entry.js +4 -0
- package/dist/ionic/p-dbd70d97.system.entry.js +4 -0
- package/dist/ionic/p-e942b677.entry.js +4 -0
- package/dist/ionic/p-e9b9a128.system.entry.js +4 -0
- package/dist/types/components/datetime/datetime-interface.d.ts +10 -0
- package/dist/types/components/datetime/datetime.d.ts +9 -1
- package/dist/types/components/datetime/utils/format.d.ts +7 -13
- package/dist/types/components/datetime/utils/validate.d.ts +8 -0
- package/dist/types/components/searchbar/searchbar.d.ts +38 -0
- package/dist/types/components.d.ts +34 -2
- package/hydrate/index.js +130 -60
- package/package.json +1 -1
- package/dist/esm-es5/data-0f3ab200.js +0 -4
- package/dist/ionic/p-0e23c289.system.entry.js +0 -4
- package/dist/ionic/p-206c34f8.system.entry.js +0 -4
- package/dist/ionic/p-2327064c.entry.js +0 -4
- package/dist/ionic/p-23c73017.entry.js +0 -4
- package/dist/ionic/p-68ba8e77.system.entry.js +0 -4
- package/dist/ionic/p-7330c044.system.js +0 -4
- package/dist/ionic/p-8821fd17.entry.js +0 -4
- package/dist/ionic/p-a6e465f5.entry.js +0 -4
- package/dist/ionic/p-e81bf09e.system.entry.js +0 -4
- package/dist/ionic/p-f7dce541.js +0 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DatetimePresentation, FormatOptions } from '../datetime-interface';
|
|
2
|
+
/**
|
|
3
|
+
* If a time zone is provided in the format options, the rendered text could
|
|
4
|
+
* differ from what was selected in the Datetime, which could cause
|
|
5
|
+
* confusion.
|
|
6
|
+
*/
|
|
7
|
+
export declare const warnIfTimeZoneProvided: (el: HTMLElement, formatOptions?: FormatOptions) => void;
|
|
8
|
+
export declare const checkForPresentationFormatMismatch: (el: HTMLElement, presentation: DatetimePresentation, formatOptions?: FormatOptions) => void;
|
|
@@ -10,6 +10,7 @@ export declare class Searchbar implements ComponentInterface {
|
|
|
10
10
|
private shouldAlignLeft;
|
|
11
11
|
private originalIonInput?;
|
|
12
12
|
private inputId;
|
|
13
|
+
private inheritedAttributes;
|
|
13
14
|
/**
|
|
14
15
|
* The value of the input when the textarea is focused.
|
|
15
16
|
*/
|
|
@@ -17,6 +18,15 @@ export declare class Searchbar implements ComponentInterface {
|
|
|
17
18
|
el: HTMLIonSearchbarElement;
|
|
18
19
|
focused: boolean;
|
|
19
20
|
noAnimate: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* lang and dir are globally enumerated attributes.
|
|
23
|
+
* As a result, creating these as properties
|
|
24
|
+
* can have unintended side effects. Instead, we
|
|
25
|
+
* listen for attribute changes and inherit them
|
|
26
|
+
* to the inner `<input>` element.
|
|
27
|
+
*/
|
|
28
|
+
onLangChanged(newValue: string): void;
|
|
29
|
+
onDirChanged(newValue: string): void;
|
|
20
30
|
/**
|
|
21
31
|
* The color to use from your application's color palette.
|
|
22
32
|
* Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
|
|
@@ -27,6 +37,25 @@ export declare class Searchbar implements ComponentInterface {
|
|
|
27
37
|
* If `true`, enable searchbar animation.
|
|
28
38
|
*/
|
|
29
39
|
animated: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Prior to the addition of this property
|
|
42
|
+
* autocapitalize was enabled by default on iOS
|
|
43
|
+
* and disabled by default on Android
|
|
44
|
+
* for Searchbar. The autocapitalize type on HTMLElement
|
|
45
|
+
* requires that it be a string and never undefined.
|
|
46
|
+
* However, setting it to a string value would be a breaking change
|
|
47
|
+
* in behavior, so we use "!" to tell TypeScript that this property
|
|
48
|
+
* is always defined so we can rely on the browser defaults. Browsers
|
|
49
|
+
* will automatically set a default value if the developer does not set one.
|
|
50
|
+
*
|
|
51
|
+
* In the future, this property will default to "off" to align with
|
|
52
|
+
* Input and Textarea, and the "!" will not be needed.
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
|
|
56
|
+
* Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
|
|
57
|
+
*/
|
|
58
|
+
autocapitalize: string;
|
|
30
59
|
/**
|
|
31
60
|
* Set the input's autocomplete property.
|
|
32
61
|
*/
|
|
@@ -69,6 +98,14 @@ export declare class Searchbar implements ComponentInterface {
|
|
|
69
98
|
* `"previous"`, `"search"`, and `"send"`.
|
|
70
99
|
*/
|
|
71
100
|
enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
101
|
+
/**
|
|
102
|
+
* This attribute specifies the maximum number of characters that the user can enter.
|
|
103
|
+
*/
|
|
104
|
+
maxlength?: number;
|
|
105
|
+
/**
|
|
106
|
+
* This attribute specifies the minimum number of characters that the user can enter.
|
|
107
|
+
*/
|
|
108
|
+
minlength?: number;
|
|
72
109
|
/**
|
|
73
110
|
* If used in a form, set the name of the control, which is submitted with the form data.
|
|
74
111
|
*/
|
|
@@ -156,6 +193,7 @@ export declare class Searchbar implements ComponentInterface {
|
|
|
156
193
|
protected valueChanged(): void;
|
|
157
194
|
protected showCancelButtonChanged(): void;
|
|
158
195
|
connectedCallback(): void;
|
|
196
|
+
componentWillLoad(): void;
|
|
159
197
|
componentDidLoad(): void;
|
|
160
198
|
private emitStyle;
|
|
161
199
|
/**
|
|
@@ -15,7 +15,7 @@ import { RouteID, RouterDirection, RouterEventDetail, RouteWrite } from "./compo
|
|
|
15
15
|
import { BreadcrumbCollapsedClickEventDetail } from "./components/breadcrumb/breadcrumb-interface";
|
|
16
16
|
import { CheckboxChangeEventDetail } from "./components/checkbox/checkbox-interface";
|
|
17
17
|
import { ScrollBaseDetail, ScrollDetail } from "./components/content/content-interface";
|
|
18
|
-
import { DatetimeChangeEventDetail, DatetimeHighlight, DatetimeHighlightCallback, DatetimeHourCycle, DatetimePresentation, TitleSelectedDatesFormatter } from "./components/datetime/datetime-interface";
|
|
18
|
+
import { DatetimeChangeEventDetail, DatetimeHighlight, DatetimeHighlightCallback, DatetimeHourCycle, DatetimePresentation, FormatOptions, TitleSelectedDatesFormatter } from "./components/datetime/datetime-interface";
|
|
19
19
|
import { SpinnerTypes } from "./components/spinner/spinner-configs";
|
|
20
20
|
import { InputChangeEventDetail, InputInputEventDetail } from "./components/input/input-interface";
|
|
21
21
|
import { CounterFormatter } from "./components/item/item-interface";
|
|
@@ -51,7 +51,7 @@ export { RouteID, RouterDirection, RouterEventDetail, RouteWrite } from "./compo
|
|
|
51
51
|
export { BreadcrumbCollapsedClickEventDetail } from "./components/breadcrumb/breadcrumb-interface";
|
|
52
52
|
export { CheckboxChangeEventDetail } from "./components/checkbox/checkbox-interface";
|
|
53
53
|
export { ScrollBaseDetail, ScrollDetail } from "./components/content/content-interface";
|
|
54
|
-
export { DatetimeChangeEventDetail, DatetimeHighlight, DatetimeHighlightCallback, DatetimeHourCycle, DatetimePresentation, TitleSelectedDatesFormatter } from "./components/datetime/datetime-interface";
|
|
54
|
+
export { DatetimeChangeEventDetail, DatetimeHighlight, DatetimeHighlightCallback, DatetimeHourCycle, DatetimePresentation, FormatOptions, TitleSelectedDatesFormatter } from "./components/datetime/datetime-interface";
|
|
55
55
|
export { SpinnerTypes } from "./components/spinner/spinner-configs";
|
|
56
56
|
export { InputChangeEventDetail, InputInputEventDetail } from "./components/input/input-interface";
|
|
57
57
|
export { CounterFormatter } from "./components/item/item-interface";
|
|
@@ -858,6 +858,10 @@ export namespace Components {
|
|
|
858
858
|
* The first day of the week to use for `ion-datetime`. The default value is `0` and represents Sunday.
|
|
859
859
|
*/
|
|
860
860
|
"firstDayOfWeek": number;
|
|
861
|
+
/**
|
|
862
|
+
* Formatting options for dates and times. Should include a 'date' and/or 'time' object, each of which is of type [Intl.DateTimeFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#options).
|
|
863
|
+
*/
|
|
864
|
+
"formatOptions"?: FormatOptions;
|
|
861
865
|
/**
|
|
862
866
|
* Used to apply custom text and background colors to specific dates. Can be either an array of objects containing ISO strings and colors, or a callback that receives an ISO string and returns the colors. Only applies to the `date`, `date-time`, and `time-date` presentations, with `preferWheel="false"`.
|
|
863
867
|
*/
|
|
@@ -2548,6 +2552,10 @@ export namespace Components {
|
|
|
2548
2552
|
* If `true`, enable searchbar animation.
|
|
2549
2553
|
*/
|
|
2550
2554
|
"animated": boolean;
|
|
2555
|
+
/**
|
|
2556
|
+
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user. Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
|
|
2557
|
+
*/
|
|
2558
|
+
"autocapitalize": string;
|
|
2551
2559
|
/**
|
|
2552
2560
|
* Set the input's autocomplete property.
|
|
2553
2561
|
*/
|
|
@@ -2592,6 +2600,14 @@ export namespace Components {
|
|
|
2592
2600
|
* A hint to the browser for which keyboard to display. Possible values: `"none"`, `"text"`, `"tel"`, `"url"`, `"email"`, `"numeric"`, `"decimal"`, and `"search"`.
|
|
2593
2601
|
*/
|
|
2594
2602
|
"inputmode"?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
|
2603
|
+
/**
|
|
2604
|
+
* This attribute specifies the maximum number of characters that the user can enter.
|
|
2605
|
+
*/
|
|
2606
|
+
"maxlength"?: number;
|
|
2607
|
+
/**
|
|
2608
|
+
* This attribute specifies the minimum number of characters that the user can enter.
|
|
2609
|
+
*/
|
|
2610
|
+
"minlength"?: number;
|
|
2595
2611
|
/**
|
|
2596
2612
|
* The mode determines which platform styles to use.
|
|
2597
2613
|
*/
|
|
@@ -5520,6 +5536,10 @@ declare namespace LocalJSX {
|
|
|
5520
5536
|
* The first day of the week to use for `ion-datetime`. The default value is `0` and represents Sunday.
|
|
5521
5537
|
*/
|
|
5522
5538
|
"firstDayOfWeek"?: number;
|
|
5539
|
+
/**
|
|
5540
|
+
* Formatting options for dates and times. Should include a 'date' and/or 'time' object, each of which is of type [Intl.DateTimeFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#options).
|
|
5541
|
+
*/
|
|
5542
|
+
"formatOptions"?: FormatOptions;
|
|
5523
5543
|
/**
|
|
5524
5544
|
* Used to apply custom text and background colors to specific dates. Can be either an array of objects containing ISO strings and colors, or a callback that receives an ISO string and returns the colors. Only applies to the `date`, `date-time`, and `time-date` presentations, with `preferWheel="false"`.
|
|
5525
5545
|
*/
|
|
@@ -7156,6 +7176,10 @@ declare namespace LocalJSX {
|
|
|
7156
7176
|
* If `true`, enable searchbar animation.
|
|
7157
7177
|
*/
|
|
7158
7178
|
"animated"?: boolean;
|
|
7179
|
+
/**
|
|
7180
|
+
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user. Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
|
|
7181
|
+
*/
|
|
7182
|
+
"autocapitalize": string;
|
|
7159
7183
|
/**
|
|
7160
7184
|
* Set the input's autocomplete property.
|
|
7161
7185
|
*/
|
|
@@ -7196,6 +7220,14 @@ declare namespace LocalJSX {
|
|
|
7196
7220
|
* A hint to the browser for which keyboard to display. Possible values: `"none"`, `"text"`, `"tel"`, `"url"`, `"email"`, `"numeric"`, `"decimal"`, and `"search"`.
|
|
7197
7221
|
*/
|
|
7198
7222
|
"inputmode"?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
|
7223
|
+
/**
|
|
7224
|
+
* This attribute specifies the maximum number of characters that the user can enter.
|
|
7225
|
+
*/
|
|
7226
|
+
"maxlength"?: number;
|
|
7227
|
+
/**
|
|
7228
|
+
* This attribute specifies the minimum number of characters that the user can enter.
|
|
7229
|
+
*/
|
|
7230
|
+
"minlength"?: number;
|
|
7199
7231
|
/**
|
|
7200
7232
|
* The mode determines which platform styles to use.
|
|
7201
7233
|
*/
|