@genexus/genexus-ide-ui 0.0.76 → 0.0.78
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/ch-shortcuts_2.cjs.entry.js +230 -0
- package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/gx-ide-ai-assistant.cjs.entry.js +16 -2
- package/dist/cjs/gx-ide-ai-message.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-new-environment.cjs.entry.js +7 -2
- package/dist/cjs/gxg-form-text.cjs.entry.js +3 -5
- package/dist/cjs/gxg-test.cjs.entry.js +7 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ai-assistant/ai-assistant.css +1 -0
- package/dist/collection/components/ai-assistant/ai-assistant.js +15 -1
- package/dist/collection/components/ai-assistant/ai-message.css +3 -6
- package/dist/collection/components/new-environment/gx-ide-assets/new-environment/shortcuts.json +21 -0
- package/dist/collection/components/new-environment/new-environment.js +8 -3
- package/dist/components/ai-message.js +1 -1
- package/dist/components/ch-shortcuts.js +1 -236
- package/dist/{esm/ch-shortcuts.entry.js → components/ch-shortcuts2.js} +40 -9
- package/dist/components/form-text.js +3 -5
- package/dist/components/gx-ide-ai-assistant.js +16 -2
- package/dist/components/gx-ide-new-environment.js +58 -29
- package/dist/components/gxg-shortcuts.js +6 -0
- package/dist/components/gxg-test.js +32 -2
- package/dist/components/index.js +1 -0
- package/dist/components/shortcuts.js +58 -0
- package/dist/esm/ch-shortcuts_2.entry.js +225 -0
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-ai-assistant.entry.js +16 -2
- package/dist/esm/gx-ide-ai-message.entry.js +1 -1
- package/dist/esm/gx-ide-new-environment.entry.js +8 -3
- package/dist/esm/gxg-form-text.entry.js +3 -5
- package/dist/esm/gxg-test.entry.js +7 -1
- package/dist/esm/loader.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/new-environment/shortcuts.json +21 -0
- package/dist/genexus-ide-ui/p-0967fafc.entry.js +1 -0
- package/dist/genexus-ide-ui/p-0b6d53e1.entry.js +1 -0
- package/dist/genexus-ide-ui/p-2d77e2a3.entry.js +1 -0
- package/dist/genexus-ide-ui/p-4bceda48.entry.js +1 -0
- package/dist/genexus-ide-ui/p-ab4e48bc.entry.js +1 -0
- package/dist/genexus-ide-ui/p-e4e7e070.entry.js +1 -0
- package/dist/node_modules/@genexus/gemini/dist/collection/components/form-text/form-text.css +1 -1
- package/dist/node_modules/@genexus/gemini/dist/collection/components/shortcuts/shortcuts.css +366 -0
- package/dist/types/components/ai-assistant/ai-assistant.d.ts +3 -0
- package/dist/types/components/new-environment/new-environment.d.ts +2 -0
- package/package.json +3 -3
- package/dist/cjs/ch-shortcuts.cjs.entry.js +0 -211
- package/dist/genexus-ide-ui/p-0f3c3a5e.entry.js +0 -1
- package/dist/genexus-ide-ui/p-2e7d1eef.entry.js +0 -1
- package/dist/genexus-ide-ui/p-4a8187c1.entry.js +0 -1
- package/dist/genexus-ide-ui/p-72fad9dd.entry.js +0 -1
- package/dist/genexus-ide-ui/p-9f4e169e.entry.js +0 -1
- package/dist/genexus-ide-ui/p-f13a59cc.entry.js +0 -1
|
@@ -6,7 +6,7 @@ Found on /common/helpers.tsx hiChar function is used to add a span/class to ever
|
|
|
6
6
|
*/
|
|
7
7
|
/*--- Messages ---*/
|
|
8
8
|
.message {
|
|
9
|
-
--
|
|
9
|
+
--user-bg-color: #242d36;
|
|
10
10
|
--ai-error-bg-color: #272124;
|
|
11
11
|
--ai-error-border-color: #a3585e;
|
|
12
12
|
--ai-message-error-color: var(--color-error-dark);
|
|
@@ -23,7 +23,7 @@ Found on /common/helpers.tsx hiChar function is used to add a span/class to ever
|
|
|
23
23
|
padding: var(--spacing-comp-01) var(--spacing-comp-02);
|
|
24
24
|
border-radius: var(--border-radius-sm);
|
|
25
25
|
border: var(--border-width-sm) solid transparent;
|
|
26
|
-
background-color: var(--
|
|
26
|
+
background-color: var(--gray-12);
|
|
27
27
|
margin-block-start: var(--spacing-comp-02);
|
|
28
28
|
}
|
|
29
29
|
.message__caption {
|
|
@@ -48,7 +48,7 @@ Found on /common/helpers.tsx hiChar function is used to add a span/class to ever
|
|
|
48
48
|
/* Standard syntax */
|
|
49
49
|
}
|
|
50
50
|
.message--user .message__inner-wrapper {
|
|
51
|
-
background-color: var(--
|
|
51
|
+
background-color: var(--user-bg-color);
|
|
52
52
|
}
|
|
53
53
|
.message--assistant-action .message__inner-wrapper {
|
|
54
54
|
font-style: italic;
|
|
@@ -68,9 +68,6 @@ Found on /common/helpers.tsx hiChar function is used to add a span/class to ever
|
|
|
68
68
|
.message--assistant-in-progress .message__inner-wrapper .animation-wrapper {
|
|
69
69
|
flex: none;
|
|
70
70
|
}
|
|
71
|
-
.message--assistant-chat .message__inner-wrapper, .message--assistant-action .message__inner-wrapper {
|
|
72
|
-
background-color: var(--ai-bg-color);
|
|
73
|
-
}
|
|
74
71
|
.message--assistant-error .message__inner-wrapper {
|
|
75
72
|
background-color: var(--ai-error-bg-color);
|
|
76
73
|
border-color: var(--ai-error-border-color);
|
package/dist/collection/components/new-environment/gx-ide-assets/new-environment/shortcuts.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"selector": "[part~='gxg-button--create']",
|
|
4
|
+
"keyShortcuts": "Enter",
|
|
5
|
+
"action": "click",
|
|
6
|
+
"conditions": {
|
|
7
|
+
"focusExclude": [
|
|
8
|
+
"[part='runtime-environment-local']",
|
|
9
|
+
"[part='runtime-environment-GPC']"
|
|
10
|
+
]
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"selector": "[part~='gxg-button--cancel']",
|
|
15
|
+
"keyShortcuts": "Escape",
|
|
16
|
+
"action": "click",
|
|
17
|
+
"conditions": {
|
|
18
|
+
"focusExclude": "#email"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* STENCIL IMPORTS */
|
|
2
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { Host, h, getAssetPath } from "@stencil/core";
|
|
3
3
|
/* CUSTOM IMPORTS */
|
|
4
4
|
import { Locale } from "../../common/locale";
|
|
5
5
|
import { setInitialComboValue } from "../../common/helpers";
|
|
@@ -11,6 +11,7 @@ export class GxIdeNewEnvironment {
|
|
|
11
11
|
this.renderedFirstTime = false;
|
|
12
12
|
this.selectedFrontEndsIds = [];
|
|
13
13
|
this.envNameModifiedByUser = false;
|
|
14
|
+
this.shortcutsSrc = getAssetPath(`./gx-ide-assets/new-environment/shortcuts.json`);
|
|
14
15
|
// 7.LISTENERS //
|
|
15
16
|
// 8.PUBLIC METHODS API //selectedFrontEndsIds
|
|
16
17
|
// 9.LOCAL METHODS //
|
|
@@ -140,6 +141,9 @@ export class GxIdeNewEnvironment {
|
|
|
140
141
|
return "window-tools/genexus-cloud";
|
|
141
142
|
}
|
|
142
143
|
};
|
|
144
|
+
this.keyDownHandler = (e) => {
|
|
145
|
+
console.log(e);
|
|
146
|
+
};
|
|
143
147
|
// 9.LOCAL METHODS -> Renders //
|
|
144
148
|
this.renderTabBasic = () => {
|
|
145
149
|
{
|
|
@@ -171,6 +175,7 @@ export class GxIdeNewEnvironment {
|
|
|
171
175
|
async componentWillLoad() {
|
|
172
176
|
this._componentLocale = await Locale.getComponentStrings(this.el);
|
|
173
177
|
this.evaluateSelectedRuntimeEnvironmentId();
|
|
178
|
+
console.log("shortcutsSrc", this.shortcutsSrc);
|
|
174
179
|
}
|
|
175
180
|
componentDidLoad() {
|
|
176
181
|
this.initialSetup();
|
|
@@ -183,8 +188,8 @@ export class GxIdeNewEnvironment {
|
|
|
183
188
|
}
|
|
184
189
|
// 10.RENDER() FUNCTION //
|
|
185
190
|
render() {
|
|
186
|
-
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper" }, h("gx-ide-container", { containerTitle: this.displayTitle ? this._componentLocale.componentName : null, noContentPadding: true, noBorderFooter: true, slimmerFooter: config.gxIdeContainer.slimmerFooter }, h("header", { class: "header", slot: "header" }, h("gxg-label", { labelPosition: "start", class: "header__label" }, this._componentLocale.name), h("gxg-form-text", { "label-position": "start", placeholder: "New Environment", "max-width": "100%", value: this.environmentName, ref: (el) => (this.environmentNameEl = el), onInput: !this.envNameModifiedByUser && this.envNameInputHandler, toolTip: config.tooltip, class: "header__text", part: "environment-name" })), h("main", { class: "main" }, h("gxg-tabs", { class: "gxg-tabs" }, this.isAdvanced ? (h("gxg-tab-bar", { slot: "tab-bar-container", displayBorder: true }, h("gxg-tab-button", { slot: "tab-bar", "tab-label": this._componentLocale.tabBasic.tabLabel, tab: "basic", "is-selected": true }), this.isAdvanced ? (h("gxg-tab-button", { slot: "tab-bar", "tab-label": this._componentLocale.tabAdvanced.tabLabel, tab: "advanced", disabled: this.disableAdvanced })) : null)) : null, this.renderTabBasic(), this.isAdvanced && this.renderTabAdvanced())), h("gxg-form-checkbox", { label: this._componentLocale.footer.setAsCurrentEnvironment, ref: (el) => (this.setAsCurrentEnvironmentEl =
|
|
187
|
-
el), checked: this.setAsTarget, part: "set-as-current-environment", slot: "footer-start" }), h("gxg-button", { id: "button-cancel", slot: "footer-end", type: "outlined", onClick: this.cancelButtonClickedHandler, part: "gxg-button gxg-button--cancel" }, this._componentLocale.footer.btnCancel), h("gxg-button", { id: "button-create", slot: "footer-end", type: "primary-text-only", onClick: this.setEnvironmentHandler, part: "gxg-button gxg-button--create" }, this._componentLocale.footer.btnSetNewEnvironment)))));
|
|
191
|
+
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper" }, h("gx-ide-container", { containerTitle: this.displayTitle ? this._componentLocale.componentName : null, noContentPadding: true, noBorderFooter: true, slimmerFooter: config.gxIdeContainer.slimmerFooter }, h("header", { class: "header", slot: "header" }, h("gxg-label", { labelPosition: "start", class: "header__label" }, this._componentLocale.name), h("gxg-form-text", { "label-position": "start", placeholder: "New Environment", "max-width": "100%", value: this.environmentName, ref: (el) => (this.environmentNameEl = el), onInput: !this.envNameModifiedByUser && this.envNameInputHandler, onKeyDown: this.keyDownHandler, toolTip: config.tooltip, class: "header__text", part: "environment-name" })), h("main", { class: "main" }, h("gxg-tabs", { class: "gxg-tabs" }, this.isAdvanced ? (h("gxg-tab-bar", { slot: "tab-bar-container", displayBorder: true }, h("gxg-tab-button", { slot: "tab-bar", "tab-label": this._componentLocale.tabBasic.tabLabel, tab: "basic", "is-selected": true }), this.isAdvanced ? (h("gxg-tab-button", { slot: "tab-bar", "tab-label": this._componentLocale.tabAdvanced.tabLabel, tab: "advanced", disabled: this.disableAdvanced })) : null)) : null, this.renderTabBasic(), this.isAdvanced && this.renderTabAdvanced())), h("gxg-form-checkbox", { label: this._componentLocale.footer.setAsCurrentEnvironment, ref: (el) => (this.setAsCurrentEnvironmentEl =
|
|
192
|
+
el), checked: this.setAsTarget, part: "set-as-current-environment", slot: "footer-start" }), h("gxg-button", { id: "button-cancel", slot: "footer-end", type: "outlined", onClick: this.cancelButtonClickedHandler, part: "gxg-button gxg-button--cancel" }, this._componentLocale.footer.btnCancel), h("gxg-button", { id: "button-create", slot: "footer-end", type: "primary-text-only", onClick: this.setEnvironmentHandler, part: "gxg-button gxg-button--create" }, this._componentLocale.footer.btnSetNewEnvironment))), h("gxg-shortcuts", { src: this.shortcutsSrc })));
|
|
188
193
|
}
|
|
189
194
|
static get is() { return "gx-ide-new-environment"; }
|
|
190
195
|
static get encapsulation() { return "shadow"; }
|
|
@@ -3,7 +3,7 @@ import { h as hiChar } from './helpers2.js';
|
|
|
3
3
|
import { d as defineCustomElement$2 } from './icon.js';
|
|
4
4
|
import { d as defineCustomElement$1 } from './icon2.js';
|
|
5
5
|
|
|
6
|
-
const aiMessageCss = ".message{--
|
|
6
|
+
const aiMessageCss = ".message{--user-bg-color:#242d36;--ai-error-bg-color:#272124;--ai-error-border-color:#a3585e;--ai-message-error-color:var(--color-error-dark);display:grid;grid-template-rows:0fr;transition:grid-template-rows 100ms;transition:grid-template-rows 100ms, -ms-grid-rows 100ms;}.message__outer-wrapper{overflow:hidden}.message__inner-wrapper{padding:var(--spacing-comp-01) var(--spacing-comp-02);border-radius:var(--border-radius-sm);border:var(--border-width-sm) solid transparent;background-color:var(--gray-12);margin-block-start:var(--spacing-comp-02)}.message__caption{font-size:var(--mc-font-size-xxs);line-height:1.6em;position:relative}.message--visible{grid-template-rows:1fr}.message--copying{pointer-events:none}.message--copying span:not(.copied),.message--copying .message__caption{color:transparent;-webkit-user-select:none;-ms-user-select:none;user-select:none;}.message--user .message__inner-wrapper{background-color:var(--user-bg-color)}.message--assistant-action .message__inner-wrapper{font-style:italic}.message--assistant-in-progress .message__inner-wrapper{font-style:italic;display:grid;grid-template-columns:1fr auto;gap:var(--spacing-comp-02)}.message--assistant-in-progress .message__inner-wrapper .message__caption{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}.message--assistant-in-progress .message__inner-wrapper .animation-wrapper{flex:none}.message--assistant-error .message__inner-wrapper{background-color:var(--ai-error-bg-color);border-color:var(--ai-error-border-color)}.message--copyable{cursor:pointer}.message--copyable:hover{filter:brightness(1.2)}.message:last-child{margin-block-end:0}:host(:first-child) .message__inner-wrapper{margin-block-end:0}.animation-wrapper{width:45px;display:flex;align-items:center;justify-content:center}.dot-pulse{position:relative;left:-9999px;width:5px;height:5px;border-radius:2.5px;background-color:var(--gray-03);color:var(--gray-03);box-shadow:9999px 0 0 -5px;animation:dot-pulse 1.5s infinite linear;animation-delay:0.25s}.dot-pulse::before,.dot-pulse::after{content:\"\";display:inline-block;position:absolute;top:0;width:5px;height:5px;border-radius:2.5px;background-color:var(--gray-03);color:var(--gray-03)}.dot-pulse::before{box-shadow:9984px 0 0 -5px;animation:dot-pulse-before 1.5s infinite linear;animation-delay:0s}.dot-pulse::after{box-shadow:10014px 0 0 -5px;animation:dot-pulse-after 1.5s infinite linear;animation-delay:0.5s}@keyframes dot-pulse-before{0%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}60%,100%{box-shadow:9984px 0 0 -5px}}@keyframes dot-pulse{0%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}60%,100%{box-shadow:9999px 0 0 -5px}}@keyframes dot-pulse-after{0%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}60%,100%{box-shadow:10014px 0 0 -5px}}.copied{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--color-on-background);display:flex;gap:var(--spacing-comp-01)}.hiChar{color:var(--gx-ide-hi-char-color);font-weight:600}";
|
|
7
7
|
|
|
8
8
|
const GxIdeAiMessage = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
9
|
constructor() {
|
|
@@ -1,239 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as focusComposedPath } from './helpers.js';
|
|
3
|
-
import { d as defineCustomElement$3 } from './ch-window2.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './ch-window-close2.js';
|
|
5
|
-
|
|
6
|
-
const SHORTCUTS = new Map();
|
|
7
|
-
let LATEST_SHORTCUT;
|
|
8
|
-
function loadShortcuts(name, root, shortcuts) {
|
|
9
|
-
shortcuts.forEach(shortcut => {
|
|
10
|
-
const keyShortcuts = parseKeyShortcuts(shortcut.keyShortcuts);
|
|
11
|
-
keyShortcuts.forEach(keyShortcut => {
|
|
12
|
-
SHORTCUTS.set(normalize(keyShortcut.ctrl, keyShortcut.alt, keyShortcut.shift, keyShortcut.meta, keyShortcut.key), {
|
|
13
|
-
name,
|
|
14
|
-
root,
|
|
15
|
-
shortcut
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
addListener();
|
|
20
|
-
}
|
|
21
|
-
function unloadShortcuts(name) {
|
|
22
|
-
const removeKeyShortcuts = [];
|
|
23
|
-
SHORTCUTS.forEach((shortcutMap, key) => {
|
|
24
|
-
if (shortcutMap.name === name) {
|
|
25
|
-
removeKeyShortcuts.push(key);
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
removeKeyShortcuts.forEach(key => SHORTCUTS.delete(key));
|
|
29
|
-
removeListener();
|
|
30
|
-
}
|
|
31
|
-
function getShortcuts() {
|
|
32
|
-
return Array.from(SHORTCUTS.values())
|
|
33
|
-
.filter(shortcutMap => {
|
|
34
|
-
var _a;
|
|
35
|
-
return !((_a = shortcutMap.shortcut.conditions) === null || _a === void 0 ? void 0 : _a.focusInclude);
|
|
36
|
-
})
|
|
37
|
-
.map(shortcutMap => ({
|
|
38
|
-
element: querySelectorPlus(shortcutMap.shortcut.selector, shortcutMap.root),
|
|
39
|
-
keyShortcuts: shortcutMap.shortcut.keyShortcuts,
|
|
40
|
-
legendPosition: shortcutMap.shortcut.legendPosition
|
|
41
|
-
}));
|
|
42
|
-
}
|
|
43
|
-
function addListener() {
|
|
44
|
-
if (SHORTCUTS.size > 0) {
|
|
45
|
-
window.addEventListener("keydown", keydownHandler, { capture: true });
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
function removeListener() {
|
|
49
|
-
if (SHORTCUTS.size === 0) {
|
|
50
|
-
window.removeEventListener("keydown", keydownHandler, { capture: true });
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
function keydownHandler(eventInfo) {
|
|
54
|
-
var _a;
|
|
55
|
-
if (!eventInfo.repeat ||
|
|
56
|
-
(eventInfo.repeat && ((_a = LATEST_SHORTCUT === null || LATEST_SHORTCUT === void 0 ? void 0 : LATEST_SHORTCUT.shortcut.conditions) === null || _a === void 0 ? void 0 : _a.allowRepeat))) {
|
|
57
|
-
LATEST_SHORTCUT = triggerShortcut(eventInfo);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
function triggerShortcut(eventInfo) {
|
|
61
|
-
const shortcutMap = SHORTCUTS.get(normalize(eventInfo.ctrlKey, eventInfo.altKey, eventInfo.shiftKey, eventInfo.metaKey, eventInfo.key));
|
|
62
|
-
if (shortcutMap && conditions(shortcutMap)) {
|
|
63
|
-
const element = querySelectorPlus(shortcutMap.shortcut.selector, shortcutMap.root);
|
|
64
|
-
if (element) {
|
|
65
|
-
switch (shortcutMap.shortcut.action) {
|
|
66
|
-
case "click":
|
|
67
|
-
element.dispatchEvent(new Event("click"));
|
|
68
|
-
break;
|
|
69
|
-
default:
|
|
70
|
-
element.focus();
|
|
71
|
-
}
|
|
72
|
-
if (shortcutMap.shortcut.preventDefault !== false) {
|
|
73
|
-
eventInfo.preventDefault();
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return shortcutMap;
|
|
78
|
-
}
|
|
79
|
-
function parseKeyShortcuts(value = "") {
|
|
80
|
-
return value.split(" ").map(item => {
|
|
81
|
-
return item.split("+").reduce((keyShortcut, key) => {
|
|
82
|
-
switch (key.toLowerCase()) {
|
|
83
|
-
case "ctrl":
|
|
84
|
-
keyShortcut.ctrl = true;
|
|
85
|
-
break;
|
|
86
|
-
case "alt":
|
|
87
|
-
keyShortcut.alt = true;
|
|
88
|
-
break;
|
|
89
|
-
case "shift":
|
|
90
|
-
keyShortcut.shift = true;
|
|
91
|
-
break;
|
|
92
|
-
case "meta":
|
|
93
|
-
keyShortcut.meta = true;
|
|
94
|
-
break;
|
|
95
|
-
default:
|
|
96
|
-
keyShortcut.key = key;
|
|
97
|
-
}
|
|
98
|
-
return keyShortcut;
|
|
99
|
-
}, {
|
|
100
|
-
ctrl: false,
|
|
101
|
-
alt: false,
|
|
102
|
-
shift: false,
|
|
103
|
-
meta: false,
|
|
104
|
-
key: ""
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
function normalize(ctrl, alt, shift, meta, key) {
|
|
109
|
-
return [
|
|
110
|
-
ctrl ? "Ctrl" : null,
|
|
111
|
-
alt ? "Alt" : null,
|
|
112
|
-
shift ? "Shift" : null,
|
|
113
|
-
meta ? "Meta" : null,
|
|
114
|
-
key ? key.charAt(0).toUpperCase() + key.slice(1) : null
|
|
115
|
-
]
|
|
116
|
-
.filter(element => {
|
|
117
|
-
return element !== null;
|
|
118
|
-
})
|
|
119
|
-
.join("+");
|
|
120
|
-
}
|
|
121
|
-
function conditions(shortcutMap) {
|
|
122
|
-
var _a, _b, _c, _d;
|
|
123
|
-
const focus = focusComposedPath();
|
|
124
|
-
if ((_a = shortcutMap.shortcut.conditions) === null || _a === void 0 ? void 0 : _a.focusInclude) {
|
|
125
|
-
return Array.from(shortcutMap.root.querySelectorAll((_b = shortcutMap.shortcut.conditions) === null || _b === void 0 ? void 0 : _b.focusInclude)).some((el) => focus.includes(el));
|
|
126
|
-
}
|
|
127
|
-
if ((_c = shortcutMap.shortcut.conditions) === null || _c === void 0 ? void 0 : _c.focusExclude) {
|
|
128
|
-
return !Array.from(shortcutMap.root.querySelectorAll((_d = shortcutMap.shortcut.conditions) === null || _d === void 0 ? void 0 : _d.focusExclude)).some((el) => focus.includes(el));
|
|
129
|
-
}
|
|
130
|
-
return true;
|
|
131
|
-
}
|
|
132
|
-
function querySelectorPlus(selector, root) {
|
|
133
|
-
const querySelectorDeep = (element, parts) => {
|
|
134
|
-
const shadow = element.shadowRoot;
|
|
135
|
-
const partList = parts.split(" ");
|
|
136
|
-
const partElement = shadow.querySelector(partList.map(partName => `[part~="${partName}"]`).join(""));
|
|
137
|
-
if (partElement) {
|
|
138
|
-
return partElement;
|
|
139
|
-
}
|
|
140
|
-
const exportPartElement = shadow.querySelector(partList.map(partName => `[exportparts*="${partName}"]`).join(""));
|
|
141
|
-
if (exportPartElement) {
|
|
142
|
-
const exportPartList = [];
|
|
143
|
-
const exportparts = exportPartElement.getAttribute("exportparts");
|
|
144
|
-
partList.forEach(partItem => {
|
|
145
|
-
const exportPartName = exportparts.match(`(?:([\\w-]+):)?(${partItem})`)[1];
|
|
146
|
-
if (exportPartName) {
|
|
147
|
-
exportPartList.push(exportPartName);
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
if (partList.length === exportPartList.length) {
|
|
151
|
-
return querySelectorDeep(exportPartElement, exportPartList.join(" "));
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
return null;
|
|
155
|
-
};
|
|
156
|
-
if (selector.includes("::part")) {
|
|
157
|
-
const selectorItems = selector.match("(.*)::part\\(([^)]+)\\)");
|
|
158
|
-
const entity = selectorItems[1];
|
|
159
|
-
const partName = selectorItems[2];
|
|
160
|
-
return querySelectorDeep(root.querySelector(entity), partName);
|
|
161
|
-
}
|
|
162
|
-
else {
|
|
163
|
-
return root.querySelector(selector);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
const chShortcutsCss = ":host{display:contents}";
|
|
168
|
-
|
|
169
|
-
const ChShortcuts$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
170
|
-
constructor() {
|
|
171
|
-
super();
|
|
172
|
-
this.__registerHost();
|
|
173
|
-
this.__attachShadow();
|
|
174
|
-
this.showShortcuts = false;
|
|
175
|
-
this.showKey = "F10";
|
|
176
|
-
this.windowClosedHandler = () => {
|
|
177
|
-
this.showShortcuts = false;
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
componentDidLoad() {
|
|
181
|
-
if (this.src) {
|
|
182
|
-
fetch(this.src).then(response => {
|
|
183
|
-
if (response.ok) {
|
|
184
|
-
response.json().then(json => {
|
|
185
|
-
const root = this.el.getRootNode();
|
|
186
|
-
loadShortcuts(this.src, root, json);
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
disconnectedCallback() {
|
|
193
|
-
unloadShortcuts(this.src);
|
|
194
|
-
}
|
|
195
|
-
windowKeyDownHandler(eventInfo) {
|
|
196
|
-
if (eventInfo.key === this.showKey) {
|
|
197
|
-
this.showShortcuts = !this.showShortcuts;
|
|
198
|
-
eventInfo.preventDefault();
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
renderShortcuts() {
|
|
202
|
-
return getShortcuts().map(shortcut => (h("ch-window", { container: shortcut.element, modal: false, hidden: false, closeOnEscape: true, closeOnOutsideClick: true, xAlign: "outside-end", yAlign: "inside-start", onWindowClosed: this.windowClosedHandler, exportparts: "mask:element" }, h("span", { part: "tooltip" }, shortcut.keyShortcuts))));
|
|
203
|
-
}
|
|
204
|
-
render() {
|
|
205
|
-
return h(Host, null, this.showShortcuts && this.renderShortcuts());
|
|
206
|
-
}
|
|
207
|
-
get el() { return this; }
|
|
208
|
-
static get style() { return chShortcutsCss; }
|
|
209
|
-
}, [1, "ch-shortcuts", {
|
|
210
|
-
"src": [1],
|
|
211
|
-
"showKey": [1, "show-key"],
|
|
212
|
-
"showShortcuts": [32]
|
|
213
|
-
}, [[10, "keydown", "windowKeyDownHandler"]]]);
|
|
214
|
-
function defineCustomElement$1() {
|
|
215
|
-
if (typeof customElements === "undefined") {
|
|
216
|
-
return;
|
|
217
|
-
}
|
|
218
|
-
const components = ["ch-shortcuts", "ch-window", "ch-window-close"];
|
|
219
|
-
components.forEach(tagName => { switch (tagName) {
|
|
220
|
-
case "ch-shortcuts":
|
|
221
|
-
if (!customElements.get(tagName)) {
|
|
222
|
-
customElements.define(tagName, ChShortcuts$1);
|
|
223
|
-
}
|
|
224
|
-
break;
|
|
225
|
-
case "ch-window":
|
|
226
|
-
if (!customElements.get(tagName)) {
|
|
227
|
-
defineCustomElement$3();
|
|
228
|
-
}
|
|
229
|
-
break;
|
|
230
|
-
case "ch-window-close":
|
|
231
|
-
if (!customElements.get(tagName)) {
|
|
232
|
-
defineCustomElement$2();
|
|
233
|
-
}
|
|
234
|
-
break;
|
|
235
|
-
} });
|
|
236
|
-
}
|
|
1
|
+
import { C as ChShortcuts$1, d as defineCustomElement$1 } from './ch-shortcuts2.js';
|
|
237
2
|
|
|
238
3
|
const ChShortcuts = ChShortcuts$1;
|
|
239
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as focusComposedPath } from './helpers
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { f as focusComposedPath } from './helpers.js';
|
|
3
|
+
import { d as defineCustomElement$2 } from './ch-window2.js';
|
|
4
|
+
import { d as defineCustomElement$1 } from './ch-window-close2.js';
|
|
3
5
|
|
|
4
6
|
const SHORTCUTS = new Map();
|
|
5
7
|
let LATEST_SHORTCUT;
|
|
@@ -164,9 +166,11 @@ function querySelectorPlus(selector, root) {
|
|
|
164
166
|
|
|
165
167
|
const chShortcutsCss = ":host{display:contents}";
|
|
166
168
|
|
|
167
|
-
const ChShortcuts = class {
|
|
168
|
-
constructor(
|
|
169
|
-
|
|
169
|
+
const ChShortcuts = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
170
|
+
constructor() {
|
|
171
|
+
super();
|
|
172
|
+
this.__registerHost();
|
|
173
|
+
this.__attachShadow();
|
|
170
174
|
this.showShortcuts = false;
|
|
171
175
|
this.showKey = "F10";
|
|
172
176
|
this.windowClosedHandler = () => {
|
|
@@ -200,8 +204,35 @@ const ChShortcuts = class {
|
|
|
200
204
|
render() {
|
|
201
205
|
return h(Host, null, this.showShortcuts && this.renderShortcuts());
|
|
202
206
|
}
|
|
203
|
-
get el() { return
|
|
204
|
-
}
|
|
205
|
-
|
|
207
|
+
get el() { return this; }
|
|
208
|
+
static get style() { return chShortcutsCss; }
|
|
209
|
+
}, [1, "ch-shortcuts", {
|
|
210
|
+
"src": [1],
|
|
211
|
+
"showKey": [1, "show-key"],
|
|
212
|
+
"showShortcuts": [32]
|
|
213
|
+
}, [[10, "keydown", "windowKeyDownHandler"]]]);
|
|
214
|
+
function defineCustomElement() {
|
|
215
|
+
if (typeof customElements === "undefined") {
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
const components = ["ch-shortcuts", "ch-window", "ch-window-close"];
|
|
219
|
+
components.forEach(tagName => { switch (tagName) {
|
|
220
|
+
case "ch-shortcuts":
|
|
221
|
+
if (!customElements.get(tagName)) {
|
|
222
|
+
customElements.define(tagName, ChShortcuts);
|
|
223
|
+
}
|
|
224
|
+
break;
|
|
225
|
+
case "ch-window":
|
|
226
|
+
if (!customElements.get(tagName)) {
|
|
227
|
+
defineCustomElement$2();
|
|
228
|
+
}
|
|
229
|
+
break;
|
|
230
|
+
case "ch-window-close":
|
|
231
|
+
if (!customElements.get(tagName)) {
|
|
232
|
+
defineCustomElement$1();
|
|
233
|
+
}
|
|
234
|
+
break;
|
|
235
|
+
} });
|
|
236
|
+
}
|
|
206
237
|
|
|
207
|
-
export { ChShortcuts as
|
|
238
|
+
export { ChShortcuts as C, defineCustomElement as d };
|
|
@@ -8,7 +8,7 @@ import { d as defineCustomElement$3 } from './icon2.js';
|
|
|
8
8
|
import { d as defineCustomElement$2 } from './gxg-label2.js';
|
|
9
9
|
import { d as defineCustomElement$1 } from './tooltip.js';
|
|
10
10
|
|
|
11
|
-
const formTextCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--ui-animaton-speed:0.2s}.gxg-title-01{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em}.gxg-title-01--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-on-primary)}.gxg-title-02{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em}.gxg-title-02--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em;color:var(--color-on-primary)}.gxg-title-03{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-xs);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em}.gxg-title-03--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-xs);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em;color:var(--color-on-primary)}.gxg-title-04{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em}.gxg-title-04--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-on-primary)}.gxg-title-05{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;line-height:1.556em}.gxg-title-05--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;line-height:1.556em;color:var(--color-on-primary)}.gxg-text{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em}.gxg-text--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-on-primary)}.gxg-text--gray{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--gray-05)}.gxg-quote{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;font-style:italic}.gxg-quote--negative{color:var(--color-on-primary)}.gxg-link{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-primary);text-decoration:underline;cursor:pointer;display:inline-block}.gxg-link:hover{color:var(--color-primary-hover)}.gxg-link:active{color:var(--color-primary-active)}.gxg-link-gray{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-primary);text-decoration:underline;cursor:pointer;display:inline-block;color:var(--gray-04)}.gxg-link-gray:hover{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-primary);text-decoration:underline;cursor:pointer;display:inline-block;color:var(--gray-04);color:var(--gray-06)}.gxg-alert-error{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-error-dark);display:inline-block}.gxg-alert-warning{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-warning-dark);display:inline-block}.gxg-alert-success{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-success-dark);display:inline-block}.gxg-tab--disabled{color:var(--color-primary-disabled);pointer-events:none}.gxg-tab--disabled[disabled]{color:var(--color-primary-disabled);pointer-events:none}.gxg-label{font-family:var(--font-family-primary) !important;font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm) !important;letter-spacing:var(--letter-spacing-xs);color:var(--color-primary-enabled);text-align:center;line-height:1.455em}.gxg-label:hover{color:var(--color-primary-hover)}.gxg-label:focus{color:var(--color-primary-active)}.gxg-label:active{color:var(--color-primary-active)}.gxg-label[disabled]{color:var(--color-primary-disabled)}.gxg-label--negative{color:var(--color-on-primary)}.gxg-label--negative[disabled]{color:var(--color-on-disabled)}.gxg-button-styles{font-family:var(--font-family-primary) !important;font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm) !important;letter-spacing:var(--letter-spacing-xs);color:var(--color-primary-enabled);text-align:center;line-height:1.455em}.gxg-scrollbar{cursor:initial}.gxg-scrollbar::-webkit-scrollbar{width:var(--gxg-scrollbar-width, 6px);height:var(--gxg-scrollbar-width, 6px)}.gxg-scrollbar::-webkit-scrollbar-track{background-color:var(--gxg-scrollbar-track-background, --gray-02);border-radius:var(--gxg-scrollbar-track-border-radius, 10px)}.gxg-scrollbar::-webkit-scrollbar-thumb{background-color:var(--gxg-scrollbar-track-thumb-background, --gray-05);border-radius:var(--gxg-scrollbar-track-thumb-radius, 10px);border:var(--gxg-scrollbar-track-thumb-border);background-clip:padding-box}.gxg-scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--gxg-scrollbar-track-thumb-hover-background, --gray-04)}:host(.gxg-validation--warning) .form-element{border-color:var(--color-warning-dark)}:host(.gxg-validation--warning) .form-element:focus{outline-color:var(--color-warning-dark);border-color:var(--color-warning-dark)}:host(.gxg-validation--warning) .form-element:focus+.checkmark{--checkmark-border-color:var(--color-warning-dark)}:host(.gxg-validation--error) .form-element{border-color:var(--color-error-dark)}:host(.gxg-validation--error) .form-element:focus{outline-color:var(--color-error-dark);border-color:var(--color-error-dark)}:host(.gxg-validation--error) .form-element:focus+.checkmark{--checkmark-border-color:var(--color-error-dark)}:host(.gxg-validation--success) .form-element{border-color:var(--color-success-dark)}:host(.gxg-validation--success) .form-element:focus{outline-color:var(--color-success-dark);border-color:var(--color-success-dark)}:host(.gxg-validation--success) .form-element:focus+.checkmark{--checkmark-border-color:var(--color-success-dark)}.tooltip-outer-wrapper{display:grid;grid-template-columns:0fr;transition:grid-template-columns var(--timing-02)}:host(.tooltip--visible) .tooltip-outer-wrapper{grid-template-columns:1fr}.tooltip-inner-wrapper{overflow:hidden;transition:150ms width;width:0}.tooltip-inner-wrapper gxg-icon{display:flex;position:relative !important;top:0 !important;transform:none !important;margin-inline-start:var(--spacing-comp-01)}.tooltip-inner-wrapper--visible{width:24px}.tooltip-inner-wrapper--hidden{display:none}:host(.gxg--disabled) .form-element,:host(.gxg--disabled.form-element){pointer-events:none;background-color:var(--gxg-background-color--disabled) !important;color:var(--gxg-color--disabled) !important;border-color:var(--gxg-border-color--disabled) !important;cursor:default !important}:host{display:flex;flex-direction:column;width:100%}:host .outer-wrapper{position:relative;width:100%}:host .inner-wrapper{display:flex;flex-direction:column;position:relative;flex:1}:host .inner-wrapper gxg-icon{position:absolute}:host(.tooltip) .inner-wrapper{flex-direction:row;align-items:center;justify-content:center}:host(.tooltip) .tooltip-container{width:0;overflow:hidden;transition:width --timing-01}:host(.tooltip--visible) .tooltip-container{width:20px}:host label{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;display:flex;align-items:center;cursor:default}:host label .required{padding-inline-start:2px}:host input{position:relative;width:100%}:host([label-position=start]) .outer-wrapper{display:flex;flex-direction:row}:host input[type=text],:host input[type=password]{border-width:var(--border-width-sm);border-color:var(--gray-02);border-style:var(--border-style-regular);border-radius:var(--border-radius-sm);padding-left:var(--spacing-comp-01);padding-right:var(--spacing-comp-01);color:var(--color-on-background);background-color:var(--color-background);height:var(--gxg-form-text-height);box-sizing:border-box}:host input[type=text]:focus,:host input[type=password]:focus{outline:var(--border-width-md) solid var(--gxg-border-color--focused);outline-offset:-2px}:host input[disabled]{background-color:var(--gray-01);color:var(--color-on-disabled)}:host input[disabled]::-webkit-input-placeholder{color:var(--gray-04)}:host .input--borderless{border-color:transparent !important}:host input[readonly]{cursor:default}:host([minimal]) input[type=text]:not(:focus),:host([minimal]) input[type=password]:not(:focus){border-color:transparent;background-color:transparent}:host([minimal]) input.cursor-inside{border-color:var(--gray-02) !important;background-color:var(--color-background)}:host([minimal]) input[type=text]:focus,:host([minimal]) input[type=password]:focus{border-color:transparent}:host([minimal]:not([icon-position=start])) input[type=text],:host([minimal]:not([icon-position=start])) input[type=password]{padding-inline-start:0}:host([minimal]:not([icon-position=start])) input.cursor-inside{padding-inline-start:var(--spacing-comp-01)}:host([minimal]:not([icon-position=start])) input[type=text]:focus,:host([minimal]:not([icon-position=start])) input[type=password]:focus{padding-inline-start:var(--spacing-comp-01)}:host([minimal][over-dark-background]) input[type=text]:not(:focus),:host([minimal][over-dark-background]) input[type=password]:not(:focus){color:var(--color-on-primary)}:host gxg-icon{top:50%;transform:translateY(-50%)}:host([icon-position=end]) .clear-button gxg-icon:not(.clear-button){right:16px}:host(.has-icon[icon-position=start]) input{padding-inline-start:20px}:host([icon-position=end]) input{padding-inline-end:20px}:host([icon-position=end]) .inner-wrapper{flex-direction:row-reverse}:host gxg-icon.clear-button{left:auto;opacity:0.5;cursor:pointer}:host gxg-icon.clear-button:hover{opacity:1}:host([clear-button][icon-position=end]) gxg-icon:not(.clear-button){right:16px}:host([clear-button][icon-position=end]) input{padding-inline-end:36px}.custom-icon:has(+.clear-button){}.messages-wrapper{margin-top:var(--spacing-comp-02);display:flex;gap:var(--spacing-comp-01);flex-direction:column}:host([text-style=regular]) input{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em}:host([text-style=quote]) input{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;font-style:italic}:host([text-style=title-01]) input{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em}:host([text-style=title-02]) input{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em}:host([text-style=title-03]) input{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-xs);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em}:host([text-style=title-04]) input{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em}:host([text-style=title-05]) input{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;line-height:1.556em}:host(.file) .input{user-select:none;cursor:pointer}:host(.rtl[icon-position=start]) gxg-icon{right:0;left:auto}:host(.rtl[icon-position=end]) gxg-icon{right:auto;left:0}:host(.large) label{font-size:var(--font-size-lg)}:host(.large) input{font-size:var(--font-size-lg)}:host(.large) input[type=text],:host(.large) input[type=password]{padding-left:7px;padding-right:7px}:host(.large.has-icon[icon-position=start]) input{padding-inline-start:var(--spacing-comp-05)}:host(.large.has-icon[icon-position=start]) input .inner-wrapper gxg-icon{left:2px}:host(.large[icon-position=end]) input{padding-inline-end:var(--spacing-comp-05)}:host(.large[icon-position=start]) .inner-wrapper gxg-icon{left:2px}:host(.large[icon-position=end]) .inner-wrapper gxg-icon{right:4px;left:auto}:host(.large) gxg-icon.clear-button{right:5px !important;left:auto !important}:host(.large[icon-position=end][clear-button]) .inner-wrapper gxg-icon{right:26px}:host(.large.has-icon[icon-position=start][clear-button]) input{padding-inline-end:26px}:host(.large[icon-position=end][clear-button]) input{padding-inline-end:48px}";
|
|
11
|
+
const formTextCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--ui-animaton-speed:0.2s}.gxg-title-01{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em}.gxg-title-01--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-on-primary)}.gxg-title-02{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em}.gxg-title-02--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em;color:var(--color-on-primary)}.gxg-title-03{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-xs);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em}.gxg-title-03--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-xs);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em;color:var(--color-on-primary)}.gxg-title-04{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em}.gxg-title-04--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-on-primary)}.gxg-title-05{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;line-height:1.556em}.gxg-title-05--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;line-height:1.556em;color:var(--color-on-primary)}.gxg-text{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em}.gxg-text--negative{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-on-primary)}.gxg-text--gray{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--gray-05)}.gxg-quote{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;font-style:italic}.gxg-quote--negative{color:var(--color-on-primary)}.gxg-link{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-primary);text-decoration:underline;cursor:pointer;display:inline-block}.gxg-link:hover{color:var(--color-primary-hover)}.gxg-link:active{color:var(--color-primary-active)}.gxg-link-gray{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-primary);text-decoration:underline;cursor:pointer;display:inline-block;color:var(--gray-04)}.gxg-link-gray:hover{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-primary);text-decoration:underline;cursor:pointer;display:inline-block;color:var(--gray-04);color:var(--gray-06)}.gxg-alert-error{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-error-dark);display:inline-block}.gxg-alert-warning{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-warning-dark);display:inline-block}.gxg-alert-success{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;color:var(--color-success-dark);display:inline-block}.gxg-tab--disabled{color:var(--color-primary-disabled);pointer-events:none}.gxg-tab--disabled[disabled]{color:var(--color-primary-disabled);pointer-events:none}.gxg-label{font-family:var(--font-family-primary) !important;font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm) !important;letter-spacing:var(--letter-spacing-xs);color:var(--color-primary-enabled);text-align:center;line-height:1.455em}.gxg-label:hover{color:var(--color-primary-hover)}.gxg-label:focus{color:var(--color-primary-active)}.gxg-label:active{color:var(--color-primary-active)}.gxg-label[disabled]{color:var(--color-primary-disabled)}.gxg-label--negative{color:var(--color-on-primary)}.gxg-label--negative[disabled]{color:var(--color-on-disabled)}.gxg-button-styles{font-family:var(--font-family-primary) !important;font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm) !important;letter-spacing:var(--letter-spacing-xs);color:var(--color-primary-enabled);text-align:center;line-height:1.455em}.gxg-scrollbar{cursor:initial}.gxg-scrollbar::-webkit-scrollbar{width:var(--gxg-scrollbar-width, 6px);height:var(--gxg-scrollbar-width, 6px)}.gxg-scrollbar::-webkit-scrollbar-track{background-color:var(--gxg-scrollbar-track-background, --gray-02);border-radius:var(--gxg-scrollbar-track-border-radius, 10px)}.gxg-scrollbar::-webkit-scrollbar-thumb{background-color:var(--gxg-scrollbar-track-thumb-background, --gray-05);border-radius:var(--gxg-scrollbar-track-thumb-radius, 10px);border:var(--gxg-scrollbar-track-thumb-border);background-clip:padding-box}.gxg-scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--gxg-scrollbar-track-thumb-hover-background, --gray-04)}:host(.gxg-validation--warning) .form-element{border-color:var(--color-warning-dark)}:host(.gxg-validation--warning) .form-element:focus{outline-color:var(--color-warning-dark);border-color:var(--color-warning-dark)}:host(.gxg-validation--warning) .form-element:focus+.checkmark{--checkmark-border-color:var(--color-warning-dark)}:host(.gxg-validation--error) .form-element{border-color:var(--color-error-dark)}:host(.gxg-validation--error) .form-element:focus{outline-color:var(--color-error-dark);border-color:var(--color-error-dark)}:host(.gxg-validation--error) .form-element:focus+.checkmark{--checkmark-border-color:var(--color-error-dark)}:host(.gxg-validation--success) .form-element{border-color:var(--color-success-dark)}:host(.gxg-validation--success) .form-element:focus{outline-color:var(--color-success-dark);border-color:var(--color-success-dark)}:host(.gxg-validation--success) .form-element:focus+.checkmark{--checkmark-border-color:var(--color-success-dark)}.tooltip-outer-wrapper{display:grid;grid-template-columns:0fr;transition:grid-template-columns var(--timing-02)}:host(.tooltip--visible) .tooltip-outer-wrapper{grid-template-columns:1fr}.tooltip-inner-wrapper{overflow:hidden;transition:150ms width;width:0}.tooltip-inner-wrapper gxg-icon{display:flex;position:relative !important;top:0 !important;transform:none !important;margin-inline-start:var(--spacing-comp-01)}.tooltip-inner-wrapper--visible{width:24px}.tooltip-inner-wrapper--hidden{display:none}:host(.gxg--disabled) .form-element,:host(.gxg--disabled.form-element){pointer-events:none;background-color:var(--gxg-background-color--disabled) !important;color:var(--gxg-color--disabled) !important;border-color:var(--gxg-border-color--disabled) !important;cursor:default !important}:host{display:flex;flex-direction:column;width:100%}:host .outer-wrapper{position:relative;width:100%}:host .inner-wrapper{display:flex;flex-direction:column;position:relative;flex:1}:host .inner-wrapper gxg-icon{position:absolute}:host(.tooltip) .inner-wrapper{flex-direction:row;align-items:center;justify-content:center}:host(.tooltip) .tooltip-container{width:0;overflow:hidden;transition:width --timing-01}:host(.tooltip--visible) .tooltip-container{width:20px}:host label{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;display:flex;align-items:center;cursor:default}:host label .required{padding-inline-start:2px}:host input{position:relative;width:100%}:host([label-position=start]) .outer-wrapper{display:flex;flex-direction:row}:host input[type=text],:host input[type=password]{border-width:var(--border-width-sm);border-color:var(--gray-02);border-style:var(--border-style-regular);border-radius:var(--border-radius-sm);padding-left:var(--spacing-comp-01);padding-right:var(--spacing-comp-01);color:var(--color-on-background);background-color:var(--color-background);height:var(--gxg-form-text-height);box-sizing:border-box}:host input[type=text]:focus,:host input[type=password]:focus{outline:var(--border-width-md) solid var(--gxg-border-color--focused);outline-offset:-2px}:host input[disabled]{background-color:var(--gray-01);color:var(--color-on-disabled)}:host input[disabled]::-webkit-input-placeholder{color:var(--gray-04)}:host .input--borderless{border-color:transparent !important}:host input[readonly]{cursor:default}:host([minimal]) input[type=text]:not(:focus),:host([minimal]) input[type=password]:not(:focus){border-color:transparent;background-color:transparent}:host([minimal]) input.cursor-inside{border-color:var(--gray-02) !important;background-color:var(--color-background)}:host([minimal]) input[type=text]:focus,:host([minimal]) input[type=password]:focus{border-color:transparent}:host([minimal]:not([icon-position=start])) input[type=text],:host([minimal]:not([icon-position=start])) input[type=password]{padding-inline-start:0}:host([minimal]:not([icon-position=start])) input.cursor-inside{padding-inline-start:var(--spacing-comp-01)}:host([minimal]:not([icon-position=start])) input[type=text]:focus,:host([minimal]:not([icon-position=start])) input[type=password]:focus{padding-inline-start:var(--spacing-comp-01)}:host([minimal][over-dark-background]) input[type=text]:not(:focus),:host([minimal][over-dark-background]) input[type=password]:not(:focus){color:var(--color-on-primary)}:host gxg-icon{top:50%;transform:translateY(-50%)}:host([icon-position=end]) .clear-button gxg-icon:not(.clear-button){right:16px}:host(.has-icon[icon-position=start]) input{padding-inline-start:20px}:host([icon-position=end]) input{padding-inline-end:20px}:host([icon-position=end]) .inner-wrapper{flex-direction:row-reverse}:host gxg-icon.clear-button{left:auto;opacity:0.5;cursor:pointer}:host gxg-icon.clear-button:hover{opacity:1}:host([clear-button][icon-position=end]) gxg-icon:not(.clear-button){right:16px}:host([clear-button][icon-position=end]) input{padding-inline-end:36px}.custom-icon:has(+.clear-button){}.messages-wrapper{margin-top:var(--spacing-comp-02);display:flex;gap:var(--spacing-comp-01);flex-direction:column}:host([text-style=regular]) input{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em}:host([text-style=quote]) input{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-xs);color:var(--color-on-background);text-align:start;line-height:1.455em;font-style:italic}:host([text-style=title-01]) input{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em}:host([text-style=title-02]) input{font-family:var(--font-family-primary);font-weight:var(--font-weight-bold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em}:host([text-style=title-03]) input{font-family:var(--font-family-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-xs);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;text-transform:uppercase;line-height:1.556em}:host([text-style=title-04]) input{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-md);letter-spacing:var(--letter-spacing-md);color:var(--color-on-background);text-align:start;line-height:1.455em}:host([text-style=title-05]) input{font-family:var(--font-family-primary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);letter-spacing:var(--letter-spacing-sm);color:var(--color-on-background);text-align:start;line-height:1.556em}:host(.file) .form-element--readonly{user-select:none;cursor:pointer}:host(.rtl[icon-position=start]) gxg-icon{right:0;left:auto}:host(.rtl[icon-position=end]) gxg-icon{right:auto;left:0}:host(.large) label{font-size:var(--font-size-lg)}:host(.large) input{font-size:var(--font-size-lg)}:host(.large) input[type=text],:host(.large) input[type=password]{padding-left:7px;padding-right:7px}:host(.large.has-icon[icon-position=start]) input{padding-inline-start:var(--spacing-comp-05)}:host(.large.has-icon[icon-position=start]) input .inner-wrapper gxg-icon{left:2px}:host(.large[icon-position=end]) input{padding-inline-end:var(--spacing-comp-05)}:host(.large[icon-position=start]) .inner-wrapper gxg-icon{left:2px}:host(.large[icon-position=end]) .inner-wrapper gxg-icon{right:4px;left:auto}:host(.large) gxg-icon.clear-button{right:5px !important;left:auto !important}:host(.large[icon-position=end][clear-button]) .inner-wrapper gxg-icon{right:26px}:host(.large.has-icon[icon-position=start][clear-button]) input{padding-inline-end:26px}:host(.large[icon-position=end][clear-button]) input{padding-inline-end:48px}";
|
|
12
12
|
|
|
13
13
|
const GxgFormText = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
14
14
|
constructor() {
|
|
@@ -156,9 +156,6 @@ const GxgFormText = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
156
156
|
this.centerLabel = true;
|
|
157
157
|
}
|
|
158
158
|
};
|
|
159
|
-
this.handleClick = () => {
|
|
160
|
-
this.openFile();
|
|
161
|
-
};
|
|
162
159
|
this.handleKeyDown = (e) => {
|
|
163
160
|
if (e.key === "Enter" && this.type === "file") {
|
|
164
161
|
this.textInput.click();
|
|
@@ -402,12 +399,13 @@ const GxgFormText = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
402
399
|
} }, h("input", { part: this.parts.input, type: this.evaluateType(), value: this.value, class: {
|
|
403
400
|
input: true,
|
|
404
401
|
"form-element": true,
|
|
402
|
+
"form-element--readonly": this.readonly,
|
|
405
403
|
"cursor-inside": this.cursorInside,
|
|
406
404
|
"clear-button": this.clearButton === true,
|
|
407
405
|
"custom-icon": this.icon,
|
|
408
406
|
"custom-icon--end": this.iconPosition === "end",
|
|
409
407
|
"input--borderless": this.borderless,
|
|
410
|
-
}, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly
|
|
408
|
+
}, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly , onClick: this.type === "file" && this.readonly && this.openFile, onInput: this.handleInput.bind(this), onKeyDown: this.handleKeyDown, onChange: this.handleChange.bind(this), onFocus: this.onFocusHandler.bind(this), required: this.required, onMouseEnter: this.mouseEnterHandler.bind(this), onMouseOut: this.mouseOutHandler.bind(this), ref: (el) => (this.textInput = el), maxLength: this.maxLength ? parseInt(this.maxLength) : null, minLength: this.minLength ? parseInt(this.minLength) : null }), this.inputIcon(), this.clearButton ? (h("gxg-icon", { class: "clear-button", type: "gemini-tools/close", size: this.iconSize(), color: "onbackground", onClick: this.clearButtonFunc.bind(this) })) : null, this.toolTip ? formTooltipLogic(this, this.hideTooltip) : null, this.labelPosition === "start" && !this.toolTip
|
|
411
409
|
? formMessageLogic(this)
|
|
412
410
|
: null, this.renderInputFile())), this.labelPosition === "above" && !this.toolTip
|
|
413
411
|
? formMessageLogic(this)
|