q2-tecton-elements 1.57.0 → 1.57.2
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 +484 -459
- package/dist/cjs/click-elsewhere.cjs.entry.js +1 -1
- package/dist/cjs/{index-Ct37J3sm.js → index-DRPUzMCR.js} +3 -7
- package/dist/{q2-tecton-elements/index-DHD1Dbkd.js.map → cjs/index-DRPUzMCR.js.map} +1 -1
- package/dist/cjs/{index-DwY8j6jj.js → index-zMAVnBYO.js} +116 -12
- package/dist/cjs/index-zMAVnBYO.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/q2-action-group_2.cjs.entry.js +4 -4
- package/dist/cjs/q2-action-sheet.cjs.entry.js +3 -3
- package/dist/cjs/q2-avatar.cjs.entry.js +2 -2
- package/dist/cjs/q2-badge_7.cjs.entry.js +6 -6
- package/dist/cjs/q2-calendar.cjs.entry.js +2 -2
- package/dist/cjs/q2-card.cjs.entry.js +2 -2
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +4 -4
- package/dist/cjs/q2-carousel.cjs.entry.js +2 -2
- package/dist/cjs/q2-chart-area.cjs.entry.js +3 -3
- package/dist/cjs/q2-chart-bar.cjs.entry.js +3 -3
- package/dist/cjs/q2-chart-donut.cjs.entry.js +3 -3
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/q2-context.cjs.entry.js +3 -3
- package/dist/cjs/q2-currency.cjs.entry.js +2 -2
- package/dist/cjs/q2-data-table.cjs.entry.js +2 -2
- package/dist/cjs/q2-detail.cjs.entry.js +3 -3
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +2 -2
- package/dist/cjs/q2-dropdown.cjs.entry.js +6 -4
- package/dist/cjs/q2-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-dropdown.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-editable-field.cjs.entry.js +2 -2
- package/dist/cjs/q2-example.cjs.entry.js +2 -2
- package/dist/cjs/q2-file-picker.cjs.entry.js +2 -2
- package/dist/cjs/q2-form.cjs.entry.js +2 -2
- package/dist/cjs/q2-formatted-text.cjs.entry.js +2 -2
- package/dist/cjs/q2-grid-area.cjs.entry.js +1 -1
- package/dist/cjs/q2-grid.cjs.entry.js +1 -1
- package/dist/cjs/q2-item.cjs.entry.js +3 -3
- package/dist/cjs/q2-legend.cjs.entry.js +2 -2
- package/dist/cjs/q2-link_2.cjs.entry.js +3 -3
- package/dist/cjs/q2-loading-element.cjs.entry.js +2 -2
- package/dist/cjs/q2-loc.cjs.entry.js +2 -2
- package/dist/cjs/q2-message.cjs.entry.js +3 -3
- package/dist/cjs/q2-modal.cjs.entry.js +3 -3
- package/dist/cjs/q2-month-picker.cjs.entry.js +4 -4
- package/dist/cjs/q2-optgroup.cjs.entry.js +3 -3
- package/dist/cjs/q2-option-list.q2-popover.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-option-list_2.cjs.entry.js +53 -62
- package/dist/cjs/q2-option-list_2.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-option.cjs.entry.js +2 -2
- package/dist/cjs/q2-pagination.cjs.entry.js +5 -5
- package/dist/cjs/q2-pill.cjs.entry.js +3 -3
- package/dist/cjs/q2-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-radio.cjs.entry.js +2 -2
- package/dist/cjs/q2-relative-time.cjs.entry.js +3 -3
- package/dist/cjs/q2-section.cjs.entry.js +4 -4
- package/dist/cjs/q2-select.cjs.entry.js +81 -24
- package/dist/cjs/q2-select.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-select.entry.cjs.js.map +1 -1
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +3 -3
- package/dist/cjs/q2-stepper.cjs.entry.js +3 -3
- package/dist/cjs/q2-tag.cjs.entry.js +3 -3
- package/dist/cjs/q2-tecton-elements.cjs.js +23 -2
- package/dist/cjs/q2-tecton-elements.cjs.js.map +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +3 -3
- package/dist/cjs/q2-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/{shapes-DYFTrUXB.js → shapes-DDw2Fhwn.js} +3 -3
- package/dist/cjs/{shapes-DYFTrUXB.js.map → shapes-DDw2Fhwn.js.map} +1 -1
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +3 -3
- package/dist/collection/components/q2-action-group/q2-action-group.js +1 -1
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +1 -1
- package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
- package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
- package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
- package/dist/collection/components/q2-chart-area/q2-chart-area.js +1 -1
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +1 -1
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +1 -1
- package/dist/collection/components/q2-context/q2-context.js +1 -1
- package/dist/collection/components/q2-currency/q2-currency.js +1 -1
- package/dist/collection/components/q2-detail/q2-detail.js +1 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +4 -2
- package/dist/collection/components/q2-dropdown/q2-dropdown.js.map +1 -1
- package/dist/collection/components/q2-example/q2-example.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/q2-item/q2-item.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/q2-modal/q2-modal.js +1 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
- package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
- package/dist/collection/components/q2-pill/q2-pill.js +1 -1
- package/dist/collection/components/q2-popover/q2-popover.css +18 -10
- package/dist/collection/components/q2-popover/q2-popover.js +53 -61
- package/dist/collection/components/q2-popover/q2-popover.js.map +1 -1
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
- package/dist/collection/components/q2-section/q2-section.js +2 -2
- package/dist/collection/components/q2-select/q2-select.js +89 -25
- package/dist/collection/components/q2-select/q2-select.js.map +1 -1
- package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
- 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 +1 -1
- package/dist/collection/components/q2-textarea/q2-textarea.js +1 -1
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
- package/dist/components/index2.js +1 -4
- package/dist/components/index2.js.map +1 -1
- package/dist/components/q2-action-group2.js +1 -1
- package/dist/components/q2-action-sheet.js +1 -1
- package/dist/components/q2-avatar2.js +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-context.js +1 -1
- package/dist/components/q2-currency.js +1 -1
- package/dist/components/q2-detail.js +1 -1
- package/dist/components/q2-dropdown.js +4 -2
- package/dist/components/q2-dropdown.js.map +1 -1
- package/dist/components/q2-example.js +1 -1
- package/dist/components/q2-form.js +1 -1
- package/dist/components/q2-formatted-text.js +1 -1
- package/dist/components/q2-input2.js +1 -1
- package/dist/components/q2-item2.js +1 -1
- package/dist/components/q2-legend2.js +1 -1
- package/dist/components/q2-list2.js +1 -1
- package/dist/components/q2-message2.js +1 -1
- package/dist/components/q2-modal.js +1 -1
- package/dist/components/q2-month-picker.js +2 -2
- package/dist/components/q2-optgroup2.js +1 -1
- package/dist/components/q2-pagination.js +3 -3
- package/dist/components/q2-pill.js +1 -1
- package/dist/components/q2-popover2.js +52 -61
- package/dist/components/q2-popover2.js.map +1 -1
- package/dist/components/q2-relative-time.js +1 -1
- package/dist/components/q2-resize-observer2.js +1 -1
- package/dist/components/q2-section.js +2 -2
- package/dist/components/q2-select2.js +83 -26
- 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 +1 -1
- package/dist/components/q2-textarea.js +1 -1
- package/dist/components/tecton-tab-pane.js +2 -2
- package/dist/esm/click-elsewhere.entry.js +1 -1
- package/dist/esm/{index-YFPMNbDm.js → index-C7zSUT3M.js} +116 -13
- package/dist/esm/index-C7zSUT3M.js.map +1 -0
- package/dist/esm/{index-DHD1Dbkd.js → index-y0xcWkDl.js} +4 -7
- package/dist/esm/{index-DHD1Dbkd.js.map → index-y0xcWkDl.js.map} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/q2-action-group_2.entry.js +4 -4
- package/dist/esm/q2-action-sheet.entry.js +3 -3
- package/dist/esm/q2-avatar.entry.js +2 -2
- package/dist/esm/q2-badge_7.entry.js +6 -6
- package/dist/esm/q2-calendar.entry.js +2 -2
- package/dist/esm/q2-card.entry.js +2 -2
- package/dist/esm/q2-carousel-pane.entry.js +4 -4
- package/dist/esm/q2-carousel.entry.js +2 -2
- package/dist/esm/q2-chart-area.entry.js +3 -3
- package/dist/esm/q2-chart-bar.entry.js +3 -3
- package/dist/esm/q2-chart-donut.entry.js +3 -3
- package/dist/esm/q2-checkbox-group.entry.js +2 -2
- package/dist/esm/q2-checkbox.entry.js +2 -2
- package/dist/esm/q2-context.entry.js +3 -3
- package/dist/esm/q2-currency.entry.js +2 -2
- package/dist/esm/q2-data-table.entry.js +2 -2
- package/dist/esm/q2-detail.entry.js +3 -3
- package/dist/esm/q2-dropdown-item.entry.js +2 -2
- package/dist/esm/q2-dropdown.entry.js +6 -4
- package/dist/esm/q2-dropdown.entry.js.map +1 -1
- package/dist/esm/q2-editable-field.entry.js +2 -2
- package/dist/esm/q2-example.entry.js +2 -2
- package/dist/esm/q2-file-picker.entry.js +2 -2
- package/dist/esm/q2-form.entry.js +2 -2
- package/dist/esm/q2-formatted-text.entry.js +2 -2
- package/dist/esm/q2-grid-area.entry.js +1 -1
- package/dist/esm/q2-grid.entry.js +1 -1
- package/dist/esm/q2-item.entry.js +3 -3
- package/dist/esm/q2-legend.entry.js +2 -2
- package/dist/esm/q2-link_2.entry.js +3 -3
- package/dist/esm/q2-loading-element.entry.js +2 -2
- package/dist/esm/q2-loc.entry.js +2 -2
- package/dist/esm/q2-message.entry.js +3 -3
- package/dist/esm/q2-modal.entry.js +3 -3
- package/dist/esm/q2-month-picker.entry.js +4 -4
- package/dist/esm/q2-optgroup.entry.js +3 -3
- package/dist/esm/q2-option-list.q2-popover.entry.js.map +1 -1
- package/dist/esm/q2-option-list_2.entry.js +53 -62
- package/dist/esm/q2-option-list_2.entry.js.map +1 -1
- package/dist/esm/q2-option.entry.js +2 -2
- package/dist/esm/q2-pagination.entry.js +5 -5
- package/dist/esm/q2-pill.entry.js +3 -3
- package/dist/esm/q2-radio-group.entry.js +2 -2
- package/dist/esm/q2-radio.entry.js +2 -2
- package/dist/esm/q2-relative-time.entry.js +3 -3
- package/dist/esm/q2-section.entry.js +4 -4
- package/dist/esm/q2-select.entry.js +81 -24
- package/dist/esm/q2-select.entry.js.map +1 -1
- package/dist/esm/q2-stepper-pane.entry.js +2 -2
- package/dist/esm/q2-stepper-vertical.entry.js +3 -3
- package/dist/esm/q2-stepper.entry.js +3 -3
- package/dist/esm/q2-tag.entry.js +3 -3
- package/dist/esm/q2-tecton-elements.js +24 -3
- package/dist/esm/q2-tecton-elements.js.map +1 -1
- package/dist/esm/q2-textarea.entry.js +3 -3
- package/dist/esm/q2-tooltip.entry.js +2 -2
- package/dist/esm/{shapes-B9jYz1VS.js → shapes-DO0UnuKe.js} +3 -3
- package/dist/esm/{shapes-B9jYz1VS.js.map → shapes-DO0UnuKe.js.map} +1 -1
- package/dist/esm/tecton-tab-pane.entry.js +3 -3
- package/dist/q2-tecton-elements/click-elsewhere.entry.js +1 -1
- package/dist/q2-tecton-elements/{index-YFPMNbDm.js → index-C7zSUT3M.js} +559 -450
- package/dist/q2-tecton-elements/index-C7zSUT3M.js.map +1 -0
- package/dist/q2-tecton-elements/{index-DHD1Dbkd.js → index-y0xcWkDl.js} +4 -8
- package/dist/{cjs/index-Ct37J3sm.js.map → q2-tecton-elements/index-y0xcWkDl.js.map} +1 -1
- package/dist/q2-tecton-elements/q2-action-group_2.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +10 -10
- package/dist/q2-tecton-elements/q2-avatar.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-badge_7.entry.js +75 -75
- package/dist/q2-tecton-elements/q2-calendar.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-card.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-carousel.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +70 -70
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-checkbox.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-context.entry.js +13 -13
- package/dist/q2-tecton-elements/q2-currency.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-data-table.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-detail.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-dropdown-item.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-dropdown.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +69 -67
- package/dist/q2-tecton-elements/q2-dropdown.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-example.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-file-picker.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-form.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-formatted-text.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-grid-area.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-grid.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-item.entry.js +14 -14
- package/dist/q2-tecton-elements/q2-legend.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-link_2.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-loading-element.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-loc.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-message.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-modal.entry.js +23 -23
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +67 -67
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-option-list.q2-popover.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-option-list_2.entry.js +208 -210
- package/dist/q2-tecton-elements/q2-option-list_2.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-option.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-pagination.entry.js +26 -26
- package/dist/q2-tecton-elements/q2-pill.entry.js +23 -23
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-radio.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-section.entry.js +22 -22
- package/dist/q2-tecton-elements/q2-select.entry.esm.js.map +1 -1
- package/dist/q2-tecton-elements/q2-select.entry.js +141 -96
- package/dist/q2-tecton-elements/q2-select.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +20 -20
- package/dist/q2-tecton-elements/q2-stepper.entry.js +14 -14
- package/dist/q2-tecton-elements/q2-tag.entry.js +12 -12
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +31 -9
- 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-tooltip.entry.js +2 -2
- package/dist/q2-tecton-elements/{shapes-B9jYz1VS.js → shapes-DO0UnuKe.js} +3 -3
- package/dist/q2-tecton-elements/{shapes-B9jYz1VS.js.map → shapes-DO0UnuKe.js.map} +1 -1
- package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +7 -7
- package/dist/types/components/q2-popover/q2-popover.d.ts +4 -4
- package/dist/types/components/q2-select/q2-select.d.ts +13 -3
- package/dist/types/components.d.ts +2 -0
- package/package.json +3 -3
- package/dist/cjs/index-DwY8j6jj.js.map +0 -1
- package/dist/esm/index-YFPMNbDm.js.map +0 -1
- package/dist/q2-tecton-elements/index-YFPMNbDm.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as t, c as i, h as o, a as e } from "./index-
|
|
1
|
+
import { r as t, c as i, h as o, a as e } from "./index-C7zSUT3M.js";
|
|
2
2
|
|
|
3
|
-
import { b as r, o as a, a as n, w as
|
|
3
|
+
import { b as r, o as a, a as n, w as c, l as s } from "./index-y0xcWkDl.js";
|
|
4
4
|
|
|
5
5
|
import { a as l, s as p } from "./action-sheet-D3xPdhm8.js";
|
|
6
6
|
|
|
@@ -243,7 +243,7 @@ const h = class {
|
|
|
243
243
|
const r = await ((o = this.optionList) === null || o === void 0 ? void 0 : o.getOptions());
|
|
244
244
|
if (!this.open) {
|
|
245
245
|
await this.openPopover();
|
|
246
|
-
await
|
|
246
|
+
await c();
|
|
247
247
|
}
|
|
248
248
|
e.forEach((t => {
|
|
249
249
|
var i;
|
|
@@ -251,7 +251,7 @@ const h = class {
|
|
|
251
251
|
}));
|
|
252
252
|
if (i.closePopover) {
|
|
253
253
|
await this.closePopover();
|
|
254
|
-
await
|
|
254
|
+
await c();
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
// #endregion
|
|
@@ -290,8 +290,8 @@ const h = class {
|
|
|
290
290
|
// #region Local Methods
|
|
291
291
|
get buttonContent() {
|
|
292
292
|
const {label: t, selectedOptions: i, selectedOptionElements: o, optionCount: e} = this;
|
|
293
|
-
if (!e || o.length === 0) return
|
|
294
|
-
return
|
|
293
|
+
if (!e || o.length === 0) return s(t); else if (o.length === 1) return s(o[0].display);
|
|
294
|
+
return s("tecton.element.pill.activeCount", {
|
|
295
295
|
count: i.length
|
|
296
296
|
});
|
|
297
297
|
}
|
|
@@ -312,7 +312,7 @@ const h = class {
|
|
|
312
312
|
id: "option-description",
|
|
313
313
|
class: "sr",
|
|
314
314
|
"aria-hidden": "true"
|
|
315
|
-
},
|
|
315
|
+
}, s("tecton.element.optionList.optionCount", [ this.optionCount ]));
|
|
316
316
|
}
|
|
317
317
|
renderIcon() {
|
|
318
318
|
const {optionCount: t, active: i} = this;
|
|
@@ -323,7 +323,7 @@ const h = class {
|
|
|
323
323
|
class: "btn-close",
|
|
324
324
|
onClick: e && this.clearSelectedOptions || undefined,
|
|
325
325
|
disabled: e && this.disabled || undefined,
|
|
326
|
-
"aria-label": e &&
|
|
326
|
+
"aria-label": e && s("tecton.element.pill.clearSelection") || undefined,
|
|
327
327
|
type: e && "button" || undefined
|
|
328
328
|
}, o("q2-icon", {
|
|
329
329
|
type: a
|
|
@@ -335,19 +335,19 @@ const h = class {
|
|
|
335
335
|
if (t || i) r.push("has-icon");
|
|
336
336
|
if (t) r.push("has-options");
|
|
337
337
|
return o("click-elsewhere", {
|
|
338
|
-
key: "
|
|
338
|
+
key: "a414de5290a14e5b9d39d7255a8ce4f86a7f63c5",
|
|
339
339
|
onChange: this.onClickElsewhere
|
|
340
340
|
}, o("div", {
|
|
341
|
-
key: "
|
|
341
|
+
key: "8f4f99433a55bb3ad6905e39498abde42d8a0d50",
|
|
342
342
|
class: r.join(" ")
|
|
343
343
|
}, o("div", {
|
|
344
|
-
key: "
|
|
344
|
+
key: "ea41a7b5ce62ebc60db610a13fcfc83e0a49b313",
|
|
345
345
|
class: "btn-height-wrapper",
|
|
346
346
|
ref: t => this.primaryBtnWrapper = t,
|
|
347
347
|
onClick: this.handleWrapperClick,
|
|
348
348
|
tabIndex: -1
|
|
349
349
|
}, o("button", {
|
|
350
|
-
key: "
|
|
350
|
+
key: "45ea8c2340415cfe808d7221139c82516428375c",
|
|
351
351
|
class: "btn-primary",
|
|
352
352
|
"test-id": "btn-control",
|
|
353
353
|
type: "button",
|
|
@@ -363,10 +363,10 @@ const h = class {
|
|
|
363
363
|
"aria-label": this.buttonContent,
|
|
364
364
|
"aria-describedby": t && "option-description" || undefined
|
|
365
365
|
}, this.truncatedButtonContent, !t && i && o("span", {
|
|
366
|
-
key: "
|
|
366
|
+
key: "43f856c13a43be860cf6e5fe5b56b30ccd81e2df",
|
|
367
367
|
class: "sr"
|
|
368
|
-
}, "(",
|
|
369
|
-
key: "
|
|
368
|
+
}, "(", s("tecton.element.pill.active"), ")"))), this.renderIcon(), !!t && this.renderHiddenElement()), this.optionCount > 0 && o("q2-popover", {
|
|
369
|
+
key: "628a9a30af7ab8da9838233b5a6cfd3c77c7639c",
|
|
370
370
|
ref: t => this.popoverElement = t,
|
|
371
371
|
controlElement: this.primaryBtn,
|
|
372
372
|
open: this.open,
|
|
@@ -376,20 +376,20 @@ const h = class {
|
|
|
376
376
|
align: this.popoverAlignment,
|
|
377
377
|
onFocusout: this.handleFocusOut
|
|
378
378
|
}, o("div", {
|
|
379
|
-
key: "
|
|
379
|
+
key: "ff9a727deb59bf185cd0c3ed05c610cc07c63af1",
|
|
380
380
|
class: "popover-content"
|
|
381
381
|
}, o("div", {
|
|
382
|
-
key: "
|
|
382
|
+
key: "0b051665a5e10eb7ea847e59d438d10230509afc",
|
|
383
383
|
ref: t => this.popoverTopContainer = t,
|
|
384
384
|
class: "popover-top-container",
|
|
385
385
|
tabindex: "-1",
|
|
386
386
|
hidden: !this.hasPopoverTop,
|
|
387
387
|
onKeyDown: this.handleKeydown
|
|
388
388
|
}, o("slot", {
|
|
389
|
-
key: "
|
|
389
|
+
key: "a3d356609517be8c0c01feb85ac2eb0175aaada8",
|
|
390
390
|
name: "popover-top"
|
|
391
391
|
})), o("q2-option-list", {
|
|
392
|
-
key: "
|
|
392
|
+
key: "351d34cd993921d2b1e123dd70af3990f7c7a69d",
|
|
393
393
|
type: "listbox",
|
|
394
394
|
ref: t => this.optionList = t,
|
|
395
395
|
id: "option-list",
|
|
@@ -397,18 +397,18 @@ const h = class {
|
|
|
397
397
|
multiple: this.multiple,
|
|
398
398
|
selectedOptions: this.selectedOptions,
|
|
399
399
|
onReady: () => this.updateSelectedOptionElements(),
|
|
400
|
-
label:
|
|
400
|
+
label: s("tecton.element.optionList.label", [ this.optionListLabel ])
|
|
401
401
|
}, o("slot", {
|
|
402
|
-
key: "
|
|
402
|
+
key: "9ee96d32d484b84bcf529dd37ae23e85abead6bc"
|
|
403
403
|
})), o("div", {
|
|
404
|
-
key: "
|
|
404
|
+
key: "8371a96f73d4cb474df1c683d6c03b7fa4d8181c",
|
|
405
405
|
ref: t => this.popoverBottomContainer = t,
|
|
406
406
|
class: "popover-bottom-container",
|
|
407
407
|
tabindex: "-1",
|
|
408
408
|
hidden: !this.hasPopoverBottom,
|
|
409
409
|
onKeyDown: this.handleKeydown
|
|
410
410
|
}, o("slot", {
|
|
411
|
-
key: "
|
|
411
|
+
key: "3afc2d8be7b7e2fc8b3b74ad20292a09569e65e6",
|
|
412
412
|
name: "popover-bottom"
|
|
413
413
|
})))));
|
|
414
414
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as t, c as i, h as a, F as r, a as o } from "./index-
|
|
1
|
+
import { r as t, c as i, h as a, F as r, a as o } from "./index-C7zSUT3M.js";
|
|
2
2
|
|
|
3
|
-
import { c as e, o as n, a as s, r as d } from "./index-
|
|
3
|
+
import { c as e, o as n, a as s, r as d } from "./index-y0xcWkDl.js";
|
|
4
4
|
|
|
5
5
|
const l = '*{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}:host{--comp-default-radio-group-margin:var(--tct-radio-group-margin-top, var(--t-radio-group-margin-top, var(--app-scale-5x, 25px))) 0 var(--tct-radio-group-margin-bottom, var(--t-radio-group-margin-bottom, var(--app-scale-5x, 25px)));display:block;margin:var(--tct-radio-group-margin, var(--comp-default-radio-group-margin))}fieldset{padding:var(--tct-radio-group-fieldset-padding, 0);margin:0;border:0;position:relative}.label-row{display:grid;grid-template-columns:1fr 24px;grid-template-areas:"label icon";column-gap:var(--tct-radio-group-label-column-gap, var(--app-scale-2x, 10px))}.label-row q2-icon{grid-area:icon;margin-top:-2px;margin-bottom:-2px}.group-legend{font-weight:600}legend.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0}.optional-tag{margin-left:var(--tct-radio-group-label-optional-margin-left, var(--app-scale-1x, 5px));color:var(--tct-radio-group-label-optional-color, var(--t-radio-group-label-optional-color, var(--tct-a11y-color, var(--t-a11y-color, var(--tct-a11y-gray-color, var(--t-a11y-gray-color, var(--tct-gray-7, var(--t-gray-7, var(--tct-gray-d1, var(--t-gray-d1, var(--app-gray-d1, rgba(77, 77, 77, 0.77))))))))))));font-size:var(--tct-radio-group-label-optional-font-size, var(--t-radio-group-label-optional-font-size, 12px));font-weight:var(--tct-radio-group-label-optional-font-weight, var(--t-radio-group-label-optional-font-weight, 400))}.tile-container,.tile-container .options-container{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;flex-grow:1}.options-container{--comp-default-margin:var(--app-scale-1x, 5px) 0;--comp-options-margin:var(--tct-radio-group-options-margin, var(--t-radio-group-options-margin, var(--comp-default-margin, 5px 0)));margin:var(--comp-options-margin);padding:var(--tct-radio-group-options-padding, var(--t-radio-group-options-padding, var(--app-scale-0x, 0px)));border-width:1px;border-color:transparent;border-style:solid;border-radius:var(--tct-radio-group-border-radius, var(--app-border-radius-1, 4px))}:host([has-error]) .options-container{border-color:var(--tct-radio-group-error-border-color, var(--const-stoplight-alert, #d20a0a))}:host([has-error=false]) .options-container{border-color:transparent}.tile-container.left{justify-content:start}.tile-container.right{justify-content:end}.tile-container .options-container{gap:var(--tct-radio-group-tile-gap, var(--t-radio-group-tile-gap, var(--app-scale-2x, 10px)));justify-content:inherit}';
|
|
6
6
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r, c as t, h as e, a as o } from "./index-
|
|
1
|
+
import { r, c as t, h as e, a as o } from "./index-C7zSUT3M.js";
|
|
2
2
|
|
|
3
|
-
import { c as a, e as i, o as c, l } from "./index-
|
|
3
|
+
import { c as a, e as i, o as c, l } from "./index-y0xcWkDl.js";
|
|
4
4
|
|
|
5
5
|
const n = '*{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}:host{display:block}.radio-container{--comp-radio-margin:var(--tct-radio-margin, var(--tct-radio-margin-vertical, var(--tct-scale-2, 10px)) var(--tct-radio-margin-horizontal, var(--tct-scale-3, 15px)));margin:var(--comp-radio-margin)}.radio-container label[for]{color:var(--tct-radio-label-color, inherit);font-weight:var(--tct-radio-font-weight, var(--tct-checkbox-font-weight, 400));align-items:center;cursor:pointer;margin-right:var(--tct-radio-label-margin-right, 1rem);display:grid;grid-template-columns:18px 1fr;gap:var(--tct-scale-1, var(--app-scale-1x, 5px))}.radio-container label[for].label-hidden{grid-template-columns:var(--tct-radio-label-hidden-columns, 18px 1fr)}.radio-container svg{border-radius:50%;transition:box-shadow var(--tct-tween-1, var(--app-tween-1, 0.2s ease));outline:0;width:100%}.radio-container circle:nth-child(1){stroke-width:2;stroke:var(--tct-radio-stroke-color, var(--t-a11y-gray-color-AA, #949494));fill:var(--tct-radio-background-fill, transparent)}.radio-container input:checked+label circle:nth-child(1){fill:var(--tct-radio-checked-background-fill, var(--tct-radio-checked-bg, transparent));stroke:var(--tct-radio-checked-stroke-color, var(--tct-radio-stroke-color, var(--t-a11y-gray-color-AA, #949494)))}.radio-container input:checked+label .label-content{font-weight:var(--tct-radio-checked-label-font-weight, var(--tct-checkbox-selected-font-weight, 600));letter-spacing:var(--tct-radio-checked-label-letter-spacing, var(--tct-checkbox-selected-letter-spacing, 0.25));color:var(--tct-radio-checked-label-font-color, var(--tct-radio-checked-label-color, inherit))}.radio-container input:checked+label circle:nth-child(2){fill:var(--tct-radio-checked-fill, var(--tct-checkbox-check-stroke-color, var(--t-checkbox-fill, #2e2e2e)))}.radio-container input:hover+label circle:nth-child(1){fill:var(--tct-radio-hover-background-fill, transparent);stroke:var(--tct-radio-hover-stroke-color, var(--tct-radio-stroke-color, var(--t-a11y-gray-color-AA, #949494)))}.radio-container input:hover+label .label-content{color:var(--tct-radio-hover-label-color, inherit)}.radio-container input:focus+label circle:nth-child(1){fill:var(--tct-radio-focus-background-fill, transparent);stroke:var(--tct-radio-focus-stroke-color, var(--tct-checkbox-check-stroke-color, var(--t-checkbox-fill, #2e2e2e)))}.radio-container input:focus+label .label-content{color:var(--tct-radio-focus-label-color, var(--tct-radio-checked-label-color, inherit))}.radio-container input:focus-visible+label svg{box-shadow:var(--const-double-focus-ring)}.radio-tile{flex-basis:100px;flex-grow:0;flex-wrap:wrap}.radio-tile label[for]{color:var(--tct-radio-label-font-color, var(--tct-radio-label-color, inherit));align-items:center;border-radius:3px;border:2px solid var(--tct-radio-stroke-color, var(--t-a11y-gray-color-AA, #949494));background:var(--tct-radio-background-fill, transparent);cursor:pointer;display:block;padding:10px;position:relative;text-align:center;transition:border-color var(--tct-tween-1, var(--app-tween-1, 0.2s ease));white-space:nowrap}.radio-tile input:checked+label{border-color:var(--tct-radio-checked-stroke-color, var(--tct-checkbox-check-stroke-color, var(--t-checkbox-check-stroke-color, var(--t-checkbox-fill, #2e2e2e))));box-shadow:inset 0 0 0 2px #ffffff;background:var(--tct-radio-checked-background-fill, transparent);color:var(--tct-radio-checked-label-color, inherit)}.radio-tile input:checked+label:after{border-bottom-width:3px;border-bottom:5px solid var(--tct-radio-checked-stroke-color, var(--tct-checkbox-check-stroke-color, var(--t-checkbox-check-stroke-color, var(--t-checkbox-fill, #2e2e2e))));border-left-width:5px;border-left:8px solid transparent;border-right-width:5px;border-right:8px solid transparent;bottom:0;content:"";height:0;left:50%;margin-left:-5px;position:absolute;width:0}.radio-tile input:hover+label{border-color:var(--tct-radio-hover-stroke-color, var(--tct-radio-stroke-color, var(--t-a11y-gray-color-AA, #949494)));background:var(--tct-radio-hover-background-fill, transparent);color:var(--tct-radio-hover-label-color, var(--tct-radio-label-color, inherit))}.radio-tile input:focus+label,.radio-tile input:focus:checked+label{border-color:var(--tct-radio-focus-stroke-color, var(--tct-checkbox-check-stroke-color, var(--t-checkbox-check-stroke-color, var(--t-checkbox-fill, #2e2e2e))));background:var(--tct-radio-focus-background-fill, transparent);box-shadow:var(--const-double-focus-ring), var(--tct-global-focus, 0 0 0 2px #33b4ff);color:var(--tct-radio-focus-label-color, var(--tct-radio-checked-label-color, inherit))}input:disabled+label[for]{cursor:not-allowed;opacity:var(--tct-disabled-opacity, var(--app-disabled-opacity, 0.4))}';
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const s = class {
|
|
8
8
|
constructor(e) {
|
|
9
9
|
r(this, e);
|
|
10
10
|
this.change = t(this, "change", 7);
|
|
@@ -139,8 +139,8 @@ const d = class {
|
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
s.style = n;
|
|
143
143
|
|
|
144
|
-
export {
|
|
144
|
+
export { s as q2_radio };
|
|
145
145
|
//# sourceMappingURL=q2-radio.entry.esm.js.map
|
|
146
146
|
//# sourceMappingURL=q2-radio.entry.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as e, h as t, F as i, a as s } from "./index-
|
|
1
|
+
import { r as e, h as t, F as i, a as s } from "./index-C7zSUT3M.js";
|
|
2
2
|
|
|
3
3
|
import { d as a } from "./index-O1A-ZSZs.js";
|
|
4
4
|
|
|
5
|
-
import { l as n } from "./index-
|
|
5
|
+
import { l as n } from "./index-y0xcWkDl.js";
|
|
6
6
|
|
|
7
7
|
const r = "*{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}:host{display:inline}";
|
|
8
8
|
|
|
@@ -60,7 +60,7 @@ const o = class {
|
|
|
60
60
|
// #endregion
|
|
61
61
|
// #region Watchers
|
|
62
62
|
updateMessage() {
|
|
63
|
-
const {isValidDate: e, isBaseDateProvided: t, isValidBaseDate: i, dateObject: s, baseDateObject: r, locale: o, handleNumeric: d, messageFormat:
|
|
63
|
+
const {isValidDate: e, isBaseDateProvided: t, isValidBaseDate: i, dateObject: s, baseDateObject: r, locale: o, handleNumeric: d, messageFormat: l, isValidUnit: h, unit: u, trimSuffix: c} = this;
|
|
64
64
|
if (!e || t && !i) {
|
|
65
65
|
this.sync = false;
|
|
66
66
|
this.displayedMessage = n("tecton.element.relativeTime.invalidDate");
|
|
@@ -70,8 +70,8 @@ const o = class {
|
|
|
70
70
|
locale: o,
|
|
71
71
|
localeMatcher: "best fit",
|
|
72
72
|
numeric: d,
|
|
73
|
-
style:
|
|
74
|
-
unit:
|
|
73
|
+
style: l,
|
|
74
|
+
unit: h ? u : null
|
|
75
75
|
});
|
|
76
76
|
if (c) {
|
|
77
77
|
this.displayedMessage = this.trimMessage(p);
|
|
@@ -141,7 +141,7 @@ const o = class {
|
|
|
141
141
|
render() {
|
|
142
142
|
const {shouldShow: e, displayedMessage: s} = this;
|
|
143
143
|
return t(i, {
|
|
144
|
-
key: "
|
|
144
|
+
key: "67e5d3fb5bef2fe8abac62da9888700fb6b789dd"
|
|
145
145
|
}, e ? t("time", {
|
|
146
146
|
dateTime: s
|
|
147
147
|
}, s) : null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as t, c as e, h as i, a } from "./index-
|
|
1
|
+
import { r as t, c as e, h as i, a as n } from "./index-C7zSUT3M.js";
|
|
2
2
|
|
|
3
|
-
import { b as
|
|
3
|
+
import { b as s, o as a, a as r, n as o, l as c } from "./index-y0xcWkDl.js";
|
|
4
4
|
|
|
5
5
|
const d = "*{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}:host{display:block;background:var(--tct-section-background, var(--tct-section-background-color, var(--t-section-background-color, var(--tct-section-bg, var(--t-section-bg, var(--app-white, #ffffff))))));color:var(--tct-section-font-color, var(--t-section-font-color, var(--t-text, #4d4d4d)));border-radius:var(--tct-section-border-radius, var(--t-section-border-radius, var(--app-border-radius-1, 4px)));margin:var(--tct-section-margin, var(--t-section-margin, var(--app-scale-3x, 15px)));border-width:var(--tct-section-border-width, 0);border-style:var(--tct-section-border-style, solid);border-color:var(--tct-section-border-color, none)}@media screen and (max-width: 767px){:host{--comp-default-margin:var(--app-scale-3x, 15px) 0;margin:var(--tct-section-margin, var(--t-section-margin, var(--comp-default-margin)))}}@media print{:host{--comp-default-print-margin:var(--app-scale-3x, 15px) 0;margin:var(--tct-section-print-margin, var(--comp-default-print-margin))}}.wrapper{--comp-tween:var(--tct-section-tween, var(--t-section-tween, var(--app-tween-1, 0.2s ease)));--comp-default-wrapper-padding:var(--app-scale-1x, 5px) 0;display:block;padding:var(--tct-section-wrapper-padding, var(--t-section-wrapper-padding, var(--comp-default-wrapper-padding)))}.wrapper:hover{box-shadow:var(--tct-section-wrapper-hover-box-shadow, var(--t-section-wrapper-hover-box-shadow, inherit))}:host([collapsible]) .wrapper{--comp-tween:var(--tct-section-tween, var(--t-section-tween, var(--app-tween-2, 0.4s ease)))}header{--comp-default-header-padding:0 var(--app-scale-3x, 15px);padding:var(--tct-section-header-padding, var(--t-section-header-padding, var(--comp-default-header-padding)));display:flex}@media print{header{padding:var(--tct-section-header-print-padding, 0)}}header.has-header{min-height:var(--tct-section-header-min-height, var(--t-section-header-min-height, 44px))}.header-content{flex:1 1 100%;min-width:0;align-self:center}:host([collapsible]) .header-content{cursor:pointer}.title{margin:var(--tct-section-title-margin, 0);font-size:var(--tct-section-title-font-size, 20px);font-weight:var(--tct-section-title-font-weight, 600);text-transform:var(--tct-section-title-text-transform, none);letter-spacing:var(--tct-section-title-letter-spacing, inherit)}q2-icon{transition:transform var(--comp-tween)}:host(:not([expanded])) q2-icon,:host([expanded=false]) q2-icon{transform:rotate(180deg)}.content-wrapper{height:auto}.content-wrapper.is-closed{display:none;overflow:hidden}.content-wrapper.is-transitioning{overflow:hidden}:host([collapsible]) .content-wrapper{transition:height var(--comp-tween)}.content{--comp-default-content-padding:var(--app-scale-2x, 10px) var(--app-scale-3x, 15px);padding:var(--tct-section-content-padding, var(--t-section-content-padding, var(--comp-default-content-padding)))}@media print{.content{padding:var(--tct-section-content-print-padding, 0)}}.content:focus{box-shadow:none}:host([collapsible]) :host(:not([expanded])) .content{visibility:hidden}";
|
|
6
6
|
|
|
@@ -14,10 +14,10 @@ const h = class {
|
|
|
14
14
|
this.hideContent = false;
|
|
15
15
|
this.addContentSlotListener = () => {
|
|
16
16
|
if (this.contentSlot) {
|
|
17
|
-
this.contentSlot.addEventListener("slotchange",
|
|
17
|
+
this.contentSlot.addEventListener("slotchange", s);
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
const t = new MutationObserver(
|
|
20
|
+
const t = new MutationObserver(s);
|
|
21
21
|
t.observe(this.contentContainer, {
|
|
22
22
|
childList: true,
|
|
23
23
|
subtree: true
|
|
@@ -65,7 +65,7 @@ const h = class {
|
|
|
65
65
|
this.removeContentSlotListener = () => {
|
|
66
66
|
var t;
|
|
67
67
|
if (this.contentSlot) {
|
|
68
|
-
this.contentSlot.removeEventListener("slotchange",
|
|
68
|
+
this.contentSlot.removeEventListener("slotchange", s);
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
71
|
(t = this.contentSlotMutationObserver) === null || t === void 0 ? void 0 : t.disconnect();
|
|
@@ -94,7 +94,7 @@ const h = class {
|
|
|
94
94
|
componentDidLoad() {
|
|
95
95
|
this.addHeaderSlotListener();
|
|
96
96
|
this.addContentSlotListener();
|
|
97
|
-
|
|
97
|
+
a(this.hostElement);
|
|
98
98
|
}
|
|
99
99
|
// #endregion
|
|
100
100
|
// #region Listeners
|
|
@@ -135,7 +135,7 @@ const h = class {
|
|
|
135
135
|
}
|
|
136
136
|
async expandedObserver(t) {
|
|
137
137
|
this.clearResizeInterval();
|
|
138
|
-
this.resizerFn = setInterval(
|
|
138
|
+
this.resizerFn = setInterval(s, 5);
|
|
139
139
|
if (t) {
|
|
140
140
|
this.expandSection();
|
|
141
141
|
} else {
|
|
@@ -174,35 +174,35 @@ const h = class {
|
|
|
174
174
|
render() {
|
|
175
175
|
const t = this.label || this.hasYieldedHeader;
|
|
176
176
|
const e = [ "content-wrapper" ];
|
|
177
|
-
const {collapsible:
|
|
178
|
-
if (
|
|
179
|
-
if (
|
|
177
|
+
const {collapsible: n, hideContent: s, contentHeight: a} = this;
|
|
178
|
+
if (n) {
|
|
179
|
+
if (s) e.push("is-closed"); else if (a) e.push("is-transitioning");
|
|
180
180
|
}
|
|
181
181
|
const r = !this.hasYieldedHeader && !!this.label;
|
|
182
182
|
return i("section", {
|
|
183
|
-
key: "
|
|
183
|
+
key: "50128c435b407661e87390b4a4cda567f1784ad1",
|
|
184
184
|
class: "wrapper"
|
|
185
185
|
}, i("header", {
|
|
186
|
-
key: "
|
|
186
|
+
key: "b1e4f5da065e2ae0a0310547020def177819f14e",
|
|
187
187
|
class: t ? "has-header" : ""
|
|
188
188
|
}, i("div", {
|
|
189
|
-
key: "
|
|
189
|
+
key: "a0cc7819d695de252cce4c36c408a10474c120b2",
|
|
190
190
|
class: "header-content",
|
|
191
191
|
id: this.titleId,
|
|
192
192
|
onClick: this.collapsible && this.onHeaderClick
|
|
193
193
|
}, r && i("h2", {
|
|
194
|
-
key: "
|
|
194
|
+
key: "fe42b0f36e70ab9cb03b07574a75c4f46681f031",
|
|
195
195
|
class: "title"
|
|
196
196
|
}, c(this.label)), i("div", {
|
|
197
|
-
key: "
|
|
197
|
+
key: "047178d274fcc6907a9aa81edc66bd285c00dc8c",
|
|
198
198
|
ref: t => this.headerSlotWrapper = t,
|
|
199
199
|
class: "header-slot-wrapper"
|
|
200
200
|
}, i("slot", {
|
|
201
|
-
key: "
|
|
201
|
+
key: "63fd4ef8219d436425bd8477e021518e72989587",
|
|
202
202
|
ref: t => this.headerSlot = t,
|
|
203
203
|
name: "q2-section-header"
|
|
204
204
|
}))), this.collapsible && !this.noCollapseIcon && i("q2-btn", {
|
|
205
|
-
key: "
|
|
205
|
+
key: "3517c005e8a7bd6ba92fb7333c91a7d4f15c755c",
|
|
206
206
|
label: c(this.label || "tecton.element.section.defaultToggleLabel"),
|
|
207
207
|
ariaExpanded: `${!!this.expanded}`,
|
|
208
208
|
ariaControls: this.contentId,
|
|
@@ -210,10 +210,10 @@ const h = class {
|
|
|
210
210
|
"hide-label": true,
|
|
211
211
|
onClick: this.onHeaderClick
|
|
212
212
|
}, i("q2-icon", {
|
|
213
|
-
key: "
|
|
213
|
+
key: "4a33e0265677b621f71dd7587e3c0bb270b29707",
|
|
214
214
|
type: "chevron-up"
|
|
215
215
|
}))), i("div", {
|
|
216
|
-
key: "
|
|
216
|
+
key: "1cba7d25a2f9e89e8a67715700f6ded50c25ef15",
|
|
217
217
|
class: e.join(" "),
|
|
218
218
|
id: this.contentId,
|
|
219
219
|
"aria-labelledby": this.titleId,
|
|
@@ -223,17 +223,17 @@ const h = class {
|
|
|
223
223
|
height: this.contentHeight
|
|
224
224
|
}
|
|
225
225
|
}, i("div", {
|
|
226
|
-
key: "
|
|
226
|
+
key: "8c9ef9733c45987fbf25292414254765910ec7f6",
|
|
227
227
|
ref: t => this.contentContainer = t,
|
|
228
228
|
class: "content",
|
|
229
229
|
tabindex: "-1"
|
|
230
230
|
}, i("slot", {
|
|
231
|
-
key: "
|
|
231
|
+
key: "ae56752db16f4365c2639529e0890695b3f15dfd",
|
|
232
232
|
ref: t => this.contentSlot = t
|
|
233
233
|
}))));
|
|
234
234
|
}
|
|
235
235
|
get hostElement() {
|
|
236
|
-
return
|
|
236
|
+
return n(this);
|
|
237
237
|
}
|
|
238
238
|
static get watchers() {
|
|
239
239
|
return {
|