q2-tecton-elements 1.23.0-alpha.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/action-sheet-4b366e9a.js +84 -0
- package/dist/cjs/charting-d02cba1f.js +3127 -0
- package/dist/cjs/{index-3518c78c.js → index-e00b4210.js} +33 -7
- package/dist/cjs/{installCanvasRenderer-b4d10c92.js → installCanvasRenderer-6c4fbcc9.js} +230 -1130
- package/dist/cjs/installLabelLayout-d6b548fe.js +1048 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-action-sheet.cjs.entry.js +218 -0
- package/dist/cjs/q2-badge_2.cjs.entry.js +1 -1
- package/dist/cjs/q2-btn_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-calendar.cjs.entry.js +1 -1
- package/dist/cjs/q2-card.cjs.entry.js +2 -2
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-area.cjs.entry.js +4569 -0
- package/dist/cjs/q2-chart-bar.cjs.entry.js +25 -3133
- package/dist/cjs/q2-chart-donut.cjs.entry.js +9 -8
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
- package/dist/cjs/q2-icon.cjs.entry.js +1 -1
- package/dist/cjs/q2-loading-element.cjs.entry.js +1 -1
- package/dist/cjs/q2-loc.cjs.entry.js +1 -1
- package/dist/cjs/q2-message.cjs.entry.js +1 -1
- package/dist/cjs/q2-month-picker.cjs.entry.js +1 -1
- package/dist/cjs/q2-optgroup_2.cjs.entry.js +93 -0
- package/dist/cjs/q2-option-list_2.cjs.entry.js +230 -88
- package/dist/cjs/q2-pagination.cjs.entry.js +1 -1
- package/dist/cjs/q2-pill.cjs.entry.js +57 -18
- package/dist/cjs/q2-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-radio.cjs.entry.js +1 -1
- package/dist/cjs/q2-section.cjs.entry.js +1 -1
- package/dist/cjs/q2-select.cjs.entry.js +149 -409
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper-vertical.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper.cjs.entry.js +1 -1
- package/dist/cjs/q2-tab-container.cjs.entry.js +1 -1
- package/dist/cjs/q2-tag.cjs.entry.js +21 -6
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/q2-action-sheet/index.js +345 -0
- package/dist/collection/components/q2-action-sheet/styles.css +215 -0
- package/dist/collection/components/q2-card/index.js +1 -1
- package/dist/collection/components/q2-chart-area/index.js +622 -0
- package/dist/collection/components/q2-chart-area/styles.css +82 -0
- package/dist/collection/components/q2-chart-bar/index.js +4 -4
- package/dist/collection/components/q2-chart-bar/styles.css +3 -6
- package/dist/collection/components/q2-chart-donut/index.js +1 -1
- package/dist/collection/components/q2-checkbox/index.js +2 -2
- package/dist/collection/components/q2-checkbox/styles.css +1 -0
- package/dist/collection/components/q2-dropdown/index.js +1 -1
- package/dist/collection/components/q2-loading/index.js +1 -1
- package/dist/collection/components/q2-loading/skeleton/q2-loading-element/styles.css +4 -0
- package/dist/collection/components/q2-loading/styles.css +4 -0
- package/dist/collection/components/q2-optgroup/styles.css +2 -2
- package/dist/collection/components/q2-option/index.js +1 -56
- package/dist/collection/components/q2-option/styles.css +7 -0
- package/dist/collection/components/q2-option-list/index.js +290 -102
- package/dist/collection/components/q2-pill/index.js +79 -18
- package/dist/collection/components/q2-pill/styles.css +1 -2
- package/dist/collection/components/q2-popover/index.js +21 -5
- package/dist/collection/components/q2-popover/styles.css +10 -67
- package/dist/collection/components/q2-radio/index.js +2 -2
- package/dist/collection/components/q2-select/index.js +197 -427
- package/dist/collection/components/q2-select/styles.css +5 -11
- package/dist/collection/components/q2-tag/index.js +38 -5
- package/dist/collection/utils/action-sheet.js +79 -0
- package/dist/collection/utils/index.js +31 -7
- package/dist/components/action-sheet.js +81 -0
- package/dist/components/charting.js +3113 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index10.js +1 -1
- package/dist/components/index11.js +42 -353
- package/dist/components/index12.js +44 -97
- package/dist/components/index13.js +495 -580
- package/dist/components/index14.js +137 -0
- package/dist/components/index15.js +626 -0
- package/dist/components/index5.js +1 -1
- package/dist/components/index6.js +1 -1
- package/dist/components/index7.js +1 -1
- package/dist/components/index8.js +1 -1
- package/dist/components/index9.js +3 -3
- package/dist/components/installCanvasRenderer.js +188 -1123
- package/dist/components/installLabelLayout.js +1042 -0
- package/dist/components/q2-action-sheet.d.ts +11 -0
- package/dist/components/q2-action-sheet.js +282 -0
- package/dist/components/q2-calendar.js +1 -1
- package/dist/components/q2-card.js +2 -2
- package/dist/components/q2-carousel-pane.js +1 -1
- package/dist/components/q2-carousel.js +1 -1
- package/dist/components/q2-chart-area.d.ts +11 -0
- package/dist/components/q2-chart-area.js +4604 -0
- package/dist/components/q2-chart-bar.js +11 -3119
- package/dist/components/q2-chart-donut.js +4 -3
- package/dist/components/q2-checkbox-group.js +1 -1
- package/dist/components/q2-checkbox.js +2 -2
- package/dist/components/q2-dropdown.js +2 -2
- package/dist/components/q2-editable-field.js +1 -1
- package/dist/components/q2-loading-element.js +1 -1
- package/dist/components/q2-loc.js +1 -1
- package/dist/components/q2-month-picker.js +1 -1
- package/dist/components/q2-optgroup.js +1 -70
- package/dist/components/q2-option-list.js +1 -1
- package/dist/components/q2-option.js +1 -76
- package/dist/components/q2-pagination.js +1 -1
- package/dist/components/q2-pill.js +62 -21
- package/dist/components/q2-popover.js +1 -1
- package/dist/components/q2-radio-group.js +1 -1
- package/dist/components/q2-radio.js +3 -3
- package/dist/components/q2-section.js +1 -1
- package/dist/components/q2-select.js +181 -427
- package/dist/components/q2-stepper-pane.js +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-tag.js +24 -8
- package/dist/components/q2-textarea.js +1 -1
- package/dist/esm/action-sheet-a9597b32.js +81 -0
- package/dist/esm/charting-2a73ba8e.js +3113 -0
- package/dist/esm/{index-9c591682.js → index-ca21e539.js} +32 -8
- package/dist/esm/{installCanvasRenderer-0143b52d.js → installCanvasRenderer-4a470516.js} +188 -1123
- package/dist/esm/installLabelLayout-d660eaad.js +1042 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-action-sheet.entry.js +214 -0
- package/dist/esm/q2-badge_2.entry.js +1 -1
- package/dist/esm/q2-btn_2.entry.js +2 -2
- package/dist/esm/q2-calendar.entry.js +1 -1
- package/dist/esm/q2-card.entry.js +2 -2
- package/dist/esm/q2-carousel-pane.entry.js +1 -1
- package/dist/esm/q2-carousel.entry.js +1 -1
- package/dist/esm/q2-chart-area.entry.js +4565 -0
- package/dist/esm/q2-chart-bar.entry.js +11 -3119
- package/dist/esm/q2-chart-donut.entry.js +4 -3
- package/dist/esm/q2-checkbox-group.entry.js +1 -1
- package/dist/esm/q2-checkbox.entry.js +2 -2
- package/dist/esm/q2-dropdown-item.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +1 -1
- package/dist/esm/q2-editable-field.entry.js +1 -1
- package/dist/esm/q2-icon.entry.js +1 -1
- package/dist/esm/q2-loading-element.entry.js +1 -1
- package/dist/esm/q2-loc.entry.js +1 -1
- package/dist/esm/q2-message.entry.js +1 -1
- package/dist/esm/q2-month-picker.entry.js +1 -1
- package/dist/esm/q2-optgroup_2.entry.js +88 -0
- package/dist/esm/q2-option-list_2.entry.js +230 -88
- package/dist/esm/q2-pagination.entry.js +1 -1
- package/dist/esm/q2-pill.entry.js +57 -18
- package/dist/esm/q2-radio-group.entry.js +1 -1
- package/dist/esm/q2-radio.entry.js +1 -1
- package/dist/esm/q2-section.entry.js +1 -1
- package/dist/esm/q2-select.entry.js +149 -409
- package/dist/esm/q2-stepper-pane.entry.js +1 -1
- package/dist/esm/q2-stepper-vertical.entry.js +1 -1
- package/dist/esm/q2-stepper.entry.js +1 -1
- package/dist/esm/q2-tab-container.entry.js +1 -1
- package/dist/esm/q2-tag.entry.js +21 -6
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +1 -1
- package/dist/q2-tecton-elements/{p-db873db2.entry.js → p-0473f4f7.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-520c40f6.entry.js → p-13a1390b.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-9ebb283a.entry.js → p-13deb3ed.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-0ba564b1.entry.js → p-1d854203.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-1f71774f.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-18cc4758.entry.js → p-256d3fe6.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-9281adaa.entry.js → p-282f0f8c.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-2d2c5af2.entry.js → p-30969629.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-30cd888b.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-fc134a5d.entry.js → p-37cf9c97.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-fb37e67e.entry.js → p-388349b5.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-458b1987.js +1 -0
- package/dist/q2-tecton-elements/p-52063431.js +39 -0
- package/dist/q2-tecton-elements/p-5589ae0f.entry.js +1 -0
- package/dist/q2-tecton-elements/p-619aed74.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-4625184b.entry.js → p-63b67260.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-e4dc9ac0.entry.js → p-63e363ad.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-cbd1289a.entry.js → p-6736df05.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-72fe10cc.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-c4640b55.entry.js → p-75b817c6.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-c3f27fe2.entry.js → p-7a116095.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-7c94119b.entry.js +1 -0
- package/dist/q2-tecton-elements/p-833398d1.js +1 -0
- package/dist/q2-tecton-elements/{p-ce015552.entry.js → p-90572e43.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-91153c61.entry.js +1 -0
- package/dist/q2-tecton-elements/p-9792de8a.entry.js +1 -0
- package/dist/q2-tecton-elements/p-9acfa94e.js +1 -0
- package/dist/q2-tecton-elements/p-a1926e65.js +1 -0
- package/dist/q2-tecton-elements/{p-ffb48ccc.entry.js → p-b3a8cdc5.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-ce3f203c.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-041b3a82.entry.js → p-ce91cd9b.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-b8b00394.entry.js → p-cefc9d0b.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-d05beeb7.entry.js +1 -0
- package/dist/q2-tecton-elements/p-dc7c8371.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-16c11d74.entry.js → p-e58581fc.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-f800fd1e.entry.js → p-e886c55b.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-6e6b5b80.entry.js → p-f0ec4d2c.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-97aa8423.entry.js → p-f94e7043.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-c444a60b.entry.js → p-fcb7d191.entry.js} +1 -1
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/test/helpers.js +3 -2
- package/dist/types/components/q2-action-sheet/index.d.ts +52 -0
- package/dist/types/components/q2-card/index.d.ts +1 -1
- package/dist/types/components/q2-chart-area/index.d.ts +40 -0
- package/dist/types/components/q2-chart-bar/index.d.ts +2 -2
- package/dist/types/components/q2-chart-donut/index.d.ts +1 -1
- package/dist/types/components/q2-checkbox/index.d.ts +4 -1
- package/dist/types/components/q2-option/index.d.ts +0 -3
- package/dist/types/components/q2-option-list/index.d.ts +16 -8
- package/dist/types/components/q2-pill/index.d.ts +10 -1
- package/dist/types/components/q2-popover/index.d.ts +2 -0
- package/dist/types/components/q2-select/index.d.ts +46 -47
- package/dist/types/components/q2-tag/index.d.ts +3 -2
- package/dist/types/components.d.ts +100 -13
- package/dist/types/global.d.ts +10 -1
- package/dist/types/utils/action-sheet.d.ts +12 -0
- package/dist/types/utils/index.d.ts +3 -1
- package/dist/types/workspace/workspace/{_production_release_1.22.x-alpha → Tecton_tecton-production_master}/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +1 -1
- package/package.json +3 -2
- package/dist/cjs/q2-optgroup.cjs.entry.js +0 -56
- package/dist/cjs/q2-option.cjs.entry.js +0 -46
- package/dist/esm/q2-optgroup.entry.js +0 -52
- package/dist/esm/q2-option.entry.js +0 -42
- package/dist/q2-tecton-elements/p-0d8dd75a.entry.js +0 -1
- package/dist/q2-tecton-elements/p-0fad9c5a.entry.js +0 -1
- package/dist/q2-tecton-elements/p-1f85cced.js +0 -39
- package/dist/q2-tecton-elements/p-2c9b1308.entry.js +0 -1
- package/dist/q2-tecton-elements/p-5e374fbd.js +0 -1
- package/dist/q2-tecton-elements/p-6b52a262.entry.js +0 -1
- package/dist/q2-tecton-elements/p-aaf42539.entry.js +0 -1
- package/dist/q2-tecton-elements/p-cf41970f.entry.js +0 -1
- package/dist/q2-tecton-elements/p-de164483.entry.js +0 -1
- package/dist/q2-tecton-elements/p-e6d26f39.entry.js +0 -1
- package/dist/q2-tecton-elements/p-f1d06917.entry.js +0 -1
- package/dist/q2-tecton-elements/p-f35bf6a3.entry.js +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface Q2ActionSheet extends Components.Q2ActionSheet, HTMLElement {}
|
|
4
|
+
export const Q2ActionSheet: {
|
|
5
|
+
prototype: Q2ActionSheet;
|
|
6
|
+
new (): Q2ActionSheet;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
|
|
2
|
+
import { l as loc, w as waitForNextPaint } from './index15.js';
|
|
3
|
+
import { d as defineCustomElement$8 } from './index5.js';
|
|
4
|
+
import { d as defineCustomElement$7 } from './index7.js';
|
|
5
|
+
import { d as defineCustomElement$6 } from './index9.js';
|
|
6
|
+
import { d as defineCustomElement$5 } from './index10.js';
|
|
7
|
+
import { d as defineCustomElement$4 } from './index11.js';
|
|
8
|
+
import { d as defineCustomElement$3 } from './index12.js';
|
|
9
|
+
import { d as defineCustomElement$2 } from './index13.js';
|
|
10
|
+
|
|
11
|
+
const stylesCss = "*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #33b4ff #06C)}: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}@keyframes showBackdrop{from{opacity:0}}@keyframes hideBackdrop{to{opacity:0}}dialog{--comp-border-radius-default:var(--app-scale-3x, 15px) var(--app-scale-3x, 15px) 0 0;--comp-border-radius:var(--tct-action-sheet-border-radius, var(--t-action-sheet-border-radius, var(--comp-border-radius-default)));--comp-desktop-border-radius:var(--tct-action-sheet-border-radius, var(--t-action-sheet-border-radius, var(--app-scale-3x, 15px)));--comp-header-size:var(--tct-action-sheet-close-size, var(--t-action-sheet-close-size, var(--t-a11y-min-size, 44px)));--comp-dialog-background:var(--tct-action-sheet-background, var(--t-action-sheet-background, var(--t-base, #ffffff)));--comp-dialog-color:var(--tct-action-sheet-color, var(--t-action-sheet-color, var(--t-text, #4d4d4d)));--comp-dialog-padding:var(--tct-action-sheet-padding, var(--t-action-sheet-padding, var(--app-scale-3x, 15px)));--comp-content-gradient-height:var(--tct-action-sheet-content-gradient-height, var(--t-action-sheet-content-gradient-height, var(--app-scale-2x, 10px)));--comp-dialog-interior-gap-default:var(--app-scale-2x, 10px);--comp-dialog-max-width:var(--tct-action-sheet-max-width, var(--t-action-sheet-max-width, 400px));--comp-dialog-max-height:var(--tct-action-sheet-max-height, var(--t-action-sheet-max-height, 75vh));--comp-dialog-min-height:var(--tct-action-sheet-min-height, var(--t-action-sheet-min-height, 20vh));--comp-dialog-box-shadow:var(--tct-action-sheet-box-shadow, var(--t-action-sheet-box-shadow, var(--app-shadow-2, 0 3px 6px rgba(0, 0, 0, 0.3))));position:fixed;top:100%;bottom:unset;color:var(--comp-dialog-color);background:var(--comp-dialog-background);transition:transform var(--tct-action-sheet-tween, var(--t-action-sheet-tween, var(--app-tween-2, 0.4s ease))), opacity var(--tct-action-sheet-tween, var(--t-action-sheet-tween, var(--app-tween-2, 0.4s ease)));width:100%;max-width:var(--comp-dialog-max-width);border:0;border-radius:var(--comp-border-radius);box-shadow:var(--comp-dialog-box-shadow);padding:0;height:auto;overflow:hidden;min-height:var(--comp-dialog-min-height);max-height:var(--comp-dialog-max-height)}dialog::backdrop{opacity:0;background:var(--tct-action-sheet-backdrop-background, var(--t-action-sheet-backdrop-background, var(--t-top-a2, rgba(13, 13, 13, 0.6))))}dialog[open].is-opening,dialog[open].is-open{transform:translateY(-100%)}@media screen and (min-width: 1200px){dialog[open].is-opening,dialog[open].is-open{opacity:1;transform:translateY(0)}}dialog[open].is-opening::backdrop,dialog[open].is-open::backdrop{opacity:1;animation:showBackdrop var(--tct-action-sheet-tween, var(--t-action-sheet-tween, var(--app-tween-2, 0.4s ease)))}dialog[open].is-closing{transform:translateY(10%)}dialog[open].is-closing::backdrop{animation:hideBackdrop var(--tct-action-sheet-tween, var(--t-action-sheet-tween, var(--app-tween-2, 0.4s ease)))}@media screen and (min-width: 1200px){dialog{border-radius:var(--comp-desktop-border-radius);top:0px;bottom:0px;height:fit-content;transform:translateY(10%);opacity:0}}.content{overflow-y:auto;--comp-scrollbar-size:var(--tct-scrollbar-size, var(--t-scrollbar-size, var(--app-scale-1x, 5px)));--comp-scrollbar-border-radius:var(--tct-scrollbar-border-radius, var(--t-scrollbar-border-radius, var(--app-border-radius-1, 3px)));--comp-scrollbar-color:var(--tct-scrollbar-color, var(--t-scrollbar-color, var(--t-a11y-gray-color, #747474)));scrollbar-width:thin;scrollbar-color:var(--comp-scrollbar-color) transparent}.content::-webkit-scrollbar{width:var(--comp-scrollbar-size);height:var(--comp-scrollbar-size);margin:5px}.content::-webkit-scrollbar-thumb{background:var(--comp-scrollbar-color);border-radius:var(--comp-scrollbar-border-radius)}.content::-webkit-scrollbar-track{background:transparent;border-radius:var(--comp-scrollbar-border-radius)}.interior{display:grid;grid-template-rows:44px 1fr auto;gap:var(--comp-dialog-interior-gap-default);max-height:calc(var(--comp-dialog-max-height) - var(--comp-dialog-padding));padding:var(--comp-dialog-padding)}.interior.is-list header,.interior.is-list footer{position:relative}.interior.is-list header:before,.interior.is-list footer:before{content:\"\";display:block;position:absolute;left:0;height:var(--comp-content-gradient-height);width:100%;z-index:1}.interior.is-list header:before{top:calc(100% + var(--comp-dialog-interior-gap-default));background:linear-gradient(to bottom, var(--t-base) 0%, var(--t-base-a0) 100%)}.interior.is-list footer:before{top:calc((var(--comp-dialog-interior-gap-default) + var(--comp-content-gradient-height)) * -1);background:linear-gradient(to top, var(--t-base) 0%, var(--t-base-a0) 100%)}header{display:grid;grid-template-columns:var(--comp-header-size) 1fr var(--comp-header-size);grid-template-areas:\". title close\";gap:var(--app-scale-2x, 10px)}header .title{grid-area:title;text-align:center;line-height:var(--comp-header-size)}header .btn-close{grid-area:close;width:var(--comp-header-size);height:var(--comp-header-size)}footer{display:flex;justify-content:end}";
|
|
12
|
+
|
|
13
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s)
|
|
16
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
17
|
+
t[p] = s[p];
|
|
18
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
19
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
20
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
21
|
+
t[p[i]] = s[p[i]];
|
|
22
|
+
}
|
|
23
|
+
return t;
|
|
24
|
+
};
|
|
25
|
+
const Q2ActionSheet$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
26
|
+
constructor() {
|
|
27
|
+
super();
|
|
28
|
+
this.__registerHost();
|
|
29
|
+
this.__attachShadow();
|
|
30
|
+
this.close = createEvent(this, "close", 7);
|
|
31
|
+
this.ready = createEvent(this, "ready", 3);
|
|
32
|
+
this.initialSelectedOptions = [];
|
|
33
|
+
this.selectedOptions = { values: [], value: '' };
|
|
34
|
+
this.minHeight = 0.2;
|
|
35
|
+
this.maxHeight = 0.75;
|
|
36
|
+
this.generateOption = (option) => {
|
|
37
|
+
const optionElement = document.createElement('q2-option');
|
|
38
|
+
const attributes = __rest(option, ["innerHTML"]);
|
|
39
|
+
if (option.innerHTML)
|
|
40
|
+
optionElement.innerHTML = option.innerHTML;
|
|
41
|
+
Object.entries(attributes).forEach(([key, value]) => {
|
|
42
|
+
if (value === undefined)
|
|
43
|
+
return;
|
|
44
|
+
if (typeof value === 'boolean') {
|
|
45
|
+
if (value)
|
|
46
|
+
optionElement.setAttribute(key, '');
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
optionElement.setAttribute(key, value);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
return optionElement;
|
|
53
|
+
};
|
|
54
|
+
this.generateOptgroup = (option) => {
|
|
55
|
+
const optgroupElement = document.createElement('q2-optgroup');
|
|
56
|
+
if (option.label)
|
|
57
|
+
optgroupElement.setAttribute('label', option.label);
|
|
58
|
+
if (option.disabled)
|
|
59
|
+
optgroupElement.setAttribute('disabled', '');
|
|
60
|
+
if (!!option.options.length)
|
|
61
|
+
option.options.forEach(opt => optgroupElement.appendChild(this.generateOption(opt)));
|
|
62
|
+
return optgroupElement;
|
|
63
|
+
};
|
|
64
|
+
/// Event Handlers ///
|
|
65
|
+
this.onClick = (event) => {
|
|
66
|
+
const eventTarget = event.target;
|
|
67
|
+
if (!(eventTarget instanceof HTMLElement))
|
|
68
|
+
return;
|
|
69
|
+
const isInContent = !!eventTarget.closest('.interior, q2-action-sheet');
|
|
70
|
+
if (isInContent)
|
|
71
|
+
return;
|
|
72
|
+
this.onCancel(event);
|
|
73
|
+
};
|
|
74
|
+
this.onCancel = (event) => {
|
|
75
|
+
var _a, _b;
|
|
76
|
+
event.preventDefault();
|
|
77
|
+
const { initialSelectedOptions } = this;
|
|
78
|
+
this.hide({
|
|
79
|
+
value: (_b = (_a = initialSelectedOptions === null || initialSelectedOptions === void 0 ? void 0 : initialSelectedOptions[0]) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : '',
|
|
80
|
+
values: initialSelectedOptions,
|
|
81
|
+
type: 'cancel',
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
this.onListChange = (event) => {
|
|
85
|
+
this.selectedOptions = event.detail;
|
|
86
|
+
};
|
|
87
|
+
this.onListPopoverStateChange = (event) => {
|
|
88
|
+
if (event.detail.open)
|
|
89
|
+
return;
|
|
90
|
+
if (event.detail.action === 'close') {
|
|
91
|
+
this.onCancel(event);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
this.onListDone();
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
this.onListDone = () => {
|
|
98
|
+
this.hide(Object.assign(Object.assign({}, this.selectedOptions), { type: 'confirm' }));
|
|
99
|
+
};
|
|
100
|
+
/// DOM ///
|
|
101
|
+
this.renderSlot = () => {
|
|
102
|
+
return (h("div", { class: "content", ref: el => (this.contentElement = el) }, h("slot", null)));
|
|
103
|
+
};
|
|
104
|
+
this.renderMessage = ({ data }) => {
|
|
105
|
+
return (h("q2-message", { type: data.type }, data.title && h("h2", null, data.title), data.description && h("p", null, data.description)));
|
|
106
|
+
};
|
|
107
|
+
this.renderList = ({ data }) => {
|
|
108
|
+
const { listProps } = data;
|
|
109
|
+
return (h(Fragment, null, h("div", { class: "content", ref: el => (this.contentElement = el) }, h("q2-option-list", { ref: el => (this.optionListElement = el), multiple: listProps.multiple, noSelect: listProps.noSelect, onChange: this.onListChange, onPopoverState: this.onListPopoverStateChange, selectedOptions: listProps.selectedOptions }, h("slot", null))), h("footer", null, listProps.multiple && (h("q2-btn", { "test-id": "btnDone", intent: "workflow-primary", onClick: this.onListDone }, loc('tecton.element.actionSheet.done'))))));
|
|
110
|
+
};
|
|
111
|
+
this.data = undefined;
|
|
112
|
+
this.hideClose = undefined;
|
|
113
|
+
this.isScrollable = false;
|
|
114
|
+
this.renderStatus = 'is-closing';
|
|
115
|
+
}
|
|
116
|
+
/// LifeCycle Hooks ///
|
|
117
|
+
componentDidLoad() {
|
|
118
|
+
this.dialogElement.addEventListener('cancel', this.onCancel);
|
|
119
|
+
this.ready.emit();
|
|
120
|
+
}
|
|
121
|
+
disconnectedCallback() {
|
|
122
|
+
this.dialogElement.removeEventListener('cancel', this.onCancel);
|
|
123
|
+
}
|
|
124
|
+
/// Helpers ///
|
|
125
|
+
storeInitialValues() {
|
|
126
|
+
const { data } = this;
|
|
127
|
+
if (!data)
|
|
128
|
+
return;
|
|
129
|
+
if (data.appearance === 'list') {
|
|
130
|
+
this.initialSelectedOptions = data.listProps.selectedOptions;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
focusContent() {
|
|
134
|
+
const { data } = this;
|
|
135
|
+
if (!data)
|
|
136
|
+
return;
|
|
137
|
+
if (data.appearance === 'list') {
|
|
138
|
+
const { event } = data;
|
|
139
|
+
if (event instanceof KeyboardEvent) {
|
|
140
|
+
this.optionListElement.handleExternalKeydown(event);
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
this.optionListElement.focus();
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
hidePostHook() {
|
|
148
|
+
const { data } = this;
|
|
149
|
+
if (!data)
|
|
150
|
+
return;
|
|
151
|
+
if (data.appearance === 'list') {
|
|
152
|
+
this.hostElement.innerHTML = null;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
showPreHook() {
|
|
156
|
+
const { data } = this;
|
|
157
|
+
if (!data)
|
|
158
|
+
return;
|
|
159
|
+
if (data.appearance === 'list') {
|
|
160
|
+
this.hostElement.innerHTML = null;
|
|
161
|
+
data.options.forEach(option => {
|
|
162
|
+
this.hostElement.appendChild('options' in option ? this.generateOptgroup(option) : this.generateOption(option));
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
updateDialogMinMaxHeight() {
|
|
167
|
+
const windowHeight = window.innerHeight;
|
|
168
|
+
this.dialogElement.style.setProperty('--comp-dialog-min-height', `${Math.floor(windowHeight * this.minHeight)}px`);
|
|
169
|
+
this.dialogElement.style.setProperty('--comp-dialog-max-height', `${Math.floor(windowHeight * this.maxHeight)}px`);
|
|
170
|
+
}
|
|
171
|
+
/// Methods ///
|
|
172
|
+
async hide(data = { value: '', values: [], type: 'confirm' }) {
|
|
173
|
+
this.close.emit(data);
|
|
174
|
+
this.renderStatus = 'is-closing';
|
|
175
|
+
this.dialogElement.addEventListener('transitionend', () => {
|
|
176
|
+
this.dialogElement.close();
|
|
177
|
+
this.renderStatus = null;
|
|
178
|
+
this.data = undefined;
|
|
179
|
+
this.initialSelectedOptions = [];
|
|
180
|
+
this.selectedOptions = { values: [], value: '' };
|
|
181
|
+
this.hidePostHook();
|
|
182
|
+
}, { once: true });
|
|
183
|
+
}
|
|
184
|
+
async show() {
|
|
185
|
+
this.showPreHook();
|
|
186
|
+
await waitForNextPaint();
|
|
187
|
+
this.updateDialogMinMaxHeight();
|
|
188
|
+
this.storeInitialValues();
|
|
189
|
+
if (this.dialogElement.open)
|
|
190
|
+
return;
|
|
191
|
+
this.dialogElement.showModal();
|
|
192
|
+
this.renderStatus = 'is-opening';
|
|
193
|
+
this.dialogElement.addEventListener('transitionend', () => {
|
|
194
|
+
this.renderStatus = 'is-open';
|
|
195
|
+
this.focusContent();
|
|
196
|
+
}, { once: true });
|
|
197
|
+
}
|
|
198
|
+
render() {
|
|
199
|
+
var _a;
|
|
200
|
+
const { data } = this;
|
|
201
|
+
const showHeader = (data === null || data === void 0 ? void 0 : data.title) || !this.hideClose;
|
|
202
|
+
const renderStatus = this.renderStatus || '';
|
|
203
|
+
let RenderContent = null;
|
|
204
|
+
switch (data === null || data === void 0 ? void 0 : data.appearance) {
|
|
205
|
+
case 'message':
|
|
206
|
+
RenderContent = this.renderMessage;
|
|
207
|
+
break;
|
|
208
|
+
case 'list':
|
|
209
|
+
RenderContent = this.renderList;
|
|
210
|
+
break;
|
|
211
|
+
default:
|
|
212
|
+
RenderContent = this.renderSlot;
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
const appearance = (data === null || data === void 0 ? void 0 : data.appearance) || 'slot';
|
|
216
|
+
const interiorClasses = `interior is-${appearance}`;
|
|
217
|
+
return (h("dialog", { ref: el => (this.dialogElement = el), class: renderStatus, onClick: this.onClick }, h("div", { class: interiorClasses }, showHeader && (h("header", null, h("div", { class: "title" }, data === null || data === void 0 ? void 0 : data.title), h("q2-btn", { class: "btn-close", "test-id": "btnClose", onClick: this.onCancel, label: "tecton.element.actionSheet.close", "hide-label": true }, h("q2-icon", { type: "close" })))), ((_a = this.data) === null || _a === void 0 ? void 0 : _a.description) && h("p", null, data.description), RenderContent && h(RenderContent, { data: this.data }))));
|
|
218
|
+
}
|
|
219
|
+
get hostElement() { return this; }
|
|
220
|
+
static get style() { return stylesCss; }
|
|
221
|
+
}, [1, "q2-action-sheet", {
|
|
222
|
+
"data": [1040],
|
|
223
|
+
"hideClose": [4, "hide-close"],
|
|
224
|
+
"isScrollable": [32],
|
|
225
|
+
"renderStatus": [32],
|
|
226
|
+
"hide": [64],
|
|
227
|
+
"show": [64]
|
|
228
|
+
}]);
|
|
229
|
+
function defineCustomElement$1() {
|
|
230
|
+
if (typeof customElements === "undefined") {
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
const components = ["q2-action-sheet", "q2-btn", "q2-icon", "q2-loading", "q2-message", "q2-optgroup", "q2-option", "q2-option-list"];
|
|
234
|
+
components.forEach(tagName => { switch (tagName) {
|
|
235
|
+
case "q2-action-sheet":
|
|
236
|
+
if (!customElements.get(tagName)) {
|
|
237
|
+
customElements.define(tagName, Q2ActionSheet$1);
|
|
238
|
+
}
|
|
239
|
+
break;
|
|
240
|
+
case "q2-btn":
|
|
241
|
+
if (!customElements.get(tagName)) {
|
|
242
|
+
defineCustomElement$8();
|
|
243
|
+
}
|
|
244
|
+
break;
|
|
245
|
+
case "q2-icon":
|
|
246
|
+
if (!customElements.get(tagName)) {
|
|
247
|
+
defineCustomElement$7();
|
|
248
|
+
}
|
|
249
|
+
break;
|
|
250
|
+
case "q2-loading":
|
|
251
|
+
if (!customElements.get(tagName)) {
|
|
252
|
+
defineCustomElement$6();
|
|
253
|
+
}
|
|
254
|
+
break;
|
|
255
|
+
case "q2-message":
|
|
256
|
+
if (!customElements.get(tagName)) {
|
|
257
|
+
defineCustomElement$5();
|
|
258
|
+
}
|
|
259
|
+
break;
|
|
260
|
+
case "q2-optgroup":
|
|
261
|
+
if (!customElements.get(tagName)) {
|
|
262
|
+
defineCustomElement$4();
|
|
263
|
+
}
|
|
264
|
+
break;
|
|
265
|
+
case "q2-option":
|
|
266
|
+
if (!customElements.get(tagName)) {
|
|
267
|
+
defineCustomElement$3();
|
|
268
|
+
}
|
|
269
|
+
break;
|
|
270
|
+
case "q2-option-list":
|
|
271
|
+
if (!customElements.get(tagName)) {
|
|
272
|
+
defineCustomElement$2();
|
|
273
|
+
}
|
|
274
|
+
break;
|
|
275
|
+
} });
|
|
276
|
+
}
|
|
277
|
+
defineCustomElement$1();
|
|
278
|
+
|
|
279
|
+
const Q2ActionSheet = Q2ActionSheet$1;
|
|
280
|
+
const defineCustomElement = defineCustomElement$1;
|
|
281
|
+
|
|
282
|
+
export { Q2ActionSheet, defineCustomElement };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { l as loc, s as setPopProperties, h as handleAriaLabel, o as overrideFocus, i as isEventFromElement } from './
|
|
2
|
+
import { l as loc, s as setPopProperties, h as handleAriaLabel, o as overrideFocus, i as isEventFromElement } from './index15.js';
|
|
3
3
|
import { d as defineCustomElement$8 } from './index2.js';
|
|
4
4
|
import { d as defineCustomElement$7 } from './index4.js';
|
|
5
5
|
import { d as defineCustomElement$6 } from './index5.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
|
|
2
|
-
import { a as isTouchDevice, o as overrideFocus, i as isEventFromElement } from './
|
|
2
|
+
import { a as isTouchDevice, o as overrideFocus, i as isEventFromElement } from './index15.js';
|
|
3
3
|
import { d as defineCustomElement$3 } from './index3.js';
|
|
4
4
|
import { d as defineCustomElement$2 } from './index7.js';
|
|
5
5
|
|
|
@@ -61,7 +61,7 @@ const Q2Card$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
61
61
|
this.resizeObserver = new ResizeObserver(() => this.determineAutoSmall());
|
|
62
62
|
this.resizeObserver.observe(this.hostElement);
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
disconnectedCallback() {
|
|
65
65
|
this.resizeObserver = null;
|
|
66
66
|
}
|
|
67
67
|
onHostElementFocus(event) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { l as loc } from './
|
|
2
|
+
import { l as loc } from './index15.js';
|
|
3
3
|
|
|
4
4
|
const stylesCss = "*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #33b4ff #06C)}: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}q2-carousel .swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;transition:all 0.2s}q2-carousel-pane.q2-carousel-pane{--comp-carousel-pane-tween:var(--tct-tween-1, var(--app-tween-1, 0.2s ease));--comp-carousel-shadow:var(--app-shadow-2, 0px 2px 8px 0px var(--t-top-a1, rgba(0, 0, 0, 0.25)));cursor:grab}q2-carousel-pane.q2-carousel-pane:not([is-active-pane]) *{cursor:pointer}q2-carousel-pane.q2-carousel-pane:focus{box-shadow:none}q2-carousel-pane.q2-carousel-pane:focus .q2-carousel-pane-main-content{outline:none;box-shadow:var(--const-double-focus-ring)}q2-carousel-pane.q2-carousel-pane button{border:0;background:transparent;transition:all 0.2s;opacity:0.3;cursor:pointer}q2-carousel-pane.q2-carousel-pane button:hover{opacity:0.7}q2-carousel-pane.q2-carousel-pane .q2-carousel-pane-main-content{box-shadow:var(--comp-carousel-shadow);transition:var(--comp-carousel-pane-tween);background-color:var(--tct-carousel-background-color, var(--t-carousel-background-color, var(--tct-white, var(--app-white, #ffffff))));border:var(--tct-carousel-pane-border-width, var(--t-carousel-pane-border-width, 0px)) solid var(--tct-carousel-pane-border-color, var(--t-carousel-pane-border-color, var(--tct-gray-11, var(--t-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))));border-radius:var(--tct-carousel-pane-border-radius, var(--t-carousel-pane-border-radius, 8px));padding:var(--tct-carousel-pane-padding, var(--t-carousel-pane-padding, 0.5rem 0.5rem 0.5rem 0.5rem));height:var(--tct-carousel-pane-height, var(--t-carousel-pane-height, 10em))}q2-carousel-pane.q2-carousel-pane .q2-carousel-pane-main-content:hover{box-shadow:var(--const-double-focus-ring), var(--comp-carousel-shadow)}";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement as HTMLElement$1, createEvent, h, Host, Fragment } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as createGuid, l as loc, h as handleAriaLabel, i as isEventFromElement, o as overrideFocus } from './
|
|
2
|
+
import { c as createGuid, l as loc, h as handleAriaLabel, i as isEventFromElement, o as overrideFocus } from './index15.js';
|
|
3
3
|
import { d as defineCustomElement$4 } from './index5.js';
|
|
4
4
|
import { d as defineCustomElement$3 } from './index7.js';
|
|
5
5
|
import { d as defineCustomElement$2 } from './index9.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface Q2ChartArea extends Components.Q2ChartArea, HTMLElement {}
|
|
4
|
+
export const Q2ChartArea: {
|
|
5
|
+
prototype: Q2ChartArea;
|
|
6
|
+
new (): Q2ChartArea;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|