@genexus/genexus-ide-ui 1.1.17 → 1.1.19
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/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/gx-ide-json-import.cjs.entry.js +225 -0
- package/dist/cjs/gx-ide-json-import.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/json-import/gx-ide-assets/json-import/langs/json-import.lang.en.json +18 -0
- package/dist/collection/components/json-import/gx-ide-assets/json-import/langs/json-import.lang.ja.json +18 -0
- package/dist/collection/components/json-import/gx-ide-assets/json-import/langs/json-import.lang.zh.json +18 -0
- package/dist/collection/components/json-import/gx-ide-assets/json-import/shortcuts.json +15 -0
- package/dist/collection/components/json-import/json-import.css +77 -0
- package/dist/collection/components/json-import/json-import.js +482 -0
- package/dist/collection/components/json-import/json-import.js.map +1 -0
- package/dist/collection/testing/locale.e2e.js +1 -0
- package/dist/collection/testing/locale.e2e.js.map +1 -1
- package/dist/components/gx-ide-json-import.d.ts +11 -0
- package/dist/components/gx-ide-json-import.js +263 -0
- package/dist/components/gx-ide-json-import.js.map +1 -0
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-json-import.entry.js +221 -0
- package/dist/esm/gx-ide-json-import.entry.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/json-import/langs/json-import.lang.en.json +18 -0
- package/dist/genexus-ide-ui/gx-ide-assets/json-import/langs/json-import.lang.ja.json +18 -0
- package/dist/genexus-ide-ui/gx-ide-assets/json-import/langs/json-import.lang.zh.json +18 -0
- package/dist/genexus-ide-ui/gx-ide-assets/json-import/shortcuts.json +15 -0
- package/dist/genexus-ide-ui/p-8bb9242a.entry.js +326 -0
- package/dist/genexus-ide-ui/p-8bb9242a.entry.js.map +1 -0
- package/dist/types/components/json-import/json-import.d.ts +75 -0
- package/dist/types/components.d.ts +131 -16
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["jsonImportCss","CSS_BUNDLES","FILE_ICON","getIconPath","category","name","colorType","MENU_DELETE","GxIdeJsonImport","_GxIdeJsonImport_componentLocale","set","this","_GxIdeJsonImport_data","description","assumeVarcharForNull","parentId","json","_GxIdeJsonImport_radioOptionsModel","_GxIdeJsonImport_shortcutsSrc","getAssetPath","_GxIdeJsonImport_checkBoxEl","_GxIdeJsonImport_chShortcutsEl","_GxIdeJsonImport_descriptionEl","_GxIdeJsonImport_fileInputHiddenEl","_GxIdeJsonImport_moduleEntitySelector","_GxIdeJsonImport_nameEl","_GxIdeJsonImport_radioGroup","_GxIdeJsonImport_initializeValidatableControls","validatableControls","__classPrivateFieldGet","forEach","validatableControl","id","reference","hasError","message","undefined","_GxIdeJsonImport_evaluateTooltipRender","controlReference","_b","_a","get","_c","h","class","actionElement","blockAlign","config","tooltipSettings","inlineAlign","delay","_GxIdeJsonImport_validateForm","value","trim","radioGroupValue","fileName","jsonContent","isNameValid","validateNameCallback","Boolean","isJsonValid","validateJSONCallback","isFormValid","_GxIdeJsonImport_nameChangedHandler","call","_GxIdeJsonImport_changeRadioHandler","_GxIdeJsonImport_removeFileSelection","modeChangeCallback","_GxIdeJsonImport_createHandler","confirmCallback","then","formSubmitResult","validateControls","fileChangeCallback","_GxIdeJsonImport_selectFileInputChangedHandler","event","target","files","length","_GxIdeJsonImport_selectFileInputHandler","click","_GxIdeJsonImport_handleEditorChange","_GxIdeJsonImport_handleSlotChange","e","elements","assignedElements","element","addEventListener","detail","content","Map","componentWillLoad","__classPrivateFieldSet","Locale","getComponentStrings","el","caption","header","filePathLabel","main","jsonAreaLabel","componentDidLoad","suspendShortcuts","suspend","render","Host","model","src","ref","htmlFor","nameFieldLabel","onInput","descriptionFieldLabel","moduleFolderLabel","defaultParent","labelPosition","defaultValue","selectEntityCallback","selectModuleCallback","onChange","defaultRadioValue","autoFocus","part","type","readonly","placeholder","fileNamePlaceholder","startImgSrc","disabled","hidden","accept","removeFileSelection","title","onClick","selectfileButton","onSlotchange","checkBoxLabel","checkedValue","cancelCallback","footer","btnCancel","btnOk"],"sources":["src/components/json-import/json-import.scss?tag=gx-ide-json-import&encapsulation=shadow","src/components/json-import/json-import.tsx"],"sourcesContent":[":host {\n display: grid;\n grid-template-rows: max-content 1fr max-content;\n block-size: 100%;\n overflow: auto;\n}\n\n.section {\n // just for semantics (allows header and footer element)\n display: contents;\n}\n\n.header {\n}\n\n.main {\n display: grid;\n grid-template-rows: 1fr max-content;\n overflow: auto;\n}\n.field-group-name-description-module {\n grid-template-areas:\n \"name-label name-input\"\n \"description-label description-input\"\n \"module-label module-entity-selector\";\n grid-template-columns: max-content 1fr;\n}\n\n.name-label {\n grid-area: name-label;\n}\n.name-input {\n grid-area: name-input;\n}\n.description-label {\n grid-area: description-label;\n}\n.description-input {\n grid-area: description-input;\n}\n.module-label {\n grid-area: module-label;\n}\n.module-entity-selector {\n grid-area: module-entity-selector;\n}\n.radio-file-input-wrapper {\n grid-template-columns: max-content 1fr;\n}\ndiv.field-file-input {\n grid-template-columns: 1fr max-content;\n}\n\n.json-area {\n display: grid;\n grid-template-rows: 1fr max-content;\n overflow: auto;\n}\n.slotted-container {\n overflow: auto;\n block-size: 100%;\n}\n\n.input-file {\n display: grid;\n grid-template-columns: 1fr max-content;\n}\n\n.radio-group {\n gap: 30px !important;\n}\n.tooltip {\n height: 0px;\n}\n","import {\n Component,\n Host,\n Prop,\n Element,\n State,\n getAssetPath,\n Method,\n h\n} from \"@stencil/core\";\n\nimport { MercuryBundles, getIconPath } from \"@genexus/mercury\";\nimport { config } from \"../../common/config\";\n\nimport { Locale } from \"../../common/locale\";\nimport { FormSubmitResult } from \"../../common/types\";\nimport { RadioGroupItemModel } from \"@genexus/chameleon-controls-library/dist/types/components/radio-group/types\";\nimport {\n ControlValidation,\n validateControls\n} from \"../../common/form-validation\";\n\nconst CSS_BUNDLES: MercuryBundles = [\n \"resets/box-sizing\",\n \"components/tab\",\n \"components/tooltip\",\n \"utils/form--full\",\n \"utils/layout\",\n \"utils/typography\",\n \"utils/spacing\",\n \"chameleon/scrollbar\"\n];\n\nconst FILE_ICON = getIconPath({\n category: \"gemini-tools\",\n name: \"file\",\n colorType: \"primary\"\n});\n\nconst MENU_DELETE = getIconPath({\n category: \"menus\",\n name: \"delete\",\n colorType: \"primary\"\n});\n\n@Component({\n tag: \"gx-ide-json-import\",\n styleUrl: \"json-import.scss\",\n shadow: true,\n assetsDirs: [\"gx-ide-assets/json-import\"]\n})\nexport class GxIdeJsonImport {\n #componentLocale: any;\n #data: JsonImportData = {\n name: \"\",\n description: \"\",\n assumeVarcharForNull: false,\n parentId: \"\",\n json: \"\"\n };\n #radioOptionsModel: RadioGroupItemModel[] = [];\n #shortcutsSrc = getAssetPath(`./gx-ide-assets/json-import/shortcuts.json`);\n\n @Element() el: HTMLGxIdeJsonImportElement;\n #checkBoxEl!: HTMLChCheckboxElement;\n #chShortcutsEl: HTMLChShortcutsElement;\n #descriptionEl!: HTMLChEditElement;\n #fileInputHiddenEl!: HTMLInputElement;\n #moduleEntitySelector!: HTMLGxIdeEntitySelectorElement;\n #nameEl!: HTMLChEditElement;\n #radioGroup!: HTMLChRadioGroupRenderElement;\n\n @State() fileName: string;\n @State() radioGroupValue: string = \"file\";\n @State() isFormValid: boolean = false;\n @State() jsonContent: string = \"\";\n @State() validatableControls = new Map<string, ControlValidation>();\n\n /**\n * Callback that must be invoked when the user want to cancel the operation\n */\n @Prop() readonly cancelCallback: () => Promise<void>;\n\n /**\n * Callback that must be invoked when the user confirms the creation of the SDT. It receives as parameters the data necessary to create the SDT.\n */\n @Prop() readonly confirmCallback!: (\n data: JsonImportData\n ) => Promise<FormSubmitResult>;\n\n /**\n * Default value for Module/Folder field\n */\n @Prop() readonly defaultParent: EntityData;\n\n /**\n * Default value for Module/Folder field\n */\n @Prop() readonly defaultRadioValue: string;\n\n /**\n * Actual value for Module/Folder field\n */\n @Prop() readonly parent: EntityData;\n\n /**\n * Callback invoked when the action is executed in the Module/Folder filter. It returns the information of the selected object (id and name) or 'undefined' if it was canceled.\n */\n @Prop() readonly selectModuleCallback: SelectModuleCallback;\n\n /**\n * Callback invoked when the input mode changes between file and text.\n */\n @Prop() readonly modeChangeCallback?: (\n mode: \"file\" | \"text\"\n ) => Promise<void>;\n\n /**\n * Callback invoked when a file is selected or removed.\n */\n @Prop() readonly fileChangeCallback?: (file: File | null) => Promise<void>;\n\n /**\n * Callback para validar el nombre del objeto. Debe retornar true si el nombre es válido, false en caso contrario.\n */\n @Prop() readonly validateNameCallback?: (name: string) => boolean;\n\n /**\n * Callback para validar el JSON. Debe retornar true si el JSON es válido, false en caso contrario.\n */\n @Prop() readonly validateJSONCallback?: (json: string) => boolean;\n\n /**\n * Callback invocado cuando el contenido del JSON cambia\n */\n @Prop() readonly onJsonContentChange?: (content: string) => void;\n\n async componentWillLoad() {\n this.#componentLocale = await Locale.getComponentStrings(this.el);\n this.#radioOptionsModel = [\n {\n value: \"file\",\n caption: this.#componentLocale.header.filePathLabel\n },\n { value: \"text\", caption: this.#componentLocale.main.jsonAreaLabel }\n ];\n }\n\n componentDidLoad() {\n this.#initializeValidatableControls();\n }\n\n /**\n * Suspends or reactivates the shortcuts\n */\n @Method()\n async suspendShortcuts(suspendShortcuts: boolean) {\n this.#chShortcutsEl.suspend = suspendShortcuts;\n }\n\n #initializeValidatableControls = () => {\n const validatableControls: HTMLElement[] = [\n this.#nameEl,\n this.#moduleEntitySelector\n ];\n validatableControls.forEach(validatableControl => {\n if (validatableControl.id) {\n this.validatableControls.set(validatableControl.id, {\n reference: validatableControl,\n hasError: false,\n message: undefined\n });\n }\n });\n };\n\n #evaluateTooltipRender = (\n controlReference: HTMLElement\n ): HTMLChTooltipElement =>\n this.validatableControls?.get(controlReference?.id)?.hasError &&\n this.validatableControls.get(controlReference.id)?.message && (\n <ch-tooltip\n class=\"tooltip\"\n actionElement={controlReference as unknown as HTMLButtonElement}\n blockAlign={config.tooltipSettings.blockAlign}\n inlineAlign={config.tooltipSettings.inlineAlign}\n delay={config.tooltipSettings.delay}\n >\n {this.validatableControls.get(controlReference.id).message}\n </ch-tooltip>\n );\n\n #validateForm = () => {\n const name = this.#nameEl?.value?.trim() || \"\";\n const json =\n this.radioGroupValue === \"file\" ? this.fileName : this.jsonContent;\n\n const isNameValid = this.validateNameCallback\n ? this.validateNameCallback(name)\n : Boolean(name);\n\n const isJsonValid =\n this.radioGroupValue === \"file\"\n ? Boolean(this.fileName)\n : this.validateJSONCallback\n ? this.validateJSONCallback(json)\n : false;\n\n this.isFormValid = isNameValid && isJsonValid;\n };\n\n #nameChangedHandler = () => {\n this.#validateForm();\n };\n\n #changeRadioHandler = () => {\n this.radioGroupValue = this.#radioGroup.value;\n if (this.radioGroupValue === \"file\") {\n this.#checkBoxEl.value = \"false\";\n } else {\n this.#data.json = null;\n this.#removeFileSelection();\n this.#validateForm();\n }\n this.modeChangeCallback?.(this.radioGroupValue as \"file\" | \"text\");\n };\n\n #createHandler = () => {\n this.#data.name = this.#nameEl.value;\n this.#data.description = this.#descriptionEl.value;\n this.#data.parentId = this.#moduleEntitySelector.value?.id;\n this.#data.assumeVarcharForNull = this.#checkBoxEl.value === \"true\";\n this.confirmCallback(this.#data).then(\n (formSubmitResult: FormSubmitResult) => {\n this.validatableControls = validateControls(\n formSubmitResult,\n this.validatableControls\n );\n }\n );\n };\n\n #removeFileSelection = () => {\n this.#data.json = null;\n this.#fileInputHiddenEl.value = null;\n this.fileName = null;\n this.fileChangeCallback?.(null);\n this.#validateForm();\n };\n\n #selectFileInputChangedHandler = (event: InputEvent) => {\n const target = event.target as HTMLInputElement;\n if (target.files?.length > 0 && this.radioGroupValue === \"file\") {\n this.#data.json = target.files[0];\n this.fileName = target.files[0].name;\n this.fileChangeCallback?.(target.files[0]);\n this.#validateForm();\n }\n };\n\n #selectFileInputHandler = () => {\n this.#fileInputHiddenEl.click();\n };\n\n #handleEditorChange = () => {\n this.#validateForm();\n };\n\n #handleSlotChange = (e: Event) => {\n const elements = (e.target as HTMLSlotElement).assignedElements();\n if (elements.length > 0) {\n const element = elements[0];\n element.addEventListener(\"json-content-change\", ((event: CustomEvent) => {\n if (this.radioGroupValue === \"text\") {\n this.jsonContent = event.detail.content;\n this.#handleEditorChange();\n }\n }) as EventListener);\n }\n };\n\n render(): void {\n return (\n <Host class=\"widget\">\n <ch-theme model={CSS_BUNDLES}></ch-theme>\n <ch-shortcuts\n src={this.#shortcutsSrc}\n ref={(el: HTMLChShortcutsElement) =>\n (this.#chShortcutsEl = el as HTMLChShortcutsElement)\n }\n ></ch-shortcuts>\n <section class=\"section\">\n <header class=\"header field-group spacing-body control-header-with-border\">\n <div class=\"field-group field-group-name-description-module\">\n <label\n // name\n class=\"label name-label\"\n htmlFor=\"input-name\"\n >\n {this.#componentLocale.header.nameFieldLabel}\n </label>\n <ch-edit\n class=\"input name-input\"\n id=\"input-name\"\n ref={(el: HTMLChEditElement) =>\n (this.#nameEl = el as HTMLChEditElement)\n }\n onInput={this.#nameChangedHandler}\n ></ch-edit>\n {this.#evaluateTooltipRender(this.#nameEl)}\n\n <label\n // description\n class=\"label description-label\"\n htmlFor=\"input-description\"\n >\n {this.#componentLocale.header.descriptionFieldLabel}\n </label>\n <ch-edit\n class=\"input description-input\"\n id=\"input-description\"\n ref={(el: HTMLChEditElement) =>\n (this.#descriptionEl = el as HTMLChEditElement)\n }\n ></ch-edit>\n\n <label\n // module/folder\n class=\"label module-label\"\n htmlFor=\"input-module\"\n >\n {this.#componentLocale.header.moduleFolderLabel}\n </label>\n <gx-ide-entity-selector\n class=\"module module-entity-selector\"\n id=\"module\"\n value={this.defaultParent}\n ref={(el: HTMLGxIdeEntitySelectorElement) =>\n (this.#moduleEntitySelector =\n el as HTMLGxIdeEntitySelectorElement)\n }\n labelPosition=\"none\"\n defaultValue={this.defaultParent}\n selectEntityCallback={this.selectModuleCallback}\n ></gx-ide-entity-selector>\n {this.#evaluateTooltipRender(this.#moduleEntitySelector)}\n </div>\n\n <div class=\"radio-file-input-wrapper field-group\">\n <ch-radio-group-render\n // file url/text\n class=\"radio-group\"\n model={this.#radioOptionsModel}\n onChange={this.#changeRadioHandler}\n value={this.defaultRadioValue}\n ref={(el: HTMLChRadioGroupRenderElement) =>\n (this.#radioGroup = el as HTMLChRadioGroupRenderElement)\n }\n ></ch-radio-group-render>\n <div class=\"field field-inline field-file-input\">\n <ch-edit\n autoFocus\n id=\"file-name\"\n class=\"input\"\n part=\"file-name\"\n type=\"text\"\n value={this.fileName}\n readonly\n placeholder={this.#componentLocale.header.fileNamePlaceholder}\n startImgSrc={FILE_ICON}\n disabled={this.radioGroupValue !== \"file\"}\n ></ch-edit>\n <input\n hidden\n type=\"file\"\n accept=\".json\"\n onChange={this.#selectFileInputChangedHandler}\n ref={(el: HTMLInputElement) =>\n (this.#fileInputHiddenEl = el as HTMLInputElement)\n }\n />\n <div class=\"buttons-spacer\">\n <button\n aria-label={\n this.#componentLocale.header.removeFileSelection\n }\n title={this.#componentLocale.header.removeFileSelection}\n id=\"reset-all-button\"\n class=\"button-tertiary button-icon-only\"\n part=\"reset-all-button\"\n onClick={this.#removeFileSelection}\n disabled={this.radioGroupValue !== \"file\"}\n >\n <ch-image class=\"icon-md\" src={MENU_DELETE}></ch-image>\n </button>\n\n <button\n id=\"select-file-load-button\"\n class=\"button-primary\"\n part=\"select-file-load-button\"\n onClick={this.#selectFileInputHandler}\n disabled={this.radioGroupValue !== \"file\"}\n >\n {this.#componentLocale.header.selectfileButton}\n </button>\n </div>\n </div>\n </div>\n </header>\n <div class=\"main field-group\">\n <div class=\"json-area\">\n <div class=\"slotted-container scrollable\">\n <slot\n name=\"JsonTextEditor\"\n onSlotchange={this.#handleSlotChange}\n ></slot>\n </div>\n </div>\n <ch-checkbox\n class=\"checkbox spacing-body-block-end spacing-body-inline-start\"\n caption={this.#componentLocale.main.checkBoxLabel}\n checkedValue=\"true\"\n ref={(el: HTMLChCheckboxElement) =>\n (this.#checkBoxEl = el as HTMLChCheckboxElement)\n }\n ></ch-checkbox>\n </div>\n\n <footer class=\"control-footer control-footer-with-border spacing-body-block-end spacing-body-inline\">\n <div class=\"buttons-spacer\">\n <button\n class=\"button-secondary\"\n id=\"button-cancel\"\n onClick={this.cancelCallback}\n part=\"button-cancel\"\n >\n {this.#componentLocale.footer.btnCancel}\n </button>\n <button\n class=\"button-primary\"\n id=\"button-ok\"\n onClick={this.#createHandler}\n part=\"button-ok\"\n disabled={!this.isFormValid}\n >\n {this.#componentLocale.footer.btnOk}\n </button>\n </div>\n </footer>\n </section>\n </Host>\n );\n }\n}\n\nexport type JsonImportData = {\n name: string;\n description: string;\n parentId: string;\n json: File | string;\n assumeVarcharForNull: boolean;\n};\n\nexport type EntityData = {\n id: string;\n name: string;\n iconSrc?: string;\n};\n\nexport type SelectModuleCallback = () => Promise<EntityData | undefined>;\n"],"mappings":";;;;;;;;;;AAAA,MAAMA,IAAgB;;;;;;;;;;;;;;;;;ACsBtB,MAAMC,IAA8B,EAClC,qBACA,kBACA,sBACA,oBACA,gBACA,oBACA,iBACA;;AAGF,MAAMC,IAAYC,EAAY;EAC5BC,UAAU;EACVC,MAAM;EACNC,WAAW;;;AAGb,MAAMC,IAAcJ,EAAY;EAC9BC,UAAU;EACVC,MAAM;EACNC,WAAW;;;MASAE,IAAe;;;IAC1BC,EAAAC,IAAAC,WAAA;IACAC,EAAAF,IAAAC,MAAwB;MACtBN,MAAM;MACNQ,aAAa;MACbC,sBAAsB;MACtBC,UAAU;MACVC,MAAM;;IAERC,EAAAP,IAAAC,MAA4C;IAC5CO,EAAAR,IAAAC,MAAgBQ,EAAa;IAG7BC,EAAAV,IAAAC,WAAA;IACAU,EAAAX,IAAAC,WAAA;IACAW,EAAAZ,IAAAC,WAAA;IACA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;OACTD,EAAA;MACEtC,MAAK;MACLkI,cAAc1G,EAAAlB,MAAIuE,GAAA;UAIxBvC,EAAA;MACEC,OAAM;MACNoD,SAASnE,EAAAlB,MAAIF,GAAA,KAAkB0F,KAAKqC;MACpCC,cAAa;MACb7B,KAAMb,KACHH,EAAAjF,MAAIS,GAAe2E,GAA2B;SAKrDpD,EAAA;MAAQC,OAAM;OACZD,EAAA;MAAKC,OAAM;OACTD,EAAA;MACEC,OAAM;MACNZ,IAAG;MACHqG,SAAS1H,KAAK+H;MACdhB,MAAK;OAEJ7F,EAAAlB,MAAIF,GAAA,KAAkBkI,OAAOC,YAEhCjG,EAAA;MACEC,OAAM;MACNZ,IAAG;MACHqG,SAASxG,EAAAlB,MAAIyD,GAAA;MACbsD,MAAK;MACLM,WAAWrH,KAAKmD;OAEfjC,EAAAlB,MAAIF,GAAA,KAAkBkI,OAAOE"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { FormSubmitResult } from "../../common/types";
|
|
2
|
+
import { ControlValidation } from "../../common/form-validation";
|
|
3
|
+
export declare class GxIdeJsonImport {
|
|
4
|
+
#private;
|
|
5
|
+
el: HTMLGxIdeJsonImportElement;
|
|
6
|
+
fileName: string;
|
|
7
|
+
radioGroupValue: string;
|
|
8
|
+
isFormValid: boolean;
|
|
9
|
+
jsonContent: string;
|
|
10
|
+
validatableControls: Map<string, ControlValidation>;
|
|
11
|
+
/**
|
|
12
|
+
* Callback that must be invoked when the user want to cancel the operation
|
|
13
|
+
*/
|
|
14
|
+
readonly cancelCallback: () => Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Callback that must be invoked when the user confirms the creation of the SDT. It receives as parameters the data necessary to create the SDT.
|
|
17
|
+
*/
|
|
18
|
+
readonly confirmCallback: (data: JsonImportData) => Promise<FormSubmitResult>;
|
|
19
|
+
/**
|
|
20
|
+
* Default value for Module/Folder field
|
|
21
|
+
*/
|
|
22
|
+
readonly defaultParent: EntityData;
|
|
23
|
+
/**
|
|
24
|
+
* Default value for Module/Folder field
|
|
25
|
+
*/
|
|
26
|
+
readonly defaultRadioValue: string;
|
|
27
|
+
/**
|
|
28
|
+
* Actual value for Module/Folder field
|
|
29
|
+
*/
|
|
30
|
+
readonly parent: EntityData;
|
|
31
|
+
/**
|
|
32
|
+
* Callback invoked when the action is executed in the Module/Folder filter. It returns the information of the selected object (id and name) or 'undefined' if it was canceled.
|
|
33
|
+
*/
|
|
34
|
+
readonly selectModuleCallback: SelectModuleCallback;
|
|
35
|
+
/**
|
|
36
|
+
* Callback invoked when the input mode changes between file and text.
|
|
37
|
+
*/
|
|
38
|
+
readonly modeChangeCallback?: (mode: "file" | "text") => Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Callback invoked when a file is selected or removed.
|
|
41
|
+
*/
|
|
42
|
+
readonly fileChangeCallback?: (file: File | null) => Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Callback para validar el nombre del objeto. Debe retornar true si el nombre es válido, false en caso contrario.
|
|
45
|
+
*/
|
|
46
|
+
readonly validateNameCallback?: (name: string) => boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Callback para validar el JSON. Debe retornar true si el JSON es válido, false en caso contrario.
|
|
49
|
+
*/
|
|
50
|
+
readonly validateJSONCallback?: (json: string) => boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Callback invocado cuando el contenido del JSON cambia
|
|
53
|
+
*/
|
|
54
|
+
readonly onJsonContentChange?: (content: string) => void;
|
|
55
|
+
componentWillLoad(): Promise<void>;
|
|
56
|
+
componentDidLoad(): void;
|
|
57
|
+
/**
|
|
58
|
+
* Suspends or reactivates the shortcuts
|
|
59
|
+
*/
|
|
60
|
+
suspendShortcuts(suspendShortcuts: boolean): Promise<void>;
|
|
61
|
+
render(): void;
|
|
62
|
+
}
|
|
63
|
+
export type JsonImportData = {
|
|
64
|
+
name: string;
|
|
65
|
+
description: string;
|
|
66
|
+
parentId: string;
|
|
67
|
+
json: File | string;
|
|
68
|
+
assumeVarcharForNull: boolean;
|
|
69
|
+
};
|
|
70
|
+
export type EntityData = {
|
|
71
|
+
id: string;
|
|
72
|
+
name: string;
|
|
73
|
+
iconSrc?: string;
|
|
74
|
+
};
|
|
75
|
+
export type SelectModuleCallback = () => Promise<EntityData | undefined>;
|
|
@@ -37,6 +37,7 @@ import { ModuleServerData, ModuleServerType } from "./components/modules/types";
|
|
|
37
37
|
import { CancelCallback as CancelCallback6, ConfirmCallback as ConfirmCallback5, SelectSourceCallback } from "./components/modules/edit-module-server/edit-module-server";
|
|
38
38
|
import { FileUploadState, UploadedFile, UploadResult } from "./components/file-uploader/types";
|
|
39
39
|
import { CancelCallback as CancelCallback7, GamConfigData, RepairCallback, SaveCallback } from "./components/gam-installation-settings/gam-installation-settings";
|
|
40
|
+
import { EntityData as EntityData1, JsonImportData, SelectModuleCallback as SelectModuleCallback1 } from "./components/json-import/json-import";
|
|
40
41
|
import { AddObjectsCallback as AddObjectsCallback1, AddReferencesCallback, CancelCallback as CancelCallback8, ExportCallback as ExportCallback1, ExportFileDirectoryCallback, KBPropertiesCallback, KBPropertyType, OptionsCallback as OptionsCallback1 } from "./components/kb-manager-export/types";
|
|
41
42
|
import { CancelCallback as CancelCallback9, ImportCallback, LoadCallback as LoadCallback1, ObjectContextMenuCallback, OptionsCallback as OptionsCallback2 } from "./components/kb-manager-import/kb-manager-import";
|
|
42
43
|
import { CheckedItemsInfo } from "./components/_helpers/list-selector/list-selector";
|
|
@@ -47,10 +48,10 @@ import { ExecuteActionCallback as ExecuteActionCallback1, ServerContextMenuCallb
|
|
|
47
48
|
import { CancelCallback as CancelCallback10, CloseCallback, ConfirmCallback as ConfirmCallback6, HeaderData, ItemSelectedCallback, NavigationData } from "./components/navigation-report/navigation-report";
|
|
48
49
|
import { CancelCallback as CancelCallback11, CreateCallback, GetDataSourcesCallback, GetEnvironmentNameCallback, GetFrontEndsCallback } from "./components/new-environment/new-environment";
|
|
49
50
|
import { CancelCallback as CancelCallback12, CreateCallback as CreateCallback1, GetDataSourcesCallback as GetDataSourcesCallback1, GetFrontEndsCallback as GetFrontEndsCallback1, SelectLocationCallback } from "./components/new-kb/new-kb";
|
|
50
|
-
import { CancelCallback as CancelCallback13, CreateCallback as CreateCallback2, NewObjectData, SelectModuleCallback as
|
|
51
|
+
import { CancelCallback as CancelCallback13, CreateCallback as CreateCallback2, NewObjectData, SelectModuleCallback as SelectModuleCallback2, SuggestDescriptionCallback, SuggestNameCallback, TypeCategoryData, ValidateNameCallback } from "./components/new-object/new-object";
|
|
51
52
|
import { NewVersionData } from "./components/new-version/new-version";
|
|
52
53
|
import { ContextMenuInfo as ContextMenuInfo1, FormSubmitResult as FormSubmitResult1 } from "./components";
|
|
53
|
-
import { CancelCallback as CancelCallback14, LoadCallback as LoadCallback2, NewObjectCallback, OpenSelectionCallback, SelectModuleCallback as
|
|
54
|
+
import { CancelCallback as CancelCallback14, LoadCallback as LoadCallback2, NewObjectCallback, OpenSelectionCallback, SelectModuleCallback as SelectModuleCallback3 } from "./components/object-selector/object-selector";
|
|
54
55
|
import { CancelCallback as CancelCallback15, ImportCallback as ImportCallback1, LoadCallback as LoadCallback3, SelectParentCallback } from "./components/open-api-import/open-api-import";
|
|
55
56
|
import { PluginDetailsData } from "./components/plugin-details/plugin-details";
|
|
56
57
|
import { PluginAction, PluginData } from "./components/plugin-explorer/plugin-explorer";
|
|
@@ -74,8 +75,8 @@ import { TitleAlignment as TitleAlignment1, TitleType as TitleType1 } from "./co
|
|
|
74
75
|
import { CloseCallback as CloseCallback1, SlideInfo, TransitionType } from "./components/welcome-page/welcome-page";
|
|
75
76
|
import { WFConfigData } from "./components/wf-settings/wf-settings";
|
|
76
77
|
import { ContextMenuCallback, DeleteSelectionCallback, LoadCallback as LoadCallback7, ObjectActionCallback, OpenSelectionCallback as OpenSelectionCallback1, SelectionChangeCallback } from "./components/ww-attributes/ww-attributes";
|
|
77
|
-
import { ContextMenuCallback as ContextMenuCallback1, DeleteSelectionCallback as DeleteSelectionCallback1, LoadCallback as LoadCallback8, NewFileCallback, OpenSelectionCallback as OpenSelectionCallback2, SelectionChangeCallback as SelectionChangeCallback1, SelectModuleCallback as
|
|
78
|
-
import { ContextMenuCallback as ContextMenuCallback2, DeleteSelectionCallback as DeleteSelectionCallback2, LoadCallback as LoadCallback9, LoadImageItemsCallback, NewObjectCallback as NewObjectCallback1, OpenSelectionCallback as OpenSelectionCallback3, SelectionObjectCallback, SelectModuleCallback as
|
|
78
|
+
import { ContextMenuCallback as ContextMenuCallback1, DeleteSelectionCallback as DeleteSelectionCallback1, LoadCallback as LoadCallback8, NewFileCallback, OpenSelectionCallback as OpenSelectionCallback2, SelectionChangeCallback as SelectionChangeCallback1, SelectModuleCallback as SelectModuleCallback4 } from "./components/ww-files/ww-files";
|
|
79
|
+
import { ContextMenuCallback as ContextMenuCallback2, DeleteSelectionCallback as DeleteSelectionCallback2, LoadCallback as LoadCallback9, LoadImageItemsCallback, NewObjectCallback as NewObjectCallback1, OpenSelectionCallback as OpenSelectionCallback3, SelectionObjectCallback, SelectModuleCallback as SelectModuleCallback5 } from "./components/ww-images/ww-images";
|
|
79
80
|
export { DetailsCallback, PrivacyPolicyCallback, TermsAndConditionsCallback } from "./components/about/about";
|
|
80
81
|
export { AiStatus, Message, UserMessageCallback } from "./components/ai-assistant/ai-assistant";
|
|
81
82
|
export { MessageType } from "./components/ai-assistant/ai-assistant";
|
|
@@ -108,6 +109,7 @@ export { ModuleServerData, ModuleServerType } from "./components/modules/types";
|
|
|
108
109
|
export { CancelCallback as CancelCallback6, ConfirmCallback as ConfirmCallback5, SelectSourceCallback } from "./components/modules/edit-module-server/edit-module-server";
|
|
109
110
|
export { FileUploadState, UploadedFile, UploadResult } from "./components/file-uploader/types";
|
|
110
111
|
export { CancelCallback as CancelCallback7, GamConfigData, RepairCallback, SaveCallback } from "./components/gam-installation-settings/gam-installation-settings";
|
|
112
|
+
export { EntityData as EntityData1, JsonImportData, SelectModuleCallback as SelectModuleCallback1 } from "./components/json-import/json-import";
|
|
111
113
|
export { AddObjectsCallback as AddObjectsCallback1, AddReferencesCallback, CancelCallback as CancelCallback8, ExportCallback as ExportCallback1, ExportFileDirectoryCallback, KBPropertiesCallback, KBPropertyType, OptionsCallback as OptionsCallback1 } from "./components/kb-manager-export/types";
|
|
112
114
|
export { CancelCallback as CancelCallback9, ImportCallback, LoadCallback as LoadCallback1, ObjectContextMenuCallback, OptionsCallback as OptionsCallback2 } from "./components/kb-manager-import/kb-manager-import";
|
|
113
115
|
export { CheckedItemsInfo } from "./components/_helpers/list-selector/list-selector";
|
|
@@ -118,10 +120,10 @@ export { ExecuteActionCallback as ExecuteActionCallback1, ServerContextMenuCallb
|
|
|
118
120
|
export { CancelCallback as CancelCallback10, CloseCallback, ConfirmCallback as ConfirmCallback6, HeaderData, ItemSelectedCallback, NavigationData } from "./components/navigation-report/navigation-report";
|
|
119
121
|
export { CancelCallback as CancelCallback11, CreateCallback, GetDataSourcesCallback, GetEnvironmentNameCallback, GetFrontEndsCallback } from "./components/new-environment/new-environment";
|
|
120
122
|
export { CancelCallback as CancelCallback12, CreateCallback as CreateCallback1, GetDataSourcesCallback as GetDataSourcesCallback1, GetFrontEndsCallback as GetFrontEndsCallback1, SelectLocationCallback } from "./components/new-kb/new-kb";
|
|
121
|
-
export { CancelCallback as CancelCallback13, CreateCallback as CreateCallback2, NewObjectData, SelectModuleCallback as
|
|
123
|
+
export { CancelCallback as CancelCallback13, CreateCallback as CreateCallback2, NewObjectData, SelectModuleCallback as SelectModuleCallback2, SuggestDescriptionCallback, SuggestNameCallback, TypeCategoryData, ValidateNameCallback } from "./components/new-object/new-object";
|
|
122
124
|
export { NewVersionData } from "./components/new-version/new-version";
|
|
123
125
|
export { ContextMenuInfo as ContextMenuInfo1, FormSubmitResult as FormSubmitResult1 } from "./components";
|
|
124
|
-
export { CancelCallback as CancelCallback14, LoadCallback as LoadCallback2, NewObjectCallback, OpenSelectionCallback, SelectModuleCallback as
|
|
126
|
+
export { CancelCallback as CancelCallback14, LoadCallback as LoadCallback2, NewObjectCallback, OpenSelectionCallback, SelectModuleCallback as SelectModuleCallback3 } from "./components/object-selector/object-selector";
|
|
125
127
|
export { CancelCallback as CancelCallback15, ImportCallback as ImportCallback1, LoadCallback as LoadCallback3, SelectParentCallback } from "./components/open-api-import/open-api-import";
|
|
126
128
|
export { PluginDetailsData } from "./components/plugin-details/plugin-details";
|
|
127
129
|
export { PluginAction, PluginData } from "./components/plugin-explorer/plugin-explorer";
|
|
@@ -145,8 +147,8 @@ export { TitleAlignment as TitleAlignment1, TitleType as TitleType1 } from "./co
|
|
|
145
147
|
export { CloseCallback as CloseCallback1, SlideInfo, TransitionType } from "./components/welcome-page/welcome-page";
|
|
146
148
|
export { WFConfigData } from "./components/wf-settings/wf-settings";
|
|
147
149
|
export { ContextMenuCallback, DeleteSelectionCallback, LoadCallback as LoadCallback7, ObjectActionCallback, OpenSelectionCallback as OpenSelectionCallback1, SelectionChangeCallback } from "./components/ww-attributes/ww-attributes";
|
|
148
|
-
export { ContextMenuCallback as ContextMenuCallback1, DeleteSelectionCallback as DeleteSelectionCallback1, LoadCallback as LoadCallback8, NewFileCallback, OpenSelectionCallback as OpenSelectionCallback2, SelectionChangeCallback as SelectionChangeCallback1, SelectModuleCallback as
|
|
149
|
-
export { ContextMenuCallback as ContextMenuCallback2, DeleteSelectionCallback as DeleteSelectionCallback2, LoadCallback as LoadCallback9, LoadImageItemsCallback, NewObjectCallback as NewObjectCallback1, OpenSelectionCallback as OpenSelectionCallback3, SelectionObjectCallback, SelectModuleCallback as
|
|
150
|
+
export { ContextMenuCallback as ContextMenuCallback1, DeleteSelectionCallback as DeleteSelectionCallback1, LoadCallback as LoadCallback8, NewFileCallback, OpenSelectionCallback as OpenSelectionCallback2, SelectionChangeCallback as SelectionChangeCallback1, SelectModuleCallback as SelectModuleCallback4 } from "./components/ww-files/ww-files";
|
|
151
|
+
export { ContextMenuCallback as ContextMenuCallback2, DeleteSelectionCallback as DeleteSelectionCallback2, LoadCallback as LoadCallback9, LoadImageItemsCallback, NewObjectCallback as NewObjectCallback1, OpenSelectionCallback as OpenSelectionCallback3, SelectionObjectCallback, SelectModuleCallback as SelectModuleCallback5 } from "./components/ww-images/ww-images";
|
|
150
152
|
export namespace Components {
|
|
151
153
|
interface GxIdeAbout {
|
|
152
154
|
/**
|
|
@@ -1188,6 +1190,60 @@ export namespace Components {
|
|
|
1188
1190
|
*/
|
|
1189
1191
|
"saveCallback": SaveCallback;
|
|
1190
1192
|
}
|
|
1193
|
+
interface GxIdeJsonImport {
|
|
1194
|
+
/**
|
|
1195
|
+
* Callback that must be invoked when the user want to cancel the operation
|
|
1196
|
+
*/
|
|
1197
|
+
"cancelCallback": () => Promise<void>;
|
|
1198
|
+
/**
|
|
1199
|
+
* Callback that must be invoked when the user confirms the creation of the SDT. It receives as parameters the data necessary to create the SDT.
|
|
1200
|
+
*/
|
|
1201
|
+
"confirmCallback": (
|
|
1202
|
+
data: JsonImportData
|
|
1203
|
+
) => Promise<FormSubmitResult>;
|
|
1204
|
+
/**
|
|
1205
|
+
* Default value for Module/Folder field
|
|
1206
|
+
*/
|
|
1207
|
+
"defaultParent": EntityData1;
|
|
1208
|
+
/**
|
|
1209
|
+
* Default value for Module/Folder field
|
|
1210
|
+
*/
|
|
1211
|
+
"defaultRadioValue": string;
|
|
1212
|
+
/**
|
|
1213
|
+
* Callback invoked when a file is selected or removed.
|
|
1214
|
+
*/
|
|
1215
|
+
"fileChangeCallback"?: (file: File | null) => Promise<void>;
|
|
1216
|
+
/**
|
|
1217
|
+
* Callback invoked when the input mode changes between file and text.
|
|
1218
|
+
*/
|
|
1219
|
+
"modeChangeCallback"?: (
|
|
1220
|
+
mode: "file" | "text"
|
|
1221
|
+
) => Promise<void>;
|
|
1222
|
+
/**
|
|
1223
|
+
* Callback invocado cuando el contenido del JSON cambia
|
|
1224
|
+
*/
|
|
1225
|
+
"onJsonContentChange"?: (content: string) => void;
|
|
1226
|
+
/**
|
|
1227
|
+
* Actual value for Module/Folder field
|
|
1228
|
+
*/
|
|
1229
|
+
"parent": EntityData1;
|
|
1230
|
+
/**
|
|
1231
|
+
* Callback invoked when the action is executed in the Module/Folder filter. It returns the information of the selected object (id and name) or 'undefined' if it was canceled.
|
|
1232
|
+
*/
|
|
1233
|
+
"selectModuleCallback": SelectModuleCallback1;
|
|
1234
|
+
/**
|
|
1235
|
+
* Suspends or reactivates the shortcuts
|
|
1236
|
+
*/
|
|
1237
|
+
"suspendShortcuts": (suspendShortcuts: boolean) => Promise<void>;
|
|
1238
|
+
/**
|
|
1239
|
+
* Callback para validar el JSON. Debe retornar true si el JSON es válido, false en caso contrario.
|
|
1240
|
+
*/
|
|
1241
|
+
"validateJSONCallback"?: (json: string) => boolean;
|
|
1242
|
+
/**
|
|
1243
|
+
* Callback para validar el nombre del objeto. Debe retornar true si el nombre es válido, false en caso contrario.
|
|
1244
|
+
*/
|
|
1245
|
+
"validateNameCallback"?: (name: string) => boolean;
|
|
1246
|
+
}
|
|
1191
1247
|
interface GxIdeKbManagerExport {
|
|
1192
1248
|
/**
|
|
1193
1249
|
* Callback invoked when the user wants to include KB properties.
|
|
@@ -1631,7 +1687,7 @@ export namespace Components {
|
|
|
1631
1687
|
/**
|
|
1632
1688
|
* Callback invoked when the action is executed on the Module/Folder filter (button '...'). It returns the information of the selected object (id and name) or 'undefined' if it was canceled.
|
|
1633
1689
|
*/
|
|
1634
|
-
"selectModuleCallback":
|
|
1690
|
+
"selectModuleCallback": SelectModuleCallback2;
|
|
1635
1691
|
/**
|
|
1636
1692
|
* Applies a shadow all around
|
|
1637
1693
|
*/
|
|
@@ -1733,7 +1789,7 @@ export namespace Components {
|
|
|
1733
1789
|
/**
|
|
1734
1790
|
* Callback invoked when the action is executed in the Module/Folder filter. It returns the information of the selected object (id and name) or 'undefined' if it was canceled.
|
|
1735
1791
|
*/
|
|
1736
|
-
"selectModuleCallback":
|
|
1792
|
+
"selectModuleCallback": SelectModuleCallback3;
|
|
1737
1793
|
/**
|
|
1738
1794
|
* Suspends or reactivates the shortcuts
|
|
1739
1795
|
*/
|
|
@@ -2525,7 +2581,7 @@ export namespace Components {
|
|
|
2525
2581
|
/**
|
|
2526
2582
|
* Callback invoked when the action is executed on the Module/Folder filter (button '...'). It returns the information of the selected object (id and name) or 'undefined' if it was canceled.
|
|
2527
2583
|
*/
|
|
2528
|
-
"selectModuleCallback":
|
|
2584
|
+
"selectModuleCallback": SelectModuleCallback4;
|
|
2529
2585
|
/**
|
|
2530
2586
|
* This is a function provided by the developer for expanded the data of files that is double-clicked or entered.
|
|
2531
2587
|
*/
|
|
@@ -2639,7 +2695,7 @@ export namespace Components {
|
|
|
2639
2695
|
/**
|
|
2640
2696
|
* Callback invoked when the action is executed on the Module/Folder filter (button '...'). It returns the information of the selected object (id and name) or 'undefined' if it was canceled.
|
|
2641
2697
|
*/
|
|
2642
|
-
"selectModuleCallback":
|
|
2698
|
+
"selectModuleCallback": SelectModuleCallback5;
|
|
2643
2699
|
/**
|
|
2644
2700
|
* This is a function provided by the developer for expanded the data of images that is double-clicked or entered.
|
|
2645
2701
|
*/
|
|
@@ -3144,6 +3200,12 @@ declare global {
|
|
|
3144
3200
|
prototype: HTMLGxIdeGamInstallationSettingsElement;
|
|
3145
3201
|
new (): HTMLGxIdeGamInstallationSettingsElement;
|
|
3146
3202
|
};
|
|
3203
|
+
interface HTMLGxIdeJsonImportElement extends Components.GxIdeJsonImport, HTMLStencilElement {
|
|
3204
|
+
}
|
|
3205
|
+
var HTMLGxIdeJsonImportElement: {
|
|
3206
|
+
prototype: HTMLGxIdeJsonImportElement;
|
|
3207
|
+
new (): HTMLGxIdeJsonImportElement;
|
|
3208
|
+
};
|
|
3147
3209
|
interface HTMLGxIdeKbManagerExportElement extends Components.GxIdeKbManagerExport, HTMLStencilElement {
|
|
3148
3210
|
}
|
|
3149
3211
|
var HTMLGxIdeKbManagerExportElement: {
|
|
@@ -3669,6 +3731,7 @@ declare global {
|
|
|
3669
3731
|
"gx-ide-file-item": HTMLGxIdeFileItemElement;
|
|
3670
3732
|
"gx-ide-file-uploader": HTMLGxIdeFileUploaderElement;
|
|
3671
3733
|
"gx-ide-gam-installation-settings": HTMLGxIdeGamInstallationSettingsElement;
|
|
3734
|
+
"gx-ide-json-import": HTMLGxIdeJsonImportElement;
|
|
3672
3735
|
"gx-ide-kb-manager-export": HTMLGxIdeKbManagerExportElement;
|
|
3673
3736
|
"gx-ide-kb-manager-import": HTMLGxIdeKbManagerImportElement;
|
|
3674
3737
|
"gx-ide-list-selector": HTMLGxIdeListSelectorElement;
|
|
@@ -4796,6 +4859,56 @@ declare namespace LocalJSX {
|
|
|
4796
4859
|
*/
|
|
4797
4860
|
"saveCallback"?: SaveCallback;
|
|
4798
4861
|
}
|
|
4862
|
+
interface GxIdeJsonImport {
|
|
4863
|
+
/**
|
|
4864
|
+
* Callback that must be invoked when the user want to cancel the operation
|
|
4865
|
+
*/
|
|
4866
|
+
"cancelCallback"?: () => Promise<void>;
|
|
4867
|
+
/**
|
|
4868
|
+
* Callback that must be invoked when the user confirms the creation of the SDT. It receives as parameters the data necessary to create the SDT.
|
|
4869
|
+
*/
|
|
4870
|
+
"confirmCallback": (
|
|
4871
|
+
data: JsonImportData
|
|
4872
|
+
) => Promise<FormSubmitResult>;
|
|
4873
|
+
/**
|
|
4874
|
+
* Default value for Module/Folder field
|
|
4875
|
+
*/
|
|
4876
|
+
"defaultParent"?: EntityData1;
|
|
4877
|
+
/**
|
|
4878
|
+
* Default value for Module/Folder field
|
|
4879
|
+
*/
|
|
4880
|
+
"defaultRadioValue"?: string;
|
|
4881
|
+
/**
|
|
4882
|
+
* Callback invoked when a file is selected or removed.
|
|
4883
|
+
*/
|
|
4884
|
+
"fileChangeCallback"?: (file: File | null) => Promise<void>;
|
|
4885
|
+
/**
|
|
4886
|
+
* Callback invoked when the input mode changes between file and text.
|
|
4887
|
+
*/
|
|
4888
|
+
"modeChangeCallback"?: (
|
|
4889
|
+
mode: "file" | "text"
|
|
4890
|
+
) => Promise<void>;
|
|
4891
|
+
/**
|
|
4892
|
+
* Callback invocado cuando el contenido del JSON cambia
|
|
4893
|
+
*/
|
|
4894
|
+
"onJsonContentChange"?: (content: string) => void;
|
|
4895
|
+
/**
|
|
4896
|
+
* Actual value for Module/Folder field
|
|
4897
|
+
*/
|
|
4898
|
+
"parent"?: EntityData1;
|
|
4899
|
+
/**
|
|
4900
|
+
* Callback invoked when the action is executed in the Module/Folder filter. It returns the information of the selected object (id and name) or 'undefined' if it was canceled.
|
|
4901
|
+
*/
|
|
4902
|
+
"selectModuleCallback"?: SelectModuleCallback1;
|
|
4903
|
+
/**
|
|
4904
|
+
* Callback para validar el JSON. Debe retornar true si el JSON es válido, false en caso contrario.
|
|
4905
|
+
*/
|
|
4906
|
+
"validateJSONCallback"?: (json: string) => boolean;
|
|
4907
|
+
/**
|
|
4908
|
+
* Callback para validar el nombre del objeto. Debe retornar true si el nombre es válido, false en caso contrario.
|
|
4909
|
+
*/
|
|
4910
|
+
"validateNameCallback"?: (name: string) => boolean;
|
|
4911
|
+
}
|
|
4799
4912
|
interface GxIdeKbManagerExport {
|
|
4800
4913
|
/**
|
|
4801
4914
|
* Callback invoked when the user wants to include KB properties.
|
|
@@ -5259,7 +5372,7 @@ declare namespace LocalJSX {
|
|
|
5259
5372
|
/**
|
|
5260
5373
|
* Callback invoked when the action is executed on the Module/Folder filter (button '...'). It returns the information of the selected object (id and name) or 'undefined' if it was canceled.
|
|
5261
5374
|
*/
|
|
5262
|
-
"selectModuleCallback"?:
|
|
5375
|
+
"selectModuleCallback"?: SelectModuleCallback2;
|
|
5263
5376
|
/**
|
|
5264
5377
|
* Applies a shadow all around
|
|
5265
5378
|
*/
|
|
@@ -5357,7 +5470,7 @@ declare namespace LocalJSX {
|
|
|
5357
5470
|
/**
|
|
5358
5471
|
* Callback invoked when the action is executed in the Module/Folder filter. It returns the information of the selected object (id and name) or 'undefined' if it was canceled.
|
|
5359
5472
|
*/
|
|
5360
|
-
"selectModuleCallback"?:
|
|
5473
|
+
"selectModuleCallback"?: SelectModuleCallback3;
|
|
5361
5474
|
/**
|
|
5362
5475
|
* The types render in the filter type selector
|
|
5363
5476
|
*/
|
|
@@ -6153,7 +6266,7 @@ declare namespace LocalJSX {
|
|
|
6153
6266
|
/**
|
|
6154
6267
|
* Callback invoked when the action is executed on the Module/Folder filter (button '...'). It returns the information of the selected object (id and name) or 'undefined' if it was canceled.
|
|
6155
6268
|
*/
|
|
6156
|
-
"selectModuleCallback":
|
|
6269
|
+
"selectModuleCallback": SelectModuleCallback4;
|
|
6157
6270
|
/**
|
|
6158
6271
|
* This is a function provided by the developer for expanded the data of files that is double-clicked or entered.
|
|
6159
6272
|
*/
|
|
@@ -6267,7 +6380,7 @@ declare namespace LocalJSX {
|
|
|
6267
6380
|
/**
|
|
6268
6381
|
* Callback invoked when the action is executed on the Module/Folder filter (button '...'). It returns the information of the selected object (id and name) or 'undefined' if it was canceled.
|
|
6269
6382
|
*/
|
|
6270
|
-
"selectModuleCallback":
|
|
6383
|
+
"selectModuleCallback": SelectModuleCallback5;
|
|
6271
6384
|
/**
|
|
6272
6385
|
* This is a function provided by the developer for expanded the data of images that is double-clicked or entered.
|
|
6273
6386
|
*/
|
|
@@ -6317,6 +6430,7 @@ declare namespace LocalJSX {
|
|
|
6317
6430
|
"gx-ide-file-item": GxIdeFileItem;
|
|
6318
6431
|
"gx-ide-file-uploader": GxIdeFileUploader;
|
|
6319
6432
|
"gx-ide-gam-installation-settings": GxIdeGamInstallationSettings;
|
|
6433
|
+
"gx-ide-json-import": GxIdeJsonImport;
|
|
6320
6434
|
"gx-ide-kb-manager-export": GxIdeKbManagerExport;
|
|
6321
6435
|
"gx-ide-kb-manager-import": GxIdeKbManagerImport;
|
|
6322
6436
|
"gx-ide-list-selector": GxIdeListSelector;
|
|
@@ -6398,6 +6512,7 @@ declare module "@stencil/core" {
|
|
|
6398
6512
|
"gx-ide-file-item": LocalJSX.GxIdeFileItem & JSXBase.HTMLAttributes<HTMLGxIdeFileItemElement>;
|
|
6399
6513
|
"gx-ide-file-uploader": LocalJSX.GxIdeFileUploader & JSXBase.HTMLAttributes<HTMLGxIdeFileUploaderElement>;
|
|
6400
6514
|
"gx-ide-gam-installation-settings": LocalJSX.GxIdeGamInstallationSettings & JSXBase.HTMLAttributes<HTMLGxIdeGamInstallationSettingsElement>;
|
|
6515
|
+
"gx-ide-json-import": LocalJSX.GxIdeJsonImport & JSXBase.HTMLAttributes<HTMLGxIdeJsonImportElement>;
|
|
6401
6516
|
"gx-ide-kb-manager-export": LocalJSX.GxIdeKbManagerExport & JSXBase.HTMLAttributes<HTMLGxIdeKbManagerExportElement>;
|
|
6402
6517
|
"gx-ide-kb-manager-import": LocalJSX.GxIdeKbManagerImport & JSXBase.HTMLAttributes<HTMLGxIdeKbManagerImportElement>;
|
|
6403
6518
|
"gx-ide-list-selector": LocalJSX.GxIdeListSelector & JSXBase.HTMLAttributes<HTMLGxIdeListSelectorElement>;
|