@genexus/genexus-ide-ui 1.1.46 → 1.1.47

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.
@@ -2677,25 +2677,30 @@ const GxIdeStartPage = class {
2677
2677
  var _a, _b;
2678
2678
  this.loading =
2679
2679
  (!this.kbs || ((_a = this.kbs) === null || _a === void 0 ? void 0 : _a.length) === 0) && !this.secondarySection;
2680
+ const renderCreateProjectCard = this.createKBCallback;
2681
+ const renderOpenProjectCard = this.openKbCallback;
2680
2682
  const renderViewSamplesCard = ((_b = this.samples) === null || _b === void 0 ? void 0 : _b.length) && this.openSampleCallback;
2683
+ const renderCardsContainer = renderCreateProjectCard || renderOpenProjectCard || renderViewSamplesCard;
2681
2684
  return (index.h(index.Host, { class: "scrollable" }, index.h("ch-theme", { model: CSS_BUNDLES }), index.h("main", { class: "main scrollable" }, index.h("section", {
2682
2685
  // Create a new Knowledge Base
2683
2686
  class: "section-create-new-kb"
2684
2687
  }, index.h("header", {
2685
2688
  // main header
2686
2689
  class: "section-create-new-kb__header"
2687
- }, index.h("h1", { class: "heading-5 section-create-new-kb__title" }, __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").createKB.title), index.h("p", { class: "body-regular-m" }, __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").createKB.description)), index.h("section", { class: "section-create-new-kb__actions scrollable" }, index.h("article", {
2690
+ }, index.h("h1", { class: "heading-5 section-create-new-kb__title" }, __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").createKB.title), index.h("p", { class: "body-regular-m" }, __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").createKB.description)), renderCardsContainer && (index.h("section", { class: "section-create-new-kb__actions scrollable" }, renderCreateProjectCard && (index.h("article", {
2688
2691
  // create project
2689
2692
  class: "card card-filled"
2690
- }, index.h("header", { class: "card__header" }, index.h("div", { class: "card__header-description" }, index.h("h2", { class: "subtitle-semi-bold-xs card__header-title" }, __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").createProject.title), index.h("p", { class: "body-regular-s" }, __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").createProject.description))), index.h("footer", { class: "card__footer" }, index.h("button", { class: "button-primary", onClick: __classPrivateFieldGet(this, _GxIdeStartPage_createKBClickHandler, "f").call(this, false) }, __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").createProject.buttonCaption))), index.h("article", {
2693
+ }, index.h("header", { class: "card__header" }, index.h("div", { class: "card__header-description" }, index.h("h2", { class: "subtitle-semi-bold-xs card__header-title" }, __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").createProject.title), index.h("p", { class: "body-regular-s" }, __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").createProject.description))), index.h("footer", { class: "card__footer" }, index.h("button", { class: "button-primary", onClick: __classPrivateFieldGet(this, _GxIdeStartPage_createKBClickHandler, "f").call(this, false) }, __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").createProject.buttonCaption)))), renderOpenProjectCard && (index.h("article", {
2691
2694
  // open existing project
2692
2695
  class: "card-filled"
2693
- }, index.h("header", { class: "card__header" }, index.h("div", { class: "card__header-description" }, index.h("h2", { class: "subtitle-semi-bold-xs" }, __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").openExistingProject.title), index.h("p", { class: "body-regular-s" }, __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").openExistingProject.description))), index.h("footer", { class: "card__footer" }, index.h("button", { class: "button-secondary cancel-btn", onClick: __classPrivateFieldGet(this, _GxIdeStartPage_createKBClickHandler, "f").call(this, true) }, __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").openExistingProject.buttonCaption))), renderViewSamplesCard ? (index.h("article", {
2696
+ }, index.h("header", { class: "card__header" }, index.h("div", { class: "card__header-description" }, index.h("h2", { class: "subtitle-semi-bold-xs" }, __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").openExistingProject.title), index.h("p", { class: "body-regular-s" }, __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").openExistingProject
2697
+ .description))), index.h("footer", { class: "card__footer" }, index.h("button", { class: "button-secondary cancel-btn", onClick: __classPrivateFieldGet(this, _GxIdeStartPage_createKBClickHandler, "f").call(this, true) }, __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").openExistingProject
2698
+ .buttonCaption)))), renderViewSamplesCard ? (index.h("article", {
2694
2699
  // view samples
2695
2700
  class: "card-filled"
2696
2701
  }, index.h("header", { class: "card__header" }, index.h("div", { class: "card__header-description" }, index.h("h2", { class: "subtitle-semi-bold-xs" }, __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").viewSamples.title), index.h("p", { class: "body-regular-s" }, __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").viewSamples.description))), index.h("footer", { class: "card__footer" }, index.h("div", { class: "buttons-spacer samples-buttons-container" }, this.samples.map(sample => {
2697
2702
  return (index.h("button", { class: "button-secondary", onClick: () => this.openSampleCallback(sample) }, sample.name));
2698
- }))))) : null)), index.h("section", { class: "section-secondary scrollable" }, this.loading ? (index.h("gx-ide-loader", { class: "loader", loaderTitle: __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").recentKBs.loaderTitle, description: __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").recentKBs.loaderDescription, show: true })) : (__classPrivateFieldGet(this, _GxIdeStartPage_instances, "m", _GxIdeStartPage_evaluateContentToRender).call(this))))));
2703
+ }))))) : null))), index.h("section", { class: "section-secondary scrollable" }, this.loading ? (index.h("gx-ide-loader", { class: "loader", loaderTitle: __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").recentKBs.loaderTitle, description: __classPrivateFieldGet(this, _GxIdeStartPage_componentLocale, "f").recentKBs.loaderDescription, show: true })) : (__classPrivateFieldGet(this, _GxIdeStartPage_instances, "m", _GxIdeStartPage_evaluateContentToRender).call(this))))));
2699
2704
  }
2700
2705
  static get assetsDirs() { return ["gx-ide-assets/start-page"]; }
2701
2706
  get el() { return index.getElement(this); }