q2-tecton-elements 1.9.5 → 1.10.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/{icons-077ed9b7.js → icons-fa5f4367.js} +22 -22
- package/dist/cjs/index-14348270.js +557 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q2-btn_2.cjs.entry.js +7 -6
- package/dist/cjs/q2-calendar.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-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
- package/dist/cjs/q2-icon.cjs.entry.js +23 -10
- package/dist/cjs/q2-input.cjs.entry.js +18 -5
- package/dist/cjs/q2-loc.cjs.entry.js +1 -1
- package/dist/cjs/q2-optgroup.cjs.entry.js +1 -1
- package/dist/cjs/q2-option.cjs.entry.js +43 -5
- 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 +104 -62
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +27 -0
- package/dist/cjs/q2-stepper.cjs.entry.js +187 -0
- package/dist/cjs/q2-tab-container.cjs.entry.js +12 -464
- 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-btn/index.js +6 -5
- package/dist/collection/components/q2-calendar/styles.css +18 -0
- package/dist/collection/components/q2-checkbox-group/styles.css +12 -2
- package/dist/collection/components/q2-dropdown/styles.css +18 -0
- package/dist/collection/components/q2-icon/icons.js +22 -22
- package/dist/collection/components/q2-icon/index.js +41 -9
- package/dist/collection/components/q2-icon/styles.css +57 -50
- package/dist/collection/components/q2-input/formatting/phone.js +8 -0
- package/dist/collection/components/q2-input/index.js +8 -3
- package/dist/collection/components/q2-input/styles.css +20 -125
- package/dist/collection/components/q2-option/index.js +104 -8
- package/dist/collection/components/q2-option/styles.css +31 -37
- package/dist/collection/components/q2-select/index.js +106 -62
- package/dist/collection/components/q2-select/styles.css +18 -0
- package/dist/collection/components/q2-stepper/index.js +283 -0
- package/dist/collection/components/q2-stepper/styles.css +253 -0
- package/dist/collection/components/q2-stepper-pane/index.js +76 -0
- package/dist/collection/components/q2-stepper-pane/styles.css +70 -0
- package/dist/collection/components/q2-tab-container/index.js +2 -9
- package/dist/collection/utils/index.js +23 -2
- package/dist/esm/{icons-5506a72c.js → icons-17612675.js} +22 -22
- package/dist/esm/index-da24669a.js +548 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/q2-btn_2.entry.js +7 -6
- package/dist/esm/q2-calendar.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-checkbox-group.entry.js +2 -2
- package/dist/esm/q2-checkbox.entry.js +1 -1
- package/dist/esm/q2-dropdown-item.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +2 -2
- package/dist/esm/q2-editable-field.entry.js +1 -1
- package/dist/esm/q2-icon.entry.js +23 -10
- package/dist/esm/q2-input.entry.js +18 -5
- package/dist/esm/q2-loc.entry.js +1 -1
- package/dist/esm/q2-optgroup.entry.js +1 -1
- package/dist/esm/q2-option.entry.js +44 -6
- 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 +104 -62
- package/dist/esm/q2-stepper-pane.entry.js +23 -0
- package/dist/esm/q2-stepper.entry.js +183 -0
- package/dist/esm/q2-tab-container.entry.js +2 -454
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +1 -1
- package/dist/q2-tecton-elements/{p-f1ec7948.entry.js → p-2a28baa9.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-2c2a5d58.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-93799868.entry.js → p-2f2bbed9.entry.js} +3 -3
- package/dist/q2-tecton-elements/p-37d281b7.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-dfe693e9.entry.js → p-3f2590c0.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-4d283b84.entry.js +1 -0
- package/dist/q2-tecton-elements/p-5289f040.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-f6d2fa2f.entry.js → p-576509e6.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-c6d4933e.entry.js → p-64eef8d1.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-89ae4f7b.entry.js → p-65894494.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-6ed006a7.entry.js +1 -0
- package/dist/q2-tecton-elements/p-6f570344.js +1 -0
- package/dist/q2-tecton-elements/{p-0c23d50a.entry.js → p-7520656d.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-792d1170.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-ccb8126f.entry.js → p-82b24667.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-ec245511.entry.js → p-86116f5c.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-ed433950.entry.js → p-891ca6f8.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-8b4f6d3f.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-0e9e5b53.entry.js → p-9b420e22.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-aaa55918.js +1 -0
- package/dist/q2-tecton-elements/{p-915ce8d8.entry.js → p-c14e0622.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-c92e3bc2.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-7a952b02.entry.js → p-d0d605dc.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-e3a27b97.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-72f9686c.entry.js → p-ebee91e2.entry.js} +1 -1
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/types/components/q2-icon/index.d.ts +1 -0
- package/dist/types/components/q2-input/formatting/phone.d.ts +8 -0
- package/dist/types/components/q2-option/index.d.ts +9 -2
- package/dist/types/components/q2-select/index.d.ts +4 -1
- package/dist/types/components/q2-stepper/index.d.ts +33 -0
- package/dist/types/components/q2-stepper-pane/index.d.ts +9 -0
- package/dist/types/components.d.ts +46 -0
- package/dist/types/global.d.ts +1 -0
- package/dist/types/utils/index.d.ts +5 -2
- package/dist/types/workspace/workspace/{_tecton-production_release_1.9.x → Tecton_tecton-production_master}/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +0 -0
- package/package.json +2 -2
- package/dist/cjs/index-2dcb1a72.js +0 -99
- package/dist/esm/index-f3de8cee.js +0 -91
- package/dist/q2-tecton-elements/p-031a8f06.js +0 -1
- package/dist/q2-tecton-elements/p-044827e2.entry.js +0 -1
- package/dist/q2-tecton-elements/p-0feefe56.js +0 -1
- package/dist/q2-tecton-elements/p-1022a1c6.entry.js +0 -1
- package/dist/q2-tecton-elements/p-12f6dc10.entry.js +0 -1
- package/dist/q2-tecton-elements/p-5da60194.entry.js +0 -1
- package/dist/q2-tecton-elements/p-b0cb8867.entry.js +0 -1
- package/dist/q2-tecton-elements/p-d93abdce.entry.js +0 -1
- package/dist/q2-tecton-elements/p-e5e8eac3.entry.js +0 -1
|
@@ -0,0 +1,548 @@
|
|
|
1
|
+
import { h } from './index-5fa3e016.js';
|
|
2
|
+
|
|
3
|
+
function createCommonjsModule(fn, basedir, module) {
|
|
4
|
+
return module = {
|
|
5
|
+
path: basedir,
|
|
6
|
+
exports: {},
|
|
7
|
+
require: function (path, base) {
|
|
8
|
+
return commonjsRequire();
|
|
9
|
+
}
|
|
10
|
+
}, fn(module, module.exports), module.exports;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function commonjsRequire () {
|
|
14
|
+
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
var smoothscroll = createCommonjsModule(function (module, exports) {
|
|
18
|
+
/* smoothscroll v0.4.4 - 2019 - Dustan Kasten, Jeremias Menichelli - MIT License */
|
|
19
|
+
(function () {
|
|
20
|
+
|
|
21
|
+
// polyfill
|
|
22
|
+
function polyfill() {
|
|
23
|
+
// aliases
|
|
24
|
+
var w = window;
|
|
25
|
+
var d = document;
|
|
26
|
+
|
|
27
|
+
// return if scroll behavior is supported and polyfill is not forced
|
|
28
|
+
if (
|
|
29
|
+
'scrollBehavior' in d.documentElement.style &&
|
|
30
|
+
w.__forceSmoothScrollPolyfill__ !== true
|
|
31
|
+
) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// globals
|
|
36
|
+
var Element = w.HTMLElement || w.Element;
|
|
37
|
+
var SCROLL_TIME = 468;
|
|
38
|
+
|
|
39
|
+
// object gathering original scroll methods
|
|
40
|
+
var original = {
|
|
41
|
+
scroll: w.scroll || w.scrollTo,
|
|
42
|
+
scrollBy: w.scrollBy,
|
|
43
|
+
elementScroll: Element.prototype.scroll || scrollElement,
|
|
44
|
+
scrollIntoView: Element.prototype.scrollIntoView
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// define timing method
|
|
48
|
+
var now =
|
|
49
|
+
w.performance && w.performance.now
|
|
50
|
+
? w.performance.now.bind(w.performance)
|
|
51
|
+
: Date.now;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* indicates if a the current browser is made by Microsoft
|
|
55
|
+
* @method isMicrosoftBrowser
|
|
56
|
+
* @param {String} userAgent
|
|
57
|
+
* @returns {Boolean}
|
|
58
|
+
*/
|
|
59
|
+
function isMicrosoftBrowser(userAgent) {
|
|
60
|
+
var userAgentPatterns = ['MSIE ', 'Trident/', 'Edge/'];
|
|
61
|
+
|
|
62
|
+
return new RegExp(userAgentPatterns.join('|')).test(userAgent);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/*
|
|
66
|
+
* IE has rounding bug rounding down clientHeight and clientWidth and
|
|
67
|
+
* rounding up scrollHeight and scrollWidth causing false positives
|
|
68
|
+
* on hasScrollableSpace
|
|
69
|
+
*/
|
|
70
|
+
var ROUNDING_TOLERANCE = isMicrosoftBrowser(w.navigator.userAgent) ? 1 : 0;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* changes scroll position inside an element
|
|
74
|
+
* @method scrollElement
|
|
75
|
+
* @param {Number} x
|
|
76
|
+
* @param {Number} y
|
|
77
|
+
* @returns {undefined}
|
|
78
|
+
*/
|
|
79
|
+
function scrollElement(x, y) {
|
|
80
|
+
this.scrollLeft = x;
|
|
81
|
+
this.scrollTop = y;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* returns result of applying ease math function to a number
|
|
86
|
+
* @method ease
|
|
87
|
+
* @param {Number} k
|
|
88
|
+
* @returns {Number}
|
|
89
|
+
*/
|
|
90
|
+
function ease(k) {
|
|
91
|
+
return 0.5 * (1 - Math.cos(Math.PI * k));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* indicates if a smooth behavior should be applied
|
|
96
|
+
* @method shouldBailOut
|
|
97
|
+
* @param {Number|Object} firstArg
|
|
98
|
+
* @returns {Boolean}
|
|
99
|
+
*/
|
|
100
|
+
function shouldBailOut(firstArg) {
|
|
101
|
+
if (
|
|
102
|
+
firstArg === null ||
|
|
103
|
+
typeof firstArg !== 'object' ||
|
|
104
|
+
firstArg.behavior === undefined ||
|
|
105
|
+
firstArg.behavior === 'auto' ||
|
|
106
|
+
firstArg.behavior === 'instant'
|
|
107
|
+
) {
|
|
108
|
+
// first argument is not an object/null
|
|
109
|
+
// or behavior is auto, instant or undefined
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (typeof firstArg === 'object' && firstArg.behavior === 'smooth') {
|
|
114
|
+
// first argument is an object and behavior is smooth
|
|
115
|
+
return false;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// throw error when behavior is not supported
|
|
119
|
+
throw new TypeError(
|
|
120
|
+
'behavior member of ScrollOptions ' +
|
|
121
|
+
firstArg.behavior +
|
|
122
|
+
' is not a valid value for enumeration ScrollBehavior.'
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* indicates if an element has scrollable space in the provided axis
|
|
128
|
+
* @method hasScrollableSpace
|
|
129
|
+
* @param {Node} el
|
|
130
|
+
* @param {String} axis
|
|
131
|
+
* @returns {Boolean}
|
|
132
|
+
*/
|
|
133
|
+
function hasScrollableSpace(el, axis) {
|
|
134
|
+
if (axis === 'Y') {
|
|
135
|
+
return el.clientHeight + ROUNDING_TOLERANCE < el.scrollHeight;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if (axis === 'X') {
|
|
139
|
+
return el.clientWidth + ROUNDING_TOLERANCE < el.scrollWidth;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* indicates if an element has a scrollable overflow property in the axis
|
|
145
|
+
* @method canOverflow
|
|
146
|
+
* @param {Node} el
|
|
147
|
+
* @param {String} axis
|
|
148
|
+
* @returns {Boolean}
|
|
149
|
+
*/
|
|
150
|
+
function canOverflow(el, axis) {
|
|
151
|
+
var overflowValue = w.getComputedStyle(el, null)['overflow' + axis];
|
|
152
|
+
|
|
153
|
+
return overflowValue === 'auto' || overflowValue === 'scroll';
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* indicates if an element can be scrolled in either axis
|
|
158
|
+
* @method isScrollable
|
|
159
|
+
* @param {Node} el
|
|
160
|
+
* @param {String} axis
|
|
161
|
+
* @returns {Boolean}
|
|
162
|
+
*/
|
|
163
|
+
function isScrollable(el) {
|
|
164
|
+
var isScrollableY = hasScrollableSpace(el, 'Y') && canOverflow(el, 'Y');
|
|
165
|
+
var isScrollableX = hasScrollableSpace(el, 'X') && canOverflow(el, 'X');
|
|
166
|
+
|
|
167
|
+
return isScrollableY || isScrollableX;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* finds scrollable parent of an element
|
|
172
|
+
* @method findScrollableParent
|
|
173
|
+
* @param {Node} el
|
|
174
|
+
* @returns {Node} el
|
|
175
|
+
*/
|
|
176
|
+
function findScrollableParent(el) {
|
|
177
|
+
while (el !== d.body && isScrollable(el) === false) {
|
|
178
|
+
el = el.parentNode || el.host;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
return el;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* self invoked function that, given a context, steps through scrolling
|
|
186
|
+
* @method step
|
|
187
|
+
* @param {Object} context
|
|
188
|
+
* @returns {undefined}
|
|
189
|
+
*/
|
|
190
|
+
function step(context) {
|
|
191
|
+
var time = now();
|
|
192
|
+
var value;
|
|
193
|
+
var currentX;
|
|
194
|
+
var currentY;
|
|
195
|
+
var elapsed = (time - context.startTime) / SCROLL_TIME;
|
|
196
|
+
|
|
197
|
+
// avoid elapsed times higher than one
|
|
198
|
+
elapsed = elapsed > 1 ? 1 : elapsed;
|
|
199
|
+
|
|
200
|
+
// apply easing to elapsed time
|
|
201
|
+
value = ease(elapsed);
|
|
202
|
+
|
|
203
|
+
currentX = context.startX + (context.x - context.startX) * value;
|
|
204
|
+
currentY = context.startY + (context.y - context.startY) * value;
|
|
205
|
+
|
|
206
|
+
context.method.call(context.scrollable, currentX, currentY);
|
|
207
|
+
|
|
208
|
+
// scroll more if we have not reached our destination
|
|
209
|
+
if (currentX !== context.x || currentY !== context.y) {
|
|
210
|
+
w.requestAnimationFrame(step.bind(w, context));
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* scrolls window or element with a smooth behavior
|
|
216
|
+
* @method smoothScroll
|
|
217
|
+
* @param {Object|Node} el
|
|
218
|
+
* @param {Number} x
|
|
219
|
+
* @param {Number} y
|
|
220
|
+
* @returns {undefined}
|
|
221
|
+
*/
|
|
222
|
+
function smoothScroll(el, x, y) {
|
|
223
|
+
var scrollable;
|
|
224
|
+
var startX;
|
|
225
|
+
var startY;
|
|
226
|
+
var method;
|
|
227
|
+
var startTime = now();
|
|
228
|
+
|
|
229
|
+
// define scroll context
|
|
230
|
+
if (el === d.body) {
|
|
231
|
+
scrollable = w;
|
|
232
|
+
startX = w.scrollX || w.pageXOffset;
|
|
233
|
+
startY = w.scrollY || w.pageYOffset;
|
|
234
|
+
method = original.scroll;
|
|
235
|
+
} else {
|
|
236
|
+
scrollable = el;
|
|
237
|
+
startX = el.scrollLeft;
|
|
238
|
+
startY = el.scrollTop;
|
|
239
|
+
method = scrollElement;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// scroll looping over a frame
|
|
243
|
+
step({
|
|
244
|
+
scrollable: scrollable,
|
|
245
|
+
method: method,
|
|
246
|
+
startTime: startTime,
|
|
247
|
+
startX: startX,
|
|
248
|
+
startY: startY,
|
|
249
|
+
x: x,
|
|
250
|
+
y: y
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// ORIGINAL METHODS OVERRIDES
|
|
255
|
+
// w.scroll and w.scrollTo
|
|
256
|
+
w.scroll = w.scrollTo = function() {
|
|
257
|
+
// avoid action when no arguments are passed
|
|
258
|
+
if (arguments[0] === undefined) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// avoid smooth behavior if not required
|
|
263
|
+
if (shouldBailOut(arguments[0]) === true) {
|
|
264
|
+
original.scroll.call(
|
|
265
|
+
w,
|
|
266
|
+
arguments[0].left !== undefined
|
|
267
|
+
? arguments[0].left
|
|
268
|
+
: typeof arguments[0] !== 'object'
|
|
269
|
+
? arguments[0]
|
|
270
|
+
: w.scrollX || w.pageXOffset,
|
|
271
|
+
// use top prop, second argument if present or fallback to scrollY
|
|
272
|
+
arguments[0].top !== undefined
|
|
273
|
+
? arguments[0].top
|
|
274
|
+
: arguments[1] !== undefined
|
|
275
|
+
? arguments[1]
|
|
276
|
+
: w.scrollY || w.pageYOffset
|
|
277
|
+
);
|
|
278
|
+
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
// LET THE SMOOTHNESS BEGIN!
|
|
283
|
+
smoothScroll.call(
|
|
284
|
+
w,
|
|
285
|
+
d.body,
|
|
286
|
+
arguments[0].left !== undefined
|
|
287
|
+
? ~~arguments[0].left
|
|
288
|
+
: w.scrollX || w.pageXOffset,
|
|
289
|
+
arguments[0].top !== undefined
|
|
290
|
+
? ~~arguments[0].top
|
|
291
|
+
: w.scrollY || w.pageYOffset
|
|
292
|
+
);
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
// w.scrollBy
|
|
296
|
+
w.scrollBy = function() {
|
|
297
|
+
// avoid action when no arguments are passed
|
|
298
|
+
if (arguments[0] === undefined) {
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
// avoid smooth behavior if not required
|
|
303
|
+
if (shouldBailOut(arguments[0])) {
|
|
304
|
+
original.scrollBy.call(
|
|
305
|
+
w,
|
|
306
|
+
arguments[0].left !== undefined
|
|
307
|
+
? arguments[0].left
|
|
308
|
+
: typeof arguments[0] !== 'object' ? arguments[0] : 0,
|
|
309
|
+
arguments[0].top !== undefined
|
|
310
|
+
? arguments[0].top
|
|
311
|
+
: arguments[1] !== undefined ? arguments[1] : 0
|
|
312
|
+
);
|
|
313
|
+
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
// LET THE SMOOTHNESS BEGIN!
|
|
318
|
+
smoothScroll.call(
|
|
319
|
+
w,
|
|
320
|
+
d.body,
|
|
321
|
+
~~arguments[0].left + (w.scrollX || w.pageXOffset),
|
|
322
|
+
~~arguments[0].top + (w.scrollY || w.pageYOffset)
|
|
323
|
+
);
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
// Element.prototype.scroll and Element.prototype.scrollTo
|
|
327
|
+
Element.prototype.scroll = Element.prototype.scrollTo = function() {
|
|
328
|
+
// avoid action when no arguments are passed
|
|
329
|
+
if (arguments[0] === undefined) {
|
|
330
|
+
return;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
// avoid smooth behavior if not required
|
|
334
|
+
if (shouldBailOut(arguments[0]) === true) {
|
|
335
|
+
// if one number is passed, throw error to match Firefox implementation
|
|
336
|
+
if (typeof arguments[0] === 'number' && arguments[1] === undefined) {
|
|
337
|
+
throw new SyntaxError('Value could not be converted');
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
original.elementScroll.call(
|
|
341
|
+
this,
|
|
342
|
+
// use left prop, first number argument or fallback to scrollLeft
|
|
343
|
+
arguments[0].left !== undefined
|
|
344
|
+
? ~~arguments[0].left
|
|
345
|
+
: typeof arguments[0] !== 'object' ? ~~arguments[0] : this.scrollLeft,
|
|
346
|
+
// use top prop, second argument or fallback to scrollTop
|
|
347
|
+
arguments[0].top !== undefined
|
|
348
|
+
? ~~arguments[0].top
|
|
349
|
+
: arguments[1] !== undefined ? ~~arguments[1] : this.scrollTop
|
|
350
|
+
);
|
|
351
|
+
|
|
352
|
+
return;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
var left = arguments[0].left;
|
|
356
|
+
var top = arguments[0].top;
|
|
357
|
+
|
|
358
|
+
// LET THE SMOOTHNESS BEGIN!
|
|
359
|
+
smoothScroll.call(
|
|
360
|
+
this,
|
|
361
|
+
this,
|
|
362
|
+
typeof left === 'undefined' ? this.scrollLeft : ~~left,
|
|
363
|
+
typeof top === 'undefined' ? this.scrollTop : ~~top
|
|
364
|
+
);
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
// Element.prototype.scrollBy
|
|
368
|
+
Element.prototype.scrollBy = function() {
|
|
369
|
+
// avoid action when no arguments are passed
|
|
370
|
+
if (arguments[0] === undefined) {
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
// avoid smooth behavior if not required
|
|
375
|
+
if (shouldBailOut(arguments[0]) === true) {
|
|
376
|
+
original.elementScroll.call(
|
|
377
|
+
this,
|
|
378
|
+
arguments[0].left !== undefined
|
|
379
|
+
? ~~arguments[0].left + this.scrollLeft
|
|
380
|
+
: ~~arguments[0] + this.scrollLeft,
|
|
381
|
+
arguments[0].top !== undefined
|
|
382
|
+
? ~~arguments[0].top + this.scrollTop
|
|
383
|
+
: ~~arguments[1] + this.scrollTop
|
|
384
|
+
);
|
|
385
|
+
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
this.scroll({
|
|
390
|
+
left: ~~arguments[0].left + this.scrollLeft,
|
|
391
|
+
top: ~~arguments[0].top + this.scrollTop,
|
|
392
|
+
behavior: arguments[0].behavior
|
|
393
|
+
});
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
// Element.prototype.scrollIntoView
|
|
397
|
+
Element.prototype.scrollIntoView = function() {
|
|
398
|
+
// avoid smooth behavior if not required
|
|
399
|
+
if (shouldBailOut(arguments[0]) === true) {
|
|
400
|
+
original.scrollIntoView.call(
|
|
401
|
+
this,
|
|
402
|
+
arguments[0] === undefined ? true : arguments[0]
|
|
403
|
+
);
|
|
404
|
+
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
// LET THE SMOOTHNESS BEGIN!
|
|
409
|
+
var scrollableParent = findScrollableParent(this);
|
|
410
|
+
var parentRects = scrollableParent.getBoundingClientRect();
|
|
411
|
+
var clientRects = this.getBoundingClientRect();
|
|
412
|
+
|
|
413
|
+
if (scrollableParent !== d.body) {
|
|
414
|
+
// reveal element inside parent
|
|
415
|
+
smoothScroll.call(
|
|
416
|
+
this,
|
|
417
|
+
scrollableParent,
|
|
418
|
+
scrollableParent.scrollLeft + clientRects.left - parentRects.left,
|
|
419
|
+
scrollableParent.scrollTop + clientRects.top - parentRects.top
|
|
420
|
+
);
|
|
421
|
+
|
|
422
|
+
// reveal parent in viewport unless is fixed
|
|
423
|
+
if (w.getComputedStyle(scrollableParent).position !== 'fixed') {
|
|
424
|
+
w.scrollBy({
|
|
425
|
+
left: parentRects.left,
|
|
426
|
+
top: parentRects.top,
|
|
427
|
+
behavior: 'smooth'
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
} else {
|
|
431
|
+
// reveal element in viewport
|
|
432
|
+
w.scrollBy({
|
|
433
|
+
left: clientRects.left,
|
|
434
|
+
top: clientRects.top,
|
|
435
|
+
behavior: 'smooth'
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
{
|
|
442
|
+
// commonjs
|
|
443
|
+
module.exports = { polyfill: polyfill };
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
}());
|
|
447
|
+
});
|
|
448
|
+
|
|
449
|
+
function addSmoothScrollPolyfill() {
|
|
450
|
+
const userAgent = navigator.userAgent.toLowerCase();
|
|
451
|
+
const isSafari = userAgent.includes('safari') && !userAgent.includes('chrome');
|
|
452
|
+
if (!isSafari)
|
|
453
|
+
return false;
|
|
454
|
+
smoothscroll.polyfill();
|
|
455
|
+
return (window['__forceSmoothScrollPolyfill__'] = true);
|
|
456
|
+
}
|
|
457
|
+
let guid = 1000;
|
|
458
|
+
function createGuid() {
|
|
459
|
+
return guid++;
|
|
460
|
+
}
|
|
461
|
+
function loc(key, subs) {
|
|
462
|
+
var _a, _b, _c;
|
|
463
|
+
if (!key)
|
|
464
|
+
return '';
|
|
465
|
+
if (((_a = window.Tecton) === null || _a === void 0 ? void 0 : _a.noString) === true) {
|
|
466
|
+
return key;
|
|
467
|
+
}
|
|
468
|
+
return (_c = (_b = window === null || window === void 0 ? void 0 : window.TectonElements) === null || _b === void 0 ? void 0 : _b.loc(key, subs)) !== null && _c !== void 0 ? _c : key;
|
|
469
|
+
}
|
|
470
|
+
function labelDOM(target) {
|
|
471
|
+
const { label, hideLabel } = target;
|
|
472
|
+
if (!label || hideLabel)
|
|
473
|
+
return;
|
|
474
|
+
return (h("label", { htmlFor: target.inputId, class: target.readonly ? 'readonly-field' : '' },
|
|
475
|
+
loc(target.label),
|
|
476
|
+
target.optional ? (h("span", { class: "optional-tag" }, loc('tecton.element.input.optional'))) : ('')));
|
|
477
|
+
}
|
|
478
|
+
function handleAriaLabel(target) {
|
|
479
|
+
const { ariaLabel } = target;
|
|
480
|
+
if (!ariaLabel)
|
|
481
|
+
return;
|
|
482
|
+
if ('hideLabel' in target)
|
|
483
|
+
target.hideLabel = true;
|
|
484
|
+
target.label = loc(ariaLabel);
|
|
485
|
+
target.ariaLabel = undefined;
|
|
486
|
+
}
|
|
487
|
+
function messagesDOM(target) {
|
|
488
|
+
const type = target.hasError ? 'danger' : 'info';
|
|
489
|
+
return (h("div", { class: "messages-container" },
|
|
490
|
+
h("q2-message", { appearance: "minimal", description: true, type: type },
|
|
491
|
+
h("ul", { id: target.inputDescribedBy }, target.messages.map(message => (h("li", null, loc(message))))))));
|
|
492
|
+
}
|
|
493
|
+
function setMessageHeight(target) {
|
|
494
|
+
const messageContainer = target.hostElement.shadowRoot.querySelector('.messages-container');
|
|
495
|
+
const q2Message = messageContainer.querySelector('q2-message');
|
|
496
|
+
const height = target.showMessages && target.hasFocus ? q2Message.getBoundingClientRect().height : 0;
|
|
497
|
+
if (messageContainer.style.getPropertyValue('height') === `${height}px`)
|
|
498
|
+
return;
|
|
499
|
+
if (height === 0) {
|
|
500
|
+
q2Message.classList.add('invisible');
|
|
501
|
+
messageContainer.style.removeProperty('height');
|
|
502
|
+
}
|
|
503
|
+
else {
|
|
504
|
+
q2Message.classList.remove('invisible');
|
|
505
|
+
messageContainer.style.setProperty('height', `${height}px`);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
function setPopProperties(target) {
|
|
509
|
+
const { dropdownContainer, popDirection } = target;
|
|
510
|
+
if (dropdownContainer) {
|
|
511
|
+
dropdownContainer.style.maxHeight = null;
|
|
512
|
+
}
|
|
513
|
+
if (popDirection) {
|
|
514
|
+
return (target.privatePopDirection = popDirection);
|
|
515
|
+
}
|
|
516
|
+
const controlElement = target.inputField || target.controlElement;
|
|
517
|
+
const minPopHeight = target.minPopHeight || null;
|
|
518
|
+
// Add sizable so that we can capture the height
|
|
519
|
+
dropdownContainer.classList.add('sizable');
|
|
520
|
+
const dropdownHeight = dropdownContainer.getBoundingClientRect().height;
|
|
521
|
+
dropdownContainer.classList.remove('sizable');
|
|
522
|
+
const { top: topOffset, height } = controlElement.getBoundingClientRect();
|
|
523
|
+
const bottomOffset = window.innerHeight - topOffset - height;
|
|
524
|
+
const canShowFullSizeBelow = bottomOffset > dropdownHeight;
|
|
525
|
+
const canShowFullSizeAbove = dropdownHeight <= topOffset;
|
|
526
|
+
// Prefer full size above or below
|
|
527
|
+
if (canShowFullSizeBelow) {
|
|
528
|
+
return (target.privatePopDirection = 'down');
|
|
529
|
+
}
|
|
530
|
+
else if (canShowFullSizeAbove || !minPopHeight) {
|
|
531
|
+
return (target.privatePopDirection = 'up');
|
|
532
|
+
}
|
|
533
|
+
// If full size will not fit and minHeight is set, then make as tall as possible
|
|
534
|
+
const displayBuffer = 5;
|
|
535
|
+
const canShowSmallBelow = bottomOffset >= minPopHeight + displayBuffer;
|
|
536
|
+
if (canShowSmallBelow) {
|
|
537
|
+
const maxBelowHeight = Math.max(bottomOffset - displayBuffer, minPopHeight);
|
|
538
|
+
dropdownContainer.style.maxHeight = `${maxBelowHeight}px`;
|
|
539
|
+
return (target.privatePopDirection = 'down');
|
|
540
|
+
}
|
|
541
|
+
else {
|
|
542
|
+
const maxAboveHeight = Math.max(topOffset, minPopHeight);
|
|
543
|
+
dropdownContainer.style.maxHeight = `${maxAboveHeight}px`;
|
|
544
|
+
return (target.privatePopDirection = 'up');
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
export { addSmoothScrollPolyfill as a, setMessageHeight as b, createGuid as c, labelDOM as d, handleAriaLabel as h, loc as l, messagesDOM as m, setPopProperties as s };
|
package/dist/esm/loader.js
CHANGED
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["q2-icon",[[1,"q2-icon",{"type":[513]}]]],["q2-calendar",[[1,"q2-calendar",{"value":[1537],"label":[513],"hideLabel":[516,"hide-label"],"ariaLabel":[513,"aria-label"],"optional":[516],"disabled":[516],"invalid":[1540],"typeable":[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"],"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"]]]]],["q2-dropdown",[[1,"q2-dropdown",{"type":[513],"icon":[513],"label":[513],"hideLabel":[516,"hide-label"],"ariaLabel":[513,"aria-label"],"disabled":[516],"popDirection":[513,"pop-direction"],"name":[513],"context":[513],"contextValue":[513,"context-value"],"resolvedType":[513,"resolved-type"],"dropdownOpen":[32]}]]],["q2-select",[[1,"q2-select",{"label":[513],"hideLabel":[516,"hide-label"],"value":[1025],"ariaLabel":[513,"aria-label"],"selectedOptions":[1032,"selected-options"],"disabled":[516],"invalid":[516],"errors":[16],"multiple":[516],"minRows":[2,"min-rows"],"popDirection":[513,"pop-direction"],"searchable":[516],"multilineOptions":[516,"multiline-options"],"optional":[516],"dropdownOpen":[32],"onlyShowingSelected":[32],"activeOptionId":[32],"searchText":[32],"hasCustomDisplay":[32],"inputFocused":[32]},[[0,"change","onHostElementChange"],[0,"input","onHostElementInput"],[0,"click","clickHandler"],[0,"keydown","keydownHandler"]]]]],["q2-editable-field",[[1,"q2-editable-field",{"value":[1537],"editing":[1540],"label":[513],"hideLabel":[516,"hide-label"],"ariaLabel":[513,"aria-label"],"type":[513],"formatModifier":[513,"format-modifier"],"truncated":[513],"maxlength":[514],"persistentLabel":[516,"persistent-label"],"hints":[16],"errors":[16]},[[0,"change","onHostElementChange"]]]]],["q2-section",[[1,"q2-section",{"label":[513],"collapsible":[516],"noCollapseIcon":[516,"no-collapse-icon"],"expanded":[1540],"contentHeight":[32],"hasYieldedHeader":[32]},[[0,"change","defaultChangeHandler"]]]]],["q2-avatar",[[1,"q2-avatar",{"name":[513],"initials":[513],"src":[513],"icon":[1],"badSrc":[32]}]]],["q2-carousel",[[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],"compactMode":[32],"autoPlayInProgress":[32],"carouselWrapperWidth":[32],"tabIndex":[32]},[[0,"change","onHostElementChange"]]]]],["q2-checkbox",[[1,"q2-checkbox",{"checked":[1540],"type":[513],"label":[513],"hideLabel":[516,"hide-label"],"ariaLabel":[513,"aria-label"],"indeterminate":[516],"disabled":[516],"value":[513],"name":[513],"hasError":[516,"has-error"],"groupDisabled":[516,"group-disabled"],"alignment":[513]},[[0,"change","defaultChangeHandler"]]]]],["q2-checkbox-group",[[1,"q2-checkbox-group",{"label":[513],"value":[1040],"disabled":[516],"optional":[516],"hasError":[516,"has-error"]},[[0,"change","onHostElementChange"]]]]],["q2-option",[[1,"q2-option",{"display":[513],"value":[513],"disabled":[516],"optionId":[513,"option-id"],"disabledGroup":[516,"disabled-group"],"selected":[516],"hidden":[516],"multiline":[516],"active":[516],"_multiSelectHidden":[516,"_multiselecthidden"]}]]],["q2-radio-group",[[1,"q2-radio-group",{"label":[513],"value":[1025],"disabled":[516],"name":[513],"optional":[516],"tilelayout":[516],"tileAlignment":[513,"tile-alignment"],"hasError":[516,"has-error"]},[[0,"change","onHostElementChange"]]]]],["q2-tab-container",[[1,"q2-tab-container",{"value":[1537],"type":[513],"name":[513],"color":[513],"noPrint":[516,"no-print"],"hasLeft":[32],"hasRight":[32],"tabs":[32]},[[0,"change","defaultChangeHandler"],[9,"resize","onResize"],[0,"focus","onFocus"]]]]],["q2-textarea",[[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",[[4,"q2-carousel-pane",{"index":[2],"siblingCount":[2,"sibling-count"],"hideFromScreenReader":[516,"hide-from-screen-reader"],"isActivePane":[516,"is-active-pane"],"label":[513]}]]],["q2-loading-element",[[0,"q2-loading-element",{"shape":[513],"width":[513],"height":[513],"borderRadius":[513,"border-radius"]}]]],["q2-loc",[[1,"q2-loc",{"value":[513],"substitutions":[16]}]]],["q2-optgroup",[[1,"q2-optgroup",{"disabled":[516],"label":[513],"hidden":[32]}]]],["q2-radio",[[4,"q2-radio",{"label":[513],"hideLabel":[516,"hide-label"],"value":[513],"disabled":[516],"checked":[516],"name":[513],"ariaLabel":[513,"aria-label"],"groupDisabled":[4,"group-disabled"],"groupTileLayout":[4,"group-tile-layout"]},[[0,"click","onHostClick"]]]]],["q2-tab-pane",[[1,"q2-tab-pane",{"value":[513],"label":[513],"name":[513],"selected":[516],"index":[2],"guid":[2]}]]],["tecton-tab-pane",[[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"],"authPayload":[16],"showForm":[4,"show-form"],"_showForm":[32]}]]],["q2-dropdown-item",[[1,"q2-dropdown-item",{"disabled":[516],"removable":[516],"separator":[516],"label":[513],"ariaLabel":[513,"aria-label"],"value":[513]},[[0,"focus","onHostElementFocus"]]]]],["q2-message",[[1,"q2-message",{"type":[513],"appearance":[513],"description":[516]}]]],["q2-input",[[1,"q2-input",{"value":[1025],"label":[513],"hideLabel":[516,"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],"formatModifier":[513,"format-modifier"],"maxlength":[1538],"pseudo":[516],"showVisibilityToggle":[516,"show-visibility-toggle"],"textHidden":[1540,"text-hidden"],"ariaControls":[1,"aria-controls"],"role":[1],"ariaOwns":[1,"aria-owns"],"ariaLabel":[513,"aria-label"],"ariaHaspopup":[1,"aria-haspopup"],"ariaExpanded":[4,"aria-expanded"],"ariaActivedescendant":[8,"aria-activedescendant"],"errors":[16],"hints":[16],"formattedValueObject":[32],"hasFocus":[32]},[[0,"focus","onHostElementFocus"],[0,"change","onHostElementChange"]]]]],["click-elsewhere",[[0,"click-elsewhere"]]],["q2-btn_2",[[1,"q2-btn",{"ariaExpanded":[4,"aria-expanded"],"ariaHasPopup":[8,"aria-has-popup"],"ariaControls":[1,"aria-controls"],"ariaSelected":[4,"aria-selected"],"label":[513],"hideLabel":[516,"hide-label"],"ariaLabel":[513,"aria-label"],"tabIndex":[2,"tab-index"],"intent":[513],"disabled":[516],"type":[513],"loading":[516],"badge":[516],"active":[516],"fab":[516],"iconPosition":[32]},[[2,"click","disable"],[0,"focus","delegateFocus"]]],[1,"q2-loading",{"type":[513],"shape":[513],"modifiers":[513],"counts":[513],"label":[513],"ariaLabel":[513,"aria-label"],"inline":[516]}]]]], options);
|
|
13
|
+
return bootstrapLazy([["q2-icon",[[1,"q2-icon",{"type":[513],"label":[513]}]]],["q2-calendar",[[1,"q2-calendar",{"value":[1537],"label":[513],"hideLabel":[516,"hide-label"],"ariaLabel":[513,"aria-label"],"optional":[516],"disabled":[516],"invalid":[1540],"typeable":[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"],"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"]]]]],["q2-dropdown",[[1,"q2-dropdown",{"type":[513],"icon":[513],"label":[513],"hideLabel":[516,"hide-label"],"ariaLabel":[513,"aria-label"],"disabled":[516],"popDirection":[513,"pop-direction"],"name":[513],"context":[513],"contextValue":[513,"context-value"],"resolvedType":[513,"resolved-type"],"dropdownOpen":[32]}]]],["q2-select",[[1,"q2-select",{"label":[513],"hideLabel":[516,"hide-label"],"value":[1025],"ariaLabel":[513,"aria-label"],"selectedOptions":[1032,"selected-options"],"disabled":[516],"invalid":[516],"errors":[16],"multiple":[516],"minRows":[2,"min-rows"],"popDirection":[513,"pop-direction"],"searchable":[516],"multilineOptions":[516,"multiline-options"],"optional":[516],"dropdownOpen":[32],"onlyShowingSelected":[32],"activeOptionId":[32],"searchText":[32],"hasCustomDisplay":[32],"inputFocused":[32],"statusMessage":[32]},[[0,"change","onHostElementChange"],[0,"input","onHostElementInput"],[0,"click","clickHandler"],[0,"keydown","keydownHandler"]]]]],["q2-editable-field",[[1,"q2-editable-field",{"value":[1537],"editing":[1540],"label":[513],"hideLabel":[516,"hide-label"],"ariaLabel":[513,"aria-label"],"type":[513],"formatModifier":[513,"format-modifier"],"truncated":[513],"maxlength":[514],"persistentLabel":[516,"persistent-label"],"hints":[16],"errors":[16]},[[0,"change","onHostElementChange"]]]]],["q2-section",[[1,"q2-section",{"label":[513],"collapsible":[516],"noCollapseIcon":[516,"no-collapse-icon"],"expanded":[1540],"contentHeight":[32],"hasYieldedHeader":[32]},[[0,"change","defaultChangeHandler"]]]]],["q2-stepper",[[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"]]]]],["q2-avatar",[[1,"q2-avatar",{"name":[513],"initials":[513],"src":[513],"icon":[1],"badSrc":[32]}]]],["q2-carousel",[[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],"compactMode":[32],"autoPlayInProgress":[32],"carouselWrapperWidth":[32],"tabIndex":[32]},[[0,"change","onHostElementChange"]]]]],["q2-checkbox",[[1,"q2-checkbox",{"checked":[1540],"type":[513],"label":[513],"hideLabel":[516,"hide-label"],"ariaLabel":[513,"aria-label"],"indeterminate":[516],"disabled":[516],"value":[513],"name":[513],"hasError":[516,"has-error"],"groupDisabled":[516,"group-disabled"],"alignment":[513]},[[0,"change","defaultChangeHandler"]]]]],["q2-checkbox-group",[[1,"q2-checkbox-group",{"label":[513],"value":[1040],"disabled":[516],"optional":[516],"hasError":[516,"has-error"]},[[0,"change","onHostElementChange"]]]]],["q2-option",[[1,"q2-option",{"role":[513],"tabindex":[513],"display":[513],"value":[513],"disabled":[516],"optionId":[513,"option-id"],"disabledGroup":[516,"disabled-group"],"selected":[516],"hidden":[516],"multiline":[516],"active":[516],"_multiSelectHidden":[516,"_multiselecthidden"]}]]],["q2-radio-group",[[1,"q2-radio-group",{"label":[513],"value":[1025],"disabled":[516],"name":[513],"optional":[516],"tilelayout":[516],"tileAlignment":[513,"tile-alignment"],"hasError":[516,"has-error"]},[[0,"change","onHostElementChange"]]]]],["q2-tab-container",[[1,"q2-tab-container",{"value":[1537],"type":[513],"name":[513],"color":[513],"noPrint":[516,"no-print"],"hasLeft":[32],"hasRight":[32],"tabs":[32]},[[0,"change","defaultChangeHandler"],[9,"resize","onResize"],[0,"focus","onFocus"]]]]],["q2-textarea",[[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",[[4,"q2-carousel-pane",{"index":[2],"siblingCount":[2,"sibling-count"],"hideFromScreenReader":[516,"hide-from-screen-reader"],"isActivePane":[516,"is-active-pane"],"label":[513]}]]],["q2-loading-element",[[0,"q2-loading-element",{"shape":[513],"width":[513],"height":[513],"borderRadius":[513,"border-radius"]}]]],["q2-loc",[[1,"q2-loc",{"value":[513],"substitutions":[16]}]]],["q2-optgroup",[[1,"q2-optgroup",{"disabled":[516],"label":[513],"hidden":[32]}]]],["q2-radio",[[4,"q2-radio",{"label":[513],"hideLabel":[516,"hide-label"],"value":[513],"disabled":[516],"checked":[516],"name":[513],"ariaLabel":[513,"aria-label"],"groupDisabled":[4,"group-disabled"],"groupTileLayout":[4,"group-tile-layout"]},[[0,"click","onHostClick"]]]]],["q2-stepper-pane",[[1,"q2-stepper-pane",{"label":[513],"description":[513],"isActive":[516,"is-active"]}]]],["q2-tab-pane",[[1,"q2-tab-pane",{"value":[513],"label":[513],"name":[513],"selected":[516],"index":[2],"guid":[2]}]]],["tecton-tab-pane",[[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"],"authPayload":[16],"showForm":[4,"show-form"],"_showForm":[32]}]]],["q2-dropdown-item",[[1,"q2-dropdown-item",{"disabled":[516],"removable":[516],"separator":[516],"label":[513],"ariaLabel":[513,"aria-label"],"value":[513]},[[0,"focus","onHostElementFocus"]]]]],["q2-message",[[1,"q2-message",{"type":[513],"appearance":[513],"description":[516]}]]],["q2-input",[[1,"q2-input",{"value":[1025],"label":[513],"hideLabel":[516,"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],"formatModifier":[513,"format-modifier"],"maxlength":[1538],"pseudo":[516],"showVisibilityToggle":[516,"show-visibility-toggle"],"textHidden":[1540,"text-hidden"],"ariaControls":[1,"aria-controls"],"role":[1],"ariaOwns":[1,"aria-owns"],"ariaLabel":[513,"aria-label"],"ariaHaspopup":[1,"aria-haspopup"],"ariaExpanded":[4,"aria-expanded"],"ariaActivedescendant":[8,"aria-activedescendant"],"errors":[16],"hints":[16],"formattedValueObject":[32],"hasFocus":[32]},[[0,"focus","onHostElementFocus"],[0,"change","onHostElementChange"]]]]],["click-elsewhere",[[0,"click-elsewhere"]]],["q2-btn_2",[[1,"q2-btn",{"ariaExpanded":[4,"aria-expanded"],"ariaHasPopup":[8,"aria-has-popup"],"ariaControls":[1,"aria-controls"],"ariaSelected":[4,"aria-selected"],"label":[513],"hideLabel":[516,"hide-label"],"ariaLabel":[513,"aria-label"],"tabIndex":[2,"tab-index"],"intent":[513],"disabled":[516],"type":[513],"loading":[516],"badge":[516],"active":[516],"fab":[516],"iconPosition":[32]},[[2,"click","disable"],[0,"focus","delegateFocus"]]],[1,"q2-loading",{"type":[513],"shape":[513],"modifiers":[513],"counts":[513],"label":[513],"ariaLabel":[513,"aria-label"],"inline":[516]}]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-5fa3e016.js';
|
|
2
|
-
import { i as icons } from './icons-
|
|
2
|
+
import { i as icons } from './icons-17612675.js';
|
|
3
3
|
|
|
4
4
|
const stylesCss = "*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-global-focus)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size: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}.avatar-img{object-fit:cover;height:var(--tct-avatar-img-height, var(--tct-avatar-height, 44px));width:var(--tct-avatar-img-width, var(--tct-avatar-width, 44px));border-radius:var(--tct-avatar-img-br, 50%);background-color:var(--tct-avatar-bg, #9e9e9e)}.avatar-initials{height:var(--tct-avatar-height, 44px);width:var(--tct-avatar-width, 44px);background-color:var(--tct-avatar-bg, var(--t-gray-8, #9e9e9e));border-radius:var(--tct-avatar-br, 50%)}.size-1{--tct-avatar-font-size:var(--tct-avatar-size-1, 60px)}.size-2{--tct-avatar-font-size:var(--tct-avatar-size-2, 50px)}.size-3{--tct-avatar-font-size:var(--tct-avatar-size-3, 40px)}.size-4{--tct-avatar-font-size:var(--tct-avatar-size-4, 30px)}text{fill:var(--tct-avatar-color, #ffffff);font-weight:var(--tct-avatar-font-weight, 200);font-size:var(--tct-avatar-font-size, 40px)}.fallback{height:var(--tct-avatar-fallback-height, var(--tct-avatar-height, 44px));width:var(--tct-avatar-fallback-width, var(--tct-avatar-width, 44px));border-radius:var(--tct-avatar-fallback-br, var(--tct-avatar-img-br, 50%));background-color:var(--tct-avatar-fallback-bg, var(--tct-avatar-bg, #9e9e9e));display:flex;align-items:center;justify-content:center}q2-icon{--t-icon-size:var(--tct-avatar-fallback-icon-size, 65%);--t-icon-fill:var(--tct-avatar-fallback-fill, transparent);--t-icon-stroke-primary:var(--tct-avatar-fallback-stroke-primary, currentcolor);--t-icon-stroke-secondary:var(--tct-avatar-fallback-stroke-secondary, currentcolor);color:var(--tct-avatar-fallback-color, var(--tct-avatar-color, var(--t-base, #ffffff)));width:var(--t-icon-size);height:var(--t-icon-size)}";
|
|
5
5
|
|