feat(datetime): add calendar picker (#23416)

resolves #19423

BREAKING CHANGE: The `ion-datetime` component has been revamped to use a new calendar style. As a result, some APIs have been removed. See https://github.com/ionic-team/ionic-framework/blob/master/BREAKING.md for more details.
This commit is contained in:
Liam DeBeasi
2021-06-16 15:54:15 -04:00
committed by GitHub
parent c842dd88c9
commit 932d3ca62f
63 changed files with 6062 additions and 3385 deletions

View File

@ -173,14 +173,13 @@ export const IonContent = /*@__PURE__*/ defineContainer<JSX.IonContent>('ion-con
export const IonDatetime = /*@__PURE__*/ defineContainer<JSX.IonDatetime>('ion-datetime', [
'color',
'name',
'disabled',
'readonly',
'min',
'max',
'displayFormat',
'displayTimezone',
'pickerFormat',
'presentation',
'cancelText',
'doneText',
'yearValues',
@ -188,13 +187,10 @@ export const IonDatetime = /*@__PURE__*/ defineContainer<JSX.IonDatetime>('ion-d
'dayValues',
'hourValues',
'minuteValues',
'monthNames',
'monthShortNames',
'dayNames',
'dayShortNames',
'pickerOptions',
'placeholder',
'locale',
'value',
'showDefaultTitle',
'showDefaultButtons',
'ionCancel',
'ionChange',
'ionFocus',

View File

@ -1,6 +1,5 @@
{
"pluginsFile": "tests/e2e/plugins/index.js",
"includeShadowDom": true,
"video": false,
"screenshotOnRunFailure": false,
"defaultCommandTimeout": 10000

View File

@ -70,7 +70,7 @@ describe('Overlays', () => {
cy.get('ion-button#present-overlay').click();
cy.get('ion-toast').should('exist');
cy.get('ion-toast').find('button').click();
cy.get('ion-toast').shadow().find('button').click();
cy.get('ion-toast').should('not.exist');
});
@ -102,7 +102,7 @@ describe('Overlays', () => {
cy.get('ion-button#present-overlay').click();
cy.get('ion-toast').should('exist');
cy.get('ion-toast').find('button').click();
cy.get('ion-toast').shadow().find('button').click();
cy.get('ion-toast').should('not.exist');
});