@genexus/genexus-ide-ui 0.0.77 → 0.0.79
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/{common-2100f35f.js → common-fbd24d42.js} +1 -1
- package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/gx-ide-bpm-app-declaration.cjs.entry.js +4 -2
- package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js +3 -2
- package/dist/cjs/gx-ide-kb-manager-export.cjs.entry.js +3 -0
- package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js +3 -0
- package/dist/cjs/gx-ide-new-environment.cjs.entry.js +10 -4
- package/dist/cjs/gx-ide-new-kb.cjs.entry.js +4 -2
- package/dist/cjs/gx-ide-new-object.cjs.entry.js +5 -4
- package/dist/cjs/gx-ide-object-selector.cjs.entry.js +3 -2
- package/dist/cjs/gx-ide-references.cjs.entry.js +6 -2
- package/dist/cjs/gx-ide-share-kb.cjs.entry.js +6 -2
- package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +1 -0
- package/dist/cjs/gx-ide-team-dev-select-recent-comment.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-team-dev-update-partial-selection.cjs.entry.js +2 -1
- package/dist/cjs/gx-ide-team-dev-update-to-revision.cjs.entry.js +3 -1
- package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +1 -0
- package/dist/cjs/gx-ide-ww-images.cjs.entry.js +2 -1
- package/dist/cjs/gxg-combo-box_2.cjs.entry.js +8 -1
- package/dist/cjs/gxg-form-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/gxg-form-radio-group.cjs.entry.js +2 -6
- package/dist/cjs/gxg-form-radio.cjs.entry.js +3 -3
- package/dist/cjs/gxg-form-text.cjs.entry.js +3 -5
- package/dist/cjs/gxg-list-box_2.cjs.entry.js +1 -2
- 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/common/common.js +1 -1
- package/dist/collection/components/bpm-application-declaration/bpm-app-declaration.js +5 -3
- package/dist/collection/components/bpm-application-declaration/gx-ide-assets/bpm-app-declaration/shortcuts.json +20 -0
- package/dist/collection/components/create-kb-from-server/create-kb-from-server.js +3 -2
- package/dist/collection/components/create-kb-from-server/gx-ide-assets/create-kb-from-server/shortcuts.json +7 -0
- package/dist/collection/components/kb-manager-export/kb-manager-export.js +3 -0
- package/dist/collection/components/kb-manager-import/kb-manager-import.js +3 -0
- package/dist/collection/components/new-environment/gx-ide-assets/new-environment/shortcuts.json +18 -0
- package/dist/collection/components/new-environment/new-environment.js +10 -4
- package/dist/collection/components/new-kb/gx-ide-assets/new-kb/shortcuts.json +18 -0
- package/dist/collection/components/new-kb/new-kb.js +4 -2
- package/dist/collection/components/new-object/gx-ide-assets/new-object/shortcuts.json +18 -0
- package/dist/collection/components/new-object/new-object.js +6 -5
- package/dist/collection/components/object-selector/gx-ide-assets/object-selector/shortcuts.json +15 -0
- package/dist/collection/components/object-selector/object-selector.js +4 -3
- package/dist/collection/components/references/gx-ide-assets/references/shortcuts.json +15 -0
- package/dist/collection/components/references/references.js +7 -3
- package/dist/collection/components/share-kb/gx-ide-assets/share-kb/shortcuts.json +7 -0
- package/dist/collection/components/share-kb/share-kb.js +6 -2
- package/dist/collection/components/team-dev/commit/commit.js +1 -0
- package/dist/collection/components/team-dev/select-recent-comment/gx-ide-assets/team-dev-select-recent-comment/langs/team-dev-select-recent-comment.lang.en.json +5 -0
- package/dist/collection/components/team-dev/select-recent-comment/gx-ide-assets/team-dev-select-recent-comment/langs/team-dev-select-recent-comment.lang.ja.json +3 -0
- package/dist/collection/components/team-dev/select-recent-comment/gx-ide-assets/team-dev-select-recent-comment/langs/team-dev-select-recent-comment.lang.zh.json +3 -0
- package/dist/collection/components/team-dev/select-recent-comment/select-recent-comment.js +1 -1
- package/dist/collection/components/team-dev/update/update.js +1 -0
- package/dist/collection/components/team-dev/update-partial-selection/gx-ide-assets/team-dev-update-partial-selection/shortcuts.json +15 -0
- package/dist/collection/components/team-dev/update-partial-selection/update-partial-selection.js +3 -2
- package/dist/collection/components/team-dev/update-to-revision/gx-ide-assets/team-dev-update-to-revision/shortcuts.json +15 -0
- package/dist/collection/components/team-dev/update-to-revision/update-to-revision.js +4 -2
- package/dist/collection/components/ww-images/ww-images.js +1 -0
- package/dist/components/ch-shortcuts.js +1 -236
- package/dist/{esm/ch-shortcuts.entry.js → components/ch-shortcuts2.js} +40 -9
- package/dist/components/combo-box.js +9 -1
- package/dist/components/common.js +1 -1
- package/dist/components/form-checkbox.js +1 -1
- package/dist/components/form-radio-group.js +2 -6
- package/dist/components/form-radio.js +3 -3
- package/dist/components/form-text.js +3 -5
- package/dist/components/gx-ide-bpm-app-declaration.js +61 -47
- package/dist/components/gx-ide-create-kb-from-server.js +53 -28
- package/dist/components/gx-ide-kb-manager-export.js +3 -0
- package/dist/components/gx-ide-kb-manager-import.js +3 -0
- package/dist/components/gx-ide-new-environment.js +60 -30
- package/dist/components/gx-ide-new-kb.js +52 -26
- package/dist/components/gx-ide-new-object.js +52 -27
- package/dist/components/gx-ide-object-selector.js +60 -47
- package/dist/components/gx-ide-references.js +51 -35
- package/dist/components/gx-ide-share-kb.js +52 -24
- package/dist/components/gx-ide-team-dev-commit.js +1 -0
- package/dist/components/gx-ide-team-dev-select-recent-comment.js +1 -1
- package/dist/components/gx-ide-team-dev-update-partial-selection.js +45 -32
- package/dist/components/gx-ide-team-dev-update-to-revision.js +46 -20
- package/dist/components/gx-ide-team-dev-update.js +1 -0
- package/dist/components/gx-ide-ww-images.js +1 -0
- 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/list-box.js +1 -2
- package/dist/components/shortcuts.js +58 -0
- package/dist/esm/ch-shortcuts_2.entry.js +225 -0
- package/dist/esm/{common-202491f0.js → common-3bda62ed.js} +1 -1
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-bpm-app-declaration.entry.js +5 -3
- package/dist/esm/gx-ide-create-kb-from-server.entry.js +4 -3
- package/dist/esm/gx-ide-kb-manager-export.entry.js +3 -0
- package/dist/esm/gx-ide-kb-manager-import.entry.js +3 -0
- package/dist/esm/gx-ide-new-environment.entry.js +11 -5
- package/dist/esm/gx-ide-new-kb.entry.js +5 -3
- package/dist/esm/gx-ide-new-object.entry.js +6 -5
- package/dist/esm/gx-ide-object-selector.entry.js +4 -3
- package/dist/esm/gx-ide-references.entry.js +7 -3
- package/dist/esm/gx-ide-share-kb.entry.js +7 -3
- package/dist/esm/gx-ide-team-dev-commit.entry.js +1 -0
- package/dist/esm/gx-ide-team-dev-select-recent-comment.entry.js +1 -1
- package/dist/esm/gx-ide-team-dev-update-partial-selection.entry.js +3 -2
- package/dist/esm/gx-ide-team-dev-update-to-revision.entry.js +4 -2
- package/dist/esm/gx-ide-team-dev-update.entry.js +1 -0
- package/dist/esm/gx-ide-ww-images.entry.js +2 -1
- package/dist/esm/gxg-combo-box_2.entry.js +8 -1
- package/dist/esm/gxg-form-checkbox.entry.js +1 -1
- package/dist/esm/gxg-form-radio-group.entry.js +2 -6
- package/dist/esm/gxg-form-radio.entry.js +3 -3
- package/dist/esm/gxg-form-text.entry.js +3 -5
- package/dist/esm/gxg-list-box_2.entry.js +1 -2
- 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/bpm-app-declaration/shortcuts.json +20 -0
- package/dist/genexus-ide-ui/gx-ide-assets/create-kb-from-server/shortcuts.json +7 -0
- package/dist/genexus-ide-ui/gx-ide-assets/new-environment/shortcuts.json +18 -0
- package/dist/genexus-ide-ui/gx-ide-assets/new-kb/shortcuts.json +18 -0
- package/dist/genexus-ide-ui/gx-ide-assets/new-object/shortcuts.json +18 -0
- package/dist/genexus-ide-ui/gx-ide-assets/object-selector/shortcuts.json +15 -0
- package/dist/genexus-ide-ui/gx-ide-assets/references/shortcuts.json +15 -0
- package/dist/genexus-ide-ui/gx-ide-assets/share-kb/shortcuts.json +7 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-select-recent-comment/langs/team-dev-select-recent-comment.lang.en.json +5 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-select-recent-comment/langs/team-dev-select-recent-comment.lang.ja.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-select-recent-comment/langs/team-dev-select-recent-comment.lang.zh.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-partial-selection/shortcuts.json +15 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-to-revision/shortcuts.json +15 -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-2753da85.entry.js +1 -0
- package/dist/genexus-ide-ui/p-2d77e2a3.entry.js +1 -0
- package/dist/genexus-ide-ui/p-36d5d83b.entry.js +1 -0
- package/dist/genexus-ide-ui/p-377d7066.entry.js +1 -0
- package/dist/genexus-ide-ui/p-4772d5ae.entry.js +1 -0
- package/dist/genexus-ide-ui/p-4e2db053.entry.js +1 -0
- package/dist/genexus-ide-ui/{p-1b1fd856.entry.js → p-56627675.entry.js} +1 -1
- package/dist/genexus-ide-ui/p-59b366c2.entry.js +1 -0
- package/dist/genexus-ide-ui/p-626bf7ad.entry.js +1 -0
- package/dist/genexus-ide-ui/{p-33961b41.entry.js → p-6c59cca0.entry.js} +1 -1
- package/dist/genexus-ide-ui/p-7aabd69b.entry.js +1 -0
- package/dist/genexus-ide-ui/p-9596d186.entry.js +1 -0
- package/dist/genexus-ide-ui/p-96e00630.entry.js +1 -0
- package/dist/genexus-ide-ui/p-a52333fe.js +1 -0
- package/dist/genexus-ide-ui/p-b141f6e4.entry.js +1 -0
- package/dist/genexus-ide-ui/{p-5e50df3c.entry.js → p-b456e3aa.entry.js} +1 -1
- package/dist/genexus-ide-ui/p-b5fb3c0b.entry.js +1 -0
- package/dist/genexus-ide-ui/p-bc9446a0.entry.js +1 -0
- package/dist/genexus-ide-ui/p-cf6646a4.entry.js +1 -0
- package/dist/genexus-ide-ui/p-db7d339f.entry.js +1 -0
- package/dist/genexus-ide-ui/p-e34c90b6.entry.js +1 -0
- package/dist/genexus-ide-ui/p-fcb44a8c.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/bpm-application-declaration/bpm-app-declaration.d.ts +1 -0
- package/dist/types/components/create-kb-from-server/create-kb-from-server.d.ts +1 -0
- package/dist/types/components/kb-manager-export/kb-manager-export.d.ts +1 -0
- package/dist/types/components/kb-manager-import/kb-manager-import.d.ts +1 -0
- package/dist/types/components/new-environment/new-environment.d.ts +2 -0
- package/dist/types/components/new-kb/new-kb.d.ts +1 -0
- package/dist/types/components/new-object/new-object.d.ts +2 -1
- package/dist/types/components/object-selector/object-selector.d.ts +2 -1
- package/dist/types/components/references/references.d.ts +3 -0
- package/dist/types/components/share-kb/share-kb.d.ts +2 -0
- package/dist/types/components/team-dev/update-partial-selection/update-partial-selection.d.ts +1 -0
- package/dist/types/components/team-dev/update-to-revision/update-to-revision.d.ts +1 -0
- package/package.json +3 -3
- package/dist/cjs/ch-shortcuts.cjs.entry.js +0 -211
- package/dist/genexus-ide-ui/p-11fa1c83.entry.js +0 -1
- package/dist/genexus-ide-ui/p-1da59907.entry.js +0 -1
- package/dist/genexus-ide-ui/p-2b6a3afa.entry.js +0 -1
- package/dist/genexus-ide-ui/p-2e7d1eef.entry.js +0 -1
- package/dist/genexus-ide-ui/p-3d4722f2.entry.js +0 -1
- package/dist/genexus-ide-ui/p-6bb17c51.js +0 -1
- package/dist/genexus-ide-ui/p-711613dc.entry.js +0 -1
- package/dist/genexus-ide-ui/p-72fad9dd.entry.js +0 -1
- package/dist/genexus-ide-ui/p-8edc2bbc.entry.js +0 -1
- package/dist/genexus-ide-ui/p-92a4add2.entry.js +0 -1
- package/dist/genexus-ide-ui/p-9a15e22e.entry.js +0 -1
- package/dist/genexus-ide-ui/p-9ad85778.entry.js +0 -1
- package/dist/genexus-ide-ui/p-9f4e169e.entry.js +0 -1
- package/dist/genexus-ide-ui/p-a43dc4e7.entry.js +0 -1
- package/dist/genexus-ide-ui/p-abfa88ed.entry.js +0 -1
- package/dist/genexus-ide-ui/p-b34d258d.entry.js +0 -1
- package/dist/genexus-ide-ui/p-ba31a49e.entry.js +0 -1
- package/dist/genexus-ide-ui/p-baffd9b1.entry.js +0 -1
- package/dist/genexus-ide-ui/p-d2aca59f.entry.js +0 -1
- package/dist/genexus-ide-ui/p-d664fa18.entry.js +0 -1
- package/dist/genexus-ide-ui/p-f13a59cc.entry.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0aa3977d.js';
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getAssetPath, h, H as Host, g as getElement } from './index-0aa3977d.js';
|
|
2
2
|
import { L as Locale } from './locale-e183487a.js';
|
|
3
3
|
import { c as config } from './config-2fae16a2.js';
|
|
4
|
-
import { g as getSelectedGxOption, r as renderFormItems } from './common-
|
|
4
|
+
import { g as getSelectedGxOption, r as renderFormItems } from './common-3bda62ed.js';
|
|
5
5
|
import { f as formSubmitValidation } from './form-validation-09bd4504.js';
|
|
6
6
|
|
|
7
7
|
const newKbCss = "/*Gemini*/\n/*Gx Ide*/\n/*@container queries*/\n/* hiChar styles\nFound on /common/helpers.tsx hiChar function is used to add a span/class to every character that matches a search value. It is used to help the user see why the filter results are filtered. The span/class on the characters are useless without proper styling.\n*/\n/* Helper Classes */\n.gxi-hidden {\n display: none !important;\n}\n\n.gxi-full-height {\n height: 100%;\n}\n\n.gxi-overflow-auto {\n overflow: auto;\n}\n\n.gxi-display-flex {\n display: flex;\n}\n\n.align-start {\n display: flex;\n align-items: start;\n}\n\n.align-center {\n display: flex;\n align-items: center;\n}\n\n.align-end {\n display: flex;\n align-items: end;\n}\n\n.overflow-auto {\n overflow: auto;\n}\n\n/* Grids */\n.grid {\n display: grid;\n grid-row-gap: var(--gx-ide-grid-row-gap);\n grid-column-gap: var(--gx-ide-grid-column-gap);\n grid-template-rows: auto;\n}\n\nch-grid-cell {\n display: flex;\n}\n\nch-grid {\n overflow: auto;\n height: 100%;\n}\n\nch-grid-column {\n /*to be removed when this works inside a component with shadow: true*/\n z-index: 99;\n border-bottom: 1px solid var(--gray-01);\n}\n\nch-grid-column:first-child {\n padding-inline-start: var(--gxg-container--padding) !important;\n}\n\nch-grid-column:last-child {\n padding-inline-end: var(--gxg-container--padding) !important;\n}\n\nch-grid-cell {\n --spacing-comp-02: var(--gxg-container--padding);\n}\n\n/*Gxg Tabs*/\ngxg-tabs {\n box-shadow: none;\n}\n\n/*All components Host should have this class set. !important is set on every rule, since this styles could be overridden by the host user, since they are applied on the host component*/\n:host(.gx-ide-component) {\n box-shadow: var(--box-shadow-01) !important;\n height: 100% !important;\n display: flex !important;\n flex-direction: column !important;\n}\n\n/*stylize the top bar*/\n:host(:focus-within) gx-ide-top-bar::part(wrapper) {\n background-color: var(--color-secondary-enabled);\n}\n\n/* Main wrapper (should be the first element inside the host. Everything should be inside .gx-ide-main-wrapper) */\n.gx-ide-main-wrapper {\n color: var(--gx-ide-component-text-color);\n font-weight: var(--font-weight-regular);\n font-size: var(--font-size-lg);\n font-family: var(--font-family-primary);\n line-height: 1.6em;\n height: 100%;\n background-color: var(--gx-ide-component-background-color);\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n box-sizing: border-box;\n}\n\n/*This is the main element. This is the one that take the remaining vertical space*/\n.gx-ide-main {\n flex-grow: 1;\n overflow-y: auto;\n /* Track */\n /* Handle */\n /* Handle on hover */\n}\n.gx-ide-main::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n}\n.gx-ide-main::-webkit-scrollbar-track {\n background-color: var(--gray-02);\n border-radius: 10px;\n}\n.gx-ide-main::-webkit-scrollbar-thumb {\n background: var(--gray-05);\n border-radius: 10px;\n}\n.gx-ide-main::-webkit-scrollbar-thumb:hover {\n background: var(--gray-04);\n cursor: pointer;\n}\n.gx-ide-main .gxg-scroll {\n display: block;\n overflow-y: auto;\n padding-inline-end: 2px;\n}\n\n.gx-ide-overflow {\n overflow-y: auto;\n /* Track */\n /* Handle */\n /* Handle on hover */\n}\n.gx-ide-overflow::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n}\n.gx-ide-overflow::-webkit-scrollbar-track {\n background-color: var(--gray-02);\n border-radius: 10px;\n}\n.gx-ide-overflow::-webkit-scrollbar-thumb {\n background: var(--gray-05);\n border-radius: 10px;\n}\n.gx-ide-overflow::-webkit-scrollbar-thumb:hover {\n background: var(--gray-04);\n cursor: pointer;\n}\n.gx-ide-overflow .gxg-scroll {\n display: block;\n overflow-y: auto;\n padding-inline-end: 2px;\n}\n\n/*gxg-tree-view*/\n.tree-container {\n display: flex;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n}\n\n/*Gemini*/\n/*Gx Ide*/\n/*@container queries*/\n/* hiChar styles\nFound on /common/helpers.tsx hiChar function is used to add a span/class to every character that matches a search value. It is used to help the user see why the filter results are filtered. The span/class on the characters are useless without proper styling.\n*/\n:host {\n display: block;\n border: 1px solid var(--gxg-border-color--regular);\n background-color: var(--color-background);\n}\n\n/*HEADER*/\n.header {\n grid-template-columns: auto 1fr;\n grid-template-areas: \"kb-name-label kb-input\";\n}\n.header--is-advanced {\n grid-template-columns: auto 1fr min-content;\n grid-template-areas: \"kb-name-label kb-input .\" \"location-label location-input location-icon\";\n}\n.header .kb-input {\n grid-area: kb-input;\n}\n.header .kb-name-label {\n grid-area: kb-label;\n}\n.header .location-label {\n grid-area: location-label;\n}\n.header .location-input {\n grid-area: location-input;\n}\n.header .location-icon {\n grid-area: location-icon;\n}\n\n/*GXG-TABS*/\n.gxg-tabs {\n margin-top: 0;\n box-shadow: none;\n}\n\n/*Basic*/\n.basic-row-first {\n container-name: basic-row-first;\n container-type: inline-size;\n}\n.basic-row-first__container {\n display: grid;\n gap: var(--gx-ide-grid-column-gap);\n padding: var(--gxg-container--padding);\n border-bottom: 1px solid var(--gx-ide-container-border-color);\n grid-template-columns: repeat(2, 1fr);\n}\n@container (max-width: 640px) {\n .basic-row-first {\n /* this will work but you will see the vs-code complaining about some syntax error, so just ignore it */\n }\n .basic-row-first .basic-row-first__container {\n grid-template-columns: 1fr;\n }\n}\n\n.basic-row-second {\n grid-template-columns: repeat(2, 1fr);\n grid-column-gap: 0;\n grid-row-gap: 0;\n flex-grow: 1;\n}\n\n/*Advanced*/\n.knowledge-base-storage {\n display: grid;\n grid-template-areas: \"knowledge-base-storage__col-left knowledge-base-storage__col-right\";\n grid-template-columns: repeat(2, 1fr);\n flex-grow: 1;\n gap: 0;\n}\n.knowledge-base-storage > *:first-child {\n border-right: 1px solid var(--gx-ide-container-border-color);\n}\n.knowledge-base-storage__col-left {\n display: grid;\n gap: var(--gx-ide-grid-row-gap);\n padding: var(--gxg-container--padding);\n grid-area: knowledge-base-storage__col-left;\n grid-template-columns: 1fr auto;\n grid-template-rows: repeat(4, min-content);\n grid-template-areas: \"server-name-combo-box server-name-button\" \"database-name .\" \"collation-combo-box collation-button\" \"create-data-in-kb .\";\n}\n.knowledge-base-storage__col-left .server-name-combo-box {\n grid-area: server-name-combo-box;\n}\n.knowledge-base-storage__col-left .server-name-button {\n grid-area: server-name-button;\n align-self: end;\n}\n.knowledge-base-storage__col-left .database-name {\n grid-area: database-name;\n}\n.knowledge-base-storage__col-left .collation-combo-box {\n grid-area: collation-combo-box;\n}\n.knowledge-base-storage__col-left .collation-button {\n grid-area: collation-button;\n align-self: end;\n}\n.knowledge-base-storage__col-left .create-data-in-kb {\n grid-area: create-data-in-kb;\n}\n.knowledge-base-storage__col-right {\n display: grid;\n padding: var(--gxg-container--padding);\n gap: var(--gx-ide-grid-row-gap);\n grid-area: knowledge-base-storage__col-right;\n grid-template-columns: 1fr;\n grid-template-rows: repeat(4, min-content);\n grid-template-areas: \"authentication-type\" \"user-name\" \"password\" \"save-password\";\n}\n.knowledge-base-storage__col-right .authentication-type {\n grid-area: authentication-type;\n}\n.knowledge-base-storage__col-right .user-name {\n grid-area: user-name;\n}\n.knowledge-base-storage__col-right .password {\n grid-area: password;\n}\n.knowledge-base-storage__col-right .save-password {\n grid-area: save-password;\n}\n.knowledge-base-storage__col-right--windows-authentication {\n grid-template-areas: \"authentication-type\";\n}";
|
|
@@ -12,6 +12,7 @@ const GxIdeNewKb = class {
|
|
|
12
12
|
this.componentDidRenderFirstTime = createEvent(this, "componentDidRenderFirstTime", 7);
|
|
13
13
|
this.renderedFirstTime = false;
|
|
14
14
|
this.selectedFrontEndsIds = [];
|
|
15
|
+
this.shortcutsSrc = getAssetPath(`./gx-ide-assets/new-kb/shortcuts.json`);
|
|
15
16
|
// 7.LISTENERS //
|
|
16
17
|
// 8.PUBLIC METHODS API //
|
|
17
18
|
// 9.LOCAL METHODS //
|
|
@@ -233,6 +234,7 @@ const GxIdeNewKb = class {
|
|
|
233
234
|
}
|
|
234
235
|
componentDidLoad() {
|
|
235
236
|
this.initialSetup();
|
|
237
|
+
this.kbNameEl.focus();
|
|
236
238
|
}
|
|
237
239
|
componentDidRender() {
|
|
238
240
|
if (!this.renderedFirstTime) {
|
|
@@ -254,7 +256,7 @@ const GxIdeNewKb = class {
|
|
|
254
256
|
h("gxg-form-text", { labelPosition: "start", placeholder: "C:\\Models", maxWidth: "100%", value: this.kbLocation, ref: (el) => (this.locationEl = el), disabled: !this.isAdvanced, part: "kb-location", class: "location-input" }),
|
|
255
257
|
h("gxg-button", { type: "secondary-icon-only", icon: "gemini-tools/folder", onClick: this.selectLocationHandler, part: "button-select-location", class: "location-icon" })
|
|
256
258
|
]
|
|
257
|
-
: null), h("main", { class: "gxi-full-height" }, h("gxg-tabs", { class: "gxg-tabs" }, this.isAdvanced ? (h("gxg-tab-bar", { slot: "tab-bar-container", part: "tab-bar", displayBorder: true }, h("gxg-tab-button", { slot: "tab-bar", tabLabel: this._componentLocale.tabBasic.tabLabel, tab: "basic", "is-selected": true, hidden: !this.isAdvanced, part: "tab-button-basic" }), h("gxg-tab-button", { slot: "tab-bar", tabLabel: this._componentLocale.tabAdvanced.tabLabel, tab: "advanced", hidden: !this.isAdvanced, part: "tab-button-advanced" }))) : null, this.renderTabBasic(), this.isAdvanced && this.renderTabAdvanced())), h("gxg-button", { id: "button-
|
|
259
|
+
: null), h("main", { class: "gxi-full-height" }, h("gxg-tabs", { class: "gxg-tabs" }, this.isAdvanced ? (h("gxg-tab-bar", { slot: "tab-bar-container", part: "tab-bar", displayBorder: true }, h("gxg-tab-button", { slot: "tab-bar", tabLabel: this._componentLocale.tabBasic.tabLabel, tab: "basic", "is-selected": true, hidden: !this.isAdvanced, part: "tab-button-basic" }), h("gxg-tab-button", { slot: "tab-bar", tabLabel: this._componentLocale.tabAdvanced.tabLabel, tab: "advanced", hidden: !this.isAdvanced, part: "tab-button-advanced" }))) : null, this.renderTabBasic(), this.isAdvanced && this.renderTabAdvanced())), h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancelKbHandler, part: "button-cancel", slot: "footer-end" }, this._componentLocale.footer.btnCancel), h("gxg-button", { id: "button-create", type: "primary-text-only", onClick: this.createKbHandler, part: "button-create", slot: "footer-end" }, this._componentLocale.footer.btnCreate))), h("gxg-shortcuts", { src: this.shortcutsSrc })));
|
|
258
260
|
}
|
|
259
261
|
static get assetsDirs() { return ["gx-ide-assets/new-kb"]; }
|
|
260
262
|
get el() { return getElement(this); }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0aa3977d.js';
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getAssetPath, h, H as Host, g as getElement } from './index-0aa3977d.js';
|
|
2
2
|
import { L as Locale } from './locale-e183487a.js';
|
|
3
3
|
import { c as config } from './config-2fae16a2.js';
|
|
4
4
|
|
|
@@ -13,6 +13,7 @@ const GxIdeNewObject = class {
|
|
|
13
13
|
this.componentDidLoadEvent = createEvent(this, "componentDidLoadEvent", 7);
|
|
14
14
|
this.componentDidRenderFirstTime = createEvent(this, "componentDidRenderFirstTime", 7);
|
|
15
15
|
this.renderedFirstTime = false;
|
|
16
|
+
this.shortcutsSrc = getAssetPath(`./gx-ide-assets/new-object/shortcuts.json`);
|
|
16
17
|
this.descriptionModifiedByUser = false;
|
|
17
18
|
// 7.LISTENERS //
|
|
18
19
|
// 8.PUBLIC METHODS API //
|
|
@@ -32,7 +33,7 @@ const GxIdeNewObject = class {
|
|
|
32
33
|
}
|
|
33
34
|
return [
|
|
34
35
|
h("gxg-label", { labelPosition: "start" }, labelDescription),
|
|
35
|
-
h("gx-ide-entity-selector", { value: this.parent, defaultValue: this.defaultParent, selectEntityCallback: this.selectModuleCallback, ref: (el) => (this.
|
|
36
|
+
h("gx-ide-entity-selector", { value: this.parent, defaultValue: this.defaultParent, selectEntityCallback: this.selectModuleCallback, ref: (el) => (this.moduleFolderEl = el), id: "module", part: "module" })
|
|
36
37
|
];
|
|
37
38
|
}
|
|
38
39
|
return null;
|
|
@@ -86,14 +87,14 @@ const GxIdeNewObject = class {
|
|
|
86
87
|
}
|
|
87
88
|
};
|
|
88
89
|
this.createCallbackHandler = async () => {
|
|
89
|
-
var _a;
|
|
90
|
+
var _a, _b, _c;
|
|
90
91
|
const data = {
|
|
91
92
|
typeId: (_a = this.selectedType) === null || _a === void 0 ? void 0 : _a.id,
|
|
92
93
|
name: this.nameEl.value,
|
|
93
94
|
description: !this.descriptionModifiedByUser
|
|
94
95
|
? undefined
|
|
95
96
|
: this.descriptionEl.value,
|
|
96
|
-
moduleId: this.
|
|
97
|
+
moduleId: (_c = (_b = this.moduleFolderEl) === null || _b === void 0 ? void 0 : _b.value) === null || _c === void 0 ? void 0 : _c.id
|
|
97
98
|
};
|
|
98
99
|
const result = await this.createCallback(data);
|
|
99
100
|
this.validateNameHandler(result);
|
|
@@ -160,7 +161,7 @@ const GxIdeNewObject = class {
|
|
|
160
161
|
var _a;
|
|
161
162
|
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper" }, h("gx-ide-container", { noContentPadding: true, noContentGap: true, slimmerFooter: config.gxIdeContainer.slimmerFooter, containerTitle: this.displayTitle ? this._componentLocale.componentName : null, noHeadingBorder: true }, h("main", { class: "main" }, h("div", { class: "categories-types-container" }, h("div", { class: "categories" }, this.typeCategories.length > 0 ? (h("gxg-list-box", { class: "category", "single-selection": true, noBorder: true, borderEnd: true, "the-title": this._componentLocale.categorySelectionTitle, onSelectionChanged: this.categoryOnSelectionChangedHandler }, this.typeCategories.map(category => (h("gxg-list-box-item", { key: category.id, value: category.id, icon: category.icon, part: `category-${category.id}` }, category.name))))) : null), h("div", { class: "types" }, this.selectedCategory.types.length > 0 ? (h("gxg-list-box", { class: "types", "single-selection": true, noBorder: true, theTitle: this.selectedCategory.name
|
|
162
163
|
? `${this.selectedCategory.name} ${this._componentLocale.typeSelectionTitleSuffix}`
|
|
163
|
-
: this._componentLocale.typeSelectionTitle, key: this.selectedCategory.id, onSelectionChanged: this.typeOnSelectionChangedHandler }, this.selectedCategory.types.map(type => (h("gxg-list-box-item", { key: `${this.selectedCategory.id}-${type.id}`, icon: type.icon, part: `type-${this.selectedCategory.id}-${type.id}` }, type.name))))) : (h("p", null, "No Categories to display")))), h("div", { class: "api-description" }, h("gxg-title", { type: "title-05" }, (_a = this.selectedType) === null || _a === void 0 ? void 0 : _a.description), h("div", { class: "form" }, h("gxg-label", { labelPosition: "start" }, this._componentLocale.objectName), h("gxg-form-text", { "label-position": "start", placeholder: "Name", "max-width": "100%", value: this.selectedType.name, toolTip: config.tooltip, ref: (el) => (this.nameEl = el), onInput: this.onInputNameHandler, onBlur: this.onBlurNameHandler, onValueChanged: this.onNameValueChangedHandler, debounce: true, part: "name", "display-validation-styles": true, "display-validation-message": true }), h("gxg-label", { labelPosition: "start" }, this._componentLocale.objectDescription), h("gxg-form-text", { "label-position": "start", placeholder: "Description", "max-width": "100%", value: this.selectedType.name, ref: (el) => (this.descriptionEl = el), onInput: this.onInputDescriptionHandler, part: "description", "display-validation-styles": true, "display-validation-message": true }), this.renderModuleFolder()))), h("gxg-button", { id: "button-cancel", slot: "footer-end", type: "outlined", onClick: this.cancelCallbackHandler, 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.createCallbackHandler, disabled: !this.nameIsValid, part: "gxg-button gxg-button--create" }, this._componentLocale.footer.btnCreate)))));
|
|
164
|
+
: this._componentLocale.typeSelectionTitle, key: this.selectedCategory.id, onSelectionChanged: this.typeOnSelectionChangedHandler }, this.selectedCategory.types.map(type => (h("gxg-list-box-item", { key: `${this.selectedCategory.id}-${type.id}`, icon: type.icon, part: `type-${this.selectedCategory.id}-${type.id}` }, type.name))))) : (h("p", null, "No Categories to display")))), h("div", { class: "api-description" }, h("gxg-title", { type: "title-05" }, (_a = this.selectedType) === null || _a === void 0 ? void 0 : _a.description), h("div", { class: "form" }, h("gxg-label", { labelPosition: "start" }, this._componentLocale.objectName), h("gxg-form-text", { "label-position": "start", placeholder: "Name", "max-width": "100%", value: this.selectedType.name, toolTip: config.tooltip, ref: (el) => (this.nameEl = el), onInput: this.onInputNameHandler, onBlur: this.onBlurNameHandler, onValueChanged: this.onNameValueChangedHandler, debounce: true, part: "name", "display-validation-styles": true, "display-validation-message": true }), h("gxg-label", { labelPosition: "start" }, this._componentLocale.objectDescription), h("gxg-form-text", { "label-position": "start", placeholder: "Description", "max-width": "100%", value: this.selectedType.name, ref: (el) => (this.descriptionEl = el), onInput: this.onInputDescriptionHandler, part: "description", "display-validation-styles": true, "display-validation-message": true }), this.renderModuleFolder()))), h("gxg-button", { id: "button-cancel", slot: "footer-end", type: "outlined", onClick: this.cancelCallbackHandler, 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.createCallbackHandler, disabled: !this.nameIsValid, part: "gxg-button gxg-button--create" }, this._componentLocale.footer.btnCreate))), h("gxg-shortcuts", { src: this.shortcutsSrc })));
|
|
164
165
|
}
|
|
165
166
|
static get assetsDirs() { return ["gx-ide-assets/new-object"]; }
|
|
166
167
|
get el() { return getElement(this); }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0aa3977d.js';
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getAssetPath, h, H as Host, g as getElement } from './index-0aa3977d.js';
|
|
2
2
|
import { L as Locale } from './locale-e183487a.js';
|
|
3
3
|
import { c as config } from './config-2fae16a2.js';
|
|
4
4
|
import { r as renderComboItems } from './render-combo-items-ede5de19.js';
|
|
@@ -14,6 +14,7 @@ const GxIdeObjectSelector = class {
|
|
|
14
14
|
this.componentDidRenderFirstTime = createEvent(this, "componentDidRenderFirstTime", 7);
|
|
15
15
|
this.componentDidLoadEvent = createEvent(this, "componentDidLoadEvent", 7);
|
|
16
16
|
this.renderedFirstTime = false;
|
|
17
|
+
this.shortcutsSrc = getAssetPath(`./gx-ide-assets/object-selector/shortcuts.json`);
|
|
17
18
|
// 9.LOCAL METHODS //
|
|
18
19
|
this.renderFilter = () => {
|
|
19
20
|
var _a, _b;
|
|
@@ -103,7 +104,7 @@ const GxIdeObjectSelector = class {
|
|
|
103
104
|
this.deselectAll = () => {
|
|
104
105
|
this.chGridEl.selectAllRows(false);
|
|
105
106
|
};
|
|
106
|
-
this.
|
|
107
|
+
this.newObjectCallbackHandler = () => {
|
|
107
108
|
this.newObjectCallback();
|
|
108
109
|
};
|
|
109
110
|
this.listenChanges = async () => {
|
|
@@ -223,7 +224,7 @@ const GxIdeObjectSelector = class {
|
|
|
223
224
|
}
|
|
224
225
|
// 10.RENDER() FUNCTION //
|
|
225
226
|
render() {
|
|
226
|
-
return (h(Host, { class: "gx-ide-component", onKeyPress: this.hostKeyPressHandler }, h("div", { class: "gx-ide-main-wrapper" }, h("gx-ide-container", { containerTitle: this.displayTitle ? this._componentLocale.componentName : null, noContentPadding: true, noAboveFooterPadding: true, noHeadingPadding: true, headingPaddingTop: true, noHeadingBorder: true, slimmerFooter: config.gxIdeContainer.slimmerFooter }, this.renderFilter(), this.renderObjects(), h("div", { class: "objects-count", slot: "footer-above" }, h("gxg-text", { class: "align-end", part: "objects-selected", textAlign: "center" }, this.evaluateObjectsCount("selected")), h("gxg-text", { class: "align-end", part: "objects-matching", textAlign: "center" }, this.evaluateObjectsCount("matching"))), h("gxg-button", { type: "outlined", onClick: this.cancelCallbackHandle, part: "gxg-button gxg-button--cancel", slot: "footer-end" }, this._componentLocale.footer.btnCancel), h("gxg-button", { type: "primary-text-only", onClick: this.openSelectionCallbackHandler, part: "gxg-button gxg-button--ok", slot: "footer-end" }, this._componentLocale.footer.btnConfirm), h("gxg-button", { type: "primary-text-icon", icon: "menus/new-object", onClick: this.
|
|
227
|
+
return (h(Host, { class: "gx-ide-component", onKeyPress: this.hostKeyPressHandler }, h("div", { class: "gx-ide-main-wrapper" }, h("gx-ide-container", { containerTitle: this.displayTitle ? this._componentLocale.componentName : null, noContentPadding: true, noAboveFooterPadding: true, noHeadingPadding: true, headingPaddingTop: true, noHeadingBorder: true, slimmerFooter: config.gxIdeContainer.slimmerFooter }, this.renderFilter(), this.renderObjects(), h("div", { class: "objects-count", slot: "footer-above" }, h("gxg-text", { class: "align-end", part: "objects-selected", textAlign: "center" }, this.evaluateObjectsCount("selected")), h("gxg-text", { class: "align-end", part: "objects-matching", textAlign: "center" }, this.evaluateObjectsCount("matching"))), h("gxg-button", { type: "outlined", onClick: this.cancelCallbackHandle, part: "gxg-button gxg-button--cancel", slot: "footer-end" }, this._componentLocale.footer.btnCancel), h("gxg-button", { type: "primary-text-only", onClick: this.openSelectionCallbackHandler, part: "gxg-button gxg-button--ok", slot: "footer-end" }, this._componentLocale.footer.btnConfirm), h("gxg-button", { type: "primary-text-icon", icon: "menus/new-object", onClick: this.newObjectCallbackHandler, part: "gxg-button gxg-button--new", slot: "footer-start" }, this._componentLocale.footer.btnNew), this.multiSelection ? (h("gxg-button", { type: "secondary-text-only", onClick: this.selectAll, part: "gxg-button gxg-button--select-all", slot: "footer-start" }, this._componentLocale.footer.btnSelectAll)) : null)), h("gxg-shortcuts", { src: this.shortcutsSrc })));
|
|
227
228
|
}
|
|
228
229
|
static get assetsDirs() { return ["gx-ide-assets/object-selector"]; }
|
|
229
230
|
get el() { return getElement(this); }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0aa3977d.js';
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getAssetPath, h, H as Host, g as getElement } from './index-0aa3977d.js';
|
|
2
2
|
import { L as Locale } from './locale-e183487a.js';
|
|
3
3
|
import { c as config } from './config-2fae16a2.js';
|
|
4
4
|
import { r as renderSuggestLists } from './render-suggest-f3af661b.js';
|
|
@@ -62,6 +62,7 @@ const GxIdeReferences = class {
|
|
|
62
62
|
registerInstance(this, hostRef);
|
|
63
63
|
this.componentDidRenderFirstTime = createEvent(this, "componentDidRenderFirstTime", 7);
|
|
64
64
|
this.renderedFirstTime = false;
|
|
65
|
+
this.shortcutsSrc = getAssetPath(`./gx-ide-assets/references/shortcuts.json`);
|
|
65
66
|
/**
|
|
66
67
|
* The last SelectorCategoryData[] returned by selectorSourceCallback
|
|
67
68
|
*/
|
|
@@ -197,6 +198,9 @@ const GxIdeReferences = class {
|
|
|
197
198
|
this._componentLocale = await Locale.getComponentStrings(this.el);
|
|
198
199
|
this.evaluateInitialReferenceData();
|
|
199
200
|
}
|
|
201
|
+
componentDidLoad() {
|
|
202
|
+
this.selectObjectSuggestEl.focus();
|
|
203
|
+
}
|
|
200
204
|
componentDidRender() {
|
|
201
205
|
if (!this.renderedFirstTime) {
|
|
202
206
|
this.componentDidRenderFirstTime.emit(this._componentLocale.componentName);
|
|
@@ -206,7 +210,7 @@ const GxIdeReferences = class {
|
|
|
206
210
|
// 10.RENDER() FUNCTION //
|
|
207
211
|
render() {
|
|
208
212
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
209
|
-
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper" }, h("gx-ide-container", { displayBorderBottom: true, noContentPadding: true, containerTitle: this.displayTitle ? this._componentLocale.componentName : null }, h("header", { class: "header", slot: "header" }, h("div", { class: "header__top grid" }, h("gxg-button", { icon: "navigation/arrow-down", type: "secondary-icon-only", class: "hide-bar-button", onClick: this.hideBarButtonClickedHandler, part: "toggle-bar-button" }), h("gxg-label", { labelPosition: "start", class: "suggest-label", part: "select-object-label" }, this._componentLocale.header.selectObject), h("gxg-suggest", null, h("ch-suggest", { value: this.selectedObject.name, onValueChanged: this.selectObjectValueChangedHandler, onSelectionChanged: this.selectObjectSelectionChanged, part: "object-selector-suggest", exportparts: "dropdown:select-object-dropdown" }, renderSuggestLists(this.objectsSuggestions))), h("gxg-button", { type: "secondary-icon-only", icon: "gemini-tools/show-more-horizontal", onClick: this.openSelectorDialogCallbackHandler, class: "selector-dialog-button", part: "open-selector-dialog-button" })), h("div", { class: {
|
|
213
|
+
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper" }, h("gx-ide-container", { displayBorderBottom: true, noContentPadding: true, containerTitle: this.displayTitle ? this._componentLocale.componentName : null }, h("header", { class: "header", slot: "header" }, h("div", { class: "header__top grid" }, h("gxg-button", { icon: "navigation/arrow-down", type: "secondary-icon-only", class: "hide-bar-button", onClick: this.hideBarButtonClickedHandler, part: "toggle-bar-button" }), h("gxg-label", { labelPosition: "start", class: "suggest-label", part: "select-object-label" }, this._componentLocale.header.selectObject), h("gxg-suggest", null, h("ch-suggest", { value: this.selectedObject.name, onValueChanged: this.selectObjectValueChangedHandler, onSelectionChanged: this.selectObjectSelectionChanged, part: "object-selector-suggest", exportparts: "dropdown:select-object-dropdown", ref: el => (this.selectObjectSuggestEl = el) }, renderSuggestLists(this.objectsSuggestions))), h("gxg-button", { type: "secondary-icon-only", icon: "gemini-tools/show-more-horizontal", onClick: this.openSelectorDialogCallbackHandler, class: "selector-dialog-button", part: "open-selector-dialog-button" })), h("div", { class: {
|
|
210
214
|
"header__bottom": true,
|
|
211
215
|
"header__bottom--hidden": this.barHidden
|
|
212
216
|
} }, h("div", { class: "outer-wrapper" }, h("div", { class: "inner-wrapper" }, h("div", { class: "inner-wrapper__left" }, h("gxg-icon", { type: this.selectedObject.icon, color: "auto" }), h("gxg-text", { padding: "s", type: "text-link", part: "open-object-text-link", onClick: this.openObjectCallbackHandler }, `${this.selectedObject.name} : ${this.selectedObject.description}`)), h("div", { class: "inner-wrapper__right gxi-hidden" }, h("gxg-form-checkbox", { id: "references-by-type", label: "Group references by type", required: true, "display-validation-styles": true, part: "references-type-checkbox" })))))), h("main", { class: "main" }, h("gx-ide-container", { containerTitle: this._componentLocale.main.isReferencedBy, noContentPadding: true, part: "referenced-by-container", contentBorderEnd: true, titleType: "secondary" }, h("div", { class: {
|
|
@@ -219,7 +223,7 @@ const GxIdeReferences = class {
|
|
|
219
223
|
"reference-container--no-references": !((_e = this.referencesToTreeData) === null || _e === void 0 ? void 0 : _e.length)
|
|
220
224
|
} }, h("gxg-tree-view", { class: { "gxi-hidden": !((_f = this.referencesToTreeData) === null || _f === void 0 ? void 0 : _f.length) }, part: "referenced-to-tree", treeModel: this.referencesToTreeData, lazyLoadTreeItemsCallback: this.referencesLazyLoadCallbackHandler("references-to"), onSelectedItemsChange: this.referenceSelectedHandler, dragDisabled: true, dropDisabled: true, onItemOpenReference: this.referencesItemOpenReferenceCallback }), !((_g = this.referencesToTreeData) === null || _g === void 0 ? void 0 : _g.length) && (h("gxg-text", { textAlign: config.gxgMessage.common.textAlign, padding: config.gxgMessage.common.textAlign, type: config.gxgMessage.common.type, maxWidth: config.gxgMessage.common.maxWidth, part: "references-to-text", class: "gx-ide-message" }, ((_h = this.referencesToTreeData) === null || _h === void 0 ? void 0 : _h.length) === 0
|
|
221
225
|
? this._componentLocale.main.hasReferencesEmpty
|
|
222
|
-
: this._componentLocale.main.hasReferencesToError)))))))));
|
|
226
|
+
: this._componentLocale.main.hasReferencesToError))))))), h("gxg-shortcuts", { src: this.shortcutsSrc })));
|
|
223
227
|
}
|
|
224
228
|
static get assetsDirs() { return ["gx-ide-assets/references"]; }
|
|
225
229
|
get el() { return getElement(this); }
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0aa3977d.js';
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getAssetPath, h, H as Host, g as getElement } from './index-0aa3977d.js';
|
|
2
2
|
import { L as Locale } from './locale-e183487a.js';
|
|
3
3
|
import { c as config } from './config-2fae16a2.js';
|
|
4
4
|
import { f as formSubmitValidation } from './form-validation-09bd4504.js';
|
|
5
|
-
import { r as renderFormItems } from './common-
|
|
5
|
+
import { r as renderFormItems } from './common-3bda62ed.js';
|
|
6
6
|
|
|
7
7
|
const shareKbCss = ".gxi-hidden{display:none !important}.gxi-full-height{height:100%}.gxi-overflow-auto{overflow:auto}.gxi-display-flex{display:flex}.align-start{display:flex;align-items:start}.align-center{display:flex;align-items:center}.align-end{display:flex;align-items:end}.overflow-auto{overflow:auto}.grid{display:grid;grid-row-gap:var(--gx-ide-grid-row-gap);grid-column-gap:var(--gx-ide-grid-column-gap);grid-template-rows:auto}ch-grid-cell{display:flex}ch-grid{overflow:auto;height:100%}ch-grid-column{z-index:99;border-bottom:1px solid var(--gray-01)}ch-grid-column:first-child{padding-inline-start:var(--gxg-container--padding) !important}ch-grid-column:last-child{padding-inline-end:var(--gxg-container--padding) !important}ch-grid-cell{--spacing-comp-02:var(--gxg-container--padding)}gxg-tabs{box-shadow:none}:host(.gx-ide-component){box-shadow:var(--box-shadow-01) !important;height:100% !important;display:flex !important;flex-direction:column !important}:host(:focus-within) gx-ide-top-bar::part(wrapper){background-color:var(--color-secondary-enabled)}.gx-ide-main-wrapper{color:var(--gx-ide-component-text-color);font-weight:var(--font-weight-regular);font-size:var(--font-size-lg);font-family:var(--font-family-primary);line-height:1.6em;height:100%;background-color:var(--gx-ide-component-background-color);display:flex;flex-direction:column;flex-grow:1;box-sizing:border-box}.gx-ide-main{flex-grow:1;overflow-y:auto;}.gx-ide-main::-webkit-scrollbar{width:6px;height:6px}.gx-ide-main::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-main .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}.gx-ide-overflow{overflow-y:auto;}.gx-ide-overflow::-webkit-scrollbar{width:6px;height:6px}.gx-ide-overflow::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-overflow .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}.tree-container{display:flex;height:100%;width:100%;box-sizing:border-box}:host{display:block}.main{display:grid;column-gap:var(--gx-ide-grid-column-gap);row-gap:var(--gx-ide-grid-row-gap);grid-template-columns:auto 1fr;grid-template-areas:\"kb-label kb-input \" \"server-label server-input\" \"auth-type-label auth-type-input\" \"user-name-label user-name-input\" \"password-label password-input\"}.main .kb-name-label{grid-area:kb-label}.main .kb-input{grid-area:kb-input}.main .server-url-label{grid-area:server-label}.main .server-url-input{grid-area:server-input}.main .auth-type-label{grid-area:auth-type-label}.main .auth-type-input{grid-area:auth-type-input}.main .user-name-label{grid-area:user-name-label}.main .user-name-input{grid-area:user-name-input}.main .password-label{grid-area:password-label}.main .password-input{grid-area:password-input}";
|
|
8
8
|
|
|
@@ -13,6 +13,7 @@ const GxIdeShareKb = class {
|
|
|
13
13
|
registerInstance(this, hostRef);
|
|
14
14
|
this.componentDidRenderFirstTime = createEvent(this, "componentDidRenderFirstTime", 7);
|
|
15
15
|
this.renderedFirstTime = false;
|
|
16
|
+
this.shortcutsSrc = getAssetPath(`./gx-ide-assets/share-kb/shortcuts.json`);
|
|
16
17
|
// 7.LISTENERS //
|
|
17
18
|
// 8.PUBLIC METHODS API //
|
|
18
19
|
this.createKBCallbackHandler = async () => {
|
|
@@ -38,6 +39,9 @@ const GxIdeShareKb = class {
|
|
|
38
39
|
async componentWillLoad() {
|
|
39
40
|
this._componentLocale = await Locale.getComponentStrings(this.el);
|
|
40
41
|
}
|
|
42
|
+
componentDidLoad() {
|
|
43
|
+
this.kbNameEl.focus();
|
|
44
|
+
}
|
|
41
45
|
componentDidRender() {
|
|
42
46
|
if (!this.renderedFirstTime) {
|
|
43
47
|
this.componentDidRenderFirstTime.emit(this._componentLocale.componentName);
|
|
@@ -53,7 +57,7 @@ const GxIdeShareKb = class {
|
|
|
53
57
|
})), "server-url")), h("gxg-label", { labelPosition: "start", class: "auth-type-label", noMargin: true }, this._componentLocale.main.authentication), h("gxg-combo-box", { labelPosition: "start", placeholder: "https://myexampleserver.com", "max-width": "100%", value: AUTHENTICATION_TYPE[0], ref: (el) => (this.authTypeEl = el), part: "auth-type", class: "auth-type-input" }, renderFormItems("gxg-combo-box-item", AUTHENTICATION_TYPE.map((item) => ({
|
|
54
58
|
id: item,
|
|
55
59
|
label: item
|
|
56
|
-
})), "auth-type")), h("gxg-label", { labelPosition: "start", class: "user-name-label", noMargin: true }, this._componentLocale.main.userName), h("gxg-form-text", { labelPosition: "start", placeholder: "My User", "max-width": "100%", toolTip: config.tooltip, ref: (el) => (this.userNameEl = el), part: "user-name", class: "user-name-input" }), h("gxg-label", { labelPosition: "start", class: "password-label", noMargin: true }, this._componentLocale.main.password), h("gxg-form-text", { labelPosition: "start", password: true, toolTip: config.tooltip, "max-width": "100%", ref: (el) => (this.passwordEl = el), part: "password", class: "password-input" })), h("gxg-button", { slot: "footer-end", type: "primary-text-icon", icon: "gemini-tools/share", onClick: this.createKBCallbackHandler }, this._componentLocale.footer.shareBtn)))));
|
|
60
|
+
})), "auth-type")), h("gxg-label", { labelPosition: "start", class: "user-name-label", noMargin: true }, this._componentLocale.main.userName), h("gxg-form-text", { labelPosition: "start", placeholder: "My User", "max-width": "100%", toolTip: config.tooltip, ref: (el) => (this.userNameEl = el), part: "user-name", class: "user-name-input" }), h("gxg-label", { labelPosition: "start", class: "password-label", noMargin: true }, this._componentLocale.main.password), h("gxg-form-text", { labelPosition: "start", password: true, toolTip: config.tooltip, "max-width": "100%", ref: (el) => (this.passwordEl = el), part: "password", class: "password-input" })), h("gxg-button", { slot: "footer-end", type: "primary-text-icon", icon: "gemini-tools/share", onClick: this.createKBCallbackHandler, part: "share-kb" }, this._componentLocale.footer.shareBtn))), h("gxg-shortcuts", { src: this.shortcutsSrc })));
|
|
57
61
|
}
|
|
58
62
|
static get assetsDirs() { return ["gx-ide-assets/share-kb"]; }
|
|
59
63
|
get el() { return getElement(this); }
|
|
@@ -202,6 +202,7 @@ const GxIdeTeamDevCommit = class {
|
|
|
202
202
|
this.loadDataCalledFirstTime = true;
|
|
203
203
|
this.componentDidLoadEvent.emit(true);
|
|
204
204
|
this.conditionToCommit();
|
|
205
|
+
this.commitCommentEl.focus();
|
|
205
206
|
}
|
|
206
207
|
async componentDidRender() {
|
|
207
208
|
if (!this.renderedFirstTime) {
|
|
@@ -65,7 +65,7 @@ const GxIdeTeamDevSelectRecentComment = class {
|
|
|
65
65
|
render() {
|
|
66
66
|
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, displayBorder: true, noContentPadding: true, slimmerFooter: config.gxIdeContainer.slimmerFooter }, h("gx-ide-list-selector", { type: "single-selection", listName: "recent-comments", noListBorder: true, ordered: true, onSelectionChanged: this.commentSelectionChangedHandler, class: "recent-comments-list" }, renderListItems(commentsToListItemsData(this.comments))), h("gxg-button", { type: "outlined", onClick: this.cancelCallbackHandle, slot: "footer-end" }, this._componentLocale.cancelButton), h("gxg-button", { type: "primary-text-only", onClick: this.confirmCallbackHandle, slot: "footer-end" }, this._componentLocale.confirmButton)))));
|
|
67
67
|
}
|
|
68
|
-
static get assetsDirs() { return ["gx-ide-assets/select-recent-comment"]; }
|
|
68
|
+
static get assetsDirs() { return ["gx-ide-assets/team-dev-select-recent-comment"]; }
|
|
69
69
|
get el() { return getElement(this); }
|
|
70
70
|
};
|
|
71
71
|
GxIdeTeamDevSelectRecentComment.style = selectRecentCommentCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0aa3977d.js';
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getAssetPath, h, H as Host, g as getElement } from './index-0aa3977d.js';
|
|
2
2
|
import { L as Locale } from './locale-e183487a.js';
|
|
3
3
|
import { c as config } from './config-2fae16a2.js';
|
|
4
4
|
import { g as gridCommon } from './grid-9988c857.js';
|
|
@@ -11,6 +11,7 @@ const GxIdeTeamDevUpdatePartialSelection = class {
|
|
|
11
11
|
this.componentDidLoadEvent = createEvent(this, "componentDidLoadEvent", 7);
|
|
12
12
|
this.componentDidRenderFirstTime = createEvent(this, "componentDidRenderFirstTime", 7);
|
|
13
13
|
this.renderedFirstTime = false;
|
|
14
|
+
this.shortcutsSrc = getAssetPath(`./gx-ide-assets/team-dev-update-partial-selection/shortcuts.json`);
|
|
14
15
|
// 9.LOCAL METHODS //
|
|
15
16
|
this.renderObjects = () => {
|
|
16
17
|
return (h("gxg-grid", { "ellipsis-cell-wrapper": true, noBorder: true }, h("ch-grid", { "row-selection-mode": "multiple", ref: (el) => (this.chGridEl = el), part: "ch-grid-objects" }, h("ch-grid-columnset", null, h("ch-grid-column", { columnName: "", settingable: false, sortable: false, size: gridCommon.colSize.minContent }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.name, settingable: false, size: gridCommon.colSize.auto }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.type, settingable: false, size: gridCommon.colSize.auto }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.description, settingable: false, size: gridCommon.colSize.auto }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.modifiedOn, settingable: false, size: gridCommon.colSize.auto })), this.selection.map((obj) => (h("ch-grid-row", { rowid: obj.id, key: obj.id }, h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, h("gxg-icon", { type: obj.typeIcon, color: "auto" }))), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, obj.name)), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, obj.type)), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, obj.description)), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, `${obj.modifiedOn.toISOString().slice(0, 10)}`))))))));
|
|
@@ -80,7 +81,7 @@ const GxIdeTeamDevUpdatePartialSelection = class {
|
|
|
80
81
|
}
|
|
81
82
|
// 10.RENDER() FUNCTION //
|
|
82
83
|
render() {
|
|
83
|
-
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper" }, h("gx-ide-container", { noContentPadding: true, noContentGap: true, containerTitle: this.displayTitle ? this._componentLocale.componentName : null, slimmerFooter: config.gxIdeContainer.slimmerFooter }, h("div", { class: "top-actions" }, h("gxg-button", { id: "button-add", type: "outlined", icon: "gemini-tools/add", onClick: this.getObjectsHandler, part: "add" }, this._componentLocale.btnAddObject), h("gxg-button", { id: "button-remove", type: "secondary-text-only", onClick: this.removeSelectedObjectsHandler, part: "remove", disabled: !(this.selectedObjectsIds.length > 0) }, this._componentLocale.btnRemoveSelectedObjects)), this.renderObjects(), h("gxg-text", { id: "button-clear", type: "button-like", onClick: this.removeAllHandler, disabled: !(this.selection.length > 0), part: "clear", slot: "footer-start" }, this._componentLocale.footer.btnRemoveAll), h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancelHandler, part: "cancel", slot: "footer-end" }, this._componentLocale.footer.btnCancel), h("gxg-button", { id: "button-ok", type: "primary-text-only", onClick: this.confirmHandler, part: "confirm", slot: "footer-end" }, this._componentLocale.footer.btnConfirm)))));
|
|
84
|
+
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper" }, h("gx-ide-container", { noContentPadding: true, noContentGap: true, containerTitle: this.displayTitle ? this._componentLocale.componentName : null, slimmerFooter: config.gxIdeContainer.slimmerFooter }, h("div", { class: "top-actions" }, h("gxg-button", { id: "button-add", type: "outlined", icon: "gemini-tools/add", onClick: this.getObjectsHandler, part: "add" }, this._componentLocale.btnAddObject), h("gxg-button", { id: "button-remove", type: "secondary-text-only", onClick: this.removeSelectedObjectsHandler, part: "remove", disabled: !(this.selectedObjectsIds.length > 0) }, this._componentLocale.btnRemoveSelectedObjects)), this.renderObjects(), h("gxg-text", { id: "button-clear", type: "button-like", onClick: this.removeAllHandler, disabled: !(this.selection.length > 0), part: "clear", slot: "footer-start" }, this._componentLocale.footer.btnRemoveAll), h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancelHandler, part: "cancel", slot: "footer-end" }, this._componentLocale.footer.btnCancel), h("gxg-button", { id: "button-ok", type: "primary-text-only", onClick: this.confirmHandler, part: "confirm", slot: "footer-end" }, this._componentLocale.footer.btnConfirm))), h("gxg-shortcuts", { src: this.shortcutsSrc })));
|
|
84
85
|
}
|
|
85
86
|
static get assetsDirs() { return ["gx-ide-assets/team-dev-update-partial-selection"]; }
|
|
86
87
|
get el() { return getElement(this); }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0aa3977d.js';
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getAssetPath, h, H as Host, g as getElement } from './index-0aa3977d.js';
|
|
2
2
|
import { L as Locale } from './locale-e183487a.js';
|
|
3
3
|
import { c as config } from './config-2fae16a2.js';
|
|
4
4
|
|
|
@@ -10,6 +10,7 @@ const GxIdeTeamDevUpdateToRevision = class {
|
|
|
10
10
|
this.componentDidLoadEvent = createEvent(this, "componentDidLoadEvent", 7);
|
|
11
11
|
this.componentDidRenderFirstTime = createEvent(this, "componentDidRenderFirstTime", 7);
|
|
12
12
|
this.renderedFirstTime = false;
|
|
13
|
+
this.shortcutsSrc = getAssetPath(`./gx-ide-assets/team-dev-update-to-revision/shortcuts.json`);
|
|
13
14
|
// 9.LOCAL METHODS //
|
|
14
15
|
this.setInitialCheckedRadio = () => {
|
|
15
16
|
if (this.currentRevision === undefined) {
|
|
@@ -44,6 +45,7 @@ const GxIdeTeamDevUpdateToRevision = class {
|
|
|
44
45
|
componentDidLoad() {
|
|
45
46
|
this.componentDidLoadEvent.emit(true);
|
|
46
47
|
this.setInitialCheckedRadio();
|
|
48
|
+
this.revisionNumberEl.focus();
|
|
47
49
|
}
|
|
48
50
|
componentDidRender() {
|
|
49
51
|
if (!this.renderedFirstTime) {
|
|
@@ -62,7 +64,7 @@ const GxIdeTeamDevUpdateToRevision = class {
|
|
|
62
64
|
}
|
|
63
65
|
// 10.RENDER() FUNCTION //
|
|
64
66
|
render() {
|
|
65
|
-
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper" }, h("gx-ide-container", { slimmerFooter: config.gxIdeContainer.slimmerFooter, containerTitle: this.displayTitle ? this._componentLocale.componentName : null }, h("gxg-form-radio-group", null, h("gxg-form-radio", { label: this._componentLocale.options.updateToLatest, value: "updateToLatest", ref: (el) => (this.updateToLatestEl = el), part: "radio-to-latest" }), h("div", { class: "revision-number" }, h("gxg-form-radio", { label: this._componentLocale.options.updateToRevision, value: "updateToRevision", ref: (el) => (this.updateToRevisionEl = el), part: "radio-to-revision" }), h("gxg-form-text", { ref: (el) => (this.revisionNumberEl = el), onFocus: this.updateToRevisionOnFocusHandler, value: this.currentRevision, part: "revision-number" }))), h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancel, part: "cancel", slot: "footer-end" }, this._componentLocale.footer.btnCancel), h("gxg-button", { id: "button-ok", type: "primary-text-only", onClick: this.confirm, part: "update", slot: "footer-end" }, this._componentLocale.footer.btnUpdate)))));
|
|
67
|
+
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper" }, h("gx-ide-container", { slimmerFooter: config.gxIdeContainer.slimmerFooter, containerTitle: this.displayTitle ? this._componentLocale.componentName : null }, h("gxg-form-radio-group", null, h("gxg-form-radio", { label: this._componentLocale.options.updateToLatest, value: "updateToLatest", ref: (el) => (this.updateToLatestEl = el), part: "radio-to-latest" }), h("div", { class: "revision-number" }, h("gxg-form-radio", { label: this._componentLocale.options.updateToRevision, value: "updateToRevision", ref: (el) => (this.updateToRevisionEl = el), part: "radio-to-revision" }), h("gxg-form-text", { ref: (el) => (this.revisionNumberEl = el), onFocus: this.updateToRevisionOnFocusHandler, value: this.currentRevision, part: "revision-number" }))), h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancel, part: "cancel", slot: "footer-end" }, this._componentLocale.footer.btnCancel), h("gxg-button", { id: "button-ok", type: "primary-text-only", onClick: this.confirm, part: "update", slot: "footer-end" }, this._componentLocale.footer.btnUpdate))), h("gxg-shortcuts", { src: this.shortcutsSrc })));
|
|
66
68
|
}
|
|
67
69
|
static get assetsDirs() { return ["gx-ide-assets/team-dev-update-to-revision"]; }
|
|
68
70
|
get el() { return getElement(this); }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0aa3977d.js';
|
|
2
2
|
import { L as Locale } from './locale-e183487a.js';
|
|
3
3
|
import { c as config } from './config-2fae16a2.js';
|
|
4
|
-
import { r as renderFormItems } from './common-
|
|
4
|
+
import { r as renderFormItems } from './common-3bda62ed.js';
|
|
5
5
|
import { F as FILTER_AFTER } from './constants-7882d1a8.js';
|
|
6
6
|
import { a as closeOnOutsideClickHandler, h as hiChar, f as formatDate } from './helpers-a11a19fb.js';
|
|
7
7
|
import { g as gridCommon } from './grid-9988c857.js';
|
|
@@ -304,6 +304,7 @@ const GxIdeWWImages = class {
|
|
|
304
304
|
this.listenChanges();
|
|
305
305
|
this.getImages();
|
|
306
306
|
this.saveInitialFilterData();
|
|
307
|
+
this.filterNameEl.focus();
|
|
307
308
|
}
|
|
308
309
|
componentDidRender() {
|
|
309
310
|
if (!this.renderedFirstTime) {
|
|
@@ -46,6 +46,10 @@ const GxgComboBox = class {
|
|
|
46
46
|
* The presence of this attribute displays a tooltip message, instead of a block message below the control
|
|
47
47
|
*/
|
|
48
48
|
this.toolTip = false;
|
|
49
|
+
/**
|
|
50
|
+
* If true, it will prevent Enter key propagation only when the list is open. This prop. was created to prevent issues with ch-shortcuts, when an Enter key has to fire a callback on another element (such as a button) but it has to be ignored when the list is open, since an Enter key on a list-box-item, has to select the item only.
|
|
51
|
+
*/
|
|
52
|
+
this.preventEnterPropagation = false;
|
|
49
53
|
/**
|
|
50
54
|
* The presence of this attribute makes the input disabled
|
|
51
55
|
*/
|
|
@@ -165,6 +169,9 @@ const GxgComboBox = class {
|
|
|
165
169
|
repositionScroll(this.itemsContainer, this.selectedItem, KeyboardKeys.ARROW_UP);
|
|
166
170
|
}
|
|
167
171
|
else if (e.code === KeyboardKeys.ENTER) {
|
|
172
|
+
if (this.preventEnterPropagation && this.listIsOpen) {
|
|
173
|
+
e.stopPropagation();
|
|
174
|
+
}
|
|
168
175
|
this.hideList();
|
|
169
176
|
this.showAllItems();
|
|
170
177
|
}
|
|
@@ -454,7 +461,7 @@ const GxgComboBox = class {
|
|
|
454
461
|
this.inputText.focus();
|
|
455
462
|
}
|
|
456
463
|
}
|
|
457
|
-
|
|
464
|
+
/********************************
|
|
458
465
|
WATCH
|
|
459
466
|
*********************************/
|
|
460
467
|
onValueChanged(newValue) {
|
|
@@ -163,14 +163,10 @@ const GxgFormRadioGroup = class {
|
|
|
163
163
|
newRadio = radiosArray[currentRadioIndex - 1];
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
else if (key === "Enter") {
|
|
167
|
-
const gxgFormRadio = currentRadio;
|
|
168
|
-
if (!gxgFormRadio.checked) {
|
|
169
|
-
this.value = gxgFormRadio.value;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
166
|
if (newRadio) {
|
|
173
167
|
newRadio.focus();
|
|
168
|
+
newRadio.checked = true;
|
|
169
|
+
this.value = newRadio.value;
|
|
174
170
|
}
|
|
175
171
|
}
|
|
176
172
|
}
|
|
@@ -19,7 +19,7 @@ const GxgFormRadio = class {
|
|
|
19
19
|
* The presence of this attribute disables the radio
|
|
20
20
|
*/
|
|
21
21
|
this.disabled = false;
|
|
22
|
-
this.clickedHandler = () => {
|
|
22
|
+
this.clickedHandler = (e) => {
|
|
23
23
|
this.checked = true;
|
|
24
24
|
};
|
|
25
25
|
}
|
|
@@ -34,8 +34,8 @@ const GxgFormRadio = class {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
handlerOnKeyDown(
|
|
38
|
-
this.keyPressed.emit(
|
|
37
|
+
handlerOnKeyDown(e) {
|
|
38
|
+
this.keyPressed.emit(e.key);
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
41
|
return (h(Host, { class: { "gxg-form-radio--disabled": this.disabled } }, h("gxg-label", { noMargin: true, class: "label", disabled: this.disabled, onClick: this.clickedHandler }, h("input", { ref: (el) => (this.radioInput = el), type: "radio", name: this.name, value: this.value, disabled: this.disabled, onKeyDown: this.handlerOnKeyDown.bind(this), checked: this.checked, class: { checked: this.checked } }), h("span", { class: { radiobtn: true, "radiobtn--error": this.error } }), this.label)));
|
|
@@ -4,7 +4,7 @@ import { f as formClasses, c as commonClassesNames } from './classesNames-6cd8fa
|
|
|
4
4
|
import { s as state } from './store-eca88b9a.js';
|
|
5
5
|
import { e as exportParts } from './export-parts-7f208d57.js';
|
|
6
6
|
|
|
7
|
-
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}";
|
|
7
|
+
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}";
|
|
8
8
|
|
|
9
9
|
const GxgFormText = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -150,9 +150,6 @@ const GxgFormText = class {
|
|
|
150
150
|
this.centerLabel = true;
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
|
-
this.handleClick = () => {
|
|
154
|
-
this.openFile();
|
|
155
|
-
};
|
|
156
153
|
this.handleKeyDown = (e) => {
|
|
157
154
|
if (e.key === "Enter" && this.type === "file") {
|
|
158
155
|
this.textInput.click();
|
|
@@ -396,12 +393,13 @@ const GxgFormText = class {
|
|
|
396
393
|
} }, h("input", { part: this.parts.input, type: this.evaluateType(), value: this.value, class: {
|
|
397
394
|
input: true,
|
|
398
395
|
"form-element": true,
|
|
396
|
+
"form-element--readonly": this.readonly,
|
|
399
397
|
"cursor-inside": this.cursorInside,
|
|
400
398
|
"clear-button": this.clearButton === true,
|
|
401
399
|
"custom-icon": this.icon,
|
|
402
400
|
"custom-icon--end": this.iconPosition === "end",
|
|
403
401
|
"input--borderless": this.borderless,
|
|
404
|
-
}, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly
|
|
402
|
+
}, 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
|
|
405
403
|
? formMessageLogic(this)
|
|
406
404
|
: null, this.renderInputFile())), this.labelPosition === "above" && !this.toolTip
|
|
407
405
|
? formMessageLogic(this)
|
|
@@ -158,7 +158,6 @@ const GxgListBox = class {
|
|
|
158
158
|
if (e.code === "ArrowDown" ||
|
|
159
159
|
e.code === "ArrowUp" ||
|
|
160
160
|
e.code === "Space" ||
|
|
161
|
-
e.code === "Enter" ||
|
|
162
161
|
e.code === "Backspace" ||
|
|
163
162
|
e.code === "Delete" ||
|
|
164
163
|
e.code === "KeyA") {
|
|
@@ -167,7 +166,7 @@ const GxgListBox = class {
|
|
|
167
166
|
if (e.code === "ArrowDown" || e.code === "ArrowUp") {
|
|
168
167
|
this.HandleArrow(e.code, shiftKey, activeItemIndex);
|
|
169
168
|
}
|
|
170
|
-
else if (e.code === "Space"
|
|
169
|
+
else if (e.code === "Space") {
|
|
171
170
|
if (shiftKey && ctrlKey) {
|
|
172
171
|
/*uncheck checkbox*/
|
|
173
172
|
const changedLength = this.setCheckboxState(this.getHighlightedItems(), false);
|
|
@@ -5,9 +5,15 @@ const testCss = ":root{--ui-animaton-speed:0.2s}.gxg-title-01{font-family:var(--
|
|
|
5
5
|
const GxgTest = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
+
this.sendClickHandler = () => {
|
|
9
|
+
console.log("clicked");
|
|
10
|
+
};
|
|
8
11
|
}
|
|
9
12
|
render() {
|
|
10
|
-
return
|
|
13
|
+
return [
|
|
14
|
+
h("div", { class: "container" }, h("section", { class: "section-dev", "data-title": "shortcut" }, h("h2", null, "Formulario de Contacto"), h("div", null, h("label", { htmlFor: "nombre" }, "Nombre:"), h("input", { type: "text", id: "nombre", name: "nombre", "data-shortcut": "Alt+N" })), h("div", null, h("label", { htmlFor: "email" }, "Correo Electr\u00F3nico:"), h("input", { type: "email", id: "email", name: "email", "data-shortcut": "Alt+E", "data-shortcut-prevent": "Enter", "aria-keyshortcuts": "Alt+E" })), h("div", null, h("label", { htmlFor: "mensaje" }, "Mensaje:"), h("textarea", { id: "mensaje", name: "mensaje", "data-shortcut": "Alt+M" })), h("div", null, h("button", { id: "enviar", "data-shortcut": "Enter", "data-shortcut-action": "click", onClick: this.sendClickHandler }, "Enviar")))),
|
|
15
|
+
h("gxg-shortcuts", { src: "../assets/json/shortcuts.json" }),
|
|
16
|
+
];
|
|
11
17
|
}
|
|
12
18
|
get el() { return getElement(this); }
|
|
13
19
|
};
|