@vertexvis/ui 0.1.2-canary.0 → 0.1.2-canary.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{menu-d1ecf43b.js → menu-25f83cd7.js} +13 -3
- package/dist/cjs/{resizable-e4248256.js → resizable-c0a69532.js} +22 -4
- package/dist/cjs/vertex-menu.cjs.entry.js +1 -1
- package/dist/cjs/vertex-resizable.cjs.entry.js +2 -1
- package/dist/collection/components/menu/menu.js +13 -3
- package/dist/collection/components/resizable/resizable.js +23 -5
- package/dist/components/auto-resize-textarea.js +157 -0
- package/dist/components/color-swatch.js +124 -0
- package/dist/components/components.esm.js +1 -1
- package/dist/components/dom.js +13 -0
- package/dist/components/expandable.js +100 -0
- package/dist/components/icon-button.js +63 -0
- package/dist/components/icon-helper.js +722 -0
- package/dist/components/icon.js +43 -0
- package/dist/components/index.d.ts +71 -0
- package/dist/components/index.esm.js +1 -1
- package/dist/components/index.js +52 -0
- package/dist/components/index2.js +89 -0
- package/dist/components/menu.js +99 -0
- package/dist/components/p-1b85c1d1.entry.js +1 -0
- package/dist/components/p-95358d00.entry.js +1 -0
- package/dist/components/p-c9a967d9.js +1 -0
- package/dist/components/p-ee5c8bd3.js +1 -0
- package/dist/components/popover.js +1737 -0
- package/dist/components/result-list.js +565 -0
- package/dist/components/slots.js +26 -0
- package/dist/components/text-field.js +171 -0
- package/dist/components/tooltip.js +360 -0
- package/dist/components/tslib.es6.js +65 -0
- package/dist/components/vertex-auto-resize-textarea.d.ts +11 -0
- package/dist/components/vertex-auto-resize-textarea.js +6 -0
- package/dist/components/vertex-avatar-group.d.ts +11 -0
- package/dist/components/vertex-avatar-group.js +34 -0
- package/dist/components/vertex-avatar.d.ts +11 -0
- package/dist/components/vertex-avatar.js +68 -0
- package/dist/components/vertex-badge.d.ts +11 -0
- package/dist/components/vertex-badge.js +43 -0
- package/dist/components/vertex-banner.d.ts +11 -0
- package/dist/components/vertex-banner.js +141 -0
- package/dist/components/vertex-button.d.ts +11 -0
- package/dist/components/vertex-button.js +96 -0
- package/dist/components/vertex-card-group.d.ts +11 -0
- package/dist/components/vertex-card-group.js +51 -0
- package/dist/components/vertex-card.d.ts +11 -0
- package/dist/components/vertex-card.js +49 -0
- package/dist/components/vertex-chip.d.ts +11 -0
- package/dist/components/vertex-chip.js +45 -0
- package/dist/components/vertex-click-to-edit-textfield.d.ts +11 -0
- package/dist/components/vertex-click-to-edit-textfield.js +156 -0
- package/dist/components/vertex-collapsible.d.ts +11 -0
- package/dist/components/vertex-collapsible.js +63 -0
- package/dist/components/vertex-color-circle-picker.d.ts +11 -0
- package/dist/components/vertex-color-circle-picker.js +104 -0
- package/dist/components/vertex-color-picker.d.ts +11 -0
- package/dist/components/vertex-color-picker.js +75 -0
- package/dist/components/vertex-color-swatch.d.ts +11 -0
- package/dist/components/vertex-color-swatch.js +6 -0
- package/dist/components/vertex-context-menu.d.ts +11 -0
- package/dist/components/vertex-context-menu.js +125 -0
- package/dist/components/vertex-dialog.d.ts +11 -0
- package/dist/components/vertex-dialog.js +263 -0
- package/dist/components/vertex-draggable-popover.d.ts +11 -0
- package/dist/components/vertex-draggable-popover.js +119 -0
- package/dist/components/vertex-dropdown-menu.d.ts +11 -0
- package/dist/components/vertex-dropdown-menu.js +64 -0
- package/dist/components/vertex-expandable.d.ts +11 -0
- package/dist/components/vertex-expandable.js +6 -0
- package/dist/components/vertex-help-tooltip.d.ts +11 -0
- package/dist/components/vertex-help-tooltip.js +67 -0
- package/dist/components/vertex-icon-button.d.ts +11 -0
- package/dist/components/vertex-icon-button.js +6 -0
- package/dist/components/vertex-icon.d.ts +11 -0
- package/dist/components/vertex-icon.js +6 -0
- package/dist/components/vertex-logo-loading.d.ts +11 -0
- package/dist/components/vertex-logo-loading.js +34 -0
- package/dist/components/vertex-menu-divider.d.ts +11 -0
- package/dist/components/vertex-menu-divider.js +34 -0
- package/dist/components/vertex-menu-item.d.ts +11 -0
- package/dist/components/vertex-menu-item.js +44 -0
- package/dist/components/vertex-menu.d.ts +11 -0
- package/dist/components/vertex-menu.js +6 -0
- package/dist/components/vertex-popover.d.ts +11 -0
- package/dist/components/vertex-popover.js +6 -0
- package/dist/components/vertex-radio-group.d.ts +11 -0
- package/dist/components/vertex-radio-group.js +88 -0
- package/dist/components/vertex-radio.d.ts +11 -0
- package/dist/components/vertex-radio.js +56 -0
- package/dist/components/vertex-resizable.d.ts +11 -0
- package/dist/components/vertex-resizable.js +463 -0
- package/dist/components/vertex-result-list.d.ts +11 -0
- package/dist/components/vertex-result-list.js +6 -0
- package/dist/components/vertex-search-bar.d.ts +11 -0
- package/dist/components/vertex-search-bar.js +568 -0
- package/dist/components/vertex-select.d.ts +11 -0
- package/dist/components/vertex-select.js +200 -0
- package/dist/components/vertex-slider.d.ts +11 -0
- package/dist/components/vertex-slider.js +81 -0
- package/dist/components/vertex-spinner.d.ts +11 -0
- package/dist/components/vertex-spinner.js +49 -0
- package/dist/components/vertex-tab.d.ts +11 -0
- package/dist/components/vertex-tab.js +46 -0
- package/dist/components/vertex-tabs.d.ts +11 -0
- package/dist/components/vertex-tabs.js +133 -0
- package/dist/components/vertex-textfield.d.ts +11 -0
- package/dist/components/vertex-textfield.js +6 -0
- package/dist/components/vertex-toast.d.ts +11 -0
- package/dist/components/vertex-toast.js +127 -0
- package/dist/components/vertex-toggle.d.ts +11 -0
- package/dist/components/vertex-toggle.js +67 -0
- package/dist/components/vertex-tooltip.d.ts +11 -0
- package/dist/components/vertex-tooltip.js +6 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/{menu-daa7f9c9.js → menu-b8ff7d6a.js} +13 -3
- package/dist/esm/{resizable-a147709b.js → resizable-833336bf.js} +23 -5
- package/dist/esm/vertex-menu.entry.js +1 -1
- package/dist/esm/vertex-resizable.entry.js +2 -1
- package/dist/types/components/menu/menu.d.ts +2 -0
- package/dist/types/components/resizable/resizable.d.ts +1 -0
- package/package.json +2 -2
- package/dist/components/p-0517ca62.entry.js +0 -1
- package/dist/components/p-6ec189d2.js +0 -1
- package/dist/components/p-7b75e004.js +0 -1
- package/dist/components/p-ea4a2f74.entry.js +0 -1
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -25,13 +25,13 @@ const helpTooltip = require('./help-tooltip-f72eccc7.js');
|
|
|
25
25
|
const icon = require('./icon-dce835e0.js');
|
|
26
26
|
const iconButton = require('./icon-button-8c4a9cd6.js');
|
|
27
27
|
const logoLoading = require('./logo-loading-4d49fedf.js');
|
|
28
|
-
const menu = require('./menu-
|
|
28
|
+
const menu = require('./menu-25f83cd7.js');
|
|
29
29
|
const menuDivider = require('./menu-divider-5bdebe5d.js');
|
|
30
30
|
const menuItem = require('./menu-item-d213fd4d.js');
|
|
31
31
|
const popover = require('./popover-942209b8.js');
|
|
32
32
|
const radio = require('./radio-bff991d2.js');
|
|
33
33
|
const radioGroup = require('./radio-group-d628f631.js');
|
|
34
|
-
const resizable = require('./resizable-
|
|
34
|
+
const resizable = require('./resizable-c0a69532.js');
|
|
35
35
|
const resultList = require('./result-list-241ffe8d.js');
|
|
36
36
|
const searchBar = require('./search-bar-2e7ee35a.js');
|
|
37
37
|
const select = require('./select-2b2bdb97.js');
|
|
@@ -48,9 +48,9 @@ require('./slots-fb5ac359.js');
|
|
|
48
48
|
require('./index-e1b40fa6.js');
|
|
49
49
|
require('./icon-helper-c076290f.js');
|
|
50
50
|
require('./lib-1bd1e383.js');
|
|
51
|
+
require('./dom-a2c535e3.js');
|
|
51
52
|
require('./templates-e7b3ffbb.js');
|
|
52
53
|
require('./tslib.es6-838fd860.js');
|
|
53
|
-
require('./dom-a2c535e3.js');
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
@@ -28,6 +28,9 @@ const Menu = class {
|
|
|
28
28
|
disconnectedCallback() {
|
|
29
29
|
this.removeEventListeners();
|
|
30
30
|
}
|
|
31
|
+
connectedCallback() {
|
|
32
|
+
this.addEventListeners();
|
|
33
|
+
}
|
|
31
34
|
render() {
|
|
32
35
|
return (index.h("vertex-popover", Object.assign({ ref: (element) => {
|
|
33
36
|
this.popoverRef = element;
|
|
@@ -43,12 +46,19 @@ const Menu = class {
|
|
|
43
46
|
}) }, index.h("slot", { name: "header" }), index.h("slot", null))));
|
|
44
47
|
}
|
|
45
48
|
addEventListeners() {
|
|
46
|
-
var _a;
|
|
47
|
-
(_a = this.
|
|
49
|
+
var _a, _b;
|
|
50
|
+
(_a = this.listenerDisposable) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
51
|
+
(_b = this.popoverRef) === null || _b === void 0 ? void 0 : _b.addEventListener('dismissed', this.handlePopoverDismiss);
|
|
52
|
+
this.listenerDisposable = {
|
|
53
|
+
dispose: () => {
|
|
54
|
+
var _a;
|
|
55
|
+
(_a = this.popoverRef) === null || _a === void 0 ? void 0 : _a.removeEventListener('dismissed', this.handlePopoverDismiss);
|
|
56
|
+
},
|
|
57
|
+
};
|
|
48
58
|
}
|
|
49
59
|
removeEventListeners() {
|
|
50
60
|
var _a;
|
|
51
|
-
(_a = this.
|
|
61
|
+
(_a = this.listenerDisposable) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
52
62
|
}
|
|
53
63
|
handlePopoverDismiss() {
|
|
54
64
|
this.open = false;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index-6a92256c.js');
|
|
4
4
|
const index$1 = require('./index-e1b40fa6.js');
|
|
5
|
+
const dom = require('./dom-a2c535e3.js');
|
|
5
6
|
|
|
6
7
|
const resizableCss = ":host{--hover-shadow-color:var(--vertex-ui-blue-500);--vertical-handle-size:1rem;--vertical-handle-offset:-0.9rem;--horizontal-handle-size:1rem;--horizontal-handle-offset:-0.9rem;--side-direction-handle-z-index:var(--vertex-ui-popover-layer);--corner-handle-z-index:var(--vertex-ui-context-menu-layer)}:host(:not([dimensions-computed=\"\"])){position:absolute;display:none}.container{position:relative;height:100%;width:100%}.container.hidden{position:absolute;visibility:hidden}.shadow{pointer-events:none;position:absolute;width:100%;height:100%;z-index:var(--vertex-ui-popover-layer)}.shadow.hovered-location-left{box-shadow:inset 1px 0 0 var(--hover-shadow-color)}.shadow.hovered-location-right{box-shadow:inset -1px 0 0 var(--hover-shadow-color)}.shadow.hovered-location-top{box-shadow:inset 0 1px 0 var(--hover-shadow-color)}.shadow.hovered-location-bottom{box-shadow:inset 0 -1px 0 var(--hover-shadow-color)}.shadow.hovered-location-bottom-left{box-shadow:inset 1px -1px 0 var(--hover-shadow-color)}.shadow.hovered-location-bottom-right{box-shadow:inset -1px -1px 0 var(--hover-shadow-color)}.shadow.hovered-location-top-left{box-shadow:inset 1px 1px 0 var(--hover-shadow-color)}.shadow.hovered-location-top-right{box-shadow:inset -1px 1px 0 var(--hover-shadow-color)}.handle{position:absolute;visibility:hidden;z-index:var(--side-direction-handle-z-index)}.corner-handle{z-index:var(--corner-handle-z-index)}.left-handle.horizontal-direction-left,.left-handle.horizontal-direction-both{visibility:visible;left:var(--horizontal-handle-offset);top:0;height:100%;width:var(--horizontal-handle-size);cursor:col-resize}.right-handle.horizontal-direction-right,.right-handle.horizontal-direction-both{visibility:visible;right:var(--horizontal-handle-offset);top:0;height:100%;width:var(--horizontal-handle-size);cursor:col-resize}.bottom-handle.vertical-direction-bottom,.bottom-handle.vertical-direction-both{visibility:visible;left:0;bottom:var(--vertical-handle-offset);height:var(--vertical-handle-size);width:100%;cursor:row-resize}.top-handle.vertical-direction-top,.top-handle.vertical-direction-both{visibility:visible;left:0;top:var(--vertical-handle-offset);height:var(--vertical-handle-size);width:100%;cursor:row-resize}.bottom-right-handle.vertical-direction-bottom.horizontal-direction-right,.bottom-right-handle.vertical-direction-both.horizontal-direction-right,.bottom-right-handle.vertical-direction-bottom.horizontal-direction-both,.bottom-right-handle.vertical-direction-both.horizontal-direction-both{visibility:visible;right:var(--horizontal-handle-offset);bottom:var(--vertical-handle-offset);height:var(--vertical-handle-size);width:var(--horizontal-handle-size);cursor:nwse-resize}.bottom-left-handle.vertical-direction-bottom.horizontal-direction-left,.bottom-left-handle.vertical-direction-both.horizontal-direction-left,.bottom-left-handle.vertical-direction-bottom.horizontal-direction-both,.bottom-left-handle.vertical-direction-both.horizontal-direction-both{visibility:visible;left:var(--horizontal-handle-offset);bottom:var(--vertical-handle-offset);height:var(--vertical-handle-size);width:var(--horizontal-handle-size);cursor:nesw-resize}.top-right-handle.vertical-direction-top.horizontal-direction-right,.top-right-handle.vertical-direction-both.horizontal-direction-right,.top-right-handle.vertical-direction-top.horizontal-direction-both,.top-right-handle.vertical-direction-both.horizontal-direction-both{visibility:visible;right:var(--horizontal-handle-offset);top:var(--vertical-handle-offset);height:var(--vertical-handle-size);width:var(--horizontal-handle-size);cursor:nesw-resize}.top-left-handle.vertical-direction-top.horizontal-direction-left,.top-left-handle.vertical-direction-both.horizontal-direction-left,.top-left-handle.vertical-direction-top.horizontal-direction-both,.top-left-handle.vertical-direction-both.horizontal-direction-both{visibility:visible;left:var(--horizontal-handle-offset);top:var(--vertical-handle-offset);height:var(--vertical-handle-size);width:var(--horizontal-handle-size);cursor:nwse-resize}";
|
|
7
8
|
|
|
@@ -40,7 +41,9 @@ const Resizable = class {
|
|
|
40
41
|
this.handleDragLeft = this.handleDragLeft.bind(this);
|
|
41
42
|
this.handleDragRight = this.handleDragRight.bind(this);
|
|
42
43
|
this.handleWindowPointerUp = this.handleWindowPointerUp.bind(this);
|
|
44
|
+
this.updateDimensions = this.updateDimensions.bind(this);
|
|
43
45
|
this.recomputeDimensions = this.recomputeDimensions.bind(this);
|
|
46
|
+
this.computeDimensions = this.computeDimensions.bind(this);
|
|
44
47
|
this.mutationObserver = new MutationObserver(this.recomputeDimensions);
|
|
45
48
|
this.resizeObserver = new ResizeObserver(this.recomputeDimensions);
|
|
46
49
|
}
|
|
@@ -65,6 +68,21 @@ const Resizable = class {
|
|
|
65
68
|
this.mutationObserver.disconnect();
|
|
66
69
|
this.resizeObserver.disconnect();
|
|
67
70
|
}
|
|
71
|
+
connectedCallback() {
|
|
72
|
+
this.computeDimensions();
|
|
73
|
+
window.addEventListener('resize', this.recomputeDimensions);
|
|
74
|
+
this.mutationObserver.observe(this.hostElement, {
|
|
75
|
+
attributes: true,
|
|
76
|
+
attributeFilter: ['class'],
|
|
77
|
+
});
|
|
78
|
+
if (this.parentSelector != null) {
|
|
79
|
+
const parent = document.querySelector(this.parentSelector);
|
|
80
|
+
if (parent != null) {
|
|
81
|
+
this.resizeObserver.observe(parent);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
this.resizeObserver.observe(this.hostElement);
|
|
85
|
+
}
|
|
68
86
|
render() {
|
|
69
87
|
const width = this.width < 0 || this.horizontalDirection === 'none'
|
|
70
88
|
? '100%'
|
|
@@ -143,7 +161,7 @@ const Resizable = class {
|
|
|
143
161
|
: 0;
|
|
144
162
|
}
|
|
145
163
|
computeDimensions() {
|
|
146
|
-
|
|
164
|
+
dom.readDOM(() => {
|
|
147
165
|
var _a;
|
|
148
166
|
const slotted = this.getSlottedElement();
|
|
149
167
|
if (typeof window !== 'undefined' && slotted != null) {
|
|
@@ -171,7 +189,7 @@ const Resizable = class {
|
|
|
171
189
|
}
|
|
172
190
|
this.resizeTimeout = setTimeout(() => {
|
|
173
191
|
this.resizeTimeout = undefined;
|
|
174
|
-
|
|
192
|
+
dom.readDOM(() => {
|
|
175
193
|
var _a;
|
|
176
194
|
const slotted = this.getSlottedElement();
|
|
177
195
|
if (typeof window !== 'undefined' && slotted != null) {
|
|
@@ -374,12 +392,12 @@ const Resizable = class {
|
|
|
374
392
|
return 0;
|
|
375
393
|
}
|
|
376
394
|
emitResizeStart(location) {
|
|
377
|
-
|
|
395
|
+
dom.readDOM(() => {
|
|
378
396
|
this.resizeStart.emit(this.computeResizeEventDetails(location));
|
|
379
397
|
});
|
|
380
398
|
}
|
|
381
399
|
emitResizeEnd(location) {
|
|
382
|
-
|
|
400
|
+
dom.readDOM(() => {
|
|
383
401
|
this.resizeEnd.emit(this.computeResizeEventDetails(location));
|
|
384
402
|
});
|
|
385
403
|
}
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const resizable = require('./resizable-
|
|
5
|
+
const resizable = require('./resizable-c0a69532.js');
|
|
6
6
|
require('./index-6a92256c.js');
|
|
7
7
|
require('./index-e1b40fa6.js');
|
|
8
|
+
require('./dom-a2c535e3.js');
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
@@ -21,6 +21,9 @@ export class Menu {
|
|
|
21
21
|
disconnectedCallback() {
|
|
22
22
|
this.removeEventListeners();
|
|
23
23
|
}
|
|
24
|
+
connectedCallback() {
|
|
25
|
+
this.addEventListeners();
|
|
26
|
+
}
|
|
24
27
|
render() {
|
|
25
28
|
return (h("vertex-popover", Object.assign({ ref: (element) => {
|
|
26
29
|
this.popoverRef = element;
|
|
@@ -36,12 +39,19 @@ export class Menu {
|
|
|
36
39
|
}) }, h("slot", { name: "header" }), h("slot", null))));
|
|
37
40
|
}
|
|
38
41
|
addEventListeners() {
|
|
39
|
-
var _a;
|
|
40
|
-
(_a = this.
|
|
42
|
+
var _a, _b;
|
|
43
|
+
(_a = this.listenerDisposable) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
44
|
+
(_b = this.popoverRef) === null || _b === void 0 ? void 0 : _b.addEventListener('dismissed', this.handlePopoverDismiss);
|
|
45
|
+
this.listenerDisposable = {
|
|
46
|
+
dispose: () => {
|
|
47
|
+
var _a;
|
|
48
|
+
(_a = this.popoverRef) === null || _a === void 0 ? void 0 : _a.removeEventListener('dismissed', this.handlePopoverDismiss);
|
|
49
|
+
},
|
|
50
|
+
};
|
|
41
51
|
}
|
|
42
52
|
removeEventListeners() {
|
|
43
53
|
var _a;
|
|
44
|
-
(_a = this.
|
|
54
|
+
(_a = this.listenerDisposable) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
45
55
|
}
|
|
46
56
|
handlePopoverDismiss() {
|
|
47
57
|
this.open = false;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { h, Host,
|
|
1
|
+
import { h, Host, } from '@stencil/core';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
+
import { readDOM } from '../../util/components/dom';
|
|
3
4
|
const WINDOW_RESIZE_DEBOUNCE_THRESHOLD = 200;
|
|
4
5
|
export class Resizable {
|
|
5
6
|
constructor() {
|
|
@@ -32,7 +33,9 @@ export class Resizable {
|
|
|
32
33
|
this.handleDragLeft = this.handleDragLeft.bind(this);
|
|
33
34
|
this.handleDragRight = this.handleDragRight.bind(this);
|
|
34
35
|
this.handleWindowPointerUp = this.handleWindowPointerUp.bind(this);
|
|
36
|
+
this.updateDimensions = this.updateDimensions.bind(this);
|
|
35
37
|
this.recomputeDimensions = this.recomputeDimensions.bind(this);
|
|
38
|
+
this.computeDimensions = this.computeDimensions.bind(this);
|
|
36
39
|
this.mutationObserver = new MutationObserver(this.recomputeDimensions);
|
|
37
40
|
this.resizeObserver = new ResizeObserver(this.recomputeDimensions);
|
|
38
41
|
}
|
|
@@ -57,6 +60,21 @@ export class Resizable {
|
|
|
57
60
|
this.mutationObserver.disconnect();
|
|
58
61
|
this.resizeObserver.disconnect();
|
|
59
62
|
}
|
|
63
|
+
connectedCallback() {
|
|
64
|
+
this.computeDimensions();
|
|
65
|
+
window.addEventListener('resize', this.recomputeDimensions);
|
|
66
|
+
this.mutationObserver.observe(this.hostElement, {
|
|
67
|
+
attributes: true,
|
|
68
|
+
attributeFilter: ['class'],
|
|
69
|
+
});
|
|
70
|
+
if (this.parentSelector != null) {
|
|
71
|
+
const parent = document.querySelector(this.parentSelector);
|
|
72
|
+
if (parent != null) {
|
|
73
|
+
this.resizeObserver.observe(parent);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
this.resizeObserver.observe(this.hostElement);
|
|
77
|
+
}
|
|
60
78
|
render() {
|
|
61
79
|
const width = this.width < 0 || this.horizontalDirection === 'none'
|
|
62
80
|
? '100%'
|
|
@@ -135,7 +153,7 @@ export class Resizable {
|
|
|
135
153
|
: 0;
|
|
136
154
|
}
|
|
137
155
|
computeDimensions() {
|
|
138
|
-
|
|
156
|
+
readDOM(() => {
|
|
139
157
|
var _a;
|
|
140
158
|
const slotted = this.getSlottedElement();
|
|
141
159
|
if (typeof window !== 'undefined' && slotted != null) {
|
|
@@ -163,7 +181,7 @@ export class Resizable {
|
|
|
163
181
|
}
|
|
164
182
|
this.resizeTimeout = setTimeout(() => {
|
|
165
183
|
this.resizeTimeout = undefined;
|
|
166
|
-
|
|
184
|
+
readDOM(() => {
|
|
167
185
|
var _a;
|
|
168
186
|
const slotted = this.getSlottedElement();
|
|
169
187
|
if (typeof window !== 'undefined' && slotted != null) {
|
|
@@ -366,12 +384,12 @@ export class Resizable {
|
|
|
366
384
|
return 0;
|
|
367
385
|
}
|
|
368
386
|
emitResizeStart(location) {
|
|
369
|
-
|
|
387
|
+
readDOM(() => {
|
|
370
388
|
this.resizeStart.emit(this.computeResizeEventDetails(location));
|
|
371
389
|
});
|
|
372
390
|
}
|
|
373
391
|
emitResizeEnd(location) {
|
|
374
|
-
|
|
392
|
+
readDOM(() => {
|
|
375
393
|
this.resizeEnd.emit(this.computeResizeEventDetails(location));
|
|
376
394
|
});
|
|
377
395
|
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host, readTask } from '@stencil/core/internal/client';
|
|
2
|
+
import { g as getFirstSlottedElement } from './slots.js';
|
|
3
|
+
|
|
4
|
+
function isTextareaElement(el) {
|
|
5
|
+
return (el === null || el === void 0 ? void 0 : el.tagName) === 'TEXTAREA';
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const autoResizeTextareaCss = ":host{position:relative;width:100%;height:100%;font-size:0}.hidden-text{position:absolute;box-sizing:border-box;top:0;left:0;height:0;width:100%;padding:0;margin:0;border:none;visibility:hidden;pointer-events:none;overflow:hidden}";
|
|
9
|
+
|
|
10
|
+
const AutoResizeTextArea = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super();
|
|
13
|
+
this.__registerHost();
|
|
14
|
+
this.__attachShadow();
|
|
15
|
+
this.previousScrollTop = 0;
|
|
16
|
+
this.rowCount = 0;
|
|
17
|
+
this.textareaSelector = undefined;
|
|
18
|
+
this.initialValue = undefined;
|
|
19
|
+
this.minRows = 1;
|
|
20
|
+
this.maxRows = undefined;
|
|
21
|
+
this.textValue = undefined;
|
|
22
|
+
this.prepareHiddenTextElement = this.prepareHiddenTextElement.bind(this);
|
|
23
|
+
this.updateScrollTop = this.updateScrollTop.bind(this);
|
|
24
|
+
this.computeRowHeights = this.computeRowHeights.bind(this);
|
|
25
|
+
this.updateValue = this.updateValue.bind(this);
|
|
26
|
+
this.updatePreviousScrollTop = this.updatePreviousScrollTop.bind(this);
|
|
27
|
+
this.updateOverflow = this.updateOverflow.bind(this);
|
|
28
|
+
this.resizeObserver = new ResizeObserver(this.computeRowHeights);
|
|
29
|
+
}
|
|
30
|
+
componentWillLoad() {
|
|
31
|
+
this.computeRowHeights();
|
|
32
|
+
}
|
|
33
|
+
componentDidLoad() {
|
|
34
|
+
this.slottedElement = this.getSlottedTextareaElement();
|
|
35
|
+
this.textValue = this.initialValue;
|
|
36
|
+
this.prepareHiddenTextElement();
|
|
37
|
+
this.computeRowHeights();
|
|
38
|
+
if (this.slottedElement != null) {
|
|
39
|
+
this.resizeObserver.observe(this.slottedElement);
|
|
40
|
+
this.addEventListener();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
componentDidRender() {
|
|
44
|
+
// This re-computes the number of rows after a rerender has
|
|
45
|
+
// rendered the current value to the hidden textarea.
|
|
46
|
+
this.computeRowHeights();
|
|
47
|
+
}
|
|
48
|
+
disconnectedCallback() {
|
|
49
|
+
this.removeEventListener();
|
|
50
|
+
this.resizeObserver.disconnect();
|
|
51
|
+
}
|
|
52
|
+
render() {
|
|
53
|
+
return (h(Host, null, h("textarea", { class: "hidden-text", ref: (el) => {
|
|
54
|
+
this.hiddenTextRef = el;
|
|
55
|
+
} }, this.textValue), h("slot", null)));
|
|
56
|
+
}
|
|
57
|
+
addEventListener() {
|
|
58
|
+
var _a, _b;
|
|
59
|
+
(_a = this.slottedElement) === null || _a === void 0 ? void 0 : _a.addEventListener('input', this.updateValue);
|
|
60
|
+
(_b = this.slottedElement) === null || _b === void 0 ? void 0 : _b.addEventListener('keydown', this.updatePreviousScrollTop);
|
|
61
|
+
}
|
|
62
|
+
removeEventListener() {
|
|
63
|
+
var _a, _b;
|
|
64
|
+
(_a = this.slottedElement) === null || _a === void 0 ? void 0 : _a.removeEventListener('input', this.updateValue);
|
|
65
|
+
(_b = this.slottedElement) === null || _b === void 0 ? void 0 : _b.removeEventListener('keydown', this.updatePreviousScrollTop);
|
|
66
|
+
}
|
|
67
|
+
updateValue() {
|
|
68
|
+
if (this.slottedElement != null) {
|
|
69
|
+
this.textValue = this.slottedElement.value;
|
|
70
|
+
this.updateOverflow();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
updatePreviousScrollTop() {
|
|
74
|
+
if (this.slottedElement != null) {
|
|
75
|
+
this.previousScrollTop = this.slottedElement.scrollTop;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
updateScrollTop() {
|
|
79
|
+
if (this.slottedElement != null) {
|
|
80
|
+
// This prevents an issue where the slotted textarea auto-scrolls
|
|
81
|
+
// to a newline. This is desired behavior if we're capped at the
|
|
82
|
+
// max rows, but undesired if the component will continue to expand.
|
|
83
|
+
this.slottedElement.scrollTop =
|
|
84
|
+
this.maxRows == null || this.rowCount >= this.maxRows
|
|
85
|
+
? this.slottedElement.scrollTop
|
|
86
|
+
: this.previousScrollTop;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
computeRowHeights() {
|
|
90
|
+
this.updateScrollTop();
|
|
91
|
+
readTask(() => {
|
|
92
|
+
var _a;
|
|
93
|
+
if (typeof window !== 'undefined' &&
|
|
94
|
+
this.slottedElement != null &&
|
|
95
|
+
this.hiddenTextRef != null) {
|
|
96
|
+
const computedStyles = window.getComputedStyle(this.slottedElement);
|
|
97
|
+
const lineHeight = Math.floor(parseFloat(computedStyles.lineHeight));
|
|
98
|
+
const totalRows = Math.floor(this.hiddenTextRef.scrollHeight / lineHeight);
|
|
99
|
+
this.rowCount = Math.max(this.minRows, Math.min((_a = this.maxRows) !== null && _a !== void 0 ? _a : totalRows, totalRows));
|
|
100
|
+
this.slottedElement.rows = this.rowCount;
|
|
101
|
+
this.updateOverflow();
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
prepareHiddenTextElement() {
|
|
106
|
+
readTask(() => {
|
|
107
|
+
if (typeof window !== 'undefined' &&
|
|
108
|
+
this.slottedElement != null &&
|
|
109
|
+
this.hiddenTextRef != null) {
|
|
110
|
+
const computedStyles = window.getComputedStyle(this.slottedElement);
|
|
111
|
+
this.hiddenTextRef.setAttribute('style', `line-height: ${computedStyles.lineHeight}; font-size: ${computedStyles.fontSize}; font-family: ${computedStyles.fontFamily}; padding-left: ${computedStyles.paddingLeft}; padding-right: ${computedStyles.paddingRight};`);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
getSlottedTextareaElement() {
|
|
116
|
+
const el = getFirstSlottedElement({
|
|
117
|
+
hostElement: this.hostElement,
|
|
118
|
+
selector: this.textareaSelector,
|
|
119
|
+
});
|
|
120
|
+
if (isTextareaElement(el)) {
|
|
121
|
+
return el;
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
throw new Error('The vertex-auto-resize-textarea component is only compatible with `HTMLTextAreaElement`s');
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
updateOverflow() {
|
|
128
|
+
var _a;
|
|
129
|
+
(_a = this.slottedElement) === null || _a === void 0 ? void 0 : _a.setAttribute('style', this.maxRows && this.rowCount >= this.maxRows
|
|
130
|
+
? 'overflow-y: auto;'
|
|
131
|
+
: 'overflow: hidden;');
|
|
132
|
+
}
|
|
133
|
+
get hostElement() { return this; }
|
|
134
|
+
static get style() { return autoResizeTextareaCss; }
|
|
135
|
+
}, [1, "vertex-auto-resize-textarea", {
|
|
136
|
+
"textareaSelector": [1, "textarea-selector"],
|
|
137
|
+
"initialValue": [1, "initial-value"],
|
|
138
|
+
"minRows": [514, "min-rows"],
|
|
139
|
+
"maxRows": [514, "max-rows"],
|
|
140
|
+
"textValue": [32]
|
|
141
|
+
}]);
|
|
142
|
+
function defineCustomElement() {
|
|
143
|
+
if (typeof customElements === "undefined") {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
const components = ["vertex-auto-resize-textarea"];
|
|
147
|
+
components.forEach(tagName => { switch (tagName) {
|
|
148
|
+
case "vertex-auto-resize-textarea":
|
|
149
|
+
if (!customElements.get(tagName)) {
|
|
150
|
+
customElements.define(tagName, AutoResizeTextArea);
|
|
151
|
+
}
|
|
152
|
+
break;
|
|
153
|
+
} });
|
|
154
|
+
}
|
|
155
|
+
defineCustomElement();
|
|
156
|
+
|
|
157
|
+
export { AutoResizeTextArea as A, defineCustomElement as d };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { c as classnames } from './index2.js';
|
|
3
|
+
|
|
4
|
+
const hexRegex = /^(#|0x)?([A-Fa-f0-9]{6})$/;
|
|
5
|
+
function isValidHexColor(color) {
|
|
6
|
+
const match = color != null ? hexRegex.exec(color) : undefined;
|
|
7
|
+
return match != null && match.length > 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const colorSwatchCss = ":host{display:flex}.root{position:relative;border-style:solid;border-color:var(--vertex-ui-neutral-300);box-sizing:border-box}.root.circle{border-width:2px;border-radius:100%}.root.square{border-width:1px;border-radius:3px}.root.sm{width:16px;height:16px}.root.md{width:20px;height:20px}.root.lg{width:24px;height:24px}.overlay{position:absolute;width:100%;height:100%;border-radius:2px;overflow:hidden}";
|
|
11
|
+
|
|
12
|
+
const ColorSwatch = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.__registerHost();
|
|
16
|
+
this.__attachShadow();
|
|
17
|
+
this.variant = 'circle';
|
|
18
|
+
this.size = 'md';
|
|
19
|
+
this.color = '#ffffff';
|
|
20
|
+
this.supplementalColor = undefined;
|
|
21
|
+
this.theme = 'none';
|
|
22
|
+
this.lightenPercentage = 0.25;
|
|
23
|
+
this.darkenPercentage = 0.25;
|
|
24
|
+
this.lightened = this.adjustColor(this.color, -this.lightenPercentage);
|
|
25
|
+
this.darkened = this.adjustColor(this.color, this.darkenPercentage);
|
|
26
|
+
}
|
|
27
|
+
handleColorChanged(newColor) {
|
|
28
|
+
this.lightened = this.adjustColor(newColor, -this.lightenPercentage);
|
|
29
|
+
this.darkened = this.adjustColor(newColor, this.darkenPercentage);
|
|
30
|
+
}
|
|
31
|
+
handleLightenPercentageChanged(newPercentage) {
|
|
32
|
+
this.lightened = this.adjustColor(this.color, -newPercentage);
|
|
33
|
+
}
|
|
34
|
+
handleDarkenPercentageChanged(newPercentage) {
|
|
35
|
+
this.darkened = this.adjustColor(this.color, newPercentage);
|
|
36
|
+
}
|
|
37
|
+
render() {
|
|
38
|
+
return (h(Host, null, h("div", { class: classnames('root', this.variant, this.size), style: this.getThemeColors() }, h("div", { class: "overlay" }, h("slot", { name: "overlay" })))));
|
|
39
|
+
}
|
|
40
|
+
getThemeColors() {
|
|
41
|
+
const supplementalColor = this.getSupplementalColor();
|
|
42
|
+
switch (this.theme) {
|
|
43
|
+
case 'light':
|
|
44
|
+
return {
|
|
45
|
+
backgroundColor: supplementalColor,
|
|
46
|
+
borderColor: this.color,
|
|
47
|
+
};
|
|
48
|
+
case 'dark':
|
|
49
|
+
return {
|
|
50
|
+
backgroundColor: this.color,
|
|
51
|
+
borderColor: supplementalColor,
|
|
52
|
+
};
|
|
53
|
+
default:
|
|
54
|
+
return {
|
|
55
|
+
backgroundColor: this.color,
|
|
56
|
+
borderColor: supplementalColor !== null && supplementalColor !== void 0 ? supplementalColor : undefined,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
getSupplementalColor() {
|
|
61
|
+
const providedSupplementalColor = this.supplementalColor != null && this.supplementalColor.length > 0
|
|
62
|
+
? this.supplementalColor
|
|
63
|
+
: undefined;
|
|
64
|
+
switch (this.theme) {
|
|
65
|
+
case 'light':
|
|
66
|
+
return providedSupplementalColor !== null && providedSupplementalColor !== void 0 ? providedSupplementalColor : this.lightened;
|
|
67
|
+
case 'dark':
|
|
68
|
+
return providedSupplementalColor !== null && providedSupplementalColor !== void 0 ? providedSupplementalColor : this.darkened;
|
|
69
|
+
default:
|
|
70
|
+
return providedSupplementalColor;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
adjustColor(color, percentage) {
|
|
74
|
+
if (isValidHexColor(color)) {
|
|
75
|
+
const r = Number(`0x${color.slice(1, 3)}`);
|
|
76
|
+
const g = Number(`0x${color.slice(3, 5)}`);
|
|
77
|
+
const b = Number(`0x${color.slice(5, 7)}`);
|
|
78
|
+
const rPadded = this.padHexComponent(this.adjustComponent(r, percentage).toString(16));
|
|
79
|
+
const gPadded = this.padHexComponent(this.adjustComponent(g, percentage).toString(16));
|
|
80
|
+
const bPadded = this.padHexComponent(this.adjustComponent(b, percentage).toString(16));
|
|
81
|
+
return `#${rPadded}${gPadded}${bPadded}`;
|
|
82
|
+
}
|
|
83
|
+
return color;
|
|
84
|
+
}
|
|
85
|
+
adjustComponent(component, percentage) {
|
|
86
|
+
const scalar = percentage < 0 ? 0xff - component : 0xff;
|
|
87
|
+
return Math.max(0x00, Math.min(0xff, Math.floor(component - Math.floor(scalar * percentage))));
|
|
88
|
+
}
|
|
89
|
+
padHexComponent(hex) {
|
|
90
|
+
return `${'0'.repeat(2 - hex.length)}${hex}`;
|
|
91
|
+
}
|
|
92
|
+
static get watchers() { return {
|
|
93
|
+
"color": ["handleColorChanged"],
|
|
94
|
+
"lightenPercentage": ["handleLightenPercentageChanged"],
|
|
95
|
+
"darkenPercentage": ["handleDarkenPercentageChanged"]
|
|
96
|
+
}; }
|
|
97
|
+
static get style() { return colorSwatchCss; }
|
|
98
|
+
}, [1, "vertex-color-swatch", {
|
|
99
|
+
"variant": [513],
|
|
100
|
+
"size": [513],
|
|
101
|
+
"color": [513],
|
|
102
|
+
"supplementalColor": [513, "supplemental-color"],
|
|
103
|
+
"theme": [513],
|
|
104
|
+
"lightenPercentage": [2, "lighten-percentage"],
|
|
105
|
+
"darkenPercentage": [2, "darken-percentage"],
|
|
106
|
+
"lightened": [1537],
|
|
107
|
+
"darkened": [1537]
|
|
108
|
+
}]);
|
|
109
|
+
function defineCustomElement() {
|
|
110
|
+
if (typeof customElements === "undefined") {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
const components = ["vertex-color-swatch"];
|
|
114
|
+
components.forEach(tagName => { switch (tagName) {
|
|
115
|
+
case "vertex-color-swatch":
|
|
116
|
+
if (!customElements.get(tagName)) {
|
|
117
|
+
customElements.define(tagName, ColorSwatch);
|
|
118
|
+
}
|
|
119
|
+
break;
|
|
120
|
+
} });
|
|
121
|
+
}
|
|
122
|
+
defineCustomElement();
|
|
123
|
+
|
|
124
|
+
export { ColorSwatch as C, defineCustomElement as d, isValidHexColor as i };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as e,N as t,w as a,p as o,a as r,b as i}from"./p-6834631c.js";export{s as setNonce}from"./p-6834631c.js";(()=>{const i=Array.from(e.querySelectorAll("script")).find((e=>new RegExp(`/${t}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===t)),n={};return n.resourcesUrl=new URL(".",new URL(i.getAttribute("data-resources-url")||i.src,a.location.href)).href,((o,i)=>{const n=`__sc_import_${t.replace(/\s|-/g,"_")}`;try{a[n]=new Function("w",`return import(w);//${Math.random()}`)}catch(t){const l=new Map;a[n]=t=>{var c;const s=new URL(t,o).href;let p=l.get(s);if(!p){const t=e.createElement("script");t.type="module",t.crossOrigin=i.crossOrigin,t.src=URL.createObjectURL(new Blob([`import * as m from '${s}'; window.${n}.m = m;`],{type:"application/javascript"}));const o=null!==(c=r.t)&&void 0!==c?c:function(e){var t,a,o;return null!==(o=null===(a=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===a?void 0:a.getAttribute("content"))&&void 0!==o?o:void 0}(e);null!=o&&t.setAttribute("nonce",o),p=new Promise((e=>{t.onload=()=>{e(a[n].m),t.remove()}})),l.set(s,p),e.head.appendChild(t)}return p}}})(n.resourcesUrl,i),a.customElements?o(n):__sc_import_components("./p-c3ec6642.js").then((()=>n))})().then((e=>i([["p-24c72960",[[6,"vertex-click-to-edit-textfield",{placeholder:[1],fontSize:[1,"font-size"],disabled:[516],multiline:[4],minRows:[2,"min-rows"],maxRows:[2,"max-rows"],value:[1032],autoFocus:[4,"auto-focus"],editing:[1540],hasError:[4,"has-error"]}]]],["p-226e83a6",[[1,"vertex-collapsible",{label:[1],open:[1540]}]]],["p-b22ed1dd",[[1,"vertex-banner",{content:[1],placement:[1],duration:[2],animated:[4],open:[4],type:[1],isOpen:[32]}]]],["p-41ced35c",[[1,"vertex-context-menu",{targetSelector:[1,"target-selector"],animated:[4],position:[32],open:[32]}]]],["p-e35057b5",[[1,"vertex-dialog",{open:[1540],fullscreen:[4],resizable:[4],width:[32],height:[32],minWidth:[32],minHeight:[32],maxWidth:[32],maxHeight:[32],isResizing:[32]},[[4,"keydown","keyDownListener"]]]]],["p-e7336466",[[1,"vertex-draggable-popover",{position:[1],boundarySelector:[1,"boundary-selector"],boundaryPadding:[2,"boundary-padding"],anchorPosition:[32],lastPosition:[32],dragging:[32]}]]],["p-e3d0c2d1",[[1,"vertex-dropdown-menu",{animated:[4],placement:[1],open:[32]}]]],["p-fe7e7a74",[[1,"vertex-help-tooltip",{animated:[4],placement:[1],open:[32]}]]],["p-6a49c365",[[6,"vertex-search-bar",{variant:[1],disabled:[4],triggerCharacter:[1,"trigger-character"],breakCharacters:[16],resultItems:[16],placement:[1],value:[1],placeholder:[1],replacements:[1040],replacementUriType:[1,"replacement-uri-type"],cursorPosition:[32],displayedElements:[32],hasTriggered:[32]}]]],["p-1d08dd79",[[1,"vertex-select",{value:[513],placeholder:[513],disabled:[516],animated:[4],hideSelected:[4,"hide-selected"],resizeObserverFactory:[16],open:[32],position:[32],displayValue:[32]}]]],["p-01d4be1d",[[1,"vertex-slider",{min:[2],max:[2],valueLabelDisplay:[1,"value-label-display"],step:[8],size:[1],value:[1026],disabled:[4]}]]],["p-756c9977",[[1,"vertex-toast",{content:[1],placement:[1],duration:[2],animated:[4],open:[4],type:[1],isOpen:[32]}]]],["p-d2d75bcf",[[1,"vertex-color-circle-picker",{colors:[1],supplementalColors:[1,"supplemental-colors"],theme:[513],lightenPercentage:[2,"lighten-percentage"],darkenPercentage:[2,"darken-percentage"],selected:[1537],direction:[1]}]]],["p-70c6c194",[[1,"vertex-color-picker",{value:[1537],size:[513],variant:[513],expand:[513],disabled:[4]}]]],["p-53515813",[[1,"vertex-toggle",{variant:[1],disabled:[4],checked:[1540]}]]],["p-bca6275a",[[1,"vertex-avatar",{firstName:[1,"first-name"],lastName:[1,"last-name"],value:[1],active:[4],variant:[1]}]]],["p-91123ff6",[[1,"vertex-avatar-group"]]],["p-0b4406fa",[[1,"vertex-badge",{badgeText:[1,"badge-text"],badgeColor:[1,"badge-color"]}]]],["p-f6f2bc86",[[1,"vertex-button",{type:[1],color:[1],variant:[1],size:[1],expand:[1],href:[1],target:[1],disabled:[516]}]]],["p-6d4f055b",[[1,"vertex-card",{mode:[1]}]]],["p-211c1186",[[1,"vertex-card-group",{selected:[516],hovered:[516],expanded:[516]}]]],["p-d7c0c287",[[1,"vertex-chip",{variant:[1],color:[1]}]]],["p-a2018217",[[1,"vertex-logo-loading"]]],["p-cc2e3192",[[1,"vertex-menu-divider"]]],["p-573b8ec6",[[1,"vertex-menu-item",{disabled:[516]}]]],["p-33400eed",[[2,"vertex-radio",{disabled:[516],value:[513],label:[513],name:[513],checked:[516]}]]],["p-8b85ea4a",[[1,"vertex-radio-group",{name:[513],value:[1537]}]]],["p-
|
|
1
|
+
import{d as e,N as t,w as a,p as o,a as r,b as i}from"./p-6834631c.js";export{s as setNonce}from"./p-6834631c.js";(()=>{const i=Array.from(e.querySelectorAll("script")).find((e=>new RegExp(`/${t}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===t)),n={};return n.resourcesUrl=new URL(".",new URL(i.getAttribute("data-resources-url")||i.src,a.location.href)).href,((o,i)=>{const n=`__sc_import_${t.replace(/\s|-/g,"_")}`;try{a[n]=new Function("w",`return import(w);//${Math.random()}`)}catch(t){const l=new Map;a[n]=t=>{var c;const s=new URL(t,o).href;let p=l.get(s);if(!p){const t=e.createElement("script");t.type="module",t.crossOrigin=i.crossOrigin,t.src=URL.createObjectURL(new Blob([`import * as m from '${s}'; window.${n}.m = m;`],{type:"application/javascript"}));const o=null!==(c=r.t)&&void 0!==c?c:function(e){var t,a,o;return null!==(o=null===(a=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===a?void 0:a.getAttribute("content"))&&void 0!==o?o:void 0}(e);null!=o&&t.setAttribute("nonce",o),p=new Promise((e=>{t.onload=()=>{e(a[n].m),t.remove()}})),l.set(s,p),e.head.appendChild(t)}return p}}})(n.resourcesUrl,i),a.customElements?o(n):__sc_import_components("./p-c3ec6642.js").then((()=>n))})().then((e=>i([["p-24c72960",[[6,"vertex-click-to-edit-textfield",{placeholder:[1],fontSize:[1,"font-size"],disabled:[516],multiline:[4],minRows:[2,"min-rows"],maxRows:[2,"max-rows"],value:[1032],autoFocus:[4,"auto-focus"],editing:[1540],hasError:[4,"has-error"]}]]],["p-226e83a6",[[1,"vertex-collapsible",{label:[1],open:[1540]}]]],["p-b22ed1dd",[[1,"vertex-banner",{content:[1],placement:[1],duration:[2],animated:[4],open:[4],type:[1],isOpen:[32]}]]],["p-41ced35c",[[1,"vertex-context-menu",{targetSelector:[1,"target-selector"],animated:[4],position:[32],open:[32]}]]],["p-e35057b5",[[1,"vertex-dialog",{open:[1540],fullscreen:[4],resizable:[4],width:[32],height:[32],minWidth:[32],minHeight:[32],maxWidth:[32],maxHeight:[32],isResizing:[32]},[[4,"keydown","keyDownListener"]]]]],["p-e7336466",[[1,"vertex-draggable-popover",{position:[1],boundarySelector:[1,"boundary-selector"],boundaryPadding:[2,"boundary-padding"],anchorPosition:[32],lastPosition:[32],dragging:[32]}]]],["p-e3d0c2d1",[[1,"vertex-dropdown-menu",{animated:[4],placement:[1],open:[32]}]]],["p-fe7e7a74",[[1,"vertex-help-tooltip",{animated:[4],placement:[1],open:[32]}]]],["p-6a49c365",[[6,"vertex-search-bar",{variant:[1],disabled:[4],triggerCharacter:[1,"trigger-character"],breakCharacters:[16],resultItems:[16],placement:[1],value:[1],placeholder:[1],replacements:[1040],replacementUriType:[1,"replacement-uri-type"],cursorPosition:[32],displayedElements:[32],hasTriggered:[32]}]]],["p-1d08dd79",[[1,"vertex-select",{value:[513],placeholder:[513],disabled:[516],animated:[4],hideSelected:[4,"hide-selected"],resizeObserverFactory:[16],open:[32],position:[32],displayValue:[32]}]]],["p-01d4be1d",[[1,"vertex-slider",{min:[2],max:[2],valueLabelDisplay:[1,"value-label-display"],step:[8],size:[1],value:[1026],disabled:[4]}]]],["p-756c9977",[[1,"vertex-toast",{content:[1],placement:[1],duration:[2],animated:[4],open:[4],type:[1],isOpen:[32]}]]],["p-d2d75bcf",[[1,"vertex-color-circle-picker",{colors:[1],supplementalColors:[1,"supplemental-colors"],theme:[513],lightenPercentage:[2,"lighten-percentage"],darkenPercentage:[2,"darken-percentage"],selected:[1537],direction:[1]}]]],["p-70c6c194",[[1,"vertex-color-picker",{value:[1537],size:[513],variant:[513],expand:[513],disabled:[4]}]]],["p-53515813",[[1,"vertex-toggle",{variant:[1],disabled:[4],checked:[1540]}]]],["p-bca6275a",[[1,"vertex-avatar",{firstName:[1,"first-name"],lastName:[1,"last-name"],value:[1],active:[4],variant:[1]}]]],["p-91123ff6",[[1,"vertex-avatar-group"]]],["p-0b4406fa",[[1,"vertex-badge",{badgeText:[1,"badge-text"],badgeColor:[1,"badge-color"]}]]],["p-f6f2bc86",[[1,"vertex-button",{type:[1],color:[1],variant:[1],size:[1],expand:[1],href:[1],target:[1],disabled:[516]}]]],["p-6d4f055b",[[1,"vertex-card",{mode:[1]}]]],["p-211c1186",[[1,"vertex-card-group",{selected:[516],hovered:[516],expanded:[516]}]]],["p-d7c0c287",[[1,"vertex-chip",{variant:[1],color:[1]}]]],["p-a2018217",[[1,"vertex-logo-loading"]]],["p-cc2e3192",[[1,"vertex-menu-divider"]]],["p-573b8ec6",[[1,"vertex-menu-item",{disabled:[516]}]]],["p-33400eed",[[2,"vertex-radio",{disabled:[516],value:[513],label:[513],name:[513],checked:[516]}]]],["p-8b85ea4a",[[1,"vertex-radio-group",{name:[513],value:[1537]}]]],["p-95358d00",[[1,"vertex-resizable",{horizontalDirection:[1,"horizontal-direction"],verticalDirection:[1,"vertical-direction"],initialHorizontalScale:[2,"initial-horizontal-scale"],initialVerticalScale:[2,"initial-vertical-scale"],initializeWithOffset:[4,"initialize-with-offset"],parentSelector:[1,"parent-selector"],verticalSiblingSelector:[1,"vertical-sibling-selector"],horizontalSiblingSelector:[1,"horizontal-sibling-selector"],contentSelector:[1,"content-selector"],position:[1],dimensionsComputed:[1540,"dimensions-computed"],width:[32],minWidth:[32],maxWidth:[32],height:[32],minHeight:[32],maxHeight:[32],left:[32],top:[32],hoveredLocation:[32],dragStartLocation:[32],updateDimensions:[64]}]]],["p-69375605",[[1,"vertex-spinner",{color:[1],size:[1]}]]],["p-2ae8175d",[[1,"vertex-tab",{label:[1],active:[4]}]]],["p-8d83dfff",[[1,"vertex-tabs",{active:[1025],labels:[32],activeBounds:[32],activeButtonEl:[32]}]]],["p-80c989fa",[[1,"vertex-expandable",{expanded:[1540],expanding:[1540],collapsing:[1540],controlled:[516],expandType:[513,"expand-type"],animated:[4],contentScrollHeight:[32]}]]],["p-ee496965",[[1,"vertex-result-list",{items:[16],itemsJson:[1,"items"],viewportStartIndex:[1026,"viewport-start-index"],viewportEndIndex:[1026,"viewport-end-index"],resultHeight:[1026,"result-height"],overScanCount:[2,"over-scan-count"],placement:[1],position:[1],open:[4],listHeight:[32],parsedResults:[32],scrollTop:[32],lastStartIndex:[32],lastFocusedIndex:[32],stateMap:[32]}]]],["p-9c384f6c",[[1,"vertex-auto-resize-textarea",{textareaSelector:[1,"textarea-selector"],initialValue:[1,"initial-value"],minRows:[514,"min-rows"],maxRows:[514,"max-rows"],textValue:[32]}]]],["p-406e73da",[[6,"vertex-textfield",{type:[1],name:[1],variant:[1],fontSize:[1,"font-size"],multiline:[4],minRows:[2,"min-rows"],maxRows:[2,"max-rows"],placeholder:[1],autoFocus:[4,"auto-focus"],autoComplete:[1,"auto-complete"],autoCorrect:[1,"auto-correct"],value:[1032],disabled:[516],hasError:[4,"has-error"],updateInput:[64],blurInput:[64],getInputValue:[64],selectAll:[64]}]]],["p-606596de",[[1,"vertex-popover",{open:[1540],placement:[1],position:[1025],anchorBounds:[16],backdrop:[4],animated:[4],anchorSelector:[1,"anchor-selector"],boundarySelector:[1,"boundary-selector"],resizeBehavior:[1,"resize-behavior"],overflowBehavior:[16],flipBehavior:[16],offsetBehavior:[2,"offset-behavior"],updateOnResize:[4,"update-on-resize"],resizeObserverFactory:[16],opened:[32],computedPlacement:[32]}]]],["p-3b794014",[[1,"vertex-tooltip",{content:[1],disabled:[4],placement:[1],delay:[2],animated:[4],open:[32]}]]],["p-8bbc344d",[[1,"vertex-color-swatch",{variant:[513],size:[513],color:[513],supplementalColor:[513,"supplemental-color"],theme:[513],lightenPercentage:[2,"lighten-percentage"],darkenPercentage:[2,"darken-percentage"],lightened:[1537],darkened:[1537]}]]],["p-1b85c1d1",[[1,"vertex-menu",{animated:[4],open:[1540],placement:[1],fallbackPlacements:[16],backdrop:[4],position:[1040],popoverProps:[16]}]]],["p-91644b85",[[1,"vertex-icon",{name:[1],size:[1]}]]],["p-ef75393c",[[1,"vertex-icon-button",{iconName:[1,"icon-name"],disabled:[516],variant:[1],iconColor:[1,"icon-color"],iconSize:[1,"icon-size"]}]]]],e)));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { readTask } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
function readDOM(callback) {
|
|
4
|
+
readTask(callback);
|
|
5
|
+
}
|
|
6
|
+
function getBoundingClientRect(el) {
|
|
7
|
+
return el.getBoundingClientRect();
|
|
8
|
+
}
|
|
9
|
+
function blurElement(el) {
|
|
10
|
+
el.blur();
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { blurElement as b, getBoundingClientRect as g, readDOM as r };
|