@genexus/genexus-ide-ui 1.0.8 → 1.0.9
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/gx-ide-data-selector.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-data-selector.cjs.entry.js.map +1 -1
- package/dist/collection/components/data-selector/data-selector.css +10 -0
- package/dist/collection/components/data-selector/data-selector.js +1 -1
- package/dist/collection/components/data-selector/data-selector.js.map +1 -1
- package/dist/components/gx-ide-data-selector.js +2 -2
- package/dist/components/gx-ide-data-selector.js.map +1 -1
- package/dist/esm/gx-ide-data-selector.entry.js +2 -2
- package/dist/esm/gx-ide-data-selector.entry.js.map +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/{p-cc87175f.entry.js → p-dcbf5cd9.entry.js} +82 -82
- package/dist/genexus-ide-ui/p-dcbf5cd9.entry.js.map +1 -0
- package/package.json +1 -1
- package/dist/genexus-ide-ui/p-cc87175f.entry.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"gx-ide-data-selector.entry.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,+SAA+S;;;;;;;;;;;;;;;;;;;ACmBvU;AACA,MAAM,WAAW,GAAmB;IAClC,mBAAmB;IACnB,mBAAmB;IACnB,iBAAiB;IACjB,yBAAyB;IACzB,iBAAiB;IACjB,YAAY;IACZ,cAAc;IACd,qBAAqB;CACtB,CAAC;AAEF,MAAM,WAAW,GAAG,WAAW,CAAC;IAC9B,QAAQ,EAAE,cAAc;IACxB,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,cAAc;CAC1B,CAAC,CAAC;MAQU,iBAAiB;;;QAC5B,uDAA2B;QAC3B,yDAAwC,KAAK,EAAC;QAE9C,qDAAsB;QACtB,+CAA8B,KAAK,EAAC;QACpC,0CAAgB,YAAY,CAAC,8CAA8C,CAAC,EAAC;;QAE7E,qDAAqC;QAC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AC,QAAQ,EACb,OAAO,EAAE,iBAAiB,IAAI,uBAAA,IAAI,8CAAqB;WAEtD,uBAAA,IAAI,0CAAiB,CAAC,MAAM,CAAC,OAAO,CAC9B,CACL,EAEN,WAAK,KAAK,EAAC,gBAAgB,IACzB;;YAEE,KAAK,EAAC,kBAAkB,EACxB,IAAI,EAAC,sBAAsB,EAC3B,QAAQ,EAAE,CAAC,mBAAmB,EAC9B,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,mBAAmB,IAAI,IAAI,CAAC,cAAc;WAElD,uBAAA,IAAI,0CAAiB,CAAC,MAAM,CAAC,SAAS,CAChC,EACT;;YAEE,KAAK,EAAC,gBAAgB,EACtB,IAAI,EAAC,kBAAkB,EACvB,QAAQ,EAAE,CAAC,eAAe,EAC1B,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,eAAe,IAAI,uBAAA,IAAI,iDAAwB;WAEvD,uBAAA,IAAI,0CAAiB,CAAC,MAAM,CAAC,UAAU,CACjC,CACL,CACC,CACD,CACL,EACP;KACH;;;;;;;;;;","names":[],"sources":["src/components/data-selector/data-selector.scss?tag=gx-ide-data-selector&encapsulation=shadow","src/components/data-selector/data-selector.tsx"],"sourcesContent":[":host {\n display: grid;\n grid-template-rows: max-content 1fr max-content;\n overflow: auto;\n}\n\n.section {\n display: contents;\n}\n\n.header__field-group {\n display: grid;\n grid-template-columns: 1fr 1fr;\n}\n\n.tabular-grid {\n contain: size;\n}\n\nch-tabular-grid.empty-result::part(main) {\n // WA to avoid scrollbar flickering when displaying the empty-state message\n overflow: hidden;\n}\nch-tabular-grid-rowset-empty {\n // to make the loader be positioned relative to 'ch-tabular-grid-rowset-empty'\n position: relative;\n}\n","/* eslint-disable @stencil-community/own-props-must-be-private */\nimport {\n Component,\n Host,\n h,\n Prop,\n Element,\n State,\n Method,\n getAssetPath\n} from \"@stencil/core\";\n\nimport { Locale } from \"../../common/locale\";\n\nimport { config } from \"../../common/config\";\nimport { EntityData } from \"../../common/types\";\nimport { MercuryBundles, getIconPath } from \"@genexus/mercury\";\nimport { TabularGridSelectionChangedEvent } from \"@genexus/chameleon-controls-library\";\n\n// Best performance bundle\nconst CSS_BUNDLES: MercuryBundles = [\n \"resets/box-sizing\",\n \"components/button\",\n \"components/edit\",\n \"components/tabular-grid\",\n \"components/icon\",\n \"utils/form\",\n \"utils/layout\",\n \"chameleon/scrollbar\"\n];\n\nconst FILTER_ICON = getIconPath({\n category: \"window-tools\",\n name: \"filter\",\n colorType: \"on-elevation\"\n});\n\n@Component({\n tag: \"gx-ide-data-selector\",\n styleUrl: \"data-selector.scss\",\n shadow: { delegatesFocus: true },\n assetsDirs: [\"gx-ide-assets/data-selector\"]\n})\nexport class GxIdeDataSelector {\n #firstGridObjectId: string; // used to select the first item after \"loadItemsCallback\"\n #loadItemsCallbackJustCalled: boolean = false; // used to select the first item after \"loadItemsCallback\"\n\n #componentLocale: any;\n #animateEmptyState: boolean = false;\n #shortcutsSrc = getAssetPath(`./gx-ide-assets/data-selector/shortcuts.json`);\n /* References needed to collect data */\n #filterPatternEl!: HTMLChEditElement;\n #filterObjectEl!: HTMLGxIdeEntitySelectorElement;\n #chShortcutsEl: HTMLChShortcutsElement;\n #chTabularGridObjectsEl: HTMLChTabularGridElement;\n\n @Element() el: HTMLGxIdeDataSelectorElement;\n\n /**\n * True if loadItemsCallback has been called and has not been resolved yet.\n */\n @State() loading: boolean = true;\n\n /**\n * The objects rendered in the table\n */\n @State() objects: ItemData[] = [];\n\n /**\n * The selected objects in the table of objects\n */\n @State() selectedObjectsIds: string[] = [];\n\n /**\n * Callback invoked when the user wishes to cancel the selection of objects.\n */\n @Prop() readonly cancelCallback!: CancelCallback;\n\n /**\n * Callback invoked when the user presses the 'OK' button\n */\n @Prop() readonly confirmCallback!: ConfirmCallback;\n\n /**\n * The default value for the module/folder filter\n */\n @Prop() readonly defaultModule: EntityData;\n\n /**\n * If true it displays the component title on the header\n */\n @Prop() readonly displayTitle = false;\n\n /**\n * Callback invoked when user presses the edit button. Receives the first\n * selected element id as a parameter.\n */\n @Prop() readonly editCallback!: EditCallback;\n\n /**\n * Callback invoked when the component needs to reload the list of attributes.\n */\n @Prop() readonly loadItemsCallback!: LoadItemsCallback;\n\n /**\n * If true, it will display a loader when needed.\n */\n @Prop() readonly loader = false;\n\n /**\n * Callback invoked when the user presses the 'New' button.\n */\n @Prop() readonly newVariableCallback!: NewVariableCallback;\n\n /**\n * Callback invoked when the action is executed in the Object filter. It returns\n * the information of the selected object (id and name) or 'undefined' if it was\n * canceled.\n */\n @Prop() readonly selectObjectCallback: SelectObjectCallback;\n\n /**\n * Single if multiple object selection is not allowed. Default is multiple\n */\n @Prop() readonly selectionType: \"single\" | \"multiple\" = \"multiple\";\n\n async componentWillLoad() {\n this.#componentLocale = await Locale.getComponentStrings(this.el);\n }\n\n connectedCallback() {\n this.#refreshUIWithNewConfiguration();\n }\n\n componentDidLoad() {\n this.#filterPatternEl.focus();\n }\n\n componentDidRender() {\n this.#evaluateFirstRowSelection();\n }\n\n /**\n * Suspends or reactivates the shortcuts\n */\n @Method()\n async suspendShortcuts(suspendShortcuts: boolean) {\n if (suspendShortcuts) {\n this.#chShortcutsEl.suspend = true;\n } else {\n this.#chShortcutsEl.suspend = false;\n }\n }\n\n /**\n * Validate necessary data input\n */\n @Method()\n async validate(): Promise<boolean> {\n const isValid = true;\n return isValid;\n }\n\n /**\n * After items have been loaded and rendered, the first row should be selected.\n */\n #evaluateFirstRowSelection = () => {\n if (this.#loadItemsCallbackJustCalled) {\n this.#chTabularGridObjectsEl.selectRow(this.#firstGridObjectId);\n }\n this.#loadItemsCallbackJustCalled = false;\n };\n\n #chGridKeyDownHandler = (e: KeyboardEvent) => {\n if (e.key === \"Enter\") {\n this.#confirmCallbackHandler(e);\n }\n };\n\n #confirmCallbackHandler = (e: MouseEvent | KeyboardEvent): void => {\n e.stopPropagation();\n this.confirmCallback(this.selectedObjectsIds);\n };\n\n #editCallbackHandler = async (e: MouseEvent): Promise<void> => {\n e.stopPropagation();\n if (this.selectedObjectsIds[0]) {\n const result = await this.editCallback(this.selectedObjectsIds[0]);\n if (result) {\n this.#refreshUIWithNewConfiguration();\n }\n }\n };\n\n #hostKeyPressHandler = (e: KeyboardEvent) => {\n // TODO : revise why this is necessary\n // just prevent keypress propagation\n if (e.key === \"Enter\") {\n e.stopPropagation();\n }\n };\n\n #objectsSelectionChangedHandler = (\n event: CustomEvent<TabularGridSelectionChangedEvent>\n ) => {\n this.selectedObjectsIds = event.detail.rowsId;\n };\n\n #newVariableCallbackHandler = async () => {\n const response = await this.newVariableCallback();\n if (response) {\n this.#refreshUIWithNewConfiguration();\n }\n };\n #refreshUIWithNewConfiguration = (): void => {\n this.objects = [];\n const filters: FiltersData = {\n pattern: this.#filterPatternEl?.value,\n object: this.#filterObjectEl?.value?.id\n };\n this.loading = true;\n this.loadItemsCallback(filters).then((items: ItemData[]) => {\n if (items.length) {\n this.objects = this.#sortObjectsByName(items);\n this.#firstGridObjectId = this.objects[0].id;\n this.#loadItemsCallbackJustCalled = true;\n }\n this.selectedObjectsIds = [];\n this.loading = false;\n });\n };\n\n #renderFilter = (): Element[] => {\n return [\n <div class=\"header__field-group field-group\">\n <div class=\"field field-block pattern-field\">\n <label class=\"label\" htmlFor=\"filter-pattern\">\n {this.#componentLocale.filter.pattern}\n </label>\n <ch-edit\n autoFocus\n id=\"filter-pattern\"\n name=\"filter-pattern\"\n class=\"form-input pattern-input\"\n part=\"filter-pattern\"\n debounce={config.inputDebounce}\n onInput={this.#refreshUIWithNewConfiguration}\n ref={(el: HTMLChEditElement) =>\n (this.#filterPatternEl = el as HTMLChEditElement)\n }\n ></ch-edit>\n </div>\n <gx-ide-entity-selector\n id=\"object-selector\"\n value={this.defaultModule}\n defaultValue={this.defaultModule}\n selectEntityCallback={this.selectObjectCallback}\n ref={(el: HTMLGxIdeEntitySelectorElement) =>\n (this.#filterObjectEl = el as HTMLGxIdeEntitySelectorElement)\n }\n class=\"entity\"\n onValueChanged={this.#refreshUIWithNewConfiguration}\n ></gx-ide-entity-selector>\n </div>\n ];\n };\n\n #renderObjects = (): Element => {\n const gridIsEmpty = !this.objects.length;\n const displayLoader = this.loader && this.loading;\n if (!gridIsEmpty || displayLoader) {\n this.#animateEmptyState = true; // improve performance if is first render\n }\n return (\n <ch-tabular-grid\n class={{\n \"tabular-grid\": true,\n \"empty-result\": this.objects.length === 0,\n \"data\": true\n }}\n rowSelectionMode={this.selectionType}\n onKeyDown={this.#chGridKeyDownHandler}\n part=\"ch-grid-objects\"\n onSelectionChanged={\n this.objects.length ? this.#objectsSelectionChangedHandler : undefined\n }\n ref={(el: HTMLChTabularGridElement) =>\n (this.#chTabularGridObjectsEl = el as HTMLChTabularGridElement)\n }\n >\n <ch-tabular-grid-columnset class=\"tabular-grid-column-set\">\n <ch-tabular-grid-column\n column-name-position=\"text\"\n settingable={false}\n size={config.tabularGrid.colSize.maxContent}\n class=\"tabular-grid-column\"\n ></ch-tabular-grid-column>\n <ch-tabular-grid-column\n column-name={this.#componentLocale.tableHead.name}\n column-name-position=\"text\"\n settingable={false}\n size={config.tabularGrid.colSize.maxContent}\n class=\"tabular-grid-column\"\n ></ch-tabular-grid-column>\n <ch-tabular-grid-column\n column-name={this.#componentLocale.tableHead.dataType}\n column-name-position=\"text\"\n settingable={false}\n size={config.tabularGrid.colSize.maxContent}\n class=\"tabular-grid-column\"\n ></ch-tabular-grid-column>\n <ch-tabular-grid-column\n column-name={this.#componentLocale.tableHead.description}\n column-name-position=\"text\"\n settingable={false}\n size={config.tabularGrid.colSize.auto}\n class=\"tabular-grid-column\"\n ></ch-tabular-grid-column>\n </ch-tabular-grid-columnset>\n\n {!gridIsEmpty ? (\n <ch-tabular-grid-rowset class=\"tabular-grid-rowset\">\n {this.objects.map((obj: ItemData) => (\n <ch-tabular-grid-row\n rowid={obj.id}\n onDblClick={this.#confirmCallbackHandler}\n class=\"tabular-grid-row\"\n >\n <ch-tabular-grid-cell class=\"tabular-grid-cell\">\n <ch-image\n src={\n obj.type === \"attribute\"\n ? \"objects/attribute\"\n : \"objects-parts/variables\"\n }\n class=\"icon-md\"\n ></ch-image>\n </ch-tabular-grid-cell>\n <ch-tabular-grid-cell class=\"tabular-grid-cell\">\n {obj.name}\n </ch-tabular-grid-cell>\n <ch-tabular-grid-cell class=\"tabular-grid-cell\">\n {obj.dataType}\n </ch-tabular-grid-cell>\n <ch-tabular-grid-cell class=\"tabular-grid-cell\">\n {obj.description}\n </ch-tabular-grid-cell>\n </ch-tabular-grid-row>\n ))}\n </ch-tabular-grid-rowset>\n ) : (\n <ch-tabular-grid-rowset class=\"tabular-grid-rowset\">\n <ch-tabular-grid-rowset-empty>\n {displayLoader ? (\n <gx-ide-loader\n loaderTitle={this.#componentLocale.loader.title}\n show\n ></gx-ide-loader>\n ) : (\n <gx-ide-empty-state\n isAnimated={this.#animateEmptyState}\n stateIconSrc={FILTER_ICON}\n stateTitle={this.#componentLocale.emptyState.title}\n ></gx-ide-empty-state>\n )}\n </ch-tabular-grid-rowset-empty>\n </ch-tabular-grid-rowset>\n )}\n </ch-tabular-grid>\n );\n };\n\n #sortObjectsByName = (objects: ItemData[]): ItemData[] =>\n // TODO (make this a common helper function\n // and use it in other dialog grids that\n // require filter by name).\n objects.sort((a, b) => {\n const nameA = a.name.toLowerCase(),\n nameB = b.name.toLowerCase();\n if (nameA < nameB) {\n return -1;\n }\n if (nameA > nameB) {\n return 1;\n }\n return 0;\n });\n\n render() {\n const newVariableButtonEnabled = !this.loading;\n const editButtonEnabled = !this.loading && this.selectedObjectsIds.length;\n const cancelButtonEnabled = this.loading;\n const okButtonEnabled = !this.loading;\n\n return (\n <Host onKeyPress={this.#hostKeyPressHandler} 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\n <section class=\"section\">\n <header class=\"header control-header-with-border spacing-body-block-start spacing-body-inline\">\n {this.#renderFilter()}\n </header>\n {this.#renderObjects()}\n <footer class=\"footer control-footer-with-border control-footer-space-between spacing-body-inline spacing-body-block-end\">\n <div class=\"buttons-spacer\">\n <button\n // New Variable Button\n class=\"button-secondary\"\n disabled={!newVariableButtonEnabled}\n part=\"button button-new\"\n type=\"button\"\n onClick={this.#newVariableCallbackHandler}\n >\n {this.#componentLocale.footer.btnNew}\n </button>\n <button\n // Edit Button\n class=\"button-secondary\"\n disabled={!editButtonEnabled}\n part=\"button button-edit\"\n type=\"button\"\n onClick={editButtonEnabled && this.#editCallbackHandler}\n >\n {this.#componentLocale.footer.btnEdit}\n </button>\n </div>\n\n <div class=\"buttons-spacer\">\n <button\n // Cancel Button\n class=\"button-secondary\"\n part=\"button button-cancel\"\n disabled={!cancelButtonEnabled}\n type=\"button\"\n onClick={cancelButtonEnabled && this.cancelCallback}\n >\n {this.#componentLocale.footer.btnCancel}\n </button>\n <button\n // Confirm Button\n class=\"button-primary\"\n part=\"button button-ok\"\n disabled={!okButtonEnabled}\n type=\"button\"\n onClick={okButtonEnabled && this.#confirmCallbackHandler}\n >\n {this.#componentLocale.footer.btnConfirm}\n </button>\n </div>\n </footer>\n </section>\n </Host>\n );\n }\n}\n\nexport type NewVariableCallback = () => Promise<boolean>;\n\nexport type CancelCallback = () => Promise<void>;\n\nexport type SelectObjectCallback = () => Promise<EntityData | undefined>;\n\nexport type EditCallback = (id: string) => Promise<boolean>;\n\nexport type ConfirmCallback = (ids: string[]) => Promise<void>;\n\nexport type LoadItemsCallback = (filters: FiltersData) => Promise<ItemData[]>;\n\nexport type FiltersData = {\n pattern?: string;\n object?: string;\n};\n\nexport type ItemData = {\n type: ItemType;\n id: string;\n name: string;\n dataType: string;\n description: string;\n};\n\nexport type ItemType = \"variable\" | \"attribute\";\n"],"version":3}
|
|
1
|
+
{"file":"gx-ide-data-selector.entry.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,6kBAA6kB;;;;;;;;;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,MAAlB,IAAI,CAAgB,CACd,EACR,uBAAA,IAAI,wCAAe,MAAnB,IAAI,CAAiB,EACtB,cAAQ,KAAK,EAAC,2GAA2G,IACvH,WAAK,KAAK,EAAC,gBAAgB,IACzB;;YAEE,KAAK,EAAC,kBAAkB,EACxB,QAAQ,EAAE,CAAC,wBAAwB,EACnC,IAAI,EAAC,mBAAmB,EACxB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,uBAAA,IAAI,qDAA4B;WAExC,uBAAA,IAAI,0CAAiB,CAAC,MAAM,CAAC,MAAM,CAC7B,EACT;;YAEE,KAAK,EAAC,kBAAkB,EACxB,QAAQ,EAAE,CAAC,iBAAiB,EAC5B,IAAI,EAAC,oBAAoB,EACzB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,iBAAiB,IAAI,uBAAA,IAAI,8CAAqB;WAEtD,uBAAA,IAAI,0CAAiB,CAAC,MAAM,CAAC,OAAO,CAC9B,CACL,EAEN,WAAK,KAAK,EAAC,gBAAgB,IACzB;;YAEE,KAAK,EAAC,kBAAkB,EACxB,IAAI,EAAC,sBAAsB,EAC3B,QAAQ,EAAE,CAAC,mBAAmB,EAC9B,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,mBAAmB,IAAI,IAAI,CAAC,cAAc;WAElD,uBAAA,IAAI,0CAAiB,CAAC,MAAM,CAAC,SAAS,CAChC,EACT;;YAEE,KAAK,EAAC,gBAAgB,EACtB,IAAI,EAAC,kBAAkB,EACvB,QAAQ,EAAE,CAAC,eAAe,EAC1B,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,eAAe,IAAI,uBAAA,IAAI,iDAAwB;WAEvD,uBAAA,IAAI,0CAAiB,CAAC,MAAM,CAAC,UAAU,CACjC,CACL,CACC,CACD,CACL,EACP;KACH;;;;;;;;;;","names":[],"sources":["src/components/data-selector/data-selector.scss?tag=gx-ide-data-selector&encapsulation=shadow","src/components/data-selector/data-selector.tsx"],"sourcesContent":["@import \"../../../node_modules/@genexus/mercury/dist/mercury.scss\"; // for the tabular-grid-cell-layout mixin\n\n:host {\n display: grid;\n grid-template-rows: max-content 1fr max-content;\n overflow: auto;\n}\n\n.section {\n display: contents;\n}\n\n.header__field-group {\n display: grid;\n grid-template-columns: 1fr 1fr;\n}\n\n.tabular-grid {\n contain: size;\n}\n@include tabular-grid-cell-layout(\n $tabular-grid-selector: \".data\",\n $tabular-grid-cell-node-type: \"text\",\n $tabular-grid-cell-apply-ellipsis: true,\n $tabular-grid-affected-columns-nth-list: (\n 2,\n 3,\n 4\n )\n);\n\nch-tabular-grid.empty-result::part(main) {\n // WA to avoid scrollbar flickering when displaying the empty-state message\n overflow: hidden;\n}\nch-tabular-grid-rowset-empty {\n // to make the loader be positioned relative to 'ch-tabular-grid-rowset-empty'\n position: relative;\n}\n","/* eslint-disable @stencil-community/own-props-must-be-private */\nimport {\n Component,\n Host,\n h,\n Prop,\n Element,\n State,\n Method,\n getAssetPath\n} from \"@stencil/core\";\n\nimport { Locale } from \"../../common/locale\";\n\nimport { config } from \"../../common/config\";\nimport { EntityData } from \"../../common/types\";\nimport { MercuryBundles, getIconPath } from \"@genexus/mercury\";\nimport { TabularGridSelectionChangedEvent } from \"@genexus/chameleon-controls-library\";\n\n// Best performance bundle\nconst CSS_BUNDLES: MercuryBundles = [\n \"resets/box-sizing\",\n \"components/button\",\n \"components/edit\",\n \"components/tabular-grid\",\n \"components/icon\",\n \"utils/form\",\n \"utils/layout\",\n \"chameleon/scrollbar\"\n];\n\nconst FILTER_ICON = getIconPath({\n category: \"window-tools\",\n name: \"filter\",\n colorType: \"on-elevation\"\n});\n\n@Component({\n tag: \"gx-ide-data-selector\",\n styleUrl: \"data-selector.scss\",\n shadow: { delegatesFocus: true },\n assetsDirs: [\"gx-ide-assets/data-selector\"]\n})\nexport class GxIdeDataSelector {\n #firstGridObjectId: string; // used to select the first item after \"loadItemsCallback\"\n #loadItemsCallbackJustCalled: boolean = false; // used to select the first item after \"loadItemsCallback\"\n\n #componentLocale: any;\n #animateEmptyState: boolean = false;\n #shortcutsSrc = getAssetPath(`./gx-ide-assets/data-selector/shortcuts.json`);\n /* References needed to collect data */\n #filterPatternEl!: HTMLChEditElement;\n #filterObjectEl!: HTMLGxIdeEntitySelectorElement;\n #chShortcutsEl: HTMLChShortcutsElement;\n #chTabularGridObjectsEl: HTMLChTabularGridElement;\n\n @Element() el: HTMLGxIdeDataSelectorElement;\n\n /**\n * True if loadItemsCallback has been called and has not been resolved yet.\n */\n @State() loading: boolean = true;\n\n /**\n * The objects rendered in the table\n */\n @State() objects: ItemData[] = [];\n\n /**\n * The selected objects in the table of objects\n */\n @State() selectedObjectsIds: string[] = [];\n\n /**\n * Callback invoked when the user wishes to cancel the selection of objects.\n */\n @Prop() readonly cancelCallback!: CancelCallback;\n\n /**\n * Callback invoked when the user presses the 'OK' button\n */\n @Prop() readonly confirmCallback!: ConfirmCallback;\n\n /**\n * The default value for the module/folder filter\n */\n @Prop() readonly defaultModule: EntityData;\n\n /**\n * If true it displays the component title on the header\n */\n @Prop() readonly displayTitle = false;\n\n /**\n * Callback invoked when user presses the edit button. Receives the first\n * selected element id as a parameter.\n */\n @Prop() readonly editCallback!: EditCallback;\n\n /**\n * Callback invoked when the component needs to reload the list of attributes.\n */\n @Prop() readonly loadItemsCallback!: LoadItemsCallback;\n\n /**\n * If true, it will display a loader when needed.\n */\n @Prop() readonly loader = false;\n\n /**\n * Callback invoked when the user presses the 'New' button.\n */\n @Prop() readonly newVariableCallback!: NewVariableCallback;\n\n /**\n * Callback invoked when the action is executed in the Object filter. It returns\n * the information of the selected object (id and name) or 'undefined' if it was\n * canceled.\n */\n @Prop() readonly selectObjectCallback: SelectObjectCallback;\n\n /**\n * Single if multiple object selection is not allowed. Default is multiple\n */\n @Prop() readonly selectionType: \"single\" | \"multiple\" = \"multiple\";\n\n async componentWillLoad() {\n this.#componentLocale = await Locale.getComponentStrings(this.el);\n }\n\n connectedCallback() {\n this.#refreshUIWithNewConfiguration();\n }\n\n componentDidLoad() {\n this.#filterPatternEl.focus();\n }\n\n componentDidRender() {\n this.#evaluateFirstRowSelection();\n }\n\n /**\n * Suspends or reactivates the shortcuts\n */\n @Method()\n async suspendShortcuts(suspendShortcuts: boolean) {\n if (suspendShortcuts) {\n this.#chShortcutsEl.suspend = true;\n } else {\n this.#chShortcutsEl.suspend = false;\n }\n }\n\n /**\n * Validate necessary data input\n */\n @Method()\n async validate(): Promise<boolean> {\n const isValid = true;\n return isValid;\n }\n\n /**\n * After items have been loaded and rendered, the first row should be selected.\n */\n #evaluateFirstRowSelection = () => {\n if (this.#loadItemsCallbackJustCalled) {\n this.#chTabularGridObjectsEl.selectRow(this.#firstGridObjectId);\n }\n this.#loadItemsCallbackJustCalled = false;\n };\n\n #chGridKeyDownHandler = (e: KeyboardEvent) => {\n if (e.key === \"Enter\") {\n this.#confirmCallbackHandler(e);\n }\n };\n\n #confirmCallbackHandler = (e: MouseEvent | KeyboardEvent): void => {\n e.stopPropagation();\n this.confirmCallback(this.selectedObjectsIds);\n };\n\n #editCallbackHandler = async (e: MouseEvent): Promise<void> => {\n e.stopPropagation();\n if (this.selectedObjectsIds[0]) {\n const result = await this.editCallback(this.selectedObjectsIds[0]);\n if (result) {\n this.#refreshUIWithNewConfiguration();\n }\n }\n };\n\n #hostKeyPressHandler = (e: KeyboardEvent) => {\n // TODO : revise why this is necessary\n // just prevent keypress propagation\n if (e.key === \"Enter\") {\n e.stopPropagation();\n }\n };\n\n #objectsSelectionChangedHandler = (\n event: CustomEvent<TabularGridSelectionChangedEvent>\n ) => {\n this.selectedObjectsIds = event.detail.rowsId;\n };\n\n #newVariableCallbackHandler = async () => {\n const response = await this.newVariableCallback();\n if (response) {\n this.#refreshUIWithNewConfiguration();\n }\n };\n #refreshUIWithNewConfiguration = (): void => {\n this.objects = [];\n const filters: FiltersData = {\n pattern: this.#filterPatternEl?.value,\n object: this.#filterObjectEl?.value?.id\n };\n this.loading = true;\n this.loadItemsCallback(filters).then((items: ItemData[]) => {\n if (items.length) {\n this.objects = this.#sortObjectsByName(items);\n this.#firstGridObjectId = this.objects[0].id;\n this.#loadItemsCallbackJustCalled = true;\n }\n this.selectedObjectsIds = [];\n this.loading = false;\n });\n };\n\n #renderFilter = (): Element[] => {\n return [\n <div class=\"header__field-group field-group\">\n <div class=\"field field-block pattern-field\">\n <label class=\"label\" htmlFor=\"filter-pattern\">\n {this.#componentLocale.filter.pattern}\n </label>\n <ch-edit\n autoFocus\n id=\"filter-pattern\"\n name=\"filter-pattern\"\n class=\"form-input pattern-input\"\n part=\"filter-pattern\"\n debounce={config.inputDebounce}\n onInput={this.#refreshUIWithNewConfiguration}\n ref={(el: HTMLChEditElement) =>\n (this.#filterPatternEl = el as HTMLChEditElement)\n }\n ></ch-edit>\n </div>\n <gx-ide-entity-selector\n id=\"object-selector\"\n value={this.defaultModule}\n defaultValue={this.defaultModule}\n selectEntityCallback={this.selectObjectCallback}\n ref={(el: HTMLGxIdeEntitySelectorElement) =>\n (this.#filterObjectEl = el as HTMLGxIdeEntitySelectorElement)\n }\n class=\"entity\"\n onValueChanged={this.#refreshUIWithNewConfiguration}\n ></gx-ide-entity-selector>\n </div>\n ];\n };\n\n #renderObjects = (): Element => {\n const gridIsEmpty = !this.objects.length;\n const displayLoader = this.loader && this.loading;\n if (!gridIsEmpty || displayLoader) {\n this.#animateEmptyState = true; // improve performance if is first render\n }\n return (\n <ch-tabular-grid\n class={{\n \"tabular-grid\": true,\n \"empty-result\": this.objects.length === 0,\n \"data\": true\n }}\n rowSelectionMode={this.selectionType}\n onKeyDown={this.#chGridKeyDownHandler}\n part=\"ch-grid-objects\"\n onSelectionChanged={\n this.objects.length ? this.#objectsSelectionChangedHandler : undefined\n }\n ref={(el: HTMLChTabularGridElement) =>\n (this.#chTabularGridObjectsEl = el as HTMLChTabularGridElement)\n }\n >\n <ch-tabular-grid-columnset class=\"tabular-grid-column-set\">\n <ch-tabular-grid-column\n column-name-position=\"text\"\n settingable={false}\n size={config.tabularGrid.colSize.maxContent}\n class=\"tabular-grid-column\"\n ></ch-tabular-grid-column>\n <ch-tabular-grid-column\n column-name={this.#componentLocale.tableHead.name}\n column-name-position=\"text\"\n settingable={false}\n size={config.tabularGrid.colSize.common}\n class=\"tabular-grid-column\"\n ></ch-tabular-grid-column>\n <ch-tabular-grid-column\n column-name={this.#componentLocale.tableHead.dataType}\n column-name-position=\"text\"\n settingable={false}\n size={config.tabularGrid.colSize.common}\n class=\"tabular-grid-column\"\n ></ch-tabular-grid-column>\n <ch-tabular-grid-column\n column-name={this.#componentLocale.tableHead.description}\n column-name-position=\"text\"\n settingable={false}\n size={config.tabularGrid.colSize.common}\n class=\"tabular-grid-column\"\n ></ch-tabular-grid-column>\n </ch-tabular-grid-columnset>\n\n {!gridIsEmpty ? (\n <ch-tabular-grid-rowset class=\"tabular-grid-rowset\">\n {this.objects.map((obj: ItemData) => (\n <ch-tabular-grid-row\n rowid={obj.id}\n onDblClick={this.#confirmCallbackHandler}\n class=\"tabular-grid-row\"\n >\n <ch-tabular-grid-cell class=\"tabular-grid-cell\">\n <ch-image\n src={\n obj.type === \"attribute\"\n ? \"objects/attribute\"\n : \"objects-parts/variables\"\n }\n class=\"icon-md\"\n ></ch-image>\n </ch-tabular-grid-cell>\n <ch-tabular-grid-cell class=\"tabular-grid-cell\">\n {obj.name}\n </ch-tabular-grid-cell>\n <ch-tabular-grid-cell class=\"tabular-grid-cell\">\n {obj.dataType}\n </ch-tabular-grid-cell>\n <ch-tabular-grid-cell class=\"tabular-grid-cell\">\n {obj.description}\n </ch-tabular-grid-cell>\n </ch-tabular-grid-row>\n ))}\n </ch-tabular-grid-rowset>\n ) : (\n <ch-tabular-grid-rowset class=\"tabular-grid-rowset\">\n <ch-tabular-grid-rowset-empty>\n {displayLoader ? (\n <gx-ide-loader\n loaderTitle={this.#componentLocale.loader.title}\n show\n ></gx-ide-loader>\n ) : (\n <gx-ide-empty-state\n isAnimated={this.#animateEmptyState}\n stateIconSrc={FILTER_ICON}\n stateTitle={this.#componentLocale.emptyState.title}\n ></gx-ide-empty-state>\n )}\n </ch-tabular-grid-rowset-empty>\n </ch-tabular-grid-rowset>\n )}\n </ch-tabular-grid>\n );\n };\n\n #sortObjectsByName = (objects: ItemData[]): ItemData[] =>\n // TODO (make this a common helper function\n // and use it in other dialog grids that\n // require filter by name).\n objects.sort((a, b) => {\n const nameA = a.name.toLowerCase(),\n nameB = b.name.toLowerCase();\n if (nameA < nameB) {\n return -1;\n }\n if (nameA > nameB) {\n return 1;\n }\n return 0;\n });\n\n render() {\n const newVariableButtonEnabled = !this.loading;\n const editButtonEnabled = !this.loading && this.selectedObjectsIds.length;\n const cancelButtonEnabled = this.loading;\n const okButtonEnabled = !this.loading;\n\n return (\n <Host onKeyPress={this.#hostKeyPressHandler} 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\n <section class=\"section\">\n <header class=\"header control-header-with-border spacing-body-block-start spacing-body-inline\">\n {this.#renderFilter()}\n </header>\n {this.#renderObjects()}\n <footer class=\"footer control-footer-with-border control-footer-space-between spacing-body-inline spacing-body-block-end\">\n <div class=\"buttons-spacer\">\n <button\n // New Variable Button\n class=\"button-secondary\"\n disabled={!newVariableButtonEnabled}\n part=\"button button-new\"\n type=\"button\"\n onClick={this.#newVariableCallbackHandler}\n >\n {this.#componentLocale.footer.btnNew}\n </button>\n <button\n // Edit Button\n class=\"button-secondary\"\n disabled={!editButtonEnabled}\n part=\"button button-edit\"\n type=\"button\"\n onClick={editButtonEnabled && this.#editCallbackHandler}\n >\n {this.#componentLocale.footer.btnEdit}\n </button>\n </div>\n\n <div class=\"buttons-spacer\">\n <button\n // Cancel Button\n class=\"button-secondary\"\n part=\"button button-cancel\"\n disabled={!cancelButtonEnabled}\n type=\"button\"\n onClick={cancelButtonEnabled && this.cancelCallback}\n >\n {this.#componentLocale.footer.btnCancel}\n </button>\n <button\n // Confirm Button\n class=\"button-primary\"\n part=\"button button-ok\"\n disabled={!okButtonEnabled}\n type=\"button\"\n onClick={okButtonEnabled && this.#confirmCallbackHandler}\n >\n {this.#componentLocale.footer.btnConfirm}\n </button>\n </div>\n </footer>\n </section>\n </Host>\n );\n }\n}\n\nexport type NewVariableCallback = () => Promise<boolean>;\n\nexport type CancelCallback = () => Promise<void>;\n\nexport type SelectObjectCallback = () => Promise<EntityData | undefined>;\n\nexport type EditCallback = (id: string) => Promise<boolean>;\n\nexport type ConfirmCallback = (ids: string[]) => Promise<void>;\n\nexport type LoadItemsCallback = (filters: FiltersData) => Promise<ItemData[]>;\n\nexport type FiltersData = {\n pattern?: string;\n object?: string;\n};\n\nexport type ItemData = {\n type: ItemType;\n id: string;\n name: string;\n dataType: string;\n description: string;\n};\n\nexport type ItemType = \"variable\" | \"attribute\";\n"],"version":3}
|
|
@@ -13,5 +13,5 @@ export { s as setNonce } from "./p-aaed592c.js";
|
|
|
13
13
|
return e(l);
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
patchBrowser().then((e => a(JSON.parse('[["p-a4370f5d",[[1,"gx-ide-bpm-export-xpdl",{"displayTitle":[4,"display-title"],"exportCallback":[16],"cancelCallback":[16],"addCallback":[16],"referencesCallback":[16],"emptyInput":[32],"emptyObjects":[32],"notExporting":[32]}]]],["p-eb6ef221",[[1,"gx-ide-kb-manager-import",{"displayTitle":[4,"display-title"],"topStateBar":[4,"top-state-bar"],"selectedFile":[1040],"optionsCallback":[16],"importCallback":[16],"loadCallback":[16],"cancelCallback":[16],"statusMinimal":[4,"status-minimal"],"objectContextMenuCallback":[16],"checkedObjectsIds":[32],"noObjects":[32],"showHiddenImportsMessage":[32],"statusInfo":[32],"objectsTreeState":[32],"importStatusMessage":[32],"someStatusVisible":[32],"noImport":[32],"importTreeState":[32],"importingIsInProcess":[32],"addResultItem":[64]},null,{"objectsTreeState":["watchObjectsTreeStateHandler"],"importTreeState":["watchImportTreeStateHandler"],"importingIsInProcess":["watchImportingIsInProcessHandler"],"selectedFile":["watchSelectedFileHandler"]}]]],["p-794ac8e6",[[1,"gx-ide-bpm-import-files",{"displayTitle":[4,"display-title"],"allowedExtensions":[16],"confirmCallback":[16],"cancelCallback":[16],"files":[32],"selectedFiles":[32]}]]],["p-aea82479",[[1,"gx-ide-team-dev-select-recent-comment",{"displayTitle":[4,"display-title"],"comments":[16],"confirmCallback":[16],"cancelCallback":[16]}]]],["p-41e5e8e0",[[1,"gx-ide-team-dev-update",{"displayTitle":[4,"display-title"],"confirmCallback":[16],"gridContextMenuCallback":[16],"loadCallback":[16],"objectsScopeCallback":[16],"openServerCallback":[16],"pendingItemsCheckedCallback":[16],"revisionScopeCallback":[16],"objectsContextMenuCallback":[16],"selectCallback":[16],"types":[16],"updateCallback":[16],"updateFrom":[16],"isLoading":[32],"objectScopeText":[32],"openTab":[32],"revisionScopeText":[32],"showFilter":[32],"updateData":[32],"updateResultData":[32],"reload":[64]}]]],["p-cc87175f",[[17,"gx-ide-data-selector",{"cancelCallback":[16],"confirmCallback":[16],"defaultModule":[16],"displayTitle":[4,"display-title"],"editCallback":[16],"loadItemsCallback":[16],"loader":[4],"newVariableCallback":[16],"selectObjectCallback":[16],"selectionType":[1,"selection-type"],"loading":[32],"objects":[32],"selectedObjectsIds":[32],"suspendShortcuts":[64],"validate":[64]}]]],["p-1f8445eb",[[1,"gx-ide-design-import",{"displayTitle":[4,"display-title"],"extensions":[1],"defaultModule":[16],"selectModuleCallback":[16],"cancelCallback":[16],"confirmCallback":[16],"loadCallback":[16],"loadDesignSystemCallback":[16],"loadFontCallback":[16],"loadImageCallback":[16],"loadPanelDataCallback":[16],"requiresAccessTokenCallback":[16],"shadow":[4],"styles":[16],"textEditorFactoryCallback":[16],"activeTabs":[32],"path":[32],"designData":[32],"detailTreeModel":[32],"isLoading":[32],"messages":[32],"selectedFile":[32],"selectedDesignType":[32],"selectedDesignItem":[32],"showAccessToken":[32],"designDataTreeDataModel":[32],"updateTabsActiveTab":[32],"fitImages":[32],"shrinkTree":[32],"shrunkenTree":[32],"treeSh":[32],"validate":[64]},null,{"designData":["watchDesignDataHandler"],"shrinkTree":["watchShrinkTreeHandler"],"messages":["watchMessagesHandler"]}]]],["p-54ee665f",[[1,"gx-ide-manage-module-references",{"displayTitle":[4,"display-title"],"servers":[16],"serverSelectedCallback":[16],"executeActionCallback":[16],"addServerCallback":[16],"serverContextMenuCallback":[16],"showServerCommands":[4,"show-server-commands"],"modulesAll":[32],"filteredModules":[32],"selectedModule":[32],"selectedServerId":[32],"selectedModuleAction":[32],"modulesSelectedVersion":[32],"actionCompleted":[32],"closeProgressBar":[32],"progressValue":[32],"progressState":[32],"loadingServer":[32],"reRenderCounter":[32],"validate":[64]},null,{"modulesAll":["modulesAllWatcher","onPropValueChange"],"loadingServer":["loadingServerHandler"]}]]],["p-f69df17d",[[1,"gx-ide-manage-module-references-v2",{"displayTitle":[4,"display-title"],"servers":[16],"serverSelectedCallback":[16],"executeActionCallback":[16],"serverContextMenuCallback":[16],"showServerCommands":[4,"show-server-commands"],"searchModulesFilterValue":[32],"selectedButtonFilter":[32],"serverModules":[32],"serverModulesExtended":[32],"filteredServerModules":[32],"modulesMap":[32],"selectedModule":[32],"selectedServerId":[32],"selectedModuleAction":[32],"modulesSelectedVersionMap":[32],"actionCompleted":[32],"closeProgressBar":[32],"progressValue":[32],"progressState":[32],"loadingServer":[32]},null,{"loadingServer":["loadingServerHandler"]}]]],["p-5d8817cb",[[17,"gx-ide-new-object",{"displayTitle":[4,"display-title"],"shadow":[4],"typeCategories":[16],"parent":[16],"defaultParent":[16],"defaultTypeId":[1,"default-type-id"],"selectModuleCallback":[16],"validateNameCallback":[16],"createCallback":[16],"cancelCallback":[16],"selectedCategory":[32],"selectedType":[32],"nameIsValid":[32],"name":[32],"description":[32],"suspendShortcuts":[64]},null,{"selectedType":["watchSelectedTypeHandler"]}]]],["p-05eb7c04",[[17,"gx-ide-object-selector",{"cancelCallback":[16],"categories":[16],"defaultCategory":[1,"default-category"],"defaultModule":[16],"defaultType":[1,"default-type"],"loader":[4],"loadCallback":[16],"multiSelection":[4,"multi-selection"],"newObjectCallback":[16],"openSelectionCallback":[16],"patternValue":[1,"pattern-value"],"selectModuleCallback":[16],"types":[16],"filterModified":[32],"loading":[32],"modifiedAfterValue":[32],"objects":[32],"selectedObjectsIdsArray":[32],"suspendShortcuts":[64],"validate":[64]}]]],["p-b7dfdf6d",[[1,"gx-ide-start-page",{"getNewsCallback":[16],"kbs":[16],"kbsFilterThreshold":[2,"kbs-filter-threshold"],"newsFilterThreshold":[2,"news-filter-threshold"],"openKbCallback":[16],"openNewsCallback":[16],"displayKbsFilter":[32],"displayNewsFilter":[32],"filteredKbs":[32],"filteredNews":[32],"loadingKbs":[32],"news":[32],"newsFilterValue":[32],"renderedFirstTime":[32]},null,{"news":["watchNews"],"kbs":["kbsChanged"]}]]],["p-7ac25fc3",[[1,"gx-ide-container",{"inactiveTitle":[4,"inactive-title"],"containerTitle":[1,"container-title"],"titleType":[1,"title-type"],"displayBorder":[4,"display-border"],"displayBorderTop":[4,"display-border-top"],"displayBorderEnd":[4,"display-border-end"],"displayBorderBottom":[4,"display-border-bottom"],"displayBorderStart":[4,"display-border-start"],"sectionsPadding":[1,"sections-padding"],"titleAlignment":[1,"title-alignment"],"noHeadingBorder":[4,"no-heading-border"],"noHeadingGap":[4,"no-heading-gap"],"noHeadingPadding":[4,"no-heading-padding"],"noHeadingPaddingBlockEnd":[4,"no-heading-padding-block-end"],"headingPaddingTop":[4,"heading-padding-top"],"headingJustify":[1,"heading-justify"],"titleHeightAsInput":[4,"title-height-as-input"],"flexRow":[4,"flex-row"],"flexContent":[4,"flex-content"],"noContentBorderTop":[4,"no-content-border-top"],"noContentPadding":[4,"no-content-padding"],"noContentGap":[4,"no-content-gap"],"alignItems":[1,"align-items"],"justifyContent":[1,"justify-content"],"contentBorderEnd":[4,"content-border-end"],"slimmerAboveFooter":[4,"slimmer-above-footer"],"noAboveFooterPadding":[4,"no-above-footer-padding"],"noBorderAboveFooter":[4,"no-border-above-footer"],"slimmerFooter":[4,"slimmer-footer"],"noFooterPadding":[4,"no-footer-padding"],"footerJustify":[1,"footer-justify"],"noBorderFooter":[4,"no-border-footer"],"hasHeaderSlot":[32],"hasSlottedContent":[32],"hasFooterSlot":[32],"hasAboveFooterSlot":[32],"hasOnlyHeading":[32],"hasOnlyContent":[32],"hasOnlyFooter":[32]}],[1,"gx-ide-title",{"titleCaption":[1,"title-caption"],"type":[1],"alignment":[1],"padding":[516],"noPaddingBottom":[516,"no-padding-bottom"],"border":[516]}]]],["p-593981a8",[[1,"gx-ide-ww-images",{"displayTitle":[4,"display-title"],"secondaryFilter":[4,"secondary-filter"],"categories":[16],"densities":[16],"defaultCategory":[1,"default-category"],"defaultModule":[16],"defaultType":[1,"default-type"],"filterModules":[16],"languages":[16],"layers":[16],"contextMenuCallback":[16],"deleteSelectionCallback":[16],"loadCallback":[16],"loadImageItemsCallback":[16],"newObjectCallback":[16],"openSelectionCallback":[16],"selectModuleCallback":[16],"selectionObjectChangedCallback":[16],"shadow":[4],"styles":[16],"types":[16],"filtersHidden":[32],"filterAfterType":[32],"filterModified":[32],"images":[32],"filteredImages":[32],"imagesSelectedItems":[32],"selectedObjectsIds":[32],"filterImagesInputValue":[32],"validate":[64],"reload":[64]},[[1,"keydown","keyDownHandler"]],{"filtersHidden":["filtersHiddenHandler"]}]]],["p-5620c188",[[1,"gx-ide-bpm-app-declaration",{"displayTitle":[4,"display-title"],"application":[1040],"suggestApplicationsCallback":[16],"selectApplicationCallback":[16],"selectMappingCallback":[16],"confirmCallback":[16],"cancelCallback":[16],"getDataMappingCallback":[16],"suggestedApplications":[32]},null,{"application":["watchApplicationHandler"]}]]],["p-afb531b3",[[1,"gx-ide-bpm-assign-roles",{"displayTitle":[4,"display-title"],"roles":[16],"assignedRoles":[16],"confirmCallback":[16],"cancelCallback":[16],"unassignedRolesState":[32],"assignedRolesState":[32],"filterUnassignedInput":[32],"filterAssignedInput":[32],"unassignedSelected":[32],"assignedSelected":[32]}]]],["p-1a1042c2",[[1,"gx-ide-bpm-import-gxpm",{"displayTitle":[4,"display-title"],"confirmCallback":[16],"cancelCallback":[16],"selectedFile":[32],"pathValue":[32]}]]],["p-8beec8d4",[[1,"gx-ide-bpm-timer-duration",{"displayTitle":[4,"display-title"],"duration":[16],"confirmCallback":[16],"cancelCallback":[16]}]]],["p-e557aa5e",[[1,"gx-ide-connect-gx-server",{"displayTitle":[4,"display-title"],"serverUrls":[16],"enableCustomServer":[4,"enable-custom-server"],"defaultConnectionData":[16],"enableUserLogged":[4,"enable-user-logged"],"connectCallback":[16],"cancelCallback":[16],"displayLoginControls":[32]}]]],["p-032bdefc",[[1,"gx-ide-create-kb-from-server",{"displayTitle":[4,"display-title"],"connectCallback":[16],"createKBCallback":[16],"enableCustomServer":[4,"enable-custom-server"],"kbName":[1025,"kb-name"],"password":[1],"serverUrls":[16],"userName":[1,"user-name"],"selectionKbDisabled":[32],"kbs":[32],"kbSearchText":[32]},null,{"kbs":["watchPropHandler"]}]]],["p-eb52d685",[[1,"gx-ide-edit-module-server",{"types":[16],"name":[1],"source":[1],"type":[1],"confirmCallback":[16],"selectSourceCallback":[16],"cancelCallback":[16],"selectedType":[32]}]]],["p-4ade9a67",[[1,"gx-ide-gam-installation-settings",{"displayTitle":[4,"display-title"],"configurationType":[1,"configuration-type"],"repairCallback":[16],"saveCallback":[16],"cancelCallback":[16],"defaultConfiguration":[16],"canSelectPanels":[4,"can-select-panels"]}]]],["p-aa38604e",[[1,"gx-ide-kb-manager-export",{"addKBPropertiesCallback":[16],"addObjectsCallback":[16],"addReferencesCallback":[16],"cancelCallback":[16],"exportCallback":[16],"exportFileDirectoryCallback":[16],"fileName":[1,"file-name"],"kbPropertiesTypes":[16],"loader":[4],"objectTypes":[16],"optionsCallback":[16],"addKbPropertiesIsChecked":[32],"atLeastOnePropertyItemIsChecked":[32],"atLeastOneObjectItemIsChecked":[32],"checkedObjectsIds":[32],"checkedPropertiesIds":[32],"exportAllIsChecked":[32],"exportingIsInProcess":[32],"hasObjects":[32],"objectsTreeViewModel":[32]},null,{"objectsTreeViewModel":["objectsTreeViewModelChanged"],"objectTypes":["objectTypesChanged"]}]]],["p-c0ee7647",[[1,"gx-ide-new-environment",{"displayTitle":[4,"display-title"],"cancelCallback":[16],"createCallback":[16],"dataStores":[1040],"disableAdvanced":[4,"disable-advanced"],"environmentName":[1025,"environment-name"],"frontEnds":[1040],"getEnvironmentNameCallback":[16],"getFrontEndsCallback":[16],"getDataSourcesCallback":[16],"isAdvanced":[4,"is-advanced"],"languages":[16],"runtimes":[16],"setAsTarget":[4,"set-as-target"],"suspendShortcuts":[64]}]]],["p-9d640444",[[1,"gx-ide-new-kb",{"displayTitle":[4,"display-title"],"defaultDataSources":[1040],"frontEnds":[1040],"isAdvanced":[4,"is-advanced"],"kbLocation":[1025,"kb-location"],"selectLocationCallback":[16],"kbName":[1,"kb-name"],"prototypingEnvironments":[16],"prototypingTargets":[16],"userInterfaceLanguages":[16],"authenticationTypes":[16],"collations":[16],"createDataFilesInKBFolder":[4,"create-data-files-in-k-b-folder"],"databaseName":[1,"database-name"],"password":[1],"savePassword":[4,"save-password"],"serverNames":[16],"userName":[1,"user-name"],"test":[1],"createCallback":[16],"cancelCallback":[16],"getDataSourcesCallback":[16],"getFrontEndsCallback":[16],"createDataInKbDisabled":[32],"userNameVisible":[32],"passwordVisible":[32],"savePasswordVisible":[32],"suspendShortcuts":[64]}]]],["p-b5bb18d9",[[1,"gx-ide-references",{"displayTitle":[4,"display-title"],"selectedObject":[1040],"selectorSourceCallback":[16],"loadReferencesCallback":[16],"openObjectCallback":[16],"openSelectorDialogCallback":[16],"selectReferenceCallback":[16],"referencedByTreeData":[32],"referencesToTreeData":[32],"barHidden":[32],"objectsSuggestions":[32]},null,{"selectedObject":["selectedObjectHandler"]}]]],["p-2b200d34",[[1,"gx-ide-share-kb",{"displayTitle":[4,"display-title"],"kbName":[1,"kb-name"],"serverUrls":[16],"enableCustomServer":[4,"enable-custom-server"],"createKBCallback":[16]}]]],["p-d5c2b4cc",[[1,"gx-ide-team-dev-commit",{"displayTitle":[4,"display-title"],"changeSet":[16],"types":[16],"folders":[16],"categories":[16],"getRecentCommentCallback":[16],"loadCallback":[16],"commitCallback":[16],"selectCallback":[16],"pendingItemsCheckedCallback":[16],"objectsContextMenuCallback":[16],"filtersHidden":[32],"comment":[32],"pendingCommits":[32],"ignoredObjects":[32],"commitButtonEnabled":[32],"filterHasConditions":[32],"reload":[64]}]]],["p-e0072adb",[[1,"gx-ide-team-dev-update-partial-selection",{"displayTitle":[4,"display-title"],"addCallback":[16],"cancelCallback":[16],"confirmCallback":[16],"selection":[1040],"selectedObjectsIds":[32],"validate":[64]}]]],["p-62be51c2",[[1,"gx-ide-team-dev-update-to-revision",{"displayTitle":[4,"display-title"],"cancelCallback":[16],"confirmCallback":[16],"currentRevision":[1,"current-revision"],"validate":[64]}]]],["p-88ab3f67",[[1,"gx-ide-template",{"displayTitle":[4,"display-title"]}]]],["p-9d02318b",[[1,"gx-ide-wf-settings",{"displayTitle":[4,"display-title"],"configurationType":[1,"configuration-type"],"defaultConfiguration":[16],"saveCallback":[16],"cancelCallback":[16]}]]],["p-ad92d701",[[17,"gx-ide-ai-assistant",{"messages":[1040],"promptMaxHeight":[1,"prompt-max-height"],"assistantStatus":[1025,"assistant-status"],"focusShortcuts":[16],"userMessageCallback":[16],"clearCallback":[16],"promptValue":[1,"prompt-value"],"filter":[4],"userHasTyped":[32],"aIInProgress":[32],"showFilter":[32],"promptHasFocus":[32],"filterValue":[32],"clear":[64],"addMessage":[64]},[[2,"focus","handleFocus"]],{"aIInProgress":["watchAIInProgressHandler"],"messages":["watchMessagesHandler"]}]]],["p-929dd336",[[1,"gx-ide-dashboard-home",{"kb":[16],"enableEditKBName":[4,"enable-edit-k-b-name"],"environment":[16],"enableEditEnvironmentName":[4,"enable-edit-environment-name"],"projectDescription":[1,"project-description"],"enableEditDescription":[4,"enable-edit-description"],"recentObjects":[16],"renameKBCallback":[16],"renameEnvironmentCallback":[16],"editDescriptionCallback":[16],"openObjectCallback":[16],"editingEnvName":[32],"editingProjectDescription":[32]},null,{"recentObjects":["recentObjectsHandler"]}]]],["p-bb1d0ab8",[[1,"gx-ide-card",{"cardTitle":[1,"card-title"],"cardSubTitle":[1,"card-sub-title"],"icon":[1]}]]],["p-3b5b6908",[[1,"gx-ide-directory-selector",{"accessibilityLabels":[16],"label":[1],"labelPosition":[513,"label-position"],"centerLabel":[1028,"center-label"],"labelWidth":[1,"label-width"],"selectDirectoryCallback":[16],"value":[1025],"icon":[32]}]]],["p-c79243c8",[[1,"gx-ide-switch-panel"]]],["p-09cc20b1",[[1,"gx-ide-switcher"]]],["p-69a83248",[[1,"gx-ide-test",{"name":[1],"filterOn":[32]}]]],["p-edc4f1dc",[[1,"gx-ide-top-bar",{"topBarTitle":[1,"top-bar-title"]}]]],["p-f512bbca",[[1,"gx-ide-bpm-objects-selector",{"displayTitle":[4,"display-title"],"selection":[1040],"addCallback":[16],"referencesCallback":[16],"objects":[32],"selectedObjects":[32]}]]],["p-8f294d2e",[[1,"gx-ide-recent-news",{"getNewsCallback":[16],"openNewsCallback":[16],"filterValue":[1,"filter-value"],"filteredNews":[32],"loadingNews":[32],"news":[32],"newsLoadFailed":[32]},null,{"news":["newsChanged"],"filterValue":["watchNews"]}]]],["p-dbfddffd",[[1,"gx-ide-status-buttons",{"active":[4],"errors":[2],"hideError":[4,"hide-error"],"warnings":[2],"hideWarning":[4,"hide-warning"],"successes":[2],"hideSuccess":[4,"hide-success"],"messages":[2],"hideMessage":[4,"hide-message"],"minimal":[4],"compact":[516],"noInnerBorders":[516,"no-inner-borders"],"iconsSize":[32]}]]],["p-03a88768",[[1,"gx-ide-ai-message",{"message":[1],"messageType":[1,"message-type"],"filterValue":[1,"filter-value"],"hidden":[4],"translations":[16],"visible":[32],"showCopiedMessage":[32]}]]],["p-58e33dda",[[1,"gx-ide-entity-selector",{"defaultValue":[16],"labelCaption":[1,"label-caption"],"labelPosition":[513,"label-position"],"name":[513],"selectEntityCallback":[16],"value":[1040],"buttonHasFocus":[32],"iconSrc":[32]},null,{"value":["valueChangedHandler"]}]]],["p-241f3d69",[[1,"gx-ide-loader",{"abortTime":[2,"abort-time"],"cancelCallback":[16],"cancelLabel":[1,"cancel-label"],"description":[1],"displayBorder":[516,"display-border"],"loaderTitle":[1,"loader-title"],"show":[1028],"showWrapper":[32]}],[1,"gx-ide-empty-state",{"isAnimated":[4,"is-animated"],"stateDescription":[1,"state-description"],"stateIconSrc":[1,"state-icon-src"],"stateTitle":[1,"state-title"]}]]],["p-8da18e59",[[1,"gx-ide-list-selector",{"listTitle":[1,"list-title"],"ordered":[4],"readonly":[4],"type":[1],"required":[4],"ellipsis":[4],"value":[1025],"iconsColor":[1,"icons-color"],"iconsSize":[1,"icons-size"],"listName":[1,"list-name"],"noItemsBorder":[4,"no-items-border"],"noListBorder":[516,"no-list-border"]},[[2,"itemSelectionChanged","itemSelectionChangedHandler"]]],[4,"gx-ide-list-selector-item",{"itemId":[513,"item-id"],"itemValue":[1,"item-value"],"itemChecked":[1028,"item-checked"],"readonly":[1540],"ellipsis":[1540],"icon":[1],"iconColor":[1025,"icon-color"],"iconSize":[1025,"icon-size"],"noBorder":[1540,"no-border"],"universalSlotEnd":[516,"universal-slot-end"]}]]]]'), e)));
|
|
16
|
+
patchBrowser().then((e => a(JSON.parse('[["p-a4370f5d",[[1,"gx-ide-bpm-export-xpdl",{"displayTitle":[4,"display-title"],"exportCallback":[16],"cancelCallback":[16],"addCallback":[16],"referencesCallback":[16],"emptyInput":[32],"emptyObjects":[32],"notExporting":[32]}]]],["p-eb6ef221",[[1,"gx-ide-kb-manager-import",{"displayTitle":[4,"display-title"],"topStateBar":[4,"top-state-bar"],"selectedFile":[1040],"optionsCallback":[16],"importCallback":[16],"loadCallback":[16],"cancelCallback":[16],"statusMinimal":[4,"status-minimal"],"objectContextMenuCallback":[16],"checkedObjectsIds":[32],"noObjects":[32],"showHiddenImportsMessage":[32],"statusInfo":[32],"objectsTreeState":[32],"importStatusMessage":[32],"someStatusVisible":[32],"noImport":[32],"importTreeState":[32],"importingIsInProcess":[32],"addResultItem":[64]},null,{"objectsTreeState":["watchObjectsTreeStateHandler"],"importTreeState":["watchImportTreeStateHandler"],"importingIsInProcess":["watchImportingIsInProcessHandler"],"selectedFile":["watchSelectedFileHandler"]}]]],["p-794ac8e6",[[1,"gx-ide-bpm-import-files",{"displayTitle":[4,"display-title"],"allowedExtensions":[16],"confirmCallback":[16],"cancelCallback":[16],"files":[32],"selectedFiles":[32]}]]],["p-aea82479",[[1,"gx-ide-team-dev-select-recent-comment",{"displayTitle":[4,"display-title"],"comments":[16],"confirmCallback":[16],"cancelCallback":[16]}]]],["p-41e5e8e0",[[1,"gx-ide-team-dev-update",{"displayTitle":[4,"display-title"],"confirmCallback":[16],"gridContextMenuCallback":[16],"loadCallback":[16],"objectsScopeCallback":[16],"openServerCallback":[16],"pendingItemsCheckedCallback":[16],"revisionScopeCallback":[16],"objectsContextMenuCallback":[16],"selectCallback":[16],"types":[16],"updateCallback":[16],"updateFrom":[16],"isLoading":[32],"objectScopeText":[32],"openTab":[32],"revisionScopeText":[32],"showFilter":[32],"updateData":[32],"updateResultData":[32],"reload":[64]}]]],["p-dcbf5cd9",[[17,"gx-ide-data-selector",{"cancelCallback":[16],"confirmCallback":[16],"defaultModule":[16],"displayTitle":[4,"display-title"],"editCallback":[16],"loadItemsCallback":[16],"loader":[4],"newVariableCallback":[16],"selectObjectCallback":[16],"selectionType":[1,"selection-type"],"loading":[32],"objects":[32],"selectedObjectsIds":[32],"suspendShortcuts":[64],"validate":[64]}]]],["p-1f8445eb",[[1,"gx-ide-design-import",{"displayTitle":[4,"display-title"],"extensions":[1],"defaultModule":[16],"selectModuleCallback":[16],"cancelCallback":[16],"confirmCallback":[16],"loadCallback":[16],"loadDesignSystemCallback":[16],"loadFontCallback":[16],"loadImageCallback":[16],"loadPanelDataCallback":[16],"requiresAccessTokenCallback":[16],"shadow":[4],"styles":[16],"textEditorFactoryCallback":[16],"activeTabs":[32],"path":[32],"designData":[32],"detailTreeModel":[32],"isLoading":[32],"messages":[32],"selectedFile":[32],"selectedDesignType":[32],"selectedDesignItem":[32],"showAccessToken":[32],"designDataTreeDataModel":[32],"updateTabsActiveTab":[32],"fitImages":[32],"shrinkTree":[32],"shrunkenTree":[32],"treeSh":[32],"validate":[64]},null,{"designData":["watchDesignDataHandler"],"shrinkTree":["watchShrinkTreeHandler"],"messages":["watchMessagesHandler"]}]]],["p-54ee665f",[[1,"gx-ide-manage-module-references",{"displayTitle":[4,"display-title"],"servers":[16],"serverSelectedCallback":[16],"executeActionCallback":[16],"addServerCallback":[16],"serverContextMenuCallback":[16],"showServerCommands":[4,"show-server-commands"],"modulesAll":[32],"filteredModules":[32],"selectedModule":[32],"selectedServerId":[32],"selectedModuleAction":[32],"modulesSelectedVersion":[32],"actionCompleted":[32],"closeProgressBar":[32],"progressValue":[32],"progressState":[32],"loadingServer":[32],"reRenderCounter":[32],"validate":[64]},null,{"modulesAll":["modulesAllWatcher","onPropValueChange"],"loadingServer":["loadingServerHandler"]}]]],["p-f69df17d",[[1,"gx-ide-manage-module-references-v2",{"displayTitle":[4,"display-title"],"servers":[16],"serverSelectedCallback":[16],"executeActionCallback":[16],"serverContextMenuCallback":[16],"showServerCommands":[4,"show-server-commands"],"searchModulesFilterValue":[32],"selectedButtonFilter":[32],"serverModules":[32],"serverModulesExtended":[32],"filteredServerModules":[32],"modulesMap":[32],"selectedModule":[32],"selectedServerId":[32],"selectedModuleAction":[32],"modulesSelectedVersionMap":[32],"actionCompleted":[32],"closeProgressBar":[32],"progressValue":[32],"progressState":[32],"loadingServer":[32]},null,{"loadingServer":["loadingServerHandler"]}]]],["p-5d8817cb",[[17,"gx-ide-new-object",{"displayTitle":[4,"display-title"],"shadow":[4],"typeCategories":[16],"parent":[16],"defaultParent":[16],"defaultTypeId":[1,"default-type-id"],"selectModuleCallback":[16],"validateNameCallback":[16],"createCallback":[16],"cancelCallback":[16],"selectedCategory":[32],"selectedType":[32],"nameIsValid":[32],"name":[32],"description":[32],"suspendShortcuts":[64]},null,{"selectedType":["watchSelectedTypeHandler"]}]]],["p-05eb7c04",[[17,"gx-ide-object-selector",{"cancelCallback":[16],"categories":[16],"defaultCategory":[1,"default-category"],"defaultModule":[16],"defaultType":[1,"default-type"],"loader":[4],"loadCallback":[16],"multiSelection":[4,"multi-selection"],"newObjectCallback":[16],"openSelectionCallback":[16],"patternValue":[1,"pattern-value"],"selectModuleCallback":[16],"types":[16],"filterModified":[32],"loading":[32],"modifiedAfterValue":[32],"objects":[32],"selectedObjectsIdsArray":[32],"suspendShortcuts":[64],"validate":[64]}]]],["p-b7dfdf6d",[[1,"gx-ide-start-page",{"getNewsCallback":[16],"kbs":[16],"kbsFilterThreshold":[2,"kbs-filter-threshold"],"newsFilterThreshold":[2,"news-filter-threshold"],"openKbCallback":[16],"openNewsCallback":[16],"displayKbsFilter":[32],"displayNewsFilter":[32],"filteredKbs":[32],"filteredNews":[32],"loadingKbs":[32],"news":[32],"newsFilterValue":[32],"renderedFirstTime":[32]},null,{"news":["watchNews"],"kbs":["kbsChanged"]}]]],["p-7ac25fc3",[[1,"gx-ide-container",{"inactiveTitle":[4,"inactive-title"],"containerTitle":[1,"container-title"],"titleType":[1,"title-type"],"displayBorder":[4,"display-border"],"displayBorderTop":[4,"display-border-top"],"displayBorderEnd":[4,"display-border-end"],"displayBorderBottom":[4,"display-border-bottom"],"displayBorderStart":[4,"display-border-start"],"sectionsPadding":[1,"sections-padding"],"titleAlignment":[1,"title-alignment"],"noHeadingBorder":[4,"no-heading-border"],"noHeadingGap":[4,"no-heading-gap"],"noHeadingPadding":[4,"no-heading-padding"],"noHeadingPaddingBlockEnd":[4,"no-heading-padding-block-end"],"headingPaddingTop":[4,"heading-padding-top"],"headingJustify":[1,"heading-justify"],"titleHeightAsInput":[4,"title-height-as-input"],"flexRow":[4,"flex-row"],"flexContent":[4,"flex-content"],"noContentBorderTop":[4,"no-content-border-top"],"noContentPadding":[4,"no-content-padding"],"noContentGap":[4,"no-content-gap"],"alignItems":[1,"align-items"],"justifyContent":[1,"justify-content"],"contentBorderEnd":[4,"content-border-end"],"slimmerAboveFooter":[4,"slimmer-above-footer"],"noAboveFooterPadding":[4,"no-above-footer-padding"],"noBorderAboveFooter":[4,"no-border-above-footer"],"slimmerFooter":[4,"slimmer-footer"],"noFooterPadding":[4,"no-footer-padding"],"footerJustify":[1,"footer-justify"],"noBorderFooter":[4,"no-border-footer"],"hasHeaderSlot":[32],"hasSlottedContent":[32],"hasFooterSlot":[32],"hasAboveFooterSlot":[32],"hasOnlyHeading":[32],"hasOnlyContent":[32],"hasOnlyFooter":[32]}],[1,"gx-ide-title",{"titleCaption":[1,"title-caption"],"type":[1],"alignment":[1],"padding":[516],"noPaddingBottom":[516,"no-padding-bottom"],"border":[516]}]]],["p-593981a8",[[1,"gx-ide-ww-images",{"displayTitle":[4,"display-title"],"secondaryFilter":[4,"secondary-filter"],"categories":[16],"densities":[16],"defaultCategory":[1,"default-category"],"defaultModule":[16],"defaultType":[1,"default-type"],"filterModules":[16],"languages":[16],"layers":[16],"contextMenuCallback":[16],"deleteSelectionCallback":[16],"loadCallback":[16],"loadImageItemsCallback":[16],"newObjectCallback":[16],"openSelectionCallback":[16],"selectModuleCallback":[16],"selectionObjectChangedCallback":[16],"shadow":[4],"styles":[16],"types":[16],"filtersHidden":[32],"filterAfterType":[32],"filterModified":[32],"images":[32],"filteredImages":[32],"imagesSelectedItems":[32],"selectedObjectsIds":[32],"filterImagesInputValue":[32],"validate":[64],"reload":[64]},[[1,"keydown","keyDownHandler"]],{"filtersHidden":["filtersHiddenHandler"]}]]],["p-5620c188",[[1,"gx-ide-bpm-app-declaration",{"displayTitle":[4,"display-title"],"application":[1040],"suggestApplicationsCallback":[16],"selectApplicationCallback":[16],"selectMappingCallback":[16],"confirmCallback":[16],"cancelCallback":[16],"getDataMappingCallback":[16],"suggestedApplications":[32]},null,{"application":["watchApplicationHandler"]}]]],["p-afb531b3",[[1,"gx-ide-bpm-assign-roles",{"displayTitle":[4,"display-title"],"roles":[16],"assignedRoles":[16],"confirmCallback":[16],"cancelCallback":[16],"unassignedRolesState":[32],"assignedRolesState":[32],"filterUnassignedInput":[32],"filterAssignedInput":[32],"unassignedSelected":[32],"assignedSelected":[32]}]]],["p-1a1042c2",[[1,"gx-ide-bpm-import-gxpm",{"displayTitle":[4,"display-title"],"confirmCallback":[16],"cancelCallback":[16],"selectedFile":[32],"pathValue":[32]}]]],["p-8beec8d4",[[1,"gx-ide-bpm-timer-duration",{"displayTitle":[4,"display-title"],"duration":[16],"confirmCallback":[16],"cancelCallback":[16]}]]],["p-e557aa5e",[[1,"gx-ide-connect-gx-server",{"displayTitle":[4,"display-title"],"serverUrls":[16],"enableCustomServer":[4,"enable-custom-server"],"defaultConnectionData":[16],"enableUserLogged":[4,"enable-user-logged"],"connectCallback":[16],"cancelCallback":[16],"displayLoginControls":[32]}]]],["p-032bdefc",[[1,"gx-ide-create-kb-from-server",{"displayTitle":[4,"display-title"],"connectCallback":[16],"createKBCallback":[16],"enableCustomServer":[4,"enable-custom-server"],"kbName":[1025,"kb-name"],"password":[1],"serverUrls":[16],"userName":[1,"user-name"],"selectionKbDisabled":[32],"kbs":[32],"kbSearchText":[32]},null,{"kbs":["watchPropHandler"]}]]],["p-eb52d685",[[1,"gx-ide-edit-module-server",{"types":[16],"name":[1],"source":[1],"type":[1],"confirmCallback":[16],"selectSourceCallback":[16],"cancelCallback":[16],"selectedType":[32]}]]],["p-4ade9a67",[[1,"gx-ide-gam-installation-settings",{"displayTitle":[4,"display-title"],"configurationType":[1,"configuration-type"],"repairCallback":[16],"saveCallback":[16],"cancelCallback":[16],"defaultConfiguration":[16],"canSelectPanels":[4,"can-select-panels"]}]]],["p-aa38604e",[[1,"gx-ide-kb-manager-export",{"addKBPropertiesCallback":[16],"addObjectsCallback":[16],"addReferencesCallback":[16],"cancelCallback":[16],"exportCallback":[16],"exportFileDirectoryCallback":[16],"fileName":[1,"file-name"],"kbPropertiesTypes":[16],"loader":[4],"objectTypes":[16],"optionsCallback":[16],"addKbPropertiesIsChecked":[32],"atLeastOnePropertyItemIsChecked":[32],"atLeastOneObjectItemIsChecked":[32],"checkedObjectsIds":[32],"checkedPropertiesIds":[32],"exportAllIsChecked":[32],"exportingIsInProcess":[32],"hasObjects":[32],"objectsTreeViewModel":[32]},null,{"objectsTreeViewModel":["objectsTreeViewModelChanged"],"objectTypes":["objectTypesChanged"]}]]],["p-c0ee7647",[[1,"gx-ide-new-environment",{"displayTitle":[4,"display-title"],"cancelCallback":[16],"createCallback":[16],"dataStores":[1040],"disableAdvanced":[4,"disable-advanced"],"environmentName":[1025,"environment-name"],"frontEnds":[1040],"getEnvironmentNameCallback":[16],"getFrontEndsCallback":[16],"getDataSourcesCallback":[16],"isAdvanced":[4,"is-advanced"],"languages":[16],"runtimes":[16],"setAsTarget":[4,"set-as-target"],"suspendShortcuts":[64]}]]],["p-9d640444",[[1,"gx-ide-new-kb",{"displayTitle":[4,"display-title"],"defaultDataSources":[1040],"frontEnds":[1040],"isAdvanced":[4,"is-advanced"],"kbLocation":[1025,"kb-location"],"selectLocationCallback":[16],"kbName":[1,"kb-name"],"prototypingEnvironments":[16],"prototypingTargets":[16],"userInterfaceLanguages":[16],"authenticationTypes":[16],"collations":[16],"createDataFilesInKBFolder":[4,"create-data-files-in-k-b-folder"],"databaseName":[1,"database-name"],"password":[1],"savePassword":[4,"save-password"],"serverNames":[16],"userName":[1,"user-name"],"test":[1],"createCallback":[16],"cancelCallback":[16],"getDataSourcesCallback":[16],"getFrontEndsCallback":[16],"createDataInKbDisabled":[32],"userNameVisible":[32],"passwordVisible":[32],"savePasswordVisible":[32],"suspendShortcuts":[64]}]]],["p-b5bb18d9",[[1,"gx-ide-references",{"displayTitle":[4,"display-title"],"selectedObject":[1040],"selectorSourceCallback":[16],"loadReferencesCallback":[16],"openObjectCallback":[16],"openSelectorDialogCallback":[16],"selectReferenceCallback":[16],"referencedByTreeData":[32],"referencesToTreeData":[32],"barHidden":[32],"objectsSuggestions":[32]},null,{"selectedObject":["selectedObjectHandler"]}]]],["p-2b200d34",[[1,"gx-ide-share-kb",{"displayTitle":[4,"display-title"],"kbName":[1,"kb-name"],"serverUrls":[16],"enableCustomServer":[4,"enable-custom-server"],"createKBCallback":[16]}]]],["p-d5c2b4cc",[[1,"gx-ide-team-dev-commit",{"displayTitle":[4,"display-title"],"changeSet":[16],"types":[16],"folders":[16],"categories":[16],"getRecentCommentCallback":[16],"loadCallback":[16],"commitCallback":[16],"selectCallback":[16],"pendingItemsCheckedCallback":[16],"objectsContextMenuCallback":[16],"filtersHidden":[32],"comment":[32],"pendingCommits":[32],"ignoredObjects":[32],"commitButtonEnabled":[32],"filterHasConditions":[32],"reload":[64]}]]],["p-e0072adb",[[1,"gx-ide-team-dev-update-partial-selection",{"displayTitle":[4,"display-title"],"addCallback":[16],"cancelCallback":[16],"confirmCallback":[16],"selection":[1040],"selectedObjectsIds":[32],"validate":[64]}]]],["p-62be51c2",[[1,"gx-ide-team-dev-update-to-revision",{"displayTitle":[4,"display-title"],"cancelCallback":[16],"confirmCallback":[16],"currentRevision":[1,"current-revision"],"validate":[64]}]]],["p-88ab3f67",[[1,"gx-ide-template",{"displayTitle":[4,"display-title"]}]]],["p-9d02318b",[[1,"gx-ide-wf-settings",{"displayTitle":[4,"display-title"],"configurationType":[1,"configuration-type"],"defaultConfiguration":[16],"saveCallback":[16],"cancelCallback":[16]}]]],["p-ad92d701",[[17,"gx-ide-ai-assistant",{"messages":[1040],"promptMaxHeight":[1,"prompt-max-height"],"assistantStatus":[1025,"assistant-status"],"focusShortcuts":[16],"userMessageCallback":[16],"clearCallback":[16],"promptValue":[1,"prompt-value"],"filter":[4],"userHasTyped":[32],"aIInProgress":[32],"showFilter":[32],"promptHasFocus":[32],"filterValue":[32],"clear":[64],"addMessage":[64]},[[2,"focus","handleFocus"]],{"aIInProgress":["watchAIInProgressHandler"],"messages":["watchMessagesHandler"]}]]],["p-929dd336",[[1,"gx-ide-dashboard-home",{"kb":[16],"enableEditKBName":[4,"enable-edit-k-b-name"],"environment":[16],"enableEditEnvironmentName":[4,"enable-edit-environment-name"],"projectDescription":[1,"project-description"],"enableEditDescription":[4,"enable-edit-description"],"recentObjects":[16],"renameKBCallback":[16],"renameEnvironmentCallback":[16],"editDescriptionCallback":[16],"openObjectCallback":[16],"editingEnvName":[32],"editingProjectDescription":[32]},null,{"recentObjects":["recentObjectsHandler"]}]]],["p-bb1d0ab8",[[1,"gx-ide-card",{"cardTitle":[1,"card-title"],"cardSubTitle":[1,"card-sub-title"],"icon":[1]}]]],["p-3b5b6908",[[1,"gx-ide-directory-selector",{"accessibilityLabels":[16],"label":[1],"labelPosition":[513,"label-position"],"centerLabel":[1028,"center-label"],"labelWidth":[1,"label-width"],"selectDirectoryCallback":[16],"value":[1025],"icon":[32]}]]],["p-c79243c8",[[1,"gx-ide-switch-panel"]]],["p-09cc20b1",[[1,"gx-ide-switcher"]]],["p-69a83248",[[1,"gx-ide-test",{"name":[1],"filterOn":[32]}]]],["p-edc4f1dc",[[1,"gx-ide-top-bar",{"topBarTitle":[1,"top-bar-title"]}]]],["p-f512bbca",[[1,"gx-ide-bpm-objects-selector",{"displayTitle":[4,"display-title"],"selection":[1040],"addCallback":[16],"referencesCallback":[16],"objects":[32],"selectedObjects":[32]}]]],["p-8f294d2e",[[1,"gx-ide-recent-news",{"getNewsCallback":[16],"openNewsCallback":[16],"filterValue":[1,"filter-value"],"filteredNews":[32],"loadingNews":[32],"news":[32],"newsLoadFailed":[32]},null,{"news":["newsChanged"],"filterValue":["watchNews"]}]]],["p-dbfddffd",[[1,"gx-ide-status-buttons",{"active":[4],"errors":[2],"hideError":[4,"hide-error"],"warnings":[2],"hideWarning":[4,"hide-warning"],"successes":[2],"hideSuccess":[4,"hide-success"],"messages":[2],"hideMessage":[4,"hide-message"],"minimal":[4],"compact":[516],"noInnerBorders":[516,"no-inner-borders"],"iconsSize":[32]}]]],["p-03a88768",[[1,"gx-ide-ai-message",{"message":[1],"messageType":[1,"message-type"],"filterValue":[1,"filter-value"],"hidden":[4],"translations":[16],"visible":[32],"showCopiedMessage":[32]}]]],["p-58e33dda",[[1,"gx-ide-entity-selector",{"defaultValue":[16],"labelCaption":[1,"label-caption"],"labelPosition":[513,"label-position"],"name":[513],"selectEntityCallback":[16],"value":[1040],"buttonHasFocus":[32],"iconSrc":[32]},null,{"value":["valueChangedHandler"]}]]],["p-241f3d69",[[1,"gx-ide-loader",{"abortTime":[2,"abort-time"],"cancelCallback":[16],"cancelLabel":[1,"cancel-label"],"description":[1],"displayBorder":[516,"display-border"],"loaderTitle":[1,"loader-title"],"show":[1028],"showWrapper":[32]}],[1,"gx-ide-empty-state",{"isAnimated":[4,"is-animated"],"stateDescription":[1,"state-description"],"stateIconSrc":[1,"state-icon-src"],"stateTitle":[1,"state-title"]}]]],["p-8da18e59",[[1,"gx-ide-list-selector",{"listTitle":[1,"list-title"],"ordered":[4],"readonly":[4],"type":[1],"required":[4],"ellipsis":[4],"value":[1025],"iconsColor":[1,"icons-color"],"iconsSize":[1,"icons-size"],"listName":[1,"list-name"],"noItemsBorder":[4,"no-items-border"],"noListBorder":[516,"no-list-border"]},[[2,"itemSelectionChanged","itemSelectionChangedHandler"]]],[4,"gx-ide-list-selector-item",{"itemId":[513,"item-id"],"itemValue":[1,"item-value"],"itemChecked":[1028,"item-checked"],"readonly":[1540],"ellipsis":[1540],"icon":[1],"iconColor":[1025,"icon-color"],"iconSize":[1025,"icon-size"],"noBorder":[1540,"no-border"],"universalSlotEnd":[516,"universal-slot-end"]}]]]]'), e)));
|
|
17
17
|
//# sourceMappingURL=genexus-ide-ui.esm.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as t, a as e, h as
|
|
1
|
+
import { r as t, a as e, h as i, H as s, g as a } from "./p-aaed592c.js";
|
|
2
2
|
|
|
3
3
|
import { L as n } from "./p-74d59062.js";
|
|
4
4
|
|
|
@@ -6,22 +6,22 @@ import { c as r } from "./p-55a30661.js";
|
|
|
6
6
|
|
|
7
7
|
import { g as o } from "./p-6df9fab1.js";
|
|
8
8
|
|
|
9
|
-
const l = ":host{display:grid;grid-template-rows:max-content 1fr max-content;overflow:auto}.section{display:contents}.header__field-group{display:grid;grid-template-columns:1fr 1fr}.tabular-grid{contain:size}ch-tabular-grid.empty-result::part(main){overflow:hidden}ch-tabular-grid-rowset-empty{position:relative}";
|
|
9
|
+
const l = ":host{display:grid;grid-template-rows:max-content 1fr max-content;overflow:auto}.section{display:contents}.header__field-group{display:grid;grid-template-columns:1fr 1fr}.tabular-grid{contain:size}.data ch-tabular-grid-cell:is(:nth-child(2),:nth-child(3),:nth-child(4)){padding-block:var(--grid-cell__padding-block);padding-inline:var(--grid-cell__padding-inline);align-items:start;justify-content:start;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}ch-tabular-grid.empty-result::part(main){overflow:hidden}ch-tabular-grid-rowset-empty{position:relative}";
|
|
10
10
|
|
|
11
|
-
var c = undefined && undefined.__classPrivateFieldGet || function(t, e,
|
|
12
|
-
if (
|
|
13
|
-
if (typeof e === "function" ? t !== e || !
|
|
14
|
-
return
|
|
11
|
+
var c = undefined && undefined.__classPrivateFieldGet || function(t, e, i, s) {
|
|
12
|
+
if (i === "a" && !s) throw new TypeError("Private accessor was defined without a getter");
|
|
13
|
+
if (typeof e === "function" ? t !== e || !s : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
|
+
return i === "m" ? s : i === "a" ? s.call(t) : s ? s.value : e.get(t);
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
var
|
|
18
|
-
if (
|
|
19
|
-
if (
|
|
17
|
+
var d = undefined && undefined.__classPrivateFieldSet || function(t, e, i, s, a) {
|
|
18
|
+
if (s === "m") throw new TypeError("Private method is not writable");
|
|
19
|
+
if (s === "a" && !a) throw new TypeError("Private accessor was defined without a setter");
|
|
20
20
|
if (typeof e === "function" ? t !== e || !a : !e.has(t)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
21
|
-
return
|
|
21
|
+
return s === "a" ? a.call(t, i) : a ? a.value = i : e.set(t, i), i;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var h, u, f, p, b, g, m, w, y, v, k, M, W, x, j, C, _, E, T, z;
|
|
25
25
|
|
|
26
26
|
// Best performance bundle
|
|
27
27
|
const D = [ "resets/box-sizing", "components/button", "components/edit", "components/tabular-grid", "components/icon", "utils/form", "utils/layout", "chameleon/scrollbar" ];
|
|
@@ -33,26 +33,26 @@ const P = o({
|
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
const S = class {
|
|
36
|
-
constructor(
|
|
37
|
-
t(this,
|
|
38
|
-
|
|
36
|
+
constructor(s) {
|
|
37
|
+
t(this, s);
|
|
38
|
+
h.set(this, void 0);
|
|
39
39
|
// used to select the first item after "loadItemsCallback"
|
|
40
40
|
u.set(this, false);
|
|
41
41
|
// used to select the first item after "loadItemsCallback"
|
|
42
42
|
f.set(this, void 0);
|
|
43
43
|
p.set(this, false);
|
|
44
44
|
b.set(this, e(`./gx-ide-assets/data-selector/shortcuts.json`));
|
|
45
|
-
/* References needed to collect data */
|
|
46
|
-
|
|
45
|
+
/* References needed to collect data */ g.set(this, void 0);
|
|
46
|
+
m.set(this, void 0);
|
|
47
47
|
w.set(this, void 0);
|
|
48
48
|
y.set(this, void 0);
|
|
49
49
|
/**
|
|
50
50
|
* After items have been loaded and rendered, the first row should be selected.
|
|
51
51
|
*/ v.set(this, (() => {
|
|
52
52
|
if (c(this, u, "f")) {
|
|
53
|
-
c(this, y, "f").selectRow(c(this,
|
|
53
|
+
c(this, y, "f").selectRow(c(this, h, "f"));
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
d(this, u, false, "f");
|
|
56
56
|
}));
|
|
57
57
|
k.set(this, (t => {
|
|
58
58
|
if (t.key === "Enter") {
|
|
@@ -68,7 +68,7 @@ const S = class {
|
|
|
68
68
|
if (this.selectedObjectsIds[0]) {
|
|
69
69
|
const t = await this.editCallback(this.selectedObjectsIds[0]);
|
|
70
70
|
if (t) {
|
|
71
|
-
c(this,
|
|
71
|
+
c(this, _, "f").call(this);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
}));
|
|
@@ -85,60 +85,60 @@ const S = class {
|
|
|
85
85
|
C.set(this, (async () => {
|
|
86
86
|
const t = await this.newVariableCallback();
|
|
87
87
|
if (t) {
|
|
88
|
-
c(this,
|
|
88
|
+
c(this, _, "f").call(this);
|
|
89
89
|
}
|
|
90
90
|
}));
|
|
91
|
-
|
|
92
|
-
var t, e,
|
|
91
|
+
_.set(this, (() => {
|
|
92
|
+
var t, e, i;
|
|
93
93
|
this.objects = [];
|
|
94
|
-
const
|
|
95
|
-
pattern: (t = c(this,
|
|
96
|
-
object: (
|
|
94
|
+
const s = {
|
|
95
|
+
pattern: (t = c(this, g, "f")) === null || t === void 0 ? void 0 : t.value,
|
|
96
|
+
object: (i = (e = c(this, m, "f")) === null || e === void 0 ? void 0 : e.value) === null || i === void 0 ? void 0 : i.id
|
|
97
97
|
};
|
|
98
98
|
this.loading = true;
|
|
99
|
-
this.loadItemsCallback(
|
|
99
|
+
this.loadItemsCallback(s).then((t => {
|
|
100
100
|
if (t.length) {
|
|
101
101
|
this.objects = c(this, z, "f").call(this, t);
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
d(this, h, this.objects[0].id, "f");
|
|
103
|
+
d(this, u, true, "f");
|
|
104
104
|
}
|
|
105
105
|
this.selectedObjectsIds = [];
|
|
106
106
|
this.loading = false;
|
|
107
107
|
}));
|
|
108
108
|
}));
|
|
109
|
-
|
|
109
|
+
E.set(this, (() => [ i("div", {
|
|
110
110
|
class: "header__field-group field-group"
|
|
111
|
-
},
|
|
111
|
+
}, i("div", {
|
|
112
112
|
class: "field field-block pattern-field"
|
|
113
|
-
},
|
|
113
|
+
}, i("label", {
|
|
114
114
|
class: "label",
|
|
115
115
|
htmlFor: "filter-pattern"
|
|
116
|
-
}, c(this, f, "f").filter.pattern),
|
|
116
|
+
}, c(this, f, "f").filter.pattern), i("ch-edit", {
|
|
117
117
|
autoFocus: true,
|
|
118
118
|
id: "filter-pattern",
|
|
119
119
|
name: "filter-pattern",
|
|
120
120
|
class: "form-input pattern-input",
|
|
121
121
|
part: "filter-pattern",
|
|
122
122
|
debounce: r.inputDebounce,
|
|
123
|
-
onInput: c(this,
|
|
124
|
-
ref: t =>
|
|
125
|
-
})),
|
|
123
|
+
onInput: c(this, _, "f"),
|
|
124
|
+
ref: t => d(this, g, t, "f")
|
|
125
|
+
})), i("gx-ide-entity-selector", {
|
|
126
126
|
id: "object-selector",
|
|
127
127
|
value: this.defaultModule,
|
|
128
128
|
defaultValue: this.defaultModule,
|
|
129
129
|
selectEntityCallback: this.selectObjectCallback,
|
|
130
|
-
ref: t =>
|
|
130
|
+
ref: t => d(this, m, t, "f"),
|
|
131
131
|
class: "entity",
|
|
132
|
-
onValueChanged: c(this,
|
|
132
|
+
onValueChanged: c(this, _, "f")
|
|
133
133
|
})) ]));
|
|
134
|
-
|
|
134
|
+
T.set(this, (() => {
|
|
135
135
|
const t = !this.objects.length;
|
|
136
136
|
const e = this.loader && this.loading;
|
|
137
137
|
if (!t || e) {
|
|
138
|
-
|
|
138
|
+
d(this, p, true, "f");
|
|
139
139
|
// improve performance if is first render
|
|
140
140
|
}
|
|
141
|
-
return
|
|
141
|
+
return i("ch-tabular-grid", {
|
|
142
142
|
class: {
|
|
143
143
|
"tabular-grid": true,
|
|
144
144
|
"empty-result": this.objects.length === 0,
|
|
@@ -148,55 +148,55 @@ const S = class {
|
|
|
148
148
|
onKeyDown: c(this, k, "f"),
|
|
149
149
|
part: "ch-grid-objects",
|
|
150
150
|
onSelectionChanged: this.objects.length ? c(this, j, "f") : undefined,
|
|
151
|
-
ref: t =>
|
|
152
|
-
},
|
|
151
|
+
ref: t => d(this, y, t, "f")
|
|
152
|
+
}, i("ch-tabular-grid-columnset", {
|
|
153
153
|
class: "tabular-grid-column-set"
|
|
154
|
-
},
|
|
154
|
+
}, i("ch-tabular-grid-column", {
|
|
155
155
|
"column-name-position": "text",
|
|
156
156
|
settingable: false,
|
|
157
157
|
size: r.tabularGrid.colSize.maxContent,
|
|
158
158
|
class: "tabular-grid-column"
|
|
159
|
-
}),
|
|
159
|
+
}), i("ch-tabular-grid-column", {
|
|
160
160
|
"column-name": c(this, f, "f").tableHead.name,
|
|
161
161
|
"column-name-position": "text",
|
|
162
162
|
settingable: false,
|
|
163
|
-
size: r.tabularGrid.colSize.
|
|
163
|
+
size: r.tabularGrid.colSize.common,
|
|
164
164
|
class: "tabular-grid-column"
|
|
165
|
-
}),
|
|
165
|
+
}), i("ch-tabular-grid-column", {
|
|
166
166
|
"column-name": c(this, f, "f").tableHead.dataType,
|
|
167
167
|
"column-name-position": "text",
|
|
168
168
|
settingable: false,
|
|
169
|
-
size: r.tabularGrid.colSize.
|
|
169
|
+
size: r.tabularGrid.colSize.common,
|
|
170
170
|
class: "tabular-grid-column"
|
|
171
|
-
}),
|
|
171
|
+
}), i("ch-tabular-grid-column", {
|
|
172
172
|
"column-name": c(this, f, "f").tableHead.description,
|
|
173
173
|
"column-name-position": "text",
|
|
174
174
|
settingable: false,
|
|
175
|
-
size: r.tabularGrid.colSize.
|
|
175
|
+
size: r.tabularGrid.colSize.common,
|
|
176
176
|
class: "tabular-grid-column"
|
|
177
|
-
})), !t ?
|
|
177
|
+
})), !t ? i("ch-tabular-grid-rowset", {
|
|
178
178
|
class: "tabular-grid-rowset"
|
|
179
|
-
}, this.objects.map((t =>
|
|
179
|
+
}, this.objects.map((t => i("ch-tabular-grid-row", {
|
|
180
180
|
rowid: t.id,
|
|
181
181
|
onDblClick: c(this, M, "f"),
|
|
182
182
|
class: "tabular-grid-row"
|
|
183
|
-
},
|
|
183
|
+
}, i("ch-tabular-grid-cell", {
|
|
184
184
|
class: "tabular-grid-cell"
|
|
185
|
-
},
|
|
185
|
+
}, i("ch-image", {
|
|
186
186
|
src: t.type === "attribute" ? "objects/attribute" : "objects-parts/variables",
|
|
187
187
|
class: "icon-md"
|
|
188
|
-
})),
|
|
188
|
+
})), i("ch-tabular-grid-cell", {
|
|
189
189
|
class: "tabular-grid-cell"
|
|
190
|
-
}, t.name),
|
|
190
|
+
}, t.name), i("ch-tabular-grid-cell", {
|
|
191
191
|
class: "tabular-grid-cell"
|
|
192
|
-
}, t.dataType),
|
|
192
|
+
}, t.dataType), i("ch-tabular-grid-cell", {
|
|
193
193
|
class: "tabular-grid-cell"
|
|
194
|
-
}, t.description))))) :
|
|
194
|
+
}, t.description))))) : i("ch-tabular-grid-rowset", {
|
|
195
195
|
class: "tabular-grid-rowset"
|
|
196
|
-
},
|
|
196
|
+
}, i("ch-tabular-grid-rowset-empty", null, e ? i("gx-ide-loader", {
|
|
197
197
|
loaderTitle: c(this, f, "f").loader.title,
|
|
198
198
|
show: true
|
|
199
|
-
}) :
|
|
199
|
+
}) : i("gx-ide-empty-state", {
|
|
200
200
|
isAnimated: c(this, p, "f"),
|
|
201
201
|
stateIconSrc: P,
|
|
202
202
|
stateTitle: c(this, f, "f").emptyState.title
|
|
@@ -207,11 +207,11 @@ const S = class {
|
|
|
207
207
|
// and use it in other dialog grids that
|
|
208
208
|
// require filter by name).
|
|
209
209
|
t.sort(((t, e) => {
|
|
210
|
-
const
|
|
211
|
-
if (
|
|
210
|
+
const i = t.name.toLowerCase(), s = e.name.toLowerCase();
|
|
211
|
+
if (i < s) {
|
|
212
212
|
return -1;
|
|
213
213
|
}
|
|
214
|
-
if (
|
|
214
|
+
if (i > s) {
|
|
215
215
|
return 1;
|
|
216
216
|
}
|
|
217
217
|
return 0;
|
|
@@ -231,13 +231,13 @@ const S = class {
|
|
|
231
231
|
this.selectionType = "multiple";
|
|
232
232
|
}
|
|
233
233
|
async componentWillLoad() {
|
|
234
|
-
|
|
234
|
+
d(this, f, await n.getComponentStrings(this.el), "f");
|
|
235
235
|
}
|
|
236
236
|
connectedCallback() {
|
|
237
|
-
c(this,
|
|
237
|
+
c(this, _, "f").call(this);
|
|
238
238
|
}
|
|
239
239
|
componentDidLoad() {
|
|
240
|
-
c(this,
|
|
240
|
+
c(this, g, "f").focus();
|
|
241
241
|
}
|
|
242
242
|
componentDidRender() {
|
|
243
243
|
c(this, v, "f").call(this);
|
|
@@ -262,46 +262,46 @@ const S = class {
|
|
|
262
262
|
const e = !this.loading && this.selectedObjectsIds.length;
|
|
263
263
|
const a = this.loading;
|
|
264
264
|
const n = !this.loading;
|
|
265
|
-
return s
|
|
265
|
+
return i(s, {
|
|
266
266
|
onKeyPress: c(this, x, "f"),
|
|
267
267
|
class: "widget"
|
|
268
|
-
},
|
|
268
|
+
}, i("ch-theme", {
|
|
269
269
|
model: D
|
|
270
|
-
}),
|
|
270
|
+
}), i("ch-shortcuts", {
|
|
271
271
|
src: c(this, b, "f"),
|
|
272
|
-
ref: t =>
|
|
273
|
-
}),
|
|
272
|
+
ref: t => d(this, w, t, "f")
|
|
273
|
+
}), i("section", {
|
|
274
274
|
class: "section"
|
|
275
|
-
},
|
|
275
|
+
}, i("header", {
|
|
276
276
|
class: "header control-header-with-border spacing-body-block-start spacing-body-inline"
|
|
277
|
-
}, c(this,
|
|
277
|
+
}, c(this, E, "f").call(this)), c(this, T, "f").call(this), i("footer", {
|
|
278
278
|
class: "footer control-footer-with-border control-footer-space-between spacing-body-inline spacing-body-block-end"
|
|
279
|
-
},
|
|
279
|
+
}, i("div", {
|
|
280
280
|
class: "buttons-spacer"
|
|
281
|
-
},
|
|
281
|
+
}, i("button", {
|
|
282
282
|
// New Variable Button
|
|
283
283
|
class: "button-secondary",
|
|
284
284
|
disabled: !t,
|
|
285
285
|
part: "button button-new",
|
|
286
286
|
type: "button",
|
|
287
287
|
onClick: c(this, C, "f")
|
|
288
|
-
}, c(this, f, "f").footer.btnNew),
|
|
288
|
+
}, c(this, f, "f").footer.btnNew), i("button", {
|
|
289
289
|
// Edit Button
|
|
290
290
|
class: "button-secondary",
|
|
291
291
|
disabled: !e,
|
|
292
292
|
part: "button button-edit",
|
|
293
293
|
type: "button",
|
|
294
294
|
onClick: e && c(this, W, "f")
|
|
295
|
-
}, c(this, f, "f").footer.btnEdit)),
|
|
295
|
+
}, c(this, f, "f").footer.btnEdit)), i("div", {
|
|
296
296
|
class: "buttons-spacer"
|
|
297
|
-
},
|
|
297
|
+
}, i("button", {
|
|
298
298
|
// Cancel Button
|
|
299
299
|
class: "button-secondary",
|
|
300
300
|
part: "button button-cancel",
|
|
301
301
|
disabled: !a,
|
|
302
302
|
type: "button",
|
|
303
303
|
onClick: a && this.cancelCallback
|
|
304
|
-
}, c(this, f, "f").footer.btnCancel),
|
|
304
|
+
}, c(this, f, "f").footer.btnCancel), i("button", {
|
|
305
305
|
// Confirm Button
|
|
306
306
|
class: "button-primary",
|
|
307
307
|
part: "button button-ok",
|
|
@@ -321,12 +321,12 @@ const S = class {
|
|
|
321
321
|
}
|
|
322
322
|
};
|
|
323
323
|
|
|
324
|
-
|
|
325
|
-
|
|
324
|
+
h = new WeakMap, u = new WeakMap, f = new WeakMap, p = new WeakMap, b = new WeakMap,
|
|
325
|
+
g = new WeakMap, m = new WeakMap, w = new WeakMap, y = new WeakMap, v = new WeakMap,
|
|
326
326
|
k = new WeakMap, M = new WeakMap, W = new WeakMap, x = new WeakMap, j = new WeakMap,
|
|
327
|
-
C = new WeakMap,
|
|
327
|
+
C = new WeakMap, _ = new WeakMap, E = new WeakMap, T = new WeakMap, z = new WeakMap;
|
|
328
328
|
|
|
329
329
|
S.style = l;
|
|
330
330
|
|
|
331
331
|
export { S as gx_ide_data_selector };
|
|
332
|
-
//# sourceMappingURL=p-
|
|
332
|
+
//# sourceMappingURL=p-dcbf5cd9.entry.js.map
|