q2-tecton-elements 1.71.4 → 1.73.0
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 +32564 -26687
- package/dist/cjs/{charting-ClN1ldqv.js → charting-CdNTrVBe.js} +80 -0
- package/dist/cjs/click-elsewhere_3.cjs.entry.js +85 -20
- package/dist/cjs/{dataSample-BYR-wrOn.js → dataSample-B4blhlH4.js} +1 -1
- package/dist/cjs/date-picker-helpers-UYvPn98R.js +257 -0
- package/dist/cjs/{index-SpDCZABA.js → index-BqyWHpNu.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{q2-action-group_2.cjs.entry.js → q2-action-group.cjs.entry.js} +1 -89
- package/dist/cjs/q2-action-sheet.cjs.entry.js +98 -18
- package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q2-badge_2.cjs.entry.js +113 -12
- package/dist/cjs/q2-btn_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-calendar.cjs.entry.js +14 -7
- package/dist/cjs/q2-card-image.cjs.entry.js +4 -4
- 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 +20 -6
- package/dist/cjs/q2-chart-area.cjs.entry.js +38 -7
- package/dist/cjs/q2-chart-bar.cjs.entry.js +39 -8
- package/dist/cjs/q2-chart-donut.cjs.entry.js +31 -13
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +3 -3
- package/dist/cjs/q2-checkbox_2.cjs.entry.js +9 -6
- package/dist/cjs/q2-context.cjs.entry.js +6 -5
- package/dist/cjs/q2-currency.cjs.entry.js +1 -1
- package/dist/cjs/q2-data-table.cjs.entry.js +7 -7
- package/dist/cjs/q2-date-calendar.cjs.entry.js +452 -0
- package/dist/cjs/q2-date-picker_2.cjs.entry.js +968 -0
- 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 +4 -4
- package/dist/cjs/q2-editable-field.cjs.entry.js +51 -37
- package/dist/cjs/q2-example.cjs.entry.js +1 -1
- package/dist/cjs/q2-file-picker.cjs.entry.js +60 -4
- package/dist/cjs/q2-form.cjs.entry.js +1 -1
- package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/q2-icon.cjs.entry.js +1 -1
- package/dist/cjs/q2-item.cjs.entry.js +21 -3
- package/dist/cjs/q2-legend.cjs.entry.js +1 -1
- package/dist/cjs/q2-link_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-loc.cjs.entry.js +1 -1
- package/dist/cjs/q2-message.cjs.entry.js +3 -3
- package/dist/cjs/q2-meter.cjs.entry.js +2 -2
- package/dist/cjs/q2-modal.cjs.entry.js +59 -17
- package/dist/cjs/q2-month-picker.cjs.entry.js +3 -3
- package/dist/cjs/q2-mutation-observer.cjs.entry.js +1 -1
- package/dist/cjs/q2-option.cjs.entry.js +1 -1
- package/dist/cjs/q2-otp.cjs.entry.js +5 -5
- package/dist/cjs/q2-pagination.cjs.entry.js +4 -4
- package/dist/cjs/q2-pill.cjs.entry.js +8 -5
- package/dist/cjs/q2-radio-group.cjs.entry.js +22 -4
- package/dist/cjs/q2-radio.cjs.entry.js +3 -3
- package/dist/cjs/q2-relative-time.cjs.entry.js +3 -3
- package/dist/cjs/q2-resize-observer.cjs.entry.js +92 -0
- package/dist/cjs/q2-search.cjs.entry.js +4 -4
- package/dist/cjs/q2-section.cjs.entry.js +7 -7
- package/dist/cjs/q2-select.cjs.entry.js +41 -21
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +2 -2
- 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-surface.cjs.entry.js +1 -1
- package/dist/cjs/q2-tab-container.cjs.entry.js +2 -2
- package/dist/cjs/q2-tab-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +2 -2
- package/dist/cjs/q2-toast.cjs.entry.js +1 -1
- package/dist/cjs/q2-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/{sectorHelper-9TWL-3dw.js → sectorHelper-CxhDl5ql.js} +1 -1
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +5 -3
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.css +52 -0
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +98 -18
- package/dist/collection/components/q2-action-sheet/test/q2-action-sheet-test.vr.js +124 -0
- package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
- package/dist/collection/components/q2-btn/q2-btn.css +152 -146
- package/dist/collection/components/q2-btn/q2-btn.js +10 -4
- package/dist/collection/components/q2-btn/test/q2-btn-test.vr.js +229 -20
- package/dist/collection/components/q2-calendar/q2-calendar.css +3 -0
- package/dist/collection/components/q2-calendar/q2-calendar.js +20 -7
- package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
- package/dist/collection/components/q2-calendar/test/q2-calendar-test.vr.js +26 -15
- package/dist/collection/components/q2-card/test/q2-card-test.vr.js +4 -0
- package/dist/collection/components/q2-card-image/q2-card-image.css +89 -134
- package/dist/collection/components/q2-card-image/q2-card-image.js +4 -4
- package/dist/collection/components/q2-card-image/test/q2-card-image-test.vr.js +4 -0
- package/dist/collection/components/q2-carousel/q2-carousel.js +19 -5
- package/dist/collection/components/q2-carousel/test/q2-carousel-test.vr.js +45 -0
- package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
- package/dist/collection/components/q2-chart-area/q2-chart-area.css +11 -0
- package/dist/collection/components/q2-chart-area/q2-chart-area.js +53 -7
- package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.vr.js +14 -0
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.css +11 -0
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +50 -4
- package/dist/collection/components/q2-chart-bar/test/q2-chart-bar-test.vr.js +14 -0
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +30 -10
- package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.vr.js +25 -0
- package/dist/collection/components/q2-checkbox/q2-checkbox.css +2 -2
- package/dist/collection/components/q2-checkbox/q2-checkbox.js +6 -3
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.css +2 -0
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js +6 -3
- package/dist/collection/components/q2-context/q2-context.css +5 -0
- package/dist/collection/components/q2-context/q2-context.js +4 -3
- package/dist/collection/components/q2-context/test/q2-context-test.vr.js +14 -4
- package/dist/collection/components/q2-currency/q2-currency.js +1 -1
- package/dist/collection/components/q2-data-table/q2-data-table.css +6 -0
- package/dist/collection/components/q2-data-table/q2-data-table.js +5 -5
- package/dist/collection/components/q2-data-table/test/q2-data-table-test.vr.js +52 -0
- package/dist/collection/components/q2-date-calendar/q2-date-calendar.css +393 -0
- package/dist/collection/components/q2-date-calendar/q2-date-calendar.js +1022 -0
- package/dist/collection/components/q2-date-calendar/test/q2-date-calendar-test.vr.js +111 -0
- package/dist/collection/components/q2-date-picker/q2-date-picker.css +138 -0
- package/dist/collection/components/q2-date-picker/q2-date-picker.js +2010 -0
- package/dist/collection/components/q2-date-picker/test/q2-date-picker-test.vr.js +179 -0
- package/dist/collection/components/q2-detail/q2-detail.js +1 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.css +2 -0
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +5 -5
- package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.vr.js +30 -0
- package/dist/collection/components/q2-editable-field/q2-editable-field.css +2 -0
- package/dist/collection/components/q2-editable-field/q2-editable-field.js +59 -45
- package/dist/collection/components/q2-example/q2-example.js +1 -1
- package/dist/collection/components/q2-file-picker/q2-file-picker.css +27 -0
- package/dist/collection/components/q2-file-picker/q2-file-picker.js +98 -2
- package/dist/collection/components/q2-file-picker/test/q2-file-picker-test.vr.js +22 -0
- package/dist/collection/components/q2-form/q2-form.js +1 -1
- package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
- package/dist/collection/components/q2-input/q2-input.css +67 -1
- package/dist/collection/components/q2-input/q2-input.js +160 -15
- package/dist/collection/components/q2-input/test/q2-input-test.vr.js +35 -0
- package/dist/collection/components/q2-item/q2-item.css +3 -1
- package/dist/collection/components/q2-item/q2-item.js +19 -1
- package/dist/collection/components/q2-item/test/q2-item-test.vr.js +8 -2
- package/dist/collection/components/q2-legend/q2-legend.js +1 -1
- package/dist/collection/components/q2-list/q2-list.js +1 -1
- package/dist/collection/components/q2-message/q2-message.css +5 -5
- package/dist/collection/components/q2-message/q2-message.js +1 -1
- package/dist/collection/components/q2-meter/q2-meter.js +1 -1
- package/dist/collection/components/q2-modal/q2-modal.css +40 -3
- package/dist/collection/components/q2-modal/q2-modal.js +100 -16
- package/dist/collection/components/q2-modal/test/q2-modal-test.vr.js +32 -7
- package/dist/collection/components/q2-mutation-observer/q2-mutation-observer.js +1 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
- package/dist/collection/components/q2-option-list/q2-option-list.js +33 -4
- package/dist/collection/components/q2-otp/q2-otp.js +4 -4
- package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
- package/dist/collection/components/q2-pill/q2-pill.css +2 -2
- package/dist/collection/components/q2-pill/q2-pill.js +6 -3
- package/dist/collection/components/q2-popover/q2-popover.css +4 -2
- package/dist/collection/components/q2-popover/q2-popover.js +50 -14
- package/dist/collection/components/q2-radio/q2-radio.css +158 -104
- package/dist/collection/components/q2-radio/q2-radio.js +5 -2
- package/dist/collection/components/q2-radio/test/q2-radio-test.vr.js +25 -2
- package/dist/collection/components/q2-radio-group/q2-radio-group.css +39 -2
- package/dist/collection/components/q2-radio-group/q2-radio-group.js +73 -4
- package/dist/collection/components/q2-radio-group/test/q2-radio-group-test.vr.js +43 -1
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +2 -2
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
- package/dist/collection/components/q2-search/q2-search.css +2 -0
- package/dist/collection/components/q2-search/q2-search.js +6 -3
- package/dist/collection/components/q2-section/q2-section.css +2 -0
- package/dist/collection/components/q2-section/q2-section.js +6 -6
- package/dist/collection/components/q2-select/q2-select.css +3 -0
- package/dist/collection/components/q2-select/q2-select.js +48 -22
- package/dist/collection/components/q2-select/test/q2-select-test.vr.js +13 -0
- package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
- package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +1 -1
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
- package/dist/collection/components/q2-surface/q2-surface.js +1 -1
- package/dist/collection/components/q2-surface/test/q2-surface-test.vr.js +2 -2
- package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
- package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
- package/dist/collection/components/q2-tag/q2-tag.js +6 -3
- package/dist/collection/components/q2-textarea/q2-textarea.js +6 -3
- package/dist/collection/components/q2-tooltip/test/q2-tooltip-test.vr.js +1 -1
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +5 -3
- package/dist/collection/utils/chart-keyboard.js +76 -0
- package/dist/collection/utils/date-picker/date-picker-helpers.js +239 -0
- package/dist/collection/utils/date-picker/date-picker-types.js +1 -0
- package/dist/collection/utils/index.js +2 -2
- package/dist/collection/utils/test/vr-helpers.js +16 -2
- package/dist/components/charting.js +1603 -1532
- package/dist/components/dataSample.js +7 -7
- package/dist/components/index.js +57 -53
- package/dist/components/index2.js +3 -3
- package/dist/components/q2-action-sheet.js +224 -103
- package/dist/components/q2-avatar2.js +8 -8
- package/dist/components/q2-btn2.js +2 -2
- package/dist/components/q2-calendar.js +15 -10
- package/dist/components/q2-card-image.js +24 -24
- package/dist/components/q2-carousel-pane2.js +3 -3
- package/dist/components/q2-carousel.js +37 -24
- package/dist/components/q2-chart-area.js +415 -369
- package/dist/components/q2-chart-bar.js +193 -148
- package/dist/components/q2-chart-donut.js +185 -158
- package/dist/components/q2-checkbox-group.js +12 -12
- package/dist/components/q2-checkbox2.js +12 -12
- package/dist/components/q2-context.js +30 -29
- package/dist/components/q2-currency.js +9 -9
- package/dist/components/q2-data-table.js +111 -111
- package/dist/components/q2-date-calendar.d.ts +11 -0
- package/dist/components/q2-date-calendar.js +5 -0
- package/dist/components/q2-date-calendar2.js +678 -0
- package/dist/components/q2-date-picker.d.ts +11 -0
- package/dist/components/q2-date-picker.js +5 -0
- package/dist/components/q2-date-picker2.js +875 -0
- package/dist/components/q2-detail.js +3 -3
- package/dist/components/q2-dropdown.js +13 -13
- package/dist/components/q2-editable-field.js +45 -36
- package/dist/components/q2-example.js +11 -11
- package/dist/components/q2-file-picker.js +71 -11
- package/dist/components/q2-form.js +6 -6
- package/dist/components/q2-formatted-text.js +2 -2
- package/dist/components/q2-input2.js +268 -163
- package/dist/components/q2-item2.js +33 -23
- package/dist/components/q2-legend2.js +7 -7
- package/dist/components/q2-list2.js +6 -6
- package/dist/components/q2-message2.js +29 -29
- package/dist/components/q2-meter.js +7 -7
- package/dist/components/q2-modal.js +94 -76
- package/dist/components/q2-month-picker.js +17 -17
- package/dist/components/q2-mutation-observer.js +1 -1
- package/dist/components/q2-optgroup2.js +7 -7
- package/dist/components/q2-option-list2.js +52 -32
- package/dist/components/q2-otp.js +8 -8
- package/dist/components/q2-pagination.js +67 -67
- package/dist/components/q2-pill.js +17 -15
- package/dist/components/q2-popover2.js +77 -53
- package/dist/components/q2-radio-group.js +70 -40
- package/dist/components/q2-radio.js +40 -55
- package/dist/components/q2-relative-time.js +5 -5
- package/dist/components/q2-resize-observer2.js +23 -23
- package/dist/components/q2-search.js +6 -6
- package/dist/components/q2-section.js +33 -33
- package/dist/components/q2-select2.js +47 -40
- package/dist/components/q2-stepper-pane.js +17 -13
- package/dist/components/q2-stepper-vertical.js +4 -4
- package/dist/components/q2-stepper.js +57 -57
- package/dist/components/q2-surface.js +3 -3
- package/dist/components/q2-tab-container.js +18 -18
- package/dist/components/q2-tab-pane.js +2 -2
- package/dist/components/q2-tag2.js +8 -6
- package/dist/components/q2-textarea.js +3 -3
- package/dist/components/sectorHelper.js +78 -78
- package/dist/components/tecton-tab-pane.js +12 -11
- package/dist/esm/{charting-DOZct-UB.js → charting-DFXJklqs.js} +79 -1
- package/dist/esm/click-elsewhere_3.entry.js +85 -20
- package/dist/esm/{dataSample-Dm1zpQNi.js → dataSample-CP_VKNqt.js} +1 -1
- package/dist/esm/date-picker-helpers-D8QnN_AS.js +242 -0
- package/dist/esm/{index-Cps4jSQM.js → index-CP8pXJ-l.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{q2-action-group_2.entry.js → q2-action-group.entry.js} +3 -90
- package/dist/esm/q2-action-sheet.entry.js +99 -19
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/q2-badge_2.entry.js +113 -12
- package/dist/esm/q2-btn_2.entry.js +2 -2
- package/dist/esm/q2-calendar.entry.js +14 -7
- package/dist/esm/q2-card-image.entry.js +4 -4
- 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 +20 -6
- package/dist/esm/q2-chart-area.entry.js +38 -7
- package/dist/esm/q2-chart-bar.entry.js +39 -8
- package/dist/esm/q2-chart-donut.entry.js +31 -13
- package/dist/esm/q2-checkbox-group.entry.js +3 -3
- package/dist/esm/q2-checkbox_2.entry.js +9 -6
- package/dist/esm/q2-context.entry.js +6 -5
- package/dist/esm/q2-currency.entry.js +1 -1
- package/dist/esm/q2-data-table.entry.js +7 -7
- package/dist/esm/q2-date-calendar.entry.js +450 -0
- package/dist/esm/q2-date-picker_2.entry.js +965 -0
- 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 +4 -4
- package/dist/esm/q2-editable-field.entry.js +51 -37
- package/dist/esm/q2-example.entry.js +1 -1
- package/dist/esm/q2-file-picker.entry.js +60 -4
- package/dist/esm/q2-form.entry.js +1 -1
- package/dist/esm/q2-formatted-text.entry.js +1 -1
- package/dist/esm/q2-icon.entry.js +1 -1
- package/dist/esm/q2-item.entry.js +21 -3
- package/dist/esm/q2-legend.entry.js +1 -1
- package/dist/esm/q2-link_2.entry.js +2 -2
- package/dist/esm/q2-loc.entry.js +1 -1
- package/dist/esm/q2-message.entry.js +3 -3
- package/dist/esm/q2-meter.entry.js +2 -2
- package/dist/esm/q2-modal.entry.js +59 -17
- package/dist/esm/q2-month-picker.entry.js +3 -3
- package/dist/esm/q2-mutation-observer.entry.js +1 -1
- package/dist/esm/q2-option.entry.js +1 -1
- package/dist/esm/q2-otp.entry.js +5 -5
- package/dist/esm/q2-pagination.entry.js +4 -4
- package/dist/esm/q2-pill.entry.js +8 -5
- package/dist/esm/q2-radio-group.entry.js +22 -4
- package/dist/esm/q2-radio.entry.js +3 -3
- package/dist/esm/q2-relative-time.entry.js +3 -3
- package/dist/esm/q2-resize-observer.entry.js +90 -0
- package/dist/esm/q2-search.entry.js +4 -4
- package/dist/esm/q2-section.entry.js +7 -7
- package/dist/esm/q2-select.entry.js +41 -21
- package/dist/esm/q2-stepper-pane.entry.js +2 -2
- package/dist/esm/q2-stepper-vertical.entry.js +2 -2
- package/dist/esm/q2-stepper.entry.js +2 -2
- package/dist/esm/q2-surface.entry.js +1 -1
- package/dist/esm/q2-tab-container.entry.js +2 -2
- package/dist/esm/q2-tab-pane.entry.js +1 -1
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +2 -2
- package/dist/esm/q2-toast.entry.js +1 -1
- package/dist/esm/q2-tooltip.entry.js +1 -1
- package/dist/esm/{sectorHelper--RMGWGAy.js → sectorHelper-DBtkWtpl.js} +1 -1
- package/dist/esm/tecton-tab-pane.entry.js +5 -3
- package/dist/q2-tecton-elements/{charting-DOZct-UB.js → charting-DFXJklqs.js} +1625 -1554
- package/dist/q2-tecton-elements/click-elsewhere_3.entry.js +98 -54
- package/dist/q2-tecton-elements/{dataSample-Dm1zpQNi.js → dataSample-CP_VKNqt.js} +33 -33
- package/dist/q2-tecton-elements/date-picker-helpers-D8QnN_AS.js +153 -0
- package/dist/q2-tecton-elements/{index-Cps4jSQM.js → index-CP8pXJ-l.js} +2 -2
- package/dist/q2-tecton-elements/{q2-action-group_2.entry.js → q2-action-group.entry.js} +35 -113
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +169 -84
- package/dist/q2-tecton-elements/q2-avatar.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-badge_2.entry.js +240 -140
- package/dist/q2-tecton-elements/q2-btn_2.entry.js +23 -23
- package/dist/q2-tecton-elements/q2-calendar.entry.js +18 -13
- package/dist/q2-tecton-elements/q2-card-image.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-card.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-carousel.entry.js +24 -11
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +190 -144
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +382 -338
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +186 -160
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-checkbox_2.entry.js +21 -19
- package/dist/q2-tecton-elements/q2-context.entry.js +18 -17
- package/dist/q2-tecton-elements/q2-currency.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-data-table.entry.js +38 -38
- package/dist/q2-tecton-elements/q2-date-calendar.entry.js +438 -0
- package/dist/q2-tecton-elements/q2-date-picker_2.entry.js +792 -0
- package/dist/q2-tecton-elements/q2-detail.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +10 -10
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +50 -41
- package/dist/q2-tecton-elements/q2-example.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-file-picker.entry.js +62 -7
- package/dist/q2-tecton-elements/q2-form.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-icon.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-item.entry.js +27 -17
- package/dist/q2-tecton-elements/q2-legend.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-link_2.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-loc.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-message.entry.js +30 -30
- package/dist/q2-tecton-elements/q2-meter.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-modal.entry.js +61 -45
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +14 -14
- package/dist/q2-tecton-elements/q2-mutation-observer.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-option.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-otp.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-pagination.entry.js +20 -20
- package/dist/q2-tecton-elements/q2-pill.entry.js +43 -41
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +55 -34
- package/dist/q2-tecton-elements/q2-radio.entry.js +38 -53
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js +81 -0
- package/dist/q2-tecton-elements/q2-search.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-section.entry.js +25 -25
- package/dist/q2-tecton-elements/q2-select.entry.js +28 -21
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +19 -15
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-stepper.entry.js +45 -45
- package/dist/q2-tecton-elements/q2-surface.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-tab-container.entry.js +15 -15
- package/dist/q2-tecton-elements/q2-tab-pane.entry.js +9 -9
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/q2-tecton-elements/q2-textarea.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-toast.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-tooltip.entry.js +1 -1
- package/dist/q2-tecton-elements/{sectorHelper--RMGWGAy.js → sectorHelper-DBtkWtpl.js} +56 -56
- package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +8 -7
- package/dist/types/components/q2-action-sheet/q2-action-sheet.d.ts +21 -1
- package/dist/types/components/q2-action-sheet/test/q2-action-sheet-test.vr.d.ts +1 -0
- package/dist/types/components/q2-btn/q2-btn.d.ts +7 -3
- package/dist/types/components/q2-calendar/q2-calendar.d.ts +10 -2
- package/dist/types/components/q2-card-image/q2-card-image.d.ts +1 -1
- package/dist/types/components/q2-carousel/q2-carousel.d.ts +5 -0
- package/dist/types/components/q2-chart-area/q2-chart-area.d.ts +11 -2
- package/dist/types/components/q2-chart-bar/q2-chart-bar.d.ts +9 -0
- package/dist/types/components/q2-chart-donut/q2-chart-donut.d.ts +1 -0
- package/dist/types/components/q2-checkbox/q2-checkbox.d.ts +4 -3
- package/dist/types/components/q2-checkbox-group/q2-checkbox-group.d.ts +4 -2
- package/dist/types/components/q2-date-calendar/q2-date-calendar.d.ts +122 -0
- package/dist/types/components/q2-date-calendar/test/q2-date-calendar-test.vr.d.ts +1 -0
- package/dist/types/components/q2-date-picker/q2-date-picker.d.ts +304 -0
- package/dist/types/components/q2-date-picker/test/q2-date-picker-test.vr.d.ts +1 -0
- package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +3 -3
- package/dist/types/components/q2-dropdown/test/q2-dropdown-test.vr.d.ts +1 -0
- package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +20 -2
- package/dist/types/components/q2-file-picker/q2-file-picker.d.ts +20 -0
- package/dist/types/components/q2-input/q2-input.d.ts +32 -4
- package/dist/types/components/q2-item/q2-item.d.ts +3 -0
- package/dist/types/components/q2-modal/q2-modal.d.ts +10 -1
- package/dist/types/components/q2-option-list/q2-option-list.d.ts +1 -0
- package/dist/types/components/q2-popover/q2-popover.d.ts +4 -0
- package/dist/types/components/q2-radio/q2-radio.d.ts +3 -2
- package/dist/types/components/q2-radio-group/q2-radio-group.d.ts +18 -2
- package/dist/types/components/q2-search/q2-search.d.ts +3 -1
- package/dist/types/components/q2-select/q2-select.d.ts +12 -4
- package/dist/types/components/q2-textarea/q2-textarea.d.ts +4 -2
- package/dist/types/components.d.ts +1112 -195
- package/dist/types/global.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/chart-keyboard.d.ts +16 -0
- package/dist/types/utils/date-picker/date-picker-helpers.d.ts +47 -0
- package/dist/types/utils/date-picker/date-picker-types.d.ts +42 -0
- package/dist/types/utils/test/vr-helpers.d.ts +2 -0
- package/package.json +3 -3
- package/dist/cjs/q2-optgroup.cjs.entry.js +0 -70
- package/dist/esm/q2-optgroup.entry.js +0 -68
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +0 -88
|
@@ -76,16 +76,16 @@ const r = t(class extends e {
|
|
|
76
76
|
// #region Render Methods
|
|
77
77
|
render() {
|
|
78
78
|
return i("div", {
|
|
79
|
-
key: "
|
|
79
|
+
key: "18da4ca97fe076c40a3d6ef95b73b570cee07649",
|
|
80
80
|
class: this.detailClasses
|
|
81
81
|
}, this.hasLabel && i("div", {
|
|
82
|
-
key: "
|
|
82
|
+
key: "7b88ffdd3e42abb1313d729874d198642a83e66d",
|
|
83
83
|
class: this.labelClasses,
|
|
84
84
|
"aria-describedby": this.description ? "label-description" : void 0
|
|
85
85
|
}, this.label ? o(this.label) : this.hasLabelSlotContent ? i("slot", {
|
|
86
86
|
name: "label"
|
|
87
87
|
}) : ""), this.hasDescripiton && i("div", {
|
|
88
|
-
key: "
|
|
88
|
+
key: "9eecdbf3aa2519da9508f1c210d3b3a9129824ce",
|
|
89
89
|
id: "label-description",
|
|
90
90
|
class: this.descriptionClasses
|
|
91
91
|
}, this.description ? o(this.description) : this.hasDefaultSlotContent ? i("slot", null) : ""));
|
|
@@ -12,9 +12,9 @@ import { d as v } from "./q2-dropdown-item2.js";
|
|
|
12
12
|
|
|
13
13
|
import { d as b } from "./q2-icon2.js";
|
|
14
14
|
|
|
15
|
-
import { d as
|
|
15
|
+
import { d as w } from "./q2-loading2.js";
|
|
16
16
|
|
|
17
|
-
import { d as
|
|
17
|
+
import { d as f } from "./q2-option-list2.js";
|
|
18
18
|
|
|
19
19
|
import { d as g } from "./q2-popover2.js";
|
|
20
20
|
|
|
@@ -188,7 +188,7 @@ const y = t(class extends e {
|
|
|
188
188
|
get toggleButtonProps() {
|
|
189
189
|
const t = [ "primary", "secondary", "neutral" ], e = [ "icon", "fab", "custom", ...t ].includes(this.type) ? this.type : "", o = "icon" === e, i = "fab" === e, n = "custom" === e;
|
|
190
190
|
let s;
|
|
191
|
-
t.includes(e) && (s =
|
|
191
|
+
t.includes(e) && (s = e);
|
|
192
192
|
return {
|
|
193
193
|
icon: o,
|
|
194
194
|
fab: i,
|
|
@@ -264,12 +264,12 @@ const y = t(class extends e {
|
|
|
264
264
|
render() {
|
|
265
265
|
const t = this.toggleButtonProps;
|
|
266
266
|
return o("click-elsewhere", {
|
|
267
|
-
key: "
|
|
267
|
+
key: "45129d88765c097736a818c203418921bc669d2f",
|
|
268
268
|
class: this.open ? "dropdown-open" : "",
|
|
269
269
|
onChange: this.onClickElsewhere,
|
|
270
270
|
"test-id": "dropdownContainer"
|
|
271
271
|
}, o("q2-btn", {
|
|
272
|
-
key: "
|
|
272
|
+
key: "cb76fe56a37af0909e06f267969c0f6605be318d",
|
|
273
273
|
tabIndex: 0,
|
|
274
274
|
ref: t => this.controlElement = t,
|
|
275
275
|
class: t.className,
|
|
@@ -297,7 +297,7 @@ const y = t(class extends e {
|
|
|
297
297
|
}, c(this.label)), this.icon ? o("q2-icon", {
|
|
298
298
|
type: this.icon
|
|
299
299
|
}) : " ")), o("q2-popover", {
|
|
300
|
-
key: "
|
|
300
|
+
key: "73bb8792c03313ae6074299d431d913435e95707",
|
|
301
301
|
ref: t => this.popoverElement = t,
|
|
302
302
|
controlElement: this.controlElement,
|
|
303
303
|
open: this.open,
|
|
@@ -309,10 +309,10 @@ const y = t(class extends e {
|
|
|
309
309
|
mode: this.popoverMode || void 0,
|
|
310
310
|
block: this.block
|
|
311
311
|
}, o("slot", {
|
|
312
|
-
key: "
|
|
312
|
+
key: "05fa5e37195ce747ac4e801e1decf55838d9c752",
|
|
313
313
|
name: "popover-top"
|
|
314
314
|
}), o("q2-option-list", {
|
|
315
|
-
key: "
|
|
315
|
+
key: "534b2dfaf2616937933aa2377d1a647688c679c9",
|
|
316
316
|
onPopoverState: this.onPopoverState,
|
|
317
317
|
id: "option-list",
|
|
318
318
|
ref: t => this.optionList = t,
|
|
@@ -320,9 +320,9 @@ const y = t(class extends e {
|
|
|
320
320
|
label: c("tecton.element.optionList.label", [ this.optionListLabel ]),
|
|
321
321
|
"no-select": !0
|
|
322
322
|
}, o("slot", {
|
|
323
|
-
key: "
|
|
323
|
+
key: "686b6b14ebc67aad7707e6dc0c0170b117afde4e"
|
|
324
324
|
})), o("slot", {
|
|
325
|
-
key: "
|
|
325
|
+
key: "43b916294d33ac547efc6eeed2b2fc1c87085ad3",
|
|
326
326
|
name: "popover-bottom"
|
|
327
327
|
})));
|
|
328
328
|
}
|
|
@@ -358,7 +358,7 @@ const y = t(class extends e {
|
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
360
|
static get style() {
|
|
361
|
-
return '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{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}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{display:inline-flex}:host([block]){display:block}:host([full-width]:not([full-width=false])){display:inline-flex;justify-content:center;width:100%}::slotted([slot=popover-top]){padding:var(--tct-dropdown-popover-top-slot-padding, 0);border-bottom:var(--tct-dropdown-slot-border-top)}::slotted([slot=popover-bottom]){padding:var(--tct-dropdown-popover-bottom-slot-padding, 0);border-top:var(--tct-dropdown-slot-border-bottom)}q2-icon{pointer-events:none;margin-block:-100px}click-elsewhere{position:relative;display:block}q2-popover{--tct-popover-min-width:var(--tct-dropdown-width, var(--t-dropdown-width));--tct-popover-padding:var(--tct-dropdown-content-padding)}';
|
|
361
|
+
return '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{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}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{display:inline-flex}:host([block]){display:block}:host([full-width]:not([full-width=false])){display:inline-flex;justify-content:center;width:100%}::slotted([slot=popover-top]){padding:var(--tct-dropdown-popover-top-slot-padding, 0);border-bottom:var(--tct-dropdown-slot-border-top)}::slotted([slot=popover-bottom]){padding:var(--tct-dropdown-popover-bottom-slot-padding, 0);border-top:var(--tct-dropdown-slot-border-bottom)}q2-icon{pointer-events:none;margin-block:-100px;--tct-icon-size:var(--tct-dropdown-icon-size, var(--const-px-18, 18px))}click-elsewhere{position:relative;display:block}q2-popover{--tct-popover-min-width:var(--tct-dropdown-width, var(--t-dropdown-width));--tct-popover-padding:var(--tct-dropdown-content-padding)}';
|
|
362
362
|
}
|
|
363
363
|
}, [ 257, "q2-dropdown", {
|
|
364
364
|
additionalContext: [ 513, "additional-context" ],
|
|
@@ -441,11 +441,11 @@ const x = y, defineCustomElement = function() {
|
|
|
441
441
|
break;
|
|
442
442
|
|
|
443
443
|
case "q2-loading":
|
|
444
|
-
customElements.get(n(t)) ||
|
|
444
|
+
customElements.get(n(t)) || w();
|
|
445
445
|
break;
|
|
446
446
|
|
|
447
447
|
case "q2-option-list":
|
|
448
|
-
customElements.get(n(t)) ||
|
|
448
|
+
customElements.get(n(t)) || f();
|
|
449
449
|
break;
|
|
450
450
|
|
|
451
451
|
case "q2-popover":
|
|
@@ -10,9 +10,9 @@ import { d as p } from "./q2-btn2.js";
|
|
|
10
10
|
|
|
11
11
|
import { d as b } from "./q2-icon2.js";
|
|
12
12
|
|
|
13
|
-
import { d as
|
|
13
|
+
import { d as u } from "./q2-input2.js";
|
|
14
14
|
|
|
15
|
-
import { d as
|
|
15
|
+
import { d as m } from "./q2-loading2.js";
|
|
16
16
|
|
|
17
17
|
const f = t(class extends e {
|
|
18
18
|
constructor(t) {
|
|
@@ -24,21 +24,30 @@ const f = t(class extends e {
|
|
|
24
24
|
/**
|
|
25
25
|
* The visible descriptor for the element.
|
|
26
26
|
* Serves as the input label while in the edit state and as a decorative label for the read state when `persistentLabel` is `true`.
|
|
27
|
+
* @warning
|
|
28
|
+
* Required for screen reader compliance even when `hideLabel` is `true`.
|
|
27
29
|
* @localizable
|
|
28
30
|
*/
|
|
29
31
|
this.label = "",
|
|
30
32
|
/** Serves as the visible text while in the read state, and the default value of the input while in the edit state. */
|
|
31
33
|
this.value = "", this.cancelClick = t => {
|
|
32
|
-
null == t || t.stopPropagation()
|
|
34
|
+
null == t || t.stopPropagation();
|
|
35
|
+
const e = this.emitChangeEvents({
|
|
33
36
|
editing: !1,
|
|
34
37
|
name: "cancel"
|
|
35
|
-
})
|
|
36
|
-
|
|
38
|
+
});
|
|
39
|
+
queueMicrotask((() => {
|
|
40
|
+
this.isDefaultPrevented(e) || (this.editing = !1);
|
|
41
|
+
}));
|
|
37
42
|
}, this.editClick = t => {
|
|
38
|
-
null == t || t.stopPropagation()
|
|
43
|
+
null == t || t.stopPropagation();
|
|
44
|
+
const e = this.emitChangeEvents({
|
|
39
45
|
editing: !0,
|
|
40
46
|
name: "edit"
|
|
41
47
|
});
|
|
48
|
+
queueMicrotask((() => {
|
|
49
|
+
this.isDefaultPrevented(e) || (this.editing = !0);
|
|
50
|
+
}));
|
|
42
51
|
}, this.inputChange = t => {
|
|
43
52
|
t.stopPropagation();
|
|
44
53
|
}, this.inputClick = t => {
|
|
@@ -50,13 +59,16 @@ const f = t(class extends e {
|
|
|
50
59
|
void this.cancelClick()) : "Enter" === t.key ? (t.preventDefault(), void this.saveClick()) : void 0,
|
|
51
60
|
this.saveClick = t => {
|
|
52
61
|
t && t.stopPropagation();
|
|
53
|
-
const e = this.hostElement.shadowRoot.querySelector("q2-input").value
|
|
54
|
-
h(this, [ "change", "tctChange" ], {
|
|
62
|
+
const e = this.hostElement.shadowRoot.querySelector("q2-input").value, i = this.innerValue || e, s = this.formattedValue || e, a = this.emitChangeEvents({
|
|
55
63
|
editing: !1,
|
|
56
64
|
name: "save",
|
|
57
|
-
value:
|
|
58
|
-
formattedValue:
|
|
65
|
+
value: i,
|
|
66
|
+
formattedValue: s
|
|
59
67
|
});
|
|
68
|
+
queueMicrotask((() => {
|
|
69
|
+
this.isDefaultPrevented(a) || (this.hasErrors ? this.inputElement.focus() : (this.value = i,
|
|
70
|
+
this.editing = !1));
|
|
71
|
+
}));
|
|
60
72
|
};
|
|
61
73
|
}
|
|
62
74
|
// #endregion
|
|
@@ -72,26 +84,6 @@ const f = t(class extends e {
|
|
|
72
84
|
}
|
|
73
85
|
// #endregion
|
|
74
86
|
// #region Listeners
|
|
75
|
-
onHostElementChange(t) {
|
|
76
|
-
o(t, this.hostElement) && !this.hostElement.onchange && queueMicrotask((() => {
|
|
77
|
-
switch (t.detail.name) {
|
|
78
|
-
case "save":
|
|
79
|
-
if (this.hasErrors) {
|
|
80
|
-
this.inputElement.focus();
|
|
81
|
-
break;
|
|
82
|
-
}
|
|
83
|
-
this.value = t.detail.value, this.editing = t.detail.editing;
|
|
84
|
-
break;
|
|
85
|
-
|
|
86
|
-
case "cancel":
|
|
87
|
-
this.inputElement.value = this.value, this.editing = t.detail.editing;
|
|
88
|
-
break;
|
|
89
|
-
|
|
90
|
-
case "edit":
|
|
91
|
-
this.editing = t.detail.editing;
|
|
92
|
-
}
|
|
93
|
-
}));
|
|
94
|
-
}
|
|
95
87
|
delegateFocus(t) {
|
|
96
88
|
o(t, this.hostElement) && this.hostElement.shadowRoot.querySelector(this.editing ? "q2-input" : "q2-btn.begin-edit").focus();
|
|
97
89
|
}
|
|
@@ -144,7 +136,7 @@ const f = t(class extends e {
|
|
|
144
136
|
n(this);
|
|
145
137
|
}
|
|
146
138
|
observesEditing(t, e) {
|
|
147
|
-
t !== e && this.scheduledAfterRender.push(this.hostElement.focus);
|
|
139
|
+
t !== e && (t || this.discardDraft(), this.scheduledAfterRender.push(this.hostElement.focus));
|
|
148
140
|
}
|
|
149
141
|
errorsObserver() {
|
|
150
142
|
const {editing: t, hasErrors: e} = this, i = this.hostElement.shadowRoot.activeElement;
|
|
@@ -167,6 +159,20 @@ const f = t(class extends e {
|
|
|
167
159
|
get wrapperClass() {
|
|
168
160
|
return "q2-editable-field-wrapper " + (this.editing ? "editing" : "");
|
|
169
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* Drops the in-progress draft and re-syncs the input and the read state display from `value`.
|
|
164
|
+
*
|
|
165
|
+
* Runs whenever the field leaves the edit state, including when a consumer drives `editing` itself, so the
|
|
166
|
+
* read state never renders a discarded draft.
|
|
167
|
+
*/ discardDraft() {
|
|
168
|
+
this.innerValue = void 0, this.formattedValue = void 0,
|
|
169
|
+
// `q2-input` only drops its own draft when its `value` prop actually changes, so bounce through a
|
|
170
|
+
// throwaway value that is guaranteed to differ from `value` before restoring it.
|
|
171
|
+
this.inputElement.value = "" === this.value ? " " : "", this.inputElement.value = this.value;
|
|
172
|
+
}
|
|
173
|
+
emitChangeEvents(t) {
|
|
174
|
+
return [ this.change.emit(t), this.tctChange.emit(t) ];
|
|
175
|
+
}
|
|
170
176
|
generateEditStateDOM() {
|
|
171
177
|
return s("div", {
|
|
172
178
|
class: this.wrapperClass,
|
|
@@ -249,11 +255,14 @@ const f = t(class extends e {
|
|
|
249
255
|
type: "edit"
|
|
250
256
|
})));
|
|
251
257
|
}
|
|
258
|
+
isDefaultPrevented(t) {
|
|
259
|
+
return null != this.hostElement.onchange || t.some((t => t.defaultPrevented));
|
|
260
|
+
}
|
|
252
261
|
// #endregion
|
|
253
262
|
// #region Render Methods
|
|
254
263
|
render() {
|
|
255
264
|
return s("div", {
|
|
256
|
-
key: "
|
|
265
|
+
key: "38f7c5b55e8b6f0590c72ab81a4bb26c93506249"
|
|
257
266
|
}, this.generateEditStateDOM(), this.generateReadStateDOM());
|
|
258
267
|
}
|
|
259
268
|
get hostElement() {
|
|
@@ -276,7 +285,7 @@ const f = t(class extends e {
|
|
|
276
285
|
};
|
|
277
286
|
}
|
|
278
287
|
static get style() {
|
|
279
|
-
return '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{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}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{display:inline-block;max-width:100%}.q2-editable-field-wrapper .begin-edit,.q2-editable-field-wrapper .save-edit,.q2-editable-field-wrapper .cancel-edit{flex:0 0 44px;--tct-btn-icon-hover-background:var(--tct-editable-field-btn-hover-background, var(--app-gray-l3, #f2f2f2));--tct-icon-stroke-primary:var(--tct-editable-field-btn-icon-stroke-primary, var(--app-gray, #747474));--tct-icon-stroke-secondary:var(--tct-editable-field-btn-icon-stroke-secondary, var(--app-gray, #747474))}.q2-editable-field-wrapper:not([hidden]){display:flex}.q2-editable-field-wrapper.editing{align-items:flex-end}:host([block]){display:block;width:100%}:host([block]) .q2-editable-field-wrapper:not([hidden]){display:grid;grid-template-columns:1fr auto auto}q2-input,.text-wrapper{margin:0 var(--tct-scale-2, var(--app-scale-2x, 10px)) 0 0}q2-input{flex:1 1 auto;min-width:170px}.text-wrapper{flex:0 auto;align-self:center;display:inline-block}:host([truncated]) .text-wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}dl{margin:var(--tct-scale-0, var(--app-scale-0x, 0))}dt{font-weight:600}dd{margin-left:var(--tct-scale-0, var(--app-scale-0x, 0));display:flex;align-items:center}';
|
|
288
|
+
return '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{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}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{display:inline-block;max-width:100%}.q2-editable-field-wrapper .begin-edit,.q2-editable-field-wrapper .save-edit,.q2-editable-field-wrapper .cancel-edit{flex:0 0 44px;--tct-icon-size:var(--tct-editable-field-icon-size, var(--const-px-18, 18px));--tct-btn-icon-hover-background:var(--tct-editable-field-btn-hover-background, var(--app-gray-l3, #f2f2f2));--tct-icon-stroke-primary:var(--tct-editable-field-btn-icon-stroke-primary, var(--app-gray, #747474));--tct-icon-stroke-secondary:var(--tct-editable-field-btn-icon-stroke-secondary, var(--app-gray, #747474))}.q2-editable-field-wrapper:not([hidden]){display:flex}.q2-editable-field-wrapper.editing{align-items:flex-end}:host([block]){display:block;width:100%}:host([block]) .q2-editable-field-wrapper:not([hidden]){display:grid;grid-template-columns:1fr auto auto}q2-input,.text-wrapper{margin:0 var(--tct-scale-2, var(--app-scale-2x, 10px)) 0 0}q2-input{flex:1 1 auto;min-width:170px}.text-wrapper{flex:0 auto;align-self:center;display:inline-block}:host([truncated]) .text-wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}dl{margin:var(--tct-scale-0, var(--app-scale-0x, 0))}dt{font-weight:600}dd{margin-left:var(--tct-scale-0, var(--app-scale-0x, 0));display:flex;align-items:center}';
|
|
280
289
|
}
|
|
281
290
|
}, [ 1, "q2-editable-field", {
|
|
282
291
|
ariaLabel: [ 1537, "aria-label" ],
|
|
@@ -298,7 +307,7 @@ const f = t(class extends e {
|
|
|
298
307
|
clickEdit: [ 64 ],
|
|
299
308
|
clickSave: [ 64 ],
|
|
300
309
|
setValue: [ 64 ]
|
|
301
|
-
}, [ [ 0, "
|
|
310
|
+
}, [ [ 0, "focus", "delegateFocus" ], [ 0, "tctFormatted", "inputFormatted" ] ], {
|
|
302
311
|
ariaLabel: [ {
|
|
303
312
|
ariaLabelObserver: 0
|
|
304
313
|
} ],
|
|
@@ -334,11 +343,11 @@ const v = f, defineCustomElement = function() {
|
|
|
334
343
|
break;
|
|
335
344
|
|
|
336
345
|
case "q2-input":
|
|
337
|
-
customElements.get(a(t)) ||
|
|
346
|
+
customElements.get(a(t)) || u();
|
|
338
347
|
break;
|
|
339
348
|
|
|
340
349
|
case "q2-loading":
|
|
341
|
-
customElements.get(a(t)) ||
|
|
350
|
+
customElements.get(a(t)) || m();
|
|
342
351
|
}
|
|
343
352
|
}));
|
|
344
353
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { proxyCustomElement as t, HTMLElement as
|
|
1
|
+
import { proxyCustomElement as t, HTMLElement as e, createEvent as n, h as i, Fragment as o, Host as a, transformTag as r } from "@stencil/core/internal/client";
|
|
2
2
|
|
|
3
|
-
const s = t(class extends
|
|
3
|
+
const s = t(class extends e {
|
|
4
4
|
constructor(t) {
|
|
5
|
-
super(), !1 !== t && this.__registerHost(), this.__attachShadow(), this.tctClick =
|
|
6
|
-
this.tctDrag =
|
|
5
|
+
super(), !1 !== t && this.__registerHost(), this.__attachShadow(), this.tctClick = n(this, "tctClick", 7),
|
|
6
|
+
this.tctDrag = n(this, "tctDrag", 7), this.tctOpen = n(this, "tctOpen", 7), this.someText = "default",
|
|
7
7
|
this.status = 0,
|
|
8
8
|
/**
|
|
9
9
|
* Specifies the menu type.
|
|
@@ -20,8 +20,8 @@ const s = t(class extends n {
|
|
|
20
20
|
disconnectedCallback() {}
|
|
21
21
|
componentWillLoad() {}
|
|
22
22
|
componentDidLoad() {}
|
|
23
|
-
componentShouldUpdate(t,
|
|
24
|
-
return "content" ===
|
|
23
|
+
componentShouldUpdate(t, e, n) {
|
|
24
|
+
return "content" === n && t !== e;
|
|
25
25
|
}
|
|
26
26
|
componentWillUpdate() {}
|
|
27
27
|
componentDidUpdate() {}
|
|
@@ -71,11 +71,11 @@ const s = t(class extends n {
|
|
|
71
71
|
* Methods that are called when a property is updated as specified via
|
|
72
72
|
* the @Watch() decorator. List in alphabetical order of the property.
|
|
73
73
|
*/
|
|
74
|
-
contentChanged(t,
|
|
75
|
-
t !==
|
|
74
|
+
contentChanged(t, e) {
|
|
75
|
+
t !== e && this.updateState();
|
|
76
76
|
}
|
|
77
|
-
statusChanged(t,
|
|
78
|
-
t !==
|
|
77
|
+
statusChanged(t, e) {
|
|
78
|
+
t !== e && this.updateState();
|
|
79
79
|
}
|
|
80
80
|
// #endregion
|
|
81
81
|
// #region Local Methods
|
|
@@ -117,7 +117,7 @@ const s = t(class extends n {
|
|
|
117
117
|
}
|
|
118
118
|
render() {
|
|
119
119
|
return i(a, {
|
|
120
|
-
key: "
|
|
120
|
+
key: "e7adf64d703f0226f4ee5f5038ddbcda28b27ed2",
|
|
121
121
|
attribute: "navigation"
|
|
122
122
|
}, this.renderMenuInner());
|
|
123
123
|
}
|
|
@@ -12,9 +12,9 @@ import { d as p } from "./q2-link2.js";
|
|
|
12
12
|
|
|
13
13
|
import { d as f } from "./q2-list2.js";
|
|
14
14
|
|
|
15
|
-
import { d as
|
|
15
|
+
import { d as h } from "./q2-loading2.js";
|
|
16
16
|
|
|
17
|
-
const
|
|
17
|
+
const m = t(class extends e {
|
|
18
18
|
constructor(t) {
|
|
19
19
|
super(), !1 !== t && this.__registerHost(), this.__attachShadow(), this.tctChange = i(this, "tctChange", 7),
|
|
20
20
|
// #region Own Properties
|
|
@@ -32,6 +32,12 @@ const h = t(class extends e {
|
|
|
32
32
|
* The size of the browse button.
|
|
33
33
|
*/
|
|
34
34
|
this.buttonSize = "medium",
|
|
35
|
+
/**
|
|
36
|
+
* When `false`, the file name renders as-is and may wrap. Otherwise, long
|
|
37
|
+
* file names are middle-ellipsized so the beginning and end of the name
|
|
38
|
+
* remain visible.
|
|
39
|
+
*/
|
|
40
|
+
this.ellipsizeFileName = !0,
|
|
35
41
|
/**
|
|
36
42
|
* Allowed file types based on extensions (e.g., ['jpg', 'png', 'pdf'] or
|
|
37
43
|
* 'jpg, png, pdf'). When using the attribute, provide a comma-separated
|
|
@@ -47,6 +53,10 @@ const h = t(class extends e {
|
|
|
47
53
|
* The maximum size (in bytes) of any file that can be selected.
|
|
48
54
|
*/
|
|
49
55
|
this.maxFileSize = 1 / 0,
|
|
56
|
+
/**
|
|
57
|
+
* Shows a gradient at the bottom of the file list when more files are available below the visible area.
|
|
58
|
+
*/
|
|
59
|
+
this.showGradient = !0,
|
|
50
60
|
/**
|
|
51
61
|
* An array of `ValidFileStatus` objects representing the upload status of
|
|
52
62
|
* files. Each `ValidFileStatus` object contains the following properties:
|
|
@@ -77,6 +87,10 @@ const h = t(class extends e {
|
|
|
77
87
|
this.browseButtonInput.value = "", this.emitChange(i), this._value = i;
|
|
78
88
|
}, this.highlightDropZone = t => {
|
|
79
89
|
this.disabled || (this.disableEvent(t), this.isDropZoneHighlighted = !0);
|
|
90
|
+
}, this.updateFileListGradient = () => {
|
|
91
|
+
if (!this.fileListContainer) return;
|
|
92
|
+
const {clientHeight: t, scrollHeight: e, scrollTop: i} = this.fileListContainer, r = this.showGradient && e > t && Math.ceil(i) + t < e;
|
|
93
|
+
this.fileListContainer.classList.toggle("more-files", r);
|
|
80
94
|
},
|
|
81
95
|
// #endregion
|
|
82
96
|
// #region Render Methods
|
|
@@ -126,8 +140,9 @@ const h = t(class extends e {
|
|
|
126
140
|
class: "browse",
|
|
127
141
|
"test-id": "browse"
|
|
128
142
|
}, r("q2-btn", {
|
|
143
|
+
block: this.isMobileViewport,
|
|
129
144
|
disabled: t || this.areFilesUploading,
|
|
130
|
-
intent: "
|
|
145
|
+
intent: "primary",
|
|
131
146
|
loading: this.areFilesUploading,
|
|
132
147
|
onClick: () => this.launchFileBrowser(),
|
|
133
148
|
size: this.actualButtonSize,
|
|
@@ -146,9 +161,12 @@ const h = t(class extends e {
|
|
|
146
161
|
multiple: !0,
|
|
147
162
|
tabIndex: -1
|
|
148
163
|
}), r("div", {
|
|
149
|
-
class: "file-list-container"
|
|
164
|
+
class: "file-list-container",
|
|
165
|
+
onScroll: this.updateFileListGradient,
|
|
166
|
+
ref: t => this.fileListContainer = null != t ? t : this.fileListContainer
|
|
150
167
|
}, r("q2-list", {
|
|
151
|
-
class: "file-list"
|
|
168
|
+
class: "file-list",
|
|
169
|
+
ref: t => this.fileList = null != t ? t : this.fileList
|
|
152
170
|
}, this.displayedFiles.map((e => r("q2-item", {
|
|
153
171
|
class: this.getFileItemClasses(e.file.name),
|
|
154
172
|
key: e.file.name,
|
|
@@ -164,9 +182,18 @@ const h = t(class extends e {
|
|
|
164
182
|
}) : r("q2-icon", {
|
|
165
183
|
class: "icon-success",
|
|
166
184
|
type: "success"
|
|
167
|
-
})), r("div", {
|
|
185
|
+
})), !1 === this.ellipsizeFileName ? r("div", {
|
|
186
|
+
slot: "header"
|
|
187
|
+
}, e.file.name) : r("div", {
|
|
188
|
+
class: "file-name-header",
|
|
168
189
|
slot: "header"
|
|
169
|
-
},
|
|
190
|
+
}, r("span", {
|
|
191
|
+
class: "file-name-leading"
|
|
192
|
+
}, e.file.name.slice(0, Math.ceil(e.file.name.length / 2))), r("span", {
|
|
193
|
+
class: "file-name-trailing"
|
|
194
|
+
}, r("bdo", {
|
|
195
|
+
dir: "ltr"
|
|
196
|
+
}, e.file.name.slice(Math.ceil(e.file.name.length / 2))))), r("div", {
|
|
170
197
|
class: "file-item-info",
|
|
171
198
|
slot: "body"
|
|
172
199
|
}, this.getFileItemStatusMessage(e)), r("div", {
|
|
@@ -203,7 +230,23 @@ const h = t(class extends e {
|
|
|
203
230
|
console.error("Setting the value of this component directly is not allowed.");
|
|
204
231
|
}
|
|
205
232
|
// #endregion
|
|
233
|
+
// #region Component Lifecycle Events
|
|
234
|
+
disconnectedCallback() {
|
|
235
|
+
var t;
|
|
236
|
+
null === (t = this.fileListResizeObserver) || void 0 === t || t.disconnect();
|
|
237
|
+
}
|
|
238
|
+
componentDidLoad() {
|
|
239
|
+
"function" == typeof ResizeObserver && (this.fileListResizeObserver = new ResizeObserver(this.updateFileListGradient),
|
|
240
|
+
this.observeFileListContent());
|
|
241
|
+
}
|
|
242
|
+
componentDidRender() {
|
|
243
|
+
this.observeFileListContent(), this.updateFileListGradient(), "function" == typeof requestAnimationFrame && requestAnimationFrame(this.updateFileListGradient);
|
|
244
|
+
}
|
|
245
|
+
// #endregion
|
|
206
246
|
// #region Watchers
|
|
247
|
+
updateGradientVisibility() {
|
|
248
|
+
this.updateFileListGradient();
|
|
249
|
+
}
|
|
207
250
|
updateFileList(t) {
|
|
208
251
|
t.forEach((t => {
|
|
209
252
|
const e = this.queuedFiles.findIndex((e => e.name === t.name));
|
|
@@ -245,6 +288,9 @@ const h = t(class extends e {
|
|
|
245
288
|
get hasLabelSlotContent() {
|
|
246
289
|
return n(this.el, "label");
|
|
247
290
|
}
|
|
291
|
+
get isMobileViewport() {
|
|
292
|
+
return !("undefined" == typeof window || !window.matchMedia) && window.matchMedia("(max-width: 479px)").matches;
|
|
293
|
+
}
|
|
248
294
|
buildFilesObject(t) {
|
|
249
295
|
const e = [];
|
|
250
296
|
return e.push(...this.extractFilesOfInvalidTypes(t)), e.push(...this.extractFilesOverSizeLimit(t)),
|
|
@@ -353,27 +399,38 @@ const h = t(class extends e {
|
|
|
353
399
|
launchFileBrowser() {
|
|
354
400
|
this.browseButtonInput.dispatchEvent(new MouseEvent("click"));
|
|
355
401
|
}
|
|
402
|
+
observeFileListContent() {
|
|
403
|
+
this.fileListResizeObserver && this.fileList && (this.fileListResizeObserver.disconnect(),
|
|
404
|
+
this.fileListResizeObserver.observe(this.fileList), this.fileList.querySelectorAll("q2-item").forEach((t => {
|
|
405
|
+
this.fileListResizeObserver.observe(t);
|
|
406
|
+
})));
|
|
407
|
+
}
|
|
356
408
|
get el() {
|
|
357
409
|
return this;
|
|
358
410
|
}
|
|
359
411
|
static get watchers() {
|
|
360
412
|
return {
|
|
413
|
+
showGradient: [ {
|
|
414
|
+
updateGradientVisibility: 0
|
|
415
|
+
} ],
|
|
361
416
|
status: [ {
|
|
362
417
|
updateFileList: 0
|
|
363
418
|
} ]
|
|
364
419
|
};
|
|
365
420
|
}
|
|
366
421
|
static get style() {
|
|
367
|
-
return '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{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}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}*{box-sizing:border-box}*:active{outline:none}*:focus-visible{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}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}@keyframes growFromCenterFadeIn{from{transform:scaleX(0.75) scaleY(0.75);opacity:0}to{transform:scaleX(1) scaleY(1);opacity:1}}@keyframes shrinkToCenterFadeOut{from{transform:scaleX(1) scaleY(1);opacity:1}to{transform:scaleX(0.75) scaleY(0.75);opacity:0}}:host{--comp-default-file-picker-margin:var(--tct-file-picker-margin-top, var(--t-file-picker-margin-top, var(--app-scale-5x, 25px))) 0 var(--tct-file-picker-margin-bottom, var(--t-file-picker-margin-bottom, var(--app-scale-5x, 25px)));display:block;margin:var(--tct-file-picker-margin, var(--comp-default-file-picker-margin))}.browse{text-align:left}.drop-zone-text{--tct-link-font-weight:var(--tct-file-picker-browse-link-font-weight, 700);color:var(--tct-file-picker-drop-zone-text-color, var(--t-gray-6, #4d4d4d));font-size:var(--tct-file-picker-drop-zone-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));font-weight:var(--tct-file-picker-browse-link-font-weight, 700);margin-bottom:0;margin-top:var(--tct-file-picker-drop-zone-text-margin-top, var(--app-scale-2x, 10px))}.description{color:var(--tct-file-picker-description-text-color, var(--t-gray-1, #0d0d0d));font-size:var(--tct-file-picker-description-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));font-weight:var(--tct-file-picker-description-font-weight, 400);text-align:var(--tct-file-picker-description-text-align, left)}.drop-zone{--tct-icon-stroke-primary:var(--tct-file-picker-drop-zone-icon-color, var(--t-text, #4d4d4d));--tct-icon-stroke-secondary:var(--tct-file-picker-drop-zone-icon-color, var(--t-text, #4d4d4d));align-items:center;background-color:var(--tct-file-picker-drop-zone-background, var(--t-tertiary, #e8f5fc));border-color:var(--tct-file-picker-drop-zone-border-color, var(--t-gray-8, #808080));border-radius:var(--tct-file-picker-drop-zone-border-radius, var(--app-border-radius-2, 6px));border-style:var(--tct-file-picker-drop-zone-border-style, dashed);border-width:var(--tct-file-picker-drop-zone-border-width, 2px);color:var(--tct-file-picker-drop-zone-color, #747474);display:flex;flex-direction:column;font-size:var(--tct-file-picker-drop-zone-font-size, var(--app-font-size, var(--const-px-14, 14px)));font-weight:var(--tct-file-picker-drop-zone-font-weight, 400);height:var(--tct-file-picker-drop-zone-height, 150px);justify-content:center;max-width:var(--tct-file-picker-drop-zone-max-width, 640px);min-width:var(--tct-file-picker-drop-zone-min-width, 320px);padding:var(--tct-file-picker-drop-zone-padding, 20px);text-align:center;width:var(--tct-file-picker-drop-zone-width, 100%)}.drop-zone-highlighted{background-color:var(--tct-file-picker-drop-zone-highlighted-background, var(--tertiary-d-1, #bee1f6));border-color:var(--tct-file-picker-drop-zone-highlighted-border, var(--t-gray-8, #808080))}.drop-zone-disabled{opacity:var(--tct-file-picker-drop-zone-disabled-opacity, var(--app-disabled-opacity, 0.4));cursor:not-allowed}.fade-in{animation-fill-mode:both;animation-play-state:running;animation:growFromCenterFadeIn 0.2s ease-in}.fade-out{animation:shrinkToCenterFadeOut 0.1s ease-out;animation-play-state:running;animation-fill-mode:both}.file-item{--tct-btn-icon-border-radius:var(--tct-file-picker-item-close-btn-border-radius, 4px);--tct-btn-neutral-text-active-font-color:var(--tct-file-picker-item-close-btn-active-color, var(--t-gray-1, #0d0d0d));--tct-btn-neutral-text-focus-visible-outer-ring-color:var(--tct-file-picker-item-close-btn-color, var(--t-gray-1, #0d0d0d));--tct-btn-neutral-text-font-color:var(--tct-file-picker-item-close-btn-color, var(--t-gray-1, #0d0d0d));--tct-btn-neutral-text-hover-outer-ring-color:var(--tct-file-picker-item-close-btn-hover-focus-ring-color, var(--t-gray-1, #0d0d0d));--tct-btn-icon-padding:0;--tct-icon-stroke-primary:var(--tct-file-picker-item-close-btn-color, var(--t-gray-1, #0d0d0d));--tct-item-body-font-size:var(--tct-file-picker-item-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));--tct-item-body-font-weight:var(--tct-file-picker-item-font-weight, 400);--tct-item-border-radius:var(--tct-file-picker-item-border-radius, var(--app-border-radius-3, 12px));--tct-item-border:var(--tct-file-picker-item-border-width, 1px) solid var(--tct-file-picker-item-border-color, var(--t-gray-8, #808080));--tct-item-header-color:var(--tct-file-picker-item-name-color, var(--t-gray-1, #0d0d0d));--tct-item-header-font-size:var(--tct-file-picker-item-name-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));--tct-item-header-font-weight:var(--tct-file-picker-item-name-font-weight, 400);--tct-item-padding:var(--tct-file-picker-item-padding, var(--app-scale-1x, 5px) var(--app-scale-2x, 10px));text-align:left}.file-item-info{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.file-item-loading{font-size:var(--tct-file-picker-file-item-loading-size, var(--app-scale-6x, 30px));margin-bottom:calc(var(--tct-file-picker-file-item-loading-margin-bottom, var(--app-scale-6x, 30px)) / 8.57);margin-left:calc(var(--tct-file-picker-file-item-loading-margin-bottom, var(--app-scale-1x, 5px)) / 2)}.file-list{--tct-list-item-gap:var(--tct-file-picker-section-gap, var(--app-scale-3x, 15px))}.file-list-container{max-height:var(--tct-file-picker-list-max-height, 190px);max-width:var(--tct-file-picker-drop-zone-max-width, 640px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--tct-file-picker-scrollbar-color, var(--t-a11y-gray-color, #949494)) transparent}.file-picker{display:flex;flex-direction:column;gap:var(--tct-file-picker-file-item-gap, var(--app-scale-3x, 15px))}.heading{display:flex;flex-direction:column;gap:var(--tct-file-picker-heading-gap, var(--app-scale-1x, 5px));justify-content:space-between}.icon-success,.icon-error{--tct-icon-size:var(--tct-file-picker-file-item-icon-size, var(--app-scale-6x, 30px));--tct-icon-stroke-width:2px}.label{color:var(--tct-file-picker-label-color, var(--t-gray-1, #0d0d0d));display:inline-block;font-size:var(--tct-file-picker-label-font-size, var(--app-font-size, var(--const-px-14, 14px)));font-weight:var(--tct-file-picker-label-font-weight, 600);text-align:var(--tct-file-picker-label-text-align, left)}.loading{font-size:var(--tct-file-picker-loading-size, var(--app-scale-6x, 25px))}.loading-file{color:var(--tct-file-picker-loading-file-color, var(--t-gray-1, #0d0d0d));font-size:var(--tct-file-picker-loading-file-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));font-weight:var(--tct-file-picker-loading-file-font-weight, 400);margin:0}.loading-message{color:var(--tct-file-picker-loading-message-color, var(--t-gray-1, #0d0d0d));font-size:var(--tct-file-picker-loading-message-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));font-weight:var(--tct-file-picker-loading-message-font-weight, 700);margin-bottom:var(--tct-file-picker-loading-message-margin-bottom, var(--app-scale-2x, 10px));margin-top:var(--tct-file-picker-loading-message-margin-top, var(--app-scale-2x, 10px))}.dismiss-button{--tct-btn-icon-width:var(--tct-file-picker-item-close-btn-size, 30px);--tct-btn-icon-height:var(--tct-file-picker-item-close-btn-size, 30px)}.dismiss-button:hover{--tct-icon-stroke-primary:var(--tct-file-picker-item-close-btn-hover-color, var(--t-gray-1, #0d0d0d))}[slot=action]{display:flex;align-items:center}';
|
|
422
|
+
return '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{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}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}*{box-sizing:border-box}*:active{outline:none}*:focus-visible{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}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}@keyframes growFromCenterFadeIn{from{transform:scaleX(0.75) scaleY(0.75);opacity:0}to{transform:scaleX(1) scaleY(1);opacity:1}}@keyframes shrinkToCenterFadeOut{from{transform:scaleX(1) scaleY(1);opacity:1}to{transform:scaleX(0.75) scaleY(0.75);opacity:0}}:host{--comp-default-file-picker-margin:var(--tct-file-picker-margin-top, var(--t-file-picker-margin-top, var(--app-scale-5x, 25px))) 0 var(--tct-file-picker-margin-bottom, var(--t-file-picker-margin-bottom, var(--app-scale-5x, 25px)));display:block;margin:var(--tct-file-picker-margin, var(--comp-default-file-picker-margin))}.browse{text-align:left}.drop-zone-text{--tct-link-font-weight:var(--tct-file-picker-browse-link-font-weight, 700);color:var(--tct-file-picker-drop-zone-text-color, var(--t-gray-6, #4d4d4d));font-size:var(--tct-file-picker-drop-zone-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));font-weight:var(--tct-file-picker-browse-link-font-weight, 700);margin-bottom:0;margin-top:var(--tct-file-picker-drop-zone-text-margin-top, var(--app-scale-2x, 10px))}.description{color:var(--tct-file-picker-description-text-color, var(--t-gray-1, #0d0d0d));font-size:var(--tct-file-picker-description-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));font-weight:var(--tct-file-picker-description-font-weight, 400);text-align:var(--tct-file-picker-description-text-align, left)}.drop-zone{--tct-icon-stroke-primary:var(--tct-file-picker-drop-zone-icon-color, var(--t-text, #4d4d4d));--tct-icon-stroke-secondary:var(--tct-file-picker-drop-zone-icon-color, var(--t-text, #4d4d4d));align-items:center;background-color:var(--tct-file-picker-drop-zone-background, var(--t-tertiary, #e8f5fc));border-color:var(--tct-file-picker-drop-zone-border-color, var(--t-gray-8, #808080));border-radius:var(--tct-file-picker-drop-zone-border-radius, var(--app-border-radius-2, 6px));border-style:var(--tct-file-picker-drop-zone-border-style, dashed);border-width:var(--tct-file-picker-drop-zone-border-width, 2px);color:var(--tct-file-picker-drop-zone-color, #747474);display:flex;flex-direction:column;font-size:var(--tct-file-picker-drop-zone-font-size, var(--app-font-size, var(--const-px-14, 14px)));font-weight:var(--tct-file-picker-drop-zone-font-weight, 400);height:var(--tct-file-picker-drop-zone-height, 150px);justify-content:center;max-width:var(--tct-file-picker-drop-zone-max-width, 640px);min-width:var(--tct-file-picker-drop-zone-min-width, 320px);padding:var(--tct-file-picker-drop-zone-padding, 20px);text-align:center;width:var(--tct-file-picker-drop-zone-width, 100%)}.drop-zone-highlighted{background-color:var(--tct-file-picker-drop-zone-highlighted-background, var(--tertiary-d-1, #bee1f6));border-color:var(--tct-file-picker-drop-zone-highlighted-border, var(--t-gray-8, #808080))}.drop-zone-disabled{opacity:var(--tct-file-picker-drop-zone-disabled-opacity, var(--app-disabled-opacity, 0.4));cursor:not-allowed}.fade-in{animation-fill-mode:both;animation-play-state:running;animation:growFromCenterFadeIn 0.2s ease-in}.fade-out{animation:shrinkToCenterFadeOut 0.1s ease-out;animation-play-state:running;animation-fill-mode:both}.file-item{--tct-btn-icon-border-radius:var(--tct-file-picker-item-close-btn-border-radius, 4px);--tct-btn-neutral-text-active-font-color:var(--tct-file-picker-item-close-btn-active-color, var(--t-gray-1, #0d0d0d));--tct-btn-neutral-text-focus-visible-outer-ring-color:var(--tct-file-picker-item-close-btn-color, var(--t-gray-1, #0d0d0d));--tct-btn-neutral-text-font-color:var(--tct-file-picker-item-close-btn-color, var(--t-gray-1, #0d0d0d));--tct-btn-neutral-text-hover-outer-ring-color:var(--tct-file-picker-item-close-btn-hover-focus-ring-color, var(--t-gray-1, #0d0d0d));--tct-btn-icon-padding:0;--tct-icon-stroke-primary:var(--tct-file-picker-item-close-btn-color, var(--t-gray-1, #0d0d0d));--tct-item-body-font-size:var(--tct-file-picker-item-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));--tct-item-body-font-weight:var(--tct-file-picker-item-font-weight, 400);--tct-item-border-radius:var(--tct-file-picker-item-border-radius, var(--app-border-radius-3, 12px));--tct-item-border:var(--tct-file-picker-item-border-width, 1px) solid var(--tct-file-picker-item-border-color, var(--t-gray-8, #808080));--tct-item-header-color:var(--tct-file-picker-item-name-color, var(--t-gray-1, #0d0d0d));--tct-item-header-font-size:var(--tct-file-picker-item-name-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));--tct-item-header-font-weight:var(--tct-file-picker-item-name-font-weight, 400);--tct-item-padding:var(--tct-file-picker-item-padding, var(--app-scale-1x, 5px) var(--app-scale-2x, 10px));text-align:left}.file-item-info{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.file-name-header{display:flex;align-items:center;min-width:0;white-space:nowrap;width:100%}.file-name-leading{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.file-name-trailing{direction:rtl;flex:0 0 auto;max-width:50%;overflow:hidden}.file-item-loading{font-size:var(--tct-file-picker-file-item-loading-size, var(--app-scale-6x, 30px));margin-bottom:calc(var(--tct-file-picker-file-item-loading-margin-bottom, var(--app-scale-6x, 30px)) / 8.57);margin-left:calc(var(--tct-file-picker-file-item-loading-margin-bottom, var(--app-scale-1x, 5px)) / 2)}.file-list{--tct-list-item-gap:var(--tct-file-picker-section-gap, var(--app-scale-3x, 15px))}.file-list-container{max-height:var(--tct-file-picker-list-max-height, 190px);max-width:var(--tct-file-picker-drop-zone-max-width, 640px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--tct-file-picker-scrollbar-color, var(--t-a11y-gray-color, #949494)) transparent}.file-list-container.more-files{-webkit-mask-image:linear-gradient(to bottom, currentColor calc(100% - var(--tct-file-picker-list-gradient-height, var(--app-scale-12x, 60px))), transparent 100%);mask-image:linear-gradient(to bottom, currentColor calc(100% - var(--tct-file-picker-list-gradient-height, var(--app-scale-12x, 60px))), transparent 100%)}.file-picker{display:flex;flex-direction:column;gap:var(--tct-file-picker-file-item-gap, var(--app-scale-3x, 15px))}.heading{display:flex;flex-direction:column;gap:var(--tct-file-picker-heading-gap, var(--app-scale-1x, 5px));justify-content:space-between}.icon-success,.icon-error{--tct-icon-size:var(--tct-file-picker-file-item-icon-size, var(--app-scale-6x, 30px));--tct-icon-stroke-width:2px}.label{color:var(--tct-file-picker-label-color, var(--t-gray-1, #0d0d0d));display:inline-block;font-size:var(--tct-file-picker-label-font-size, var(--app-font-size, var(--const-px-14, 14px)));font-weight:var(--tct-file-picker-label-font-weight, 600);text-align:var(--tct-file-picker-label-text-align, left)}.loading{font-size:var(--tct-file-picker-loading-size, var(--app-scale-6x, 25px))}.loading-file{color:var(--tct-file-picker-loading-file-color, var(--t-gray-1, #0d0d0d));font-size:var(--tct-file-picker-loading-file-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));font-weight:var(--tct-file-picker-loading-file-font-weight, 400);margin:0}.loading-message{color:var(--tct-file-picker-loading-message-color, var(--t-gray-1, #0d0d0d));font-size:var(--tct-file-picker-loading-message-font-size, var(--app-font-size-small, var(--const-px-12, 12px)));font-weight:var(--tct-file-picker-loading-message-font-weight, 700);margin-bottom:var(--tct-file-picker-loading-message-margin-bottom, var(--app-scale-2x, 10px));margin-top:var(--tct-file-picker-loading-message-margin-top, var(--app-scale-2x, 10px))}.dismiss-button{--tct-btn-icon-width:var(--tct-file-picker-item-close-btn-size, 30px);--tct-btn-icon-height:var(--tct-file-picker-item-close-btn-size, 30px)}.dismiss-button:hover{--tct-icon-stroke-primary:var(--tct-file-picker-item-close-btn-hover-color, var(--t-gray-1, #0d0d0d))}[slot=action]{display:flex;align-items:center}';
|
|
368
423
|
}
|
|
369
424
|
}, [ 257, "q2-file-picker", {
|
|
370
425
|
buttonSize: [ 513, "button-size" ],
|
|
371
426
|
description: [ 513 ],
|
|
372
427
|
disabled: [ 516 ],
|
|
428
|
+
ellipsizeFileName: [ 516, "ellipsize-file-name" ],
|
|
373
429
|
fileTypes: [ 513, "file-types" ],
|
|
374
430
|
label: [ 513 ],
|
|
375
431
|
maxFiles: [ 514, "max-files" ],
|
|
376
432
|
maxFileSize: [ 514, "max-file-size" ],
|
|
433
|
+
showGradient: [ 516, "show-gradient" ],
|
|
377
434
|
status: [ 16 ],
|
|
378
435
|
value: [ 6160 ],
|
|
379
436
|
variant: [ 513 ],
|
|
@@ -382,17 +439,20 @@ const h = t(class extends e {
|
|
|
382
439
|
isDropZoneHighlighted: [ 32 ],
|
|
383
440
|
refreshCounter: [ 32 ]
|
|
384
441
|
}, void 0, {
|
|
442
|
+
showGradient: [ {
|
|
443
|
+
updateGradientVisibility: 0
|
|
444
|
+
} ],
|
|
385
445
|
status: [ {
|
|
386
446
|
updateFileList: 0
|
|
387
447
|
} ]
|
|
388
448
|
} ]);
|
|
389
449
|
|
|
390
|
-
const v =
|
|
450
|
+
const v = m, defineCustomElement = function() {
|
|
391
451
|
if ("undefined" == typeof customElements) return;
|
|
392
452
|
[ "q2-file-picker", "q2-btn", "q2-icon", "q2-item", "q2-link", "q2-list", "q2-loading" ].forEach((t => {
|
|
393
453
|
switch (t) {
|
|
394
454
|
case "q2-file-picker":
|
|
395
|
-
customElements.get(a(t)) || customElements.define(a(t),
|
|
455
|
+
customElements.get(a(t)) || customElements.define(a(t), m);
|
|
396
456
|
break;
|
|
397
457
|
|
|
398
458
|
case "q2-btn":
|
|
@@ -416,7 +476,7 @@ const v = h, defineCustomElement = function() {
|
|
|
416
476
|
break;
|
|
417
477
|
|
|
418
478
|
case "q2-loading":
|
|
419
|
-
customElements.get(a(t)) ||
|
|
479
|
+
customElements.get(a(t)) || h();
|
|
420
480
|
}
|
|
421
481
|
}));
|
|
422
482
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { proxyCustomElement as t, HTMLElement as n, h as o, transformTag as
|
|
1
|
+
import { proxyCustomElement as t, HTMLElement as n, h as o, transformTag as i } from "@stencil/core/internal/client";
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const a = t(class extends n {
|
|
4
4
|
constructor(t) {
|
|
5
5
|
super(), !1 !== t && this.__registerHost(), this.__attachShadow(),
|
|
6
6
|
// #region Public Property API
|
|
@@ -11,10 +11,10 @@ const i = t(class extends n {
|
|
|
11
11
|
// #region Render Methods
|
|
12
12
|
render() {
|
|
13
13
|
return o("div", {
|
|
14
|
-
key: "
|
|
14
|
+
key: "e4a4cee5eb8e69c9fe81423d3942a6299b4d1462",
|
|
15
15
|
class: "container"
|
|
16
16
|
}, o("slot", {
|
|
17
|
-
key: "
|
|
17
|
+
key: "1d729b1c93148f0a12954688cd33266b24f40f67"
|
|
18
18
|
}));
|
|
19
19
|
}
|
|
20
20
|
static get style() {
|
|
@@ -24,10 +24,10 @@ const i = t(class extends n {
|
|
|
24
24
|
spacing: [ 513 ]
|
|
25
25
|
} ]);
|
|
26
26
|
|
|
27
|
-
const e =
|
|
27
|
+
const e = a, defineCustomElement = function() {
|
|
28
28
|
if ("undefined" == typeof customElements) return;
|
|
29
29
|
[ "q2-form" ].forEach((t => {
|
|
30
|
-
if ("q2-form" === t) customElements.get(
|
|
30
|
+
if ("q2-form" === t) customElements.get(i(t)) || customElements.define(i(t), a);
|
|
31
31
|
}));
|
|
32
32
|
};
|
|
33
33
|
|
|
@@ -63,11 +63,11 @@ const r = t(class extends e {
|
|
|
63
63
|
render() {
|
|
64
64
|
const {formattedTextClasses: t} = this;
|
|
65
65
|
return i("div", {
|
|
66
|
-
key: "
|
|
66
|
+
key: "bb6f08a7fd5801e7527624b766061019ce931ac5",
|
|
67
67
|
class: t,
|
|
68
68
|
"aria-label": this.formattedValue
|
|
69
69
|
}, i("span", {
|
|
70
|
-
key: "
|
|
70
|
+
key: "44808806b71f4b3783fa38806789bbc91956bdcd"
|
|
71
71
|
}, this.formattedValue));
|
|
72
72
|
}
|
|
73
73
|
static get watchers() {
|