q2-tecton-elements 1.25.1 → 1.25.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-badge_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-btn_2.cjs.entry.js +5 -3
- package/dist/cjs/q2-optgroup_2.cjs.entry.js +1 -1
- package/dist/cjs/q2-option-list_2.cjs.entry.js +63 -20
- package/dist/cjs/q2-pill.cjs.entry.js +1 -1
- package/dist/cjs/q2-select.cjs.entry.js +23 -16
- package/dist/cjs/q2-tag.cjs.entry.js +1 -1
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/q2-btn/index.js +22 -3
- package/dist/collection/components/q2-input/index.js +13 -8
- package/dist/collection/components/q2-option/index.js +1 -1
- package/dist/collection/components/q2-option-list/index.js +33 -25
- package/dist/collection/components/q2-pill/index.js +1 -1
- package/dist/collection/components/q2-popover/index.js +55 -16
- package/dist/collection/components/q2-popover/styles.css +3 -4
- package/dist/collection/components/q2-select/index.js +40 -15
- package/dist/collection/components/q2-select/styles.css +41 -3
- package/dist/collection/components/q2-tag/index.js +1 -1
- package/dist/components/index12.js +1 -1
- package/dist/components/index13.js +10 -6
- package/dist/components/index14.js +56 -17
- package/dist/components/index5.js +6 -3
- package/dist/components/index8.js +3 -3
- package/dist/components/q2-pill.js +1 -1
- package/dist/components/q2-select.js +25 -17
- package/dist/components/q2-tag.js +1 -1
- package/dist/docs.json +56 -28
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-badge_2.entry.js +2 -2
- package/dist/esm/q2-btn_2.entry.js +5 -3
- package/dist/esm/q2-optgroup_2.entry.js +1 -1
- package/dist/esm/q2-option-list_2.entry.js +64 -21
- package/dist/esm/q2-pill.entry.js +1 -1
- package/dist/esm/q2-select.entry.js +24 -17
- package/dist/esm/q2-tag.entry.js +1 -1
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/q2-tecton-elements/p-1f16d0f8.entry.js +1 -0
- package/dist/q2-tecton-elements/p-2ee8d7ae.entry.js +1 -0
- package/dist/q2-tecton-elements/p-30391257.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-8b5639a1.entry.js → p-954534b8.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-82fef3f9.entry.js → p-c24aa7d6.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-f3dad195.entry.js +1 -0
- package/dist/q2-tecton-elements/p-f8423314.entry.js +1 -0
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/test/helpers.js +7 -0
- package/dist/types/components/q2-btn/index.d.ts +2 -0
- package/dist/types/components/q2-input/index.d.ts +3 -2
- package/dist/types/components/q2-option-list/index.d.ts +5 -1
- package/dist/types/components/q2-popover/index.d.ts +5 -1
- package/dist/types/components/q2-select/index.d.ts +4 -3
- package/dist/types/components.d.ts +17 -4
- package/dist/types/workspace/workspace/tecton-production_release_1.25.x/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +2 -1
- package/package.json +3 -3
- package/dist/q2-tecton-elements/p-3410c675.entry.js +0 -1
- package/dist/q2-tecton-elements/p-471e5d58.entry.js +0 -1
- package/dist/q2-tecton-elements/p-aafb9537.entry.js +0 -1
- package/dist/q2-tecton-elements/p-f573fe5a.entry.js +0 -1
- package/dist/q2-tecton-elements/p-fa8cb091.entry.js +0 -1
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy(JSON.parse("[[\"q2-icon.cjs\",[[1,\"q2-icon\",{\"type\":[513],\"label\":[513],\"inline\":[516]}]]],[\"q2-select.cjs\",[[1,\"q2-select\",{\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"value\":[1025],\"ariaLabel\":[1537,\"aria-label\"],\"selectedOptions\":[1040],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"errors\":[16],\"multiple\":[516],\"minRows\":[2,\"min-rows\"],\"popDirection\":[513,\"pop-direction\"],\"searchable\":[516],\"multilineOptions\":[516,\"multiline-options\"],\"optional\":[516],\"placeholder\":[513],\"hoist\":[4],\"open\":[32],\"showSelected\":[32],\"searchText\":[32],\"hasCustomDisplay\":[32],\"inputFocused\":[32],\"statusMessage\":[32],\"prioritizeSearch\":[32],\"structuredSelectedOptions\":[32]},[[0,\"keydown\",\"keydownHandler\"],[0,\"change\",\"onHostElementChange\"],[0,\"input\",\"onHostElementInput\"],[0,\"focus\",\"delegateFocus\"],[0,\"focusout\",\"handleFocusout\"]]]]],[\"q2-action-sheet.cjs\",[[1,\"q2-action-sheet\",{\"data\":[1040],\"hideClose\":[4,\"hide-close\"],\"isScrollable\":[32],\"renderStatus\":[32],\"hide\":[64],\"show\":[64]}]]],[\"q2-calendar.cjs\",[[1,\"q2-calendar\",{\"value\":[1537],\"label\":[513],\"hideLabel\":[516,\"hide-label\"],\"ariaLabel\":[513,\"aria-label\"],\"optional\":[516],\"disabled\":[516],\"readonly\":[516],\"invalid\":[1540],\"typeable\":[516],\"clearable\":[516],\"placeholder\":[513],\"buttonLabel\":[513,\"button-label\"],\"disabledMsg\":[513,\"disabled-msg\"],\"calendarLabel\":[513,\"calendar-label\"],\"disclaimer\":[513],\"displayFormat\":[513,\"display-format\"],\"startDate\":[513,\"start-date\"],\"endDate\":[513,\"end-date\"],\"cutoffTime\":[513,\"cutoff-time\"],\"daysOfWeekChecksum\":[514,\"days-of-week-checksum\"],\"popDirection\":[513,\"pop-direction\"],\"assume\":[513],\"errors\":[1040],\"invalidDates\":[16],\"validDates\":[16],\"onsuccess\":[16],\"dropdownOpen\":[32],\"keyboardSelection\":[32],\"typedValue\":[32],\"dateList\":[32],\"hintMessage\":[32],\"hintMessageType\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"error\",\"defaultErrorHandler\"],[0,\"success\",\"defaultSuccessHandler\"],[0,\"focus\",\"delegateFocus\"],[0,\"clear\",\"handleClear\"]]]]],[\"q2-dropdown.cjs\",[[1,\"q2-dropdown\",{\"type\":[513],\"icon\":[513],\"label\":[513],\"hideLabel\":[516,\"hide-label\"],\"ariaLabel\":[1537,\"aria-label\"],\"disabled\":[516],\"popDirection\":[513,\"pop-direction\"],\"name\":[513],\"context\":[513],\"contextValue\":[513,\"context-value\"],\"resolvedType\":[513,\"resolved-type\"],\"block\":[516],\"dropdownOpen\":[32]},[[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-editable-field.cjs\",[[1,\"q2-editable-field\",{\"value\":[1537],\"editing\":[1540],\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"ariaLabel\":[1537,\"aria-label\"],\"type\":[513],\"formatModifier\":[513,\"format-modifier\"],\"truncated\":[513],\"maxlength\":[514],\"persistentLabel\":[516,\"persistent-label\"],\"disabled\":[516],\"hints\":[16],\"errors\":[16]},[[0,\"change\",\"onHostElementChange\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-pagination.cjs\",[[1,\"q2-pagination\",{\"recordType\":[1,\"record-type\"],\"perPage\":[2,\"per-page\"],\"total\":[514],\"page\":[1538],\"pages\":[1538],\"recordsOnly\":[1540,\"records-only\"],\"pagesOnly\":[1540,\"pages-only\"],\"isSmall\":[32]},[[0,\"focus\",\"onHostElementFocus\"]]]]],[\"q2-pill.cjs\",[[1,\"q2-pill\",{\"hoist\":[4],\"disabled\":[516],\"active\":[1540],\"open\":[1540],\"multiple\":[516],\"maxLength\":[514,\"max-length\"],\"label\":[513],\"value\":[513],\"theme\":[513],\"selectedOptions\":[1040],\"popoverMinHeight\":[2,\"popover-min-height\"],\"popoverDirection\":[1,\"popover-direction\"],\"hasOptions\":[32],\"selectedOptionElements\":[32]},[[0,\"focus\",\"delegateFocus\"],[0,\"popoverStateChanged\",\"popoverStateHandler\"]]]]],[\"q2-tab-container.cjs\",[[1,\"q2-tab-container\",{\"value\":[1537],\"type\":[513],\"name\":[513],\"color\":[513],\"noPrint\":[516,\"no-print\"],\"hasLeft\":[32],\"hasRight\":[32],\"scrollEnabled\":[32],\"showScrollLeft\":[32],\"showScrollRight\":[32],\"tabs\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[9,\"resize\",\"onResize\"],[0,\"focus\",\"onFocus\"],[0,\"badge\",\"onBadge\"]]]]],[\"q2-tag.cjs\",[[1,\"q2-tag\",{\"hoist\":[4],\"open\":[1540],\"label\":[513],\"theme\":[513],\"popoverMinHeight\":[2,\"popover-min-height\"],\"popoverDirection\":[1,\"popover-direction\"],\"hasOptions\":[32]},[[0,\"focus\",\"delegateFocus\"],[0,\"popoverStateChanged\",\"popoverStateHandler\"]]]]],[\"q2-carousel.cjs\",[[4,\"q2-carousel\",{\"autoPlay\":[516,\"auto-play\"],\"fullWidthPanes\":[516,\"full-width-panes\"],\"hidePagination\":[516,\"hide-pagination\"],\"showNavigationArrows\":[516,\"show-navigation-arrows\"],\"ariaLabel\":[513,\"aria-label\"],\"label\":[513],\"index\":[1538],\"universalCarouselOptions\":[32],\"fullWidthDisplayOptions\":[32],\"activePaneIndex\":[32],\"applyFocus\":[32],\"applyPaginationFocus\":[32],\"autoPlayInProgress\":[32],\"compactMode\":[32],\"carouselWrapperWidth\":[32]},[[0,\"change\",\"onHostElementChange\"],[0,\"clickCarouselPane\",\"carouselPaneClicked\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-month-picker.cjs\",[[1,\"q2-month-picker\",{\"year\":[1538],\"disabledMonths\":[16],\"today\":[1],\"selectedIndex\":[32],\"focusedIndex\":[32],\"showYearLayer\":[32]}]]],[\"q2-section.cjs\",[[1,\"q2-section\",{\"label\":[513],\"collapsible\":[516],\"noCollapseIcon\":[516,\"no-collapse-icon\"],\"expanded\":[1540],\"contentHeight\":[32],\"hideContent\":[32],\"hasYieldedHeader\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-stepper.cjs\",[[1,\"q2-stepper\",{\"currentStep\":[1538,\"current-step\"],\"stepCount\":[1026,\"step-count\"],\"lastEnabledStep\":[1026,\"last-enabled-step\"],\"scrollEnabled\":[32],\"showScrollLeft\":[32],\"showScrollRight\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"focus\",\"delegateFocus\"],[0,\"statusChange\",\"statusChangeHandler\"]]]]],[\"q2-card.cjs\",[[1,\"q2-card\",{\"title\":[513],\"description\":[513],\"avatarName\":[513,\"avatar-name\"],\"avatarInitials\":[513,\"avatar-initials\"],\"avatarIcon\":[513,\"avatar-icon\"],\"avatarSrc\":[513,\"avatar-src\"],\"isSmall\":[516,\"is-small\"],\"bar\":[513],\"isStatic\":[516,\"is-static\"],\"isTouch\":[516,\"is-touch\"],\"url\":[513],\"target\":[513],\"isAutoTouch\":[32],\"isAutoSmall\":[32]},[[0,\"focus\",\"onHostElementFocus\"]]]]],[\"q2-chart-donut.cjs\",[[1,\"q2-chart-donut\",{\"chartName\":[513,\"chart-name\"],\"summaryIcon\":[513,\"summary-icon\"],\"summaryName\":[513,\"summary-name\"],\"innerRadius\":[1025,\"inner-radius\"],\"outerRadius\":[1025,\"outer-radius\"],\"minSliceSize\":[1,\"min-slice-size\"],\"selectedOffset\":[2,\"selected-offset\"],\"hoverScaleSize\":[2,\"hover-scale-size\"],\"format\":[513],\"isClickable\":[516,\"is-clickable\"],\"data\":[16],\"selectedId\":[32],\"hoveredId\":[32],\"selectById\":[64],\"selectByIndex\":[64],\"clearSelection\":[64]},[[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-checkbox.cjs\",[[1,\"q2-checkbox\",{\"checked\":[1540],\"type\":[513],\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"ariaLabel\":[1537,\"aria-label\"],\"indeterminate\":[516],\"disabled\":[516],\"readonly\":[516],\"value\":[513],\"name\":[513],\"hasError\":[516,\"has-error\"],\"groupDisabled\":[516,\"group-disabled\"],\"alignment\":[513],\"description\":[513]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-checkbox-group.cjs\",[[1,\"q2-checkbox-group\",{\"label\":[513],\"value\":[1040],\"disabled\":[516],\"readonly\":[516],\"optional\":[516],\"hasError\":[516,\"has-error\"]},[[0,\"change\",\"onHostElementChange\"]]]]],[\"q2-radio-group.cjs\",[[1,\"q2-radio-group\",{\"label\":[513],\"value\":[1025],\"disabled\":[516],\"name\":[513],\"optional\":[516],\"readonly\":[516],\"tileLayout\":[516,\"tile-layout\"],\"tileAlignment\":[513,\"tile-alignment\"],\"hasError\":[516,\"has-error\"],\"tilelayout\":[516]},[[0,\"change\",\"onHostElementChange\"],[0,\"focus\",\"delegateFocus\"],[0,\"keydown\",\"keydownHandler\"]]]]],[\"q2-stepper-vertical.cjs\",[[1,\"q2-stepper-vertical\",{\"currentStepId\":[1537,\"current-step-id\"],\"structuredPanes\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"focus\",\"delegateFocus\"],[0,\"statusChange\",\"statusChangeHandler\"]]]]],[\"q2-textarea.cjs\",[[1,\"q2-textarea\",{\"value\":[1025],\"label\":[513],\"hideLabel\":[516,\"hide-label\"],\"hideMessages\":[516,\"hide-messages\"],\"optional\":[516],\"placeholder\":[513],\"disabled\":[516],\"readonly\":[516],\"spellcheck\":[516],\"maxlength\":[1538],\"rows\":[514],\"cols\":[514],\"resize\":[513],\"errors\":[16],\"hints\":[16],\"hasFocus\":[32],\"downParams\":[32]},[[0,\"focus\",\"onHostElementFocus\"],[0,\"change\",\"onHostElementChange\"]]]]],[\"q2-carousel-pane.cjs\",[[4,\"q2-carousel-pane\",{\"index\":[2],\"siblingCount\":[2,\"sibling-count\"],\"isActivePane\":[516,\"is-active-pane\"],\"label\":[513]}]]],[\"q2-chart-area.cjs\",[[1,\"q2-chart-area\",{\"data\":[16],\"alignChartName\":[513,\"align-chart-name\"],\"chartName\":[513,\"chart-name\"],\"lineColor\":[513,\"line-color\"],\"pointerLineColor\":[513,\"pointer-line-color\"],\"pointerLineStyle\":[513,\"pointer-line-style\"],\"areaColor\":[513,\"area-color\"],\"dataNamesOverflow\":[513,\"data-names-overflow\"],\"dataNamesWidth\":[514,\"data-names-width\"],\"format\":[513],\"formatModifier\":[513,\"format-modifier\"],\"hideNameAxisLabels\":[516,\"hide-name-axis-labels\"],\"hideValueAxisLabels\":[516,\"hide-value-axis-labels\"],\"offsetDataNames\":[516,\"offset-data-names\"],\"offsetDataValues\":[516,\"offset-data-values\"],\"showChartName\":[516,\"show-chart-name\"],\"showDatapointLabels\":[516,\"show-datapoint-labels\"],\"showGradient\":[516,\"show-gradient\"],\"gridLines\":[513,\"grid-lines\"]}]]],[\"q2-chart-bar.cjs\",[[1,\"q2-chart-bar\",{\"data\":[16],\"alignChartName\":[513,\"align-chart-name\"],\"chartName\":[513,\"chart-name\"],\"color\":[513],\"dataNamesOverflow\":[513,\"data-names-overflow\"],\"dataNamesWidth\":[514,\"data-names-width\"],\"format\":[513],\"formatModifier\":[513,\"format-modifier\"],\"hideBarLabels\":[516,\"hide-bar-labels\"],\"hideValueAxisLabels\":[516,\"hide-value-axis-labels\"],\"offsetDataNames\":[516,\"offset-data-names\"],\"offsetDataValues\":[516,\"offset-data-values\"],\"orientation\":[513],\"showChartName\":[516,\"show-chart-name\"],\"sort\":[516]}]]],[\"q2-loading-element.cjs\",[[0,\"q2-loading-element\",{\"shape\":[513],\"width\":[513],\"height\":[513],\"borderRadius\":[513,\"border-radius\"]}]]],[\"q2-loc.cjs\",[[1,\"q2-loc\",{\"value\":[513],\"substitutions\":[16]}]]],[\"q2-radio.cjs\",[[1,\"q2-radio\",{\"label\":[1537],\"hideLabel\":[516,\"hide-label\"],\"value\":[513],\"disabled\":[516],\"checked\":[516],\"name\":[513],\"ariaLabel\":[1537,\"aria-label\"],\"groupDisabled\":[4,\"group-disabled\"],\"groupReadonly\":[4,\"group-readonly\"],\"groupTileLayout\":[4,\"group-tile-layout\"]},[[0,\"click\",\"onHostClick\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-stepper-pane.cjs\",[[1,\"q2-stepper-pane\",{\"label\":[513],\"description\":[513],\"isActive\":[516,\"is-active\"],\"showWithChildren\":[516,\"show-with-children\"],\"status\":[513],\"isChildActive\":[32]},[[0,\"activeChange\",\"checkForActiveChildren\"]]]]],[\"q2-tab-pane.cjs\",[[1,\"q2-tab-pane\",{\"value\":[513],\"label\":[513],\"name\":[513],\"selected\":[516],\"badgeCount\":[514,\"badge-count\"],\"badgeDescription\":[513,\"badge-description\"],\"index\":[2],\"guid\":[2]}]]],[\"q2-tooltip.cjs\",[[1,\"q2-tooltip\",{\"label\":[513],\"block\":[516],\"multiline\":[516],\"persistent\":[516],\"immediate\":[516],\"position\":[513],\"focusClass\":[32]},[[0,\"keyup\",\"keyUpHandler\"],[2,\"focus\",\"focusHandler\"],[0,\"focusout\",\"focusOutHandler\"]]]]],[\"tecton-tab-pane.cjs\",[[1,\"tecton-tab-pane\",{\"value\":[513],\"label\":[513],\"name\":[513],\"selected\":[516],\"index\":[2],\"guid\":[2],\"provided\":[516],\"url\":[513],\"moduleId\":[513,\"module-id\"],\"minHeight\":[513,\"min-height\"],\"badgeCount\":[514,\"badge-count\"],\"badgeDescription\":[513,\"badge-description\"],\"authPayload\":[16],\"showForm\":[4,\"show-form\"],\"_showForm\":[32]}]]],[\"q2-dropdown-item.cjs\",[[1,\"q2-dropdown-item\",{\"disabled\":[516],\"removable\":[516],\"separator\":[516],\"label\":[513],\"ariaLabel\":[513,\"aria-label\"],\"value\":[513]},[[0,\"focus\",\"onHostElementFocus\"]]]]],[\"q2-avatar.cjs\",[[1,\"q2-avatar\",{\"name\":[513],\"initials\":[513],\"src\":[513],\"icon\":[1],\"badSrc\":[32],\"isLoaded\":[32]}]]],[\"q2-optgroup_2.cjs\",[[1,\"q2-option\",{\"role\":[513],\"display\":[1025],\"value\":[513],\"disabled\":[516],\"disabledGroup\":[516,\"disabled-group\"],\"selected\":[516],\"hidden\":[516],\"multiline\":[516],\"active\":[516],\"_multiSelectHidden\":[516,\"_multiselecthidden\"]}],[1,\"q2-optgroup\",{\"disabled\":[516],\"label\":[513],\"hidden\":[32]}]]],[\"q2-message.cjs\",[[1,\"q2-message\",{\"type\":[513],\"appearance\":[513],\"description\":[516],\"presentToggle\":[32],\"present\":[64]},[[0,\"focus\",\"delegateFocus\"]]]]],[\"click-elsewhere.cjs\",[[0,\"click-elsewhere\"]]],[\"q2-option-list_2.cjs\",[[1,\"q2-popover\",{\"direction\":[513],\"align\":[513],\"open\":[1540],\"block\":[516],\"minHeight\":[2,\"min-height\"],\"controlElement\":[16],\"privateDirection\":[32],\"show\":[32],\"toggle\":[64]},[[0,\"popoverState\",\"popoverStateHandler\"]]],[1,\"q2-option-list\",{\"role\":[513],\"customSearch\":[516,\"custom-search\"],\"noSelect\":[516,\"no-select\"],\"align\":[513],\"selectedOptions\":[1040],\"multiple\":[516],\"disabled\":[516],\"showSelected\":[1540,\"show-selected\"],\"type\":[1],\"hasOptions\":[32],\"setDefaultActiveElement\":[64],\"setActiveElement\":[64],\"handleExternalKeydown\":[64],\"getContents\":[64],\"getOptions\":[64]},[[0,\"focus\",\"delegateFocus\"],[0,\"click\",\"handleClick\"]]]]],[\"q2-btn_2.cjs\",[[1,\"q2-btn\",{\"ariaExpanded\":[1,\"aria-expanded\"],\"ariaHasPopup\":[1,\"aria-has-popup\"],\"ariaControls\":[1,\"aria-controls\"],\"ariaSelected\":[1,\"aria-selected\"],\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"ariaLabel\":[1537,\"aria-label\"],\"tabIndex\":[2,\"tab-index\"],\"intent\":[513],\"color\":[513],\"disabled\":[516],\"type\":[513],\"loading\":[516],\"badge\":[516],\"active\":[516],\"fab\":[516],\"block\":[516],\"iconPosition\":[32]},[[2,\"click\",\"disable\"],[0,\"focus\",\"delegateFocus\"]]],[1,\"q2-loading\",{\"type\":[513],\"shape\":[513],\"modifiers\":[513],\"counts\":[513],\"label\":[1537],\"ariaLabel\":[513,\"aria-label\"],\"inline\":[516]}]]],[\"q2-badge_2.cjs\",[[1,\"q2-input\",{\"value\":[1025],\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"type\":[513],\"placeholder\":[513],\"disabled\":[516],\"autocomplete\":[513],\"autocorrect\":[513],\"autocapitalize\":[513],\"hideMessages\":[516,\"hide-messages\"],\"iconLeft\":[513,\"icon-left\"],\"iconRight\":[513,\"icon-right\"],\"readonly\":[516],\"clearable\":[516],\"optional\":[516],\"min\":[514],\"max\":[514],\"step\":[514],\"formatModifier\":[513,\"format-modifier\"],\"maxlength\":[1538],\"pseudo\":[516],\"showVisibilityToggle\":[516,\"show-visibility-toggle\"],\"textHidden\":[1540,\"text-hidden\"],\"badgeValue\":[513,\"badge-value\"],\"badgeTheme\":[513,\"badge-theme\"],\"ariaControls\":[1,\"aria-controls\"],\"role\":[1],\"ariaOwns\":[1,\"aria-owns\"],\"ariaLabel\":[1537,\"aria-label\"],\"ariaHaspopup\":[1,\"aria-haspopup\"],\"ariaExpanded\":[1,\"aria-expanded\"],\"ariaActivedescendant\":[8,\"aria-activedescendant\"],\"current\":[1],\"errors\":[16],\"hints\":[16],\"formattedValueObject\":[32],\"hasFocus\":[32]},[[0,\"focus\",\"onHostElementFocus\"],[0,\"change\",\"onHostElementChange\"]]],[1,\"q2-badge\",{\"value\":[514],\"maxLength\":[514,\"max-length\"],\"position\":[513],\"size\":[513],\"theme\":[513],\"status\":[513]}]]]]"), options);
|
|
18
|
+
return index.bootstrapLazy(JSON.parse("[[\"q2-icon.cjs\",[[1,\"q2-icon\",{\"type\":[513],\"label\":[513],\"inline\":[516]}]]],[\"q2-select.cjs\",[[1,\"q2-select\",{\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"value\":[1025],\"ariaLabel\":[1537,\"aria-label\"],\"selectedOptions\":[1040],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"listLabel\":[1,\"list-label\"],\"errors\":[16],\"multiple\":[516],\"minRows\":[2,\"min-rows\"],\"popDirection\":[513,\"pop-direction\"],\"searchable\":[516],\"multilineOptions\":[516,\"multiline-options\"],\"optional\":[516],\"placeholder\":[513],\"hoist\":[4],\"open\":[32],\"showSelected\":[32],\"searchText\":[32],\"hasCustomDisplay\":[32],\"inputFocused\":[32],\"statusMessage\":[32],\"prioritizeSearch\":[32],\"structuredSelectedOptions\":[32]},[[0,\"keydown\",\"keydownHandler\"],[0,\"change\",\"onHostElementChange\"],[0,\"input\",\"onHostElementInput\"],[0,\"focus\",\"delegateFocus\"],[0,\"focusout\",\"handleFocusout\"]]]]],[\"q2-action-sheet.cjs\",[[1,\"q2-action-sheet\",{\"data\":[1040],\"hideClose\":[4,\"hide-close\"],\"isScrollable\":[32],\"renderStatus\":[32],\"hide\":[64],\"show\":[64]}]]],[\"q2-calendar.cjs\",[[1,\"q2-calendar\",{\"value\":[1537],\"label\":[513],\"hideLabel\":[516,\"hide-label\"],\"ariaLabel\":[513,\"aria-label\"],\"optional\":[516],\"disabled\":[516],\"readonly\":[516],\"invalid\":[1540],\"typeable\":[516],\"clearable\":[516],\"placeholder\":[513],\"buttonLabel\":[513,\"button-label\"],\"disabledMsg\":[513,\"disabled-msg\"],\"calendarLabel\":[513,\"calendar-label\"],\"disclaimer\":[513],\"displayFormat\":[513,\"display-format\"],\"startDate\":[513,\"start-date\"],\"endDate\":[513,\"end-date\"],\"cutoffTime\":[513,\"cutoff-time\"],\"daysOfWeekChecksum\":[514,\"days-of-week-checksum\"],\"popDirection\":[513,\"pop-direction\"],\"assume\":[513],\"errors\":[1040],\"invalidDates\":[16],\"validDates\":[16],\"onsuccess\":[16],\"dropdownOpen\":[32],\"keyboardSelection\":[32],\"typedValue\":[32],\"dateList\":[32],\"hintMessage\":[32],\"hintMessageType\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"error\",\"defaultErrorHandler\"],[0,\"success\",\"defaultSuccessHandler\"],[0,\"focus\",\"delegateFocus\"],[0,\"clear\",\"handleClear\"]]]]],[\"q2-dropdown.cjs\",[[1,\"q2-dropdown\",{\"type\":[513],\"icon\":[513],\"label\":[513],\"hideLabel\":[516,\"hide-label\"],\"ariaLabel\":[1537,\"aria-label\"],\"disabled\":[516],\"popDirection\":[513,\"pop-direction\"],\"name\":[513],\"context\":[513],\"contextValue\":[513,\"context-value\"],\"resolvedType\":[513,\"resolved-type\"],\"block\":[516],\"dropdownOpen\":[32]},[[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-editable-field.cjs\",[[1,\"q2-editable-field\",{\"value\":[1537],\"editing\":[1540],\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"ariaLabel\":[1537,\"aria-label\"],\"type\":[513],\"formatModifier\":[513,\"format-modifier\"],\"truncated\":[513],\"maxlength\":[514],\"persistentLabel\":[516,\"persistent-label\"],\"disabled\":[516],\"hints\":[16],\"errors\":[16]},[[0,\"change\",\"onHostElementChange\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-pagination.cjs\",[[1,\"q2-pagination\",{\"recordType\":[1,\"record-type\"],\"perPage\":[2,\"per-page\"],\"total\":[514],\"page\":[1538],\"pages\":[1538],\"recordsOnly\":[1540,\"records-only\"],\"pagesOnly\":[1540,\"pages-only\"],\"isSmall\":[32]},[[0,\"focus\",\"onHostElementFocus\"]]]]],[\"q2-pill.cjs\",[[1,\"q2-pill\",{\"hoist\":[4],\"disabled\":[516],\"active\":[1540],\"open\":[1540],\"multiple\":[516],\"maxLength\":[514,\"max-length\"],\"label\":[513],\"value\":[513],\"theme\":[513],\"selectedOptions\":[1040],\"popoverMinHeight\":[2,\"popover-min-height\"],\"popoverDirection\":[1,\"popover-direction\"],\"hasOptions\":[32],\"selectedOptionElements\":[32]},[[0,\"focus\",\"delegateFocus\"],[0,\"popoverStateChanged\",\"popoverStateHandler\"]]]]],[\"q2-tab-container.cjs\",[[1,\"q2-tab-container\",{\"value\":[1537],\"type\":[513],\"name\":[513],\"color\":[513],\"noPrint\":[516,\"no-print\"],\"hasLeft\":[32],\"hasRight\":[32],\"scrollEnabled\":[32],\"showScrollLeft\":[32],\"showScrollRight\":[32],\"tabs\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[9,\"resize\",\"onResize\"],[0,\"focus\",\"onFocus\"],[0,\"badge\",\"onBadge\"]]]]],[\"q2-tag.cjs\",[[1,\"q2-tag\",{\"hoist\":[4],\"open\":[1540],\"label\":[513],\"theme\":[513],\"popoverMinHeight\":[2,\"popover-min-height\"],\"popoverDirection\":[1,\"popover-direction\"],\"hasOptions\":[32]},[[0,\"focus\",\"delegateFocus\"],[0,\"popoverStateChanged\",\"popoverStateHandler\"]]]]],[\"q2-carousel.cjs\",[[4,\"q2-carousel\",{\"autoPlay\":[516,\"auto-play\"],\"fullWidthPanes\":[516,\"full-width-panes\"],\"hidePagination\":[516,\"hide-pagination\"],\"showNavigationArrows\":[516,\"show-navigation-arrows\"],\"ariaLabel\":[513,\"aria-label\"],\"label\":[513],\"index\":[1538],\"universalCarouselOptions\":[32],\"fullWidthDisplayOptions\":[32],\"activePaneIndex\":[32],\"applyFocus\":[32],\"applyPaginationFocus\":[32],\"autoPlayInProgress\":[32],\"compactMode\":[32],\"carouselWrapperWidth\":[32]},[[0,\"change\",\"onHostElementChange\"],[0,\"clickCarouselPane\",\"carouselPaneClicked\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-month-picker.cjs\",[[1,\"q2-month-picker\",{\"year\":[1538],\"disabledMonths\":[16],\"today\":[1],\"selectedIndex\":[32],\"focusedIndex\":[32],\"showYearLayer\":[32]}]]],[\"q2-section.cjs\",[[1,\"q2-section\",{\"label\":[513],\"collapsible\":[516],\"noCollapseIcon\":[516,\"no-collapse-icon\"],\"expanded\":[1540],\"contentHeight\":[32],\"hideContent\":[32],\"hasYieldedHeader\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-stepper.cjs\",[[1,\"q2-stepper\",{\"currentStep\":[1538,\"current-step\"],\"stepCount\":[1026,\"step-count\"],\"lastEnabledStep\":[1026,\"last-enabled-step\"],\"scrollEnabled\":[32],\"showScrollLeft\":[32],\"showScrollRight\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"focus\",\"delegateFocus\"],[0,\"statusChange\",\"statusChangeHandler\"]]]]],[\"q2-card.cjs\",[[1,\"q2-card\",{\"title\":[513],\"description\":[513],\"avatarName\":[513,\"avatar-name\"],\"avatarInitials\":[513,\"avatar-initials\"],\"avatarIcon\":[513,\"avatar-icon\"],\"avatarSrc\":[513,\"avatar-src\"],\"isSmall\":[516,\"is-small\"],\"bar\":[513],\"isStatic\":[516,\"is-static\"],\"isTouch\":[516,\"is-touch\"],\"url\":[513],\"target\":[513],\"isAutoTouch\":[32],\"isAutoSmall\":[32]},[[0,\"focus\",\"onHostElementFocus\"]]]]],[\"q2-chart-donut.cjs\",[[1,\"q2-chart-donut\",{\"chartName\":[513,\"chart-name\"],\"summaryIcon\":[513,\"summary-icon\"],\"summaryName\":[513,\"summary-name\"],\"innerRadius\":[1025,\"inner-radius\"],\"outerRadius\":[1025,\"outer-radius\"],\"minSliceSize\":[1,\"min-slice-size\"],\"selectedOffset\":[2,\"selected-offset\"],\"hoverScaleSize\":[2,\"hover-scale-size\"],\"format\":[513],\"isClickable\":[516,\"is-clickable\"],\"data\":[16],\"selectedId\":[32],\"hoveredId\":[32],\"selectById\":[64],\"selectByIndex\":[64],\"clearSelection\":[64]},[[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-checkbox.cjs\",[[1,\"q2-checkbox\",{\"checked\":[1540],\"type\":[513],\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"ariaLabel\":[1537,\"aria-label\"],\"indeterminate\":[516],\"disabled\":[516],\"readonly\":[516],\"value\":[513],\"name\":[513],\"hasError\":[516,\"has-error\"],\"groupDisabled\":[516,\"group-disabled\"],\"alignment\":[513],\"description\":[513]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-checkbox-group.cjs\",[[1,\"q2-checkbox-group\",{\"label\":[513],\"value\":[1040],\"disabled\":[516],\"readonly\":[516],\"optional\":[516],\"hasError\":[516,\"has-error\"]},[[0,\"change\",\"onHostElementChange\"]]]]],[\"q2-radio-group.cjs\",[[1,\"q2-radio-group\",{\"label\":[513],\"value\":[1025],\"disabled\":[516],\"name\":[513],\"optional\":[516],\"readonly\":[516],\"tileLayout\":[516,\"tile-layout\"],\"tileAlignment\":[513,\"tile-alignment\"],\"hasError\":[516,\"has-error\"],\"tilelayout\":[516]},[[0,\"change\",\"onHostElementChange\"],[0,\"focus\",\"delegateFocus\"],[0,\"keydown\",\"keydownHandler\"]]]]],[\"q2-stepper-vertical.cjs\",[[1,\"q2-stepper-vertical\",{\"currentStepId\":[1537,\"current-step-id\"],\"structuredPanes\":[32]},[[0,\"change\",\"defaultChangeHandler\"],[0,\"focus\",\"delegateFocus\"],[0,\"statusChange\",\"statusChangeHandler\"]]]]],[\"q2-textarea.cjs\",[[1,\"q2-textarea\",{\"value\":[1025],\"label\":[513],\"hideLabel\":[516,\"hide-label\"],\"hideMessages\":[516,\"hide-messages\"],\"optional\":[516],\"placeholder\":[513],\"disabled\":[516],\"readonly\":[516],\"spellcheck\":[516],\"maxlength\":[1538],\"rows\":[514],\"cols\":[514],\"resize\":[513],\"errors\":[16],\"hints\":[16],\"hasFocus\":[32],\"downParams\":[32]},[[0,\"focus\",\"onHostElementFocus\"],[0,\"change\",\"onHostElementChange\"]]]]],[\"q2-carousel-pane.cjs\",[[4,\"q2-carousel-pane\",{\"index\":[2],\"siblingCount\":[2,\"sibling-count\"],\"isActivePane\":[516,\"is-active-pane\"],\"label\":[513]}]]],[\"q2-chart-area.cjs\",[[1,\"q2-chart-area\",{\"data\":[16],\"alignChartName\":[513,\"align-chart-name\"],\"chartName\":[513,\"chart-name\"],\"lineColor\":[513,\"line-color\"],\"pointerLineColor\":[513,\"pointer-line-color\"],\"pointerLineStyle\":[513,\"pointer-line-style\"],\"areaColor\":[513,\"area-color\"],\"dataNamesOverflow\":[513,\"data-names-overflow\"],\"dataNamesWidth\":[514,\"data-names-width\"],\"format\":[513],\"formatModifier\":[513,\"format-modifier\"],\"hideNameAxisLabels\":[516,\"hide-name-axis-labels\"],\"hideValueAxisLabels\":[516,\"hide-value-axis-labels\"],\"offsetDataNames\":[516,\"offset-data-names\"],\"offsetDataValues\":[516,\"offset-data-values\"],\"showChartName\":[516,\"show-chart-name\"],\"showDatapointLabels\":[516,\"show-datapoint-labels\"],\"showGradient\":[516,\"show-gradient\"],\"gridLines\":[513,\"grid-lines\"]}]]],[\"q2-chart-bar.cjs\",[[1,\"q2-chart-bar\",{\"data\":[16],\"alignChartName\":[513,\"align-chart-name\"],\"chartName\":[513,\"chart-name\"],\"color\":[513],\"dataNamesOverflow\":[513,\"data-names-overflow\"],\"dataNamesWidth\":[514,\"data-names-width\"],\"format\":[513],\"formatModifier\":[513,\"format-modifier\"],\"hideBarLabels\":[516,\"hide-bar-labels\"],\"hideValueAxisLabels\":[516,\"hide-value-axis-labels\"],\"offsetDataNames\":[516,\"offset-data-names\"],\"offsetDataValues\":[516,\"offset-data-values\"],\"orientation\":[513],\"showChartName\":[516,\"show-chart-name\"],\"sort\":[516]}]]],[\"q2-loading-element.cjs\",[[0,\"q2-loading-element\",{\"shape\":[513],\"width\":[513],\"height\":[513],\"borderRadius\":[513,\"border-radius\"]}]]],[\"q2-loc.cjs\",[[1,\"q2-loc\",{\"value\":[513],\"substitutions\":[16]}]]],[\"q2-radio.cjs\",[[1,\"q2-radio\",{\"label\":[1537],\"hideLabel\":[516,\"hide-label\"],\"value\":[513],\"disabled\":[516],\"checked\":[516],\"name\":[513],\"ariaLabel\":[1537,\"aria-label\"],\"groupDisabled\":[4,\"group-disabled\"],\"groupReadonly\":[4,\"group-readonly\"],\"groupTileLayout\":[4,\"group-tile-layout\"]},[[0,\"click\",\"onHostClick\"],[0,\"focus\",\"delegateFocus\"]]]]],[\"q2-stepper-pane.cjs\",[[1,\"q2-stepper-pane\",{\"label\":[513],\"description\":[513],\"isActive\":[516,\"is-active\"],\"showWithChildren\":[516,\"show-with-children\"],\"status\":[513],\"isChildActive\":[32]},[[0,\"activeChange\",\"checkForActiveChildren\"]]]]],[\"q2-tab-pane.cjs\",[[1,\"q2-tab-pane\",{\"value\":[513],\"label\":[513],\"name\":[513],\"selected\":[516],\"badgeCount\":[514,\"badge-count\"],\"badgeDescription\":[513,\"badge-description\"],\"index\":[2],\"guid\":[2]}]]],[\"q2-tooltip.cjs\",[[1,\"q2-tooltip\",{\"label\":[513],\"block\":[516],\"multiline\":[516],\"persistent\":[516],\"immediate\":[516],\"position\":[513],\"focusClass\":[32]},[[0,\"keyup\",\"keyUpHandler\"],[2,\"focus\",\"focusHandler\"],[0,\"focusout\",\"focusOutHandler\"]]]]],[\"tecton-tab-pane.cjs\",[[1,\"tecton-tab-pane\",{\"value\":[513],\"label\":[513],\"name\":[513],\"selected\":[516],\"index\":[2],\"guid\":[2],\"provided\":[516],\"url\":[513],\"moduleId\":[513,\"module-id\"],\"minHeight\":[513,\"min-height\"],\"badgeCount\":[514,\"badge-count\"],\"badgeDescription\":[513,\"badge-description\"],\"authPayload\":[16],\"showForm\":[4,\"show-form\"],\"_showForm\":[32]}]]],[\"q2-dropdown-item.cjs\",[[1,\"q2-dropdown-item\",{\"disabled\":[516],\"removable\":[516],\"separator\":[516],\"label\":[513],\"ariaLabel\":[513,\"aria-label\"],\"value\":[513]},[[0,\"focus\",\"onHostElementFocus\"]]]]],[\"q2-avatar.cjs\",[[1,\"q2-avatar\",{\"name\":[513],\"initials\":[513],\"src\":[513],\"icon\":[1],\"badSrc\":[32],\"isLoaded\":[32]}]]],[\"q2-optgroup_2.cjs\",[[1,\"q2-option\",{\"role\":[513],\"display\":[1025],\"value\":[513],\"disabled\":[516],\"disabledGroup\":[516,\"disabled-group\"],\"selected\":[516],\"hidden\":[516],\"multiline\":[516],\"active\":[516],\"_multiSelectHidden\":[516,\"_multiselecthidden\"]}],[1,\"q2-optgroup\",{\"disabled\":[516],\"label\":[513],\"hidden\":[32]}]]],[\"q2-message.cjs\",[[1,\"q2-message\",{\"type\":[513],\"appearance\":[513],\"description\":[516],\"presentToggle\":[32],\"present\":[64]},[[0,\"focus\",\"delegateFocus\"]]]]],[\"click-elsewhere.cjs\",[[0,\"click-elsewhere\"]]],[\"q2-option-list_2.cjs\",[[1,\"q2-popover\",{\"direction\":[513],\"align\":[513],\"open\":[1540],\"block\":[516],\"minHeight\":[2,\"min-height\"],\"controlElement\":[16],\"currentDirection\":[32],\"show\":[32],\"toggle\":[64]},[[0,\"popoverState\",\"popoverStateHandler\"]]],[1,\"q2-option-list\",{\"customSearch\":[516,\"custom-search\"],\"noSelect\":[516,\"no-select\"],\"align\":[513],\"selectedOptions\":[1040],\"multiple\":[516],\"disabled\":[516],\"showSelected\":[1540,\"show-selected\"],\"type\":[1],\"label\":[1],\"hasOptions\":[32],\"setDefaultActiveElement\":[64],\"setActiveElement\":[64],\"handleExternalKeydown\":[64],\"getContents\":[64],\"getOptions\":[64]},[[0,\"focus\",\"delegateFocus\"],[0,\"click\",\"handleClick\"]]]]],[\"q2-btn_2.cjs\",[[1,\"q2-btn\",{\"ariaExpanded\":[1,\"aria-expanded\"],\"ariaHasPopup\":[1,\"aria-has-popup\"],\"ariaControls\":[1,\"aria-controls\"],\"ariaSelected\":[1,\"aria-selected\"],\"ariaPressed\":[1,\"aria-pressed\"],\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"ariaLabel\":[1537,\"aria-label\"],\"tabIndex\":[2,\"tab-index\"],\"intent\":[513],\"color\":[513],\"disabled\":[516],\"type\":[513],\"loading\":[516],\"badge\":[516],\"active\":[516],\"fab\":[516],\"block\":[516],\"iconPosition\":[32]},[[2,\"click\",\"disable\"],[0,\"focus\",\"delegateFocus\"]]],[1,\"q2-loading\",{\"type\":[513],\"shape\":[513],\"modifiers\":[513],\"counts\":[513],\"label\":[1537],\"ariaLabel\":[513,\"aria-label\"],\"inline\":[516]}]]],[\"q2-badge_2.cjs\",[[1,\"q2-input\",{\"value\":[1025],\"label\":[1537],\"hideLabel\":[1540,\"hide-label\"],\"type\":[513],\"placeholder\":[513],\"disabled\":[516],\"autocomplete\":[513],\"autocorrect\":[513],\"autocapitalize\":[513],\"hideMessages\":[516,\"hide-messages\"],\"iconLeft\":[513,\"icon-left\"],\"iconRight\":[513,\"icon-right\"],\"readonly\":[516],\"clearable\":[516],\"optional\":[516],\"min\":[514],\"max\":[514],\"step\":[514],\"formatModifier\":[513,\"format-modifier\"],\"maxlength\":[1538],\"pseudo\":[516],\"showVisibilityToggle\":[516,\"show-visibility-toggle\"],\"textHidden\":[1540,\"text-hidden\"],\"badgeValue\":[513,\"badge-value\"],\"badgeTheme\":[513,\"badge-theme\"],\"role\":[1],\"ariaControls\":[1,\"aria-controls\"],\"ariaOwns\":[1,\"aria-owns\"],\"ariaLabel\":[1537,\"aria-label\"],\"ariaHaspopup\":[1,\"aria-haspopup\"],\"ariaExpanded\":[1,\"aria-expanded\"],\"ariaActivedescendant\":[8,\"aria-activedescendant\"],\"current\":[1],\"errors\":[16],\"hints\":[16],\"formattedValueObject\":[32],\"hasFocus\":[32]},[[0,\"focus\",\"onHostElementFocus\"],[0,\"change\",\"onHostElementChange\"]]],[1,\"q2-badge\",{\"value\":[514],\"maxLength\":[514,\"max-length\"],\"position\":[513],\"size\":[513],\"theme\":[513],\"status\":[513]}]]]]"), options);
|
|
19
19
|
});
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"./components/q2-checkbox/index.js",
|
|
7
7
|
"./components/q2-dropdown/index.js",
|
|
8
8
|
"./components/q2-chart-donut/index.js",
|
|
9
|
+
"./components/q2-badge/index.js",
|
|
9
10
|
"./components/q2-option-list/index.js",
|
|
10
11
|
"./components/q2-stepper-pane/index.js",
|
|
11
12
|
"./components/q2-dropdown-item/index.js",
|
|
@@ -18,7 +19,6 @@
|
|
|
18
19
|
"./components/click-elsewhere/index.js",
|
|
19
20
|
"./components/q2-action-sheet/index.js",
|
|
20
21
|
"./components/q2-avatar/index.js",
|
|
21
|
-
"./components/q2-badge/index.js",
|
|
22
22
|
"./components/q2-calendar/q2-month-picker.js",
|
|
23
23
|
"./components/q2-card/index.js",
|
|
24
24
|
"./components/q2-carousel-pane/index.js",
|
|
@@ -9,6 +9,7 @@ export class Q2Btn {
|
|
|
9
9
|
this.ariaHasPopup = undefined;
|
|
10
10
|
this.ariaControls = undefined;
|
|
11
11
|
this.ariaSelected = undefined;
|
|
12
|
+
this.ariaPressed = undefined;
|
|
12
13
|
this.label = undefined;
|
|
13
14
|
this.hideLabel = undefined;
|
|
14
15
|
this.ariaLabel = undefined;
|
|
@@ -73,19 +74,20 @@ export class Q2Btn {
|
|
|
73
74
|
this.iconPosition = iconPosition;
|
|
74
75
|
}
|
|
75
76
|
render() {
|
|
76
|
-
const { ariaExpanded, ariaHasPopup, ariaSelected, disabled, type, tabindex } = this.buttonAttributes;
|
|
77
|
+
const { ariaExpanded, ariaHasPopup, ariaSelected, ariaPressed, disabled, type, tabindex } = this.buttonAttributes;
|
|
77
78
|
const { iconPosition, loading, badge, label, hideLabel } = this;
|
|
78
79
|
const renderLoadingSpinner = iconPosition || loading;
|
|
79
80
|
const isLoadingSpinnerInline = !iconPosition || badge;
|
|
80
|
-
return (h("button", { "aria-expanded": ariaExpanded, "aria-haspopup": ariaHasPopup, "aria-label": hideLabel && loc(label), "aria-selected": ariaSelected, disabled: disabled, type: type, tabindex: tabindex, "test-id": "q2BtnInnerButton", class: iconPosition ? `icon-${iconPosition}` : '' }, h("div", null, renderLoadingSpinner && (h("q2-loading", { hidden: !loading, modifiers: isLoadingSpinnerInline ? 'inline' : undefined })), !hideLabel && label ? loc(label) : h("slot", { onSlotchange: this.handleSlotChange }))));
|
|
81
|
+
return (h("button", { "aria-expanded": ariaExpanded, "aria-haspopup": ariaHasPopup, "aria-label": hideLabel && loc(label), "aria-selected": ariaSelected, "aria-pressed": ariaPressed, disabled: disabled, type: type, tabindex: tabindex, "test-id": "q2BtnInnerButton", class: iconPosition ? `icon-${iconPosition}` : '' }, h("div", null, renderLoadingSpinner && (h("q2-loading", { hidden: !loading, modifiers: isLoadingSpinnerInline ? 'inline' : undefined })), !hideLabel && label ? loc(label) : h("slot", { onSlotchange: this.handleSlotChange }))));
|
|
81
82
|
}
|
|
82
83
|
get buttonAttributes() {
|
|
83
|
-
var _a, _b, _c;
|
|
84
|
+
var _a, _b, _c, _d;
|
|
84
85
|
return {
|
|
85
86
|
ariaExpanded: this.ariaExpanded !== undefined ? `${((_a = this.ariaExpanded) === null || _a === void 0 ? void 0 : _a.toString()) === 'true'}` : undefined,
|
|
86
87
|
ariaHasPopup: this.ariaHasPopup !== undefined ? `${((_b = this.ariaHasPopup) === null || _b === void 0 ? void 0 : _b.toString()) === 'true'}` : undefined,
|
|
87
88
|
ariaLabel: this.label && this.hideLabel ? loc(this.label) : undefined,
|
|
88
89
|
ariaSelected: this.ariaSelected !== undefined ? `${((_c = this.ariaSelected) === null || _c === void 0 ? void 0 : _c.toString()) === 'true'}` : undefined,
|
|
90
|
+
ariaPressed: this.ariaPressed !== undefined ? `${((_d = this.ariaPressed) === null || _d === void 0 ? void 0 : _d.toString()) === 'true'}` : undefined,
|
|
89
91
|
disabled: this.disabled || false,
|
|
90
92
|
type: this.type || 'button',
|
|
91
93
|
tabindex: this.tabIndex || undefined,
|
|
@@ -173,6 +175,23 @@ export class Q2Btn {
|
|
|
173
175
|
"attribute": "aria-selected",
|
|
174
176
|
"reflect": false
|
|
175
177
|
},
|
|
178
|
+
"ariaPressed": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"mutable": false,
|
|
181
|
+
"complexType": {
|
|
182
|
+
"original": "string",
|
|
183
|
+
"resolved": "string",
|
|
184
|
+
"references": {}
|
|
185
|
+
},
|
|
186
|
+
"required": false,
|
|
187
|
+
"optional": false,
|
|
188
|
+
"docs": {
|
|
189
|
+
"tags": [],
|
|
190
|
+
"text": ""
|
|
191
|
+
},
|
|
192
|
+
"attribute": "aria-pressed",
|
|
193
|
+
"reflect": false
|
|
194
|
+
},
|
|
176
195
|
"label": {
|
|
177
196
|
"type": "string",
|
|
178
197
|
"mutable": true,
|
|
@@ -97,8 +97,8 @@ export class Q2Input {
|
|
|
97
97
|
this.textHidden = undefined;
|
|
98
98
|
this.badgeValue = undefined;
|
|
99
99
|
this.badgeTheme = undefined;
|
|
100
|
-
this.ariaControls = undefined;
|
|
101
100
|
this.role = undefined;
|
|
101
|
+
this.ariaControls = undefined;
|
|
102
102
|
this.ariaOwns = undefined;
|
|
103
103
|
this.ariaLabel = undefined;
|
|
104
104
|
this.ariaHaspopup = undefined;
|
|
@@ -362,7 +362,7 @@ export class Q2Input {
|
|
|
362
362
|
}
|
|
363
363
|
/* tslint:disable:cyclomatic-complexity */
|
|
364
364
|
inputContainerDOM() {
|
|
365
|
-
return (h("div", { class: "input-container" }, h("div", { class: "input-icons-container-left" }, this.formattedValueObject.prefix && (h("span", { class: "input-prefix" }, this.formattedValueObject.prefix)), this.computedIconLeft && (h("q2-icon", { type: this.computedIconLeft, class: this.computedClassForIconLeft })), this.showIconSeparator && h("div", { class: "vertical-separator" }), this.hasError && this.type === 'currency' && (h("q2-icon", { type: "error", class: "icon-error" }))), this.pseudo ? this.pseudoInputDOM() : this.standardInputDOM(), h("div", { class: "input-icons-container-right" }, this.canClear && (h("q2-btn", { class: "btn-clear", ariaLabel: loc('tecton.element.input.clear', [this.label]), "test-id": "clearButton", onClick: this.onClearInput }, h("q2-icon", { type: "close", class: "icon-clear" }))), ['password', 'text', 'ssn'].includes(this.type) && this.showVisibilityToggle && (h("q2-btn", { class: "btn-visibility-toggle", "test-id": "toggleVisibilityButton", onClick: this.onToggleVisibility }, this.visibilityToggleText)), this.formattedValueObject.suffix && (h("span", { class: "input-suffix" }, this.formattedValueObject.suffix)), this.badgeValue && (h("q2-badge", { size: "large", theme: this.badgeTheme }, this.badgeValue)), this.iconRight && !this.formattedValueObject.suffix && (h("q2-icon", { type: this.iconRight, class: "icon-right" })), this.hasError && this.type !== 'currency' && (h("q2-icon", { type: "error", class: "icon-error" })))));
|
|
365
|
+
return (h("div", { class: "input-container", tabindex: -1 }, h("div", { class: "input-icons-container-left" }, this.formattedValueObject.prefix && (h("span", { class: "input-prefix" }, this.formattedValueObject.prefix)), this.computedIconLeft && (h("q2-icon", { type: this.computedIconLeft, class: this.computedClassForIconLeft })), this.showIconSeparator && h("div", { class: "vertical-separator" }), this.hasError && this.type === 'currency' && (h("q2-icon", { type: "error", class: "icon-error" }))), this.pseudo ? this.pseudoInputDOM() : this.standardInputDOM(), h("div", { class: "input-icons-container-right" }, this.canClear && (h("q2-btn", { class: "btn-clear", ariaLabel: loc('tecton.element.input.clear', [this.label]), "test-id": "clearButton", onClick: this.onClearInput }, h("q2-icon", { type: "close", class: "icon-clear" }))), ['password', 'text', 'ssn'].includes(this.type) && this.showVisibilityToggle && (h("q2-btn", { class: "btn-visibility-toggle", "test-id": "toggleVisibilityButton", onClick: this.onToggleVisibility }, this.visibilityToggleText)), this.formattedValueObject.suffix && (h("span", { class: "input-suffix" }, this.formattedValueObject.suffix)), this.badgeValue && (h("q2-badge", { size: "large", theme: this.badgeTheme }, this.badgeValue)), this.iconRight && !this.formattedValueObject.suffix && (h("q2-icon", { type: this.iconRight, class: "icon-right" })), this.hasError && this.type !== 'currency' && (h("q2-icon", { type: "error", class: "icon-error" })))));
|
|
366
366
|
}
|
|
367
367
|
/* tslint:enable:cyclomatic-complexity */
|
|
368
368
|
/* tslint:disable:cyclomatic-complexity */
|
|
@@ -857,9 +857,14 @@ export class Q2Input {
|
|
|
857
857
|
"type": "string",
|
|
858
858
|
"mutable": false,
|
|
859
859
|
"complexType": {
|
|
860
|
-
"original": "'
|
|
860
|
+
"original": "Q2Badge['theme']",
|
|
861
861
|
"resolved": "\"primary\" | \"secondary\" | \"tertiary\"",
|
|
862
|
-
"references": {
|
|
862
|
+
"references": {
|
|
863
|
+
"Q2Badge": {
|
|
864
|
+
"location": "import",
|
|
865
|
+
"path": "../q2-badge"
|
|
866
|
+
}
|
|
867
|
+
}
|
|
863
868
|
},
|
|
864
869
|
"required": false,
|
|
865
870
|
"optional": false,
|
|
@@ -870,7 +875,7 @@ export class Q2Input {
|
|
|
870
875
|
"attribute": "badge-theme",
|
|
871
876
|
"reflect": true
|
|
872
877
|
},
|
|
873
|
-
"
|
|
878
|
+
"role": {
|
|
874
879
|
"type": "string",
|
|
875
880
|
"mutable": false,
|
|
876
881
|
"complexType": {
|
|
@@ -884,10 +889,10 @@ export class Q2Input {
|
|
|
884
889
|
"tags": [],
|
|
885
890
|
"text": ""
|
|
886
891
|
},
|
|
887
|
-
"attribute": "
|
|
892
|
+
"attribute": "role",
|
|
888
893
|
"reflect": false
|
|
889
894
|
},
|
|
890
|
-
"
|
|
895
|
+
"ariaControls": {
|
|
891
896
|
"type": "string",
|
|
892
897
|
"mutable": false,
|
|
893
898
|
"complexType": {
|
|
@@ -901,7 +906,7 @@ export class Q2Input {
|
|
|
901
906
|
"tags": [],
|
|
902
907
|
"text": ""
|
|
903
908
|
},
|
|
904
|
-
"attribute": "
|
|
909
|
+
"attribute": "aria-controls",
|
|
905
910
|
"reflect": false
|
|
906
911
|
},
|
|
907
912
|
"ariaOwns": {
|
|
@@ -23,7 +23,7 @@ export class Q2Option {
|
|
|
23
23
|
render() {
|
|
24
24
|
const { disabled, disabledGroup, selected, _multiSelectHidden } = this;
|
|
25
25
|
const isDisabled = disabled || disabledGroup;
|
|
26
|
-
return (h(Host, { tabindex: "-1", "aria-disabled": isDisabled ? 'true' : undefined, "aria-selected": selected
|
|
26
|
+
return (h(Host, { tabindex: "-1", "aria-disabled": isDisabled ? 'true' : undefined, "aria-selected": `${!!selected}`, "aria-hidden": _multiSelectHidden ? 'true' : undefined }, this.selected && h("q2-icon", { type: "checkmark" }), h("div", { class: "content" }, h("slot", null))));
|
|
27
27
|
}
|
|
28
28
|
static get is() { return "q2-option"; }
|
|
29
29
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, Host, } from '@stencil/core';
|
|
2
|
-
import { isEventFromElement, nextPaint, overrideFocus, waitForNextPaint } from 'src/utils';
|
|
2
|
+
import { isEventFromElement, loc, nextPaint, overrideFocus, waitForNextPaint } from 'src/utils';
|
|
3
3
|
export class Q2OptionList {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.scheduledAfterRender = [];
|
|
@@ -18,21 +18,23 @@ export class Q2OptionList {
|
|
|
18
18
|
this.searchOptions(key, true);
|
|
19
19
|
break;
|
|
20
20
|
}
|
|
21
|
-
else if (this.
|
|
21
|
+
else if (this.type === 'menu') {
|
|
22
22
|
this.activeIndex = 0;
|
|
23
23
|
this.openDropdownWithActiveElement(0);
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
26
|
this.setDefaultActiveElement();
|
|
27
|
+
nextPaint(() => this.popoverState.emit({ open: true, action: 'open' }));
|
|
27
28
|
}
|
|
28
29
|
break;
|
|
29
30
|
case 'Enter':
|
|
30
|
-
if (this.
|
|
31
|
+
if (this.type === 'menu') {
|
|
31
32
|
this.activeIndex = 0;
|
|
32
33
|
this.openDropdownWithActiveElement(0);
|
|
33
34
|
}
|
|
34
35
|
else {
|
|
35
36
|
this.setDefaultActiveElement();
|
|
37
|
+
nextPaint(() => this.popoverState.emit({ open: true, action: 'open' }));
|
|
36
38
|
}
|
|
37
39
|
break;
|
|
38
40
|
case 'ArrowUp':
|
|
@@ -162,6 +164,8 @@ export class Q2OptionList {
|
|
|
162
164
|
case 'Tab':
|
|
163
165
|
if (shiftKey)
|
|
164
166
|
break;
|
|
167
|
+
if (this.multiple && this.type === 'listbox')
|
|
168
|
+
break;
|
|
165
169
|
newOption = allOptions.find(element => element.active);
|
|
166
170
|
if (!newOption || newOption.disabled)
|
|
167
171
|
return;
|
|
@@ -196,7 +200,6 @@ export class Q2OptionList {
|
|
|
196
200
|
const option = target.closest('q2-option');
|
|
197
201
|
this.selectOption(option);
|
|
198
202
|
};
|
|
199
|
-
this.role = 'listbox';
|
|
200
203
|
this.customSearch = undefined;
|
|
201
204
|
this.noSelect = undefined;
|
|
202
205
|
this.align = undefined;
|
|
@@ -204,7 +207,8 @@ export class Q2OptionList {
|
|
|
204
207
|
this.multiple = undefined;
|
|
205
208
|
this.disabled = undefined;
|
|
206
209
|
this.showSelected = undefined;
|
|
207
|
-
this.type =
|
|
210
|
+
this.type = 'listbox';
|
|
211
|
+
this.label = loc('tecton.element.optionList.label');
|
|
208
212
|
this.hasOptions = undefined;
|
|
209
213
|
}
|
|
210
214
|
/// LifeCycle Hooks ///
|
|
@@ -493,24 +497,6 @@ export class Q2OptionList {
|
|
|
493
497
|
}
|
|
494
498
|
static get properties() {
|
|
495
499
|
return {
|
|
496
|
-
"role": {
|
|
497
|
-
"type": "string",
|
|
498
|
-
"mutable": false,
|
|
499
|
-
"complexType": {
|
|
500
|
-
"original": "'listbox' | 'menu'",
|
|
501
|
-
"resolved": "\"listbox\" | \"menu\"",
|
|
502
|
-
"references": {}
|
|
503
|
-
},
|
|
504
|
-
"required": false,
|
|
505
|
-
"optional": false,
|
|
506
|
-
"docs": {
|
|
507
|
-
"tags": [],
|
|
508
|
-
"text": ""
|
|
509
|
-
},
|
|
510
|
-
"attribute": "role",
|
|
511
|
-
"reflect": true,
|
|
512
|
-
"defaultValue": "'listbox'"
|
|
513
|
-
},
|
|
514
500
|
"customSearch": {
|
|
515
501
|
"type": "boolean",
|
|
516
502
|
"mutable": false,
|
|
@@ -643,12 +629,34 @@ export class Q2OptionList {
|
|
|
643
629
|
},
|
|
644
630
|
"required": false,
|
|
645
631
|
"optional": false,
|
|
632
|
+
"docs": {
|
|
633
|
+
"tags": [{
|
|
634
|
+
"name": "type",
|
|
635
|
+
"text": "{('menu' | 'listbox')}"
|
|
636
|
+
}],
|
|
637
|
+
"text": "Translates to the role of the option list"
|
|
638
|
+
},
|
|
639
|
+
"attribute": "type",
|
|
640
|
+
"reflect": false,
|
|
641
|
+
"defaultValue": "'listbox'"
|
|
642
|
+
},
|
|
643
|
+
"label": {
|
|
644
|
+
"type": "string",
|
|
645
|
+
"mutable": false,
|
|
646
|
+
"complexType": {
|
|
647
|
+
"original": "string",
|
|
648
|
+
"resolved": "string",
|
|
649
|
+
"references": {}
|
|
650
|
+
},
|
|
651
|
+
"required": false,
|
|
652
|
+
"optional": false,
|
|
646
653
|
"docs": {
|
|
647
654
|
"tags": [],
|
|
648
655
|
"text": ""
|
|
649
656
|
},
|
|
650
|
-
"attribute": "
|
|
651
|
-
"reflect": false
|
|
657
|
+
"attribute": "label",
|
|
658
|
+
"reflect": false,
|
|
659
|
+
"defaultValue": "loc('tecton.element.optionList.label')"
|
|
652
660
|
}
|
|
653
661
|
};
|
|
654
662
|
}
|
|
@@ -176,7 +176,7 @@ export class Q2Pill {
|
|
|
176
176
|
wrapperClassNames.push('has-icon');
|
|
177
177
|
if (hasOptions)
|
|
178
178
|
wrapperClassNames.push('has-options');
|
|
179
|
-
return (h("click-elsewhere", { onChange: this.onClickElsewhere }, h("div", { class: wrapperClassNames.join(' ') }, h("div", { class: "btn-height-wrapper", ref: el => (this.primaryBtnWrapper = el), onClick: this.handleWrapperClick, tabIndex: -1 }, h("button", { class: "btn-primary", "test-id": "btn-control", type: "button", ref: el => (this.primaryBtn = el), onClick: this.handleClick, onKeyDown: this.handleKeydown, disabled: this.disabled, "aria-selected": !hasOptions && active ? 'true' : 'false', "aria-roledescription": !hasOptions && 'filter', "aria-controls": hasOptions && 'option-list', "aria-haspopup": hasOptions && 'true', "aria-expanded": (hasOptions && `${!!open}`) || undefined, "aria-label": this.maxLength && this.buttonContent }, this.truncatedButtonContent, !hasOptions && active && h("span", { class: "sr" }, "(", loc('tecton.element.pill.active'), ")"))), this.generateIcon()), this.hasOptions && (h("q2-popover", { ref: el => (this.popoverElement = el), controlElement: this.primaryBtn, open: this.open, minHeight: this.popoverMinHeight, direction: this.popoverDirection, align: "right" }, h("q2-option-list", {
|
|
179
|
+
return (h("click-elsewhere", { onChange: this.onClickElsewhere }, h("div", { class: wrapperClassNames.join(' ') }, h("div", { class: "btn-height-wrapper", ref: el => (this.primaryBtnWrapper = el), onClick: this.handleWrapperClick, tabIndex: -1 }, h("button", { class: "btn-primary", "test-id": "btn-control", type: "button", role: "combobox", ref: el => (this.primaryBtn = el), onClick: this.handleClick, onKeyDown: this.handleKeydown, disabled: this.disabled, "aria-selected": !hasOptions && active ? 'true' : 'false', "aria-roledescription": !hasOptions && 'filter', "aria-controls": hasOptions && 'option-list', "aria-haspopup": hasOptions && 'true', "aria-expanded": (hasOptions && `${!!open}`) || undefined, "aria-label": this.maxLength && this.buttonContent }, this.truncatedButtonContent, !hasOptions && active && h("span", { class: "sr" }, "(", loc('tecton.element.pill.active'), ")"))), this.generateIcon()), this.hasOptions && (h("q2-popover", { ref: el => (this.popoverElement = el), controlElement: this.primaryBtn, open: this.open, minHeight: this.popoverMinHeight, direction: this.popoverDirection, align: "right" }, h("q2-option-list", { type: "listbox", ref: el => (this.optionList = el), id: "option-list", onChange: this.handleChange, multiple: this.multiple, selectedOptions: this.selectedOptions, onReady: () => this.updateSelectedOptionElements() }, h("slot", null))))));
|
|
180
180
|
}
|
|
181
181
|
static get is() { return "q2-pill"; }
|
|
182
182
|
static get encapsulation() { return "shadow"; }
|
|
@@ -3,13 +3,19 @@ import { resizeIframe, waitForNextPaint } from 'src/utils';
|
|
|
3
3
|
export class Q2Popover {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.scheduledAfterRender = [];
|
|
6
|
+
/// Helpers ///
|
|
7
|
+
this.viewPortChanged = () => {
|
|
8
|
+
if (!this.open)
|
|
9
|
+
return;
|
|
10
|
+
this.determinePopDirection();
|
|
11
|
+
};
|
|
6
12
|
this.direction = undefined;
|
|
7
13
|
this.align = undefined;
|
|
8
14
|
this.open = undefined;
|
|
9
15
|
this.block = undefined;
|
|
10
16
|
this.minHeight = undefined;
|
|
11
17
|
this.controlElement = undefined;
|
|
12
|
-
this.
|
|
18
|
+
this.currentDirection = undefined;
|
|
13
19
|
this.show = false;
|
|
14
20
|
}
|
|
15
21
|
/// Lifecycle hooks ///
|
|
@@ -23,6 +29,9 @@ export class Q2Popover {
|
|
|
23
29
|
this.scheduledAfterRender = [];
|
|
24
30
|
}, 25);
|
|
25
31
|
}
|
|
32
|
+
disconnectedCallback() {
|
|
33
|
+
this.removeViewportListeners();
|
|
34
|
+
}
|
|
26
35
|
/// Methods ///
|
|
27
36
|
async toggle() {
|
|
28
37
|
this.open = !this.open;
|
|
@@ -32,9 +41,18 @@ export class Q2Popover {
|
|
|
32
41
|
this.popoverStateChanged.emit({ open });
|
|
33
42
|
this.scheduledAfterRender.push(resizeIframe);
|
|
34
43
|
if (open) {
|
|
44
|
+
this.addViewportListeners();
|
|
35
45
|
this.determinePopDirection();
|
|
36
46
|
}
|
|
37
47
|
else {
|
|
48
|
+
this.removeViewportListeners();
|
|
49
|
+
// Reset currentDirection after close transition completes
|
|
50
|
+
this.containerElement.addEventListener('transitionend', () => {
|
|
51
|
+
if (this.open)
|
|
52
|
+
return;
|
|
53
|
+
this.currentDirection = undefined;
|
|
54
|
+
this.containerElement.style.removeProperty('--comp-pop-max-height');
|
|
55
|
+
}, { once: true });
|
|
38
56
|
this.show = false;
|
|
39
57
|
}
|
|
40
58
|
}
|
|
@@ -46,17 +64,24 @@ export class Q2Popover {
|
|
|
46
64
|
this.open = open;
|
|
47
65
|
event.stopPropagation();
|
|
48
66
|
}
|
|
67
|
+
addViewportListeners() {
|
|
68
|
+
// window.visualViewport.addEventListener('scroll', this.viewPortChanged);
|
|
69
|
+
window.visualViewport.addEventListener('resize', this.viewPortChanged);
|
|
70
|
+
}
|
|
71
|
+
removeViewportListeners() {
|
|
72
|
+
// window.visualViewport.removeEventListener('scroll', this.viewPortChanged);
|
|
73
|
+
window.visualViewport.removeEventListener('resize', this.viewPortChanged);
|
|
74
|
+
}
|
|
49
75
|
async setDirectionAndShow(direction) {
|
|
50
76
|
if (direction === 'up') {
|
|
51
77
|
this.determinePopOffset();
|
|
52
78
|
}
|
|
53
|
-
this.
|
|
79
|
+
this.currentDirection = direction;
|
|
54
80
|
this.show = true;
|
|
55
81
|
}
|
|
56
|
-
/// Helpers ///
|
|
57
82
|
async determinePopDirection() {
|
|
58
|
-
var _a, _b, _c, _d, _e;
|
|
59
|
-
const { containerElement, contentElement, direction, controlElement } = this;
|
|
83
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
84
|
+
const { containerElement, contentElement, direction, controlElement, currentDirection } = this;
|
|
60
85
|
if (containerElement)
|
|
61
86
|
containerElement.style.maxHeight = null;
|
|
62
87
|
// If direction defined, use it
|
|
@@ -71,32 +96,46 @@ export class Q2Popover {
|
|
|
71
96
|
height: 0,
|
|
72
97
|
};
|
|
73
98
|
const contentHeight = contentElement.clientHeight;
|
|
74
|
-
const scrollY = ((_c = (_b = window.Tecton) === null || _b === void 0 ? void 0 : _b.platformDimensions) === null || _c === void 0 ? void 0 : _c.scrollY) ||
|
|
75
|
-
|
|
99
|
+
const scrollY = ((_c = (_b = window.Tecton) === null || _b === void 0 ? void 0 : _b.platformDimensions) === null || _c === void 0 ? void 0 : _c.scrollY) ||
|
|
100
|
+
((_d = window.visualViewport) === null || _d === void 0 ? void 0 : _d.offsetTop) || // Only Android Chrome provides this which we need when scrolled
|
|
101
|
+
0;
|
|
102
|
+
const innerHeight = ((_f = (_e = window.Tecton) === null || _e === void 0 ? void 0 : _e.platformDimensions) === null || _f === void 0 ? void 0 : _f.innerHeight) || ((_g = window.visualViewport) === null || _g === void 0 ? void 0 : _g.height) || window.innerHeight;
|
|
76
103
|
const bottomOffset = scrollY + innerHeight - topOffset - height;
|
|
77
104
|
const canShowFullSizeBelow = bottomOffset > contentHeight;
|
|
78
|
-
const canShowFullSizeAbove = contentHeight <= topOffset
|
|
105
|
+
const canShowFullSizeAbove = contentHeight <= topOffset;
|
|
79
106
|
let determinedDirection;
|
|
80
107
|
// Show the full-size popover below or above if it will fit
|
|
81
|
-
if (canShowFullSizeBelow)
|
|
108
|
+
if (currentDirection === 'down' && canShowFullSizeBelow)
|
|
109
|
+
return this.setDirectionAndShow('down');
|
|
110
|
+
else if (currentDirection === 'up' && canShowFullSizeAbove)
|
|
111
|
+
return this.setDirectionAndShow('up');
|
|
112
|
+
else if (currentDirection === undefined && canShowFullSizeBelow)
|
|
82
113
|
determinedDirection = 'down';
|
|
83
|
-
else if (canShowFullSizeAbove)
|
|
114
|
+
else if (currentDirection === undefined && canShowFullSizeAbove)
|
|
84
115
|
determinedDirection = 'up';
|
|
85
116
|
if (determinedDirection)
|
|
86
117
|
return this.setDirectionAndShow(determinedDirection);
|
|
87
|
-
// If full size will not fit
|
|
118
|
+
// If full size will not fit then make it as tall as possible
|
|
88
119
|
const { minHeight = 150 } = this;
|
|
89
120
|
const displayBuffer = 5;
|
|
90
|
-
const
|
|
121
|
+
const canShowMinHeightBelow = bottomOffset >= minHeight + displayBuffer;
|
|
91
122
|
let maxHeight;
|
|
92
|
-
if (
|
|
123
|
+
if (currentDirection === 'down') {
|
|
93
124
|
maxHeight = Math.max(bottomOffset - displayBuffer, minHeight);
|
|
94
125
|
determinedDirection = 'down';
|
|
95
126
|
}
|
|
96
|
-
else {
|
|
127
|
+
else if (currentDirection === 'up') {
|
|
97
128
|
maxHeight = Math.max(topOffset - displayBuffer, minHeight);
|
|
98
129
|
determinedDirection = 'up';
|
|
99
130
|
}
|
|
131
|
+
else if (canShowMinHeightBelow) {
|
|
132
|
+
maxHeight = Math.max(bottomOffset - displayBuffer, minHeight);
|
|
133
|
+
determinedDirection = 'down';
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
maxHeight = Math.max(topOffset - scrollY - displayBuffer, minHeight);
|
|
137
|
+
determinedDirection = 'up';
|
|
138
|
+
}
|
|
100
139
|
containerElement.style.setProperty('--comp-pop-max-height', `${maxHeight}px`);
|
|
101
140
|
return this.setDirectionAndShow(determinedDirection);
|
|
102
141
|
}
|
|
@@ -108,7 +147,7 @@ export class Q2Popover {
|
|
|
108
147
|
}
|
|
109
148
|
/// DOM ///
|
|
110
149
|
render() {
|
|
111
|
-
const containerClasses = ['container', this.
|
|
150
|
+
const containerClasses = ['container', this.currentDirection];
|
|
112
151
|
if (this.show)
|
|
113
152
|
containerClasses.push('show');
|
|
114
153
|
return (h("div", { ref: el => (this.containerElement = el), class: containerClasses.join(' '), role: "menu" }, h("div", { ref: el => (this.contentElement = el), class: "content" }, h("slot", null))));
|
|
@@ -235,7 +274,7 @@ export class Q2Popover {
|
|
|
235
274
|
}
|
|
236
275
|
static get states() {
|
|
237
276
|
return {
|
|
238
|
-
"
|
|
277
|
+
"currentDirection": {},
|
|
239
278
|
"show": {}
|
|
240
279
|
};
|
|
241
280
|
}
|
|
@@ -94,7 +94,7 @@ button {
|
|
|
94
94
|
box-shadow: var(--tct-popover-box-shadow, var(--t-popover-box-shadow, var(--app-shadow-1, 0 2px 4px rgba(0, 0, 0, 0.3))));
|
|
95
95
|
text-align: start;
|
|
96
96
|
left: 0;
|
|
97
|
-
transition: opacity var(--app-tween-1, 0.2s ease);
|
|
97
|
+
transition: opacity var(--app-tween-1, 0.2s ease), max-height var(--app-tween-1, 0.2s ease);
|
|
98
98
|
border-radius: var(--tct-popover-border-radius, var(--t-popover-border-radius, 0));
|
|
99
99
|
max-height: var(--comp-pop-max-height);
|
|
100
100
|
--comp-scrollbar-size: var(--tct-scrollbar-size, var(--t-scrollbar-size, var(--app-scale-1x, 5px)));
|
|
@@ -127,14 +127,13 @@ button {
|
|
|
127
127
|
text-align: end;
|
|
128
128
|
left: unset;
|
|
129
129
|
}
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
:host([open]) .container {
|
|
131
|
+
visibility: visible;
|
|
132
132
|
}
|
|
133
133
|
:host([open]) .container.show {
|
|
134
134
|
height: auto;
|
|
135
135
|
overflow: auto;
|
|
136
136
|
opacity: 1;
|
|
137
|
-
visibility: visible;
|
|
138
137
|
}
|
|
139
138
|
.container.up {
|
|
140
139
|
bottom: var(--comp-pop-offset);
|