@ongov/ontario-design-system-component-library 4.2.0-alpha.1 → 4.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ontario-accordion_42.cjs.entry.js +286 -249
- package/dist/cjs/ontario-accordion_42.cjs.entry.js.map +1 -1
- package/dist/cjs/ontario-design-system-components.cjs.js +1 -1
- package/dist/cjs/ontario-icon-account.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-add-alt.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-add.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-arrow-up.cjs.entry.js +4 -4
- package/dist/cjs/ontario-icon-attach.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-bookmark-off.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-bookmark-on.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-calendar.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-chevron-right.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-clock.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-close-header.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-close.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-cloud.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-collapse.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-credit-card.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-critical-alert-warning.cjs.entry.js +5 -5
- package/dist/cjs/ontario-icon-delete.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-document.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-download.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-dropdown-arrow.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-edit.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-expand.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-export.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-facebook-alt.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-facebook.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-favourite-off.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-favourite-on.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-filter.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-flickr.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-grid.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-instagram.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-interac-en-alt.cjs.entry.js +19 -19
- package/dist/cjs/ontario-icon-interac-en.cjs.entry.js +18 -18
- package/dist/cjs/ontario-icon-interac-fr-alt.cjs.entry.js +19 -19
- package/dist/cjs/ontario-icon-interac-fr.cjs.entry.js +12 -12
- package/dist/cjs/ontario-icon-linkedin-alt.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-linkedin.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-list.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-live-chat.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-location-off.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-location-on.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-lock-off.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-lock-on.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-map.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-mastercard-alt.cjs.entry.js +6 -6
- package/dist/cjs/ontario-icon-media-fast-forward.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-media-fast-rewind.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-media-pause.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-media-play.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-media-stop.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-menu-header.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-menu.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-microphone-off.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-microphone-on.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-more-vertical.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-new-window.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-next.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-password-hide.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-password-show.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-phone.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-photo.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-pin-location-off.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-pin-location-on.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-previous.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-remove-alt.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-remove.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-replay.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-rss-feed.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-save.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-search-white.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-search.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-sentiment-1.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-sentiment-2.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-sentiment-3.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-sentiment-4.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-settings.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-share.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-sort.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-tag.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-timer.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-transport-bicycle.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-transport-car.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-transport-walk.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-tty.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-twitter-alt.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-twitter.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-upload.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-video.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-visa.cjs.entry.js +5 -5
- package/dist/cjs/ontario-icon-vote-dislike.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-vote-like.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-vpn-key.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-wheelchair.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-wifi.cjs.entry.js +3 -3
- package/dist/cjs/ontario-icon-youtube.cjs.entry.js +3 -3
- package/dist/collection/components/ontario-aside/ontario-aside.js +18 -37
- package/dist/collection/components/ontario-aside/ontario-aside.js.map +1 -1
- package/dist/collection/components/ontario-aside/test/ontario-aside.spec.js +35 -0
- package/dist/collection/components/ontario-aside/test/ontario-aside.spec.js.map +1 -1
- package/dist/collection/components/ontario-callout/ontario-callout.js +16 -36
- package/dist/collection/components/ontario-callout/ontario-callout.js.map +1 -1
- package/dist/collection/components/ontario-callout/test/ontario-callout.spec.js +18 -0
- package/dist/collection/components/ontario-callout/test/ontario-callout.spec.js.map +1 -1
- package/dist/collection/components/ontario-card/ontario-card.css +5 -0
- package/dist/collection/components/ontario-card-collection/ontario-card-collection.css +3 -0
- package/dist/collection/components/ontario-checkbox/ontario-checkboxes.css +113 -22
- package/dist/collection/components/ontario-checkbox/ontario-checkboxes.js +52 -3
- package/dist/collection/components/ontario-checkbox/ontario-checkboxes.js.map +1 -1
- package/dist/collection/components/ontario-checkbox/test/ontario-checkboxes.spec.js +4 -0
- package/dist/collection/components/ontario-checkbox/test/ontario-checkboxes.spec.js.map +1 -1
- package/dist/collection/components/ontario-critical-alert/ontario-critical-alert.js +6 -6
- package/dist/collection/components/ontario-date-input/ontario-date-input.css +4 -0
- package/dist/collection/components/ontario-date-input/ontario-date-input.js +4 -4
- package/dist/collection/components/ontario-dropdown-list/ontario-dropdown-list.css +28 -0
- package/dist/collection/components/ontario-dropdown-list/ontario-dropdown-list.js +51 -2
- package/dist/collection/components/ontario-dropdown-list/ontario-dropdown-list.js.map +1 -1
- package/dist/collection/components/ontario-dropdown-list/test/ontario-dropdown-list.spec.js +4 -0
- package/dist/collection/components/ontario-dropdown-list/test/ontario-dropdown-list.spec.js.map +1 -1
- package/dist/collection/components/ontario-fieldset/ontario-fieldset.css +4 -0
- package/dist/collection/components/ontario-fieldset/ontario-fieldset.js +4 -4
- package/dist/collection/components/ontario-footer/components/expanded-footer-wrapper.js.map +1 -1
- package/dist/collection/components/ontario-header/ontario-header.css +5 -1
- package/dist/collection/components/ontario-hint-expander/ontario-hint-expander.js +7 -7
- package/dist/collection/components/ontario-icon/ontario-icon-accessibility.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-account.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-add-alt.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-add.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-alert-error.js +4 -4
- package/dist/collection/components/ontario-icon/ontario-icon-alert-information.js +4 -4
- package/dist/collection/components/ontario-icon/ontario-icon-alert-success.js +4 -4
- package/dist/collection/components/ontario-icon/ontario-icon-alert-warning.js +4 -4
- package/dist/collection/components/ontario-icon/ontario-icon-arrow-up.js +4 -4
- package/dist/collection/components/ontario-icon/ontario-icon-attach.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-bookmark-off.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-bookmark-on.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-calendar.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-camera.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-chevron-down.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-chevron-left.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-chevron-right.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-chevron-up.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-clock.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-close-header.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-close.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-cloud.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-collapse.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-credit-card.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-critical-alert-warning.js +5 -5
- package/dist/collection/components/ontario-icon/ontario-icon-delete.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-document.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-download.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-dropdown-arrow.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-edit.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-email.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-expand.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-export.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-facebook-alt.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-facebook.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-favourite-off.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-favourite-on.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-filter.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-flickr.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-grid.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-help.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-instagram.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-interac-en-alt.js +19 -19
- package/dist/collection/components/ontario-icon/ontario-icon-interac-en.js +18 -18
- package/dist/collection/components/ontario-icon/ontario-icon-interac-fr-alt.js +19 -19
- package/dist/collection/components/ontario-icon/ontario-icon-interac-fr.js +12 -12
- package/dist/collection/components/ontario-icon/ontario-icon-linkedin-alt.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-linkedin.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-list.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-live-chat.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-location-off.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-location-on.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-lock-off.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-lock-on.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-map.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-mastercard-alt.js +6 -6
- package/dist/collection/components/ontario-icon/ontario-icon-mastercard.js +9 -9
- package/dist/collection/components/ontario-icon/ontario-icon-media-fast-forward.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-media-fast-rewind.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-media-pause.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-media-play.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-media-stop.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-menu-header.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-menu.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-microphone-off.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-microphone-on.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-more-vertical.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-new-window.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-next.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-notification.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-password-hide.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-password-show.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-phone.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-photo.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-pin-location-off.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-pin-location-on.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-previous.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-print.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-remove-alt.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-remove.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-replay.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-rss-feed.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-save.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-search-white.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-search.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-sentiment-1.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-sentiment-2.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-sentiment-3.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-sentiment-4.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-sentiment-5.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-settings.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-share.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-sort.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-tag.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-text-message.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-timer.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-transport-bicycle.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-transport-bus.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-transport-car.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-transport-walk.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-tty.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-twitter-alt.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-twitter.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-upload.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-video.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-visa.js +5 -5
- package/dist/collection/components/ontario-icon/ontario-icon-vote-dislike.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-vote-like.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-vpn-key.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-wheelchair.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-wifi.js +3 -3
- package/dist/collection/components/ontario-icon/ontario-icon-youtube.js +3 -3
- package/dist/collection/components/ontario-input/ontario-input.css +4 -0
- package/dist/collection/components/ontario-input/ontario-input.js +3 -3
- package/dist/collection/components/ontario-language-toggle/ontario-language-toggle.js +1 -1
- package/dist/collection/components/ontario-page-alert/ontario-page-alert.js +5 -5
- package/dist/collection/components/ontario-radio-buttons/ontario-radio-buttons.css +77 -1
- package/dist/collection/components/ontario-radio-buttons/ontario-radio-buttons.js +56 -3
- package/dist/collection/components/ontario-radio-buttons/ontario-radio-buttons.js.map +1 -1
- package/dist/collection/components/ontario-radio-buttons/test/ontario-radio-button.spec.js +6 -1
- package/dist/collection/components/ontario-radio-buttons/test/ontario-radio-button.spec.js.map +1 -1
- package/dist/collection/components/ontario-step-indicator/ontario-step-indicator.js +5 -5
- package/dist/collection/components/ontario-table/ontario-table.js +5 -5
- package/dist/collection/components/ontario-textarea/ontario-textarea.css +28 -0
- package/dist/collection/components/ontario-textarea/ontario-textarea.js +54 -2
- package/dist/collection/components/ontario-textarea/ontario-textarea.js.map +1 -1
- package/dist/collection/components/ontario-textarea/test/ontario-textarea.spec.js +4 -0
- package/dist/collection/components/ontario-textarea/test/ontario-textarea.spec.js.map +1 -1
- package/dist/collection/utils/components/callout-aside/callout-aside-helpers.js +4 -4
- package/dist/collection/utils/components/callout-aside/callout-aside-helpers.js.map +1 -1
- package/dist/collection/utils/components/callout-aside/callout-aside.interface.js.map +1 -1
- package/dist/components/callout-aside-helpers.js +4 -4
- package/dist/components/callout-aside-helpers.js.map +1 -1
- package/dist/components/error-message.js +324 -1
- package/dist/components/error-message.js.map +1 -1
- package/dist/components/ontario-aside.js +13 -31
- package/dist/components/ontario-aside.js.map +1 -1
- package/dist/components/ontario-callout.js +12 -30
- package/dist/components/ontario-callout.js.map +1 -1
- package/dist/components/ontario-card-collection.js +1 -1
- package/dist/components/ontario-card-collection.js.map +1 -1
- package/dist/components/ontario-card.js +1 -1
- package/dist/components/ontario-card.js.map +1 -1
- package/dist/components/ontario-checkboxes.js +34 -8
- package/dist/components/ontario-checkboxes.js.map +1 -1
- package/dist/components/ontario-critical-alert.js +6 -6
- package/dist/components/ontario-date-input.js +6 -7
- package/dist/components/ontario-date-input.js.map +1 -1
- package/dist/components/ontario-dropdown-list.js +29 -7
- package/dist/components/ontario-dropdown-list.js.map +1 -1
- package/dist/components/ontario-fieldset.js +5 -5
- package/dist/components/ontario-fieldset.js.map +1 -1
- package/dist/components/ontario-footer.js.map +1 -1
- package/dist/components/ontario-header.js +1 -1
- package/dist/components/ontario-header.js.map +1 -1
- package/dist/components/ontario-hint-expander2.js +7 -7
- package/dist/components/ontario-icon-accessibility.js +3 -3
- package/dist/components/ontario-icon-account.js +3 -3
- package/dist/components/ontario-icon-add-alt.js +3 -3
- package/dist/components/ontario-icon-add.js +3 -3
- package/dist/components/ontario-icon-alert-error2.js +4 -4
- package/dist/components/ontario-icon-alert-information2.js +4 -4
- package/dist/components/ontario-icon-alert-success2.js +4 -4
- package/dist/components/ontario-icon-alert-warning2.js +4 -4
- package/dist/components/ontario-icon-arrow-up.js +4 -4
- package/dist/components/ontario-icon-attach.js +3 -3
- package/dist/components/ontario-icon-bookmark-off.js +3 -3
- package/dist/components/ontario-icon-bookmark-on.js +3 -3
- package/dist/components/ontario-icon-calendar.js +3 -3
- package/dist/components/ontario-icon-camera.js +3 -3
- package/dist/components/ontario-icon-chevron-down2.js +3 -3
- package/dist/components/ontario-icon-chevron-left2.js +3 -3
- package/dist/components/ontario-icon-chevron-right.js +3 -3
- package/dist/components/ontario-icon-chevron-up2.js +3 -3
- package/dist/components/ontario-icon-clock.js +3 -3
- package/dist/components/ontario-icon-close-header.js +3 -3
- package/dist/components/ontario-icon-close.js +3 -3
- package/dist/components/ontario-icon-cloud.js +3 -3
- package/dist/components/ontario-icon-collapse.js +3 -3
- package/dist/components/ontario-icon-credit-card.js +3 -3
- package/dist/components/ontario-icon-critical-alert-warning.js +5 -5
- package/dist/components/ontario-icon-delete.js +3 -3
- package/dist/components/ontario-icon-document.js +3 -3
- package/dist/components/ontario-icon-download.js +3 -3
- package/dist/components/ontario-icon-dropdown-arrow.js +3 -3
- package/dist/components/ontario-icon-edit.js +3 -3
- package/dist/components/ontario-icon-email.js +3 -3
- package/dist/components/ontario-icon-expand.js +3 -3
- package/dist/components/ontario-icon-export.js +3 -3
- package/dist/components/ontario-icon-facebook-alt.js +3 -3
- package/dist/components/ontario-icon-facebook.js +3 -3
- package/dist/components/ontario-icon-favourite-off.js +3 -3
- package/dist/components/ontario-icon-favourite-on.js +3 -3
- package/dist/components/ontario-icon-filter.js +3 -3
- package/dist/components/ontario-icon-flickr.js +3 -3
- package/dist/components/ontario-icon-grid.js +3 -3
- package/dist/components/ontario-icon-help.js +3 -3
- package/dist/components/ontario-icon-instagram.js +3 -3
- package/dist/components/ontario-icon-interac-en-alt.js +19 -19
- package/dist/components/ontario-icon-interac-en.js +18 -18
- package/dist/components/ontario-icon-interac-fr-alt.js +19 -19
- package/dist/components/ontario-icon-interac-fr.js +12 -12
- package/dist/components/ontario-icon-linkedin-alt.js +3 -3
- package/dist/components/ontario-icon-linkedin.js +3 -3
- package/dist/components/ontario-icon-list.js +3 -3
- package/dist/components/ontario-icon-live-chat.js +3 -3
- package/dist/components/ontario-icon-location-off.js +3 -3
- package/dist/components/ontario-icon-location-on.js +3 -3
- package/dist/components/ontario-icon-lock-off.js +3 -3
- package/dist/components/ontario-icon-lock-on.js +3 -3
- package/dist/components/ontario-icon-map.js +3 -3
- package/dist/components/ontario-icon-mastercard-alt.js +6 -6
- package/dist/components/ontario-icon-mastercard.js +9 -9
- package/dist/components/ontario-icon-media-fast-forward.js +3 -3
- package/dist/components/ontario-icon-media-fast-rewind.js +3 -3
- package/dist/components/ontario-icon-media-pause.js +3 -3
- package/dist/components/ontario-icon-media-play.js +3 -3
- package/dist/components/ontario-icon-media-stop.js +3 -3
- package/dist/components/ontario-icon-menu-header.js +3 -3
- package/dist/components/ontario-icon-menu.js +3 -3
- package/dist/components/ontario-icon-microphone-off.js +3 -3
- package/dist/components/ontario-icon-microphone-on.js +3 -3
- package/dist/components/ontario-icon-more-vertical.js +3 -3
- package/dist/components/ontario-icon-new-window.js +3 -3
- package/dist/components/ontario-icon-next.js +3 -3
- package/dist/components/ontario-icon-notification.js +3 -3
- package/dist/components/ontario-icon-password-hide.js +3 -3
- package/dist/components/ontario-icon-password-show.js +3 -3
- package/dist/components/ontario-icon-phone.js +3 -3
- package/dist/components/ontario-icon-photo.js +3 -3
- package/dist/components/ontario-icon-pin-location-off.js +3 -3
- package/dist/components/ontario-icon-pin-location-on.js +3 -3
- package/dist/components/ontario-icon-previous.js +3 -3
- package/dist/components/ontario-icon-print.js +3 -3
- package/dist/components/ontario-icon-remove-alt.js +3 -3
- package/dist/components/ontario-icon-remove.js +3 -3
- package/dist/components/ontario-icon-replay.js +3 -3
- package/dist/components/ontario-icon-rss-feed.js +3 -3
- package/dist/components/ontario-icon-save.js +3 -3
- package/dist/components/ontario-icon-search-white.js +3 -3
- package/dist/components/ontario-icon-search.js +3 -3
- package/dist/components/ontario-icon-sentiment-1.js +3 -3
- package/dist/components/ontario-icon-sentiment-2.js +3 -3
- package/dist/components/ontario-icon-sentiment-3.js +3 -3
- package/dist/components/ontario-icon-sentiment-4.js +3 -3
- package/dist/components/ontario-icon-sentiment-5.js +3 -3
- package/dist/components/ontario-icon-settings.js +3 -3
- package/dist/components/ontario-icon-share.js +3 -3
- package/dist/components/ontario-icon-sort.js +3 -3
- package/dist/components/ontario-icon-tag.js +3 -3
- package/dist/components/ontario-icon-text-message.js +3 -3
- package/dist/components/ontario-icon-timer.js +3 -3
- package/dist/components/ontario-icon-transport-bicycle.js +3 -3
- package/dist/components/ontario-icon-transport-bus.js +3 -3
- package/dist/components/ontario-icon-transport-car.js +3 -3
- package/dist/components/ontario-icon-transport-walk.js +3 -3
- package/dist/components/ontario-icon-tty.js +3 -3
- package/dist/components/ontario-icon-twitter-alt.js +3 -3
- package/dist/components/ontario-icon-twitter.js +3 -3
- package/dist/components/ontario-icon-upload.js +3 -3
- package/dist/components/ontario-icon-video.js +3 -3
- package/dist/components/ontario-icon-visa.js +5 -5
- package/dist/components/ontario-icon-vote-dislike.js +3 -3
- package/dist/components/ontario-icon-vote-like.js +3 -3
- package/dist/components/ontario-icon-vpn-key.js +3 -3
- package/dist/components/ontario-icon-wheelchair.js +3 -3
- package/dist/components/ontario-icon-wifi.js +3 -3
- package/dist/components/ontario-icon-youtube.js +3 -3
- package/dist/components/ontario-input.js +5 -6
- package/dist/components/ontario-input.js.map +1 -1
- package/dist/components/ontario-language-toggle2.js +1 -1
- package/dist/components/ontario-page-alert.js +5 -5
- package/dist/components/ontario-radio-buttons.js +34 -8
- package/dist/components/ontario-radio-buttons.js.map +1 -1
- package/dist/components/ontario-step-indicator.js +5 -5
- package/dist/components/ontario-table.js +5 -5
- package/dist/components/ontario-textarea.js +32 -7
- package/dist/components/ontario-textarea.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ontario-accordion_42.entry.js +274 -249
- package/dist/esm/ontario-accordion_42.entry.js.map +1 -1
- package/dist/esm/ontario-design-system-components.js +1 -1
- package/dist/esm/ontario-icon-account.entry.js +3 -3
- package/dist/esm/ontario-icon-add-alt.entry.js +3 -3
- package/dist/esm/ontario-icon-add.entry.js +3 -3
- package/dist/esm/ontario-icon-arrow-up.entry.js +4 -4
- package/dist/esm/ontario-icon-attach.entry.js +3 -3
- package/dist/esm/ontario-icon-bookmark-off.entry.js +3 -3
- package/dist/esm/ontario-icon-bookmark-on.entry.js +3 -3
- package/dist/esm/ontario-icon-calendar.entry.js +3 -3
- package/dist/esm/ontario-icon-chevron-right.entry.js +3 -3
- package/dist/esm/ontario-icon-clock.entry.js +3 -3
- package/dist/esm/ontario-icon-close-header.entry.js +3 -3
- package/dist/esm/ontario-icon-close.entry.js +3 -3
- package/dist/esm/ontario-icon-cloud.entry.js +3 -3
- package/dist/esm/ontario-icon-collapse.entry.js +3 -3
- package/dist/esm/ontario-icon-credit-card.entry.js +3 -3
- package/dist/esm/ontario-icon-critical-alert-warning.entry.js +5 -5
- package/dist/esm/ontario-icon-delete.entry.js +3 -3
- package/dist/esm/ontario-icon-document.entry.js +3 -3
- package/dist/esm/ontario-icon-download.entry.js +3 -3
- package/dist/esm/ontario-icon-dropdown-arrow.entry.js +3 -3
- package/dist/esm/ontario-icon-edit.entry.js +3 -3
- package/dist/esm/ontario-icon-expand.entry.js +3 -3
- package/dist/esm/ontario-icon-export.entry.js +3 -3
- package/dist/esm/ontario-icon-facebook-alt.entry.js +3 -3
- package/dist/esm/ontario-icon-facebook.entry.js +3 -3
- package/dist/esm/ontario-icon-favourite-off.entry.js +3 -3
- package/dist/esm/ontario-icon-favourite-on.entry.js +3 -3
- package/dist/esm/ontario-icon-filter.entry.js +3 -3
- package/dist/esm/ontario-icon-flickr.entry.js +3 -3
- package/dist/esm/ontario-icon-grid.entry.js +3 -3
- package/dist/esm/ontario-icon-instagram.entry.js +3 -3
- package/dist/esm/ontario-icon-interac-en-alt.entry.js +19 -19
- package/dist/esm/ontario-icon-interac-en.entry.js +18 -18
- package/dist/esm/ontario-icon-interac-fr-alt.entry.js +19 -19
- package/dist/esm/ontario-icon-interac-fr.entry.js +12 -12
- package/dist/esm/ontario-icon-linkedin-alt.entry.js +3 -3
- package/dist/esm/ontario-icon-linkedin.entry.js +3 -3
- package/dist/esm/ontario-icon-list.entry.js +3 -3
- package/dist/esm/ontario-icon-live-chat.entry.js +3 -3
- package/dist/esm/ontario-icon-location-off.entry.js +3 -3
- package/dist/esm/ontario-icon-location-on.entry.js +3 -3
- package/dist/esm/ontario-icon-lock-off.entry.js +3 -3
- package/dist/esm/ontario-icon-lock-on.entry.js +3 -3
- package/dist/esm/ontario-icon-map.entry.js +3 -3
- package/dist/esm/ontario-icon-mastercard-alt.entry.js +6 -6
- package/dist/esm/ontario-icon-media-fast-forward.entry.js +3 -3
- package/dist/esm/ontario-icon-media-fast-rewind.entry.js +3 -3
- package/dist/esm/ontario-icon-media-pause.entry.js +3 -3
- package/dist/esm/ontario-icon-media-play.entry.js +3 -3
- package/dist/esm/ontario-icon-media-stop.entry.js +3 -3
- package/dist/esm/ontario-icon-menu-header.entry.js +3 -3
- package/dist/esm/ontario-icon-menu.entry.js +3 -3
- package/dist/esm/ontario-icon-microphone-off.entry.js +3 -3
- package/dist/esm/ontario-icon-microphone-on.entry.js +3 -3
- package/dist/esm/ontario-icon-more-vertical.entry.js +3 -3
- package/dist/esm/ontario-icon-new-window.entry.js +3 -3
- package/dist/esm/ontario-icon-next.entry.js +3 -3
- package/dist/esm/ontario-icon-password-hide.entry.js +3 -3
- package/dist/esm/ontario-icon-password-show.entry.js +3 -3
- package/dist/esm/ontario-icon-phone.entry.js +3 -3
- package/dist/esm/ontario-icon-photo.entry.js +3 -3
- package/dist/esm/ontario-icon-pin-location-off.entry.js +3 -3
- package/dist/esm/ontario-icon-pin-location-on.entry.js +3 -3
- package/dist/esm/ontario-icon-previous.entry.js +3 -3
- package/dist/esm/ontario-icon-remove-alt.entry.js +3 -3
- package/dist/esm/ontario-icon-remove.entry.js +3 -3
- package/dist/esm/ontario-icon-replay.entry.js +3 -3
- package/dist/esm/ontario-icon-rss-feed.entry.js +3 -3
- package/dist/esm/ontario-icon-save.entry.js +3 -3
- package/dist/esm/ontario-icon-search-white.entry.js +3 -3
- package/dist/esm/ontario-icon-search.entry.js +3 -3
- package/dist/esm/ontario-icon-sentiment-1.entry.js +3 -3
- package/dist/esm/ontario-icon-sentiment-2.entry.js +3 -3
- package/dist/esm/ontario-icon-sentiment-3.entry.js +3 -3
- package/dist/esm/ontario-icon-sentiment-4.entry.js +3 -3
- package/dist/esm/ontario-icon-settings.entry.js +3 -3
- package/dist/esm/ontario-icon-share.entry.js +3 -3
- package/dist/esm/ontario-icon-sort.entry.js +3 -3
- package/dist/esm/ontario-icon-tag.entry.js +3 -3
- package/dist/esm/ontario-icon-timer.entry.js +3 -3
- package/dist/esm/ontario-icon-transport-bicycle.entry.js +3 -3
- package/dist/esm/ontario-icon-transport-car.entry.js +3 -3
- package/dist/esm/ontario-icon-transport-walk.entry.js +3 -3
- package/dist/esm/ontario-icon-tty.entry.js +3 -3
- package/dist/esm/ontario-icon-twitter-alt.entry.js +3 -3
- package/dist/esm/ontario-icon-twitter.entry.js +3 -3
- package/dist/esm/ontario-icon-upload.entry.js +3 -3
- package/dist/esm/ontario-icon-video.entry.js +3 -3
- package/dist/esm/ontario-icon-visa.entry.js +5 -5
- package/dist/esm/ontario-icon-vote-dislike.entry.js +3 -3
- package/dist/esm/ontario-icon-vote-like.entry.js +3 -3
- package/dist/esm/ontario-icon-vpn-key.entry.js +3 -3
- package/dist/esm/ontario-icon-wheelchair.entry.js +3 -3
- package/dist/esm/ontario-icon-wifi.entry.js +3 -3
- package/dist/esm/ontario-icon-youtube.entry.js +3 -3
- package/dist/ontario-design-system-components/ontario-design-system-components.css +3 -0
- package/dist/ontario-design-system-components/ontario-design-system-components.esm.js +3 -3
- package/dist/ontario-design-system-components/ontario-design-system-components.esm.js.map +1 -1
- package/dist/ontario-design-system-components/{p-c290df94.entry.js → p-00364195.entry.js} +372 -343
- package/dist/ontario-design-system-components/p-00364195.entry.js.map +1 -0
- package/{www/build/p-9eb84b8a.entry.js → dist/ontario-design-system-components/p-01f427db.entry.js} +4 -4
- package/{www/build/p-076fbd17.entry.js → dist/ontario-design-system-components/p-04fb2b1f.entry.js} +4 -4
- package/{www/build/p-5af55b3a.entry.js → dist/ontario-design-system-components/p-0aea8df7.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-c75f5396.entry.js → p-0f8e5a0c.entry.js} +24 -24
- package/dist/ontario-design-system-components/{p-ac72bccb.entry.js → p-0fa6ba1b.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-6e62de52.entry.js → p-10899c2d.entry.js} +21 -21
- package/{www/build/p-0f9e2d2c.entry.js → dist/ontario-design-system-components/p-12d41776.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-72c7c4aa.entry.js → p-1526e1f3.entry.js} +4 -4
- package/{www/build/p-32ecc2eb.entry.js → dist/ontario-design-system-components/p-1567ea71.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-8bae2e2d.entry.js → p-16dc2584.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-e18cb3eb.entry.js → p-17409379.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-5fa28101.entry.js → p-1cd78ef5.entry.js} +7 -7
- package/{www/build/p-5ef6f597.entry.js → dist/ontario-design-system-components/p-21b80693.entry.js} +9 -9
- package/{www/build/p-635feedf.entry.js → dist/ontario-design-system-components/p-2a6e912e.entry.js} +11 -11
- package/dist/ontario-design-system-components/{p-f88fe1bd.entry.js → p-3218a141.entry.js} +4 -4
- package/{www/build/p-6efbc44d.entry.js → dist/ontario-design-system-components/p-32666b1a.entry.js} +9 -9
- package/{www/build/p-a596839c.entry.js → dist/ontario-design-system-components/p-34371cd7.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-e21b53a2.entry.js → p-35681159.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-ffe78c79.entry.js → p-3868d245.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-78d9f49e.entry.js → p-39ab52ad.entry.js} +4 -4
- package/{www/build/p-71a2dd36.entry.js → dist/ontario-design-system-components/p-3b1c06b1.entry.js} +4 -4
- package/{www/build/p-8c3a8ddc.entry.js → dist/ontario-design-system-components/p-3cca2f28.entry.js} +47 -47
- package/dist/ontario-design-system-components/{p-db4a37a3.entry.js → p-3fb5a2f5.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-2e894229.entry.js → p-404f3050.entry.js} +4 -4
- package/{www/build/p-e402f3b8.entry.js → dist/ontario-design-system-components/p-446337ea.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-fd039069.entry.js → p-44fe73c2.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-5dae140f.entry.js → p-47b56153.entry.js} +4 -4
- package/{www/build/p-cef09b28.entry.js → dist/ontario-design-system-components/p-4f1683c0.entry.js} +4 -4
- package/{www/build/p-8ee66922.entry.js → dist/ontario-design-system-components/p-5128c0bb.entry.js} +7 -7
- package/dist/ontario-design-system-components/{p-191d8da8.entry.js → p-5184701e.entry.js} +6 -6
- package/dist/ontario-design-system-components/{p-34f2d1b1.entry.js → p-533a039a.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-c1723522.entry.js → p-564a51a5.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-a558baf0.entry.js → p-5a775ff3.entry.js} +4 -4
- package/{www/build/p-64642937.entry.js → dist/ontario-design-system-components/p-61548ae2.entry.js} +7 -7
- package/{www/build/p-107b5f8f.entry.js → dist/ontario-design-system-components/p-6477890e.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-091b695a.entry.js → p-6a62b87d.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-fcb2cadf.entry.js → p-6c85610c.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-3522193d.entry.js → p-6df12aab.entry.js} +24 -24
- package/dist/ontario-design-system-components/{p-c14d49ab.entry.js → p-6fb80d3b.entry.js} +4 -4
- package/{www/build/p-b2270cd5.entry.js → dist/ontario-design-system-components/p-7738a68d.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-31f3c62d.entry.js → p-7a822cb8.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-c90c72e0.entry.js → p-7afdef3f.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-75d5df20.entry.js → p-7c593bd8.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-15417698.entry.js → p-7f8d2db6.entry.js} +7 -7
- package/{www/build/p-2d987bdb.entry.js → dist/ontario-design-system-components/p-80d23c2c.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-8dacd96c.entry.js → p-8653b9a6.entry.js} +9 -9
- package/{www/build/p-a4e527cb.entry.js → dist/ontario-design-system-components/p-86849b43.entry.js} +4 -4
- package/{www/build/p-f91476fd.entry.js → dist/ontario-design-system-components/p-87fb19b5.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-81c8e9f0.entry.js → p-8973affb.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-bdd5c0cd.entry.js → p-8b743603.entry.js} +4 -4
- package/{www/build/p-360d6b10.entry.js → dist/ontario-design-system-components/p-8ed8323f.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-83144457.entry.js → p-95671e82.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-4e7bb7e6.entry.js → p-965f968c.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-c08b85f3.entry.js → p-981933f3.entry.js} +4 -4
- package/{www/build/p-86997e62.entry.js → dist/ontario-design-system-components/p-9c9d49a3.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-508bd33a.entry.js → p-9cab9d12.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-98642cf0.entry.js → p-9ffdf9ad.entry.js} +7 -7
- package/{www/build/p-00c121e9.entry.js → dist/ontario-design-system-components/p-a168d607.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-557d211e.entry.js → p-a2461cfc.entry.js} +4 -4
- package/{www/build/p-eebc769a.entry.js → dist/ontario-design-system-components/p-a33f978b.entry.js} +4 -4
- package/{www/build/p-3c5c66df.entry.js → dist/ontario-design-system-components/p-a80d7066.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-283c67bd.entry.js → p-adbbd012.entry.js} +12 -12
- package/dist/ontario-design-system-components/{p-d6942c50.entry.js → p-af8d070d.entry.js} +12 -12
- package/dist/ontario-design-system-components/{p-2d7fc382.entry.js → p-b1596322.entry.js} +7 -7
- package/{www/build/p-fc7a8df4.entry.js → dist/ontario-design-system-components/p-b428f67a.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-92e1ad8b.entry.js → p-b52ef7dc.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-9a52f817.entry.js → p-b83a30cf.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-01d17804.entry.js → p-ba5dc106.entry.js} +4 -4
- package/{www/build/p-c16792b1.entry.js → dist/ontario-design-system-components/p-bad1e757.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-151fc1fa.entry.js → p-baf6249e.entry.js} +10 -10
- package/dist/ontario-design-system-components/{p-c8f2ccf5.entry.js → p-bb072cb8.entry.js} +9 -9
- package/{www/build/p-ac5451d3.entry.js → dist/ontario-design-system-components/p-be4fbe09.entry.js} +6 -6
- package/dist/ontario-design-system-components/{p-20493ac1.entry.js → p-c69e5796.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-128d7d9c.entry.js → p-c6d771f1.entry.js} +4 -4
- package/{www/build/p-c84fd6f3.entry.js → dist/ontario-design-system-components/p-c779e248.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-6ae89bbc.entry.js → p-cb21b1a3.entry.js} +9 -9
- package/dist/ontario-design-system-components/{p-88722311.entry.js → p-ce1fa4bd.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-02c38199.entry.js → p-d733ba28.entry.js} +4 -4
- package/{www/build/p-35fe7d9d.entry.js → dist/ontario-design-system-components/p-d8e9546c.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-f0a53d8d.entry.js → p-daca3528.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-302c4671.entry.js → p-e51793eb.entry.js} +4 -4
- package/{www/build/p-608d5068.entry.js → dist/ontario-design-system-components/p-e6c90ae8.entry.js} +4 -4
- package/{www/build/p-cad51f9e.entry.js → dist/ontario-design-system-components/p-e87fde13.entry.js} +4 -4
- package/{www/build/p-9e9f6184.entry.js → dist/ontario-design-system-components/p-e952d94f.entry.js} +4 -4
- package/{www/build/p-3d27e2f8.entry.js → dist/ontario-design-system-components/p-e96e36ff.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-131d1f76.entry.js → p-eb4faafb.entry.js} +7 -7
- package/{www/build/p-812fc78e.entry.js → dist/ontario-design-system-components/p-ecbcd457.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-4bf52401.entry.js → p-ed2d68e1.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-ddb66bbb.entry.js → p-f0ca3e20.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-1700035e.entry.js → p-f125e857.entry.js} +13 -13
- package/{www/build/p-cc653027.entry.js → dist/ontario-design-system-components/p-f45d1e6b.entry.js} +4 -4
- package/{www/build/p-a365505f.entry.js → dist/ontario-design-system-components/p-f8c4ff40.entry.js} +4 -4
- package/dist/ontario-design-system-components/{p-abafe472.entry.js → p-f8cbec7c.entry.js} +4 -4
- package/{www/build/p-87897e51.entry.js → dist/ontario-design-system-components/p-fb1a144e.entry.js} +10 -10
- package/{www/build/p-33554950.entry.js → dist/ontario-design-system-components/p-fe487325.entry.js} +4 -4
- package/dist/types/components/ontario-aside/ontario-aside.d.ts +2 -8
- package/dist/types/components/ontario-callout/ontario-callout.d.ts +2 -8
- package/dist/types/components/ontario-checkbox/ontario-checkboxes.d.ts +11 -0
- package/dist/types/components/ontario-dropdown-list/ontario-dropdown-list.d.ts +11 -0
- package/dist/types/components/ontario-radio-buttons/ontario-radio-buttons.d.ts +11 -0
- package/dist/types/components/ontario-textarea/ontario-textarea.d.ts +12 -0
- package/dist/types/components.d.ts +56 -4
- package/dist/types/utils/components/callout-aside/callout-aside-helpers.d.ts +2 -2
- package/dist/types/utils/components/callout-aside/callout-aside.interface.d.ts +2 -2
- package/package.json +3 -3
- package/src/components/ontario-aside/ontario-aside.tsx +15 -33
- package/src/components/ontario-aside/readme.md +3 -3
- package/src/components/ontario-aside/test/ontario-aside.spec.tsx +39 -0
- package/src/components/ontario-callout/ontario-callout.tsx +14 -32
- package/src/components/ontario-callout/readme.md +2 -2
- package/src/components/ontario-callout/test/ontario-callout.spec.tsx +20 -0
- package/src/components/ontario-card/ontario-card.scss +5 -0
- package/src/components/ontario-card-collection/ontario-card-collection.scss +3 -0
- package/src/components/ontario-checkbox/ontario-checkboxes.scss +13 -5
- package/src/components/ontario-checkbox/ontario-checkboxes.tsx +20 -2
- package/src/components/ontario-checkbox/readme.md +9 -5
- package/src/components/ontario-checkbox/test/ontario-checkboxes.spec.tsx +4 -0
- package/src/components/ontario-dropdown-list/ontario-dropdown-list.scss +9 -0
- package/src/components/ontario-dropdown-list/ontario-dropdown-list.tsx +20 -1
- package/src/components/ontario-dropdown-list/readme.md +9 -5
- package/src/components/ontario-dropdown-list/test/ontario-dropdown-list.spec.tsx +4 -0
- package/src/components/ontario-footer/components/expanded-footer-wrapper.tsx +1 -1
- package/src/components/ontario-header/ontario-header.scss +5 -1
- package/src/components/ontario-radio-buttons/ontario-radio-buttons.scss +3 -0
- package/src/components/ontario-radio-buttons/ontario-radio-buttons.tsx +21 -2
- package/src/components/ontario-radio-buttons/readme.md +9 -5
- package/src/components/ontario-radio-buttons/test/ontario-radio-button.spec.tsx +6 -1
- package/src/components/ontario-textarea/ontario-textarea.scss +9 -0
- package/src/components/ontario-textarea/ontario-textarea.tsx +20 -1
- package/src/components/ontario-textarea/readme.md +10 -6
- package/src/components/ontario-textarea/test/__snapshots__/ontario-textarea.spec.tsx.snap +5 -1
- package/src/components/ontario-textarea/test/ontario-textarea.spec.tsx +4 -1
- package/src/components.d.ts +56 -4
- package/src/index.html +15 -0
- package/src/utils/components/callout-aside/callout-aside-helpers.tsx +6 -6
- package/src/utils/components/callout-aside/callout-aside.interface.ts +2 -2
- package/www/build/ontario-design-system-components.css +3 -0
- package/www/build/ontario-design-system-components.esm.js +3 -3
- package/www/build/ontario-design-system-components.esm.js.map +1 -1
- package/www/build/{p-c290df94.entry.js → p-00364195.entry.js} +372 -343
- package/www/build/p-00364195.entry.js.map +1 -0
- package/www/build/{p-12d6190c.css → p-016eeaf2.css} +3 -0
- package/{dist/ontario-design-system-components/p-9eb84b8a.entry.js → www/build/p-01f427db.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-076fbd17.entry.js → www/build/p-04fb2b1f.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-5af55b3a.entry.js → www/build/p-0aea8df7.entry.js} +9 -9
- package/www/build/{p-c75f5396.entry.js → p-0f8e5a0c.entry.js} +24 -24
- package/www/build/{p-ac72bccb.entry.js → p-0fa6ba1b.entry.js} +4 -4
- package/www/build/{p-6e62de52.entry.js → p-10899c2d.entry.js} +21 -21
- package/{dist/ontario-design-system-components/p-0f9e2d2c.entry.js → www/build/p-12d41776.entry.js} +4 -4
- package/www/build/{p-72c7c4aa.entry.js → p-1526e1f3.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-32ecc2eb.entry.js → www/build/p-1567ea71.entry.js} +4 -4
- package/www/build/{p-8bae2e2d.entry.js → p-16dc2584.entry.js} +4 -4
- package/www/build/{p-e18cb3eb.entry.js → p-17409379.entry.js} +4 -4
- package/www/build/{p-5fa28101.entry.js → p-1cd78ef5.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-5ef6f597.entry.js → www/build/p-21b80693.entry.js} +9 -9
- package/{dist/ontario-design-system-components/p-635feedf.entry.js → www/build/p-2a6e912e.entry.js} +11 -11
- package/www/build/{p-f88fe1bd.entry.js → p-3218a141.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-6efbc44d.entry.js → www/build/p-32666b1a.entry.js} +9 -9
- package/{dist/ontario-design-system-components/p-a596839c.entry.js → www/build/p-34371cd7.entry.js} +4 -4
- package/www/build/{p-e21b53a2.entry.js → p-35681159.entry.js} +4 -4
- package/www/build/{p-ffe78c79.entry.js → p-3868d245.entry.js} +4 -4
- package/www/build/{p-78d9f49e.entry.js → p-39ab52ad.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-71a2dd36.entry.js → www/build/p-3b1c06b1.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-8c3a8ddc.entry.js → www/build/p-3cca2f28.entry.js} +47 -47
- package/www/build/{p-db4a37a3.entry.js → p-3fb5a2f5.entry.js} +4 -4
- package/www/build/{p-2e894229.entry.js → p-404f3050.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-e402f3b8.entry.js → www/build/p-446337ea.entry.js} +9 -9
- package/www/build/{p-fd039069.entry.js → p-44fe73c2.entry.js} +4 -4
- package/www/build/{p-5dae140f.entry.js → p-47b56153.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-cef09b28.entry.js → www/build/p-4f1683c0.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-8ee66922.entry.js → www/build/p-5128c0bb.entry.js} +7 -7
- package/www/build/{p-191d8da8.entry.js → p-5184701e.entry.js} +6 -6
- package/www/build/{p-34f2d1b1.entry.js → p-533a039a.entry.js} +9 -9
- package/www/build/{p-c1723522.entry.js → p-564a51a5.entry.js} +4 -4
- package/www/build/{p-a558baf0.entry.js → p-5a775ff3.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-64642937.entry.js → www/build/p-61548ae2.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-107b5f8f.entry.js → www/build/p-6477890e.entry.js} +4 -4
- package/www/build/{p-091b695a.entry.js → p-6a62b87d.entry.js} +4 -4
- package/www/build/{p-fcb2cadf.entry.js → p-6c85610c.entry.js} +4 -4
- package/www/build/{p-3522193d.entry.js → p-6df12aab.entry.js} +24 -24
- package/www/build/{p-c14d49ab.entry.js → p-6fb80d3b.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-b2270cd5.entry.js → www/build/p-7738a68d.entry.js} +4 -4
- package/www/build/{p-31f3c62d.entry.js → p-7a822cb8.entry.js} +4 -4
- package/www/build/{p-c90c72e0.entry.js → p-7afdef3f.entry.js} +4 -4
- package/www/build/{p-75d5df20.entry.js → p-7c593bd8.entry.js} +4 -4
- package/www/build/{p-15417698.entry.js → p-7f8d2db6.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-2d987bdb.entry.js → www/build/p-80d23c2c.entry.js} +4 -4
- package/www/build/{p-8dacd96c.entry.js → p-8653b9a6.entry.js} +9 -9
- package/{dist/ontario-design-system-components/p-a4e527cb.entry.js → www/build/p-86849b43.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-f91476fd.entry.js → www/build/p-87fb19b5.entry.js} +4 -4
- package/www/build/{p-81c8e9f0.entry.js → p-8973affb.entry.js} +9 -9
- package/www/build/{p-bdd5c0cd.entry.js → p-8b743603.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-360d6b10.entry.js → www/build/p-8ed8323f.entry.js} +4 -4
- package/www/build/{p-83144457.entry.js → p-95671e82.entry.js} +4 -4
- package/www/build/{p-4e7bb7e6.entry.js → p-965f968c.entry.js} +9 -9
- package/www/build/{p-c08b85f3.entry.js → p-981933f3.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-86997e62.entry.js → www/build/p-9c9d49a3.entry.js} +4 -4
- package/www/build/{p-508bd33a.entry.js → p-9cab9d12.entry.js} +4 -4
- package/www/build/{p-98642cf0.entry.js → p-9ffdf9ad.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-00c121e9.entry.js → www/build/p-a168d607.entry.js} +4 -4
- package/www/build/{p-557d211e.entry.js → p-a2461cfc.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-eebc769a.entry.js → www/build/p-a33f978b.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-3c5c66df.entry.js → www/build/p-a80d7066.entry.js} +4 -4
- package/www/build/p-a8bba86c.js +21 -0
- package/www/build/{p-283c67bd.entry.js → p-adbbd012.entry.js} +12 -12
- package/www/build/{p-d6942c50.entry.js → p-af8d070d.entry.js} +12 -12
- package/www/build/{p-2d7fc382.entry.js → p-b1596322.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-fc7a8df4.entry.js → www/build/p-b428f67a.entry.js} +4 -4
- package/www/build/{p-92e1ad8b.entry.js → p-b52ef7dc.entry.js} +4 -4
- package/www/build/{p-9a52f817.entry.js → p-b83a30cf.entry.js} +4 -4
- package/www/build/{p-01d17804.entry.js → p-ba5dc106.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-c16792b1.entry.js → www/build/p-bad1e757.entry.js} +4 -4
- package/www/build/{p-151fc1fa.entry.js → p-baf6249e.entry.js} +10 -10
- package/www/build/{p-c8f2ccf5.entry.js → p-bb072cb8.entry.js} +9 -9
- package/{dist/ontario-design-system-components/p-ac5451d3.entry.js → www/build/p-be4fbe09.entry.js} +6 -6
- package/www/build/{p-20493ac1.entry.js → p-c69e5796.entry.js} +9 -9
- package/www/build/{p-128d7d9c.entry.js → p-c6d771f1.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-c84fd6f3.entry.js → www/build/p-c779e248.entry.js} +4 -4
- package/www/build/{p-6ae89bbc.entry.js → p-cb21b1a3.entry.js} +9 -9
- package/www/build/{p-88722311.entry.js → p-ce1fa4bd.entry.js} +4 -4
- package/www/build/{p-02c38199.entry.js → p-d733ba28.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-35fe7d9d.entry.js → www/build/p-d8e9546c.entry.js} +4 -4
- package/www/build/{p-f0a53d8d.entry.js → p-daca3528.entry.js} +4 -4
- package/www/build/{p-302c4671.entry.js → p-e51793eb.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-608d5068.entry.js → www/build/p-e6c90ae8.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-cad51f9e.entry.js → www/build/p-e87fde13.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-9e9f6184.entry.js → www/build/p-e952d94f.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-3d27e2f8.entry.js → www/build/p-e96e36ff.entry.js} +4 -4
- package/www/build/{p-131d1f76.entry.js → p-eb4faafb.entry.js} +7 -7
- package/{dist/ontario-design-system-components/p-812fc78e.entry.js → www/build/p-ecbcd457.entry.js} +4 -4
- package/www/build/{p-4bf52401.entry.js → p-ed2d68e1.entry.js} +4 -4
- package/www/build/{p-ddb66bbb.entry.js → p-f0ca3e20.entry.js} +4 -4
- package/www/build/{p-1700035e.entry.js → p-f125e857.entry.js} +13 -13
- package/{dist/ontario-design-system-components/p-cc653027.entry.js → www/build/p-f45d1e6b.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-a365505f.entry.js → www/build/p-f8c4ff40.entry.js} +4 -4
- package/www/build/{p-abafe472.entry.js → p-f8cbec7c.entry.js} +4 -4
- package/{dist/ontario-design-system-components/p-87897e51.entry.js → www/build/p-fb1a144e.entry.js} +10 -10
- package/{dist/ontario-design-system-components/p-33554950.entry.js → www/build/p-fe487325.entry.js} +4 -4
- package/www/index.html +17 -3
- package/dist/components/event-handler.js +0 -328
- package/dist/components/event-handler.js.map +0 -1
- package/dist/ontario-design-system-components/p-c290df94.entry.js.map +0 -1
- package/www/build/p-1d439e32.js +0 -21
- package/www/build/p-c290df94.entry.js.map +0 -1
- /package/dist/ontario-design-system-components/{p-9eb84b8a.entry.js.map → p-01f427db.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-076fbd17.entry.js.map → p-04fb2b1f.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-5af55b3a.entry.js.map → p-0aea8df7.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c75f5396.entry.js.map → p-0f8e5a0c.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-ac72bccb.entry.js.map → p-0fa6ba1b.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-6e62de52.entry.js.map → p-10899c2d.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-0f9e2d2c.entry.js.map → p-12d41776.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-72c7c4aa.entry.js.map → p-1526e1f3.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-32ecc2eb.entry.js.map → p-1567ea71.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-8bae2e2d.entry.js.map → p-16dc2584.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-e18cb3eb.entry.js.map → p-17409379.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-5fa28101.entry.js.map → p-1cd78ef5.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-5ef6f597.entry.js.map → p-21b80693.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-635feedf.entry.js.map → p-2a6e912e.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f88fe1bd.entry.js.map → p-3218a141.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-6efbc44d.entry.js.map → p-32666b1a.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-a596839c.entry.js.map → p-34371cd7.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-e21b53a2.entry.js.map → p-35681159.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-ffe78c79.entry.js.map → p-3868d245.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-78d9f49e.entry.js.map → p-39ab52ad.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-71a2dd36.entry.js.map → p-3b1c06b1.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-8c3a8ddc.entry.js.map → p-3cca2f28.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-db4a37a3.entry.js.map → p-3fb5a2f5.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-2e894229.entry.js.map → p-404f3050.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-e402f3b8.entry.js.map → p-446337ea.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-fd039069.entry.js.map → p-44fe73c2.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-5dae140f.entry.js.map → p-47b56153.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-cef09b28.entry.js.map → p-4f1683c0.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-8ee66922.entry.js.map → p-5128c0bb.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-191d8da8.entry.js.map → p-5184701e.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-34f2d1b1.entry.js.map → p-533a039a.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c1723522.entry.js.map → p-564a51a5.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-a558baf0.entry.js.map → p-5a775ff3.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-64642937.entry.js.map → p-61548ae2.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-107b5f8f.entry.js.map → p-6477890e.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-091b695a.entry.js.map → p-6a62b87d.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-fcb2cadf.entry.js.map → p-6c85610c.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-3522193d.entry.js.map → p-6df12aab.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c14d49ab.entry.js.map → p-6fb80d3b.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-b2270cd5.entry.js.map → p-7738a68d.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-31f3c62d.entry.js.map → p-7a822cb8.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c90c72e0.entry.js.map → p-7afdef3f.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-75d5df20.entry.js.map → p-7c593bd8.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-15417698.entry.js.map → p-7f8d2db6.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-2d987bdb.entry.js.map → p-80d23c2c.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-8dacd96c.entry.js.map → p-8653b9a6.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-a4e527cb.entry.js.map → p-86849b43.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f91476fd.entry.js.map → p-87fb19b5.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-81c8e9f0.entry.js.map → p-8973affb.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-bdd5c0cd.entry.js.map → p-8b743603.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-360d6b10.entry.js.map → p-8ed8323f.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-83144457.entry.js.map → p-95671e82.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-4e7bb7e6.entry.js.map → p-965f968c.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c08b85f3.entry.js.map → p-981933f3.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-86997e62.entry.js.map → p-9c9d49a3.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-508bd33a.entry.js.map → p-9cab9d12.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-98642cf0.entry.js.map → p-9ffdf9ad.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-00c121e9.entry.js.map → p-a168d607.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-557d211e.entry.js.map → p-a2461cfc.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-eebc769a.entry.js.map → p-a33f978b.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-3c5c66df.entry.js.map → p-a80d7066.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-283c67bd.entry.js.map → p-adbbd012.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-d6942c50.entry.js.map → p-af8d070d.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-2d7fc382.entry.js.map → p-b1596322.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-fc7a8df4.entry.js.map → p-b428f67a.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-92e1ad8b.entry.js.map → p-b52ef7dc.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-9a52f817.entry.js.map → p-b83a30cf.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-01d17804.entry.js.map → p-ba5dc106.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c16792b1.entry.js.map → p-bad1e757.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-151fc1fa.entry.js.map → p-baf6249e.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c8f2ccf5.entry.js.map → p-bb072cb8.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-ac5451d3.entry.js.map → p-be4fbe09.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-20493ac1.entry.js.map → p-c69e5796.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-128d7d9c.entry.js.map → p-c6d771f1.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-c84fd6f3.entry.js.map → p-c779e248.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-6ae89bbc.entry.js.map → p-cb21b1a3.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-88722311.entry.js.map → p-ce1fa4bd.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-02c38199.entry.js.map → p-d733ba28.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-35fe7d9d.entry.js.map → p-d8e9546c.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-f0a53d8d.entry.js.map → p-daca3528.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-302c4671.entry.js.map → p-e51793eb.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-608d5068.entry.js.map → p-e6c90ae8.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-cad51f9e.entry.js.map → p-e87fde13.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-9e9f6184.entry.js.map → p-e952d94f.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-3d27e2f8.entry.js.map → p-e96e36ff.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-131d1f76.entry.js.map → p-eb4faafb.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-812fc78e.entry.js.map → p-ecbcd457.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-4bf52401.entry.js.map → p-ed2d68e1.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-ddb66bbb.entry.js.map → p-f0ca3e20.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-1700035e.entry.js.map → p-f125e857.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-cc653027.entry.js.map → p-f45d1e6b.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-a365505f.entry.js.map → p-f8c4ff40.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-abafe472.entry.js.map → p-f8cbec7c.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-87897e51.entry.js.map → p-fb1a144e.entry.js.map} +0 -0
- /package/dist/ontario-design-system-components/{p-33554950.entry.js.map → p-fe487325.entry.js.map} +0 -0
- /package/www/build/{p-9eb84b8a.entry.js.map → p-01f427db.entry.js.map} +0 -0
- /package/www/build/{p-076fbd17.entry.js.map → p-04fb2b1f.entry.js.map} +0 -0
- /package/www/build/{p-5af55b3a.entry.js.map → p-0aea8df7.entry.js.map} +0 -0
- /package/www/build/{p-c75f5396.entry.js.map → p-0f8e5a0c.entry.js.map} +0 -0
- /package/www/build/{p-ac72bccb.entry.js.map → p-0fa6ba1b.entry.js.map} +0 -0
- /package/www/build/{p-6e62de52.entry.js.map → p-10899c2d.entry.js.map} +0 -0
- /package/www/build/{p-0f9e2d2c.entry.js.map → p-12d41776.entry.js.map} +0 -0
- /package/www/build/{p-72c7c4aa.entry.js.map → p-1526e1f3.entry.js.map} +0 -0
- /package/www/build/{p-32ecc2eb.entry.js.map → p-1567ea71.entry.js.map} +0 -0
- /package/www/build/{p-8bae2e2d.entry.js.map → p-16dc2584.entry.js.map} +0 -0
- /package/www/build/{p-e18cb3eb.entry.js.map → p-17409379.entry.js.map} +0 -0
- /package/www/build/{p-5fa28101.entry.js.map → p-1cd78ef5.entry.js.map} +0 -0
- /package/www/build/{p-5ef6f597.entry.js.map → p-21b80693.entry.js.map} +0 -0
- /package/www/build/{p-635feedf.entry.js.map → p-2a6e912e.entry.js.map} +0 -0
- /package/www/build/{p-f88fe1bd.entry.js.map → p-3218a141.entry.js.map} +0 -0
- /package/www/build/{p-6efbc44d.entry.js.map → p-32666b1a.entry.js.map} +0 -0
- /package/www/build/{p-a596839c.entry.js.map → p-34371cd7.entry.js.map} +0 -0
- /package/www/build/{p-e21b53a2.entry.js.map → p-35681159.entry.js.map} +0 -0
- /package/www/build/{p-ffe78c79.entry.js.map → p-3868d245.entry.js.map} +0 -0
- /package/www/build/{p-78d9f49e.entry.js.map → p-39ab52ad.entry.js.map} +0 -0
- /package/www/build/{p-71a2dd36.entry.js.map → p-3b1c06b1.entry.js.map} +0 -0
- /package/www/build/{p-8c3a8ddc.entry.js.map → p-3cca2f28.entry.js.map} +0 -0
- /package/www/build/{p-db4a37a3.entry.js.map → p-3fb5a2f5.entry.js.map} +0 -0
- /package/www/build/{p-2e894229.entry.js.map → p-404f3050.entry.js.map} +0 -0
- /package/www/build/{p-e402f3b8.entry.js.map → p-446337ea.entry.js.map} +0 -0
- /package/www/build/{p-fd039069.entry.js.map → p-44fe73c2.entry.js.map} +0 -0
- /package/www/build/{p-5dae140f.entry.js.map → p-47b56153.entry.js.map} +0 -0
- /package/www/build/{p-cef09b28.entry.js.map → p-4f1683c0.entry.js.map} +0 -0
- /package/www/build/{p-8ee66922.entry.js.map → p-5128c0bb.entry.js.map} +0 -0
- /package/www/build/{p-191d8da8.entry.js.map → p-5184701e.entry.js.map} +0 -0
- /package/www/build/{p-34f2d1b1.entry.js.map → p-533a039a.entry.js.map} +0 -0
- /package/www/build/{p-c1723522.entry.js.map → p-564a51a5.entry.js.map} +0 -0
- /package/www/build/{p-a558baf0.entry.js.map → p-5a775ff3.entry.js.map} +0 -0
- /package/www/build/{p-64642937.entry.js.map → p-61548ae2.entry.js.map} +0 -0
- /package/www/build/{p-107b5f8f.entry.js.map → p-6477890e.entry.js.map} +0 -0
- /package/www/build/{p-091b695a.entry.js.map → p-6a62b87d.entry.js.map} +0 -0
- /package/www/build/{p-fcb2cadf.entry.js.map → p-6c85610c.entry.js.map} +0 -0
- /package/www/build/{p-3522193d.entry.js.map → p-6df12aab.entry.js.map} +0 -0
- /package/www/build/{p-c14d49ab.entry.js.map → p-6fb80d3b.entry.js.map} +0 -0
- /package/www/build/{p-b2270cd5.entry.js.map → p-7738a68d.entry.js.map} +0 -0
- /package/www/build/{p-31f3c62d.entry.js.map → p-7a822cb8.entry.js.map} +0 -0
- /package/www/build/{p-c90c72e0.entry.js.map → p-7afdef3f.entry.js.map} +0 -0
- /package/www/build/{p-75d5df20.entry.js.map → p-7c593bd8.entry.js.map} +0 -0
- /package/www/build/{p-15417698.entry.js.map → p-7f8d2db6.entry.js.map} +0 -0
- /package/www/build/{p-2d987bdb.entry.js.map → p-80d23c2c.entry.js.map} +0 -0
- /package/www/build/{p-8dacd96c.entry.js.map → p-8653b9a6.entry.js.map} +0 -0
- /package/www/build/{p-a4e527cb.entry.js.map → p-86849b43.entry.js.map} +0 -0
- /package/www/build/{p-f91476fd.entry.js.map → p-87fb19b5.entry.js.map} +0 -0
- /package/www/build/{p-81c8e9f0.entry.js.map → p-8973affb.entry.js.map} +0 -0
- /package/www/build/{p-bdd5c0cd.entry.js.map → p-8b743603.entry.js.map} +0 -0
- /package/www/build/{p-360d6b10.entry.js.map → p-8ed8323f.entry.js.map} +0 -0
- /package/www/build/{p-83144457.entry.js.map → p-95671e82.entry.js.map} +0 -0
- /package/www/build/{p-4e7bb7e6.entry.js.map → p-965f968c.entry.js.map} +0 -0
- /package/www/build/{p-c08b85f3.entry.js.map → p-981933f3.entry.js.map} +0 -0
- /package/www/build/{p-86997e62.entry.js.map → p-9c9d49a3.entry.js.map} +0 -0
- /package/www/build/{p-508bd33a.entry.js.map → p-9cab9d12.entry.js.map} +0 -0
- /package/www/build/{p-98642cf0.entry.js.map → p-9ffdf9ad.entry.js.map} +0 -0
- /package/www/build/{p-00c121e9.entry.js.map → p-a168d607.entry.js.map} +0 -0
- /package/www/build/{p-557d211e.entry.js.map → p-a2461cfc.entry.js.map} +0 -0
- /package/www/build/{p-eebc769a.entry.js.map → p-a33f978b.entry.js.map} +0 -0
- /package/www/build/{p-3c5c66df.entry.js.map → p-a80d7066.entry.js.map} +0 -0
- /package/www/build/{p-283c67bd.entry.js.map → p-adbbd012.entry.js.map} +0 -0
- /package/www/build/{p-d6942c50.entry.js.map → p-af8d070d.entry.js.map} +0 -0
- /package/www/build/{p-2d7fc382.entry.js.map → p-b1596322.entry.js.map} +0 -0
- /package/www/build/{p-fc7a8df4.entry.js.map → p-b428f67a.entry.js.map} +0 -0
- /package/www/build/{p-92e1ad8b.entry.js.map → p-b52ef7dc.entry.js.map} +0 -0
- /package/www/build/{p-9a52f817.entry.js.map → p-b83a30cf.entry.js.map} +0 -0
- /package/www/build/{p-01d17804.entry.js.map → p-ba5dc106.entry.js.map} +0 -0
- /package/www/build/{p-c16792b1.entry.js.map → p-bad1e757.entry.js.map} +0 -0
- /package/www/build/{p-151fc1fa.entry.js.map → p-baf6249e.entry.js.map} +0 -0
- /package/www/build/{p-c8f2ccf5.entry.js.map → p-bb072cb8.entry.js.map} +0 -0
- /package/www/build/{p-ac5451d3.entry.js.map → p-be4fbe09.entry.js.map} +0 -0
- /package/www/build/{p-20493ac1.entry.js.map → p-c69e5796.entry.js.map} +0 -0
- /package/www/build/{p-128d7d9c.entry.js.map → p-c6d771f1.entry.js.map} +0 -0
- /package/www/build/{p-c84fd6f3.entry.js.map → p-c779e248.entry.js.map} +0 -0
- /package/www/build/{p-6ae89bbc.entry.js.map → p-cb21b1a3.entry.js.map} +0 -0
- /package/www/build/{p-88722311.entry.js.map → p-ce1fa4bd.entry.js.map} +0 -0
- /package/www/build/{p-02c38199.entry.js.map → p-d733ba28.entry.js.map} +0 -0
- /package/www/build/{p-35fe7d9d.entry.js.map → p-d8e9546c.entry.js.map} +0 -0
- /package/www/build/{p-f0a53d8d.entry.js.map → p-daca3528.entry.js.map} +0 -0
- /package/www/build/{p-302c4671.entry.js.map → p-e51793eb.entry.js.map} +0 -0
- /package/www/build/{p-608d5068.entry.js.map → p-e6c90ae8.entry.js.map} +0 -0
- /package/www/build/{p-cad51f9e.entry.js.map → p-e87fde13.entry.js.map} +0 -0
- /package/www/build/{p-9e9f6184.entry.js.map → p-e952d94f.entry.js.map} +0 -0
- /package/www/build/{p-3d27e2f8.entry.js.map → p-e96e36ff.entry.js.map} +0 -0
- /package/www/build/{p-131d1f76.entry.js.map → p-eb4faafb.entry.js.map} +0 -0
- /package/www/build/{p-812fc78e.entry.js.map → p-ecbcd457.entry.js.map} +0 -0
- /package/www/build/{p-4bf52401.entry.js.map → p-ed2d68e1.entry.js.map} +0 -0
- /package/www/build/{p-ddb66bbb.entry.js.map → p-f0ca3e20.entry.js.map} +0 -0
- /package/www/build/{p-1700035e.entry.js.map → p-f125e857.entry.js.map} +0 -0
- /package/www/build/{p-cc653027.entry.js.map → p-f45d1e6b.entry.js.map} +0 -0
- /package/www/build/{p-a365505f.entry.js.map → p-f8c4ff40.entry.js.map} +0 -0
- /package/www/build/{p-abafe472.entry.js.map → p-f8cbec7c.entry.js.map} +0 -0
- /package/www/build/{p-87897e51.entry.js.map → p-fb1a144e.entry.js.map} +0 -0
- /package/www/build/{p-33554950.entry.js.map → p-fe487325.entry.js.map} +0 -0
|
@@ -12,6 +12,7 @@ import { constructHintTextObject } from '../../utils/components/hints/hints';
|
|
|
12
12
|
import { EventType } from '../../utils/events/event-handler.interface';
|
|
13
13
|
import { handleInputEvent } from '../../utils/events/event-handler';
|
|
14
14
|
import { default as translations } from '../../translations/global.i18n.json';
|
|
15
|
+
import { ErrorMessage } from '../../utils/components/error-message/error-message';
|
|
15
16
|
export class OntarioDropdownList {
|
|
16
17
|
constructor() {
|
|
17
18
|
this.caption = undefined;
|
|
@@ -23,6 +24,7 @@ export class OntarioDropdownList {
|
|
|
23
24
|
this.isEmptyStartOption = false;
|
|
24
25
|
this.hintText = undefined;
|
|
25
26
|
this.hintExpander = undefined;
|
|
27
|
+
this.errorMessage = undefined;
|
|
26
28
|
this.customOnChange = undefined;
|
|
27
29
|
this.customOnBlur = undefined;
|
|
28
30
|
this.customOnFocus = undefined;
|
|
@@ -141,6 +143,11 @@ export class OntarioDropdownList {
|
|
|
141
143
|
else this.internalHintExpander = hintExpander;
|
|
142
144
|
}
|
|
143
145
|
}
|
|
146
|
+
broadcastInputErrorOccurredEvent() {
|
|
147
|
+
var _a;
|
|
148
|
+
// Emit event to notify anyone who wants to listen for errors occurring
|
|
149
|
+
this.inputErrorOccurred.emit({ errorMessage: (_a = this.errorMessage) !== null && _a !== void 0 ? _a : '' });
|
|
150
|
+
}
|
|
144
151
|
/**
|
|
145
152
|
* Function to handle dropdown list events and the information pertaining to the dropdown list to emit.
|
|
146
153
|
*/
|
|
@@ -231,9 +238,13 @@ export class OntarioDropdownList {
|
|
|
231
238
|
}
|
|
232
239
|
render() {
|
|
233
240
|
var _a, _b;
|
|
241
|
+
const error = !!this.errorMessage;
|
|
234
242
|
return h(
|
|
235
243
|
'div',
|
|
236
|
-
{
|
|
244
|
+
{
|
|
245
|
+
key: 'e8631dacbb28cd408d33df8257c595d748e3eea1',
|
|
246
|
+
class: `ontario-form-group ${error ? 'ontario-dropdown--error' : ''}`,
|
|
247
|
+
},
|
|
237
248
|
this.captionState.getCaption(this.getId(), !!this.internalHintExpander),
|
|
238
249
|
this.internalHintText &&
|
|
239
250
|
h('ontario-hint-text', {
|
|
@@ -241,10 +252,11 @@ export class OntarioDropdownList {
|
|
|
241
252
|
hintContentType: this.internalHintText.hintContentType,
|
|
242
253
|
ref: (el) => (this.hintTextRef = el),
|
|
243
254
|
}),
|
|
255
|
+
h(ErrorMessage, { key: '0b758b3787b5264330d3f68c039e24039c966f4b', message: this.errorMessage, error: error }),
|
|
244
256
|
h(
|
|
245
257
|
'select',
|
|
246
258
|
{
|
|
247
|
-
'key': '
|
|
259
|
+
'key': '1c4dc48a8b1ecd98cfb98005de63b84f3ba182a7',
|
|
248
260
|
'class': this.getClass(),
|
|
249
261
|
'aria-describedby': this.hintTextId,
|
|
250
262
|
'id': this.getId(),
|
|
@@ -505,6 +517,23 @@ export class OntarioDropdownList {
|
|
|
505
517
|
attribute: 'hint-expander',
|
|
506
518
|
reflect: false,
|
|
507
519
|
},
|
|
520
|
+
errorMessage: {
|
|
521
|
+
type: 'string',
|
|
522
|
+
mutable: true,
|
|
523
|
+
complexType: {
|
|
524
|
+
original: 'string',
|
|
525
|
+
resolved: 'string | undefined',
|
|
526
|
+
references: {},
|
|
527
|
+
},
|
|
528
|
+
required: false,
|
|
529
|
+
optional: true,
|
|
530
|
+
docs: {
|
|
531
|
+
tags: [],
|
|
532
|
+
text: 'Set this to display an error message',
|
|
533
|
+
},
|
|
534
|
+
attribute: 'error-message',
|
|
535
|
+
reflect: false,
|
|
536
|
+
},
|
|
508
537
|
customOnChange: {
|
|
509
538
|
type: 'unknown',
|
|
510
539
|
mutable: false,
|
|
@@ -645,6 +674,22 @@ export class OntarioDropdownList {
|
|
|
645
674
|
},
|
|
646
675
|
},
|
|
647
676
|
},
|
|
677
|
+
{
|
|
678
|
+
method: 'inputErrorOccurred',
|
|
679
|
+
name: 'inputErrorOccurred',
|
|
680
|
+
bubbles: true,
|
|
681
|
+
cancelable: true,
|
|
682
|
+
composed: true,
|
|
683
|
+
docs: {
|
|
684
|
+
tags: [],
|
|
685
|
+
text: 'Emitted when an error message is reported to the component.',
|
|
686
|
+
},
|
|
687
|
+
complexType: {
|
|
688
|
+
original: '{ errorMessage: string }',
|
|
689
|
+
resolved: '{ errorMessage: string; }',
|
|
690
|
+
references: {},
|
|
691
|
+
},
|
|
692
|
+
},
|
|
648
693
|
];
|
|
649
694
|
}
|
|
650
695
|
static get elementRef() {
|
|
@@ -680,6 +725,10 @@ export class OntarioDropdownList {
|
|
|
680
725
|
propName: 'hintExpander',
|
|
681
726
|
methodName: 'parseHintExpander',
|
|
682
727
|
},
|
|
728
|
+
{
|
|
729
|
+
propName: 'errorMessage',
|
|
730
|
+
methodName: 'broadcastInputErrorOccurredEvent',
|
|
731
|
+
},
|
|
683
732
|
];
|
|
684
733
|
}
|
|
685
734
|
static get listeners() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ontario-dropdown-list.js","sourceRoot":"","sources":["../../../src/components/ontario-dropdown-list/ontario-dropdown-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,KAAK,EACL,OAAO,EACP,CAAC,EACD,IAAI,EACJ,KAAK,EACL,MAAM,EACN,KAAK,EACL,YAAY,EAEZ,eAAe,GACf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAOlC,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAE9E,OAAO,EACN,oBAAoB,EACp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I,CAAC,eAAe,0CAAE,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CACxC,cAAQ,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,IACxD,QAAQ,CAAC,KAAK,CACP,CACT,CAAC,mCAAI,EAAE,CACA;YACR,IAAI,CAAC,oBAAoB,IAAI,CAC7B,6BACC,IAAI,EAAE,IAAI,CAAC,oBAAoB,CAAC,IAAI,EACpC,OAAO,EAAE,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAC1C,eAAe,EAAE,IAAI,CAAC,oBAAoB,CAAC,eAAe,GAClC,CACzB,CACI,CACN,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tState,\n\tElement,\n\th,\n\tProp,\n\tEvent,\n\tListen,\n\tWatch,\n\tgetAssetPath,\n\tEventEmitter,\n\tAttachInternals,\n} from '@stencil/core';\nimport { v4 as uuid } from 'uuid';\n\nimport { DropdownOption } from './dropdown-option.interface';\nimport { Dropdown } from './dropdown.interface';\nimport { HintExpander } from '../ontario-hint-expander/hint-expander.interface';\n\nimport { Hint } from '../../utils/common/common.interface';\nimport { InputCaption } from '../../utils/common/input-caption/input-caption';\nimport { Caption } from '../../utils/common/input-caption/caption.interface';\nimport {\n\tvalidateObjectExists,\n\tvalidatePropExists,\n\tvalidateLanguage,\n} from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\nimport { hasMultipleTrueValues } from '../../utils/helper/utils';\nimport { Language } from '../../utils/common/language-types';\nimport { constructHintTextObject } from '../../utils/components/hints/hints';\nimport { InputFocusBlurEvent, EventType, InputInteractionEvent } from '../../utils/events/event-handler.interface';\nimport { handleInputEvent } from '../../utils/events/event-handler';\n\nimport { default as translations } from '../../translations/global.i18n.json';\n\n@Component({\n\ttag: 'ontario-dropdown-list',\n\tstyleUrl: 'ontario-dropdown-list.scss',\n\tshadow: true,\n\tformAssociated: true,\n\tassetsDirs: ['./assets'],\n})\nexport class OntarioDropdownList implements Dropdown {\n\t@Element() element: HTMLElement;\n\t@AttachInternals() internals: ElementInternals;\n\n\thintTextRef: HTMLOntarioHintTextElement | undefined;\n\n\t/**\n\t * The text to display for the dropdown list label.\n\t *\n\t * @example\n\t * <ontario-dropdown-list\n\t * name=\"ontario-dropdown-list\"\n\t * caption='{\n\t * \"captionText\": \"Label\",\n\t * \"captionType\": \"heading\",\n\t * }'\n\t * ...>\n\t * </ontario-dropdown-list>\n\t */\n\t@Prop() caption: Caption | string;\n\n\t/**\n\t * The language of the component.\n\t * This is used for translations, and is by default set through event listeners checking for a language property from the header. If no language is passed, it will default to English.\n\t */\n\t@Prop({ mutable: true }) language?: Language;\n\n\t/**\n\t * The name for the dropdown list. The name value is used to reference form data after a form is submitted.\n\t */\n\t@Prop() name: string;\n\n\t/**\n\t * The ID for the dropdown list.\n\t * If no ID is provided, one will be generated.\n\t */\n\t@Prop({ mutable: true }) elementId?: string;\n\n\t/**\n\t * The options for dropdown list.\n\t *\n\t * Each option will be passed in through an object in the options array.\n\t * This can either be passed in as an object directly (if using react), or as a string in HTML.\n\t *\n\t * In the example below, the options are being passed in as a string and there are three dropdown options displayed.\n\t *\n\t * @example\n\t * <ontario-dropdown-list\n\t * caption='{\n\t * \"captionText\": \"Label\",\n\t * \"captionType\": \"heading\",\n\t * }'\n\t * name=\"ontario-dropdown-list\"\n\t * options='[\n\t * {\n\t * \"value\": \"dropdown-option-1\",\n\t * \"label\": \"Option 1\",\n\t * \"selected\": \"true\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-2\",\n\t * \"label\": \"Option 2\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-3\",\n\t * \"label\": \"Option 3\"\n\t * }\n\t * ]'\n\t * >\n\t * </ontario-dropdown-list>\n\t */\n\t@Prop() options: string | DropdownOption[];\n\n\t/**\n\t * This is used to determine whether the dropdown list is required or not.\n\t * This prop also gets passed to the InputCaption utility to display either an optional or required flag in the label.\n\t * If no prop is set, it will default to false (optional).\n\t */\n\t@Prop() required?: boolean = false;\n\n\t/**\n\t * This prop is used to determine whether or not the initial option displayed is empty.\n\t * If set to `true`, it will render the default “select” text.\n\t * If set to a string, it will render the string value.\n\t *\n\t * @example\n\t * <ontario-dropdown-list is-empty-start-option=\"true\"></ontario-dropdown-list>\n\t *\n\t * or\n\t *\n\t * <ontario-dropdown-list is-empty-start-option=\"Please select\"></ontario-dropdown-list>\n\t */\n\t@Prop() isEmptyStartOption?: boolean | string = false;\n\n\t/**\n\t * Used to include the ontario-hint-text component for the dropdown list.\n\t * This is optional.\n\t */\n\t@Prop() hintText?: string | Hint;\n\n\t/**\n\t * Used to include the ontario-hint-expander component for the dropdown list component.\n\t * This is passed in as an object with key-value pairs.\n\t *\n\t * This is optional.\n\t *\n\t * @example\n\t * <ontario-dropdown-list\n\t * caption='{\n\t * \"caption\": \"What province do you live in?\",\n\t * \"captionType\": \"heading\",\n\t * }\n\t * name=\"ontario-dropdown-list\"\n\t * options='[\n\t * {\n\t * \"value\": \"dropdown-option-1\",\n\t * \"label\": \"Option 1\",\n\t * \"selected\": \"true\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-2\",\n\t * \"label\": \"Option 2\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-3\",\n\t * \"label\": \"Option 3\"\n\t * }\n\t * ]'\n\t * hint-expander='{\n\t * \"hint\": \"Hint expander for the dropdown list\",\n\t * \"content\": \"Example hint expander content for the dropdown list.\"\n\t * }'\n\t * >\n\t * </ontario-dropdown-list>\n\t */\n\t@Prop() hintExpander?: HintExpander | string;\n\n\t/**\n\t * Used to add a custom function to the dropdown onChange event.\n\t */\n\t@Prop() customOnChange?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used to add a custom function to the dropdown onBlur event.\n\t */\n\t@Prop() customOnBlur?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used to add a custom function to the dropdown onFocus event.\n\t */\n\t@Prop() customOnFocus?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used for the `aria-describedby` value of the dropdown list. This will match with the id of the hint text.\n\t */\n\t@State() hintTextId: string | null | undefined;\n\n\t/**\n\t * Instantiate an InputCaption object for internal logic use\n\t */\n\t@State() private captionState: InputCaption;\n\n\t/**\n\t * The options are re-assigned to the internalOptions array.\n\t */\n\t@State() private internalOptions: DropdownOption[];\n\n\t/**\n\t * The hint text options are re-assigned to the internalHintText array.\n\t */\n\t@State() private internalHintText: Hint;\n\n\t/**\n\t * The hint expander options are re-assigned to the internalHintExpander array.\n\t */\n\t@State() private internalHintExpander: HintExpander;\n\n\t@State() translations: any = translations;\n\n\t/**\n\t * Emitted when a keyboard input or mouse event occurs when a dropdown list has been changed.\n\t */\n\t@Event() dropdownOnChange: EventEmitter<InputInteractionEvent>;\n\n\t/**\n\t * Emitted when a keyboard input event occurs when a dropdown list has lost focus.\n\t */\n\t@Event() dropdownOnBlur: EventEmitter<InputFocusBlurEvent>;\n\n\t/**\n\t * Emitted when a keyboard input event occurs when a dropdown list has gained focus.\n\t */\n\t@Event() dropdownOnFocus: EventEmitter<InputFocusBlurEvent>;\n\n\t/**\n\t * This listens for the `setAppLanguage` event sent from the test language toggler when it is is connected to the DOM. It is used for the initial language when the input component loads.\n\t */\n\t@Listen('setAppLanguage', { target: 'window' })\n\thandleSetAppLanguage(event: CustomEvent<Language>) {\n\t\tif (!this.language) {\n\t\t\tthis.language = validateLanguage(event);\n\t\t}\n\t}\n\n\t@Listen('headerLanguageToggled', { target: 'window' })\n\thandleHeaderLanguageToggled(event: CustomEvent<Language>) {\n\t\tthis.language = validateLanguage(event);\n\t}\n\n\t/*\n\t * Watch for changes in the `name` prop for validation purposes.\n\t *\n\t * Validate the `name` and make sure the `name` prop has a value.\n\t * Log a warning if user doesn't input a value for the `name`.\n\t */\n\t@Watch('name')\n\tvalidateName(newValue: string) {\n\t\tif (validatePropExists(newValue)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' name ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-dropdown-list> ')\n\t\t\t\t.addRegularText('was not provided')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/*\n\t * Watch for changes in the `options` prop for validation purposes.\n\t *\n\t * Validate the `options` and make sure the `options` prop has a value.\n\t * Log a warning if user doesn't input a value for the `options`.\n\t */\n\t@Watch('options')\n\tvalidateOptions(newValue: object) {\n\t\tif (validateObjectExists(newValue)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' options ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-dropdown-list> ')\n\t\t\t\t.addRegularText('was not provided')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes to the `options` prop.\n\t *\n\t * If an `options` prop is passed, it will be parsed (if it is a string), and the result will be set to the `internalOptions` state. The result will be run through a validation function.\n\t */\n\t@Watch('options')\n\tparseOptions() {\n\t\tif (typeof this.options !== 'undefined') {\n\t\t\tif (!Array.isArray(this.options)) {\n\t\t\t\tthis.internalOptions = JSON.parse(this.options);\n\t\t\t} else {\n\t\t\t\tthis.internalOptions = this.options;\n\t\t\t}\n\t\t}\n\n\t\t// Check selected status of options and set the selectedValue\n\t\tthis.validateSelectedOption(this.internalOptions);\n\t}\n\n\t/**\n\t * Watch for changes to the `caption` prop.\n\t *\n\t * The caption will be run through the InputCaption constructor to convert it to the correct format, and set the result to the `captionState` state.\n\t * @param newValue: Caption | string\n\t */\n\t@Watch('caption')\n\tprivate updateCaptionState(newValue: Caption | string) {\n\t\tthis.captionState = new InputCaption(\n\t\t\tthis.element.tagName,\n\t\t\tnewValue,\n\t\t\ttranslations,\n\t\t\tthis.language,\n\t\t\tfalse,\n\t\t\tthis.required,\n\t\t);\n\t}\n\n\t/**\n\t * Watch for changes to the `hintText` prop.\n\t *\n\t * If a `hintText` prop is passed, the `constructHintTextObject` function will convert it to the correct format, and set the result to the `internalHintText` state.\n\t */\n\t@Watch('hintText')\n\tprivate parseHintText() {\n\t\tif (this.hintText) {\n\t\t\tconst hintTextObject = constructHintTextObject(this.hintText);\n\t\t\tthis.internalHintText = hintTextObject;\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes to the `language` prop to render either the English or French translations\n\t */\n\t@Watch('language')\n\tupdateLanguage() {\n\t\tthis.updateCaptionState(this.caption);\n\t}\n\n\t/**\n\t * Watch for changes to the `hintExpander` prop.\n\t *\n\t * If a `hintExpander` prop is passed, it will be parsed (if it is a string), and the result will be set to the `internalHintExpander` state.\n\t */\n\t@Watch('hintExpander')\n\tprivate parseHintExpander() {\n\t\tconst hintExpander = this.hintExpander;\n\t\tif (hintExpander) {\n\t\t\tif (typeof hintExpander === 'string') this.internalHintExpander = JSON.parse(hintExpander);\n\t\t\telse this.internalHintExpander = hintExpander;\n\t\t}\n\t}\n\n\t/**\n\t * Function to handle dropdown list events and the information pertaining to the dropdown list to emit.\n\t */\n\tprivate handleEvent(event: Event, eventType: EventType) {\n\t\tconst input = event.target as HTMLSelectElement | null;\n\n\t\tthis.internals?.setFormValue?.(input?.value ?? '');\n\n\t\thandleInputEvent(\n\t\t\tevent,\n\t\t\teventType,\n\t\t\tinput,\n\t\t\tthis.dropdownOnChange,\n\t\t\tthis.dropdownOnFocus,\n\t\t\tthis.dropdownOnBlur,\n\t\t\tundefined,\n\t\t\t'dropdown',\n\t\t\tthis.customOnChange,\n\t\t\tthis.customOnFocus,\n\t\t\tthis.customOnBlur,\n\t\t\tundefined,\n\t\t\tthis.element,\n\t\t);\n\t}\n\n\tpublic getId(): string {\n\t\treturn this.elementId ?? '';\n\t}\n\n\t/**\n\t * This function will set a selected key to `false` for each dropdown if no selected value is passed.\n\t *\n\t * It will also pass a warning to the user if multiple `true` selected values are passed.\n\t *\n\t * @param options\n\t * @returns options\n\t */\n\tprivate validateSelectedOption(options: DropdownOption[]) {\n\t\tconst selected = 'selected';\n\n\t\toptions.forEach((singleOption) => {\n\t\t\t// if no selected key is passed, set a default key to false\n\t\t\tif (!singleOption.hasOwnProperty(selected)) {\n\t\t\t\tsingleOption.selected = false;\n\t\t\t}\n\t\t});\n\n\t\tif (hasMultipleTrueValues(options, selected)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' There are duplicate truthy `selected` values ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-dropdown-list> ')\n\t\t\t\t.addRegularText('options. Please update options so only one truthy `selected` value exists.')\n\t\t\t\t.printMessage();\n\t\t}\n\n\t\treturn options;\n\t}\n\n\tprivate getDropdownArrow() {\n\t\treturn {\n\t\t\tbackgroundImage: `url(${getAssetPath('./assets/ontario-material-dropdown-arrow-48px.svg')})`,\n\t\t};\n\t}\n\n\tprivate getClass(): string {\n\t\treturn this.hintExpander\n\t\t\t? `ontario-input ontario-dropdown ontario-dropdown-hint-expander--true`\n\t\t\t: `ontario-input ontario-dropdown`;\n\t}\n\n\t/**\n\t * If a `hintText` prop is passed, the id generated from it will be set to the internal `hintTextId` state to match with the select `aria-describedBy` attribute.\n\t */\n\tasync componentDidLoad() {\n\t\tthis.hintTextId = await this.hintTextRef?.getHintTextId();\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.updateCaptionState(this.caption);\n\t\tthis.parseOptions();\n\t\tthis.validateName(this.name);\n\t\tthis.validateOptions(this.internalOptions);\n\t\tthis.elementId = this.elementId ?? uuid();\n\t\tthis.parseHintText();\n\t\tthis.parseHintExpander();\n\t\tthis.language = validateLanguage(this.language);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div class=\"ontario-form-group\">\n\t\t\t\t{this.captionState.getCaption(this.getId(), !!this.internalHintExpander)}\n\t\t\t\t{this.internalHintText && (\n\t\t\t\t\t<ontario-hint-text\n\t\t\t\t\t\thint={this.internalHintText.hint}\n\t\t\t\t\t\thintContentType={this.internalHintText.hintContentType}\n\t\t\t\t\t\tref={(el) => (this.hintTextRef = el)}\n\t\t\t\t\t></ontario-hint-text>\n\t\t\t\t)}\n\t\t\t\t<select\n\t\t\t\t\tclass={this.getClass()}\n\t\t\t\t\taria-describedby={this.hintTextId}\n\t\t\t\t\tid={this.getId()}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\tstyle={this.getDropdownArrow()}\n\t\t\t\t\tonChange={(e) => this.handleEvent(e, EventType.Change)}\n\t\t\t\t\tonBlur={(e) => this.handleEvent(e, EventType.Blur)}\n\t\t\t\t\tonFocus={(e) => this.handleEvent(e, EventType.Focus)}\n\t\t\t\t\trequired={!!this.required}\n\t\t\t\t>\n\t\t\t\t\t{this.isEmptyStartOption &&\n\t\t\t\t\t\t(this.isEmptyStartOption === true || this.isEmptyStartOption === 'true' ? (\n\t\t\t\t\t\t\t<option>{this.translations.dropdownList.select[`${this.language}`]}</option>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<option>{this.isEmptyStartOption}</option>\n\t\t\t\t\t\t))}\n\n\t\t\t\t\t{this.internalOptions?.map((dropdown) => (\n\t\t\t\t\t\t<option value={dropdown.value} selected={dropdown.selected}>\n\t\t\t\t\t\t\t{dropdown.label}\n\t\t\t\t\t\t</option>\n\t\t\t\t\t)) ?? ''}\n\t\t\t\t</select>\n\t\t\t\t{this.internalHintExpander && (\n\t\t\t\t\t<ontario-hint-expander\n\t\t\t\t\t\thint={this.internalHintExpander.hint}\n\t\t\t\t\t\tcontent={this.internalHintExpander.content}\n\t\t\t\t\t\thintContentType={this.internalHintExpander.hintContentType}\n\t\t\t\t\t></ontario-hint-expander>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ontario-dropdown-list.js","sourceRoot":"","sources":["../../../src/components/ontario-dropdown-list/ontario-dropdown-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,KAAK,EACL,OAAO,EACP,CAAC,EACD,IAAI,EACJ,KAAK,EACL,MAAM,EACN,KAAK,EACL,YAAY,EAEZ,eAAe,GACf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAOlC,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAE9E,OAAO,EACN,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,GAChB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAuB,SAAS,EAAyB,MAAM,4CAA4C,CAAC;AACnH,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAC;AASlF,MAAM,OAAO,mBAAmB;;;;;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,EAAE,EAAE,CAAC,CACxC,cAAQ,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,IACxD,QAAQ,CAAC,KAAK,CACP,CACT,CAAC,mCAAI,EAAE,CACA;YACR,IAAI,CAAC,oBAAoB,IAAI,CAC7B,6BACC,IAAI,EAAE,IAAI,CAAC,oBAAoB,CAAC,IAAI,EACpC,OAAO,EAAE,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAC1C,eAAe,EAAE,IAAI,CAAC,oBAAoB,CAAC,eAAe,GAClC,CACzB,CACI,CACN,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tState,\n\tElement,\n\th,\n\tProp,\n\tEvent,\n\tListen,\n\tWatch,\n\tgetAssetPath,\n\tEventEmitter,\n\tAttachInternals,\n} from '@stencil/core';\nimport { v4 as uuid } from 'uuid';\n\nimport { DropdownOption } from './dropdown-option.interface';\nimport { Dropdown } from './dropdown.interface';\nimport { HintExpander } from '../ontario-hint-expander/hint-expander.interface';\n\nimport { Hint } from '../../utils/common/common.interface';\nimport { InputCaption } from '../../utils/common/input-caption/input-caption';\nimport { Caption } from '../../utils/common/input-caption/caption.interface';\nimport {\n\tvalidateObjectExists,\n\tvalidatePropExists,\n\tvalidateLanguage,\n} from '../../utils/validation/validation-functions';\nimport { ConsoleMessageClass } from '../../utils/console-message/console-message';\nimport { hasMultipleTrueValues } from '../../utils/helper/utils';\nimport { Language } from '../../utils/common/language-types';\nimport { constructHintTextObject } from '../../utils/components/hints/hints';\nimport { InputFocusBlurEvent, EventType, InputInteractionEvent } from '../../utils/events/event-handler.interface';\nimport { handleInputEvent } from '../../utils/events/event-handler';\n\nimport { default as translations } from '../../translations/global.i18n.json';\nimport { ErrorMessage } from '../../utils/components/error-message/error-message';\n\n@Component({\n\ttag: 'ontario-dropdown-list',\n\tstyleUrl: 'ontario-dropdown-list.scss',\n\tshadow: true,\n\tformAssociated: true,\n\tassetsDirs: ['./assets'],\n})\nexport class OntarioDropdownList implements Dropdown {\n\t@Element() element: HTMLElement;\n\t@AttachInternals() internals: ElementInternals;\n\n\thintTextRef: HTMLOntarioHintTextElement | undefined;\n\n\t/**\n\t * The text to display for the dropdown list label.\n\t *\n\t * @example\n\t * <ontario-dropdown-list\n\t * name=\"ontario-dropdown-list\"\n\t * caption='{\n\t * \"captionText\": \"Label\",\n\t * \"captionType\": \"heading\",\n\t * }'\n\t * ...>\n\t * </ontario-dropdown-list>\n\t */\n\t@Prop() caption: Caption | string;\n\n\t/**\n\t * The language of the component.\n\t * This is used for translations, and is by default set through event listeners checking for a language property from the header. If no language is passed, it will default to English.\n\t */\n\t@Prop({ mutable: true }) language?: Language;\n\n\t/**\n\t * The name for the dropdown list. The name value is used to reference form data after a form is submitted.\n\t */\n\t@Prop() name: string;\n\n\t/**\n\t * The ID for the dropdown list.\n\t * If no ID is provided, one will be generated.\n\t */\n\t@Prop({ mutable: true }) elementId?: string;\n\n\t/**\n\t * The options for dropdown list.\n\t *\n\t * Each option will be passed in through an object in the options array.\n\t * This can either be passed in as an object directly (if using react), or as a string in HTML.\n\t *\n\t * In the example below, the options are being passed in as a string and there are three dropdown options displayed.\n\t *\n\t * @example\n\t * <ontario-dropdown-list\n\t * caption='{\n\t * \"captionText\": \"Label\",\n\t * \"captionType\": \"heading\",\n\t * }'\n\t * name=\"ontario-dropdown-list\"\n\t * options='[\n\t * {\n\t * \"value\": \"dropdown-option-1\",\n\t * \"label\": \"Option 1\",\n\t * \"selected\": \"true\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-2\",\n\t * \"label\": \"Option 2\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-3\",\n\t * \"label\": \"Option 3\"\n\t * }\n\t * ]'\n\t * >\n\t * </ontario-dropdown-list>\n\t */\n\t@Prop() options: string | DropdownOption[];\n\n\t/**\n\t * This is used to determine whether the dropdown list is required or not.\n\t * This prop also gets passed to the InputCaption utility to display either an optional or required flag in the label.\n\t * If no prop is set, it will default to false (optional).\n\t */\n\t@Prop() required?: boolean = false;\n\n\t/**\n\t * This prop is used to determine whether or not the initial option displayed is empty.\n\t * If set to `true`, it will render the default “select” text.\n\t * If set to a string, it will render the string value.\n\t *\n\t * @example\n\t * <ontario-dropdown-list is-empty-start-option=\"true\"></ontario-dropdown-list>\n\t *\n\t * or\n\t *\n\t * <ontario-dropdown-list is-empty-start-option=\"Please select\"></ontario-dropdown-list>\n\t */\n\t@Prop() isEmptyStartOption?: boolean | string = false;\n\n\t/**\n\t * Used to include the ontario-hint-text component for the dropdown list.\n\t * This is optional.\n\t */\n\t@Prop() hintText?: string | Hint;\n\n\t/**\n\t * Used to include the ontario-hint-expander component for the dropdown list component.\n\t * This is passed in as an object with key-value pairs.\n\t *\n\t * This is optional.\n\t *\n\t * @example\n\t * <ontario-dropdown-list\n\t * caption='{\n\t * \"caption\": \"What province do you live in?\",\n\t * \"captionType\": \"heading\",\n\t * }\n\t * name=\"ontario-dropdown-list\"\n\t * options='[\n\t * {\n\t * \"value\": \"dropdown-option-1\",\n\t * \"label\": \"Option 1\",\n\t * \"selected\": \"true\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-2\",\n\t * \"label\": \"Option 2\"\n\t * },\n\t * {\n\t * \"value\": \"dropdown-option-3\",\n\t * \"label\": \"Option 3\"\n\t * }\n\t * ]'\n\t * hint-expander='{\n\t * \"hint\": \"Hint expander for the dropdown list\",\n\t * \"content\": \"Example hint expander content for the dropdown list.\"\n\t * }'\n\t * >\n\t * </ontario-dropdown-list>\n\t */\n\t@Prop() hintExpander?: HintExpander | string;\n\n\t/**\n\t * Set this to display an error message\n\t */\n\t@Prop({ mutable: true }) errorMessage?: string;\n\n\t/**\n\t * Used to add a custom function to the dropdown onChange event.\n\t */\n\t@Prop() customOnChange?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used to add a custom function to the dropdown onBlur event.\n\t */\n\t@Prop() customOnBlur?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used to add a custom function to the dropdown onFocus event.\n\t */\n\t@Prop() customOnFocus?: (event: globalThis.Event) => void;\n\n\t/**\n\t * Used for the `aria-describedby` value of the dropdown list. This will match with the id of the hint text.\n\t */\n\t@State() hintTextId: string | null | undefined;\n\n\t/**\n\t * Instantiate an InputCaption object for internal logic use\n\t */\n\t@State() private captionState: InputCaption;\n\n\t/**\n\t * The options are re-assigned to the internalOptions array.\n\t */\n\t@State() private internalOptions: DropdownOption[];\n\n\t/**\n\t * The hint text options are re-assigned to the internalHintText array.\n\t */\n\t@State() private internalHintText: Hint;\n\n\t/**\n\t * The hint expander options are re-assigned to the internalHintExpander array.\n\t */\n\t@State() private internalHintExpander: HintExpander;\n\n\t@State() translations: any = translations;\n\n\t/**\n\t * Emitted when a keyboard input or mouse event occurs when a dropdown list has been changed.\n\t */\n\t@Event() dropdownOnChange: EventEmitter<InputInteractionEvent>;\n\n\t/**\n\t * Emitted when a keyboard input event occurs when a dropdown list has lost focus.\n\t */\n\t@Event() dropdownOnBlur: EventEmitter<InputFocusBlurEvent>;\n\n\t/**\n\t * Emitted when a keyboard input event occurs when a dropdown list has gained focus.\n\t */\n\t@Event() dropdownOnFocus: EventEmitter<InputFocusBlurEvent>;\n\n\t/**\n\t * Emitted when an error message is reported to the component.\n\t */\n\t@Event() inputErrorOccurred: EventEmitter<{ errorMessage: string }>;\n\n\t/**\n\t * This listens for the `setAppLanguage` event sent from the test language toggler when it is is connected to the DOM. It is used for the initial language when the input component loads.\n\t */\n\t@Listen('setAppLanguage', { target: 'window' })\n\thandleSetAppLanguage(event: CustomEvent<Language>) {\n\t\tif (!this.language) {\n\t\t\tthis.language = validateLanguage(event);\n\t\t}\n\t}\n\n\t@Listen('headerLanguageToggled', { target: 'window' })\n\thandleHeaderLanguageToggled(event: CustomEvent<Language>) {\n\t\tthis.language = validateLanguage(event);\n\t}\n\n\t/*\n\t * Watch for changes in the `name` prop for validation purposes.\n\t *\n\t * Validate the `name` and make sure the `name` prop has a value.\n\t * Log a warning if user doesn't input a value for the `name`.\n\t */\n\t@Watch('name')\n\tvalidateName(newValue: string) {\n\t\tif (validatePropExists(newValue)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' name ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-dropdown-list> ')\n\t\t\t\t.addRegularText('was not provided')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/*\n\t * Watch for changes in the `options` prop for validation purposes.\n\t *\n\t * Validate the `options` and make sure the `options` prop has a value.\n\t * Log a warning if user doesn't input a value for the `options`.\n\t */\n\t@Watch('options')\n\tvalidateOptions(newValue: object) {\n\t\tif (validateObjectExists(newValue)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' options ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-dropdown-list> ')\n\t\t\t\t.addRegularText('was not provided')\n\t\t\t\t.printMessage();\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes to the `options` prop.\n\t *\n\t * If an `options` prop is passed, it will be parsed (if it is a string), and the result will be set to the `internalOptions` state. The result will be run through a validation function.\n\t */\n\t@Watch('options')\n\tparseOptions() {\n\t\tif (typeof this.options !== 'undefined') {\n\t\t\tif (!Array.isArray(this.options)) {\n\t\t\t\tthis.internalOptions = JSON.parse(this.options);\n\t\t\t} else {\n\t\t\t\tthis.internalOptions = this.options;\n\t\t\t}\n\t\t}\n\n\t\t// Check selected status of options and set the selectedValue\n\t\tthis.validateSelectedOption(this.internalOptions);\n\t}\n\n\t/**\n\t * Watch for changes to the `caption` prop.\n\t *\n\t * The caption will be run through the InputCaption constructor to convert it to the correct format, and set the result to the `captionState` state.\n\t * @param newValue: Caption | string\n\t */\n\t@Watch('caption')\n\tprivate updateCaptionState(newValue: Caption | string) {\n\t\tthis.captionState = new InputCaption(\n\t\t\tthis.element.tagName,\n\t\t\tnewValue,\n\t\t\ttranslations,\n\t\t\tthis.language,\n\t\t\tfalse,\n\t\t\tthis.required,\n\t\t);\n\t}\n\n\t/**\n\t * Watch for changes to the `hintText` prop.\n\t *\n\t * If a `hintText` prop is passed, the `constructHintTextObject` function will convert it to the correct format, and set the result to the `internalHintText` state.\n\t */\n\t@Watch('hintText')\n\tprivate parseHintText() {\n\t\tif (this.hintText) {\n\t\t\tconst hintTextObject = constructHintTextObject(this.hintText);\n\t\t\tthis.internalHintText = hintTextObject;\n\t\t}\n\t}\n\n\t/**\n\t * Watch for changes to the `language` prop to render either the English or French translations\n\t */\n\t@Watch('language')\n\tupdateLanguage() {\n\t\tthis.updateCaptionState(this.caption);\n\t}\n\n\t/**\n\t * Watch for changes to the `hintExpander` prop.\n\t *\n\t * If a `hintExpander` prop is passed, it will be parsed (if it is a string), and the result will be set to the `internalHintExpander` state.\n\t */\n\t@Watch('hintExpander')\n\tprivate parseHintExpander() {\n\t\tconst hintExpander = this.hintExpander;\n\t\tif (hintExpander) {\n\t\t\tif (typeof hintExpander === 'string') this.internalHintExpander = JSON.parse(hintExpander);\n\t\t\telse this.internalHintExpander = hintExpander;\n\t\t}\n\t}\n\n\t@Watch('errorMessage')\n\tbroadcastInputErrorOccurredEvent() {\n\t\t// Emit event to notify anyone who wants to listen for errors occurring\n\t\tthis.inputErrorOccurred.emit({ errorMessage: this.errorMessage ?? '' });\n\t}\n\n\t/**\n\t * Function to handle dropdown list events and the information pertaining to the dropdown list to emit.\n\t */\n\tprivate handleEvent(event: Event, eventType: EventType) {\n\t\tconst input = event.target as HTMLSelectElement | null;\n\n\t\tthis.internals?.setFormValue?.(input?.value ?? '');\n\n\t\thandleInputEvent(\n\t\t\tevent,\n\t\t\teventType,\n\t\t\tinput,\n\t\t\tthis.dropdownOnChange,\n\t\t\tthis.dropdownOnFocus,\n\t\t\tthis.dropdownOnBlur,\n\t\t\tundefined,\n\t\t\t'dropdown',\n\t\t\tthis.customOnChange,\n\t\t\tthis.customOnFocus,\n\t\t\tthis.customOnBlur,\n\t\t\tundefined,\n\t\t\tthis.element,\n\t\t);\n\t}\n\n\tpublic getId(): string {\n\t\treturn this.elementId ?? '';\n\t}\n\n\t/**\n\t * This function will set a selected key to `false` for each dropdown if no selected value is passed.\n\t *\n\t * It will also pass a warning to the user if multiple `true` selected values are passed.\n\t *\n\t * @param options\n\t * @returns options\n\t */\n\tprivate validateSelectedOption(options: DropdownOption[]) {\n\t\tconst selected = 'selected';\n\n\t\toptions.forEach((singleOption) => {\n\t\t\t// if no selected key is passed, set a default key to false\n\t\t\tif (!singleOption.hasOwnProperty(selected)) {\n\t\t\t\tsingleOption.selected = false;\n\t\t\t}\n\t\t});\n\n\t\tif (hasMultipleTrueValues(options, selected)) {\n\t\t\tconst message = new ConsoleMessageClass();\n\t\t\tmessage\n\t\t\t\t.addDesignSystemTag()\n\t\t\t\t.addMonospaceText(' There are duplicate truthy `selected` values ')\n\t\t\t\t.addRegularText('for')\n\t\t\t\t.addMonospaceText(' <ontario-dropdown-list> ')\n\t\t\t\t.addRegularText('options. Please update options so only one truthy `selected` value exists.')\n\t\t\t\t.printMessage();\n\t\t}\n\n\t\treturn options;\n\t}\n\n\tprivate getDropdownArrow() {\n\t\treturn {\n\t\t\tbackgroundImage: `url(${getAssetPath('./assets/ontario-material-dropdown-arrow-48px.svg')})`,\n\t\t};\n\t}\n\n\tprivate getClass(): string {\n\t\treturn this.hintExpander\n\t\t\t? `ontario-input ontario-dropdown ontario-dropdown-hint-expander--true`\n\t\t\t: `ontario-input ontario-dropdown`;\n\t}\n\n\t/**\n\t * If a `hintText` prop is passed, the id generated from it will be set to the internal `hintTextId` state to match with the select `aria-describedBy` attribute.\n\t */\n\tasync componentDidLoad() {\n\t\tthis.hintTextId = await this.hintTextRef?.getHintTextId();\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.updateCaptionState(this.caption);\n\t\tthis.parseOptions();\n\t\tthis.validateName(this.name);\n\t\tthis.validateOptions(this.internalOptions);\n\t\tthis.elementId = this.elementId ?? uuid();\n\t\tthis.parseHintText();\n\t\tthis.parseHintExpander();\n\t\tthis.language = validateLanguage(this.language);\n\t}\n\n\trender() {\n\t\tconst error = !!this.errorMessage;\n\t\treturn (\n\t\t\t<div class={`ontario-form-group ${error ? 'ontario-dropdown--error' : ''}`}>\n\t\t\t\t{this.captionState.getCaption(this.getId(), !!this.internalHintExpander)}\n\t\t\t\t{this.internalHintText && (\n\t\t\t\t\t<ontario-hint-text\n\t\t\t\t\t\thint={this.internalHintText.hint}\n\t\t\t\t\t\thintContentType={this.internalHintText.hintContentType}\n\t\t\t\t\t\tref={(el) => (this.hintTextRef = el)}\n\t\t\t\t\t></ontario-hint-text>\n\t\t\t\t)}\n\t\t\t\t<ErrorMessage message={this.errorMessage} error={error} />\n\t\t\t\t<select\n\t\t\t\t\tclass={this.getClass()}\n\t\t\t\t\taria-describedby={this.hintTextId}\n\t\t\t\t\tid={this.getId()}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\tstyle={this.getDropdownArrow()}\n\t\t\t\t\tonChange={(e) => this.handleEvent(e, EventType.Change)}\n\t\t\t\t\tonBlur={(e) => this.handleEvent(e, EventType.Blur)}\n\t\t\t\t\tonFocus={(e) => this.handleEvent(e, EventType.Focus)}\n\t\t\t\t\trequired={!!this.required}\n\t\t\t\t>\n\t\t\t\t\t{this.isEmptyStartOption &&\n\t\t\t\t\t\t(this.isEmptyStartOption === true || this.isEmptyStartOption === 'true' ? (\n\t\t\t\t\t\t\t<option>{this.translations.dropdownList.select[`${this.language}`]}</option>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<option>{this.isEmptyStartOption}</option>\n\t\t\t\t\t\t))}\n\n\t\t\t\t\t{this.internalOptions?.map((dropdown) => (\n\t\t\t\t\t\t<option value={dropdown.value} selected={dropdown.selected}>\n\t\t\t\t\t\t\t{dropdown.label}\n\t\t\t\t\t\t</option>\n\t\t\t\t\t)) ?? ''}\n\t\t\t\t</select>\n\t\t\t\t{this.internalHintExpander && (\n\t\t\t\t\t<ontario-hint-expander\n\t\t\t\t\t\thint={this.internalHintExpander.hint}\n\t\t\t\t\t\tcontent={this.internalHintExpander.content}\n\t\t\t\t\t\thintContentType={this.internalHintExpander.hintContentType}\n\t\t\t\t\t></ontario-hint-expander>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n}\n"]}
|
|
@@ -16,6 +16,10 @@ describe('ontario-dropdown-list', () => {
|
|
|
16
16
|
(optional)
|
|
17
17
|
</span>
|
|
18
18
|
</label>
|
|
19
|
+
<div class="ontario-error-messaging ontario-error__hidden" role="alert">
|
|
20
|
+
<ontario-icon-alert-error></ontario-icon-alert-error>
|
|
21
|
+
<div class="ontario-error-messaging__content"></div>
|
|
22
|
+
</div>
|
|
19
23
|
<select class="ontario-dropdown ontario-input" id="dropdown-list" style="background-image: url(/assets/ontario-material-dropdown-arrow-48px.svg);">
|
|
20
24
|
<option value="dropdown-option-1">Option 1</option>
|
|
21
25
|
</select>
|
package/dist/collection/components/ontario-dropdown-list/test/ontario-dropdown-list.spec.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ontario-dropdown-list.spec.js","sourceRoot":"","sources":["../../../../src/components/ontario-dropdown-list/test/ontario-dropdown-list.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACtC,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;QACvB,EAAE,CAAC,uCAAuC,EAAE,KAAK,IAAI,EAAE;YACtD,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;gBAC9B,UAAU,EAAE,CAAC,mBAAmB,CAAC;gBACjC,IAAI,EAAE,8IAA8I;aACpJ,CAAC,CAAC;YACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC
|
|
1
|
+
{"version":3,"file":"ontario-dropdown-list.spec.js","sourceRoot":"","sources":["../../../../src/components/ontario-dropdown-list/test/ontario-dropdown-list.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACtC,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;QACvB,EAAE,CAAC,uCAAuC,EAAE,KAAK,IAAI,EAAE;YACtD,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;gBAC9B,UAAU,EAAE,CAAC,mBAAmB,CAAC;gBACjC,IAAI,EAAE,8IAA8I;aACpJ,CAAC,CAAC;YACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;IAmB7B,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,2CAA2C,EAAE,KAAK,IAAI,EAAE;YAC1D,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;gBAC9B,UAAU,EAAE,CAAC,mBAAmB,CAAC;gBACjC,IAAI,EAAE;;;;;;8BAMoB;aAC1B,CAAC,CAAC;YAEH,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;YACxD,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;YAC1D,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;YACnE,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACjE,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,yDAAyD,CAAC,CAAC;QACnG,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { OntarioDropdownList } from '../ontario-dropdown-list';\n\ndescribe('ontario-dropdown-list', () => {\n\tdescribe('render', () => {\n\t\tit('should render a dropdown list element', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioDropdownList],\n\t\t\t\thtml: `<ontario-dropdown-list element-id=\"dropdown-list\" options='[{ \"value\": \"dropdown-option-1\", \"label\": \"Option 1\" }]'></ontario-dropdown-list>`,\n\t\t\t});\n\t\t\texpect(page.root).toEqualHtml(`\n\t\t\t\t<ontario-dropdown-list element-id=\"dropdown-list\" options='[{ \"value\": \"dropdown-option-1\", \"label\": \"Option 1\" }]'>\n\t\t\t\t<mock:shadow-root>\n\t\t\t\t\t<div class=\"ontario-form-group\">\n\t\t\t\t\t\t<label class=\"ontario-label\" htmlfor=\"dropdown-list\">\n\t\t\t\t\t\t\t<span class=\"ontario-label__flag\">\n\t\t\t\t\t\t\t(optional)\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<div class=\"ontario-error-messaging ontario-error__hidden\" role=\"alert\">\n\t\t\t\t\t\t\t\t<ontario-icon-alert-error></ontario-icon-alert-error>\n\t\t\t\t\t\t\t\t<div class=\"ontario-error-messaging__content\"></div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<select class=\"ontario-dropdown ontario-input\" id=\"dropdown-list\" style=\"background-image: url(/assets/ontario-material-dropdown-arrow-48px.svg);\">\n\t\t\t\t\t\t\t<option value=\"dropdown-option-1\">Option 1</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t</mock:shadow-root>\n\t\t\t\t</ontario-dropdown-list>\n\t\t\t`);\n\t\t});\n\n\t\tit('should reflect attributes/props being set', async () => {\n\t\t\tconst page = await newSpecPage({\n\t\t\t\tcomponents: [OntarioDropdownList],\n\t\t\t\thtml: `<ontario-dropdown-list\n name=\"dropdown-options\"\n element-id=\"dropdown-list\",\n is-empty-start-option=\"Please select\"\n caption='{\"captionText\": \"Label\"}'\n\t\t\t\t options='[{ \"value\": \"dropdown-option-1\", \"label\": \"Option 1\" }]'\n\t\t\t\t></ontario-dropdown-list>`,\n\t\t\t});\n\n\t\t\texpect(page.rootInstance.name).toBe('dropdown-options');\n\t\t\texpect(page.rootInstance.elementId).toBe('dropdown-list');\n\t\t\texpect(page.rootInstance.isEmptyStartOption).toBe('Please select');\n\t\t\texpect(page.rootInstance.captionState.captionText).toBe('Label');\n\t\t\texpect(page.rootInstance.options).toBe('[{ \"value\": \"dropdown-option-1\", \"label\": \"Option 1\" }]');\n\t\t});\n\t});\n});\n"]}
|
|
@@ -66,16 +66,16 @@ export class OntarioFieldset {
|
|
|
66
66
|
render() {
|
|
67
67
|
return h(
|
|
68
68
|
'div',
|
|
69
|
-
{ key: '
|
|
69
|
+
{ key: 'c3827fa2c6ca509662a8dc406f9dc9f44a32f541', class: 'ontario-form-group' },
|
|
70
70
|
h(
|
|
71
71
|
'fieldset',
|
|
72
|
-
{ key: '
|
|
72
|
+
{ key: '5f8bb8761303ec1cb41d09b64b7fb7bfe2b7e2a5', class: 'ontario-fieldset' },
|
|
73
73
|
h(
|
|
74
74
|
'legend',
|
|
75
|
-
{ key: '
|
|
75
|
+
{ key: 'dddd6ef762a2f4804ecad13adaad78f4e4fe165d', class: this.getClass() },
|
|
76
76
|
this.legendSize === 'heading' ? h('h1', null, this.legend) : this.legend,
|
|
77
77
|
),
|
|
78
|
-
h('slot', { key: '
|
|
78
|
+
h('slot', { key: '577f8e5f319f8153809df46669b9e36970e63b55' }),
|
|
79
79
|
),
|
|
80
80
|
);
|
|
81
81
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expanded-footer-wrapper.js","sourceRoot":"","sources":["../../../../src/components/ontario-footer/components/expanded-footer-wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,
|
|
1
|
+
{"version":3,"file":"expanded-footer-wrapper.js","sourceRoot":"","sources":["../../../../src/components/ontario-footer/components/expanded-footer-wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAS/C,MAAM,CAAC,MAAM,qBAAqB,GAAoD,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;IACzG,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,mBAAmB,EAAE,GAAG,KAAK,CAAC;IAC9D,MAAM,KAAK,GAAG,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAC;IACrD,MAAM,WAAW,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,CAAC;IAE/D,OAAO,CACN,cAAQ,KAAK,EAAE,2CAA2C,WAAW,EAAE,EAAE,KAAK,EAAE,KAAK;QACpF,WAAK,KAAK,EAAC,sCAAsC;YAChD,WAAK,KAAK,EAAC,aAAa,IAAE,QAAQ,CAAO,CACpC;QACN,EAAC,YAAY,oBAAK,WAAW,IAAE,SAAS,EAAC,yCAAyC,IAAG,CAC7E,CACT,CAAC;AACH,CAAC,CAAC","sourcesContent":["import { FunctionalComponent, h } from '@stencil/core';\nimport { SimpleFooter } from './simple-footer';\nimport { SimpleFooterLinks } from '../ontario-footer-interface';\n\nexport type ExpandedFooterWrapperProps = {\n\tfooterLinks: SimpleFooterLinks;\n\ttopMargin: boolean;\n\tbackgroundImagePath: string;\n};\n\nexport const ExpandedFooterWrapper: FunctionalComponent<ExpandedFooterWrapperProps> = (props, children) => {\n\tconst { topMargin, footerLinks, backgroundImagePath } = props;\n\tconst style = { '--imagePath': backgroundImagePath };\n\tconst marginClass = !topMargin ? 'ontario-margin-top-0-!' : '';\n\n\treturn (\n\t\t<footer class={`ontario-footer ontario-footer--expanded ${marginClass}`} style={style}>\n\t\t\t<div class=\"ontario-footer__expanded-top-section\">\n\t\t\t\t<div class=\"ontario-row\">{children}</div>\n\t\t\t</div>\n\t\t\t<SimpleFooter {...footerLinks} className=\"ontario-footer__expanded-bottom-section\" />\n\t\t</footer>\n\t);\n};\n"]}
|
|
@@ -1690,6 +1690,10 @@
|
|
|
1690
1690
|
display: block !important;
|
|
1691
1691
|
}
|
|
1692
1692
|
}
|
|
1693
|
+
:host {
|
|
1694
|
+
--header-search-reset: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZD0iTTE5IDYuNEwxNy42IDUgMTIgMTAuNiA2LjQgNSA1IDYuNGw1LjYgNS42TDUgMTcuNiA2LjQgMTlsNS42LTUuNiA1LjYgNS42IDEuNC0xLjQtNS42LTUuNkwxOSA2LjR6IiBmaWxsPSIjMDAwIi8+PC9zdmc+);
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1693
1697
|
.ontario-header__container {
|
|
1694
1698
|
position: relative;
|
|
1695
1699
|
z-index: 5;
|
|
@@ -2046,7 +2050,7 @@ input[type='reset'].ontario-header__search-reset {
|
|
|
2046
2050
|
color: #1a1a1a;
|
|
2047
2051
|
margin: 0;
|
|
2048
2052
|
padding: 0.5rem;
|
|
2049
|
-
background-image:
|
|
2053
|
+
background-image: var(--header-search-reset);
|
|
2050
2054
|
background-position: center center;
|
|
2051
2055
|
background-repeat: no-repeat;
|
|
2052
2056
|
background-color: transparent;
|
|
@@ -140,11 +140,11 @@ export class OntarioHintExpander {
|
|
|
140
140
|
render() {
|
|
141
141
|
return h(
|
|
142
142
|
'div',
|
|
143
|
-
{ key: '
|
|
143
|
+
{ key: '28372bc554e9ccf282a0904f48aad8f296739ec3', class: 'ontario-hint-expander__container' },
|
|
144
144
|
h(
|
|
145
145
|
'button',
|
|
146
146
|
{
|
|
147
|
-
'key': '
|
|
147
|
+
'key': 'b3513e33748d912e88c405a06b8523f2b18658ed',
|
|
148
148
|
'class': 'ontario-hint-expander__button',
|
|
149
149
|
'onClick': this.onClick,
|
|
150
150
|
'id': `hint-expander-button-${this.getId()}`,
|
|
@@ -155,22 +155,22 @@ export class OntarioHintExpander {
|
|
|
155
155
|
h(
|
|
156
156
|
'span',
|
|
157
157
|
{
|
|
158
|
-
key: '
|
|
158
|
+
key: '45c14ee312ebd71d72955835c404708dbf17528c',
|
|
159
159
|
class: 'ontario-hint-expander__button-icon--close ontario-icon',
|
|
160
160
|
},
|
|
161
|
-
h('ontario-icon-chevron-up', { key: '
|
|
161
|
+
h('ontario-icon-chevron-up', { key: '9db3e029644bb40aa1b369016a272c74f6c06c17', colour: 'inherit' }),
|
|
162
162
|
),
|
|
163
163
|
h(
|
|
164
164
|
'span',
|
|
165
|
-
{ key: '
|
|
166
|
-
h('ontario-icon-chevron-down', { key: '
|
|
165
|
+
{ key: '3aca4a6f6fd80a5a53ed29bbd3fe18386f46d884', class: 'ontario-hint-expander__button-icon--open' },
|
|
166
|
+
h('ontario-icon-chevron-down', { key: 'b570af514d96e6670790dac13dd83f66d78aa483', colour: 'inherit' }),
|
|
167
167
|
),
|
|
168
168
|
this.hint,
|
|
169
169
|
),
|
|
170
170
|
h(
|
|
171
171
|
'div',
|
|
172
172
|
{
|
|
173
|
-
'key': '
|
|
173
|
+
'key': 'c7973b7e3b937a8e8e9243e10d731c5f95116481',
|
|
174
174
|
'class': 'ontario-hint-expander__content',
|
|
175
175
|
'id': `hint-expander-content-${this.getId()}`,
|
|
176
176
|
'aria-labelledby': `hint-expander-button-${this.getId()}`,
|
|
@@ -87,14 +87,14 @@ export class OntarioIconAccessibility {
|
|
|
87
87
|
return h(
|
|
88
88
|
'div',
|
|
89
89
|
{
|
|
90
|
-
key: '
|
|
90
|
+
key: '40b8196b02a4389289809ccc25cf7d42924d8f5f',
|
|
91
91
|
class: `ontario-icon ontario-icon--${this.iconColourState} ontario-icon--width-${this.iconWidthState}`,
|
|
92
92
|
style: { width: `${this.iconWidthState}px` },
|
|
93
93
|
},
|
|
94
94
|
h(
|
|
95
95
|
'svg',
|
|
96
96
|
{
|
|
97
|
-
key: '
|
|
97
|
+
key: '6ccc0eb329e99d0e60a37b47e5dcd59822d860bc',
|
|
98
98
|
class: 'svg-icon',
|
|
99
99
|
style: { fill: `${this.iconCustomColourState}`, stroke: `${this.iconCustomColourState}` },
|
|
100
100
|
role: 'img',
|
|
@@ -103,7 +103,7 @@ export class OntarioIconAccessibility {
|
|
|
103
103
|
id: 'accessibility',
|
|
104
104
|
},
|
|
105
105
|
h('path', {
|
|
106
|
-
key: '
|
|
106
|
+
key: '188b9e6355f5bf81f5b0a4e2790c4b1871ae7247',
|
|
107
107
|
d: 'M18.4 11.2l-4.1.2 2.3-2.6c.2-.3.3-.8.2-1.3-.1-.3-.2-.6-.5-.8l-5.4-3.2c-.4-.3-1-.2-1.4.1L6.8 6.1c-.5.5-.6 1.2-.1 1.7.4.5 1.2.5 1.7.1l2-1.8 1.9 1.1-4.2 4.3c-.1.1-.1.2-.2.2-.5.2-1 .4-1.4.7L8 13.9c.5-.2 1-.4 1.5-.4 1.9 0 3.5 1.6 3.5 3.5 0 .6-.1 1.1-.4 1.5l1.5 1.5a5.29 5.29 0 0 0 .9-3c0-1.2-.4-2.4-1.1-3.3l3.3-.3-.2 4.8c-.1.7.4 1.2 1.1 1.3h.1c.6 0 1.1-.5 1.2-1.1l.2-5.9c0-.3-.1-.7-.3-.9-.3-.3-.6-.4-.9-.4zM18 5.5a2 2 0 0 0 2-2 2 2 0 0 0-2-2 2 2 0 0 0-2 2 2 2 0 0 0 2 2zm-5.5 16.1a5.29 5.29 0 0 1-3 .9C6.5 22.5 4 20 4 17a5.29 5.29 0 0 1 .9-3l1.5 1.5c-.2.5-.4 1-.4 1.5 0 1.9 1.6 3.5 3.5 3.5.6 0 1.1-.1 1.5-.4l1.5 1.5z',
|
|
108
108
|
}),
|
|
109
109
|
),
|
|
@@ -87,14 +87,14 @@ export class OntarioIconAccount {
|
|
|
87
87
|
return h(
|
|
88
88
|
'div',
|
|
89
89
|
{
|
|
90
|
-
key: '
|
|
90
|
+
key: '94b6d8ae0336da790dd77001facc1af6619c79d0',
|
|
91
91
|
class: `ontario-icon ontario-icon--${this.iconColourState} ontario-icon--width-${this.iconWidthState}`,
|
|
92
92
|
style: { width: `${this.iconWidthState}px` },
|
|
93
93
|
},
|
|
94
94
|
h(
|
|
95
95
|
'svg',
|
|
96
96
|
{
|
|
97
|
-
key: '
|
|
97
|
+
key: '24d06aa4cbec5d4b22403f852d619ae7bbd9522e',
|
|
98
98
|
class: 'svg-icon',
|
|
99
99
|
style: { fill: `${this.iconCustomColourState}`, stroke: `${this.iconCustomColourState}` },
|
|
100
100
|
role: 'img',
|
|
@@ -103,7 +103,7 @@ export class OntarioIconAccount {
|
|
|
103
103
|
id: 'account',
|
|
104
104
|
},
|
|
105
105
|
h('path', {
|
|
106
|
-
key: '
|
|
106
|
+
key: '5e7b34d37833bdbe7bd595b0d3adaf3f9bd51563',
|
|
107
107
|
d: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2a7.2 7.2 0 0 1-6-3.22c.03-2 4-3.08 6-3.08 2 0 5.97 1.1 6 3.08a7.2 7.2 0 0 1-6 3.22z',
|
|
108
108
|
}),
|
|
109
109
|
),
|
|
@@ -87,14 +87,14 @@ export class OntarioIconAddAlt {
|
|
|
87
87
|
return h(
|
|
88
88
|
'div',
|
|
89
89
|
{
|
|
90
|
-
key: '
|
|
90
|
+
key: '7cf667833de722439a7568b652de3d2315b7b4f1',
|
|
91
91
|
class: `ontario-icon ontario-icon--${this.iconColourState} ontario-icon--width-${this.iconWidthState}`,
|
|
92
92
|
style: { width: `${this.iconWidthState}px` },
|
|
93
93
|
},
|
|
94
94
|
h(
|
|
95
95
|
'svg',
|
|
96
96
|
{
|
|
97
|
-
key: '
|
|
97
|
+
key: '1f90ceb4eab82fe6b25b2fb92f2411322c03e8f9',
|
|
98
98
|
class: 'svg-icon',
|
|
99
99
|
style: { fill: `${this.iconCustomColourState}`, stroke: `${this.iconCustomColourState}` },
|
|
100
100
|
role: 'img',
|
|
@@ -104,7 +104,7 @@ export class OntarioIconAddAlt {
|
|
|
104
104
|
id: 'add-alt',
|
|
105
105
|
},
|
|
106
106
|
h('path', {
|
|
107
|
-
key: '
|
|
107
|
+
key: '17b3033dbf3dcf26fc1124f4292d509e5fcaa08f',
|
|
108
108
|
d: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z',
|
|
109
109
|
}),
|
|
110
110
|
),
|
|
@@ -87,14 +87,14 @@ export class OntarioIconAdd {
|
|
|
87
87
|
return h(
|
|
88
88
|
'div',
|
|
89
89
|
{
|
|
90
|
-
key: '
|
|
90
|
+
key: 'fa1371e932069cb030825ffea3607085c7a856fe',
|
|
91
91
|
class: `ontario-icon ontario-icon--${this.iconColourState} ontario-icon--width-${this.iconWidthState}`,
|
|
92
92
|
style: { width: `${this.iconWidthState}px` },
|
|
93
93
|
},
|
|
94
94
|
h(
|
|
95
95
|
'svg',
|
|
96
96
|
{
|
|
97
|
-
key: '
|
|
97
|
+
key: '67e7c3f689890471a82410ebd7382bf2138ecd60',
|
|
98
98
|
class: 'svg-icon',
|
|
99
99
|
style: { fill: `${this.iconCustomColourState}`, stroke: `${this.iconCustomColourState}` },
|
|
100
100
|
role: 'img',
|
|
@@ -104,7 +104,7 @@ export class OntarioIconAdd {
|
|
|
104
104
|
id: 'add',
|
|
105
105
|
},
|
|
106
106
|
h('path', {
|
|
107
|
-
key: '
|
|
107
|
+
key: '7a183977bf5173e3e306348308f064e759bb7e2e',
|
|
108
108
|
d: 'M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z',
|
|
109
109
|
}),
|
|
110
110
|
),
|
|
@@ -61,14 +61,14 @@ export class OntarioIconAlertError {
|
|
|
61
61
|
return h(
|
|
62
62
|
'div',
|
|
63
63
|
{
|
|
64
|
-
key: '
|
|
64
|
+
key: 'aedd68a242229cba97701cb6594bd1d4c12e3e18',
|
|
65
65
|
class: `ontario-icon ontario-icon--width-${this.iconWidthState}`,
|
|
66
66
|
style: { width: `${this.iconWidthState}px` },
|
|
67
67
|
},
|
|
68
68
|
h(
|
|
69
69
|
'svg',
|
|
70
70
|
{
|
|
71
|
-
key: '
|
|
71
|
+
key: '9d7f3e34be84d3b7332f75d3641c07de4fa61eb5',
|
|
72
72
|
class: 'svg-icon',
|
|
73
73
|
role: 'img',
|
|
74
74
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
@@ -77,12 +77,12 @@ export class OntarioIconAlertError {
|
|
|
77
77
|
id: 'alert-error',
|
|
78
78
|
},
|
|
79
79
|
h('path', {
|
|
80
|
-
key: '
|
|
80
|
+
key: 'c25df0d5708d126732c658ed6023b86b72616029',
|
|
81
81
|
d: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z',
|
|
82
82
|
fill: '#cd0000',
|
|
83
83
|
}),
|
|
84
84
|
h('path', {
|
|
85
|
-
key: '
|
|
85
|
+
key: '858b109602204d78e68e7132f9c6dcb12f0c2f8f',
|
|
86
86
|
d: 'M11 17h2v-2h-2v2zm0-4h2V7h-2v6z',
|
|
87
87
|
fill: '#fff',
|
|
88
88
|
}),
|
|
@@ -61,14 +61,14 @@ export class OntarioIconAlertInformation {
|
|
|
61
61
|
return h(
|
|
62
62
|
'div',
|
|
63
63
|
{
|
|
64
|
-
key: '
|
|
64
|
+
key: '54cf5e65764a07bba8c8fc5137efd18ab7aeda12',
|
|
65
65
|
class: `ontario-icon ontario-icon--width-${this.iconWidthState}`,
|
|
66
66
|
style: { width: `${this.iconWidthState}px` },
|
|
67
67
|
},
|
|
68
68
|
h(
|
|
69
69
|
'svg',
|
|
70
70
|
{
|
|
71
|
-
key: '
|
|
71
|
+
key: 'ca53326b181d213b82f697264b264dc1f7341770',
|
|
72
72
|
class: 'svg-icon',
|
|
73
73
|
role: 'img',
|
|
74
74
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
@@ -77,12 +77,12 @@ export class OntarioIconAlertInformation {
|
|
|
77
77
|
id: 'alert-information',
|
|
78
78
|
},
|
|
79
79
|
h('path', {
|
|
80
|
-
key: '
|
|
80
|
+
key: 'd370b1d7c56bdcf3009295765c96d3cabd7ff29b',
|
|
81
81
|
d: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z',
|
|
82
82
|
fill: '#1080a6',
|
|
83
83
|
}),
|
|
84
84
|
h('path', {
|
|
85
|
-
key: '
|
|
85
|
+
key: '8a279c3f56958e8c09d79e8476ae5c02daa26602',
|
|
86
86
|
d: 'M11 17h2v-6h-2v6zm0-8h2V7h-2v2z',
|
|
87
87
|
fill: '#fff',
|
|
88
88
|
}),
|
|
@@ -61,14 +61,14 @@ export class OntarioIconAlertSuccess {
|
|
|
61
61
|
return h(
|
|
62
62
|
'div',
|
|
63
63
|
{
|
|
64
|
-
key: '
|
|
64
|
+
key: 'd3f356ffd3bbf0e8e33399f2015cf645e4e0d297',
|
|
65
65
|
class: `ontario-icon ontario-icon--width-${this.iconWidthState}`,
|
|
66
66
|
style: { width: `${this.iconWidthState}px` },
|
|
67
67
|
},
|
|
68
68
|
h(
|
|
69
69
|
'svg',
|
|
70
70
|
{
|
|
71
|
-
key: '
|
|
71
|
+
key: 'eb29bfa5f77ad01dd152fb70212a3748dcfdefae',
|
|
72
72
|
class: 'svg-icon',
|
|
73
73
|
role: 'img',
|
|
74
74
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
@@ -77,12 +77,12 @@ export class OntarioIconAlertSuccess {
|
|
|
77
77
|
id: 'alert-success',
|
|
78
78
|
},
|
|
79
79
|
h('path', {
|
|
80
|
-
key: '
|
|
80
|
+
key: 'afd292bee04c907b7a1eda63e05be12fd8e809fd',
|
|
81
81
|
d: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.4-1.4 3.6 3.58L17.17 7l1.4 1.42L10 17z',
|
|
82
82
|
fill: '#118847',
|
|
83
83
|
}),
|
|
84
84
|
h('path', {
|
|
85
|
-
key: '
|
|
85
|
+
key: 'a2a5c685e5eae6993d55a57cca4ca9b344fe3473',
|
|
86
86
|
d: 'M5 12l5 5 8.58-8.58L17.17 7 10 14.17 6.4 10.6 5 12z',
|
|
87
87
|
fill: '#fff',
|
|
88
88
|
}),
|
|
@@ -61,14 +61,14 @@ export class OntarioIconAlertWarning {
|
|
|
61
61
|
return h(
|
|
62
62
|
'div',
|
|
63
63
|
{
|
|
64
|
-
key: '
|
|
64
|
+
key: '885b300479f73ce0cfa0dc9308420da2defb5b81',
|
|
65
65
|
class: `ontario-icon ontario-icon--width-${this.iconWidthState}`,
|
|
66
66
|
style: { width: `${this.iconWidthState}px` },
|
|
67
67
|
},
|
|
68
68
|
h(
|
|
69
69
|
'svg',
|
|
70
70
|
{
|
|
71
|
-
key: '
|
|
71
|
+
key: '2c58c3d8cffc73dc89b7f6b1e51a66cdf290aadc',
|
|
72
72
|
class: 'svg-icon',
|
|
73
73
|
role: 'img',
|
|
74
74
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
@@ -77,11 +77,11 @@ export class OntarioIconAlertWarning {
|
|
|
77
77
|
id: 'alert-warning',
|
|
78
78
|
},
|
|
79
79
|
h('path', {
|
|
80
|
-
key: '
|
|
80
|
+
key: '7c15a8cffa6c383562aa544c9c1bd22379e5304a',
|
|
81
81
|
d: 'M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z',
|
|
82
82
|
fill: '#ffd440',
|
|
83
83
|
}),
|
|
84
|
-
h('path', { key: '
|
|
84
|
+
h('path', { key: 'ad46eed8265cc6fc9a5f8314d13dd24462155fd3', d: 'M11 10h2v4h-2zm0 6h2v2h-2z', fill: '#000' }),
|
|
85
85
|
),
|
|
86
86
|
);
|
|
87
87
|
}
|