q2-tecton-elements 1.54.5 → 1.55.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/bundle-report.json +2047 -769
- package/dist/cjs/{index-76f63767.js → index-905f4c87.js} +3 -2
- package/dist/cjs/index-905f4c87.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-action-group.cjs.entry.js +45 -14
- package/dist/cjs/q2-action-group.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-action-sheet.cjs.entry.js +4 -1364
- package/dist/cjs/q2-action-sheet.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q2-badge_7.cjs.entry.js +59 -22
- package/dist/cjs/q2-badge_7.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-calendar.cjs.entry.js +2 -2
- package/dist/cjs/q2-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-card.cjs.entry.js +1 -1
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +3 -3
- package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-area.cjs.entry.js +2 -2
- package/dist/cjs/q2-chart-bar.cjs.entry.js +2 -2
- package/dist/cjs/q2-chart-donut.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-checkbox.cjs.entry.js +21 -21
- package/dist/cjs/q2-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-currency.cjs.entry.js +1 -1
- package/dist/cjs/q2-data-table.cjs.entry.js +1 -1
- package/dist/cjs/q2-detail.cjs.entry.js +2 -2
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
- package/dist/cjs/q2-file-picker.cjs.entry.js +2 -2
- package/dist/cjs/q2-file-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-form.cjs.entry.js +23 -0
- package/dist/cjs/q2-form.cjs.entry.js.map +1 -0
- package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/q2-item_3.cjs.entry.js +3 -3
- package/dist/cjs/q2-legend.cjs.entry.js +2 -2
- package/dist/cjs/q2-legend.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-loc.cjs.entry.js +20 -26
- package/dist/cjs/q2-loc.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-message.cjs.entry.js +2 -2
- package/dist/cjs/q2-modal.cjs.entry.js +172 -0
- package/dist/cjs/q2-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/q2-month-picker.cjs.entry.js +3 -3
- package/dist/cjs/q2-optgroup.cjs.entry.js +2 -2
- package/dist/cjs/q2-option-list_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-option.cjs.entry.js +22 -24
- package/dist/cjs/q2-option.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-pagination.cjs.entry.js +4 -4
- package/dist/cjs/q2-pill.cjs.entry.js +2 -2
- package/dist/cjs/q2-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-radio.cjs.entry.js +1 -1
- package/dist/cjs/q2-relative-time.cjs.entry.js +2 -2
- package/dist/cjs/q2-resize-observer.cjs.entry.js +2 -2
- package/dist/cjs/q2-resize-observer.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-section.cjs.entry.js +3 -3
- package/dist/cjs/q2-select.cjs.entry.js +10 -6
- package/dist/cjs/q2-select.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper.cjs.entry.js +2 -2
- package/dist/cjs/q2-tag.cjs.entry.js +51 -9
- package/dist/cjs/q2-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +3 -3
- package/dist/cjs/q2-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/q2-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/sanitize-html-string-b8e3b24b.js +1366 -0
- package/dist/cjs/sanitize-html-string-b8e3b24b.js.map +1 -0
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/click-elsewhere/click-elsewhere.js.map +1 -1
- package/dist/collection/components/click-elsewhere/test/click-elsewhere-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-action-group/q2-action-group.css +11 -4
- package/dist/collection/components/q2-action-group/q2-action-group.js +47 -13
- package/dist/collection/components/q2-action-group/q2-action-group.js.map +1 -1
- package/dist/collection/components/q2-action-group/test/q2-action-group-test.e2e.js +365 -0
- package/dist/collection/components/q2-action-group/test/q2-action-group-test.e2e.js.map +1 -0
- package/dist/collection/components/q2-action-group/test/{q2-action-group.spec.js → q2-action-group-test.spec.js} +67 -26
- package/dist/collection/components/q2-action-group/test/q2-action-group-test.spec.js.map +1 -0
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +1 -1
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js.map +1 -1
- package/dist/collection/components/q2-action-sheet/test/q2-action-sheet-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
- package/dist/collection/components/q2-avatar/q2-avatar.js.map +1 -1
- package/dist/collection/components/q2-avatar/test/q2-avatar-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-badge/q2-badge.css +52 -41
- package/dist/collection/components/q2-badge/q2-badge.js +88 -22
- package/dist/collection/components/q2-badge/q2-badge.js.map +1 -1
- package/dist/collection/components/q2-badge/test/q2-badge-test.e2e.js +35 -126
- package/dist/collection/components/q2-badge/test/q2-badge-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-badge/test/q2-badge-test.spec.js +415 -0
- package/dist/collection/components/q2-badge/test/q2-badge-test.spec.js.map +1 -0
- package/dist/collection/components/q2-btn/q2-btn.css +12 -10
- package/dist/collection/components/q2-btn/q2-btn.js.map +1 -1
- package/dist/collection/components/q2-btn/test/q2-btn-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-calendar/q2-calendar-helpers.js.map +1 -1
- package/dist/collection/components/q2-calendar/q2-calendar-types.js.map +1 -1
- package/dist/collection/components/q2-calendar/q2-calendar-validation.js.map +1 -1
- package/dist/collection/components/q2-calendar/q2-calendar.css +2 -0
- package/dist/collection/components/q2-calendar/q2-calendar.js.map +1 -1
- package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
- package/dist/collection/components/q2-calendar/q2-month-picker.js.map +1 -1
- package/dist/collection/components/q2-calendar/test/helpers-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-calendar/test/q2-calendar-month-picker-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-calendar/test/q2-calendar-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-calendar/test/validation-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-card/q2-card.js.map +1 -1
- package/dist/collection/components/q2-card/test/q2-card-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-carousel/q2-carousel.js.map +1 -1
- package/dist/collection/components/q2-carousel/test/q2-carousel-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
- package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js.map +1 -1
- package/dist/collection/components/q2-carousel-pane/test/q2-carousel-pane-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-carousel-pane/test/q2-carousel-pane-test.spec.js.map +1 -1
- package/dist/collection/components/q2-chart-area/q2-chart-area.js +1 -1
- package/dist/collection/components/q2-chart-area/q2-chart-area.js.map +1 -1
- package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +1 -1
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.js.map +1 -1
- package/dist/collection/components/q2-chart-bar/test/q2-chart-bar-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +1 -1
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js.map +1 -1
- package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-checkbox/q2-checkbox.css +99 -62
- package/dist/collection/components/q2-checkbox/q2-checkbox.js +19 -19
- package/dist/collection/components/q2-checkbox/q2-checkbox.js.map +1 -1
- package/dist/collection/components/q2-checkbox/test/q2-checkbox-test.e2e.js +227 -208
- package/dist/collection/components/q2-checkbox/test/q2-checkbox-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.css +8 -1
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js.map +1 -1
- package/dist/collection/components/q2-checkbox-group/test/q2-checkbox-group-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-currency/q2-currency.js +1 -1
- package/dist/collection/components/q2-currency/q2-currency.js.map +1 -1
- package/dist/collection/components/q2-currency/test/q2-currency-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-data-table/q2-data-table.js.map +1 -1
- package/dist/collection/components/q2-data-table/test/q2-data-table-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-detail/q2-detail.js +1 -1
- package/dist/collection/components/q2-detail/q2-detail.js.map +1 -1
- package/dist/collection/components/q2-detail/test/q2-detail-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.js.map +1 -1
- package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-dropdown-item/q2-dropdown-item.js.map +1 -1
- package/dist/collection/components/q2-dropdown-item/test/q2-dropdown-item-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-editable-field/q2-editable-field.js.map +1 -1
- package/dist/collection/components/q2-editable-field/test/q2-editable-field-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-example/q2-example.js.map +1 -1
- package/dist/collection/components/q2-example/test/q2-example.e2e.js.map +1 -1
- package/dist/collection/components/q2-example/test/q2-example.spec.js.map +1 -1
- package/dist/collection/components/q2-file-picker/q2-file-picker.css +2 -0
- package/dist/collection/components/q2-file-picker/q2-file-picker.js.map +1 -1
- package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.spec.js.map +1 -1
- package/dist/collection/components/q2-form/q2-form.css +93 -0
- package/dist/collection/components/q2-form/q2-form.js +44 -0
- package/dist/collection/components/q2-form/q2-form.js.map +1 -0
- package/dist/collection/components/q2-form/test/q2-form-test.e2e.js +93 -0
- package/dist/collection/components/q2-form/test/q2-form-test.e2e.js.map +1 -0
- package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
- package/dist/collection/components/q2-formatted-text/q2-formatted-text.js.map +1 -1
- package/dist/collection/components/q2-formatted-text/test/q2-formatted-text-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-icon/q2-icon-types.js.map +1 -1
- package/dist/collection/components/q2-icon/q2-icon.js.map +1 -1
- package/dist/collection/components/q2-icon/test/q2-icon-test.e2e.js +1 -352
- package/dist/collection/components/q2-icon/test/q2-icon-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-icon/test/q2-icon-test.spec.js +464 -0
- package/dist/collection/components/q2-icon/test/q2-icon-test.spec.js.map +1 -0
- package/dist/collection/components/q2-input/formatting/alpha.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/alpha.spec.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/alphanumeric.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/alphanumeric.spec.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/credit-card.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/credit-card.spec.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/currency.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/currency.spec.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/date.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/date.spec.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/generic.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/number.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/numeric.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/numeric.spec.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/phone.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/phone.spec.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/postal.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/postal.spec.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/ssn.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/ssn.spec.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/tin.js.map +1 -1
- package/dist/collection/components/q2-input/formatting/tin.spec.js.map +1 -1
- package/dist/collection/components/q2-input/q2-input-types.js.map +1 -1
- package/dist/collection/components/q2-input/q2-input.css +3 -2
- package/dist/collection/components/q2-input/q2-input.js +4 -3
- package/dist/collection/components/q2-input/q2-input.js.map +1 -1
- package/dist/collection/components/q2-input/test/q2-input-credit-card-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-input/test/q2-input-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-input/test/q2-input-test.spec.js +10 -0
- package/dist/collection/components/q2-input/test/q2-input-test.spec.js.map +1 -1
- package/dist/collection/components/q2-item/q2-item.js +1 -1
- package/dist/collection/components/q2-item/q2-item.js.map +1 -1
- package/dist/collection/components/q2-item/test/q2-item-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-item/test/q2-item-test.spec.js.map +1 -1
- package/dist/collection/components/q2-legend/q2-legend.css +1 -1
- package/dist/collection/components/q2-legend/q2-legend.js +1 -1
- package/dist/collection/components/q2-legend/q2-legend.js.map +1 -1
- package/dist/collection/components/q2-legend/test/q2-legend-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-legend/test/q2-legend-test.spec.js.map +1 -1
- package/dist/collection/components/q2-link/q2-link.js.map +1 -1
- package/dist/collection/components/q2-link/test/q2-link-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-link/test/q2-link-test.spec.js.map +1 -1
- package/dist/collection/components/q2-list/q2-list.js +1 -1
- package/dist/collection/components/q2-list/q2-list.js.map +1 -1
- package/dist/collection/components/q2-list/test/q2-list-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-loading/q2-loading.js.map +1 -1
- package/dist/collection/components/q2-loading/skeleton/q2-loading-element/index.js.map +1 -1
- package/dist/collection/components/q2-loading/skeleton/shapes.js.map +1 -1
- package/dist/collection/components/q2-loading/test/q2-loading-element-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-loading/test/q2-loading-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-loc/q2-loc.js +19 -37
- package/dist/collection/components/q2-loc/q2-loc.js.map +1 -1
- package/dist/collection/components/q2-loc/test/q2-loc-test.e2e.js +1 -7
- package/dist/collection/components/q2-loc/test/q2-loc-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-loc/test/q2-loc-test.spec.js +140 -82
- package/dist/collection/components/q2-loc/test/q2-loc-test.spec.js.map +1 -1
- package/dist/collection/components/q2-message/q2-message.js +1 -1
- package/dist/collection/components/q2-message/q2-message.js.map +1 -1
- package/dist/collection/components/q2-message/test/q2-message-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-modal/q2-modal.css +223 -0
- package/dist/collection/components/q2-modal/q2-modal.js +470 -0
- package/dist/collection/components/q2-modal/q2-modal.js.map +1 -0
- package/dist/collection/components/q2-modal/test/q2-modal-test.e2e.js +102 -0
- package/dist/collection/components/q2-modal/test/q2-modal-test.e2e.js.map +1 -0
- package/dist/collection/components/q2-modal/test/q2-modal-test.spec.js +127 -0
- package/dist/collection/components/q2-modal/test/q2-modal-test.spec.js.map +1 -0
- package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.js.map +1 -1
- package/dist/collection/components/q2-optgroup/test/q2-optgroup-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-option/q2-option.js +22 -24
- package/dist/collection/components/q2-option/q2-option.js.map +1 -1
- package/dist/collection/components/q2-option/test/q2-option-test.e2e.js +32 -5
- package/dist/collection/components/q2-option/test/q2-option-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-option/test/q2-option-test.spec.js +137 -19
- package/dist/collection/components/q2-option/test/q2-option-test.spec.js.map +1 -1
- package/dist/collection/components/q2-option-list/q2-option-list.js.map +1 -1
- package/dist/collection/components/q2-option-list/test/q2-option-list-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-option-list/test/q2-option-list.spec.js.map +1 -1
- package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
- package/dist/collection/components/q2-pagination/q2-pagination.js.map +1 -1
- package/dist/collection/components/q2-pagination/test/q2-pagination-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-pill/q2-pill.js +1 -1
- package/dist/collection/components/q2-pill/q2-pill.js.map +1 -1
- package/dist/collection/components/q2-pill/test/q2-pill-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-popover/q2-popover.js +1 -1
- package/dist/collection/components/q2-popover/q2-popover.js.map +1 -1
- package/dist/collection/components/q2-popover/test/q2-popover-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-popover/test/q2-popover-test.spec.js.map +1 -1
- package/dist/collection/components/q2-radio/q2-radio.js.map +1 -1
- package/dist/collection/components/q2-radio/test/q2-radio-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-radio-group/q2-radio-group.css +4 -2
- package/dist/collection/components/q2-radio-group/q2-radio-group.js.map +1 -1
- package/dist/collection/components/q2-radio-group/test/q2-radio-group-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
- package/dist/collection/components/q2-relative-time/q2-relative-time.js.map +1 -1
- package/dist/collection/components/q2-relative-time/test/q2-relative-time-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +2 -2
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js.map +1 -1
- package/dist/collection/components/q2-resize-observer/test/q2-resize-observer.e2e.js.map +1 -1
- package/dist/collection/components/q2-resize-observer/test/q2-resize-observer.spec.js.map +1 -1
- package/dist/collection/components/q2-section/q2-section.js +2 -2
- package/dist/collection/components/q2-section/q2-section.js.map +1 -1
- package/dist/collection/components/q2-section/test/q2-section-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-select/q2-select.css +2 -2
- package/dist/collection/components/q2-select/q2-select.js +15 -4
- package/dist/collection/components/q2-select/q2-select.js.map +1 -1
- package/dist/collection/components/q2-select/test/q2-select-test.e2e.js +5 -1
- package/dist/collection/components/q2-select/test/q2-select-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-select/test/q2-select-test.spec.js +85 -0
- package/dist/collection/components/q2-select/test/q2-select-test.spec.js.map +1 -0
- package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
- package/dist/collection/components/q2-stepper/q2-stepper.js.map +1 -1
- package/dist/collection/components/q2-stepper/test/q2-stepper-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js.map +1 -1
- package/dist/collection/components/q2-stepper-pane/test/q2-stepper-pane-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js.map +1 -1
- package/dist/collection/components/q2-stepper-vertical/test/q2-stepper-vertical-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
- package/dist/collection/components/q2-tab-container/q2-tab-container.js.map +1 -1
- package/dist/collection/components/q2-tab-container/test/q2-tab-container-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-tab-container/test/q2-tab-container-test.spec.js.map +1 -1
- package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
- package/dist/collection/components/q2-tab-pane/q2-tab-pane.js.map +1 -1
- package/dist/collection/components/q2-tab-pane/test/q2-tab-pane-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-tag/q2-tag.css +9 -0
- package/dist/collection/components/q2-tag/q2-tag.js +65 -15
- package/dist/collection/components/q2-tag/q2-tag.js.map +1 -1
- package/dist/collection/components/q2-tag/test/q2-tag-test.e2e.js +131 -341
- package/dist/collection/components/q2-tag/test/q2-tag-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-tag/test/q2-tag-test.spec.js +719 -0
- package/dist/collection/components/q2-tag/test/q2-tag-test.spec.js.map +1 -0
- package/dist/collection/components/q2-textarea/q2-textarea.css +2 -2
- package/dist/collection/components/q2-textarea/q2-textarea.js +1 -1
- package/dist/collection/components/q2-textarea/q2-textarea.js.map +1 -1
- package/dist/collection/components/q2-textarea/test/q2-textarea-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-tooltip/q2-tooltip.css +0 -1
- package/dist/collection/components/q2-tooltip/q2-tooltip.js.map +1 -1
- package/dist/collection/components/q2-tooltip/test/q2-tooltip-test.e2e.js.map +1 -1
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane-types.js.map +1 -1
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js.map +1 -1
- package/dist/collection/components/tecton-tab-pane/test/tecton-tab-pane-test.e2e.js.map +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/utils/action-sheet.js.map +1 -1
- package/dist/collection/utils/charting.js.map +1 -1
- package/dist/collection/utils/helpers.js +1 -25
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/index.js +2 -1
- package/dist/collection/utils/index.js.map +1 -1
- package/dist/collection/utils/mirror-emit.js.map +1 -1
- package/dist/collection/utils/sanitize-html-string.js.map +1 -1
- package/dist/collection/utils/sanitize-regex-string.js.map +1 -1
- package/dist/collection/utils/test/action-sheet-test.e2e.js.map +1 -1
- package/dist/collection/utils/test/index.spec.js.map +1 -1
- package/dist/components/index.js +4 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/index2.js +2 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/components/q2-action-group.js +1 -116
- package/dist/components/q2-action-group.js.map +1 -1
- package/dist/components/q2-action-group2.js +151 -0
- package/dist/components/q2-action-group2.js.map +1 -0
- package/dist/components/q2-action-sheet.js +2 -1362
- package/dist/components/q2-action-sheet.js.map +1 -1
- package/dist/components/q2-avatar2.js +1 -1
- package/dist/components/q2-badge2.js +54 -16
- package/dist/components/q2-badge2.js.map +1 -1
- package/dist/components/q2-btn2.js +1 -1
- package/dist/components/q2-btn2.js.map +1 -1
- package/dist/components/q2-calendar.js +1 -1
- package/dist/components/q2-calendar.js.map +1 -1
- package/dist/components/q2-carousel-pane.js +2 -2
- package/dist/components/q2-chart-area.js +1 -1
- package/dist/components/q2-chart-bar.js +1 -1
- package/dist/components/q2-chart-donut.js +1 -1
- package/dist/components/q2-checkbox-group.js +1 -1
- package/dist/components/q2-checkbox-group.js.map +1 -1
- package/dist/components/q2-checkbox2.js +20 -20
- package/dist/components/q2-checkbox2.js.map +1 -1
- package/dist/components/q2-currency.js +1 -1
- package/dist/components/q2-detail.js +1 -1
- package/dist/components/q2-file-picker.js +1 -1
- package/dist/components/q2-file-picker.js.map +1 -1
- package/dist/components/q2-form.d.ts +11 -0
- package/dist/components/q2-form.js +39 -0
- package/dist/components/q2-form.js.map +1 -0
- package/dist/components/q2-formatted-text.js +1 -1
- package/dist/components/q2-input2.js +5 -4
- package/dist/components/q2-input2.js.map +1 -1
- package/dist/components/q2-item2.js +1 -1
- package/dist/components/q2-legend2.js +2 -2
- package/dist/components/q2-legend2.js.map +1 -1
- package/dist/components/q2-list2.js +1 -1
- package/dist/components/q2-loc.js +22 -33
- package/dist/components/q2-loc.js.map +1 -1
- package/dist/components/q2-message2.js +1 -1
- package/dist/components/q2-modal.d.ts +11 -0
- package/dist/components/q2-modal.js +231 -0
- package/dist/components/q2-modal.js.map +1 -0
- package/dist/components/q2-month-picker.js +2 -2
- package/dist/components/q2-optgroup2.js +1 -1
- package/dist/components/q2-option2.js +23 -25
- package/dist/components/q2-option2.js.map +1 -1
- package/dist/components/q2-pagination.js +3 -3
- package/dist/components/q2-pill.js +1 -1
- package/dist/components/q2-popover2.js +1 -1
- package/dist/components/q2-radio-group.js +1 -1
- package/dist/components/q2-radio-group.js.map +1 -1
- package/dist/components/q2-relative-time.js +1 -1
- package/dist/components/q2-resize-observer2.js +2 -2
- package/dist/components/q2-resize-observer2.js.map +1 -1
- package/dist/components/q2-section.js +2 -2
- package/dist/components/q2-select2.js +9 -5
- package/dist/components/q2-select2.js.map +1 -1
- package/dist/components/q2-stepper-vertical.js +1 -1
- package/dist/components/q2-stepper.js +1 -1
- package/dist/components/q2-tab-container.js +1 -1
- package/dist/components/q2-tab-pane.js +1 -1
- package/dist/components/q2-tag.js +50 -8
- package/dist/components/q2-tag.js.map +1 -1
- package/dist/components/q2-textarea.js +2 -2
- package/dist/components/q2-textarea.js.map +1 -1
- package/dist/components/q2-tooltip.js +1 -1
- package/dist/components/q2-tooltip.js.map +1 -1
- package/dist/components/sanitize-html-string.js +1364 -0
- package/dist/components/sanitize-html-string.js.map +1 -0
- package/dist/components/tecton-tab-pane.js +2 -2
- package/dist/esm/{index-504f1a9e.js → index-f2a66217.js} +3 -2
- package/dist/esm/index-f2a66217.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-action-group.entry.js +45 -14
- package/dist/esm/q2-action-group.entry.js.map +1 -1
- package/dist/esm/q2-action-sheet.entry.js +3 -1363
- package/dist/esm/q2-action-sheet.entry.js.map +1 -1
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/q2-badge_7.entry.js +59 -22
- package/dist/esm/q2-badge_7.entry.js.map +1 -1
- package/dist/esm/q2-calendar.entry.js +2 -2
- package/dist/esm/q2-calendar.entry.js.map +1 -1
- package/dist/esm/q2-card.entry.js +1 -1
- package/dist/esm/q2-carousel-pane.entry.js +3 -3
- package/dist/esm/q2-carousel.entry.js +1 -1
- package/dist/esm/q2-chart-area.entry.js +2 -2
- package/dist/esm/q2-chart-bar.entry.js +2 -2
- package/dist/esm/q2-chart-donut.entry.js +2 -2
- package/dist/esm/q2-checkbox-group.entry.js +2 -2
- package/dist/esm/q2-checkbox-group.entry.js.map +1 -1
- package/dist/esm/q2-checkbox.entry.js +21 -21
- package/dist/esm/q2-checkbox.entry.js.map +1 -1
- package/dist/esm/q2-currency.entry.js +1 -1
- package/dist/esm/q2-data-table.entry.js +1 -1
- package/dist/esm/q2-detail.entry.js +2 -2
- package/dist/esm/q2-dropdown-item.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +1 -1
- package/dist/esm/q2-editable-field.entry.js +1 -1
- package/dist/esm/q2-file-picker.entry.js +2 -2
- package/dist/esm/q2-file-picker.entry.js.map +1 -1
- package/dist/esm/q2-form.entry.js +19 -0
- package/dist/esm/q2-form.entry.js.map +1 -0
- package/dist/esm/q2-formatted-text.entry.js +1 -1
- package/dist/esm/q2-item_3.entry.js +3 -3
- package/dist/esm/q2-legend.entry.js +2 -2
- package/dist/esm/q2-legend.entry.js.map +1 -1
- package/dist/esm/q2-loc.entry.js +21 -27
- package/dist/esm/q2-loc.entry.js.map +1 -1
- package/dist/esm/q2-message.entry.js +2 -2
- package/dist/esm/q2-modal.entry.js +168 -0
- package/dist/esm/q2-modal.entry.js.map +1 -0
- package/dist/esm/q2-month-picker.entry.js +3 -3
- package/dist/esm/q2-optgroup.entry.js +2 -2
- package/dist/esm/q2-option-list_2.entry.js +2 -2
- package/dist/esm/q2-option.entry.js +22 -24
- package/dist/esm/q2-option.entry.js.map +1 -1
- package/dist/esm/q2-pagination.entry.js +4 -4
- package/dist/esm/q2-pill.entry.js +2 -2
- package/dist/esm/q2-radio-group.entry.js +2 -2
- package/dist/esm/q2-radio-group.entry.js.map +1 -1
- package/dist/esm/q2-radio.entry.js +1 -1
- package/dist/esm/q2-relative-time.entry.js +2 -2
- package/dist/esm/q2-resize-observer.entry.js +2 -2
- package/dist/esm/q2-resize-observer.entry.js.map +1 -1
- package/dist/esm/q2-section.entry.js +3 -3
- package/dist/esm/q2-select.entry.js +10 -6
- package/dist/esm/q2-select.entry.js.map +1 -1
- package/dist/esm/q2-stepper-pane.entry.js +1 -1
- package/dist/esm/q2-stepper-vertical.entry.js +2 -2
- package/dist/esm/q2-stepper.entry.js +2 -2
- package/dist/esm/q2-tag.entry.js +51 -9
- package/dist/esm/q2-tag.entry.js.map +1 -1
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +3 -3
- package/dist/esm/q2-textarea.entry.js.map +1 -1
- package/dist/esm/q2-tooltip.entry.js +2 -2
- package/dist/esm/q2-tooltip.entry.js.map +1 -1
- package/dist/esm/sanitize-html-string-735c19f5.js +1364 -0
- package/dist/esm/sanitize-html-string-735c19f5.js.map +1 -0
- package/dist/esm/tecton-tab-pane.entry.js +2 -2
- package/dist/jest.setup.js +22 -0
- package/dist/jest.setup.js.map +1 -0
- package/dist/q2-tecton-elements/{index-504f1a9e.js → index-f2a66217.js} +9 -8
- package/dist/q2-tecton-elements/index-f2a66217.js.map +1 -0
- package/dist/q2-tecton-elements/q2-action-group.entry.js +49 -17
- package/dist/q2-tecton-elements/q2-action-group.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +121 -1331
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-avatar.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-badge_7.entry.js +199 -164
- package/dist/q2-tecton-elements/q2-badge_7.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-calendar.entry.js +180 -180
- package/dist/q2-tecton-elements/q2-calendar.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-card.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-carousel.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-checkbox.entry.js +92 -88
- package/dist/q2-tecton-elements/q2-checkbox.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-currency.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-data-table.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-detail.entry.js +39 -39
- package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-file-picker.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-file-picker.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-form.entry.js +25 -0
- package/dist/q2-tecton-elements/q2-form.entry.js.map +1 -0
- package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-item_3.entry.js +22 -22
- package/dist/q2-tecton-elements/q2-legend.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-legend.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-loc.entry.js +23 -32
- package/dist/q2-tecton-elements/q2-loc.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-message.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-modal.entry.js +226 -0
- package/dist/q2-tecton-elements/q2-modal.entry.js.map +1 -0
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +14 -14
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-option-list_2.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-option.entry.js +38 -38
- package/dist/q2-tecton-elements/q2-option.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-pagination.entry.js +38 -38
- package/dist/q2-tecton-elements/q2-pill.entry.js +14 -14
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +28 -28
- package/dist/q2-tecton-elements/q2-radio-group.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-radio.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js +5 -2
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-section.entry.js +19 -19
- package/dist/q2-tecton-elements/q2-select.entry.js +13 -9
- package/dist/q2-tecton-elements/q2-select.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-stepper.entry.js +22 -22
- package/dist/q2-tecton-elements/q2-tag.entry.js +84 -45
- package/dist/q2-tecton-elements/q2-tag.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-textarea.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-textarea.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-tooltip.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-tooltip.entry.js.map +1 -1
- package/dist/q2-tecton-elements/sanitize-html-string-735c19f5.js +1214 -0
- package/dist/q2-tecton-elements/sanitize-html-string-735c19f5.js.map +1 -0
- package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +9 -9
- package/dist/types/builds/q2e/development/tecton/tecton/packages/q2-tecton-elements/.stencil/jest.setup.d.ts +1 -0
- package/dist/types/components/q2-action-group/q2-action-group.d.ts +5 -2
- package/dist/types/components/q2-badge/q2-badge.d.ts +17 -3
- package/dist/types/components/q2-checkbox/q2-checkbox.d.ts +3 -3
- package/dist/types/components/q2-form/q2-form.d.ts +6 -0
- package/dist/types/components/q2-loc/q2-loc.d.ts +5 -5
- package/dist/types/components/q2-modal/q2-modal.d.ts +80 -0
- package/dist/types/components/q2-option/q2-option.d.ts +4 -4
- package/dist/types/components/q2-select/q2-select.d.ts +1 -0
- package/dist/types/components/q2-tag/q2-tag.d.ts +19 -0
- package/dist/types/components.d.ts +182 -6
- package/dist/types/util.d.ts +1 -8
- package/dist/types/utils/helpers.d.ts +1 -13
- package/dist/types/utils/index.d.ts +3 -2
- package/package.json +3 -3
- package/dist/cjs/index-76f63767.js.map +0 -1
- package/dist/collection/components/q2-action-group/test/q2-action-group.e2e.js +0 -166
- package/dist/collection/components/q2-action-group/test/q2-action-group.e2e.js.map +0 -1
- package/dist/collection/components/q2-action-group/test/q2-action-group.spec.js.map +0 -1
- package/dist/esm/index-504f1a9e.js.map +0 -1
- package/dist/q2-tecton-elements/index-504f1a9e.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as e, c as t, h as
|
|
1
|
+
import { r as e, c as t, h as a, g as i } from "./index-7a5365e2.js";
|
|
2
2
|
|
|
3
3
|
import { d as n } from "./index-3184c760.js";
|
|
4
4
|
|
|
5
|
-
import { l as s, a as r, o, i as d, w as l, j as c } from "./index-
|
|
5
|
+
import { l as s, a as r, o, i as d, w as l, j as c } from "./index-f2a66217.js";
|
|
6
6
|
|
|
7
7
|
function formatDateISO(e) {
|
|
8
8
|
const t = new Date(e);
|
|
@@ -17,7 +17,7 @@ let h;
|
|
|
17
17
|
function formatDateShort(e) {
|
|
18
18
|
const t = new Date(e);
|
|
19
19
|
if (!n.isValid(t)) return;
|
|
20
|
-
const
|
|
20
|
+
const a = t.toISOString();
|
|
21
21
|
if (!h) {
|
|
22
22
|
h = new Intl.DateTimeFormat("en-US", {
|
|
23
23
|
month: "2-digit",
|
|
@@ -26,7 +26,7 @@ function formatDateShort(e) {
|
|
|
26
26
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
return h.format(new Date(
|
|
29
|
+
return h.format(new Date(a));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
let u;
|
|
@@ -73,44 +73,44 @@ function stringToDate(e) {
|
|
|
73
73
|
} else if (!e || !n.isValid(new Date(e))) {
|
|
74
74
|
return undefined;
|
|
75
75
|
}
|
|
76
|
-
let
|
|
77
|
-
const
|
|
76
|
+
let a;
|
|
77
|
+
const i = e.split(/[\/\-]/).map((e => e.padStart(2, "0")));
|
|
78
78
|
const s = t && e.length >= 24 && e[10] === "T";
|
|
79
|
-
const r =
|
|
80
|
-
const o =
|
|
79
|
+
const r = i.length === 3;
|
|
80
|
+
const o = i.length < 3;
|
|
81
81
|
if (s) {
|
|
82
82
|
e = e.split("T")[0];
|
|
83
|
-
|
|
83
|
+
a = new Date(e);
|
|
84
84
|
} else if (r) {
|
|
85
|
-
const t = e.includes("/") &&
|
|
85
|
+
const t = e.includes("/") && i[2].length === 4;
|
|
86
86
|
// Reorder mm/dd/yyyy dates for ISO formatting
|
|
87
87
|
// [mm, dd, yyyy] -> [yyyy, mm, dd]
|
|
88
|
-
if (t)
|
|
89
|
-
|
|
88
|
+
if (t) i.unshift(i.pop());
|
|
89
|
+
a = new Date(Date.UTC(parseInt(i[0]), parseInt(i[1]) - 1, parseInt(i[2])));
|
|
90
90
|
} else if (o) {
|
|
91
91
|
const e = new Date;
|
|
92
92
|
let t;
|
|
93
93
|
let n;
|
|
94
94
|
let s;
|
|
95
|
-
switch (
|
|
95
|
+
switch (i.length) {
|
|
96
96
|
case 1:
|
|
97
97
|
t = e.getFullYear();
|
|
98
|
-
n =
|
|
98
|
+
n = i[0];
|
|
99
99
|
s = "01";
|
|
100
100
|
break;
|
|
101
101
|
|
|
102
102
|
case 2:
|
|
103
103
|
t = e.getFullYear();
|
|
104
|
-
n =
|
|
105
|
-
s =
|
|
104
|
+
n = i[0];
|
|
105
|
+
s = i[1];
|
|
106
106
|
break;
|
|
107
107
|
}
|
|
108
|
-
|
|
108
|
+
a = new Date(`${t}-${n}-${s}`);
|
|
109
109
|
}
|
|
110
|
-
if (!n.isValid(
|
|
110
|
+
if (!n.isValid(a)) return undefined;
|
|
111
111
|
// result = setHours(result, 0);
|
|
112
|
-
|
|
113
|
-
return n.isValid(
|
|
112
|
+
a = removeTimezoneOffset(a);
|
|
113
|
+
return n.isValid(a) ? a : undefined;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
function removeTimezoneOffset(e) {
|
|
@@ -133,8 +133,8 @@ function setupMonthYear(e = new Date) {
|
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
function validateInput(e = "", t = [],
|
|
137
|
-
|
|
136
|
+
function validateInput(e = "", t = [], a = [], // white list
|
|
137
|
+
i = [], // black list
|
|
138
138
|
r, o, d = "mm/dd/yyyy", l) {
|
|
139
139
|
let c = true;
|
|
140
140
|
let h = false;
|
|
@@ -153,7 +153,7 @@ r, o, d = "mm/dd/yyyy", l) {
|
|
|
153
153
|
const p = v.getMonth() + 1;
|
|
154
154
|
const m = v.getDate();
|
|
155
155
|
const y = v.getFullYear();
|
|
156
|
-
const
|
|
156
|
+
const g = [ p, m, y ];
|
|
157
157
|
if (n.isValid(v)) {
|
|
158
158
|
const n = getMonths()[v.getMonth()];
|
|
159
159
|
if (e.length === 10) {
|
|
@@ -164,8 +164,8 @@ r, o, d = "mm/dd/yyyy", l) {
|
|
|
164
164
|
h = t.includes(v.getDay());
|
|
165
165
|
const l = formatDateISO(v);
|
|
166
166
|
if (h) {
|
|
167
|
-
const e =
|
|
168
|
-
const t =
|
|
167
|
+
const e = a.length && !a.includes(l);
|
|
168
|
+
const t = i.length && i.includes(l);
|
|
169
169
|
const n = r && r > l;
|
|
170
170
|
const s = o && o < l;
|
|
171
171
|
if (e || t || n || s) {
|
|
@@ -189,37 +189,37 @@ r, o, d = "mm/dd/yyyy", l) {
|
|
|
189
189
|
message: f,
|
|
190
190
|
inputDate: v,
|
|
191
191
|
isAvailable: h,
|
|
192
|
-
calendarPosition:
|
|
192
|
+
calendarPosition: g
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
function buildInputDate(e, t) {
|
|
197
|
-
const
|
|
197
|
+
const a = new Date;
|
|
198
198
|
// eslint-disable-next-line prefer-const
|
|
199
|
-
let [
|
|
200
|
-
if (
|
|
199
|
+
let [i, n, s] = e.split("/");
|
|
200
|
+
if (i === "0") i = "01";
|
|
201
201
|
if (n === "0") n = "01";
|
|
202
202
|
if (e.length === 10) {
|
|
203
203
|
return new Date(e);
|
|
204
|
-
} else if (
|
|
204
|
+
} else if (i && n && Number(n) > 0) {
|
|
205
205
|
const e = Number(n) < 10 ? `0${Number(n)}` : n;
|
|
206
|
-
const
|
|
207
|
-
return new Date(`${
|
|
208
|
-
} else if (
|
|
209
|
-
return new Date(`${
|
|
206
|
+
const a = !s || s.length < 4 ? assumeYear(i, n, t) : s;
|
|
207
|
+
return new Date(`${i}/${e}/${a}`);
|
|
208
|
+
} else if (i) {
|
|
209
|
+
return new Date(`${i}/01/${a.getFullYear()}`);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
function assumeYear(e, t,
|
|
214
|
-
const
|
|
213
|
+
function assumeYear(e, t, a) {
|
|
214
|
+
const i = `${e}/${t}`;
|
|
215
215
|
const n = new Date;
|
|
216
216
|
const s = n.getMonth() < 9 ? `0${n.getMonth() + 1}` : `${n.getMonth() + 1}`;
|
|
217
217
|
const r = n.getDate() < 10 ? `0${n.getDate()}` : `${n.getDate()}`;
|
|
218
218
|
const o = `${s}/${r}/${n.getFullYear()}`;
|
|
219
219
|
let d = n.getFullYear();
|
|
220
|
-
if (
|
|
220
|
+
if (a === "future" && o.slice(0, 5) > i) {
|
|
221
221
|
d = n.getFullYear() + 1;
|
|
222
|
-
} else if (
|
|
222
|
+
} else if (a === "past" && o.slice(0, 5) < i) {
|
|
223
223
|
d = n.getFullYear() - 1;
|
|
224
224
|
}
|
|
225
225
|
return d.toString();
|
|
@@ -261,18 +261,18 @@ function getMonths() {
|
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
function generateDatesFromMonthYear(e, t) {
|
|
264
|
-
const
|
|
265
|
-
return [ ...Array(
|
|
266
|
-
|
|
267
|
-
return
|
|
264
|
+
const a = n.getDaysInMonth(new Date(t, e));
|
|
265
|
+
return [ ...Array(a).keys() ].reduce(((a, i) => {
|
|
266
|
+
a.push(new Date(t, e, i + 1));
|
|
267
|
+
return a;
|
|
268
268
|
}), []);
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
function getValidDaysOfWeek(e = 127) {
|
|
272
272
|
/* tslint:disable:no-bitwise */
|
|
273
273
|
const t = e & 1;
|
|
274
|
-
const
|
|
275
|
-
const
|
|
274
|
+
const a = e & 2;
|
|
275
|
+
const i = e & 4;
|
|
276
276
|
const n = e & 8;
|
|
277
277
|
const s = e & 16;
|
|
278
278
|
const r = e & 32;
|
|
@@ -280,8 +280,8 @@ function getValidDaysOfWeek(e = 127) {
|
|
|
280
280
|
/* tslint:enable:no-bitwise */ const d = [];
|
|
281
281
|
if (e <= 0) return d;
|
|
282
282
|
if (t) d.push(0);
|
|
283
|
-
if (
|
|
284
|
-
if (
|
|
283
|
+
if (a) d.push(1);
|
|
284
|
+
if (i) d.push(2);
|
|
285
285
|
if (n) d.push(3);
|
|
286
286
|
if (s) d.push(4);
|
|
287
287
|
if (r) d.push(5);
|
|
@@ -301,22 +301,22 @@ function validateAgainstWhitelist(e, t) {
|
|
|
301
301
|
return e.some((e => n.isSameDay(e, t)));
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
function buildDates(e, t,
|
|
304
|
+
function buildDates(e, t, a, i, n, s, r) {
|
|
305
305
|
const o = [ baseValidation.bind(null, s, new Date) ];
|
|
306
306
|
if (t === null || t === void 0 ? void 0 : t.length) {
|
|
307
307
|
o.push(validateAgainstWhitelist.bind(null, t));
|
|
308
308
|
} else {
|
|
309
309
|
o.push(validateAgainstChecksum.bind(null, e));
|
|
310
310
|
}
|
|
311
|
-
o.push(validateAgainstBlacklist.bind(null,
|
|
312
|
-
return generateDateList(
|
|
311
|
+
o.push(validateAgainstBlacklist.bind(null, a));
|
|
312
|
+
return generateDateList(i, n, s, o, r);
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
function generateDateList({monthIndex: e, selectedYear: t},
|
|
315
|
+
function generateDateList({monthIndex: e, selectedYear: t}, a, i, s, r) {
|
|
316
316
|
const o = !n.isValid(new Date(r));
|
|
317
317
|
const d = generateDatesFromMonthYear(e, t).map(((e, t) => {
|
|
318
318
|
const n = s.some((t => !t(e)));
|
|
319
|
-
const r = getDayState(e,
|
|
319
|
+
const r = getDayState(e, i, a);
|
|
320
320
|
const d = generateClassesForCalDay(Object.assign(Object.assign({}, r), {
|
|
321
321
|
isInvalid: n,
|
|
322
322
|
isIncompleteDate: o
|
|
@@ -335,33 +335,33 @@ function generateDateList({monthIndex: e, selectedYear: t}, i, a, s, r) {
|
|
|
335
335
|
return [ ...l, ...d, ...c ];
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
function baseValidation(e, t,
|
|
339
|
-
const
|
|
340
|
-
const s = n.isBefore(e === null || e === void 0 ? void 0 : e.endDate,
|
|
341
|
-
const r = n.isSameDay(t,
|
|
342
|
-
return !(
|
|
338
|
+
function baseValidation(e, t, a) {
|
|
339
|
+
const i = n.isAfter(e === null || e === void 0 ? void 0 : e.startDate, a);
|
|
340
|
+
const s = n.isBefore(e === null || e === void 0 ? void 0 : e.endDate, a);
|
|
341
|
+
const r = n.isSameDay(t, a) && n.isAfter(t, e === null || e === void 0 ? void 0 : e.cutOffTime);
|
|
342
|
+
return !(i || r || s);
|
|
343
343
|
}
|
|
344
344
|
|
|
345
|
-
function getDayState(e, t,
|
|
346
|
-
if (!
|
|
347
|
-
const
|
|
345
|
+
function getDayState(e, t, a) {
|
|
346
|
+
if (!a) a = new Date;
|
|
347
|
+
const i = a && n.isSameDay(a, e);
|
|
348
348
|
const s = n.isSameDay(e, new Date);
|
|
349
349
|
const r = n.isSameDay(e, t === null || t === void 0 ? void 0 : t.startDate);
|
|
350
350
|
const o = n.isSameDay(e, t === null || t === void 0 ? void 0 : t.endDate);
|
|
351
351
|
return {
|
|
352
|
-
isSelected:
|
|
352
|
+
isSelected: i,
|
|
353
353
|
isToday: s,
|
|
354
354
|
isStartDate: r,
|
|
355
355
|
isEndDate: o
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
358
|
|
|
359
|
-
function generateClassesForCalDay({isInvalid: e, isSelected: t, isEndDate:
|
|
359
|
+
function generateClassesForCalDay({isInvalid: e, isSelected: t, isEndDate: a, isStartDate: i, isToday: n, isIncompleteDate: s}) {
|
|
360
360
|
const r = [];
|
|
361
361
|
if (!e) r.push("is-valid");
|
|
362
362
|
if (t) r.push("is-selected");
|
|
363
|
-
if (
|
|
364
|
-
if (
|
|
363
|
+
if (a) r.push("is-end-date");
|
|
364
|
+
if (i) r.push("is-start-date");
|
|
365
365
|
if (n) r.push("is-today");
|
|
366
366
|
if (t && e && !s) r.push("is-unavailable");
|
|
367
367
|
return r.join(" ");
|
|
@@ -394,13 +394,13 @@ function addEmptyDates(e, t) {
|
|
|
394
394
|
return [ ...Array(t - e).keys() ].map((() => Object.assign({}, v)));
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
const p = "*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}:host{display:block}:host[hidden]{display:none}click-elsewhere{position:relative;display:block}q2-input{margin:0;cursor:pointer}q2-popover{--comp-min-tappable-size:44px;--comp-table-border-spacing:2px;--comp-min-tappable-size-and-spacing:calc(var(--comp-min-tappable-size) + var(--comp-table-border-spacing));--comp-popover-padding:var(--tct-calendar-popover-padding, var(--t-calendar-popover-padding, var(--app-scale-1x, 5px)));--comp-min-table-width:calc(var(--comp-min-tappable-size-and-spacing) * 7);--comp-table-container-border-spacing:calc(var(--comp-table-border-spacing) * 2);--comp-popover-total-padding:calc(var(--comp-popover-padding) * 2);--tct-popover-min-width:calc(\n var(--comp-min-table-width) + var(--comp-table-container-border-spacing) + var(--comp-popover-total-padding)\n )}.calendar-field-popup{padding:var(--comp-popover-padding)}.calendar-label{--comp-label-padding:var(--tct-calendar-label-padding, var(--tct-calendar-label-vertical-padding, var(--t-calendar-label-vertical-padding, var(--tct-scale-2, var(--app-scale-2x, 10px)))) 0);font-size:var(--tct-calendar-label-font-size, var(--t-calendar-label-font-size, 16px));flex:1 1;flex-basis:calc(100% - var(--tct-btn-icon-width, 44px));margin:0;padding:var(--comp-label-padding)}.cal-month-heading{padding:0 0 0.75rem;display:flex;justify-content:center;align-items:center;font-size:var(--tct-calendar-month-font-size, var(--t-calendar-month-font-size, 16px));font-weight:var(--tct-calendar-month-font-weight, var(--t-calendar-month-font-weight, 600));text-align:center}.cal-month-text{min-width:82px;display:inline-block}.cal-year-text{min-width:50px;display:inline-block}table{width:100%;margin-bottom:2px;text-align:center;border-spacing:var(--comp-table-border-spacing)}th{font-size:var(--tct-calendar-day-heading-font-size, var(--t-calendar-day-heading-font-size, inherit));font-weight:var(--tct-calendar-day-heading-font-weight, var(--t-calendar-day-heading-font-weight, 600));width:14.285714%}td{height:var(--comp-min-tappable-size);cursor:pointer;border:var(--tct-calendar-day-border, var(--t-calendar-day-border, 0));border-radius:var(--tct-calendar-day-border-radius, var(--t-calendar-day-border-radius))}td.is-unavailable{border:1px solid var(--tct-input-error-border-color, var(--const-stoplight-alert, #d20a0a))}td.is-valid:hover{border:var(--tct-calendar-day-hover-border, var(--t-calendar-day-hover-border, var(--tct-calendar-day-border, var(--t-calendar-day-border, 0))));border-radius:var(--tct-calendar-day-hover-border-radius, var(--t-calendar-day-hover-border-radius, var(--tct-calendar-day-border-radius, var(--t-calendar-day-border-radius))));background:var(--tct-calendar-day-hover-background, var(--tct-calendar-day-hover-bg, var(--t-calendar-day-hover-bg, var(--tct-gray-14, var(--app-gray14, var(--tct-gray-l4, var(--app-gray-l4, #f2f2f2)))))));color:var(--tct-calendar-day-hover-font-color, var(--t-calendar-day-hover-font-color, inherit))}td[aria-hidden],td[aria-disabled]{pointer-events:none;cursor:not-allowed}td[aria-disabled]{opacity:var(--tct-calendar-day-disabled-opacity, var(--t-calendar-day-disabled-opacity, var(--app-disabled-opacity, 0.4)))}td[aria-selected]{border:var(--tct-calendar-day-selected-border, var(--t-calendar-day-selected-border, var(--tct-calendar-day-border, var(--t-calendar-day-border, 0))));border-radius:var(--tct-calendar-day-selected-border-radius, var(--t-calendar-day-selected-border-radius, var(--tct-calendar-day-border-radius, var(--t-calendar-day-border-radius))));background:var(--tct-calendar-day-selected-background, var(--tct-calendar-day-selected-bg, var(--t-calendar-day-selected-bg, var(--tct-calendar-day-hover-background, var(--tct-calendar-day-hover-bg, var(--t-calendar-day-hover-bg, var(--tct-gray-14, var(--t-gray-14, var(--tct-gray-l4, var(--app-gray-l4, #f2f2f2))))))))));color:var(--tct-calendar-day-selected-font-color, var(--t-calendar-day-selected-font-color, var(--tct-calendar-day-hover-font-color, var(--t-calendar-day-hover-font-color, inherit))));box-shadow:0 0 0 2px var(--tct-calendar-day-selected-outline-color, var(--t-calendar-day-selected-outline-color, var(--tct-stoplight-info, var(--const-stoplight-info, #0079c1))))}td[aria-selected]:focus{box-shadow:0 0 0 2px var(--tct-calendar-day-selected-outline-color, var(--t-calendar-day-selected-outline-color, var(--tct-stoplight-info, var(--const-stoplight-info, #0079c1)))), 0 0 0 4px var(--const-focus-color, #0066cc)}.today-decorator{text-transform:uppercase;font-weight:700;font-size:10px;height:12px}.calendar-disclaimer{font-size:var(--tct-calendar-disclaimer-font-size, var(--t-calendar-disclaimer-font-size, var(--tct-font-size-small, var(--app-font-size-small, 12px))));border-style:solid;border-width:var(--tct-calendar-disclaimer-border-width, var(--t-calendar-disclaimer-border-width, 1px 0 0 0));border-color:var(--tct-calendar-disclaimer-border-color, var(--t-calendar-disclaimer-border-color, var(--tct-gray-13, var(--t-gray-13, var(--tct-gray-l3, var(--app-gray-l3, #e6e6e6))))));padding:var(--tct-calendar-disclaimer-padding, var(--tct-scale-2, var(--app-scale-2x, 10px)));text-align:left}";
|
|
397
|
+
const p = "*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}:host{--comp-default-calendar-margin:var(--tct-calendar-margin-top, var(--t-calendar-margin-top, var(--app-scale-5x, 25px))) 0 var(--tct-calendar-margin-bottom, var(--t-calendar-margin-bottom, var(--app-scale-5x, 25px)));display:block;margin:var(--tct-calendar-margin, var(--comp-default-calendar-margin))}:host[hidden]{display:none}click-elsewhere{position:relative;display:block}q2-input{margin:0;cursor:pointer}q2-popover{--comp-min-tappable-size:44px;--comp-table-border-spacing:2px;--comp-min-tappable-size-and-spacing:calc(var(--comp-min-tappable-size) + var(--comp-table-border-spacing));--comp-popover-padding:var(--tct-calendar-popover-padding, var(--t-calendar-popover-padding, var(--app-scale-1x, 5px)));--comp-min-table-width:calc(var(--comp-min-tappable-size-and-spacing) * 7);--comp-table-container-border-spacing:calc(var(--comp-table-border-spacing) * 2);--comp-popover-total-padding:calc(var(--comp-popover-padding) * 2);--tct-popover-min-width:calc(\n var(--comp-min-table-width) + var(--comp-table-container-border-spacing) + var(--comp-popover-total-padding)\n )}.calendar-field-popup{padding:var(--comp-popover-padding)}.calendar-label{--comp-label-padding:var(--tct-calendar-label-padding, var(--tct-calendar-label-vertical-padding, var(--t-calendar-label-vertical-padding, var(--tct-scale-2, var(--app-scale-2x, 10px)))) 0);font-size:var(--tct-calendar-label-font-size, var(--t-calendar-label-font-size, 16px));flex:1 1;flex-basis:calc(100% - var(--tct-btn-icon-width, 44px));margin:0;padding:var(--comp-label-padding)}.cal-month-heading{padding:0 0 0.75rem;display:flex;justify-content:center;align-items:center;font-size:var(--tct-calendar-month-font-size, var(--t-calendar-month-font-size, 16px));font-weight:var(--tct-calendar-month-font-weight, var(--t-calendar-month-font-weight, 600));text-align:center}.cal-month-text{min-width:82px;display:inline-block}.cal-year-text{min-width:50px;display:inline-block}table{width:100%;margin-bottom:2px;text-align:center;border-spacing:var(--comp-table-border-spacing)}th{font-size:var(--tct-calendar-day-heading-font-size, var(--t-calendar-day-heading-font-size, inherit));font-weight:var(--tct-calendar-day-heading-font-weight, var(--t-calendar-day-heading-font-weight, 600));width:14.285714%}td{height:var(--comp-min-tappable-size);cursor:pointer;border:var(--tct-calendar-day-border, var(--t-calendar-day-border, 0));border-radius:var(--tct-calendar-day-border-radius, var(--t-calendar-day-border-radius))}td.is-unavailable{border:1px solid var(--tct-input-error-border-color, var(--const-stoplight-alert, #d20a0a))}td.is-valid:hover{border:var(--tct-calendar-day-hover-border, var(--t-calendar-day-hover-border, var(--tct-calendar-day-border, var(--t-calendar-day-border, 0))));border-radius:var(--tct-calendar-day-hover-border-radius, var(--t-calendar-day-hover-border-radius, var(--tct-calendar-day-border-radius, var(--t-calendar-day-border-radius))));background:var(--tct-calendar-day-hover-background, var(--tct-calendar-day-hover-bg, var(--t-calendar-day-hover-bg, var(--tct-gray-14, var(--app-gray14, var(--tct-gray-l4, var(--app-gray-l4, #f2f2f2)))))));color:var(--tct-calendar-day-hover-font-color, var(--t-calendar-day-hover-font-color, inherit))}td[aria-hidden],td[aria-disabled]{pointer-events:none;cursor:not-allowed}td[aria-disabled]{opacity:var(--tct-calendar-day-disabled-opacity, var(--t-calendar-day-disabled-opacity, var(--app-disabled-opacity, 0.4)))}td[aria-selected]{border:var(--tct-calendar-day-selected-border, var(--t-calendar-day-selected-border, var(--tct-calendar-day-border, var(--t-calendar-day-border, 0))));border-radius:var(--tct-calendar-day-selected-border-radius, var(--t-calendar-day-selected-border-radius, var(--tct-calendar-day-border-radius, var(--t-calendar-day-border-radius))));background:var(--tct-calendar-day-selected-background, var(--tct-calendar-day-selected-bg, var(--t-calendar-day-selected-bg, var(--tct-calendar-day-hover-background, var(--tct-calendar-day-hover-bg, var(--t-calendar-day-hover-bg, var(--tct-gray-14, var(--t-gray-14, var(--tct-gray-l4, var(--app-gray-l4, #f2f2f2))))))))));color:var(--tct-calendar-day-selected-font-color, var(--t-calendar-day-selected-font-color, var(--tct-calendar-day-hover-font-color, var(--t-calendar-day-hover-font-color, inherit))));box-shadow:0 0 0 2px var(--tct-calendar-day-selected-outline-color, var(--t-calendar-day-selected-outline-color, var(--tct-stoplight-info, var(--const-stoplight-info, #0079c1))))}td[aria-selected]:focus{box-shadow:0 0 0 2px var(--tct-calendar-day-selected-outline-color, var(--t-calendar-day-selected-outline-color, var(--tct-stoplight-info, var(--const-stoplight-info, #0079c1)))), 0 0 0 4px var(--const-focus-color, #0066cc)}.today-decorator{text-transform:uppercase;font-weight:700;font-size:10px;height:12px}.calendar-disclaimer{font-size:var(--tct-calendar-disclaimer-font-size, var(--t-calendar-disclaimer-font-size, var(--tct-font-size-small, var(--app-font-size-small, 12px))));border-style:solid;border-width:var(--tct-calendar-disclaimer-border-width, var(--t-calendar-disclaimer-border-width, 1px 0 0 0));border-color:var(--tct-calendar-disclaimer-border-color, var(--t-calendar-disclaimer-border-color, var(--tct-gray-13, var(--t-gray-13, var(--tct-gray-l3, var(--app-gray-l3, #e6e6e6))))));padding:var(--tct-calendar-disclaimer-padding, var(--tct-scale-2, var(--app-scale-2x, 10px)));text-align:left}";
|
|
398
398
|
|
|
399
399
|
const m = p;
|
|
400
400
|
|
|
401
401
|
const y = class {
|
|
402
|
-
constructor(
|
|
403
|
-
e(this,
|
|
402
|
+
constructor(a) {
|
|
403
|
+
e(this, a);
|
|
404
404
|
this.change = t(this, "change", 7);
|
|
405
405
|
this.error = t(this, "error", 7);
|
|
406
406
|
this.success = t(this, "success", 7);
|
|
@@ -440,9 +440,9 @@ const y = class {
|
|
|
440
440
|
}
|
|
441
441
|
};
|
|
442
442
|
this.onDateKeydown = e => {
|
|
443
|
-
const {monthIndex: t, selectedYear:
|
|
444
|
-
const
|
|
445
|
-
const s = this.generateDateFromDay(
|
|
443
|
+
const {monthIndex: t, selectedYear: a} = this.selectedMonthYear;
|
|
444
|
+
const i = parseInt(e.target.dataset.day);
|
|
445
|
+
const s = this.generateDateFromDay(i);
|
|
446
446
|
switch (e.key) {
|
|
447
447
|
case "ArrowUp":
|
|
448
448
|
e.preventDefault();
|
|
@@ -466,12 +466,12 @@ const y = class {
|
|
|
466
466
|
|
|
467
467
|
case "PageUp":
|
|
468
468
|
e.preventDefault();
|
|
469
|
-
if (e.shiftKey) this.goToMonthYear(t,
|
|
469
|
+
if (e.shiftKey) this.goToMonthYear(t, a - 1); else this.goToMonthYear(t - 1, a);
|
|
470
470
|
break;
|
|
471
471
|
|
|
472
472
|
case "PageDown":
|
|
473
473
|
e.preventDefault();
|
|
474
|
-
if (e.shiftKey) this.goToMonthYear(t,
|
|
474
|
+
if (e.shiftKey) this.goToMonthYear(t, a + 1); else this.goToMonthYear(t + 1, a);
|
|
475
475
|
break;
|
|
476
476
|
|
|
477
477
|
case "Home":
|
|
@@ -510,34 +510,34 @@ const y = class {
|
|
|
510
510
|
this.onDateSelection = e => {
|
|
511
511
|
const t = e.target.closest("td:not([aria-hidden])");
|
|
512
512
|
if (!t) return;
|
|
513
|
-
const
|
|
514
|
-
this.selectDate(
|
|
513
|
+
const a = removeTimezoneOffset(new Date(t.dataset.date));
|
|
514
|
+
this.selectDate(a);
|
|
515
515
|
this.closeCalendar();
|
|
516
516
|
};
|
|
517
517
|
this.onHeaderControlKeydown = e => {
|
|
518
518
|
var t;
|
|
519
|
-
const
|
|
520
|
-
const
|
|
521
|
-
if (e.key === "Tab" && !
|
|
519
|
+
const a = this.generateDateFromDay(1);
|
|
520
|
+
const i = (t = this.calendarBody) === null || t === void 0 ? void 0 : t.querySelector('[aria-selected="true"]');
|
|
521
|
+
if (e.key === "Tab" && !i) {
|
|
522
522
|
e.preventDefault();
|
|
523
|
-
this.activateDay(
|
|
523
|
+
this.activateDay(a);
|
|
524
524
|
}
|
|
525
525
|
};
|
|
526
526
|
this.onInputBlur = () => {
|
|
527
527
|
if (!this.isTypeable) return;
|
|
528
528
|
const e = getValidDaysOfWeek(this.daysOfWeekChecksum);
|
|
529
529
|
const {typedValue: t} = this;
|
|
530
|
-
const {isValid:
|
|
531
|
-
if (!t && (
|
|
530
|
+
const {isValid: a, inputDate: i, isAvailable: s} = validateInput(this.typedValue, e, this.validDates, this.invalidDates, this.startDate, this.endDate, this.defaultFormatString, this.assume);
|
|
531
|
+
if (!t && (i === null || i === void 0 ? void 0 : i.toString()) === "Invalid Date") {
|
|
532
532
|
// initial/clear state
|
|
533
533
|
this.setHints({
|
|
534
534
|
isValid: true,
|
|
535
535
|
message: this.defaultHintMessage,
|
|
536
536
|
messageType: "info"
|
|
537
537
|
});
|
|
538
|
-
} else if (
|
|
539
|
-
|
|
540
|
-
this.setCompleteInput(
|
|
538
|
+
} else if (a || t && t.length > 4 && // at least mm/dd provided
|
|
539
|
+
i && n.isValid(i) && s) {
|
|
540
|
+
this.setCompleteInput(i);
|
|
541
541
|
} else if (this.value) {
|
|
542
542
|
this.valueOnBlur = this.value;
|
|
543
543
|
this.value = null;
|
|
@@ -605,19 +605,19 @@ const y = class {
|
|
|
605
605
|
// handle missing zero in month and date
|
|
606
606
|
this.typedValue = handleMissingZeros(this.typedValue);
|
|
607
607
|
const {typedValue: t} = this;
|
|
608
|
-
const
|
|
609
|
-
const {isValid:
|
|
608
|
+
const a = getValidDaysOfWeek(this.daysOfWeekChecksum);
|
|
609
|
+
const {isValid: i, message: s, messageType: r, inputDate: o, isAvailable: d, calendarPosition: l} = validateInput(t, a, this.validDates, this.invalidDates, this.startDate, this.endDate, this.defaultFormatString, this.assume);
|
|
610
610
|
if (l) {
|
|
611
|
-
const [e, t,
|
|
612
|
-
const
|
|
613
|
-
if (n.isValid(
|
|
614
|
-
this.selectedMonthYear = setupMonthYear(
|
|
611
|
+
const [e, t, a] = l;
|
|
612
|
+
const i = new Date(a, e - 1, t);
|
|
613
|
+
if (n.isValid(i)) {
|
|
614
|
+
this.selectedMonthYear = setupMonthYear(i);
|
|
615
615
|
this.dateList = this.buildDateList(this.selectedMonthYear);
|
|
616
616
|
this.validateDate();
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
619
|
if (e.key === "Enter") {
|
|
620
|
-
if (
|
|
620
|
+
if (i || t && t.length > 4 && // at least mm/dd provided
|
|
621
621
|
o && n.isValid(o) && d) {
|
|
622
622
|
this.setCompleteInput(o);
|
|
623
623
|
} else if (this.value) {
|
|
@@ -635,7 +635,7 @@ const y = class {
|
|
|
635
635
|
}
|
|
636
636
|
} else {
|
|
637
637
|
this.setHints({
|
|
638
|
-
isValid:
|
|
638
|
+
isValid: i,
|
|
639
639
|
message: s,
|
|
640
640
|
messageType: r
|
|
641
641
|
});
|
|
@@ -812,14 +812,14 @@ const y = class {
|
|
|
812
812
|
* @testOnly
|
|
813
813
|
*/ async setValue(e) {
|
|
814
814
|
var t;
|
|
815
|
-
const
|
|
816
|
-
if (!n.isValid(
|
|
815
|
+
const a = typeof e === "string" ? stringToDate(e) : e;
|
|
816
|
+
if (!n.isValid(a)) return;
|
|
817
817
|
await this.openPopover();
|
|
818
818
|
await l();
|
|
819
|
-
this.goToMonthYear(
|
|
819
|
+
this.goToMonthYear(a.getMonth(), a.getFullYear());
|
|
820
820
|
await l();
|
|
821
|
-
const
|
|
822
|
-
|
|
821
|
+
const i = (t = this.calendarTable) === null || t === void 0 ? void 0 : t.querySelector(`td[data-date="${formatDateISO(a)}"]`);
|
|
822
|
+
i === null || i === void 0 ? void 0 : i.click();
|
|
823
823
|
}
|
|
824
824
|
/**
|
|
825
825
|
* Emulates focusing the `<input>`, entering the provided value, and emitting an `input` event.
|
|
@@ -834,13 +834,13 @@ const y = class {
|
|
|
834
834
|
*/ async typeValue(e) {
|
|
835
835
|
if (!this.typeable) return;
|
|
836
836
|
const t = typeof e === "string" ? stringToDate(e) : e;
|
|
837
|
-
const
|
|
837
|
+
const a = formatDateShort(t);
|
|
838
838
|
if (!n.isValid(t)) return;
|
|
839
|
-
const {innerInputField:
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
839
|
+
const {innerInputField: i, controlElement: s} = this;
|
|
840
|
+
i.focus();
|
|
841
|
+
i.dispatchEvent(new FocusEvent("focus"));
|
|
842
|
+
i.value = a;
|
|
843
|
+
i.dispatchEvent(new InputEvent("input"));
|
|
844
844
|
s.dispatchEvent(new KeyboardEvent("keyup"));
|
|
845
845
|
}
|
|
846
846
|
// #endregion
|
|
@@ -890,19 +890,19 @@ const y = class {
|
|
|
890
890
|
return;
|
|
891
891
|
}
|
|
892
892
|
const t = e && typeof e !== "string" && "toDate" in e;
|
|
893
|
-
const
|
|
894
|
-
const
|
|
893
|
+
const a = t ? e.toDate() : stringToDate(e);
|
|
894
|
+
const i = formatDateShort(a);
|
|
895
895
|
if (this.isTypeable) {
|
|
896
|
-
this.typedValue =
|
|
896
|
+
this.typedValue = i;
|
|
897
897
|
} else {
|
|
898
|
-
this.controlElement.value =
|
|
899
|
-
this.selectedMonthYear = setupMonthYear(
|
|
898
|
+
this.controlElement.value = i;
|
|
899
|
+
this.selectedMonthYear = setupMonthYear(a);
|
|
900
900
|
this.dateList = this.buildDateList(this.selectedMonthYear);
|
|
901
901
|
this.validateDate();
|
|
902
902
|
}
|
|
903
903
|
// reset hint when value is cleared
|
|
904
904
|
if (this.invalid) return;
|
|
905
|
-
if (
|
|
905
|
+
if (i) {
|
|
906
906
|
this.setHints({
|
|
907
907
|
isValid: true,
|
|
908
908
|
message: null,
|
|
@@ -935,12 +935,12 @@ const y = class {
|
|
|
935
935
|
return this.placeholder && s(this.placeholder) || "";
|
|
936
936
|
}
|
|
937
937
|
get currentWeeks() {
|
|
938
|
-
const e = this.dateList.reduce(((e, t,
|
|
939
|
-
const
|
|
940
|
-
if (!e[
|
|
941
|
-
e[
|
|
938
|
+
const e = this.dateList.reduce(((e, t, a) => {
|
|
939
|
+
const i = Math.floor(a / 7);
|
|
940
|
+
if (!e[i]) {
|
|
941
|
+
e[i] = [];
|
|
942
942
|
}
|
|
943
|
-
e[
|
|
943
|
+
e[i].push(t);
|
|
944
944
|
return e;
|
|
945
945
|
}), []);
|
|
946
946
|
return e;
|
|
@@ -962,8 +962,8 @@ const y = class {
|
|
|
962
962
|
const t = e && typeof e !== "string" && "toDate" in e;
|
|
963
963
|
if (t) return e.toDate();
|
|
964
964
|
// stringified moment value assigned in html template e.g.) handlebar
|
|
965
|
-
const
|
|
966
|
-
if (
|
|
965
|
+
const a = typeof e === "string" && e.split(" ").length === 6 && /GMT-\d{4}/g.test(e);
|
|
966
|
+
if (a) {
|
|
967
967
|
e = formatDateISO(e);
|
|
968
968
|
}
|
|
969
969
|
return stringToDate(e);
|
|
@@ -973,23 +973,23 @@ const y = class {
|
|
|
973
973
|
return this.typeable ? s("tecton.element.calendar.hint.format") + ": " + this.defaultFormatString : s("tecton.element.calendar.hint.select");
|
|
974
974
|
}
|
|
975
975
|
get errorList() {
|
|
976
|
-
const {errors: e, internalError: t, invalid:
|
|
977
|
-
let
|
|
976
|
+
const {errors: e, internalError: t, invalid: a} = this;
|
|
977
|
+
let i = [];
|
|
978
978
|
if (t) {
|
|
979
|
-
|
|
979
|
+
i = [ t ];
|
|
980
980
|
}
|
|
981
981
|
if (Array.isArray(e) && e.length) {
|
|
982
|
-
|
|
983
|
-
} else if (!t &&
|
|
982
|
+
i = e.filter((e => !!e)).map((e => s(e))).concat(i);
|
|
983
|
+
} else if (!t && a) {
|
|
984
984
|
return [ "tecton.element.calendar.invalid" ];
|
|
985
985
|
}
|
|
986
|
-
return
|
|
986
|
+
return i;
|
|
987
987
|
}
|
|
988
988
|
get formattedValue() {
|
|
989
|
-
const {typedValue: e, dateValue: t, displayFormat:
|
|
990
|
-
if (
|
|
989
|
+
const {typedValue: e, dateValue: t, displayFormat: a, isTypeable: i} = this;
|
|
990
|
+
if (i) return e;
|
|
991
991
|
if (t === undefined) return "";
|
|
992
|
-
if (
|
|
992
|
+
if (a) return n.format(t, convertMomentFormat(a));
|
|
993
993
|
return new Intl.DateTimeFormat("en-US", {
|
|
994
994
|
year: "numeric",
|
|
995
995
|
month: "2-digit",
|
|
@@ -998,9 +998,9 @@ const y = class {
|
|
|
998
998
|
}).format(t);
|
|
999
999
|
}
|
|
1000
1000
|
get hintList() {
|
|
1001
|
-
const {hints: e, hintMessageType: t, hintMessage:
|
|
1001
|
+
const {hints: e, hintMessageType: t, hintMessage: a} = this;
|
|
1002
1002
|
if (Array.isArray(e) && e.length) return e.filter((e => !!e)).map((e => s(e)));
|
|
1003
|
-
if (t === "info" &&
|
|
1003
|
+
if (t === "info" && a) return [ a ];
|
|
1004
1004
|
return [];
|
|
1005
1005
|
}
|
|
1006
1006
|
get innerInputContainer() {
|
|
@@ -1031,30 +1031,30 @@ const y = class {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
buildDateList(e) {
|
|
1033
1033
|
const t = stringArrayToDate(this.invalidDates);
|
|
1034
|
-
const
|
|
1035
|
-
const
|
|
1036
|
-
return buildDates(
|
|
1034
|
+
const a = getValidDaysOfWeek(this.daysOfWeekChecksum);
|
|
1035
|
+
const i = stringArrayToDate(this.validDates);
|
|
1036
|
+
return buildDates(a, i, t, e, this.dateValue, this.dateValidators, this.typedValue);
|
|
1037
1037
|
}
|
|
1038
1038
|
calendarDays() {
|
|
1039
|
-
return
|
|
1039
|
+
return a("table", {
|
|
1040
1040
|
role: "grid",
|
|
1041
1041
|
"aria-labelledby": "table-label",
|
|
1042
1042
|
ref: e => this.calendarTable = e
|
|
1043
|
-
},
|
|
1043
|
+
}, a("thead", null, a("tr", null, [ ...Array(7).keys() ].map((e => a("th", {
|
|
1044
1044
|
scope: "col",
|
|
1045
1045
|
"aria-label": this.dayStrings[e]
|
|
1046
|
-
}, this.dayAbbrStrings[e]))))),
|
|
1046
|
+
}, this.dayAbbrStrings[e]))))), a("tbody", {
|
|
1047
1047
|
onClick: this.onDateSelection,
|
|
1048
1048
|
onKeyDown: this.onDateKeydown,
|
|
1049
1049
|
ref: e => this.calendarBody = e,
|
|
1050
1050
|
"test-id": "calendarTableBody"
|
|
1051
|
-
}, this.currentWeeks.map((e =>
|
|
1051
|
+
}, this.currentWeeks.map((e => a("tr", null, e.map((e => {
|
|
1052
1052
|
var t;
|
|
1053
|
-
let
|
|
1054
|
-
if (e.isToday)
|
|
1055
|
-
|
|
1056
|
-
if (e.isSelected)
|
|
1057
|
-
return
|
|
1053
|
+
let i = "";
|
|
1054
|
+
if (e.isToday) i = `${s("tecton.element.calendar.today")}, `;
|
|
1055
|
+
i += formatDateFull(e.date);
|
|
1056
|
+
if (e.isSelected) i += ` (${s("tecton.element.calendar.selected")})`;
|
|
1057
|
+
return a("td", {
|
|
1058
1058
|
class: e.classList,
|
|
1059
1059
|
"aria-hidden": e.isEmpty ? "true" : undefined,
|
|
1060
1060
|
tabindex: e.isSelected ? 0 : -1,
|
|
@@ -1063,55 +1063,55 @@ const y = class {
|
|
|
1063
1063
|
"aria-disabled": e.isValid ? undefined : "true",
|
|
1064
1064
|
"data-day": e.integer || undefined,
|
|
1065
1065
|
"data-date": e.date ? formatDateISO(e.date) : undefined
|
|
1066
|
-
}, (e === null || e === void 0 ? void 0 : e.isToday) &&
|
|
1066
|
+
}, (e === null || e === void 0 ? void 0 : e.isToday) && a("div", {
|
|
1067
1067
|
class: "today-decorator",
|
|
1068
1068
|
"aria-hidden": "true"
|
|
1069
|
-
}, s("tecton.element.calendar.today")),
|
|
1070
|
-
"aria-label":
|
|
1069
|
+
}, s("tecton.element.calendar.today")), a("div", {
|
|
1070
|
+
"aria-label": i
|
|
1071
1071
|
}, (t = e === null || e === void 0 ? void 0 : e.integer) !== null && t !== void 0 ? t : ""));
|
|
1072
1072
|
})))))));
|
|
1073
1073
|
}
|
|
1074
1074
|
renderCalendarPopover() {
|
|
1075
1075
|
const {monthIndex: e, selectedYear: t} = this.selectedMonthYear;
|
|
1076
|
-
return
|
|
1076
|
+
return a("div", {
|
|
1077
1077
|
class: "calendar-field-popup",
|
|
1078
1078
|
onKeyUp: this.onPopupKeyup
|
|
1079
|
-
}, this.calendarLabel &&
|
|
1079
|
+
}, this.calendarLabel && a("p", {
|
|
1080
1080
|
class: "calendar-label"
|
|
1081
|
-
}, s(this.calendarLabel)),
|
|
1081
|
+
}, s(this.calendarLabel)), a("div", {
|
|
1082
1082
|
class: "cal-month-heading"
|
|
1083
|
-
},
|
|
1083
|
+
}, a("q2-btn", {
|
|
1084
1084
|
label: s("tecton.element.calendar.previousMonth"),
|
|
1085
1085
|
"hide-label": true,
|
|
1086
1086
|
ref: e => this.btnPrevMonth = e,
|
|
1087
1087
|
class: "cal-nav-btn prev-month",
|
|
1088
1088
|
"test-id": "previousMonthButton",
|
|
1089
1089
|
onClick: () => this.goToMonthYear(e - 1, t)
|
|
1090
|
-
},
|
|
1090
|
+
}, a("q2-icon", {
|
|
1091
1091
|
type: "chevron-left"
|
|
1092
|
-
})),
|
|
1092
|
+
})), a("span", {
|
|
1093
1093
|
class: "cal-month-text"
|
|
1094
|
-
}, this.monthStrings[e]),
|
|
1094
|
+
}, this.monthStrings[e]), a("q2-btn", {
|
|
1095
1095
|
label: s("tecton.element.calendar.nextMonth"),
|
|
1096
1096
|
"hide-label": true,
|
|
1097
1097
|
class: "cal-nav-btn next-month",
|
|
1098
1098
|
ref: e => this.btnNextMonth = e,
|
|
1099
1099
|
"test-id": "nextMonthButton",
|
|
1100
1100
|
onClick: () => this.goToMonthYear(e + 1, t)
|
|
1101
|
-
},
|
|
1101
|
+
}, a("q2-icon", {
|
|
1102
1102
|
type: "chevron-right"
|
|
1103
|
-
})),
|
|
1103
|
+
})), a("q2-btn", {
|
|
1104
1104
|
label: s("tecton.element.calendar.previousYear"),
|
|
1105
1105
|
"hide-label": true,
|
|
1106
1106
|
class: "cal-nav-btn prev-year",
|
|
1107
1107
|
ref: e => this.btnPrevYear = e,
|
|
1108
1108
|
"test-id": "previousYearButton",
|
|
1109
1109
|
onClick: () => this.goToMonthYear(e, t - 1)
|
|
1110
|
-
},
|
|
1110
|
+
}, a("q2-icon", {
|
|
1111
1111
|
type: "chevron-left"
|
|
1112
|
-
})),
|
|
1112
|
+
})), a("span", {
|
|
1113
1113
|
class: "cal-year-text"
|
|
1114
|
-
}, this.selectedMonthYear.selectedYear),
|
|
1114
|
+
}, this.selectedMonthYear.selectedYear), a("q2-btn", {
|
|
1115
1115
|
label: s("tecton.element.calendar.nextYear"),
|
|
1116
1116
|
"hide-label": true,
|
|
1117
1117
|
class: "cal-nav-btn next-year",
|
|
@@ -1119,15 +1119,15 @@ const y = class {
|
|
|
1119
1119
|
"test-id": "nextYearButton",
|
|
1120
1120
|
onClick: () => this.goToMonthYear(e, t + 1),
|
|
1121
1121
|
onKeyDown: this.onHeaderControlKeydown
|
|
1122
|
-
},
|
|
1122
|
+
}, a("q2-icon", {
|
|
1123
1123
|
type: "chevron-right"
|
|
1124
|
-
}))),
|
|
1124
|
+
}))), a("div", {
|
|
1125
1125
|
class: "sr",
|
|
1126
1126
|
"aria-live": "polite",
|
|
1127
1127
|
id: "table-label"
|
|
1128
|
-
}, `${this.monthStrings[e]} ${t}`), this.calendarDays(), this.disclaimer &&
|
|
1128
|
+
}, `${this.monthStrings[e]} ${t}`), this.calendarDays(), this.disclaimer && a("div", {
|
|
1129
1129
|
class: "calendar-disclaimer"
|
|
1130
|
-
}, s(this.disclaimer)),
|
|
1130
|
+
}, s(this.disclaimer)), a("q2-btn", {
|
|
1131
1131
|
class: "sr refocus-popup",
|
|
1132
1132
|
onFocus: this.onRefocus
|
|
1133
1133
|
}));
|
|
@@ -1136,9 +1136,9 @@ const y = class {
|
|
|
1136
1136
|
const e = this.hostElement.shadowRoot.activeElement;
|
|
1137
1137
|
if (!e || e.tagName !== "TD" || !e.hasAttribute("aria-hidden")) return;
|
|
1138
1138
|
const {calendarBody: t} = this;
|
|
1139
|
-
const
|
|
1140
|
-
const
|
|
1141
|
-
const n =
|
|
1139
|
+
const a = Array.from(t.querySelectorAll("td"));
|
|
1140
|
+
const i = Array.from(a).indexOf(e);
|
|
1141
|
+
const n = i < 15 ? 1 : a.filter((e => !e.hasAttribute("aria-hidden"))).length;
|
|
1142
1142
|
this.focusDay(this.generateDateFromDay(n));
|
|
1143
1143
|
}
|
|
1144
1144
|
async focusDay(e) {
|
|
@@ -1152,12 +1152,12 @@ const y = class {
|
|
|
1152
1152
|
(e = this.controlElement) === null || e === void 0 ? void 0 : e.focus();
|
|
1153
1153
|
}
|
|
1154
1154
|
generateDateFromDay(e) {
|
|
1155
|
-
const {monthIndex: t, selectedYear:
|
|
1156
|
-
return new Date(
|
|
1155
|
+
const {monthIndex: t, selectedYear: a} = this.selectedMonthYear;
|
|
1156
|
+
return new Date(a, t, e);
|
|
1157
1157
|
}
|
|
1158
1158
|
renderHintField() {
|
|
1159
1159
|
if (!this.hintMessage) return;
|
|
1160
|
-
return
|
|
1160
|
+
return a("q2-message", {
|
|
1161
1161
|
class: "calendar-hint sr",
|
|
1162
1162
|
ref: e => this.hintMessageElement = e,
|
|
1163
1163
|
type: this.hintMessageType
|
|
@@ -1165,7 +1165,7 @@ const y = class {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
renderInputField() {
|
|
1167
1167
|
const {isTypeable: e} = this;
|
|
1168
|
-
return
|
|
1168
|
+
return a("q2-input", {
|
|
1169
1169
|
ref: e => this.controlElement = e,
|
|
1170
1170
|
class: "calendar-input-field",
|
|
1171
1171
|
value: this.formattedValue,
|
|
@@ -1193,14 +1193,14 @@ const y = class {
|
|
|
1193
1193
|
"test-id": "inputAndCalendarToggle",
|
|
1194
1194
|
_role: "combobox",
|
|
1195
1195
|
_preventEntry: !e
|
|
1196
|
-
}, e &&
|
|
1196
|
+
}, e && a("q2-btn", {
|
|
1197
1197
|
ref: e => this.btnCalendarToggle = e,
|
|
1198
1198
|
slot: "input-right",
|
|
1199
1199
|
onClick: this.onInputClick,
|
|
1200
1200
|
"test-id": "calendarToggle",
|
|
1201
1201
|
label: "tecton.element.calendar.toggleAriaLabel",
|
|
1202
1202
|
"hide-label": true
|
|
1203
|
-
},
|
|
1203
|
+
}, a("q2-icon", {
|
|
1204
1204
|
type: "calendar"
|
|
1205
1205
|
})));
|
|
1206
1206
|
}
|
|
@@ -1217,13 +1217,13 @@ const y = class {
|
|
|
1217
1217
|
messageType: null
|
|
1218
1218
|
});
|
|
1219
1219
|
}
|
|
1220
|
-
setHints({isValid: e, message: t, messageType:
|
|
1221
|
-
var
|
|
1222
|
-
if (t === this.hintMessage) return (
|
|
1220
|
+
setHints({isValid: e, message: t, messageType: a}) {
|
|
1221
|
+
var i;
|
|
1222
|
+
if (t === this.hintMessage) return (i = this.hintMessageElement) === null || i === void 0 ? void 0 : i.present();
|
|
1223
1223
|
this.invalid = !e;
|
|
1224
1224
|
this.hintMessage = t;
|
|
1225
|
-
this.hintMessageType =
|
|
1226
|
-
if (
|
|
1225
|
+
this.hintMessageType = a;
|
|
1226
|
+
if (a === "error" && t) {
|
|
1227
1227
|
this.internalError = t;
|
|
1228
1228
|
this.error.emit({
|
|
1229
1229
|
errors: [ {
|
|
@@ -1234,16 +1234,16 @@ const y = class {
|
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
1236
|
validateDate() {
|
|
1237
|
-
var e, t,
|
|
1237
|
+
var e, t, a;
|
|
1238
1238
|
try {
|
|
1239
1239
|
if (!!this.value) {
|
|
1240
|
-
const {dateValue:
|
|
1241
|
-
const n = (e =
|
|
1242
|
-
const s = (t =
|
|
1240
|
+
const {dateValue: i} = this;
|
|
1241
|
+
const n = (e = i === null || i === void 0 ? void 0 : i.getMonth()) !== null && e !== void 0 ? e : undefined;
|
|
1242
|
+
const s = (t = i === null || i === void 0 ? void 0 : i.getFullYear()) !== null && t !== void 0 ? t : undefined;
|
|
1243
1243
|
const {monthIndex: r, selectedYear: o} = this.selectedMonthYear;
|
|
1244
1244
|
const d = n === r && s === o;
|
|
1245
1245
|
let l = [];
|
|
1246
|
-
if (!
|
|
1246
|
+
if (!i) {
|
|
1247
1247
|
l = [];
|
|
1248
1248
|
} else if (d) {
|
|
1249
1249
|
l = this.dateList;
|
|
@@ -1253,7 +1253,7 @@ const y = class {
|
|
|
1253
1253
|
selectedYear: s
|
|
1254
1254
|
});
|
|
1255
1255
|
}
|
|
1256
|
-
const c = (
|
|
1256
|
+
const c = (a = i === null || i === void 0 ? void 0 : i.getDate()) !== null && a !== void 0 ? a : undefined;
|
|
1257
1257
|
const h = c ? !l.find((({integer: e}) => e === c)).isValid : true;
|
|
1258
1258
|
if (h) {
|
|
1259
1259
|
this.error.emit({
|
|
@@ -1264,7 +1264,7 @@ const y = class {
|
|
|
1264
1264
|
});
|
|
1265
1265
|
} else {
|
|
1266
1266
|
this.success.emit({
|
|
1267
|
-
value: formatDateISO(
|
|
1267
|
+
value: formatDateISO(i)
|
|
1268
1268
|
});
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
@@ -1275,11 +1275,11 @@ const y = class {
|
|
|
1275
1275
|
// #endregion
|
|
1276
1276
|
// #region Render Methods
|
|
1277
1277
|
render() {
|
|
1278
|
-
return
|
|
1278
|
+
return a("click-elsewhere", {
|
|
1279
1279
|
key: "76bda9101bf99ae49ab8f04be2d5743dc6b110a8",
|
|
1280
1280
|
class: this.open ? "dropdown-open" : undefined,
|
|
1281
1281
|
onChange: this.onClickElsewhere
|
|
1282
|
-
}, this.renderInputField(),
|
|
1282
|
+
}, this.renderInputField(), a("q2-popover", {
|
|
1283
1283
|
key: "4e556602957d99a9e48127e647923f3e5719e950",
|
|
1284
1284
|
ref: e => this.popoverElement = e,
|
|
1285
1285
|
controlElement: this.innerInputContainer,
|
|
@@ -1292,7 +1292,7 @@ const y = class {
|
|
|
1292
1292
|
}, this.renderHintField(), this.renderCalendarPopover()));
|
|
1293
1293
|
}
|
|
1294
1294
|
get hostElement() {
|
|
1295
|
-
return
|
|
1295
|
+
return i(this);
|
|
1296
1296
|
}
|
|
1297
1297
|
static get watchers() {
|
|
1298
1298
|
return {
|