q2-tecton-elements 1.73.0 → 1.73.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle-report.json +16 -21
- package/dist/cjs/q2-avatar.cjs.entry.js +34 -1
- package/dist/cjs/q2-badge_2.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox_2.cjs.entry.js +1 -1
- package/dist/cjs/q2-message.cjs.entry.js +1 -1
- package/dist/cjs/q2-pagination.cjs.entry.js +11 -5
- package/dist/cjs/q2-pill.cjs.entry.js +2 -2
- package/dist/cjs/q2-relative-time.cjs.entry.js +1 -1
- package/dist/cjs/q2-resize-observer.cjs.entry.js +1 -1
- package/dist/cjs/q2-search.cjs.entry.js +1 -1
- package/dist/cjs/q2-section.cjs.entry.js +2 -2
- 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-surface.cjs.entry.js +1 -1
- package/dist/cjs/q2-tab-container.cjs.entry.js +1 -1
- package/dist/cjs/q2-tab-pane.cjs.entry.js +1 -1
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -2
- package/dist/collection/components/q2-avatar/q2-avatar.js +34 -1
- package/dist/collection/components/q2-avatar/test/q2-avatar-test.vr.js +79 -4
- package/dist/collection/components/q2-input/formatting/phone-number-formats.js +1 -1
- package/dist/collection/components/q2-message/q2-message.css +1 -1
- package/dist/collection/components/q2-message/test/q2-message-test.vr.js +11 -2
- package/dist/collection/components/q2-pagination/q2-pagination.css +17 -0
- package/dist/collection/components/q2-pagination/q2-pagination.js +10 -4
- package/dist/collection/components/q2-pagination/test/q2-pagination-test.vr.js +39 -0
- package/dist/collection/components/q2-pill/q2-pill.css +14 -10
- package/dist/collection/components/q2-pill/q2-pill.js +1 -1
- package/dist/collection/components/q2-pill/test/q2-pill-test.vr.js +25 -0
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
- package/dist/collection/components/q2-search/q2-search.js +1 -1
- package/dist/collection/components/q2-section/q2-section.js +2 -2
- package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
- package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +1 -1
- package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
- package/dist/collection/components/q2-surface/q2-surface.js +1 -1
- package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
- package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
- package/dist/collection/components/q2-tag/q2-tag.js +1 -1
- package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
- package/dist/components/q2-avatar2.js +41 -27
- package/dist/components/q2-input2.js +1 -1
- package/dist/components/q2-message2.js +1 -1
- package/dist/components/q2-pagination.js +37 -35
- package/dist/components/q2-pill.js +43 -40
- package/dist/components/q2-relative-time.js +1 -1
- package/dist/components/q2-resize-observer2.js +23 -23
- package/dist/components/q2-search.js +4 -4
- package/dist/components/q2-section.js +15 -15
- package/dist/components/q2-stepper-pane.js +29 -29
- package/dist/components/q2-stepper-vertical.js +4 -4
- package/dist/components/q2-stepper.js +12 -12
- package/dist/components/q2-surface.js +3 -3
- package/dist/components/q2-tab-container.js +16 -16
- package/dist/components/q2-tab-pane.js +6 -6
- package/dist/components/q2-tag2.js +5 -5
- package/dist/components/tecton-tab-pane.js +6 -6
- package/dist/esm/q2-avatar.entry.js +34 -1
- package/dist/esm/q2-badge_2.entry.js +1 -1
- package/dist/esm/q2-checkbox_2.entry.js +1 -1
- package/dist/esm/q2-message.entry.js +1 -1
- package/dist/esm/q2-pagination.entry.js +11 -5
- package/dist/esm/q2-pill.entry.js +2 -2
- package/dist/esm/q2-relative-time.entry.js +1 -1
- package/dist/esm/q2-resize-observer.entry.js +1 -1
- package/dist/esm/q2-search.entry.js +1 -1
- package/dist/esm/q2-section.entry.js +2 -2
- 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-surface.entry.js +1 -1
- package/dist/esm/q2-tab-container.entry.js +1 -1
- package/dist/esm/q2-tab-pane.entry.js +1 -1
- package/dist/esm/tecton-tab-pane.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-avatar.entry.js +24 -10
- package/dist/q2-tecton-elements/q2-badge_2.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-checkbox_2.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-message.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-pagination.entry.js +51 -49
- package/dist/q2-tecton-elements/q2-pill.entry.js +38 -35
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-search.entry.js +30 -30
- package/dist/q2-tecton-elements/q2-section.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +12 -12
- package/dist/q2-tecton-elements/q2-stepper-vertical.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-stepper.entry.js +12 -12
- package/dist/q2-tecton-elements/q2-surface.entry.js +15 -15
- package/dist/q2-tecton-elements/q2-tab-container.entry.js +14 -14
- package/dist/q2-tecton-elements/q2-tab-pane.entry.js +4 -4
- package/dist/q2-tecton-elements/tecton-tab-pane.entry.js +9 -9
- package/dist/types/components/q2-avatar/q2-avatar.d.ts +5 -0
- package/package.json +3 -3
|
@@ -325,7 +325,7 @@ export class Q2StepperVertical {
|
|
|
325
325
|
return (h("li", { role: "presentation" }, h("button", { class: stepClasses.join(' '), type: "button", "aria-labelledby": labelledBy, "aria-describedBy": descriptionId, "aria-label": btnLabel, "aria-selected": `${isCurrentStep}`, "aria-expanded": !!pane.children.length ? `${isExpanded}` : null, id: id, "aria-disabled": isLocked ? 'true' : null, role: "tab", tabIndex: isCurrentStep ? 0 : -1, onKeyDown: ev => !isLocked && this.onStepKeyDown(ev, id), onClick: ev => !isPaneDisabled && !isLocked && this.onStepClick(ev, id) }, label && (h(Fragment, null, h("span", { class: "sr-only", id: positionId }, positionLabel), h("span", { class: "sr-only", id: statusId }, statusLabel))), statusIcon ? (h("div", { class: "step-icon" }, h("q2-icon", { "aria-hidden": "true", type: statusIcon }))) : (h("div", { class: "step-bubble" }, stepNumber)), label && (h("div", null, h("div", { class: "step-label", id: labelId, innerHTML: sanitizeHTMLString(stepLabel) }), description && (h("div", { class: "step-description", id: descriptionId, innerHTML: sanitizeHTMLString(description) }))))), this.renderSpacer(pane, isExpanded, isLastStep)));
|
|
326
326
|
}
|
|
327
327
|
render() {
|
|
328
|
-
return (h(Fragment, { key: '
|
|
328
|
+
return (h(Fragment, { key: 'd2e82613e91ef3acf210781f807807b0fba8e7fc' }, h("ul", { key: '1ad1e36d0fca4b0c1cf793de43d9ea9ccb76974f', role: "tablist" }, this.structuredPanes.map((pane, index) => this.renderStepBtn(pane, index))), h("div", { key: 'ee710c6cb41011be7a8223ec817563cfeaeb6b71', role: "list" }, h("slot", { key: '0d1f6f53b73f72f163fc219de8db9736f669720d' }))));
|
|
329
329
|
}
|
|
330
330
|
static get is() { return "q2-stepper-vertical"; }
|
|
331
331
|
static get encapsulation() { return "shadow"; }
|
|
@@ -84,7 +84,7 @@ export class Q2Surface {
|
|
|
84
84
|
// #endregion
|
|
85
85
|
// #region Render Methods
|
|
86
86
|
render() {
|
|
87
|
-
return (h(Host, { key: '
|
|
87
|
+
return (h(Host, { key: 'fba508447ca646c22aa4a14872d78e02294a2fa1' }, h("div", { key: '46ac755e4c071b2345be0ba4272f283ac2758a82', class: "container", role: this.clickable ? 'button' : undefined, tabIndex: this.clickable ? 0 : undefined }, h("slot", { key: '699fdd1427248cdff8ecf1b3b1ca1d4a892dd763' }))));
|
|
88
88
|
}
|
|
89
89
|
static get is() { return "q2-surface"; }
|
|
90
90
|
static get encapsulation() { return "shadow"; }
|
|
@@ -335,7 +335,7 @@ export class Q2TabContainer {
|
|
|
335
335
|
}
|
|
336
336
|
render() {
|
|
337
337
|
const isVertical = this.computedOrientation === 'vertical';
|
|
338
|
-
return (h(Fragment, { key: '
|
|
338
|
+
return (h(Fragment, { key: '37c84e750a2494ea2b4302fd99e0cebc443d58ce' }, h("div", { key: '249effad5ab4e880c2c203ac0e4024557c310679', class: "tab-container" }, this.scrollEnabled && (h(Fragment, { key: '10a7d53d5bde829e5897722cd924d40ce90a0b82' }, h("div", { key: 'b2acc786c41a9d1a8d3e951fdc36ecea3a304664', class: "gradient-left", hidden: !this.showScrollBack }), h("div", { key: 'fa70173c7d845f88417c6b6b6d54884ead80f34f', class: "gradient-right", hidden: !this.showScrollForward }), h("q2-btn", { key: 'd953c160ff42503dce5bb7c60d8234bdd9196d73', class: "btn-left", hidden: !this.showScrollBack, onTctClick: () => this.onScrollBtnClick('back') }, h("q2-icon", { key: '3980ef873b5d7ae6c50eb868455839344dda9701', type: isVertical ? 'chevron-up' : 'chevron-left', label: isVertical ? 'scroll up' : 'scroll left' })), h("q2-btn", { key: 'a3b1f46355ab1de2f73ac7529b734b684194093f', class: "btn-right", hidden: !this.showScrollForward, onTctClick: () => this.onScrollBtnClick('forward') }, h("q2-icon", { key: 'a2ec50ff7e0cce3716ba890c626fa56e62ecddbb', type: isVertical ? 'chevron-down' : 'chevron-right', label: isVertical ? 'scroll down' : 'scroll right' })))), h("ul", { key: 'e42bbb379d396a25b3af96985504a8f4bae1bba0', onScroll: this.checkScrollState, ref: el => (this.listElement = el), class: this.noPrint ? 'no-print' : null, role: "tablist", "aria-orientation": this.computedOrientation }, this.tabs.map((tab, index) => this.renderTab(tab, index)))), h("div", { key: '7d1f6ac5262cccb0b7087b3d93f33e46390814af', class: "tab-content" }, h("slot", { key: 'fa341fadca5ba04fe21ef7186cc0e15b5c7357db', onSlotchange: () => this.onSlotChange() }))));
|
|
339
339
|
}
|
|
340
340
|
static get is() { return "q2-tab-container"; }
|
|
341
341
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,7 +19,7 @@ export class Q2TabPane {
|
|
|
19
19
|
// #endregion
|
|
20
20
|
// #region Render Methods
|
|
21
21
|
render() {
|
|
22
|
-
return (h("div", { key: '
|
|
22
|
+
return (h("div", { key: '1a957a6a6fb4dee7e420d46ad5f576b5b25008c4', id: `tab-pane-${this.guid}-${this.index}`, class: `tab-pane${this.selected ? '' : ' hidden'}`, role: "tabpanel", tabindex: "-1", "aria-hidden": `${!this.selected}`, "aria-labelledby": `tab-${this.guid}-${this.index}` }, h("slot", { key: '9c9dc847674f0a829feb822808f7e3dac9ac3263' })));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "q2-tab-pane"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -197,7 +197,7 @@ export class Q2Tag {
|
|
|
197
197
|
if (this.optionCount)
|
|
198
198
|
wrapperClassNames.push('has-options');
|
|
199
199
|
const shouldShowOptions = this.optionCount > 0;
|
|
200
|
-
return (h(Host, { key: '
|
|
200
|
+
return (h(Host, { key: 'a46abe562647fe64e55427bcc8284bbfc5f01e3f' }, h("click-elsewhere", { key: '667e76295c30be78462ee67128a8fb2c38c01285', onChange: this.onClickElsewhere }, shouldShowOptions ? (h(Fragment, null, h("button", { class: "tag-wrapper", ref: el => (this.dropdownBtn = el), "test-id": "btn-control", type: "button", role: "combobox", onClick: this.handleClick, onKeyDown: this.handleKeydown, onFocusout: this.handleButtonFocusout, "aria-controls": "option-list", "aria-expanded": open ? 'true' : 'false', "aria-describedby": "option-description", "aria-label": loc(this.label) }, h("div", { class: wrapperClassNames.join(' ') }, loc(this.label)), h("q2-icon", { type: "options" })), this.renderHiddenElement())) : (h("div", { class: "tag-wrapper", onClick: e => e.stopPropagation() }, h("div", { class: wrapperClassNames.join(' ') }, h("slot", { name: "decorator" }), loc(this.label)))), shouldShowOptions && (h("q2-popover", { key: '805e64b738fc5a0b1a73968636a8843af33834ef', ref: el => (this.popoverElement = el), controlElement: this.dropdownBtn, open: this.open, maxHeight: this.popoverMaxHeight, minHeight: this.popoverMinHeight, direction: this.popoverDirection, align: this.popoverAlignment }, h("q2-option-list", { key: '1d037878cfcf4785439edb9a5693d4dba700e947', id: "option-list", ref: el => (this.optionList = el), onChange: this.handleChange, type: "menu", align: "right", label: loc('tecton.element.optionList.label', [this.optionListLabel]), "no-select": true }, h("slot", { key: '1039cd355f5b1a7ec7cab1eca80479042060fef4' })))))));
|
|
201
201
|
}
|
|
202
202
|
static get is() { return "q2-tag"; }
|
|
203
203
|
static get encapsulation() { return "shadow"; }
|
|
@@ -51,9 +51,9 @@ export class TectonTabPane {
|
|
|
51
51
|
// #endregion
|
|
52
52
|
// #region Render Methods
|
|
53
53
|
render() {
|
|
54
|
-
return (h("div", { key: '
|
|
54
|
+
return (h("div", { key: '313fa13779cd8ecb5439b1a96cb7aaf17f6c871b', id: `tab-pane-${this.guid}-${this.index}`, class: `tab-pane${this.selected ? '' : ' hidden'}`, role: "tabpanel", tabindex: "-1", "aria-hidden": `${!this.selected}`, "aria-labelledby": `tab-${this.guid}-${this.index}` }, this.selected && this.provided !== undefined && !this.provided && (h("div", { key: '5207414b205d1e9a25fb1455ca21ff7cc913a5fd' }, h("slot", { key: 'd883e909e38981f315bc1cab9ef57957a616c0d5', name: "loading-wrapper" }), h("iframe", { key: '2f0233d04d3c5be619cb54bfe637252a7ef42d77', hidden: true, name: this.moduleId, scrolling: "no", src: this.showForm && this.authPayload.length ? '' : this.url || '', "data-module-id": this.moduleId, style: this.minHeight ? { minHeight: this.minHeight } : null, onLoad: this.onIFrameLoad, title: this.iframeTitle, allow: "geolocation; camera" }), this._showForm && this.authPayload ? (h("form", { hidden: true, method: "post", action: this.url, target: this.moduleId, encType: "multipart/form-data" }, this.authPayload.map(element => {
|
|
55
55
|
return (h("input", { type: "hidden", value: element.value, name: element.key }));
|
|
56
|
-
}))) : (''))), h("div", { key: '
|
|
56
|
+
}))) : (''))), h("div", { key: 'ae5ee8d5a5a7d1b798f4111b33120d301b86a16b', class: "slot-wrapper", hidden: this.selected && this.provided !== undefined && !this.provided }, h("slot", { key: 'cb1057d2b6cb467a25da1577610bfcc5b6300047' }))));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "tecton-tab-pane"; }
|
|
59
59
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { proxyCustomElement as
|
|
1
|
+
import { proxyCustomElement as t, HTMLElement as a, h as r, transformTag as e } from "@stencil/core/internal/client";
|
|
2
2
|
|
|
3
3
|
import { d as i } from "./q2-icon2.js";
|
|
4
4
|
|
|
5
|
-
const o =
|
|
6
|
-
constructor(
|
|
7
|
-
super(), !1 !==
|
|
5
|
+
const o = t(class extends a {
|
|
6
|
+
constructor(t) {
|
|
7
|
+
super(), !1 !== t && this.__registerHost(), this.__attachShadow(), this.initialsFontScale = 1,
|
|
8
8
|
// #endregion
|
|
9
9
|
// #region State Properties
|
|
10
10
|
this.badSrc = !1, this.hasDecorator = !1, this.isLoaded = !1,
|
|
@@ -22,7 +22,8 @@ const o = a(class extends t {
|
|
|
22
22
|
// #endregion
|
|
23
23
|
// #region Component Lifecycle Events
|
|
24
24
|
disconnectedCallback() {
|
|
25
|
-
|
|
25
|
+
var t;
|
|
26
|
+
this.decoratorObserver && this.decoratorObserver.disconnect(), null === (t = this.initialsResizeObserver) || void 0 === t || t.disconnect();
|
|
26
27
|
}
|
|
27
28
|
componentWillLoad() {
|
|
28
29
|
this.checkDecorator();
|
|
@@ -30,6 +31,13 @@ const o = a(class extends t {
|
|
|
30
31
|
componentDidLoad() {
|
|
31
32
|
this.setupDecoratorObserver();
|
|
32
33
|
}
|
|
34
|
+
componentDidRender() {
|
|
35
|
+
var t, a, r;
|
|
36
|
+
const e = null === (t = this.el.shadowRoot) || void 0 === t ? void 0 : t.querySelector(".avatar-initials text");
|
|
37
|
+
e !== this.observedInitialsText && (null === (a = this.initialsResizeObserver) || void 0 === a || a.disconnect(),
|
|
38
|
+
this.observedInitialsText = e, this.initialsFontScale = 1, e && "function" == typeof ResizeObserver && (null !== (r = this.initialsResizeObserver) && void 0 !== r || (this.initialsResizeObserver = new ResizeObserver((() => this.fitInitials()))),
|
|
39
|
+
this.initialsResizeObserver.observe(e))), this.fitInitials();
|
|
40
|
+
}
|
|
33
41
|
// #endregion
|
|
34
42
|
// #region Watchers
|
|
35
43
|
srcDidUpdate() {
|
|
@@ -38,18 +46,24 @@ const o = a(class extends t {
|
|
|
38
46
|
// #endregion
|
|
39
47
|
// #region Local Methods
|
|
40
48
|
get computedInitials() {
|
|
41
|
-
const {initials:
|
|
42
|
-
if (!
|
|
49
|
+
const {initials: t, name: a} = this;
|
|
50
|
+
if (!t && !a) return;
|
|
43
51
|
let r = "";
|
|
44
|
-
if (
|
|
45
|
-
const
|
|
52
|
+
if (t) r = t.substr(0, 4); else if (a) {
|
|
53
|
+
const t = a.split(" "), e = t[0][0], i = t.length > 1 ? t[t.length - 1][0] : void 0;
|
|
46
54
|
r += e, i && (r += i);
|
|
47
55
|
}
|
|
48
56
|
return r = null == r ? void 0 : r.toUpperCase(), r;
|
|
49
57
|
}
|
|
50
58
|
checkDecorator() {
|
|
51
|
-
const
|
|
52
|
-
this.hasDecorator =
|
|
59
|
+
const t = Array.from(this.el.children).filter((t => "decorator" === t.getAttribute("slot")));
|
|
60
|
+
this.hasDecorator = t.length > 0;
|
|
61
|
+
}
|
|
62
|
+
fitInitials() {
|
|
63
|
+
const t = this.observedInitialsText;
|
|
64
|
+
if (!t) return;
|
|
65
|
+
const {x: a, y: r, width: e, height: i} = t.getBBox(), o = Math.max(50 - a, a + e - 50, 50 - r, r + i - 50) / this.initialsFontScale, s = o > 50 ? 48 / o : 1;
|
|
66
|
+
Math.abs(s - this.initialsFontScale) < 1e-5 || (this.initialsFontScale = s, 1 === s ? t.style.removeProperty("font-size") : t.style.fontSize = `calc(var(--tct-avatar-font-size, var(--const-px-40, 40px)) * ${s})`);
|
|
53
67
|
}
|
|
54
68
|
setupDecoratorObserver() {
|
|
55
69
|
// Set up MutationObserver to watch for changes to the host element's children
|
|
@@ -67,18 +81,18 @@ const o = a(class extends t {
|
|
|
67
81
|
// #endregion
|
|
68
82
|
// #region Render Methods
|
|
69
83
|
render() {
|
|
70
|
-
const {computedInitials:
|
|
84
|
+
const {computedInitials: t} = this, a = this.src && !this.badSrc, e = this.isLoaded, i = (this.name || this.initials) && (!this.src || this.badSrc), o = !this.name && !this.initials && (!this.src || this.badSrc);
|
|
71
85
|
return r("div", {
|
|
72
|
-
key: "
|
|
86
|
+
key: "d5a32129734a7923c61ecfbace6af0799051b8c9",
|
|
73
87
|
class: `avatar-wrapper size-${this.size}`
|
|
74
88
|
}, this.hasDecorator && r("div", {
|
|
75
|
-
key: "
|
|
89
|
+
key: "a20e35425d03a0b45df79846b1613be993935bab",
|
|
76
90
|
class: "decorator"
|
|
77
91
|
}, r("slot", {
|
|
78
|
-
key: "
|
|
92
|
+
key: "082a7d3022be63825ac0237b0f458eb3fc328737",
|
|
79
93
|
name: "decorator"
|
|
80
|
-
})),
|
|
81
|
-
key: "
|
|
94
|
+
})), a && r("img", {
|
|
95
|
+
key: "bc092a5fe3996d53f89bc69146aceb2af53b571a",
|
|
82
96
|
class: "" + (e ? "avatar-img" : "avatar-img-default"),
|
|
83
97
|
"test-id": "userImage",
|
|
84
98
|
src: this.src,
|
|
@@ -86,26 +100,26 @@ const o = a(class extends t {
|
|
|
86
100
|
onLoad: this.onLoad,
|
|
87
101
|
alt: this.name || ""
|
|
88
102
|
}), i && r("svg", {
|
|
89
|
-
key: "
|
|
103
|
+
key: "385335ea2b6d35d48179cbea4aa3ac3d99e56093",
|
|
90
104
|
viewBox: "0 0 100 100",
|
|
91
105
|
preserveAspectRatio: "xMidYMid meet",
|
|
92
106
|
"test-id": "userInitials",
|
|
93
|
-
class: `avatar-initials initials-size-${
|
|
107
|
+
class: `avatar-initials initials-size-${t.length}`,
|
|
94
108
|
"aria-label": this.name,
|
|
95
109
|
"aria-hidden": !this.name && "true"
|
|
96
110
|
}, r("text", {
|
|
97
|
-
key: "
|
|
111
|
+
key: "fb331a07ddc746787341e31febcf2a267f8f0e33",
|
|
98
112
|
x: "50",
|
|
99
113
|
y: "50",
|
|
100
114
|
"dominant-baseline": "central",
|
|
101
115
|
"text-anchor": "middle",
|
|
102
116
|
"aria-hidden": "true"
|
|
103
|
-
},
|
|
104
|
-
key: "
|
|
117
|
+
}, t)), o && r("div", {
|
|
118
|
+
key: "da7a75cc5e5b4e62eeaa63c399ed0dc6c869e99c",
|
|
105
119
|
"test-id": "fallbackIcon",
|
|
106
120
|
class: "fallback"
|
|
107
121
|
}, r("q2-icon", {
|
|
108
|
-
key: "
|
|
122
|
+
key: "626219dd1528fa7e39d298856be8205f21a6708e",
|
|
109
123
|
type: this.icon
|
|
110
124
|
})));
|
|
111
125
|
}
|
|
@@ -139,14 +153,14 @@ const o = a(class extends t {
|
|
|
139
153
|
|
|
140
154
|
function defineCustomElement() {
|
|
141
155
|
if ("undefined" == typeof customElements) return;
|
|
142
|
-
[ "q2-avatar", "q2-icon" ].forEach((
|
|
143
|
-
switch (
|
|
156
|
+
[ "q2-avatar", "q2-icon" ].forEach((t => {
|
|
157
|
+
switch (t) {
|
|
144
158
|
case "q2-avatar":
|
|
145
|
-
customElements.get(e(
|
|
159
|
+
customElements.get(e(t)) || customElements.define(e(t), o);
|
|
146
160
|
break;
|
|
147
161
|
|
|
148
162
|
case "q2-icon":
|
|
149
|
-
customElements.get(e(
|
|
163
|
+
customElements.get(e(t)) || i();
|
|
150
164
|
}
|
|
151
165
|
}));
|
|
152
166
|
}
|
|
@@ -90,7 +90,7 @@ const d = e(class extends a {
|
|
|
90
90
|
return this;
|
|
91
91
|
}
|
|
92
92
|
static get style() {
|
|
93
|
-
return '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{display:block}:host([hidden]){display:none}.message{--comp-line-height:var(--tct-message-line-height, var(--t-message-line-height, var(--app-line-height, 1.428571429em)));border-width:var(--tct-message-border-width, 0);border-style:var(--tct-message-border-style, solid);border-color:var(--tct-message-border-color, transparent);position:relative;display:grid;gap:var(--tct-message-gap, 8px);align-items:flex-start;background:var(--comp-message-background);color:var(--tct-message-font-color, var(--t-message-font-color, inherit));box-shadow:var(--tct-message-box-shadow, var(--t-message-box-shadow, var(--app-shadow-1, inherit)));border-radius:var(--tct-message-border-radius, var(--t-message-border-radius, var(--app-border-radius-1, inherit)))}.message:focus{box-shadow:var(--const-global-focus)}.bar{position:absolute;left:0;top:0;bottom:0;height:100%;background:var(--comp-bar-color);width:var(--tct-message-bar-width, var(--t-message-bar-width, 4px));border-radius:var(--tct-message-bar-border-radius, var(--app-border-radius-1) 0 0 var(--app-border-radius-1))}.message-icon{--comp-top-offset:calc(calc(var(--comp-line-height) - var(--comp-icon-size)) / 2);--tct-icon-size:var(--comp-icon-size);top:var(--comp-top-offset);margin-bottom:calc(var(--comp-top-offset) * -1)}.message-content{flex:1;
|
|
93
|
+
return '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{display:block}:host([hidden]){display:none}.message{--comp-line-height:var(--tct-message-line-height, var(--t-message-line-height, var(--app-line-height, 1.428571429em)));border-width:var(--tct-message-border-width, 0);border-style:var(--tct-message-border-style, solid);border-color:var(--tct-message-border-color, transparent);position:relative;display:grid;gap:var(--tct-message-gap, 8px);align-items:flex-start;background:var(--comp-message-background);color:var(--tct-message-font-color, var(--t-message-font-color, inherit));box-shadow:var(--tct-message-box-shadow, var(--t-message-box-shadow, var(--app-shadow-1, inherit)));border-radius:var(--tct-message-border-radius, var(--t-message-border-radius, var(--app-border-radius-1, inherit)))}.message:focus{box-shadow:var(--const-global-focus)}.bar{position:absolute;left:0;top:0;bottom:0;height:100%;background:var(--comp-bar-color);width:var(--tct-message-bar-width, var(--t-message-bar-width, 4px));border-radius:var(--tct-message-bar-border-radius, var(--app-border-radius-1) 0 0 var(--app-border-radius-1))}.message-icon{--comp-top-offset:calc(calc(var(--comp-line-height) - var(--comp-icon-size)) / 2);--tct-icon-size:var(--comp-icon-size);top:var(--comp-top-offset);margin-bottom:calc(var(--comp-top-offset) * -1)}.message-content{flex:1;font-size:var(--tct-message-font-size, inherit);line-height:max(1.2em, var(--comp-line-height))}::slotted(ul){--comp-list-default-padding:0 0 0 var(--app-scale-3x, 15px);padding:var(--tct-message-list-padding, var(--comp-list-default-padding))}:host(:not([appearance])),:host([appearance=standard]){--comp-default-margin:var(--app-scale-3x, 5px) 0;margin:var(--tct-message-margin, var(--comp-default-margin))}:host(:not([appearance])) .message,:host([appearance=standard]) .message{--comp-icon-size:var(--tct-message-icon-size, var(--t-message-icon-size, 24px));--comp-padding:var(--tct-message-padding, var(--t-message-padding, var(--app-scale-3x, 15px)));grid-template-columns:var(--comp-icon-size) 1fr;padding:var(--comp-padding);padding-bottom:calc(var(--comp-padding) - var(--tct-scale-1, var(--app-scale-1x, 5px)))}:host(:not([appearance])) ::slotted(ul),:host([appearance=standard]) ::slotted(ul){--comp-list-default-margin:var(--app-scale-3x, 15px) 0;margin:var(--tct-message-list-margin, var(--comp-list-default-margin))}:host([appearance=minimal]){margin:0}:host([appearance=minimal]) .message{padding:var(--tct-message-minimal-padding, var(--t-message-minimal-padding, var(--app-scale-2x, 10px)));grid-template-columns:1fr}:host([appearance=minimal]) ::slotted(ul){margin:var(--tct-scale-1, var(--app-scale-1x, 5px)) 0}:host(:not([type])),:host([type=info]){--comp-info-color:#0079c1;--comp-bar-color:var(--tct-message-info-bar-color, var(--const-stoplight-info, var(--comp-info-color)));--comp-message-background:var(--tct-message-info-background, var(--tct-message-background, color-mix(in srgb, var(--t-base, #FFFFFF), var(--comp-bar-color) 10%)))}:host(:not([type])) .message-icon,:host([type=info]) .message-icon{--tct-icon-stroke-primary:var(--tct-stoplight-info, var(--const-stoplight-info, var(--comp-info-color)));--tct-icon-stroke-secondary:var(--tct-stoplight-info, var(--const-stoplight-info, var(--comp-info-color)))}:host([type=success]){--comp-success-color:#0e8a00;--comp-bar-color:var(--tct-message-success-bar-color, var(--const-stoplight-success, var(--comp-success-color)));--comp-message-background:var(--tct-message-success-background, var(--tct-message-background, color-mix(in srgb, var(--t-base, #FFFFFF), var(--comp-bar-color) 10%)))}:host([type=success]) .message-icon{--tct-icon-stroke-primary:var(--tct-stoplight-success, var(--const-stoplight-success, var(--comp-success-color)));--tct-icon-stroke-secondary:var(--tct-stoplight-success, var(--const-stoplight-success, var(--comp-success-color)))}:host([type=warning]){--comp-warning-color:#c35500;--comp-bar-color:var(--tct-message-warning-bar-color, var(--const-stoplight-warning, var(--comp-warning-color)));--comp-message-background:var(--tct-message-warning-background, var(--tct-message-background, color-mix(in srgb, var(--t-base, #FFFFFF), var(--comp-bar-color) 10%)))}:host([type=warning]) .message-icon{--tct-icon-stroke-primary:var(--tct-stoplight-warning, var(--const-stoplight-warning, var(--comp-warning-color)));--tct-icon-stroke-secondary:var(--tct-stoplight-warning, var(--const-stoplight-warning, var(--comp-warning-color)))}:host([type=error]),:host([type=danger]){--comp-error-color:#d20a0a;--comp-bar-color:var(--tct-message-error-bar-color, var(--const-stoplight-alert, var(--comp-error-color)));--comp-message-background:var(--tct-message-error-background, var(--tct-message-background, color-mix(in srgb, var(--t-base, #FFFFFF), var(--comp-bar-color) 10%)))}:host([type=error]) .message-icon,:host([type=danger]) .message-icon{--tct-icon-stroke-primary:var(--tct-stoplight-error, var(--const-stoplight-alert, var(--comp-error-color)));--tct-icon-stroke-secondary:var(--tct-stoplight-error, var(--const-stoplight-alert, var(--comp-error-color)))}';
|
|
94
94
|
}
|
|
95
95
|
}, [ 257, "q2-message", {
|
|
96
96
|
appearance: [ 513 ],
|
|
@@ -12,9 +12,9 @@ import { d as g } from "./q2-btn2.js";
|
|
|
12
12
|
|
|
13
13
|
import { d as u } from "./q2-icon2.js";
|
|
14
14
|
|
|
15
|
-
import { d as
|
|
15
|
+
import { d as m } from "./q2-input2.js";
|
|
16
16
|
|
|
17
|
-
import { d as
|
|
17
|
+
import { d as f } from "./q2-loading2.js";
|
|
18
18
|
|
|
19
19
|
import { d as b } from "./q2-option2.js";
|
|
20
20
|
|
|
@@ -32,8 +32,8 @@ const x = t(class extends e {
|
|
|
32
32
|
this.autoSize = !0,
|
|
33
33
|
/** Allows the component to be disabled should the state of the page require this */
|
|
34
34
|
this.disabled = !1, this.checkSize = () => {
|
|
35
|
-
const {hostElement: t, containerElement: e} = this, i = this.containerWidth > t.clientWidth;
|
|
36
|
-
this.isSmall =
|
|
35
|
+
const {hostElement: t, containerElement: e} = this, i = parseFloat(getComputedStyle(e).fontSize), a = this.containerWidth > t.clientWidth || t.clientWidth < 42 * i;
|
|
36
|
+
this.isSmall = a, s((() => {
|
|
37
37
|
const t = e.clientWidth, i = this.isSmall ? Math.max(this.containerWidth || 0, t) : t;
|
|
38
38
|
this.containerWidth === i || (this.containerWidth = i, this.checkSize());
|
|
39
39
|
}));
|
|
@@ -65,7 +65,9 @@ const x = t(class extends e {
|
|
|
65
65
|
this.align || (this.align = this.stacked ? "center" : "right");
|
|
66
66
|
}
|
|
67
67
|
componentDidLoad() {
|
|
68
|
-
|
|
68
|
+
var t;
|
|
69
|
+
this.containerWidth = this.containerElement.clientWidth, null === (t = this.resizeObserver) || void 0 === t || t.observe(this.containerElement),
|
|
70
|
+
o(this.hostElement);
|
|
69
71
|
}
|
|
70
72
|
// #endregion
|
|
71
73
|
// #region Listeners
|
|
@@ -162,7 +164,7 @@ const x = t(class extends e {
|
|
|
162
164
|
// #region Local Methods
|
|
163
165
|
get containerClasses() {
|
|
164
166
|
const t = [ "container" ];
|
|
165
|
-
return this.stacked && t.push("stacked"), t;
|
|
167
|
+
return this.stacked && t.push("stacked"), this.isSmall && t.push("small"), t;
|
|
166
168
|
}
|
|
167
169
|
get currentRange() {
|
|
168
170
|
const {perPageWithDefault: t, totalWithDefault: e, pageWithDefault: i} = this;
|
|
@@ -227,7 +229,7 @@ const x = t(class extends e {
|
|
|
227
229
|
}
|
|
228
230
|
render() {
|
|
229
231
|
var t;
|
|
230
|
-
const {pagesOnly: e, recordsOnly: i, isFullViewHidden: n, recordTypeWithDefault: s, totalPages: o, totalWithDefault: r, pageWithDefault: c, currentRange: p, nextRange: h, prevRange: d, showPerPageSelect: g, disabled: u} = this,
|
|
232
|
+
const {pagesOnly: e, recordsOnly: i, isFullViewHidden: n, recordTypeWithDefault: s, totalPages: o, totalWithDefault: r, pageWithDefault: c, currentRange: p, nextRange: h, prevRange: d, showPerPageSelect: g, disabled: u} = this, m = c < 2, f = c === o;
|
|
231
233
|
let b = l("tecton.element.pagination.goToNext"), v = l("tecton.element.pagination.goToPrevious");
|
|
232
234
|
return e ? (v = l("tecton.element.pagination.goToPages", {
|
|
233
235
|
next: c - 1,
|
|
@@ -244,12 +246,12 @@ const x = t(class extends e {
|
|
|
244
246
|
recordType: s.toLowerCase(),
|
|
245
247
|
total: r
|
|
246
248
|
})), a("nav", {
|
|
247
|
-
key: "
|
|
249
|
+
key: "a427944d7134621fe5c1cc469d554cf60ea69271",
|
|
248
250
|
class: this.containerClasses.join(" "),
|
|
249
251
|
ref: t => this.containerElement = t,
|
|
250
252
|
"aria-label": l("tecton.element.pagination.title")
|
|
251
253
|
}, a("div", {
|
|
252
|
-
key: "
|
|
254
|
+
key: "ab5e3a0dc0a8c3ab99c8d6754097c37ae1c10193",
|
|
253
255
|
class: "description",
|
|
254
256
|
"test-id": "description"
|
|
255
257
|
}, e ? l("tecton.element.pagination.pages", {
|
|
@@ -260,47 +262,47 @@ const x = t(class extends e {
|
|
|
260
262
|
recordType: s.toLowerCase(),
|
|
261
263
|
total: r.toLocaleString()
|
|
262
264
|
})), a("div", {
|
|
263
|
-
key: "
|
|
265
|
+
key: "e84213e3dbeac1bb54fcd8244e486274869c5fa5",
|
|
264
266
|
class: "controls"
|
|
265
267
|
}, a("div", {
|
|
266
|
-
key: "
|
|
268
|
+
key: "f5a4cb3a4d467b2ce412afa2bb016e1843ccb364",
|
|
267
269
|
class: "btn-group"
|
|
268
270
|
}, a("q2-btn", {
|
|
269
|
-
key: "
|
|
271
|
+
key: "b4d315503de340e482ffb042d3cd4dbaff1aa3eb",
|
|
270
272
|
ref: t => this.firstPageBtn = t,
|
|
271
273
|
label: l("tecton.element.pagination.goToFirstPage"),
|
|
272
|
-
disabled: u ||
|
|
274
|
+
disabled: u || m,
|
|
273
275
|
hidden: n,
|
|
274
276
|
onTctClick: () => this.handlePageChange(1),
|
|
275
277
|
"test-id": "firstPageBtn",
|
|
276
278
|
"hide-label": !0
|
|
277
279
|
}, a("q2-icon", {
|
|
278
|
-
key: "
|
|
280
|
+
key: "8d437e9a6b00999eee091accd8581b84a2dbe4fe",
|
|
279
281
|
type: "chevron-double-left"
|
|
280
282
|
})), a("q2-btn", {
|
|
281
|
-
key: "
|
|
283
|
+
key: "bd91788b84cbe8a55fb7e7b53342a6c9a75e3694",
|
|
282
284
|
ref: t => this.prevPageBtn = t,
|
|
283
285
|
label: v,
|
|
284
|
-
disabled: u ||
|
|
286
|
+
disabled: u || m,
|
|
285
287
|
onTctClick: () => this.handlePageChange(c - 1),
|
|
286
288
|
"test-id": "prevPageBtn",
|
|
287
289
|
"hide-label": !0
|
|
288
290
|
}, a("q2-icon", {
|
|
289
|
-
key: "
|
|
291
|
+
key: "bf9285d825da06e43e330b565ecf46f72a9ad930",
|
|
290
292
|
type: "chevron-left"
|
|
291
293
|
}))), a("div", {
|
|
292
|
-
key: "
|
|
294
|
+
key: "76ce1e31814ec56e7d060200ee8a87c720c5fc1e",
|
|
293
295
|
class: "input-display",
|
|
294
296
|
hidden: n
|
|
295
297
|
}, a("span", {
|
|
296
|
-
key: "
|
|
298
|
+
key: "b1768b78ca08e2f76892823a165448c298d2a5b4",
|
|
297
299
|
"aria-hidden": "true"
|
|
298
300
|
}, l("tecton.element.pagination.page")), a("div", {
|
|
299
|
-
key: "
|
|
301
|
+
key: "8909fdeaf8832ec6a104ffad86258d0d3034fbb3",
|
|
300
302
|
class: "input-wrapper",
|
|
301
303
|
onClick: () => this.inputField.dispatchEvent(new FocusEvent("focus"))
|
|
302
304
|
}, a("q2-input", {
|
|
303
|
-
key: "
|
|
305
|
+
key: "96e0ce1764dc542fcac5a516b608b379bd1453a9",
|
|
304
306
|
ref: t => this.inputField = t,
|
|
305
307
|
type: "number",
|
|
306
308
|
value: "" + c,
|
|
@@ -317,36 +319,36 @@ const x = t(class extends e {
|
|
|
317
319
|
current: "page",
|
|
318
320
|
disabled: u
|
|
319
321
|
})), a("span", {
|
|
320
|
-
key: "
|
|
322
|
+
key: "3914f78404deab10b4173df5b16c205067c7e15e",
|
|
321
323
|
"aria-hidden": "true"
|
|
322
324
|
}, l("tecton.element.pagination.ofPages", [ o.toLocaleString() ]))), a("div", {
|
|
323
|
-
key: "
|
|
325
|
+
key: "b5b441d213d99d04b18c976628ba07142e00856f",
|
|
324
326
|
class: "btn-group"
|
|
325
327
|
}, a("q2-btn", {
|
|
326
|
-
key: "
|
|
328
|
+
key: "3299b27a7d24045f2258288e86702a4b7e6d1e37",
|
|
327
329
|
ref: t => this.nextPageBtn = t,
|
|
328
330
|
label: b,
|
|
329
|
-
disabled: u ||
|
|
331
|
+
disabled: u || f,
|
|
330
332
|
onTctClick: () => this.handlePageChange(c + 1),
|
|
331
333
|
"test-id": "nextPageBtn",
|
|
332
334
|
"hide-label": !0
|
|
333
335
|
}, a("q2-icon", {
|
|
334
|
-
key: "
|
|
336
|
+
key: "d63e7679e5087a1a03bb17fd0a7c24c0d07bdf87",
|
|
335
337
|
type: "chevron-right"
|
|
336
338
|
})), a("q2-btn", {
|
|
337
|
-
key: "
|
|
339
|
+
key: "f575528380b7d239db48f49353d71b88ba0e2d9e",
|
|
338
340
|
ref: t => this.lastPageBtn = t,
|
|
339
341
|
label: "tecton.element.pagination.goToLastPage",
|
|
340
|
-
disabled: u ||
|
|
342
|
+
disabled: u || f,
|
|
341
343
|
hidden: n,
|
|
342
344
|
onTctClick: () => this.handlePageChange(o),
|
|
343
345
|
"test-id": "lastPageBtn",
|
|
344
346
|
"hide-label": !0
|
|
345
347
|
}, a("q2-icon", {
|
|
346
|
-
key: "
|
|
348
|
+
key: "c76d0fe0dff9095f893604fc41cd4d615075045e",
|
|
347
349
|
type: "chevron-double-right"
|
|
348
350
|
})))), a("div", {
|
|
349
|
-
key: "
|
|
351
|
+
key: "71ad1c246e16a1c84318d7ccf75d50a37246af12",
|
|
350
352
|
class: "per-page",
|
|
351
353
|
hidden: n || !(null === (t = this.perPageIncrements) || void 0 === t ? void 0 : t.length)
|
|
352
354
|
}, g && this.renderPerPage()));
|
|
@@ -374,7 +376,7 @@ const x = t(class extends e {
|
|
|
374
376
|
};
|
|
375
377
|
}
|
|
376
378
|
static get style() {
|
|
377
|
-
return '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{display:flex;width:100%}:host([align=right]),:host([alignment=right]){justify-content:flex-end}:host([align=center]),:host([alignment=center]){justify-content:center}:host([align=left]),:host([alignment=left]){justify-content:flex-start}:host([hidden]){display:none}.container{display:inline-flex;column-gap:var(--tct-pagination-column-gap, var(--t-pagination-column-gap, var(--app-scale-2x, 10px)));align-items:center;height:var(--tct-pagination-height, var(--t-pagination-height, 44px));color:var(--tct-pagination-color, inherit);font-size:var(--tct-pagination-font-size, inherit);font-weight:var(--tct-pagination-font-weight, inherit)}.container.stacked{flex-direction:column;column-gap:0;row-gap:var(--tct-pagination-row-gap, var(--app-scale-2x, 10px));height:auto;align-items:stretch}.container.stacked .description{text-align:center}.container.stacked .controls{justify-content:center}.container.stacked .per-page{display:flex;justify-content:center}.container.stacked q2-select{--tct-select-margin:0;width:var(--tct-pagination-perpage-width, 60%)}.controls{display:flex}.btn-group{display:flex;gap:var(--tct-pagination-btn-gap, var(--t-pagination-btn-gap, 0))}.description,.input-display{white-space:nowrap}.input-display{display:grid;grid-template-columns:auto var(--tct-pagination-input-width, 50px) auto;align-items:center;gap:var(--tct-pagination-controls-gap, var(--t-pagination-controls-gap, var(--app-scale-1x, 5px)))}.input-display[hidden]{display:none}.input-wrapper{height:var(--tct-pagination-height, var(--t-pagination-height, 44px));display:flex;align-items:center}q2-btn{--tct-btn-border-radius:var(--tct-pagination-btn-border-radius, var(--t-pagination-btn-border-radius));--tct-btn-border:var(--tct-pagination-btn-border, var(--t-pagination-btn-border));--tct-btn-icon-hover-background:var(--tct-pagination-btn-hover-background, var(--app-gray-l3, #f2f2f2));--tct-icon-stroke-primary:var(--tct-pagination-btn-icon-stroke-primary, var(--app-gray, #747474));--tct-icon-stroke-secondary:var(--tct-pagination-btn-icon-stroke-secondary, var(--app-gray, #747474))}q2-icon{--tct-icon-size:var(--tct-pagination-icon-size, var(--t-pagination-icon-size, 12px));color:var(--tct-pagination-icon-color, var(--t-pagination-icon-color, var(--t-text, #4d4d4d)))}q2-input{--tct-input-margin-top:0;--tct-input-margin-bottom:0;--tct-input-height:var(--tct-pagination-input-height, var(--t-pagination-input-height, 30px));--tct-input-min-height:var(--tct-input-height);--tct-input-align:center}q2-select{--tct-input-align:start;--tct-select-input-min-height:var(--tct-pagination-select-height, var(--t-pagination-select-height, 30px));--tct-select-input-max-height:var(--tct-pagination-select-height, var(--t-pagination-select-height, 30px));width:var(--tct-pagination-perpage-width, var(--t-pagination-perpage-width, 100%));min-width:var(--tct-pagination-perpage-min-width, var(--t-pagination-perpage-min-width, 110px))}';
|
|
379
|
+
return '*{box-sizing:border-box}*:active{outline:none}*:focus-visible{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}@container style(--t-prefers-motion: "reduced"){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")){@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important;animation-delay:0ms !important;transition-delay:0ms !important}}}:host{display:flex;width:100%}:host([align=right]),:host([alignment=right]){justify-content:flex-end}:host([align=center]),:host([alignment=center]){justify-content:center}:host([align=left]),:host([alignment=left]){justify-content:flex-start}:host([hidden]){display:none}.container{display:inline-flex;column-gap:var(--tct-pagination-column-gap, var(--t-pagination-column-gap, var(--app-scale-2x, 10px)));align-items:center;height:var(--tct-pagination-height, var(--t-pagination-height, 44px));color:var(--tct-pagination-color, inherit);font-size:var(--tct-pagination-font-size, inherit);font-weight:var(--tct-pagination-font-weight, inherit)}.container.stacked{flex-direction:column;column-gap:0;row-gap:var(--tct-pagination-row-gap, var(--app-scale-2x, 10px));height:auto;align-items:stretch}.container.stacked .description{text-align:center}.container.stacked .controls{justify-content:center}.container.stacked .per-page{display:flex;justify-content:center}.container.stacked q2-select{--tct-select-margin:0;width:var(--tct-pagination-perpage-width, 60%)}.container.small{flex-wrap:wrap;row-gap:var(--tct-pagination-row-gap, var(--app-scale-2x, 10px));height:auto;max-width:100%}.container.small .description{flex-basis:100%;min-width:0;overflow-wrap:anywhere;text-align:center;white-space:normal;line-height:max(1.2em, var(--app-line-height, 1.428571429em))}.container.small .controls{margin-inline:auto}.controls{display:flex}.btn-group{display:flex;gap:var(--tct-pagination-btn-gap, var(--t-pagination-btn-gap, 0))}.description,.input-display{white-space:nowrap}.input-display{display:grid;grid-template-columns:auto var(--tct-pagination-input-width, 50px) auto;align-items:center;gap:var(--tct-pagination-controls-gap, var(--t-pagination-controls-gap, var(--app-scale-1x, 5px)))}.input-display[hidden]{display:none}.input-wrapper{height:var(--tct-pagination-height, var(--t-pagination-height, 44px));display:flex;align-items:center}q2-btn{--tct-btn-border-radius:var(--tct-pagination-btn-border-radius, var(--t-pagination-btn-border-radius));--tct-btn-border:var(--tct-pagination-btn-border, var(--t-pagination-btn-border));--tct-btn-icon-hover-background:var(--tct-pagination-btn-hover-background, var(--app-gray-l3, #f2f2f2));--tct-icon-stroke-primary:var(--tct-pagination-btn-icon-stroke-primary, var(--app-gray, #747474));--tct-icon-stroke-secondary:var(--tct-pagination-btn-icon-stroke-secondary, var(--app-gray, #747474))}q2-icon{--tct-icon-size:var(--tct-pagination-icon-size, var(--t-pagination-icon-size, 12px));color:var(--tct-pagination-icon-color, var(--t-pagination-icon-color, var(--t-text, #4d4d4d)))}q2-input{--tct-input-margin-top:0;--tct-input-margin-bottom:0;--tct-input-height:var(--tct-pagination-input-height, var(--t-pagination-input-height, 30px));--tct-input-min-height:var(--tct-input-height);--tct-input-align:center}q2-select{--tct-input-align:start;--tct-select-input-min-height:var(--tct-pagination-select-height, var(--t-pagination-select-height, 30px));--tct-select-input-max-height:var(--tct-pagination-select-height, var(--t-pagination-select-height, 30px));width:var(--tct-pagination-perpage-width, var(--t-pagination-perpage-width, 100%));min-width:var(--tct-pagination-perpage-min-width, var(--t-pagination-perpage-min-width, 110px))}';
|
|
378
380
|
}
|
|
379
381
|
}, [ 1, "q2-pagination", {
|
|
380
382
|
align: [ 1537 ],
|
|
@@ -415,7 +417,7 @@ const x = t(class extends e {
|
|
|
415
417
|
} ]
|
|
416
418
|
} ]);
|
|
417
419
|
|
|
418
|
-
const
|
|
420
|
+
const w = x, defineCustomElement = function() {
|
|
419
421
|
if ("undefined" == typeof customElements) return;
|
|
420
422
|
[ "q2-pagination", "click-elsewhere", "q2-badge", "q2-btn", "q2-icon", "q2-input", "q2-loading", "q2-option", "q2-option-list", "q2-popover", "q2-select" ].forEach((t => {
|
|
421
423
|
switch (t) {
|
|
@@ -440,11 +442,11 @@ const q = x, defineCustomElement = function() {
|
|
|
440
442
|
break;
|
|
441
443
|
|
|
442
444
|
case "q2-input":
|
|
443
|
-
customElements.get(n(t)) ||
|
|
445
|
+
customElements.get(n(t)) || m();
|
|
444
446
|
break;
|
|
445
447
|
|
|
446
448
|
case "q2-loading":
|
|
447
|
-
customElements.get(n(t)) ||
|
|
449
|
+
customElements.get(n(t)) || f();
|
|
448
450
|
break;
|
|
449
451
|
|
|
450
452
|
case "q2-option":
|
|
@@ -465,4 +467,4 @@ const q = x, defineCustomElement = function() {
|
|
|
465
467
|
}));
|
|
466
468
|
};
|
|
467
469
|
|
|
468
|
-
export {
|
|
470
|
+
export { w as Q2Pagination, defineCustomElement }
|