@genexus/genexus-ide-ui 0.0.121 → 0.0.122
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-wf-settings.cjs.entry.js +59 -0
- package/dist/cjs/gx-ide-wf-settings.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/wf-settings/gx-ide-assets/wf-settings/langs/wf-settings.lang.en.json +29 -0
- package/dist/collection/components/wf-settings/gx-ide-assets/wf-settings/langs/wf-settings.lang.ja.json +3 -0
- package/dist/collection/components/wf-settings/gx-ide-assets/wf-settings/langs/wf-settings.lang.zh.json +3 -0
- package/dist/collection/components/wf-settings/wf-settings.css +535 -0
- package/dist/collection/components/wf-settings/wf-settings.js +173 -0
- package/dist/collection/components/wf-settings/wf-settings.js.map +1 -0
- package/dist/components/gx-ide-wf-settings.d.ts +11 -0
- package/dist/components/gx-ide-wf-settings.js +156 -0
- package/dist/components/gx-ide-wf-settings.js.map +1 -0
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-wf-settings.entry.js +55 -0
- package/dist/esm/gx-ide-wf-settings.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/wf-settings/langs/wf-settings.lang.en.json +29 -0
- package/dist/genexus-ide-ui/gx-ide-assets/wf-settings/langs/wf-settings.lang.ja.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/wf-settings/langs/wf-settings.lang.zh.json +3 -0
- package/dist/genexus-ide-ui/p-f19ec1c3.entry.js +100 -0
- package/dist/genexus-ide-ui/p-f19ec1c3.entry.js.map +1 -0
- package/dist/types/components/wf-settings/wf-settings.d.ts +42 -0
- package/dist/types/components.d.ts +66 -0
- package/package.json +1 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { r as e, c as t, h as r, H as o, g as a } from "./p-48217969.js";
|
|
2
|
+
|
|
3
|
+
import { c as i } from "./p-9c1b4eb9.js";
|
|
4
|
+
|
|
5
|
+
import { L as s } from "./p-74d59062.js";
|
|
6
|
+
|
|
7
|
+
const l = ":root{--ui-animaton-speed:0.2s}.gxg-title-01{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-01-font-weight);font-size:var(--ds-title-01-font-size);letter-spacing:var(--ds-base-font-letter-spacing--comfortable);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-01--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-01-font-weight);font-size:var(--ds-title-01-font-size);letter-spacing:var(--ds-base-font-letter-spacing--comfortable);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-title-02{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-02-font-weight);font-size:var(--ds-title-02-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;text-transform:uppercase;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-02--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-02-font-weight);font-size:var(--ds-title-02-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;text-transform:uppercase;line-height:var(--ds-base-font-line-height--comfortable);color:var(--color-on-primary)}.gxg-title-03{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-03-font-weight);font-size:var(--ds-title-03-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;text-transform:uppercase;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-03--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-03-font-weight);font-size:var(--ds-title-03-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;text-transform:uppercase;line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-title-04{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-04-font-weight);font-size:var(--ds-title-04-font-size);letter-spacing:var(--ds-base-font-letter-spacing--comfortable);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-04--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-04-font-weight);font-size:var(--ds-title-04-font-size);letter-spacing:var(--ds-base-font-letter-spacing--comfortable);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-title-05{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-05-font-weight);font-size:var(--ds-title-05-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-05--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-05-font-weight);font-size:var(--ds-title-05-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-text{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable)}.gxg-text--negative{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-text--gray{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--dimmed)}.gxg-quote{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);font-style:italic}.gxg-quote--negative{color:var(--ds-base-font-color--negative)}.gxg-link{line-height:unset;font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--link);text-decoration:underline;cursor:pointer;display:inline-block}.gxg-link:hover{color:var(--ds-base-font-color--link-hover)}.gxg-link:active{color:var(--ds-base-font-color--link-active)}.gxg-link-gray{line-height:unset;font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--link);text-decoration:underline;cursor:pointer;display:inline-block;color:var(--ds-base-font-color--dimmed)}.gxg-link-gray:hover{line-height:unset;font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--link);text-decoration:underline;cursor:pointer;display:inline-block;color:var(--ds-base-font-color--dimmed);filter:brightness(1.4)}.gxg-alert-error{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--error);display:inline-block}.gxg-alert-warning{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--warning);display:inline-block}.gxg-alert-success{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--success);display:inline-block}.gxg-tab--disabled{color:var(--color-primary-disabled);pointer-events:none}.gxg-tab--disabled[disabled]{color:var(--color-primary-disabled);pointer-events:none}.gxg-label{font-family:var(--ds-base-font-family-primary);font-weight:var(--gxg-label-font-weight);font-size:var(--gxg-label-font-size);color:var(--gxg-label-color);text-align:center;line-height:1.455em;display:flex;align-items:center}.gxg-label:hover{color:var(--color-primary-hover)}.gxg-label:focus{color:var(--color-primary-active)}.gxg-label:active{color:var(--color-primary-active)}.gxg-label[disabled]{color:var(--color-primary-disabled)}.gxg-label--negative{color:var(--color-on-primary)}.gxg-label--negative[disabled]{color:var(--color-on-disabled)}.gxg-scrollbar{}.gxg-scrollbar::-webkit-scrollbar{width:var(--gxg-scrollbar-width);height:var(--gxg-scrollbar-width)}.gxg-scrollbar::-webkit-scrollbar-track{background-color:var(--gxg-scrollbar-track-background);border-radius:var(--gxg-scrollbar-track-border-radius)}.gxg-scrollbar::-webkit-scrollbar-thumb{background-color:var(--gxg-scrollbar-track-thumb-background);border-radius:var(--gxg-scrollbar-track-thumb-radius)}.gxg-scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--gxg-scrollbar-track-thumb-hover-background)}.gxg-scrollbar::-webkit-scrollbar-corner{background:rgba(0, 0, 0, 0)}.gxi-hidden{display:none !important}.gxi-full-height{height:100%}.gxi-overflow-auto{overflow:auto}.gxi-display-flex{display:flex}.align-start{display:flex;align-items:start}.align-center{display:flex;align-items:center}.align-end{display:flex;align-items:end}.overflow-auto{overflow:auto}.justify-start{display:flex;justify-content:start}.justify-center{display:flex;justify-content:center}.justify-end{display:flex;justify-content:end}.grid{display:grid;grid-row-gap:var(--gx-ide-grid-row-gap);grid-column-gap:var(--gx-ide-grid-column-gap);grid-template-rows:auto}ch-grid-cell{display:flex}ch-grid{overflow:auto;height:100%}ch-grid-column{z-index:99;border-bottom:1px solid var(--mer-color__neutral-gray--800)}ch-grid-column:first-child{padding-inline-start:var(--gx-ide-container__padding) !important}ch-grid-column:last-child{padding-inline-end:var(--gx-ide-container__padding) !important}ch-grid-cell{--mer-spacing--xs:var(--gx-ide-container__padding)}.layout{display:grid;gap:var(--mer-spacing--lg);box-sizing:border-box}.layout--two-cols{grid-template-columns:1fr 1fr}.layout--space-above{padding-block-start:var(--mer-spacing--lg)}gxg-tabs{box-shadow:none}:host(.gx-ide-component){height:100% !important;display:flex !important;flex-direction:column !important}:host(:focus-within) gx-ide-top-bar::part(wrapper){background-color:var(--color-secondary-enabled)}.gx-ide-main-wrapper{color:var(--gx-ide-component-text-color);font-weight:var(--mer-font__weight--regular);font-size:var(--mer-font__size--xs);font-family:var(--mer-font-family--primary);height:100%;background-color:var(--gx-ide-component-background-color);display:flex;flex-direction:column;flex-grow:1;box-sizing:border-box}.gx-ide-main{flex-grow:1;overflow-y:auto;}.gx-ide-main::-webkit-scrollbar{width:var(--gxg-scrollbar-width);height:var(--gxg-scrollbar-width)}.gx-ide-main::-webkit-scrollbar-track{background-color:var(--gxg-scrollbar-track-background);border-radius:var(--gxg-scrollbar-track-border-radius)}.gx-ide-main::-webkit-scrollbar-thumb{background-color:var(--gxg-scrollbar-track-thumb-background);border-radius:var(--gxg-scrollbar-track-thumb-radius)}.gx-ide-main::-webkit-scrollbar-thumb:hover{background-color:var(--gxg-scrollbar-track-thumb-hover-background)}.gx-ide-main::-webkit-scrollbar-corner{background:rgba(0, 0, 0, 0)}.gx-ide-overflow{overflow-y:auto;}.gx-ide-overflow::-webkit-scrollbar{width:var(--gxg-scrollbar-width);height:var(--gxg-scrollbar-width)}.gx-ide-overflow::-webkit-scrollbar-track{background-color:var(--gxg-scrollbar-track-background);border-radius:var(--gxg-scrollbar-track-border-radius)}.gx-ide-overflow::-webkit-scrollbar-thumb{background-color:var(--gxg-scrollbar-track-thumb-background);border-radius:var(--gxg-scrollbar-track-thumb-radius)}.gx-ide-overflow::-webkit-scrollbar-thumb:hover{background-color:var(--gxg-scrollbar-track-thumb-hover-background)}.gx-ide-overflow::-webkit-scrollbar-corner{background:rgba(0, 0, 0, 0)}.tree-container{display:flex;height:100%;width:100%;box-sizing:border-box}p{margin:0}:host{display:block}.options{max-width:50%;display:flex;flex-direction:column;gap:var(--gx-ide-form-items-gap)}.message-item{display:flex;align-items:start;gap:var(--mer-spacing--xs)}";
|
|
8
|
+
|
|
9
|
+
const n = class {
|
|
10
|
+
constructor(r) {
|
|
11
|
+
e(this, r);
|
|
12
|
+
this.componentDidRenderFirstTime = t(this, "componentDidRenderFirstTime", 7);
|
|
13
|
+
this.renderedFirstTime = false;
|
|
14
|
+
// 7.LISTENERS //
|
|
15
|
+
// 8.PUBLIC METHODS API //
|
|
16
|
+
// 9.LOCAL METHODS //
|
|
17
|
+
this.cancelHandler = () => {
|
|
18
|
+
if (this.cancelCallback) {
|
|
19
|
+
this.cancelCallback();
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
this.saveCallbackHandler = () => {
|
|
23
|
+
if (this.saveCallback) {
|
|
24
|
+
const e = {
|
|
25
|
+
installClient: this.installGxFlowEl.checked,
|
|
26
|
+
futureUpgrades: this.futureUpgradesEl.value
|
|
27
|
+
};
|
|
28
|
+
this.saveCallback(e);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
this.displayTitle = false;
|
|
32
|
+
this.configurationType = "installation";
|
|
33
|
+
this.saveCallback = undefined;
|
|
34
|
+
this.cancelCallback = undefined;
|
|
35
|
+
}
|
|
36
|
+
// 6.COMPONENT LIFECYCLE METHODS //
|
|
37
|
+
async componentWillLoad() {
|
|
38
|
+
this._componentLocale = await s.getComponentStrings(this.el);
|
|
39
|
+
}
|
|
40
|
+
componentDidRender() {
|
|
41
|
+
if (!this.renderedFirstTime) {
|
|
42
|
+
this.componentDidRenderFirstTime.emit(this._componentLocale.componentName);
|
|
43
|
+
this.renderedFirstTime = true;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
// 10.RENDER() FUNCTION //
|
|
47
|
+
render() {
|
|
48
|
+
return r(o, {
|
|
49
|
+
class: "gx-ide-component"
|
|
50
|
+
}, r("div", {
|
|
51
|
+
class: "gx-ide-main-wrapper"
|
|
52
|
+
}, r("gx-ide-container", {
|
|
53
|
+
containerTitle: this.displayTitle ? this._componentLocale.componentName : null,
|
|
54
|
+
slimmerFooter: i.gxIdeContainer.slimmerFooter
|
|
55
|
+
}, "gx-ide-top", r("div", {
|
|
56
|
+
class: "message-item"
|
|
57
|
+
}, r("gxg-icon", {
|
|
58
|
+
type: "gx-server/changes-commit-pending",
|
|
59
|
+
color: "auto",
|
|
60
|
+
size: "small"
|
|
61
|
+
}), r("gxg-text", null, this._componentLocale.description[this.configurationType])), r("div", {
|
|
62
|
+
class: "options"
|
|
63
|
+
}, r("gxg-form-checkbox", {
|
|
64
|
+
label: this._componentLocale.installGxFlow,
|
|
65
|
+
ref: e => this.installGxFlowEl = e
|
|
66
|
+
}), r("gxg-combo-box", {
|
|
67
|
+
class: "upgrades-options",
|
|
68
|
+
label: this._componentLocale.manageUpgrades,
|
|
69
|
+
disableFilter: true,
|
|
70
|
+
ref: e => this.futureUpgradesEl = e
|
|
71
|
+
}, r("gxg-combo-box-item", {
|
|
72
|
+
value: "automatic"
|
|
73
|
+
}, this._componentLocale.upgradesOptions[0]), r("gxg-combo-box-item", {
|
|
74
|
+
value: "prompt"
|
|
75
|
+
}, this._componentLocale.upgradesOptions[1]), r("gxg-combo-box-item", {
|
|
76
|
+
value: "never"
|
|
77
|
+
}, this._componentLocale.upgradesOptions[2]))), r("gxg-text", {
|
|
78
|
+
textAlign: "end",
|
|
79
|
+
type: "text-regular"
|
|
80
|
+
}, this._componentLocale.prompt[this.configurationType]), r("gxg-button", {
|
|
81
|
+
slot: "footer-end",
|
|
82
|
+
type: "outlined",
|
|
83
|
+
onClick: this.cancelHandler
|
|
84
|
+
}, "Cancel"), r("gxg-button", {
|
|
85
|
+
slot: "footer-end",
|
|
86
|
+
onClick: this.saveCallbackHandler
|
|
87
|
+
}, this._componentLocale.footer.confirmButton[this.configurationType]))));
|
|
88
|
+
}
|
|
89
|
+
static get assetsDirs() {
|
|
90
|
+
return [ "gx-ide-assets/wf-settings" ];
|
|
91
|
+
}
|
|
92
|
+
get el() {
|
|
93
|
+
return a(this);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
n.style = l;
|
|
98
|
+
|
|
99
|
+
export { n as gx_ide_wf_settings };
|
|
100
|
+
//# sourceMappingURL=p-f19ec1c3.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["wfSettingsCss","GxIdeWFSettings","this","renderedFirstTime","cancelHandler","cancelCallback","saveCallbackHandler","saveCallback","wfConfigData","installClient","installGxFlowEl","checked","futureUpgrades","futureUpgradesEl","value","componentWillLoad","_componentLocale","Locale","getComponentStrings","el","componentDidRender","componentDidRenderFirstTime","emit","componentName","render","h","Host","class","containerTitle","displayTitle","slimmerFooter","config","gxIdeContainer","type","color","size","description","configurationType","label","installGxFlow","ref","manageUpgrades","disableFilter","upgradesOptions","textAlign","prompt","slot","onClick","footer","confirmButton"],"sources":["src/components/wf-settings/wf-settings.scss?tag=gx-ide-wf-settings&encapsulation=shadow","src/components/wf-settings/wf-settings.tsx"],"sourcesContent":["@import \"../../global/gx-ide-common.scss\";\n@import \"../../global/gx-ide-mixins.scss\";\n\n:host {\n display: block;\n}\n\n.options {\n max-width: 50%;\n display: flex;\n flex-direction: column;\n gap: var(--gx-ide-form-items-gap);\n}\n.message-item {\n display: flex;\n align-items: start;\n gap: var(--mer-spacing--xs);\n}\n","/* STENCIL IMPORTS */\nimport {\n Component,\n Host,\n h,\n Prop,\n Element,\n Event,\n EventEmitter\n} from \"@stencil/core\";\n/* OTHER LIBRARIES IMPORTS */\n/* CUSTOM IMPORTS */\nimport { config } from \"../../common/config\";\nimport { Locale } from \"../../common/locale\";\n\n@Component({\n tag: \"gx-ide-wf-settings\",\n styleUrl: \"wf-settings.scss\",\n shadow: true,\n assetsDirs: [\"gx-ide-assets/wf-settings\"]\n})\nexport class GxIdeWFSettings {\n // 1.OWN PROPERTIES //\n\n /**\n * The component hard-coded strings translations.\n */\n private _componentLocale: any;\n private renderedFirstTime = false;\n\n // 2. REFERENCE TO ELEMENTS //\n\n @Element() el: HTMLGxIdeWfSettingsElement;\n private installGxFlowEl!: HTMLGxgFormCheckboxElement;\n private futureUpgradesEl!: HTMLGxgComboBoxElement;\n\n // 3.STATE() VARIABLES //\n\n // 4.PUBLIC PROPERTY API | WATCH'S //\n\n /**\n * If true it displays the component title on the header\n */\n @Prop() readonly displayTitle = false;\n\n /**\n * The configuration type\n */\n @Prop() readonly configurationType: ConfigurationType = \"installation\";\n\n /**\n * Callback invoked when the user presses the 'OK' button. As a parameter, it receives the data entered by the user\n */\n @Prop() readonly saveCallback: (config: WFConfigData) => Promise<void>;\n\n /**\n * Callback invoked when the user presses the 'Cancel' button.\n */\n @Prop() readonly cancelCallback: () => Promise<void>;\n\n // 5.EVENTS (EMIT) //\n\n /**\n * @description Gets fired when the component has rendered for the first time.\n */\n @Event() componentDidRenderFirstTime: EventEmitter<string>;\n\n // 6.COMPONENT LIFECYCLE METHODS //\n\n async componentWillLoad() {\n this._componentLocale = await Locale.getComponentStrings(this.el);\n }\n\n componentDidRender() {\n if (!this.renderedFirstTime) {\n this.componentDidRenderFirstTime.emit(\n this._componentLocale.componentName\n );\n this.renderedFirstTime = true;\n }\n }\n\n // 7.LISTENERS //\n\n // 8.PUBLIC METHODS API //\n\n // 9.LOCAL METHODS //\n\n private cancelHandler = () => {\n if (this.cancelCallback) {\n this.cancelCallback();\n }\n };\n\n private saveCallbackHandler = () => {\n if (this.saveCallback) {\n const wfConfigData: WFConfigData = {\n installClient: this.installGxFlowEl.checked,\n futureUpgrades: this.futureUpgradesEl.value\n };\n this.saveCallback(wfConfigData);\n }\n };\n\n // 10.RENDER() FUNCTION //\n\n render() {\n return (\n <Host class=\"gx-ide-component\">\n <div class=\"gx-ide-main-wrapper\">\n <gx-ide-container\n containerTitle={\n this.displayTitle ? this._componentLocale.componentName : null\n }\n slimmerFooter={config.gxIdeContainer.slimmerFooter}\n >\n gx-ide-top\n <div class=\"message-item\">\n <gxg-icon\n type=\"gx-server/changes-commit-pending\"\n color=\"auto\"\n size=\"small\"\n ></gxg-icon>\n <gxg-text>\n {this._componentLocale.description[this.configurationType]}\n </gxg-text>\n </div>\n <div class=\"options\">\n <gxg-form-checkbox\n label={this._componentLocale.installGxFlow}\n ref={el =>\n (this.installGxFlowEl = el as HTMLGxgFormCheckboxElement)\n }\n ></gxg-form-checkbox>\n <gxg-combo-box\n class=\"upgrades-options\"\n label={this._componentLocale.manageUpgrades}\n disableFilter\n ref={el =>\n (this.futureUpgradesEl = el as HTMLGxgComboBoxElement)\n }\n >\n <gxg-combo-box-item value=\"automatic\">\n {this._componentLocale.upgradesOptions[0]}\n </gxg-combo-box-item>\n <gxg-combo-box-item value=\"prompt\">\n {this._componentLocale.upgradesOptions[1]}\n </gxg-combo-box-item>\n <gxg-combo-box-item value=\"never\">\n {this._componentLocale.upgradesOptions[2]}\n </gxg-combo-box-item>\n </gxg-combo-box>\n </div>\n <gxg-text textAlign=\"end\" type=\"text-regular\">\n {this._componentLocale.prompt[this.configurationType]}\n </gxg-text>\n <gxg-button\n slot=\"footer-end\"\n type=\"outlined\"\n onClick={this.cancelHandler}\n >\n Cancel\n </gxg-button>\n <gxg-button slot=\"footer-end\" onClick={this.saveCallbackHandler}>\n {\n this._componentLocale.footer.confirmButton[\n this.configurationType\n ]\n }\n </gxg-button>\n </gx-ide-container>\n </div>\n </Host>\n );\n }\n}\n\nexport type WFConfigData = {\n installClient: boolean;\n futureUpgrades: \"never\" | \"prompt\" | \"automatic\";\n};\n\nexport type ConfigurationType = \"installation\" | \"update\";\n\nexport type saveCallback = (config: WFConfigData) => Promise<void>;\n"],"mappings":";;;;;;AAAA,MAAMA,IAAgB;;MCqBTC,IAAe;;;;IAOlBC,KAAAC,oBAAoB;;;;QA4DpBD,KAAAE,gBAAgB;MACtB,IAAIF,KAAKG,gBAAgB;QACvBH,KAAKG;;;IAIDH,KAAAI,sBAAsB;MAC5B,IAAIJ,KAAKK,cAAc;QACrB,MAAMC,IAA6B;UACjCC,eAAeP,KAAKQ,gBAAgBC;UACpCC,gBAAgBV,KAAKW,iBAAiBC;;QAExCZ,KAAKK,aAAaC;;;wBAzDU;6BAKwB;;;;;EAqBxD,uBAAMO;IACJb,KAAKc,yBAAyBC,EAAOC,oBAAoBhB,KAAKiB;;EAGhE,kBAAAC;IACE,KAAKlB,KAAKC,mBAAmB;MAC3BD,KAAKmB,4BAA4BC,KAC/BpB,KAAKc,iBAAiBO;MAExBrB,KAAKC,oBAAoB;;;;EA4B7B,MAAAqB;IACE,OACEC,EAACC,GAAI;MAACC,OAAM;OACVF,EAAA;MAAKE,OAAM;OACTF,EAAA;MACEG,gBACE1B,KAAK2B,eAAe3B,KAAKc,iBAAiBO,gBAAgB;MAE5DO,eAAeC,EAAOC,eAAeF;OAAa,cAGlDL,EAAA;MAAKE,OAAM;OACTF,EAAA;MACEQ,MAAK;MACLC,OAAM;MACNC,MAAK;QAEPV,EAAA,kBACGvB,KAAKc,iBAAiBoB,YAAYlC,KAAKmC,sBAG5CZ,EAAA;MAAKE,OAAM;OACTF,EAAA;MACEa,OAAOpC,KAAKc,iBAAiBuB;MAC7BC,KAAKrB,KACFjB,KAAKQ,kBAAkBS;QAG5BM,EAAA;MACEE,OAAM;MACNW,OAAOpC,KAAKc,iBAAiByB;MAC7BC,eAAa;MACbF,KAAKrB,KACFjB,KAAKW,mBAAmBM;OAG3BM,EAAA;MAAoBX,OAAM;OACvBZ,KAAKc,iBAAiB2B,gBAAgB,KAEzClB,EAAA;MAAoBX,OAAM;OACvBZ,KAAKc,iBAAiB2B,gBAAgB,KAEzClB,EAAA;MAAoBX,OAAM;OACvBZ,KAAKc,iBAAiB2B,gBAAgB,OAI7ClB,EAAA;MAAUmB,WAAU;MAAMX,MAAK;OAC5B/B,KAAKc,iBAAiB6B,OAAO3C,KAAKmC,qBAErCZ,EAAA;MACEqB,MAAK;MACLb,MAAK;MACLc,SAAS7C,KAAKE;OAAa,WAI7BqB,EAAA;MAAYqB,MAAK;MAAaC,SAAS7C,KAAKI;OAExCJ,KAAKc,iBAAiBgC,OAAOC,cAC3B/C,KAAKmC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
export declare class GxIdeWFSettings {
|
|
3
|
+
/**
|
|
4
|
+
* The component hard-coded strings translations.
|
|
5
|
+
*/
|
|
6
|
+
private _componentLocale;
|
|
7
|
+
private renderedFirstTime;
|
|
8
|
+
el: HTMLGxIdeWfSettingsElement;
|
|
9
|
+
private installGxFlowEl;
|
|
10
|
+
private futureUpgradesEl;
|
|
11
|
+
/**
|
|
12
|
+
* If true it displays the component title on the header
|
|
13
|
+
*/
|
|
14
|
+
readonly displayTitle = false;
|
|
15
|
+
/**
|
|
16
|
+
* The configuration type
|
|
17
|
+
*/
|
|
18
|
+
readonly configurationType: ConfigurationType;
|
|
19
|
+
/**
|
|
20
|
+
* Callback invoked when the user presses the 'OK' button. As a parameter, it receives the data entered by the user
|
|
21
|
+
*/
|
|
22
|
+
readonly saveCallback: (config: WFConfigData) => Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Callback invoked when the user presses the 'Cancel' button.
|
|
25
|
+
*/
|
|
26
|
+
readonly cancelCallback: () => Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* @description Gets fired when the component has rendered for the first time.
|
|
29
|
+
*/
|
|
30
|
+
componentDidRenderFirstTime: EventEmitter<string>;
|
|
31
|
+
componentWillLoad(): Promise<void>;
|
|
32
|
+
componentDidRender(): void;
|
|
33
|
+
private cancelHandler;
|
|
34
|
+
private saveCallbackHandler;
|
|
35
|
+
render(): any;
|
|
36
|
+
}
|
|
37
|
+
export type WFConfigData = {
|
|
38
|
+
installClient: boolean;
|
|
39
|
+
futureUpgrades: "never" | "prompt" | "automatic";
|
|
40
|
+
};
|
|
41
|
+
export type ConfigurationType = "installation" | "update";
|
|
42
|
+
export type saveCallback = (config: WFConfigData) => Promise<void>;
|
|
@@ -46,6 +46,7 @@ import { ConfirmCallback as ConfirmCallback5, GridContextMenuCallback, LoadCallb
|
|
|
46
46
|
import { AddCallback, CancelCallback as CancelCallback12, ConfirmCallback as ConfirmCallback6, ObjectData as ObjectData1 } from "./components/team-dev/update-partial-selection/update-partial-selection";
|
|
47
47
|
import { cancelCallbackFn, confirmCallbackFn } from "./components/team-dev/update-to-revision/update-to-revision";
|
|
48
48
|
import { TitleAlignment as TitleAlignment1, TitleType as TitleType1 } from "./components/_helpers/title/title";
|
|
49
|
+
import { ConfigurationType, WFConfigData } from "./components/wf-settings/wf-settings";
|
|
49
50
|
import { ContextMenuCallback, DeleteSelectionCallback, LoadCallback as LoadCallback5, LoadImageItemsCallback, NewObjectCallback as NewObjectCallback1, OpenSelectionCallback as OpenSelectionCallback1, SelectionObjectCallback, SelectModuleCallback as SelectModuleCallback3 } from "./components/ww-images/ww-images";
|
|
50
51
|
export { AiStatus, Message, UserMessageCallback } from "./components/ai-assistant/ai-assistant";
|
|
51
52
|
export { MessageType } from "./components/ai-assistant/ai-assistant";
|
|
@@ -88,6 +89,7 @@ export { ConfirmCallback as ConfirmCallback5, GridContextMenuCallback, LoadCallb
|
|
|
88
89
|
export { AddCallback, CancelCallback as CancelCallback12, ConfirmCallback as ConfirmCallback6, ObjectData as ObjectData1 } from "./components/team-dev/update-partial-selection/update-partial-selection";
|
|
89
90
|
export { cancelCallbackFn, confirmCallbackFn } from "./components/team-dev/update-to-revision/update-to-revision";
|
|
90
91
|
export { TitleAlignment as TitleAlignment1, TitleType as TitleType1 } from "./components/_helpers/title/title";
|
|
92
|
+
export { ConfigurationType, WFConfigData } from "./components/wf-settings/wf-settings";
|
|
91
93
|
export { ContextMenuCallback, DeleteSelectionCallback, LoadCallback as LoadCallback5, LoadImageItemsCallback, NewObjectCallback as NewObjectCallback1, OpenSelectionCallback as OpenSelectionCallback1, SelectionObjectCallback, SelectModuleCallback as SelectModuleCallback3 } from "./components/ww-images/ww-images";
|
|
92
94
|
export namespace Components {
|
|
93
95
|
interface GxIdeAiAssistant {
|
|
@@ -1574,6 +1576,24 @@ export namespace Components {
|
|
|
1574
1576
|
*/
|
|
1575
1577
|
"topBarTitle": string;
|
|
1576
1578
|
}
|
|
1579
|
+
interface GxIdeWfSettings {
|
|
1580
|
+
/**
|
|
1581
|
+
* Callback invoked when the user presses the 'Cancel' button.
|
|
1582
|
+
*/
|
|
1583
|
+
"cancelCallback": () => Promise<void>;
|
|
1584
|
+
/**
|
|
1585
|
+
* The configuration type
|
|
1586
|
+
*/
|
|
1587
|
+
"configurationType": ConfigurationType;
|
|
1588
|
+
/**
|
|
1589
|
+
* If true it displays the component title on the header
|
|
1590
|
+
*/
|
|
1591
|
+
"displayTitle": false;
|
|
1592
|
+
/**
|
|
1593
|
+
* Callback invoked when the user presses the 'OK' button. As a parameter, it receives the data entered by the user
|
|
1594
|
+
*/
|
|
1595
|
+
"saveCallback": (config: WFConfigData) => Promise<void>;
|
|
1596
|
+
}
|
|
1577
1597
|
interface GxIdeWwImages {
|
|
1578
1598
|
/**
|
|
1579
1599
|
* The categories render in the filter category selector
|
|
@@ -1789,6 +1809,10 @@ export interface GxIdeTemplateCustomEvent<T> extends CustomEvent<T> {
|
|
|
1789
1809
|
detail: T;
|
|
1790
1810
|
target: HTMLGxIdeTemplateElement;
|
|
1791
1811
|
}
|
|
1812
|
+
export interface GxIdeWfSettingsCustomEvent<T> extends CustomEvent<T> {
|
|
1813
|
+
detail: T;
|
|
1814
|
+
target: HTMLGxIdeWfSettingsElement;
|
|
1815
|
+
}
|
|
1792
1816
|
export interface GxIdeWwImagesCustomEvent<T> extends CustomEvent<T> {
|
|
1793
1817
|
detail: T;
|
|
1794
1818
|
target: HTMLGxIdeWwImagesElement;
|
|
@@ -2383,6 +2407,23 @@ declare global {
|
|
|
2383
2407
|
prototype: HTMLGxIdeTopBarElement;
|
|
2384
2408
|
new (): HTMLGxIdeTopBarElement;
|
|
2385
2409
|
};
|
|
2410
|
+
interface HTMLGxIdeWfSettingsElementEventMap {
|
|
2411
|
+
"componentDidRenderFirstTime": string;
|
|
2412
|
+
}
|
|
2413
|
+
interface HTMLGxIdeWfSettingsElement extends Components.GxIdeWfSettings, HTMLStencilElement {
|
|
2414
|
+
addEventListener<K extends keyof HTMLGxIdeWfSettingsElementEventMap>(type: K, listener: (this: HTMLGxIdeWfSettingsElement, ev: GxIdeWfSettingsCustomEvent<HTMLGxIdeWfSettingsElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2415
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2416
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2417
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2418
|
+
removeEventListener<K extends keyof HTMLGxIdeWfSettingsElementEventMap>(type: K, listener: (this: HTMLGxIdeWfSettingsElement, ev: GxIdeWfSettingsCustomEvent<HTMLGxIdeWfSettingsElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2419
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2420
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2421
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2422
|
+
}
|
|
2423
|
+
var HTMLGxIdeWfSettingsElement: {
|
|
2424
|
+
prototype: HTMLGxIdeWfSettingsElement;
|
|
2425
|
+
new (): HTMLGxIdeWfSettingsElement;
|
|
2426
|
+
};
|
|
2386
2427
|
interface HTMLGxIdeWwImagesElementEventMap {
|
|
2387
2428
|
"componentDidLoadEvent": boolean;
|
|
2388
2429
|
"componentDidRenderFirstTime": string;
|
|
@@ -2443,6 +2484,7 @@ declare global {
|
|
|
2443
2484
|
"gx-ide-test": HTMLGxIdeTestElement;
|
|
2444
2485
|
"gx-ide-title": HTMLGxIdeTitleElement;
|
|
2445
2486
|
"gx-ide-top-bar": HTMLGxIdeTopBarElement;
|
|
2487
|
+
"gx-ide-wf-settings": HTMLGxIdeWfSettingsElement;
|
|
2446
2488
|
"gx-ide-ww-images": HTMLGxIdeWwImagesElement;
|
|
2447
2489
|
}
|
|
2448
2490
|
}
|
|
@@ -4039,6 +4081,28 @@ declare namespace LocalJSX {
|
|
|
4039
4081
|
*/
|
|
4040
4082
|
"topBarTitle"?: string;
|
|
4041
4083
|
}
|
|
4084
|
+
interface GxIdeWfSettings {
|
|
4085
|
+
/**
|
|
4086
|
+
* Callback invoked when the user presses the 'Cancel' button.
|
|
4087
|
+
*/
|
|
4088
|
+
"cancelCallback"?: () => Promise<void>;
|
|
4089
|
+
/**
|
|
4090
|
+
* The configuration type
|
|
4091
|
+
*/
|
|
4092
|
+
"configurationType"?: ConfigurationType;
|
|
4093
|
+
/**
|
|
4094
|
+
* If true it displays the component title on the header
|
|
4095
|
+
*/
|
|
4096
|
+
"displayTitle"?: false;
|
|
4097
|
+
/**
|
|
4098
|
+
* @description Gets fired when the component has rendered for the first time.
|
|
4099
|
+
*/
|
|
4100
|
+
"onComponentDidRenderFirstTime"?: (event: GxIdeWfSettingsCustomEvent<string>) => void;
|
|
4101
|
+
/**
|
|
4102
|
+
* Callback invoked when the user presses the 'OK' button. As a parameter, it receives the data entered by the user
|
|
4103
|
+
*/
|
|
4104
|
+
"saveCallback"?: (config: WFConfigData) => Promise<void>;
|
|
4105
|
+
}
|
|
4042
4106
|
interface GxIdeWwImages {
|
|
4043
4107
|
/**
|
|
4044
4108
|
* The categories render in the filter category selector
|
|
@@ -4175,6 +4239,7 @@ declare namespace LocalJSX {
|
|
|
4175
4239
|
"gx-ide-test": GxIdeTest;
|
|
4176
4240
|
"gx-ide-title": GxIdeTitle;
|
|
4177
4241
|
"gx-ide-top-bar": GxIdeTopBar;
|
|
4242
|
+
"gx-ide-wf-settings": GxIdeWfSettings;
|
|
4178
4243
|
"gx-ide-ww-images": GxIdeWwImages;
|
|
4179
4244
|
}
|
|
4180
4245
|
}
|
|
@@ -4223,6 +4288,7 @@ declare module "@stencil/core" {
|
|
|
4223
4288
|
"gx-ide-test": LocalJSX.GxIdeTest & JSXBase.HTMLAttributes<HTMLGxIdeTestElement>;
|
|
4224
4289
|
"gx-ide-title": LocalJSX.GxIdeTitle & JSXBase.HTMLAttributes<HTMLGxIdeTitleElement>;
|
|
4225
4290
|
"gx-ide-top-bar": LocalJSX.GxIdeTopBar & JSXBase.HTMLAttributes<HTMLGxIdeTopBarElement>;
|
|
4291
|
+
"gx-ide-wf-settings": LocalJSX.GxIdeWfSettings & JSXBase.HTMLAttributes<HTMLGxIdeWfSettingsElement>;
|
|
4226
4292
|
"gx-ide-ww-images": LocalJSX.GxIdeWwImages & JSXBase.HTMLAttributes<HTMLGxIdeWwImagesElement>;
|
|
4227
4293
|
}
|
|
4228
4294
|
}
|