voyager-ionic-core 8.1.0 → 8.2.5
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/README.md +1 -1
- package/components/checkbox.js +2 -2
- package/components/ion-refresher.js +28 -1
- package/components/ion-searchbar.js +5 -5
- package/components/ion-segment.js +10 -9
- package/components/ion-select.js +20 -7
- package/components/ion-toggle.js +2 -2
- package/components/ionic-global.js +8 -1
- package/components/item.js +3 -3
- package/components/picker-column.js +25 -6
- package/components/radio.js +16 -5
- package/dist/cjs/{app-globals-66b7dc06.js → app-globals-7dbf2ade.js} +1 -1
- package/dist/cjs/{button-active-9135c809.js → button-active-cf1c215d.js} +1 -1
- package/dist/cjs/{hardware-back-button-ed931127.js → hardware-back-button-ddbc12ea.js} +2 -2
- package/dist/cjs/{index-c0b7f8f4.js → index-24fe3fe6.js} +4 -4
- package/dist/cjs/{index-8709af32.js → index-480c143c.js} +265 -191
- package/dist/cjs/{index-c54654c6.js → index-a3f97de0.js} +2 -2
- package/dist/cjs/index.cjs.js +8 -8
- package/dist/cjs/ion-accordion_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-action-sheet.cjs.entry.js +5 -5
- package/dist/cjs/ion-alert.cjs.entry.js +5 -5
- package/dist/cjs/ion-app_8.cjs.entry.js +6 -6
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-back-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-button_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-card_5.cjs.entry.js +2 -2
- package/dist/cjs/ion-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/ion-chip.cjs.entry.js +2 -2
- package/dist/cjs/ion-col_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-fab_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-img.cjs.entry.js +2 -2
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +2 -2
- package/dist/cjs/ion-input.cjs.entry.js +2 -2
- package/dist/cjs/ion-item-option_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-item_8.cjs.entry.js +4 -4
- package/dist/cjs/ion-loading.cjs.entry.js +4 -4
- package/dist/cjs/ion-menu_3.cjs.entry.js +5 -5
- package/dist/cjs/ion-modal.cjs.entry.js +5 -5
- package/dist/cjs/ion-nav_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-column.cjs.entry.js +27 -8
- package/dist/cjs/ion-picker.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +5 -5
- package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/ion-radio_2.cjs.entry.js +18 -7
- package/dist/cjs/ion-range.cjs.entry.js +2 -2
- package/dist/cjs/ion-refresher_2.cjs.entry.js +30 -3
- package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +7 -7
- package/dist/cjs/ion-segment_2.cjs.entry.js +12 -11
- package/dist/cjs/ion-select_3.cjs.entry.js +24 -11
- package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +4 -4
- package/dist/cjs/ion-toggle.cjs.entry.js +4 -4
- package/dist/cjs/{ionic-global-35b86a09.js → ionic-global-c1db87a5.js} +9 -2
- package/dist/cjs/ionic.cjs.js +5 -5
- package/dist/cjs/{ios.transition-5ddf92f1.js → ios.transition-8419294d.js} +3 -3
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{md.transition-047c18c5.js → md.transition-39852d6b.js} +3 -3
- package/dist/cjs/{overlays-cb04d075.js → overlays-55d77381.js} +2 -2
- package/dist/cjs/{status-tap-5b2775cd.js → status-tap-b68fa888.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/checkbox/checkbox.ios.css +1 -0
- package/dist/collection/components/checkbox/checkbox.md.css +1 -0
- package/dist/collection/components/item/item.js +3 -3
- package/dist/collection/components/picker-column/picker-column.js +25 -6
- package/dist/collection/components/radio/radio.ios.css +1 -0
- package/dist/collection/components/radio/radio.js +14 -3
- package/dist/collection/components/radio/radio.md.css +1 -0
- package/dist/collection/components/refresher/refresher.js +28 -1
- package/dist/collection/components/searchbar/searchbar.js +5 -5
- package/dist/collection/components/segment/segment.js +10 -9
- package/dist/collection/components/select/select.ios.css +1 -0
- package/dist/collection/components/select/select.js +18 -5
- package/dist/collection/components/select/select.md.css +1 -0
- package/dist/collection/components/toggle/toggle.ios.css +1 -0
- package/dist/collection/components/toggle/toggle.md.css +1 -0
- package/dist/collection/global/config.js +8 -1
- package/dist/docs.d.ts +34 -0
- package/dist/docs.json +3508 -484
- package/dist/esm/{app-globals-b99e6d29.js → app-globals-7f30ce3c.js} +1 -1
- package/dist/esm/{button-active-920addb8.js → button-active-78f50add.js} +1 -1
- package/dist/esm/{hardware-back-button-2d9760b6.js → hardware-back-button-2e99752e.js} +2 -2
- package/dist/esm/{index-7ae7186a.js → index-4094f808.js} +2 -2
- package/dist/esm/{index-9aab3bcf.js → index-7a952e7a.js} +265 -191
- package/dist/esm/{index-8e6b6a24.js → index-8808daa5.js} +4 -4
- package/dist/esm/index.js +8 -8
- package/dist/esm/ion-accordion_2.entry.js +2 -2
- package/dist/esm/ion-action-sheet.entry.js +5 -5
- package/dist/esm/ion-alert.entry.js +5 -5
- package/dist/esm/ion-app_8.entry.js +6 -6
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-back-button.entry.js +2 -2
- package/dist/esm/ion-backdrop.entry.js +2 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
- package/dist/esm/ion-button_2.entry.js +2 -2
- package/dist/esm/ion-card_5.entry.js +2 -2
- package/dist/esm/ion-checkbox.entry.js +4 -4
- package/dist/esm/ion-chip.entry.js +2 -2
- package/dist/esm/ion-col_3.entry.js +2 -2
- package/dist/esm/ion-datetime-button.entry.js +2 -2
- package/dist/esm/ion-datetime_3.entry.js +4 -4
- package/dist/esm/ion-fab_3.entry.js +2 -2
- package/dist/esm/ion-img.entry.js +2 -2
- package/dist/esm/ion-infinite-scroll_2.entry.js +2 -2
- package/dist/esm/ion-input-password-toggle.entry.js +2 -2
- package/dist/esm/ion-input.entry.js +2 -2
- package/dist/esm/ion-item-option_3.entry.js +2 -2
- package/dist/esm/ion-item_8.entry.js +4 -4
- package/dist/esm/ion-loading.entry.js +4 -4
- package/dist/esm/ion-menu_3.entry.js +5 -5
- package/dist/esm/ion-modal.entry.js +5 -5
- package/dist/esm/ion-nav_2.entry.js +3 -3
- package/dist/esm/ion-picker-column-option.entry.js +2 -2
- package/dist/esm/ion-picker-column.entry.js +27 -8
- package/dist/esm/ion-picker.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +5 -5
- package/dist/esm/ion-progress-bar.entry.js +2 -2
- package/dist/esm/ion-radio_2.entry.js +18 -7
- package/dist/esm/ion-range.entry.js +2 -2
- package/dist/esm/ion-refresher_2.entry.js +30 -3
- package/dist/esm/ion-reorder_2.entry.js +2 -2
- package/dist/esm/ion-ripple-effect.entry.js +2 -2
- package/dist/esm/ion-route_4.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +7 -7
- package/dist/esm/ion-segment_2.entry.js +12 -11
- package/dist/esm/ion-select_3.entry.js +24 -11
- package/dist/esm/ion-spinner.entry.js +2 -2
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +2 -2
- package/dist/esm/ion-tab_2.entry.js +1 -1
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +4 -4
- package/dist/esm/ion-toggle.entry.js +4 -4
- package/dist/esm/{ionic-global-4528d288.js → ionic-global-81a1064f.js} +9 -2
- package/dist/esm/ionic.js +6 -6
- package/dist/esm/{ios.transition-e35d0940.js → ios.transition-0a5004b4.js} +3 -3
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{md.transition-4b90a1f0.js → md.transition-b6135ada.js} +3 -3
- package/dist/esm/{overlays-df2c06b2.js → overlays-e1bad9cd.js} +2 -2
- package/dist/esm/{status-tap-12c27922.js → status-tap-17122cea.js} +1 -1
- package/dist/esm-es5/app-globals-7f30ce3c.js +4 -0
- package/dist/esm-es5/{button-active-920addb8.js → button-active-78f50add.js} +1 -1
- package/dist/esm-es5/{hardware-back-button-2d9760b6.js → hardware-back-button-2e99752e.js} +1 -1
- package/dist/esm-es5/{index-7ae7186a.js → index-4094f808.js} +1 -1
- package/dist/esm-es5/index-7a952e7a.js +5 -0
- package/dist/esm-es5/{index-8e6b6a24.js → index-8808daa5.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-backdrop.entry.js +1 -1
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-card_5.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-chip.entry.js +1 -1
- package/dist/esm-es5/ion-col_3.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-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column.entry.js +1 -1
- package/dist/esm-es5/ion-picker.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/ionic-global-81a1064f.js +4 -0
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/{ios.transition-e35d0940.js → ios.transition-0a5004b4.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-b6135ada.js +4 -0
- package/dist/esm-es5/{overlays-df2c06b2.js → overlays-e1bad9cd.js} +1 -1
- package/dist/esm-es5/{status-tap-12c27922.js → status-tap-17122cea.js} +1 -1
- package/dist/html.html-data.json +91 -91
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/ionic.js +1 -1
- package/dist/ionic/{p-b9181033.system.entry.js → p-013621f0.system.entry.js} +1 -1
- package/dist/ionic/{p-e6e88ab9.entry.js → p-057c2f6f.entry.js} +1 -1
- package/dist/ionic/p-071cb08a.entry.js +4 -0
- package/dist/ionic/{p-5dc9f99a.entry.js → p-090c318d.entry.js} +1 -1
- package/dist/ionic/{p-a50f23bf.system.entry.js → p-09f64b99.system.entry.js} +1 -1
- package/dist/ionic/{p-fcecca8f.entry.js → p-0abd2546.entry.js} +1 -1
- package/dist/ionic/{p-b28d3ccb.system.entry.js → p-0db55ab4.system.entry.js} +1 -1
- package/dist/ionic/{p-dc0d9ff5.system.entry.js → p-11c4215a.system.entry.js} +1 -1
- package/dist/ionic/{p-0395be73.entry.js → p-130ce79e.entry.js} +1 -1
- package/dist/ionic/p-14f0f49f.system.js +4 -0
- package/dist/ionic/{p-77731f19.system.entry.js → p-15c36478.system.entry.js} +1 -1
- package/dist/ionic/{p-66ed603b.js → p-1974d32f.js} +1 -1
- package/dist/ionic/{p-4824398b.entry.js → p-1b2c22ed.entry.js} +1 -1
- package/dist/ionic/{p-98f6116f.entry.js → p-1c6cd5bc.entry.js} +1 -1
- package/dist/ionic/{p-5091f63c.entry.js → p-2496a357.entry.js} +1 -1
- package/dist/ionic/{p-1eb63fa4.entry.js → p-25467ef7.entry.js} +1 -1
- package/dist/ionic/{p-606f069c.entry.js → p-271076f2.entry.js} +1 -1
- package/dist/ionic/{p-1cc0b31f.js → p-274496f1.js} +1 -1
- package/dist/ionic/{p-2c588aa2.entry.js → p-283c6631.entry.js} +1 -1
- package/dist/ionic/p-2a08e244.system.js +4 -0
- package/dist/ionic/{p-7d6fd45f.system.entry.js → p-33ce19cf.system.entry.js} +1 -1
- package/dist/ionic/{p-80265a58.entry.js → p-344d6225.entry.js} +1 -1
- package/dist/ionic/{p-1b435d20.entry.js → p-3961b22e.entry.js} +1 -1
- package/dist/ionic/{p-83d748f8.system.entry.js → p-39af4fa4.system.entry.js} +1 -1
- package/dist/ionic/{p-e6e197f5.system.entry.js → p-3b11ab95.system.entry.js} +1 -1
- package/dist/ionic/{p-8a03fbee.entry.js → p-3b767add.entry.js} +1 -1
- package/dist/ionic/{p-e81f22e3.system.js → p-3fcfe35c.system.js} +1 -1
- package/dist/ionic/p-41e85f07.js +4 -0
- package/dist/ionic/{p-8d14ee8c.system.entry.js → p-437d3e12.system.entry.js} +2 -2
- package/dist/ionic/{p-a4ab7449.entry.js → p-46cf378f.entry.js} +1 -1
- package/dist/ionic/{p-9664a1a2.system.entry.js → p-49c011e3.system.entry.js} +1 -1
- package/dist/ionic/{p-700567ab.system.entry.js → p-4a0db73d.system.entry.js} +1 -1
- package/dist/ionic/{p-62e44e4a.system.entry.js → p-4a3d2f75.system.entry.js} +1 -1
- package/dist/ionic/p-4af59128.entry.js +4 -0
- package/dist/ionic/{p-99884813.entry.js → p-4c06d890.entry.js} +1 -1
- package/dist/ionic/{p-b563b6ac.entry.js → p-4c68bf47.entry.js} +1 -1
- package/dist/ionic/{p-df517d1f.entry.js → p-4d96e6a7.entry.js} +1 -1
- package/dist/ionic/{p-0b007acc.system.entry.js → p-4de0819c.system.entry.js} +1 -1
- package/dist/ionic/{p-628967e3.system.entry.js → p-4f54d1aa.system.entry.js} +1 -1
- package/dist/ionic/{p-498eb648.system.entry.js → p-527815e1.system.entry.js} +1 -1
- package/dist/ionic/{p-10feef7e.system.entry.js → p-5303af24.system.entry.js} +1 -1
- package/dist/ionic/{p-9848d7be.system.entry.js → p-54690f26.system.entry.js} +1 -1
- package/dist/ionic/{p-130299c9.entry.js → p-57c9689a.entry.js} +1 -1
- package/dist/ionic/p-5a28559b.js +5 -0
- package/dist/ionic/{p-cec8589b.system.js → p-5c00ca73.system.js} +1 -1
- package/dist/ionic/{p-29de09dd.entry.js → p-5c5e7f5c.entry.js} +1 -1
- package/dist/ionic/{p-509620b8.system.entry.js → p-5d0b285d.system.entry.js} +1 -1
- package/dist/ionic/{p-5cc6dcf5.js → p-5e687df9.js} +1 -1
- package/dist/ionic/p-60a6fadb.entry.js +4 -0
- package/dist/ionic/{p-4d8f408d.system.entry.js → p-611bb4d1.system.entry.js} +1 -1
- package/dist/ionic/{p-57bc32e2.system.entry.js → p-6782ffa5.system.entry.js} +1 -1
- package/dist/ionic/{p-712d54ae.js → p-678beb9e.js} +1 -1
- package/dist/ionic/{p-09b4e9ec.entry.js → p-679744bf.entry.js} +1 -1
- package/dist/ionic/{p-dc1e363a.entry.js → p-67bc0359.entry.js} +1 -1
- package/dist/ionic/p-6904a62e.system.entry.js +4 -0
- package/dist/ionic/{p-b07affd5.system.entry.js → p-6b14212a.system.entry.js} +1 -1
- package/dist/ionic/{p-9c6dcf78.system.entry.js → p-6db3f661.system.entry.js} +1 -1
- package/dist/ionic/p-6e3e94e2.js +4 -0
- package/dist/ionic/{p-6a2cf398.system.entry.js → p-6ef231bc.system.entry.js} +1 -1
- package/dist/ionic/p-6f7eb5d1.system.js +5 -0
- package/dist/ionic/{p-380efbfa.system.entry.js → p-6fb5e9a7.system.entry.js} +1 -1
- package/dist/ionic/{p-26bb6bb8.entry.js → p-7048fe74.entry.js} +1 -1
- package/dist/ionic/{p-52f53904.entry.js → p-70e786ea.entry.js} +1 -1
- package/dist/ionic/{p-30baae57.system.js → p-767a0d69.system.js} +1 -1
- package/dist/ionic/{p-78405458.entry.js → p-7a6e6896.entry.js} +1 -1
- package/dist/ionic/{p-bbbe869e.entry.js → p-7dbadc9f.entry.js} +1 -1
- package/dist/ionic/{p-09538818.entry.js → p-7e192c6a.entry.js} +1 -1
- package/dist/ionic/p-804c9125.system.entry.js +4 -0
- package/dist/ionic/{p-ecbdbf25.system.entry.js → p-88c0ff08.system.entry.js} +1 -1
- package/dist/ionic/{p-5734ac17.system.js → p-8df34150.system.js} +1 -1
- package/dist/ionic/{p-9ec42be0.js → p-972902db.js} +1 -1
- package/dist/ionic/p-9847b92f.system.entry.js +4 -0
- package/dist/ionic/{p-9797f6eb.entry.js → p-98566693.entry.js} +1 -1
- package/dist/ionic/{p-52ce473d.entry.js → p-9aae0bf3.entry.js} +1 -1
- package/dist/ionic/{p-a953ef66.js → p-9d88dc43.js} +1 -1
- package/dist/ionic/{p-f9baf25c.entry.js → p-9df171a1.entry.js} +1 -1
- package/dist/ionic/{p-aaaaaea1.entry.js → p-a60914c0.entry.js} +1 -1
- package/dist/ionic/p-a69e118f.entry.js +4 -0
- package/dist/ionic/{p-199f826f.system.entry.js → p-a8ed8cd3.system.entry.js} +1 -1
- package/dist/ionic/{p-ed5aebaa.system.entry.js → p-aa34fd2f.system.entry.js} +1 -1
- package/dist/ionic/{p-eb3023c9.system.js → p-b0bd4813.system.js} +1 -1
- package/dist/ionic/p-b2cd7aae.js +4 -0
- package/dist/ionic/{p-842c9fca.system.js → p-b59d0fab.system.js} +1 -1
- package/dist/ionic/{p-55f99a39.system.entry.js → p-b7b4c08d.system.entry.js} +1 -1
- package/dist/ionic/{p-0a6d801e.system.entry.js → p-b7d1659f.system.entry.js} +1 -1
- package/dist/ionic/{p-207e11dc.entry.js → p-bbeeadc8.entry.js} +1 -1
- package/dist/ionic/{p-9bfd7cda.system.entry.js → p-c21ea624.system.entry.js} +1 -1
- package/dist/ionic/{p-7349de07.entry.js → p-c2438564.entry.js} +1 -1
- package/dist/ionic/{p-e0a8ffd0.system.entry.js → p-c29d39e0.system.entry.js} +1 -1
- package/dist/ionic/{p-6c3666d5.entry.js → p-c8a847f1.entry.js} +1 -1
- package/dist/ionic/{p-ba70039f.entry.js → p-cb19fdbf.entry.js} +1 -1
- package/dist/ionic/{p-279f3bac.system.entry.js → p-cec53b82.system.entry.js} +2 -2
- package/dist/ionic/{p-a39d3482.system.js → p-cfcc1b63.system.js} +1 -1
- package/dist/ionic/p-d274a7d8.entry.js +4 -0
- package/dist/ionic/{p-08ea3402.system.entry.js → p-d450f1f9.system.entry.js} +1 -1
- package/dist/ionic/{p-b62ae60a.system.entry.js → p-d755fc91.system.entry.js} +1 -1
- package/dist/ionic/{p-3f53a0b1.entry.js → p-d950be65.entry.js} +1 -1
- package/dist/ionic/{p-9da86308.js → p-dc4a3358.js} +1 -1
- package/dist/ionic/{p-d69b26d9.system.entry.js → p-ddd3b389.system.entry.js} +1 -1
- package/dist/ionic/{p-b02eda30.entry.js → p-deb257b7.entry.js} +1 -1
- package/dist/ionic/p-df4c53fe.entry.js +4 -0
- package/dist/ionic/{p-a488b7ab.system.js → p-e72fcc94.system.js} +1 -1
- package/dist/ionic/{p-5ec3bb70.system.entry.js → p-e8162d35.system.entry.js} +2 -2
- package/dist/ionic/p-ec1562e7.system.js +4 -0
- package/dist/ionic/{p-99ca9787.system.entry.js → p-ed8726ad.system.entry.js} +1 -1
- package/dist/ionic/p-eda5abe2.entry.js +4 -0
- package/dist/ionic/{p-33e10509.system.js → p-ef57ad27.system.js} +1 -1
- package/dist/ionic/{p-8cb80f83.system.entry.js → p-ef83f46b.system.entry.js} +1 -1
- package/dist/ionic/{p-9213681c.system.entry.js → p-f0899af9.system.entry.js} +1 -1
- package/dist/ionic/p-f66fed32.system.entry.js +4 -0
- package/dist/ionic/{p-6ec88301.entry.js → p-f7ed7806.entry.js} +1 -1
- package/dist/ionic/{p-d73a16e6.system.entry.js → p-f8083fd4.system.entry.js} +1 -1
- package/dist/ionic/{p-0536574e.entry.js → p-f81cef9b.entry.js} +1 -1
- package/dist/ionic/{p-f357707e.entry.js → p-f8856320.entry.js} +1 -1
- package/dist/ionic/{p-f53bcebd.entry.js → p-fafa4d9b.entry.js} +1 -1
- package/dist/ionic/{p-fb21fd1c.system.entry.js → p-fc55e1c2.system.entry.js} +1 -1
- package/dist/ionic/{p-7402fcdf.entry.js → p-fca84e5b.entry.js} +1 -1
- package/dist/ionic/{p-c41435e6.system.entry.js → p-fd61bdcd.system.entry.js} +1 -1
- package/dist/ionic/p-fe74ecc0.system.entry.js +4 -0
- package/dist/ionic/{p-90dfc454.system.entry.js → p-fed12de8.system.entry.js} +1 -1
- package/dist/types/components/radio/radio.d.ts +1 -0
- package/dist/types/components/refresher/refresher.d.ts +1 -0
- package/dist/types/components/segment/segment.d.ts +1 -0
- package/dist/types/components/select/select.d.ts +2 -1
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/hydrate/index.d.ts +29 -11
- package/hydrate/index.js +611 -505
- package/hydrate/index.mjs +48652 -0
- package/hydrate/package.json +7 -1
- package/loader/cdn.js +1 -1
- package/loader/index.cjs.js +1 -1
- package/loader/index.d.ts +3 -0
- package/loader/index.es2017.js +1 -1
- package/loader/index.js +1 -1
- package/package.json +8 -6
- package/dist/collection/components/accordion/test/a11y/accordion.e2e.js +0 -39
- package/dist/collection/components/accordion/test/accordion.spec.js +0 -195
- package/dist/collection/components/accordion/test/basic/accordion.e2e.js +0 -52
- package/dist/collection/components/accordion/test/disabled/accordion.e2e.js +0 -94
- package/dist/collection/components/accordion/test/multiple/accordion.e2e.js +0 -26
- package/dist/collection/components/accordion/test/nested/accordion.e2e.js +0 -24
- package/dist/collection/components/accordion/test/readonly/accordion.e2e.js +0 -94
- package/dist/collection/components/accordion/test/standalone/accordion.e2e.js +0 -15
- package/dist/collection/components/action-sheet/test/a11y/action-sheet.e2e.js +0 -99
- package/dist/collection/components/action-sheet/test/action-sheet-id.spec.js +0 -32
- package/dist/collection/components/action-sheet/test/basic/action-sheet-rendering.e2e.js +0 -60
- package/dist/collection/components/action-sheet/test/basic/action-sheet.e2e.js +0 -142
- package/dist/collection/components/action-sheet/test/basic/action-sheet.spec.js +0 -40
- package/dist/collection/components/action-sheet/test/is-open/action-sheet.e2e.js +0 -33
- package/dist/collection/components/action-sheet/test/translucent/action-sheet.e2e.js +0 -18
- package/dist/collection/components/action-sheet/test/trigger/action-sheet.e2e.js +0 -29
- package/dist/collection/components/alert/test/a11y/alert.e2e.js +0 -245
- package/dist/collection/components/alert/test/alert-id.spec.js +0 -32
- package/dist/collection/components/alert/test/alert.spec.js +0 -37
- package/dist/collection/components/alert/test/basic/alert-tablet.e2e.js +0 -40
- package/dist/collection/components/alert/test/basic/alert.e2e.js +0 -135
- package/dist/collection/components/alert/test/is-open/alert.e2e.js +0 -33
- package/dist/collection/components/alert/test/standalone/alert.e2e.js +0 -17
- package/dist/collection/components/alert/test/trigger/alert.e2e.js +0 -29
- package/dist/collection/components/app/test/safe-area/app.e2e.js +0 -35
- package/dist/collection/components/avatar/test/basic/avatar.e2e.js +0 -24
- package/dist/collection/components/back-button/test/a11y/back-button.e2e.js +0 -47
- package/dist/collection/components/back-button/test/back-button.spec.js +0 -86
- package/dist/collection/components/back-button/test/basic/back-button.e2e.js +0 -14
- package/dist/collection/components/back-button/test/toolbar/back-button.e2e.js +0 -14
- package/dist/collection/components/badge/test/a11y/badge.e2e.js +0 -40
- package/dist/collection/components/badge/test/basic/badge.e2e.js +0 -14
- package/dist/collection/components/breadcrumb/test/aria.spec.js +0 -22
- package/dist/collection/components/breadcrumbs/test/a11y/breadcrumbs.e2e.js +0 -36
- package/dist/collection/components/breadcrumbs/test/basic/breadcrumbs.e2e.js +0 -14
- package/dist/collection/components/breadcrumbs/test/breadcrumbs.spec.js +0 -58
- package/dist/collection/components/breadcrumbs/test/collapsed/breadcrumbs.e2e.js +0 -14
- package/dist/collection/components/breadcrumbs/test/reactive/breadcrumbs.e2e.js +0 -51
- package/dist/collection/components/button/test/a11y/button.e2e.js +0 -109
- package/dist/collection/components/button/test/basic/button.e2e.js +0 -51
- package/dist/collection/components/button/test/clear/button.e2e.js +0 -14
- package/dist/collection/components/button/test/expand/button.e2e.js +0 -17
- package/dist/collection/components/button/test/form-reference/button.e2e.js +0 -135
- package/dist/collection/components/button/test/form-reference/button.spec.js +0 -26
- package/dist/collection/components/button/test/icon/button.e2e.js +0 -14
- package/dist/collection/components/button/test/outline/button.e2e.js +0 -14
- package/dist/collection/components/button/test/round/button.e2e.js +0 -52
- package/dist/collection/components/button/test/size/button.e2e.js +0 -43
- package/dist/collection/components/button/test/strong/button.e2e.js +0 -48
- package/dist/collection/components/button/test/wrap/button.e2e.js +0 -126
- package/dist/collection/components/buttons/test/a11y/buttons.e2e.js +0 -74
- package/dist/collection/components/card/test/a11y/card.e2e.js +0 -31
- package/dist/collection/components/card/test/aria.spec.js +0 -16
- package/dist/collection/components/card/test/basic/card.e2e.js +0 -151
- package/dist/collection/components/card-header/test/basic/card-header.e2e.js +0 -14
- package/dist/collection/components/checkbox/test/a11y/checkbox.e2e.js +0 -42
- package/dist/collection/components/checkbox/test/basic/checkbox.e2e.js +0 -87
- package/dist/collection/components/checkbox/test/checkbox.spec.js +0 -46
- package/dist/collection/components/checkbox/test/color/checkbox.e2e.js +0 -23
- package/dist/collection/components/checkbox/test/indeterminate/checkbox.e2e.js +0 -14
- package/dist/collection/components/checkbox/test/item/checkbox.e2e.js +0 -74
- package/dist/collection/components/checkbox/test/label/checkbox.e2e.js +0 -122
- package/dist/collection/components/checkbox/test/states/checkbox.e2e.js +0 -37
- package/dist/collection/components/chip/test/a11y/chip.e2e.js +0 -58
- package/dist/collection/components/chip/test/basic/chip.e2e.js +0 -81
- package/dist/collection/components/chip/test/states/chip.e2e.js +0 -35
- package/dist/collection/components/content/test/basic/content.e2e.js +0 -17
- package/dist/collection/components/content/test/content.spec.js +0 -27
- package/dist/collection/components/content/test/fixed/content.e2e.js +0 -17
- package/dist/collection/components/content/test/fullscreen/content.e2e.js +0 -17
- package/dist/collection/components/content/test/standalone/content.e2e.js +0 -16
- package/dist/collection/components/datetime/test/a11y/datetime.e2e.js +0 -94
- package/dist/collection/components/datetime/test/a11y/datetime.spec.js +0 -40
- package/dist/collection/components/datetime/test/basic/datetime.e2e.js +0 -493
- package/dist/collection/components/datetime/test/color/datetime.e2e.js +0 -27
- package/dist/collection/components/datetime/test/comparison.spec.js +0 -43
- package/dist/collection/components/datetime/test/custom/datetime.e2e.js +0 -52
- package/dist/collection/components/datetime/test/data.spec.js +0 -456
- package/dist/collection/components/datetime/test/datetime.e2e.js +0 -39
- package/dist/collection/components/datetime/test/disable-dates/datetime.e2e.js +0 -150
- package/dist/collection/components/datetime/test/disabled/datetime.e2e.js +0 -68
- package/dist/collection/components/datetime/test/disabled/datetime.spec.js +0 -33
- package/dist/collection/components/datetime/test/display/datetime.e2e.js +0 -121
- package/dist/collection/components/datetime/test/first-day-of-week/datetime.e2e.js +0 -14
- package/dist/collection/components/datetime/test/format.spec.js +0 -174
- package/dist/collection/components/datetime/test/helpers.spec.js +0 -72
- package/dist/collection/components/datetime/test/highlighted-dates/datetime.e2e.js +0 -86
- package/dist/collection/components/datetime/test/hour-cycle/datetime.e2e.js +0 -37
- package/dist/collection/components/datetime/test/locale/datetime.e2e.js +0 -129
- package/dist/collection/components/datetime/test/manipulation.spec.js +0 -565
- package/dist/collection/components/datetime/test/minmax/datetime.e2e.js +0 -266
- package/dist/collection/components/datetime/test/month-year-picker/datetime.e2e.js +0 -29
- package/dist/collection/components/datetime/test/multiple/datetime.e2e.js +0 -242
- package/dist/collection/components/datetime/test/overlay-roles/datetime.e2e.js +0 -34
- package/dist/collection/components/datetime/test/parse.spec.js +0 -222
- package/dist/collection/components/datetime/test/position/datetime.e2e.js +0 -22
- package/dist/collection/components/datetime/test/prefer-wheel/datetime.e2e.js +0 -502
- package/dist/collection/components/datetime/test/prefer-wheel/datetime.spec.js +0 -27
- package/dist/collection/components/datetime/test/presentation/datetime.e2e.js +0 -169
- package/dist/collection/components/datetime/test/readonly/datetime.e2e.js +0 -113
- package/dist/collection/components/datetime/test/set-value/datetime.e2e.js +0 -50
- package/dist/collection/components/datetime/test/state.spec.js +0 -114
- package/dist/collection/components/datetime/test/time-label/datetime.e2e.js +0 -25
- package/dist/collection/components/datetime/test/values/datetime.e2e.js +0 -143
- package/dist/collection/components/datetime-button/test/a11y/datetime-button.e2e.js +0 -38
- package/dist/collection/components/datetime-button/test/basic/datetime-button.e2e.js +0 -254
- package/dist/collection/components/datetime-button/test/disabled/datetime-button.e2e.js +0 -27
- package/dist/collection/components/datetime-button/test/multiple/datetime-button.e2e.js +0 -96
- package/dist/collection/components/datetime-button/test/overlays/datetime-button.e2e.js +0 -143
- package/dist/collection/components/fab/test/basic/fab.e2e.js +0 -65
- package/dist/collection/components/fab/test/custom-size/fab.e2e.js +0 -17
- package/dist/collection/components/fab/test/safe-area/fab.e2e.js +0 -63
- package/dist/collection/components/fab/test/states/fab.e2e.js +0 -14
- package/dist/collection/components/fab/test/translucent/fab.e2e.js +0 -28
- package/dist/collection/components/fab-button/test/a11y/fab-button.e2e.js +0 -66
- package/dist/collection/components/footer/test/basic/footer.e2e.js +0 -61
- package/dist/collection/components/footer/test/fade/footer.e2e.js +0 -21
- package/dist/collection/components/footer/test/scroll-target/footer.e2e.js +0 -26
- package/dist/collection/components/footer/test/with-tabs/footer.e2e.js +0 -17
- package/dist/collection/components/grid/test/basic/grid.e2e.js +0 -17
- package/dist/collection/components/grid/test/offsets/grid.e2e.js +0 -17
- package/dist/collection/components/grid/test/padding/grid.e2e.js +0 -17
- package/dist/collection/components/grid/test/sizes/grid.e2e.js +0 -17
- package/dist/collection/components/header/test/a11y/header.e2e.js +0 -29
- package/dist/collection/components/header/test/basic/header.e2e.js +0 -147
- package/dist/collection/components/header/test/condense/header.e2e.js +0 -33
- package/dist/collection/components/header/test/fade/header.e2e.js +0 -21
- package/dist/collection/components/header/test/scroll-target/header.e2e.js +0 -26
- package/dist/collection/components/icon/test/basic/icon.e2e.js +0 -16
- package/dist/collection/components/icon/test/dir/icon.e2e.js +0 -23
- package/dist/collection/components/img/test/basic/img.e2e.js +0 -73
- package/dist/collection/components/img/test/draggable/img.e2e.js +0 -21
- package/dist/collection/components/infinite-scroll/test/basic/infinite-scroll.e2e.js +0 -19
- package/dist/collection/components/infinite-scroll/test/scroll-target/infinite-scroll.e2e.js +0 -19
- package/dist/collection/components/infinite-scroll/test/small-dom-update/infinite-scroll.e2e.js +0 -31
- package/dist/collection/components/infinite-scroll/test/top/infinite-scroll.e2e.js +0 -19
- package/dist/collection/components/infinite-scroll-content/test/infinite-scroll-content.spec.js +0 -37
- package/dist/collection/components/input/test/a11y/input.e2e.js +0 -67
- package/dist/collection/components/input/test/basic/input.e2e.js +0 -102
- package/dist/collection/components/input/test/bottom-content/input.e2e.js +0 -145
- package/dist/collection/components/input/test/card/input.e2e.js +0 -22
- package/dist/collection/components/input/test/clear-on-edit/input.e2e.js +0 -53
- package/dist/collection/components/input/test/color/input.e2e.js +0 -130
- package/dist/collection/components/input/test/fill/input.e2e.js +0 -203
- package/dist/collection/components/input/test/highlight/input.e2e.js +0 -300
- package/dist/collection/components/input/test/input.e2e.js +0 -17
- package/dist/collection/components/input/test/input.spec.js +0 -98
- package/dist/collection/components/input/test/item/input.e2e.js +0 -64
- package/dist/collection/components/input/test/label-placement/input.e2e.js +0 -165
- package/dist/collection/components/input/test/slot/input.e2e.js +0 -63
- package/dist/collection/components/input/test/states/input.e2e.js +0 -23
- package/dist/collection/components/input-password-toggle/test/a11y/input-password-toggle.e2e.js +0 -21
- package/dist/collection/components/input-password-toggle/test/basic/input-password-toggle.e2e.js +0 -38
- package/dist/collection/components/input-password-toggle/test/input-password-toggle.spec.js +0 -76
- package/dist/collection/components/item/test/a11y/item.e2e.js +0 -123
- package/dist/collection/components/item/test/a11y/item.spec.js +0 -48
- package/dist/collection/components/item/test/alignment/item.e2e.js +0 -14
- package/dist/collection/components/item/test/basic/item.e2e.js +0 -35
- package/dist/collection/components/item/test/buttons/item.e2e.js +0 -45
- package/dist/collection/components/item/test/colors/item.e2e.js +0 -17
- package/dist/collection/components/item/test/css-variables/item.e2e.js +0 -17
- package/dist/collection/components/item/test/disabled/item.e2e.js +0 -17
- package/dist/collection/components/item/test/dividers/item.e2e.js +0 -14
- package/dist/collection/components/item/test/groups/item.e2e.js +0 -16
- package/dist/collection/components/item/test/icons/item.e2e.js +0 -14
- package/dist/collection/components/item/test/images/item.e2e.js +0 -14
- package/dist/collection/components/item/test/inputs/item.e2e.js +0 -153
- package/dist/collection/components/item/test/item.spec.js +0 -20
- package/dist/collection/components/item/test/lines/item.e2e.js +0 -14
- package/dist/collection/components/item/test/media/item.e2e.js +0 -14
- package/dist/collection/components/item/test/reorder/item.e2e.js +0 -16
- package/dist/collection/components/item/test/slotted-inputs/item.e2e.js +0 -14
- package/dist/collection/components/item/test/states/item.e2e.js +0 -17
- package/dist/collection/components/item-divider/test/a11y/item-divider.e2e.js +0 -44
- package/dist/collection/components/item-divider/test/basic/item-divider.e2e.js +0 -60
- package/dist/collection/components/item-divider/test/spec/item-divider.e2e.js +0 -16
- package/dist/collection/components/item-sliding/test/a11y/item-sliding.e2e.js +0 -62
- package/dist/collection/components/item-sliding/test/async/item-sliding.e2e.js +0 -33
- package/dist/collection/components/item-sliding/test/basic/item-sliding.e2e.js +0 -162
- package/dist/collection/components/item-sliding/test/icons/item-sliding.e2e.js +0 -35
- package/dist/collection/components/item-sliding/test/scroll-target/item-sliding.e2e.js +0 -29
- package/dist/collection/components/label/test/a11y/label.e2e.js +0 -111
- package/dist/collection/components/label/test/basic/label.e2e.js +0 -45
- package/dist/collection/components/label/test/color/label.e2e.js +0 -39
- package/dist/collection/components/label/test/headings/label.e2e.js +0 -13
- package/dist/collection/components/label/test/item/item.e2e.js +0 -24
- package/dist/collection/components/list/test/a11y/list.e2e.js +0 -15
- package/dist/collection/components/list/test/basic/list.e2e.js +0 -24
- package/dist/collection/components/list/test/inset/list.e2e.js +0 -69
- package/dist/collection/components/list/test/lines/list.e2e.js +0 -167
- package/dist/collection/components/list-header/test/a11y/list-header.e2e.js +0 -24
- package/dist/collection/components/list-header/test/basic/list-header.e2e.js +0 -42
- package/dist/collection/components/loading/test/a11y/loading.e2e.js +0 -61
- package/dist/collection/components/loading/test/basic/loading.e2e.js +0 -80
- package/dist/collection/components/loading/test/basic/loading.spec.js +0 -16
- package/dist/collection/components/loading/test/is-open/loading.e2e.js +0 -28
- package/dist/collection/components/loading/test/loading-id.spec.js +0 -32
- package/dist/collection/components/loading/test/loading.spec.js +0 -37
- package/dist/collection/components/loading/test/standalone/loading.e2e.js +0 -21
- package/dist/collection/components/loading/test/trigger/loading.e2e.js +0 -32
- package/dist/collection/components/menu/test/a11y/menu.e2e.js +0 -22
- package/dist/collection/components/menu/test/basic/menu.e2e.js +0 -124
- package/dist/collection/components/menu/test/custom/menu.e2e.js +0 -61
- package/dist/collection/components/menu/test/disable/menu.e2e.js +0 -55
- package/dist/collection/components/menu/test/focus-trap/menu.e2e.js +0 -72
- package/dist/collection/components/menu/test/multiple/menu.e2e.js +0 -60
- package/dist/collection/components/menu/test/safe-area/menu.e2e.js +0 -87
- package/dist/collection/components/menu-button/test/a11y/menu-button.e2e.js +0 -48
- package/dist/collection/components/menu-button/test/async/menu-button.e2e.js +0 -23
- package/dist/collection/components/menu-button/test/basic/menu-button.e2e.js +0 -14
- package/dist/collection/components/menu-toggle/test/basic/menu-toggle.e2e.js +0 -43
- package/dist/collection/components/modal/test/a11y/modal.e2e.js +0 -21
- package/dist/collection/components/modal/test/animations/modal.e2e.js +0 -36
- package/dist/collection/components/modal/test/basic/modal.e2e.js +0 -125
- package/dist/collection/components/modal/test/basic/modal.spec.js +0 -35
- package/dist/collection/components/modal/test/can-dismiss/modal-card.e2e.js +0 -55
- package/dist/collection/components/modal/test/can-dismiss/modal-sheet.e2e.js +0 -73
- package/dist/collection/components/modal/test/can-dismiss/modal.e2e.js +0 -27
- package/dist/collection/components/modal/test/can-dismiss/modal.spec.js +0 -191
- package/dist/collection/components/modal/test/card/modal-card.e2e.js +0 -83
- package/dist/collection/components/modal/test/card/modal-tablet.e2e.js +0 -82
- package/dist/collection/components/modal/test/card-nav/modal.e2e.js +0 -38
- package/dist/collection/components/modal/test/card-refresher/modal.e2e.js +0 -22
- package/dist/collection/components/modal/test/card-scroll-target/modal.e2e.js +0 -42
- package/dist/collection/components/modal/test/custom/modal.e2e.js +0 -24
- package/dist/collection/components/modal/test/custom-dialog/modal.e2e.js +0 -20
- package/dist/collection/components/modal/test/dark-mode/model.e2e.js +0 -20
- package/dist/collection/components/modal/test/inline/modal.e2e.js +0 -48
- package/dist/collection/components/modal/test/is-open/modal.e2e.js +0 -25
- package/dist/collection/components/modal/test/modal-attributes.spec.js +0 -32
- package/dist/collection/components/modal/test/modal-id.spec.js +0 -32
- package/dist/collection/components/modal/test/sheet/modal.e2e.js +0 -212
- package/dist/collection/components/modal/test/standalone/modal.e2e.js +0 -19
- package/dist/collection/components/modal/test/trigger/modal.e2e.js +0 -31
- package/dist/collection/components/modal/utils.spec.js +0 -13
- package/dist/collection/components/nav/test/basic/nav.e2e.js +0 -69
- package/dist/collection/components/nav/test/modal-navigation/nav.e2e.js +0 -65
- package/dist/collection/components/nav/test/nav-controller.spec.js +0 -749
- package/dist/collection/components/nav/test/nested/nav.e2e.js +0 -66
- package/dist/collection/components/nav/test/routing/nav.e2e.js +0 -87
- package/dist/collection/components/note/test/a11y/note.e2e.js +0 -95
- package/dist/collection/components/note/test/basic/note.e2e.js +0 -78
- package/dist/collection/components/picker/test/a11y/picker.e2e.js +0 -15
- package/dist/collection/components/picker/test/basic/picker.e2e.js +0 -111
- package/dist/collection/components/picker/test/custom/picker.e2e.js +0 -85
- package/dist/collection/components/picker/test/keyboard-entry/picker.e2e.js +0 -183
- package/dist/collection/components/picker-column/test/basic/picker-column.e2e.js +0 -64
- package/dist/collection/components/picker-column/test/disabled/picker-column.e2e.js +0 -91
- package/dist/collection/components/picker-column/test/picker-column.spec.js +0 -83
- package/dist/collection/components/picker-column/test/slots/picker-column.e2e.js +0 -39
- package/dist/collection/components/picker-column-option/test/a11y/picker-column-option.e2e.js +0 -18
- package/dist/collection/components/picker-column-option/test/basic/picker-column-option.e2e.js +0 -37
- package/dist/collection/components/picker-column-option/test/picker-column-option.spec.js +0 -29
- package/dist/collection/components/picker-legacy/test/basic/picker.e2e.js +0 -25
- package/dist/collection/components/picker-legacy/test/is-open/picker.e2e.js +0 -28
- package/dist/collection/components/picker-legacy/test/picker-id.spec.js +0 -32
- package/dist/collection/components/picker-legacy/test/trigger/picker.e2e.js +0 -32
- package/dist/collection/components/picker-legacy-column/test/picker-column-aria.spec.js +0 -35
- package/dist/collection/components/picker-legacy-column/test/picker-column-dynamic.spec.js +0 -29
- package/dist/collection/components/picker-legacy-column/test/picker-column.spec.js +0 -17
- package/dist/collection/components/picker-legacy-column/test/standalone/picker-column.e2e.js +0 -35
- package/dist/collection/components/popover/test/adjustment/popover.e2e.js +0 -33
- package/dist/collection/components/popover/test/arrow/popover.e2e.js +0 -27
- package/dist/collection/components/popover/test/async/popover.e2e.js +0 -42
- package/dist/collection/components/popover/test/basic/popover.e2e.js +0 -211
- package/dist/collection/components/popover/test/basic/popover.spec.js +0 -35
- package/dist/collection/components/popover/test/dismiss-on-select/popover.e2e.js +0 -38
- package/dist/collection/components/popover/test/inline/popover.e2e.js +0 -32
- package/dist/collection/components/popover/test/is-open/popover.e2e.js +0 -13
- package/dist/collection/components/popover/test/nested/popover.e2e.js +0 -92
- package/dist/collection/components/popover/test/popover-id.spec.js +0 -32
- package/dist/collection/components/popover/test/position/popover.e2e.js +0 -27
- package/dist/collection/components/popover/test/reference/popover.e2e.js +0 -22
- package/dist/collection/components/popover/test/size/popover.e2e.js +0 -41
- package/dist/collection/components/popover/test/standalone/popover.e2e.js +0 -15
- package/dist/collection/components/popover/test/trigger/popover.e2e.js +0 -46
- package/dist/collection/components/popover/test/util.spec.js +0 -53
- package/dist/collection/components/progress-bar/test/a11y/progress-bar.e2e.js +0 -24
- package/dist/collection/components/progress-bar/test/basic/progress-bar.e2e.js +0 -14
- package/dist/collection/components/progress-bar/test/buffer/progress-bar.e2e.js +0 -20
- package/dist/collection/components/progress-bar/test/determinate/progress-bar.e2e.js +0 -20
- package/dist/collection/components/radio/test/a11y/radio.e2e.js +0 -152
- package/dist/collection/components/radio/test/color/radio.e2e.js +0 -27
- package/dist/collection/components/radio/test/item/radio.e2e.js +0 -92
- package/dist/collection/components/radio/test/label-placement/radio.e2e.js +0 -135
- package/dist/collection/components/radio/test/radio.spec.js +0 -60
- package/dist/collection/components/radio/test/states/radio.e2e.js +0 -45
- package/dist/collection/components/radio-group/test/basic/radio-group.e2e.js +0 -85
- package/dist/collection/components/radio-group/test/form/radio-group.e2e.js +0 -56
- package/dist/collection/components/radio-group/test/radio-group-events.e2e.js +0 -80
- package/dist/collection/components/radio-group/test/radio-group.spec.js +0 -69
- package/dist/collection/components/radio-group/test/search/radio-group.e2e.js +0 -35
- package/dist/collection/components/range/test/a11y/range.e2e.js +0 -89
- package/dist/collection/components/range/test/active-bar-start/range.e2e.js +0 -14
- package/dist/collection/components/range/test/basic/range.e2e.js +0 -31
- package/dist/collection/components/range/test/color/range.e2e.js +0 -20
- package/dist/collection/components/range/test/custom/range.e2e.js +0 -14
- package/dist/collection/components/range/test/item/range.e2e.js +0 -70
- package/dist/collection/components/range/test/label/range.e2e.js +0 -179
- package/dist/collection/components/range/test/label/range.spec.js +0 -47
- package/dist/collection/components/range/test/range-events.e2e.js +0 -179
- package/dist/collection/components/range/test/range.spec.js +0 -209
- package/dist/collection/components/range/test/scroll-target/range.e2e.js +0 -35
- package/dist/collection/components/range/test/states/range.e2e.js +0 -53
- package/dist/collection/components/refresher/test/a11y/refresher.e2e.js +0 -26
- package/dist/collection/components/refresher/test/basic/refresher.e2e.js +0 -38
- package/dist/collection/components/refresher/test/scroll-target/refresher.e2e.js +0 -38
- package/dist/collection/components/refresher-content/test/refresher-content.spec.js +0 -46
- package/dist/collection/components/reorder-group/test/a11y/reorder-group.e2e.js +0 -33
- package/dist/collection/components/reorder-group/test/basic/reorder-group.e2e.js +0 -36
- package/dist/collection/components/reorder-group/test/interactive/reorder-group.e2e.js +0 -32
- package/dist/collection/components/reorder-group/test/nested/reorder-group.e2e.js +0 -32
- package/dist/collection/components/reorder-group/test/scroll-target/reorder-group.e2e.js +0 -32
- package/dist/collection/components/ripple-effect/test/basic/ripple-effect.e2e.js +0 -66
- package/dist/collection/components/router/test/basic/router.e2e.js +0 -68
- package/dist/collection/components/router/test/guards/href/router.e2e.js +0 -60
- package/dist/collection/components/router/test/guards/link/router.e2e.js +0 -60
- package/dist/collection/components/router/test/guards/push/router.e2e.js +0 -60
- package/dist/collection/components/router/test/guards/router.e2e.js +0 -13
- package/dist/collection/components/router/test/matching.spec.js +0 -250
- package/dist/collection/components/router/test/parser.spec.js +0 -133
- package/dist/collection/components/router/test/path.spec.js +0 -218
- package/dist/collection/components/router/test/router.spec.js +0 -55
- package/dist/collection/components/router-link/test/a11y/router-link.e2e.js +0 -23
- package/dist/collection/components/router-outlet/test/basic/router-outlet.e2e.js +0 -39
- package/dist/collection/components/searchbar/test/a11y/searchbar.e2e.js +0 -37
- package/dist/collection/components/searchbar/test/basic/searchbar.e2e.js +0 -161
- package/dist/collection/components/searchbar/test/events/searchbar.e2e.js +0 -67
- package/dist/collection/components/searchbar/test/searchbar.spec.js +0 -33
- package/dist/collection/components/segment/test/a11y/segment.e2e.js +0 -69
- package/dist/collection/components/segment/test/basic/segment.e2e.js +0 -84
- package/dist/collection/components/segment/test/custom/segment.e2e.js +0 -14
- package/dist/collection/components/segment/test/icon/segment.e2e.js +0 -29
- package/dist/collection/components/segment/test/modes/segment.e2e.js +0 -38
- package/dist/collection/components/segment/test/scrollable/segment.e2e.js +0 -83
- package/dist/collection/components/segment/test/segment-events.e2e.js +0 -209
- package/dist/collection/components/segment/test/segment.spec.js +0 -37
- package/dist/collection/components/segment/test/toolbar/segment.e2e.js +0 -122
- package/dist/collection/components/segment/test/wrap/segment.e2e.js +0 -85
- package/dist/collection/components/select/test/a11y/select.e2e.js +0 -101
- package/dist/collection/components/select/test/async/select.e2e.js +0 -25
- package/dist/collection/components/select/test/basic/select.e2e.js +0 -195
- package/dist/collection/components/select/test/card/select.e2e.js +0 -22
- package/dist/collection/components/select/test/color/select.e2e.js +0 -42
- package/dist/collection/components/select/test/compare-with/select.e2e.js +0 -67
- package/dist/collection/components/select/test/custom/select.e2e.js +0 -68
- package/dist/collection/components/select/test/disabled/select.e2e.js +0 -30
- package/dist/collection/components/select/test/fill/select.e2e.js +0 -217
- package/dist/collection/components/select/test/highlight/select.e2e.js +0 -209
- package/dist/collection/components/select/test/item/select.e2e.js +0 -56
- package/dist/collection/components/select/test/label/select.e2e.js +0 -245
- package/dist/collection/components/select/test/popover-size/select.e2e.js +0 -80
- package/dist/collection/components/select/test/select.spec.js +0 -96
- package/dist/collection/components/select/test/slot/select.e2e.js +0 -79
- package/dist/collection/components/select/test/states/select.e2e.js +0 -41
- package/dist/collection/components/select/test/toggle-icon/select.e2e.js +0 -30
- package/dist/collection/components/select/test/wrapping/select.e2e.js +0 -36
- package/dist/collection/components/select-popover/test/a11y/select-popover.e2e.js +0 -32
- package/dist/collection/components/select-popover/test/basic/select-popover.e2e.js +0 -77
- package/dist/collection/components/skeleton-text/test/basic/skeleton-text.e2e.js +0 -14
- package/dist/collection/components/skeleton-text/test/custom/skeleton-text.e2e.js +0 -14
- package/dist/collection/components/spinner/test/basic/spinner.e2e.js +0 -18
- package/dist/collection/components/spinner/test/color/spinner.e2e.js +0 -21
- package/dist/collection/components/spinner/test/resize/spinner.e2e.js +0 -35
- package/dist/collection/components/split-pane/test/basic/split-pane.e2e.js +0 -29
- package/dist/collection/components/split-pane/test/multiple/split-pane.e2e.js +0 -31
- package/dist/collection/components/split-pane/test/wrapped-menu/split-pane.e2e.js +0 -41
- package/dist/collection/components/tab-bar/test/basic/tab-bar.e2e.js +0 -43
- package/dist/collection/components/tab-bar/test/custom/tab-bar.e2e.js +0 -14
- package/dist/collection/components/tab-bar/test/translucent/tab-bar.e2e.js +0 -70
- package/dist/collection/components/tab-button/test/a11y/tab-button.e2e.js +0 -15
- package/dist/collection/components/tab-button/test/basic/tab-button.e2e.js +0 -81
- package/dist/collection/components/tab-button/test/layout/tab-button.e2e.js +0 -123
- package/dist/collection/components/tab-button/test/states/tab-button.e2e.js +0 -65
- package/dist/collection/components/tabs/test/basic/tabs.e2e.js +0 -32
- package/dist/collection/components/tabs/test/placements/tabs.e2e.js +0 -39
- package/dist/collection/components/text/test/basic/text.e2e.js +0 -30
- package/dist/collection/components/textarea/test/a11y/textarea.e2e.js +0 -67
- package/dist/collection/components/textarea/test/autogrow/textarea.e2e.js +0 -48
- package/dist/collection/components/textarea/test/bottom-content/textarea.e2e.js +0 -120
- package/dist/collection/components/textarea/test/card/textarea.e2e.js +0 -22
- package/dist/collection/components/textarea/test/clear-on-edit/textarea.e2e.js +0 -61
- package/dist/collection/components/textarea/test/color/textarea.e2e.js +0 -131
- package/dist/collection/components/textarea/test/cols/textarea.e2e.js +0 -37
- package/dist/collection/components/textarea/test/fill/textarea.e2e.js +0 -205
- package/dist/collection/components/textarea/test/highlight/textarea.e2e.js +0 -303
- package/dist/collection/components/textarea/test/item/textarea.e2e.js +0 -64
- package/dist/collection/components/textarea/test/label-placement/textarea.e2e.js +0 -224
- package/dist/collection/components/textarea/test/slot/textarea.e2e.js +0 -63
- package/dist/collection/components/textarea/test/states/textarea.e2e.js +0 -23
- package/dist/collection/components/textarea/test/textarea-events.e2e.js +0 -70
- package/dist/collection/components/textarea/test/textarea.spec.js +0 -59
- package/dist/collection/components/thumbnail/test/basic/thumbnail.e2e.js +0 -48
- package/dist/collection/components/title/test/a11y/title.e2e.js +0 -61
- package/dist/collection/components/title/test/basic/title.e2e.js +0 -30
- package/dist/collection/components/toast/test/a11y/toast.e2e.js +0 -210
- package/dist/collection/components/toast/test/basic/toast.e2e.js +0 -122
- package/dist/collection/components/toast/test/is-open/toast.e2e.js +0 -28
- package/dist/collection/components/toast/test/layout/toast.e2e.js +0 -17
- package/dist/collection/components/toast/test/position-anchor/toast.e2e.js +0 -45
- package/dist/collection/components/toast/test/standalone/toast.e2e.js +0 -21
- package/dist/collection/components/toast/test/swipe-gesture/toast.e2e.js +0 -84
- package/dist/collection/components/toast/test/toast-config.spec.js +0 -25
- package/dist/collection/components/toast/test/toast-id.spec.js +0 -32
- package/dist/collection/components/toast/test/toast.spec.js +0 -212
- package/dist/collection/components/toast/test/trigger/toast.e2e.js +0 -32
- package/dist/collection/components/toggle/test/a11y/toggle.e2e.js +0 -21
- package/dist/collection/components/toggle/test/color/toggle.e2e.js +0 -23
- package/dist/collection/components/toggle/test/enable-on-off-labels/toggle.e2e.js +0 -61
- package/dist/collection/components/toggle/test/item/toggle.e2e.js +0 -104
- package/dist/collection/components/toggle/test/label/toggle.e2e.js +0 -120
- package/dist/collection/components/toggle/test/sizes/toggle.e2e.js +0 -14
- package/dist/collection/components/toggle/test/states/toggle.e2e.js +0 -30
- package/dist/collection/components/toggle/test/toggle.spec.js +0 -67
- package/dist/collection/components/toolbar/test/basic/toolbar.e2e.js +0 -143
- package/dist/collection/components/toolbar/test/colors/toolbar.e2e.js +0 -17
- package/dist/collection/css/test/a11y/typography.e2e.js +0 -50
- package/dist/collection/global/test/config-controller.spec.js +0 -77
- package/dist/collection/themes/test/colors/theme.e2e.js +0 -170
- package/dist/collection/utils/animation/test/animation.spec.js +0 -358
- package/dist/collection/utils/animation/test/animationbuilder/animation.e2e.js +0 -31
- package/dist/collection/utils/animation/test/basic/animation.e2e.js +0 -17
- package/dist/collection/utils/animation/test/display/animation.e2e.js +0 -24
- package/dist/collection/utils/animation/test/hooks/animation.e2e.js +0 -45
- package/dist/collection/utils/animation/test/multiple/animation.e2e.js +0 -30
- package/dist/collection/utils/content/content.utils.spec.js +0 -137
- package/dist/collection/utils/floating-point/floating-point.spec.js +0 -22
- package/dist/collection/utils/focus-controller/test/generic/focus-controller.e2e.js +0 -52
- package/dist/collection/utils/focus-controller/test/ionic/focus-controller.e2e.js +0 -52
- package/dist/collection/utils/helpers.spec.js +0 -36
- package/dist/collection/utils/input-shims/hacks/test/scroll-assist.e2e.js +0 -115
- package/dist/collection/utils/keyboard/test/keyboard-controller.spec.js +0 -21
- package/dist/collection/utils/keyboard/test/keyboard.spec.js +0 -214
- package/dist/collection/utils/rtl/dir.spec.js +0 -25
- package/dist/collection/utils/sanitization/test/sanitization.spec.js +0 -43
- package/dist/collection/utils/tap-click/test/tap-click.e2e.js +0 -25
- package/dist/collection/utils/test/attributes.spec.js +0 -53
- package/dist/collection/utils/test/framework-delegate/framework-delegate.e2e.js +0 -33
- package/dist/collection/utils/test/hardware-back-button.spec.js +0 -91
- package/dist/collection/utils/test/overlays/overlays-scroll-blocking.spec.js +0 -65
- package/dist/collection/utils/test/overlays/overlays.e2e.js +0 -301
- package/dist/collection/utils/test/overlays/overlays.spec.js +0 -206
- package/dist/collection/utils/test/platform.spec.js +0 -132
- package/dist/collection/utils/test/ready.spec.js +0 -39
- package/dist/collection/utils/test/theme.spec.js +0 -56
- package/dist/esm-es5/app-globals-b99e6d29.js +0 -4
- package/dist/esm-es5/index-9aab3bcf.js +0 -5
- package/dist/esm-es5/ionic-global-4528d288.js +0 -4
- package/dist/esm-es5/md.transition-4b90a1f0.js +0 -4
- package/dist/ionic/p-01a27023.system.entry.js +0 -4
- package/dist/ionic/p-03b86a5e.js +0 -4
- package/dist/ionic/p-049d43bd.entry.js +0 -4
- package/dist/ionic/p-15d1ddba.js +0 -4
- package/dist/ionic/p-2ff0e0aa.system.js +0 -4
- package/dist/ionic/p-31d27232.system.js +0 -4
- package/dist/ionic/p-3c27be4a.entry.js +0 -4
- package/dist/ionic/p-3d015cdb.system.js +0 -5
- package/dist/ionic/p-433157a4.entry.js +0 -4
- package/dist/ionic/p-5109a566.entry.js +0 -4
- package/dist/ionic/p-670c9f57.system.entry.js +0 -4
- package/dist/ionic/p-6df12af0.system.entry.js +0 -4
- package/dist/ionic/p-6f008ad2.js +0 -4
- package/dist/ionic/p-7eb47906.entry.js +0 -4
- package/dist/ionic/p-92d7e99d.system.js +0 -4
- package/dist/ionic/p-a2e94ade.system.entry.js +0 -4
- package/dist/ionic/p-a76ab3ea.system.entry.js +0 -4
- package/dist/ionic/p-b04c27d8.entry.js +0 -4
- package/dist/ionic/p-dba5cb84.js +0 -5
- package/dist/ionic/p-fa8f2e62.entry.js +0 -4
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import { expect } from "@playwright/test";
|
|
5
|
-
import { configs, test } from "../../../../utils/test/playwright/index";
|
|
6
|
-
configs().forEach(({ title, screenshot, config }) => {
|
|
7
|
-
test.describe(title('datetime: presentation rendering'), () => {
|
|
8
|
-
let presentationFixture;
|
|
9
|
-
test.beforeEach(({ page }) => {
|
|
10
|
-
presentationFixture = new DatetimePresentationFixture(page);
|
|
11
|
-
});
|
|
12
|
-
test('should not have visual regressions with date-time presentation', async () => {
|
|
13
|
-
await presentationFixture.goto('date-time', config);
|
|
14
|
-
await presentationFixture.screenshot('datetime-presentation-date-time-diff', screenshot);
|
|
15
|
-
});
|
|
16
|
-
test('should not have visual regressions with time-date presentation', async () => {
|
|
17
|
-
await presentationFixture.goto('time-date', config);
|
|
18
|
-
await presentationFixture.screenshot('datetime-presentation-time-date-diff', screenshot);
|
|
19
|
-
});
|
|
20
|
-
test('should not have visual regressions with time presentation', async () => {
|
|
21
|
-
await presentationFixture.goto('time', config);
|
|
22
|
-
await presentationFixture.screenshot('datetime-presentation-time-diff', screenshot);
|
|
23
|
-
});
|
|
24
|
-
test('should not have visual regressions with date presentation', async () => {
|
|
25
|
-
await presentationFixture.goto('date', config);
|
|
26
|
-
await presentationFixture.screenshot('datetime-presentation-date-diff', screenshot);
|
|
27
|
-
});
|
|
28
|
-
test('should not have visual regressions with month-year presentation', async () => {
|
|
29
|
-
await presentationFixture.goto('month-year', config);
|
|
30
|
-
await presentationFixture.screenshot('datetime-presentation-month-year-diff', screenshot);
|
|
31
|
-
});
|
|
32
|
-
test('should not have visual regressions with month presentation', async () => {
|
|
33
|
-
await presentationFixture.goto('month', config);
|
|
34
|
-
await presentationFixture.screenshot('datetime-presentation-month-diff', screenshot);
|
|
35
|
-
});
|
|
36
|
-
test('should not have visual regressions with year presentation', async () => {
|
|
37
|
-
await presentationFixture.goto('year', config);
|
|
38
|
-
await presentationFixture.screenshot('datetime-presentation-year-diff', screenshot);
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
/**
|
|
43
|
-
* This is testing component event behavior
|
|
44
|
-
* which does not vary across modes/directions.
|
|
45
|
-
*/
|
|
46
|
-
configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) => {
|
|
47
|
-
test.describe(title('datetime: presentation'), () => {
|
|
48
|
-
test('presentation: time: should emit ionChange', async ({ page }) => {
|
|
49
|
-
await page.goto(`/src/components/datetime/test/presentation`, config);
|
|
50
|
-
const ionChangeSpy = await page.spyOnEvent('ionChange');
|
|
51
|
-
await page.locator('select').selectOption('time');
|
|
52
|
-
await page.waitForChanges();
|
|
53
|
-
await page.locator('text=AM').click();
|
|
54
|
-
await ionChangeSpy.next();
|
|
55
|
-
expect(ionChangeSpy.length).toBe(1);
|
|
56
|
-
});
|
|
57
|
-
test('presentation: month-year: should emit ionChange', async ({ page }) => {
|
|
58
|
-
await page.goto(`/src/components/datetime/test/presentation`, config);
|
|
59
|
-
const ionChangeSpy = await page.spyOnEvent('ionChange');
|
|
60
|
-
await page.locator('select').selectOption('month-year');
|
|
61
|
-
await page.waitForChanges();
|
|
62
|
-
await page.locator('text=April').click();
|
|
63
|
-
await ionChangeSpy.next();
|
|
64
|
-
expect(ionChangeSpy.length).toBe(1);
|
|
65
|
-
});
|
|
66
|
-
test('presentation: month: should emit ionChange', async ({ page }) => {
|
|
67
|
-
await page.goto(`/src/components/datetime/test/presentation`, config);
|
|
68
|
-
const ionChangeSpy = await page.spyOnEvent('ionChange');
|
|
69
|
-
await page.locator('select').selectOption('month');
|
|
70
|
-
await page.waitForChanges();
|
|
71
|
-
await page.locator('text=April').click();
|
|
72
|
-
await ionChangeSpy.next();
|
|
73
|
-
expect(ionChangeSpy.length).toBe(1);
|
|
74
|
-
});
|
|
75
|
-
test('presentation: year: should emit ionChange', async ({ page }) => {
|
|
76
|
-
await page.goto(`/src/components/datetime/test/presentation`, config);
|
|
77
|
-
const ionChangeSpy = await page.spyOnEvent('ionChange');
|
|
78
|
-
await page.locator('select').selectOption('year');
|
|
79
|
-
await page.waitForChanges();
|
|
80
|
-
await page.locator('text=2021').click();
|
|
81
|
-
await ionChangeSpy.next();
|
|
82
|
-
expect(ionChangeSpy.length).toBe(1);
|
|
83
|
-
});
|
|
84
|
-
test('switching presentation should close month/year picker', async ({ page }) => {
|
|
85
|
-
await page.setContent(`
|
|
86
|
-
<ion-datetime presentation="date"></ion-datetime>
|
|
87
|
-
`, config);
|
|
88
|
-
await page.locator('.datetime-ready').waitFor();
|
|
89
|
-
const datetime = page.locator('ion-datetime');
|
|
90
|
-
const monthYearButton = page.locator('ion-datetime .calendar-month-year');
|
|
91
|
-
await monthYearButton.click();
|
|
92
|
-
await expect(datetime).toHaveClass(/show-month-and-year/);
|
|
93
|
-
await datetime.evaluate((el) => (el.presentation = 'time'));
|
|
94
|
-
await page.waitForChanges();
|
|
95
|
-
await expect(datetime).not.toHaveClass(/show-month-and-year/);
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
/**
|
|
100
|
-
* This is testing time rendering behavior
|
|
101
|
-
* which does not vary across modes/directions.
|
|
102
|
-
*/
|
|
103
|
-
configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) => {
|
|
104
|
-
test.describe(title('datetime: presentation: time'), () => {
|
|
105
|
-
test('changing value from AM to AM should update the text', async ({ page }) => {
|
|
106
|
-
const timePickerFixture = new TimePickerFixture(page);
|
|
107
|
-
await timePickerFixture.goto('04:20:00', config);
|
|
108
|
-
await timePickerFixture.setValue('11:03:00');
|
|
109
|
-
await timePickerFixture.expectTime(11, 3, 'am');
|
|
110
|
-
});
|
|
111
|
-
test('changing value from AM to PM should update the text', async ({ page }) => {
|
|
112
|
-
const timePickerFixture = new TimePickerFixture(page);
|
|
113
|
-
await timePickerFixture.goto('05:30:00', config);
|
|
114
|
-
await timePickerFixture.setValue('16:40:00');
|
|
115
|
-
await timePickerFixture.expectTime(16, 40, 'pm');
|
|
116
|
-
});
|
|
117
|
-
test('changing the value from PM to AM should update the text', async ({ page }) => {
|
|
118
|
-
const timePickerFixture = new TimePickerFixture(page);
|
|
119
|
-
await timePickerFixture.goto('16:40:00', config);
|
|
120
|
-
await timePickerFixture.setValue('04:20:00');
|
|
121
|
-
await timePickerFixture.expectTime(4, 20, 'am');
|
|
122
|
-
});
|
|
123
|
-
test('changing the value from PM to PM should update the text', async ({ page }) => {
|
|
124
|
-
const timePickerFixture = new TimePickerFixture(page);
|
|
125
|
-
await timePickerFixture.goto('16:40:00', config);
|
|
126
|
-
await timePickerFixture.setValue('19:32:00');
|
|
127
|
-
await timePickerFixture.expectTime(19, 32, 'pm');
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
class DatetimePresentationFixture {
|
|
132
|
-
constructor(page) {
|
|
133
|
-
this.page = page;
|
|
134
|
-
}
|
|
135
|
-
async goto(presentation, config) {
|
|
136
|
-
await this.page.setContent(`
|
|
137
|
-
<ion-datetime presentation="${presentation}" value="2010-03-10T13:00:00"></ion-datetime>
|
|
138
|
-
`, config);
|
|
139
|
-
await this.page.locator('.datetime-ready').waitFor();
|
|
140
|
-
this.datetime = this.page.locator('ion-datetime');
|
|
141
|
-
}
|
|
142
|
-
async screenshot(name, screenshotFn) {
|
|
143
|
-
await expect(this.datetime).toHaveScreenshot(screenshotFn(name));
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
class TimePickerFixture {
|
|
147
|
-
constructor(page) {
|
|
148
|
-
this.page = page;
|
|
149
|
-
}
|
|
150
|
-
async goto(value, config) {
|
|
151
|
-
await this.page.setContent(`
|
|
152
|
-
<ion-datetime presentation="time" value="${value}"></ion-datetime>
|
|
153
|
-
`, config);
|
|
154
|
-
await this.page.locator('.datetime-ready').waitFor();
|
|
155
|
-
this.timePicker = this.page.locator('ion-datetime');
|
|
156
|
-
}
|
|
157
|
-
async setValue(value) {
|
|
158
|
-
await this.timePicker.evaluate((el, newValue) => {
|
|
159
|
-
el.value = newValue;
|
|
160
|
-
}, value);
|
|
161
|
-
await this.page.waitForChanges();
|
|
162
|
-
}
|
|
163
|
-
async expectTime(hour, minute, ampm) {
|
|
164
|
-
const pickerColumns = this.timePicker.locator('ion-picker-column');
|
|
165
|
-
await expect(pickerColumns.nth(0)).toHaveJSProperty('value', hour);
|
|
166
|
-
await expect(pickerColumns.nth(1)).toHaveJSProperty('value', minute);
|
|
167
|
-
await expect(pickerColumns.nth(2)).toHaveJSProperty('value', ampm);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import { expect } from "@playwright/test";
|
|
5
|
-
import { configs, test } from "../../../../utils/test/playwright/index";
|
|
6
|
-
/**
|
|
7
|
-
* This behavior does not differ across
|
|
8
|
-
* modes/directions.
|
|
9
|
-
*/
|
|
10
|
-
configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config, screenshot }) => {
|
|
11
|
-
test.describe(title('datetime: readonly'), () => {
|
|
12
|
-
test('should not have visual regressions', async ({ page }) => {
|
|
13
|
-
await page.setContent(`
|
|
14
|
-
<ion-datetime value="2022-02-05T00:00:00" min="2022-01-01T00:00:00" max="2022-02-20T23:59:59" day-values="5,6,10,11,15,16,20" show-default-buttons readonly></ion-datetime>
|
|
15
|
-
`, config);
|
|
16
|
-
const datetime = page.locator('ion-datetime');
|
|
17
|
-
await expect(datetime).toHaveScreenshot(screenshot(`datetime-readonly`));
|
|
18
|
-
});
|
|
19
|
-
test('date should be disabled', async ({ page }) => {
|
|
20
|
-
await page.setContent(`
|
|
21
|
-
<ion-datetime value="2022-02-28" readonly></ion-datetime>
|
|
22
|
-
`, config);
|
|
23
|
-
await page.locator('.datetime-ready').waitFor();
|
|
24
|
-
const febFirstButton = page.locator(`.calendar-day[data-day='1'][data-month='2']`);
|
|
25
|
-
await expect(febFirstButton).toBeDisabled();
|
|
26
|
-
});
|
|
27
|
-
test('should navigate months via month-year button', async ({ page }) => {
|
|
28
|
-
await page.setContent(`
|
|
29
|
-
<ion-datetime value="2022-02-22T16:30:00" readonly></ion-datetime>
|
|
30
|
-
`, config);
|
|
31
|
-
const ionChange = await page.spyOnEvent('ionChange');
|
|
32
|
-
await page.locator('.datetime-ready').waitFor();
|
|
33
|
-
const calendarMonthYear = page.locator('ion-datetime .calendar-month-year');
|
|
34
|
-
await expect(calendarMonthYear).toHaveText('February 2022');
|
|
35
|
-
await calendarMonthYear.click();
|
|
36
|
-
await page.waitForChanges();
|
|
37
|
-
await page.locator('.month-column ion-picker-column-option').nth(2).click();
|
|
38
|
-
await page.waitForChanges();
|
|
39
|
-
await expect(calendarMonthYear).toHaveText('March 2022');
|
|
40
|
-
await expect(ionChange).not.toHaveReceivedEvent();
|
|
41
|
-
});
|
|
42
|
-
test('should open picker using keyboard navigation', async ({ page, browserName }) => {
|
|
43
|
-
await page.setContent(`
|
|
44
|
-
<ion-datetime value="2022-02-22T16:30:00" readonly></ion-datetime>
|
|
45
|
-
`, config);
|
|
46
|
-
const tabKey = browserName === 'webkit' ? 'Alt+Tab' : 'Tab';
|
|
47
|
-
await page.locator('.datetime-ready').waitFor();
|
|
48
|
-
const calendarMonthYear = page.locator('ion-datetime .calendar-month-year');
|
|
49
|
-
const monthYearButton = page.locator('.calendar-month-year-toggle');
|
|
50
|
-
await expect(calendarMonthYear).toHaveText('February 2022');
|
|
51
|
-
await page.keyboard.press(tabKey);
|
|
52
|
-
await expect(monthYearButton).toBeFocused();
|
|
53
|
-
await page.waitForChanges();
|
|
54
|
-
await page.keyboard.press('Enter');
|
|
55
|
-
await page.waitForChanges();
|
|
56
|
-
const marchPickerItem = page.locator('.month-column ion-picker-column-option').nth(2);
|
|
57
|
-
await expect(marchPickerItem).toBeVisible();
|
|
58
|
-
});
|
|
59
|
-
test('should view next month via next button', async ({ page }) => {
|
|
60
|
-
await page.setContent(`
|
|
61
|
-
<ion-datetime value="2022-02-22T16:30:00" readonly></ion-datetime>
|
|
62
|
-
`, config);
|
|
63
|
-
const ionChange = await page.spyOnEvent('ionChange');
|
|
64
|
-
const calendarMonthYear = page.locator('ion-datetime .calendar-month-year');
|
|
65
|
-
await expect(calendarMonthYear).toHaveText('February 2022');
|
|
66
|
-
const nextMonthButton = page.locator('ion-datetime .calendar-next-prev ion-button + ion-button');
|
|
67
|
-
await nextMonthButton.click();
|
|
68
|
-
await page.waitForChanges();
|
|
69
|
-
await expect(calendarMonthYear).toHaveText('March 2022');
|
|
70
|
-
await expect(ionChange).not.toHaveReceivedEvent();
|
|
71
|
-
});
|
|
72
|
-
test('should not change value when the month is changed via keyboard navigation', async ({ page, browserName }) => {
|
|
73
|
-
await page.setContent(`
|
|
74
|
-
<ion-datetime value="2022-02-22T16:30:00" readonly></ion-datetime>
|
|
75
|
-
`, config);
|
|
76
|
-
const tabKey = browserName === 'webkit' ? 'Alt+Tab' : 'Tab';
|
|
77
|
-
const datetime = page.locator('ion-datetime');
|
|
78
|
-
const monthYearButton = page.locator('.calendar-month-year-toggle');
|
|
79
|
-
const prevButton = page.locator('.calendar-next-prev ion-button:nth-child(1)');
|
|
80
|
-
const nextButton = page.locator('.calendar-next-prev ion-button:nth-child(2)');
|
|
81
|
-
const calendarMonthYear = page.locator('ion-datetime .calendar-month-year');
|
|
82
|
-
await page.keyboard.press(tabKey);
|
|
83
|
-
await expect(monthYearButton).toBeFocused();
|
|
84
|
-
await page.keyboard.press(tabKey);
|
|
85
|
-
await expect(prevButton).toBeFocused();
|
|
86
|
-
await page.keyboard.press(tabKey);
|
|
87
|
-
await expect(nextButton).toBeFocused();
|
|
88
|
-
// check value before & after selecting via keyboard
|
|
89
|
-
const initialValue = await datetime.evaluate((el) => el.value);
|
|
90
|
-
expect(initialValue).toBe('2022-02-22T16:30:00');
|
|
91
|
-
await expect(calendarMonthYear).toHaveText('February 2022');
|
|
92
|
-
await page.keyboard.press(tabKey);
|
|
93
|
-
await page.waitForChanges();
|
|
94
|
-
await page.keyboard.press('ArrowLeft');
|
|
95
|
-
await page.waitForChanges();
|
|
96
|
-
await expect(calendarMonthYear).toHaveText('January 2022');
|
|
97
|
-
await page.keyboard.press('Enter');
|
|
98
|
-
await page.waitForChanges();
|
|
99
|
-
const newValue = await datetime.evaluate((el) => el.value);
|
|
100
|
-
// should not have changed
|
|
101
|
-
expect(newValue).toBe('2022-02-22T16:30:00');
|
|
102
|
-
});
|
|
103
|
-
test('clear button should be disabled', async ({ page }) => {
|
|
104
|
-
await page.setContent(`
|
|
105
|
-
|
|
106
|
-
<ion-datetime value="2022-02-22T16:30:00" show-default-buttons="true" show-clear-button="true" readonly></ion-datetime>
|
|
107
|
-
`, config);
|
|
108
|
-
await page.locator('.datetime-ready').waitFor();
|
|
109
|
-
const clearButton = page.locator('#clear-button button');
|
|
110
|
-
await expect(clearButton).toBeDisabled();
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
});
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import { expect } from "@playwright/test";
|
|
5
|
-
import { configs, test } from "../../../../utils/test/playwright/index";
|
|
6
|
-
configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) => {
|
|
7
|
-
test.describe(title('datetime: set-value'), () => {
|
|
8
|
-
test('should update the active date when value is initially set', async ({ page }) => {
|
|
9
|
-
await page.goto('/src/components/datetime/test/set-value', config);
|
|
10
|
-
await page.locator('.datetime-ready').waitFor();
|
|
11
|
-
const datetime = page.locator('ion-datetime');
|
|
12
|
-
await datetime.evaluate((el) => (el.value = '2021-11-25T12:40:00.000Z'));
|
|
13
|
-
await page.waitForChanges();
|
|
14
|
-
const activeDate = page.locator('ion-datetime .calendar-day-active');
|
|
15
|
-
await expect(activeDate).toHaveText('25');
|
|
16
|
-
});
|
|
17
|
-
test('should update the active time when value is initially set', async ({ page }) => {
|
|
18
|
-
await page.goto('/src/components/datetime/test/set-value', config);
|
|
19
|
-
await page.locator('.datetime-ready').waitFor();
|
|
20
|
-
const datetime = page.locator('ion-datetime');
|
|
21
|
-
await datetime.evaluate((el) => (el.value = '2021-11-25T12:40:00.000Z'));
|
|
22
|
-
await page.waitForChanges();
|
|
23
|
-
const activeDate = page.locator('ion-datetime .time-body');
|
|
24
|
-
await expect(activeDate).toHaveText('12:40 PM');
|
|
25
|
-
});
|
|
26
|
-
test('should update active item when value is not initially set', async ({ page }) => {
|
|
27
|
-
await page.setContent(`
|
|
28
|
-
<ion-datetime presentation="date" locale="en-US"></ion-datetime>
|
|
29
|
-
`, config);
|
|
30
|
-
await page.locator('.datetime-ready').waitFor();
|
|
31
|
-
const datetime = page.locator('ion-datetime');
|
|
32
|
-
const activeDayButton = page.locator('.calendar-day-active');
|
|
33
|
-
await datetime.evaluate((el) => (el.value = '2021-10-05'));
|
|
34
|
-
await page.waitForChanges();
|
|
35
|
-
// Check that correct day is highlighted
|
|
36
|
-
await expect(activeDayButton).toHaveAttribute('data-day', '5');
|
|
37
|
-
await expect(activeDayButton).toHaveAttribute('data-month', '10');
|
|
38
|
-
await expect(activeDayButton).toHaveAttribute('data-year', '2021');
|
|
39
|
-
});
|
|
40
|
-
test('should scroll to new month when value is initially set and then updated', async ({ page }) => {
|
|
41
|
-
await page.goto('/src/components/datetime/test/set-value', config);
|
|
42
|
-
await page.locator('.datetime-ready').waitFor();
|
|
43
|
-
const datetime = page.locator('ion-datetime');
|
|
44
|
-
await datetime.evaluate((el) => (el.value = '2021-05-25T12:40:00.000Z'));
|
|
45
|
-
await page.waitForChanges();
|
|
46
|
-
const calendarHeader = datetime.locator('.calendar-month-year');
|
|
47
|
-
await expect(calendarHeader).toHaveText(/May 2021/);
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
});
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import { getCalendarDayState, isDayDisabled, isNextMonthDisabled, isPrevMonthDisabled } from "../utils/state";
|
|
5
|
-
describe('getCalendarDayState()', () => {
|
|
6
|
-
it('should return correct state', () => {
|
|
7
|
-
const refA = { month: 1, day: 1, year: 2019 };
|
|
8
|
-
const refB = { month: 1, day: 1, year: 2021 };
|
|
9
|
-
const refC = { month: 1, day: 1, year: 2023 };
|
|
10
|
-
expect(getCalendarDayState('en-US', refA, refB, refC)).toEqual({
|
|
11
|
-
isActive: false,
|
|
12
|
-
isToday: false,
|
|
13
|
-
disabled: false,
|
|
14
|
-
ariaSelected: null,
|
|
15
|
-
ariaLabel: 'Tuesday, January 1',
|
|
16
|
-
text: '1',
|
|
17
|
-
});
|
|
18
|
-
expect(getCalendarDayState('en-US', refA, refA, refC)).toEqual({
|
|
19
|
-
isActive: true,
|
|
20
|
-
isToday: false,
|
|
21
|
-
disabled: false,
|
|
22
|
-
ariaSelected: 'true',
|
|
23
|
-
ariaLabel: 'Tuesday, January 1',
|
|
24
|
-
text: '1',
|
|
25
|
-
});
|
|
26
|
-
expect(getCalendarDayState('en-US', refA, refB, refA)).toEqual({
|
|
27
|
-
isActive: false,
|
|
28
|
-
isToday: true,
|
|
29
|
-
disabled: false,
|
|
30
|
-
ariaSelected: null,
|
|
31
|
-
ariaLabel: 'Today, Tuesday, January 1',
|
|
32
|
-
text: '1',
|
|
33
|
-
});
|
|
34
|
-
expect(getCalendarDayState('en-US', refA, refA, refA)).toEqual({
|
|
35
|
-
isActive: true,
|
|
36
|
-
isToday: true,
|
|
37
|
-
disabled: false,
|
|
38
|
-
ariaSelected: 'true',
|
|
39
|
-
ariaLabel: 'Today, Tuesday, January 1',
|
|
40
|
-
text: '1',
|
|
41
|
-
});
|
|
42
|
-
expect(getCalendarDayState('en-US', refA, refA, refA, undefined, undefined, [1])).toEqual({
|
|
43
|
-
isActive: true,
|
|
44
|
-
isToday: true,
|
|
45
|
-
disabled: false,
|
|
46
|
-
ariaSelected: 'true',
|
|
47
|
-
ariaLabel: 'Today, Tuesday, January 1',
|
|
48
|
-
text: '1',
|
|
49
|
-
});
|
|
50
|
-
expect(getCalendarDayState('en-US', refA, refA, refA, undefined, undefined, [2])).toEqual({
|
|
51
|
-
isActive: true,
|
|
52
|
-
isToday: true,
|
|
53
|
-
disabled: true,
|
|
54
|
-
ariaSelected: 'true',
|
|
55
|
-
ariaLabel: 'Today, Tuesday, January 1',
|
|
56
|
-
text: '1',
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
describe('isDayDisabled()', () => {
|
|
61
|
-
it('should correctly return whether or not a day is disabled', () => {
|
|
62
|
-
const refDate = { month: 5, day: 12, year: 2021 };
|
|
63
|
-
expect(isDayDisabled(refDate, undefined, undefined)).toEqual(false);
|
|
64
|
-
expect(isDayDisabled(refDate, { month: 5, day: 12, year: 2021 }, undefined)).toEqual(false);
|
|
65
|
-
expect(isDayDisabled(refDate, { month: 6, day: 12, year: 2021 }, undefined)).toEqual(true);
|
|
66
|
-
expect(isDayDisabled(refDate, { month: 5, day: 13, year: 2022 }, undefined)).toEqual(true);
|
|
67
|
-
expect(isDayDisabled(refDate, undefined, { month: 5, day: 12, year: 2021 })).toEqual(false);
|
|
68
|
-
expect(isDayDisabled(refDate, undefined, { month: 4, day: 12, year: 2021 })).toEqual(true);
|
|
69
|
-
expect(isDayDisabled(refDate, undefined, { month: 5, day: 11, year: 2021 })).toEqual(true);
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
describe('isPrevMonthDisabled()', () => {
|
|
73
|
-
it('should return true', () => {
|
|
74
|
-
// Date month is before min month, in the same year
|
|
75
|
-
expect(isPrevMonthDisabled({ month: 5, year: 2021, day: null }, { month: 6, year: 2021, day: null })).toEqual(true);
|
|
76
|
-
// Date month and year is the same as min month and year
|
|
77
|
-
expect(isPrevMonthDisabled({ month: 1, year: 2021, day: null }, { month: 1, year: 2021, day: null })).toEqual(true);
|
|
78
|
-
// Date year is the same as min year (month not provided)
|
|
79
|
-
expect(isPrevMonthDisabled({ month: 1, year: 2021, day: null }, { year: 2021, month: null, day: null })).toEqual(true);
|
|
80
|
-
// Date year is less than the min year (month not provided)
|
|
81
|
-
expect(isPrevMonthDisabled({ month: 5, year: 2021, day: null }, { year: 2022, month: null, day: null })).toEqual(true);
|
|
82
|
-
// Date is above the maximum bounds and the previous month does not does not fall within the
|
|
83
|
-
// min-max range.
|
|
84
|
-
expect(isPrevMonthDisabled({ month: 12, year: 2021, day: null }, { month: 9, year: 2021, day: null }, { month: 10, year: 2021, day: null })).toEqual(true);
|
|
85
|
-
// Date is above the maximum bounds and a year ahead of the max range. The previous month/year
|
|
86
|
-
// does not fall within the min-max range.
|
|
87
|
-
expect(isPrevMonthDisabled({ month: 1, year: 2022, day: null }, { month: 9, year: 2021, day: null }, { month: 10, year: 2021, day: null })).toEqual(true);
|
|
88
|
-
});
|
|
89
|
-
it('should return false', () => {
|
|
90
|
-
// No min range provided
|
|
91
|
-
expect(isPrevMonthDisabled({ month: 12, year: 2021, day: null })).toEqual(false);
|
|
92
|
-
// Date year is the same as min year,
|
|
93
|
-
// but can navigate to a previous month without reducing the year.
|
|
94
|
-
expect(isPrevMonthDisabled({ month: 12, year: 2021, day: null }, { year: 2021, month: null, day: null })).toEqual(false);
|
|
95
|
-
expect(isPrevMonthDisabled({ month: 2, year: 2021, day: null }, { year: 2021, month: null, day: null })).toEqual(false);
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
describe('isNextMonthDisabled()', () => {
|
|
99
|
-
it('should return true', () => {
|
|
100
|
-
// Date month is the same as max month (in the same year)
|
|
101
|
-
expect(isNextMonthDisabled({ month: 10, year: 2021, day: null }, { month: 10, year: 2021, day: null })).toEqual(true);
|
|
102
|
-
// Date month is after the max month (in the same year)
|
|
103
|
-
expect(isNextMonthDisabled({ month: 10, year: 2021, day: null }, { month: 9, year: 2021, day: null })).toEqual(true);
|
|
104
|
-
// Date year is after the max month and year
|
|
105
|
-
expect(isNextMonthDisabled({ month: 10, year: 2022, day: null }, { month: 12, year: 2021, day: null })).toEqual(true);
|
|
106
|
-
});
|
|
107
|
-
it('should return false', () => {
|
|
108
|
-
// No max range provided
|
|
109
|
-
expect(isNextMonthDisabled({ month: 10, year: 2021, day: null })).toBe(false);
|
|
110
|
-
// Date month is before max month and is the previous month,
|
|
111
|
-
// so that navigating the next month would re-enter the max range
|
|
112
|
-
expect(isNextMonthDisabled({ month: 10, year: 2021, day: null }, { month: 11, year: 2021, day: null })).toEqual(false);
|
|
113
|
-
});
|
|
114
|
-
});
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import { expect } from "@playwright/test";
|
|
5
|
-
import { configs, test } from "../../../../utils/test/playwright/index";
|
|
6
|
-
configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) => {
|
|
7
|
-
test.describe(title('datetime: time label'), () => {
|
|
8
|
-
test('should render default time label', async ({ page }) => {
|
|
9
|
-
await page.setContent(`
|
|
10
|
-
<ion-datetime></ion-datetime>
|
|
11
|
-
`, config);
|
|
12
|
-
await page.locator('.datetime-ready').waitFor();
|
|
13
|
-
const timeLabel = page.locator('ion-datetime .time-header');
|
|
14
|
-
await expect(timeLabel).toHaveText('Time');
|
|
15
|
-
});
|
|
16
|
-
test('should not render a custom time label', async ({ page }) => {
|
|
17
|
-
await page.setContent(`
|
|
18
|
-
<ion-datetime show-default-time-label="false"></ion-datetime>
|
|
19
|
-
`, config);
|
|
20
|
-
await page.locator('.datetime-ready').waitFor();
|
|
21
|
-
const timeLabel = page.locator('ion-datetime .time-header');
|
|
22
|
-
await expect(timeLabel).toHaveText('');
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
});
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import { expect } from "@playwright/test";
|
|
5
|
-
import { configs, test } from "../../../../utils/test/playwright/index";
|
|
6
|
-
configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) => {
|
|
7
|
-
test.describe(title('datetime: values'), () => {
|
|
8
|
-
test('should render correct days', async ({ page }) => {
|
|
9
|
-
await page.setContent(`
|
|
10
|
-
<ion-datetime locale="en-US" presentation="date" day-values="1,2,3"></ion-datetime>
|
|
11
|
-
`, config);
|
|
12
|
-
await page.locator('.datetime-ready').waitFor();
|
|
13
|
-
const items = page.locator('.calendar-day:not([disabled])');
|
|
14
|
-
/**
|
|
15
|
-
* Datetime calendar grid renders 3 months by default,
|
|
16
|
-
* so this ensures that dayValues is applying to all
|
|
17
|
-
* rendered months, not just the initial month.
|
|
18
|
-
*/
|
|
19
|
-
await expect(items).toHaveText(['1', '2', '3', '1', '2', '3', '1', '2', '3']);
|
|
20
|
-
});
|
|
21
|
-
test('should render correct months', async ({ page }) => {
|
|
22
|
-
await page.setContent(`
|
|
23
|
-
<ion-datetime locale="en-US" presentation="month-year" month-values="5,6,10"></ion-datetime>
|
|
24
|
-
`, config);
|
|
25
|
-
const items = page.locator('.month-column ion-picker-column-option');
|
|
26
|
-
await expect(items).toHaveText(['May', 'June', 'October']);
|
|
27
|
-
});
|
|
28
|
-
test('should render correct years', async ({ page }) => {
|
|
29
|
-
await page.setContent(`
|
|
30
|
-
<ion-datetime locale="en-US" presentation="month-year" year-values="2022,2021,2020"></ion-datetime>
|
|
31
|
-
`, config);
|
|
32
|
-
const items = page.locator('.year-column ion-picker-column-option');
|
|
33
|
-
await expect(items).toHaveText(['2022', '2021', '2020']);
|
|
34
|
-
});
|
|
35
|
-
test('should render correct hours', async ({ page }) => {
|
|
36
|
-
await page.setContent(`
|
|
37
|
-
<ion-datetime locale="en-US" presentation="time" hour-values="1,2,3"></ion-datetime>
|
|
38
|
-
`, config);
|
|
39
|
-
const items = page.locator('ion-picker-column:first-of-type ion-picker-column-option');
|
|
40
|
-
await expect(items).toHaveText(['1', '2', '3']);
|
|
41
|
-
});
|
|
42
|
-
test('should render correct minutes', async ({ page }) => {
|
|
43
|
-
await page.setContent(`
|
|
44
|
-
<ion-datetime locale="en-US" presentation="time" minute-values="1,2,3"></ion-datetime>
|
|
45
|
-
`, config);
|
|
46
|
-
const items = page.locator('ion-picker-column:nth-of-type(2) ion-picker-column-option');
|
|
47
|
-
await expect(items).toHaveText(['01', '02', '03']);
|
|
48
|
-
});
|
|
49
|
-
test('should adjust default parts for allowed hour and minute values', async ({ page }) => {
|
|
50
|
-
/**
|
|
51
|
-
* Mock today's date for testing.
|
|
52
|
-
* Playwright does not support this natively
|
|
53
|
-
* so we extend the native Date interface: https://github.com/microsoft/playwright/issues/6347
|
|
54
|
-
*/
|
|
55
|
-
await page.setContent(`
|
|
56
|
-
<ion-datetime presentation="time" locale="en-US" hour-values="02" minute-values="0,15,30,45"></ion-datetime>
|
|
57
|
-
|
|
58
|
-
<script>
|
|
59
|
-
const mockToday = '2022-10-10T16:22';
|
|
60
|
-
Date = class extends Date {
|
|
61
|
-
constructor(...args) {
|
|
62
|
-
if (args.length === 0) {
|
|
63
|
-
super(mockToday)
|
|
64
|
-
} else {
|
|
65
|
-
super(...args);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
</script>
|
|
70
|
-
`, config);
|
|
71
|
-
await page.locator('.datetime-ready').waitFor();
|
|
72
|
-
const minuteColumn = page.locator('ion-picker-column').nth(1);
|
|
73
|
-
const minuteItems = minuteColumn.locator('ion-picker-column-option');
|
|
74
|
-
await expect(minuteItems).toHaveText(['00', '15', '30', '45']);
|
|
75
|
-
await expect(minuteColumn).toHaveJSProperty('value', 15);
|
|
76
|
-
const hourColumn = page.locator('ion-picker-column').nth(0);
|
|
77
|
-
const hourItems = hourColumn.locator('ion-picker-column-option');
|
|
78
|
-
await expect(hourItems).toHaveText(['2']);
|
|
79
|
-
await expect(hourColumn).toHaveJSProperty('value', 2);
|
|
80
|
-
/**
|
|
81
|
-
* Since the allowed hour is 2AM, the time period
|
|
82
|
-
* should switch from PM to AM.
|
|
83
|
-
*/
|
|
84
|
-
const ampmColumn = page.locator('ion-picker-column').nth(2);
|
|
85
|
-
const ampmItems = ampmColumn.locator('ion-picker-column-option');
|
|
86
|
-
await expect(ampmItems).toHaveText(['AM', 'PM']);
|
|
87
|
-
await expect(ampmColumn).toHaveJSProperty('value', 'am');
|
|
88
|
-
});
|
|
89
|
-
test('should adjust default parts month for allowed month values', async ({ page }) => {
|
|
90
|
-
/**
|
|
91
|
-
* Mock today's date for testing.
|
|
92
|
-
* Playwright does not support this natively
|
|
93
|
-
* so we extend the native Date interface: https://github.com/microsoft/playwright/issues/6347
|
|
94
|
-
*/
|
|
95
|
-
await page.setContent(`
|
|
96
|
-
<ion-datetime prefer-wheel="true" presentation="date" locale="en-US" month-values="01" hour-values="02" minute-values="0,15,30,45"></ion-datetime>
|
|
97
|
-
|
|
98
|
-
<script>
|
|
99
|
-
const mockToday = '2022-10-10T16:22';
|
|
100
|
-
Date = class extends Date {
|
|
101
|
-
constructor(...args) {
|
|
102
|
-
if (args.length === 0) {
|
|
103
|
-
super(mockToday)
|
|
104
|
-
} else {
|
|
105
|
-
super(...args);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
</script>
|
|
110
|
-
`, config);
|
|
111
|
-
await page.locator('.datetime-ready').waitFor();
|
|
112
|
-
const monthItems = page.locator('.month-column ion-picker-column-option');
|
|
113
|
-
await expect(monthItems).toHaveText(['January']);
|
|
114
|
-
await expect(monthItems.nth(0)).toHaveClass(/option-active/);
|
|
115
|
-
});
|
|
116
|
-
test('today date highlight should persist even if disallowed from dayValues', async ({ page }) => {
|
|
117
|
-
/**
|
|
118
|
-
* Mock today's date for testing.
|
|
119
|
-
* Playwright does not support this natively
|
|
120
|
-
* so we extend the native Date interface: https://github.com/microsoft/playwright/issues/6347
|
|
121
|
-
*/
|
|
122
|
-
await page.setContent(`
|
|
123
|
-
<ion-datetime day-values="9" presentation="date" locale="en-US"></ion-datetime>
|
|
124
|
-
|
|
125
|
-
<script>
|
|
126
|
-
const mockToday = '2022-10-10T16:22';
|
|
127
|
-
Date = class extends Date {
|
|
128
|
-
constructor(...args) {
|
|
129
|
-
if (args.length === 0) {
|
|
130
|
-
super(mockToday)
|
|
131
|
-
} else {
|
|
132
|
-
super(...args);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
</script>
|
|
137
|
-
`, config);
|
|
138
|
-
await page.locator('.datetime-ready').waitFor();
|
|
139
|
-
const todayButton = page.locator('.calendar-day[data-day="10"][data-month="10"][data-year="2022"]');
|
|
140
|
-
await expect(todayButton).toHaveClass(/calendar-day-today/);
|
|
141
|
-
});
|
|
142
|
-
});
|
|
143
|
-
});
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import { expect } from "@playwright/test";
|
|
5
|
-
import { configs, test } from "../../../../utils/test/playwright/index";
|
|
6
|
-
/**
|
|
7
|
-
* The tested behavior does not vary across directions/modes
|
|
8
|
-
*/
|
|
9
|
-
configs({ directions: ['ltr'], modes: ['ios'] }).forEach(({ title, screenshot, config }) => {
|
|
10
|
-
test.describe(title('datetime-button: font scaling'), () => {
|
|
11
|
-
test('should scale text on larger font sizes', async ({ page }) => {
|
|
12
|
-
await page.setContent(`
|
|
13
|
-
<style>
|
|
14
|
-
html {
|
|
15
|
-
font-size: 28px;
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
18
|
-
<ion-datetime-button locale="en-US" datetime="datetime"></ion-datetime-button>
|
|
19
|
-
<ion-datetime id="datetime" value="2022-01-01T06:30:00" presentation="date-time"></ion-datetime>
|
|
20
|
-
`, config);
|
|
21
|
-
const datetimeButton = page.locator('ion-datetime-button');
|
|
22
|
-
await expect(datetimeButton).toHaveScreenshot(screenshot(`datetime-button-scale`));
|
|
23
|
-
});
|
|
24
|
-
test('should wrap text on larger font sizes', async ({ page }) => {
|
|
25
|
-
await page.setContent(`
|
|
26
|
-
<style>
|
|
27
|
-
html {
|
|
28
|
-
font-size: 48px;
|
|
29
|
-
}
|
|
30
|
-
</style>
|
|
31
|
-
<ion-datetime-button locale="en-US" datetime="datetime"></ion-datetime-button>
|
|
32
|
-
<ion-datetime id="datetime" value="2022-01-01T06:30:00" presentation="date-time"></ion-datetime>
|
|
33
|
-
`, config);
|
|
34
|
-
const datetimeButton = page.locator('ion-datetime-button');
|
|
35
|
-
await expect(datetimeButton).toHaveScreenshot(screenshot(`datetime-button-scale-wrap`));
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
});
|