@yoobic/yobi 8.5.0-48 → 8.5.0-49

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.
@@ -420,7 +420,7 @@ const YooMissionDetailsComponent = class {
420
420
  'bg-light': this.isMobile,
421
421
  'bg-stable-ultralight': !this.isMobile,
422
422
  'no-scrollbar': true
423
- } }, index.h("div", null, index.h("slot", { name: "before-header" }), this.renderTodoMissionHeader(), index.h("div", { class: { 'mission-content': true, 'web': !this.isMobile && !this.isPreview, 'bg-light': true } }, this.renderTodoMissionSummary(), index.h("slot", null)), !!(buttons === null || buttons === void 0 ? void 0 : buttons.length) && index.h("div", { class: { 'scroll-spacer': true, web: !this.isMobile } }))), this.renderFooter(buttons))
423
+ } }, index.h("div", null, index.h("slot", { name: "before-header" }), this.renderTodoMissionHeader(), index.h("div", { class: { 'mission-content': true, 'web': !this.isMobile && !this.isPreview, 'bg-light': true } }, this.renderTodoMissionSummary(), index.h("slot", null)), index.h("slot", { name: "end" }), !!(buttons === null || buttons === void 0 ? void 0 : buttons.length) && index.h("div", { class: { 'scroll-spacer': true, web: !this.isMobile } }))), this.renderFooter(buttons))
424
424
  ];
425
425
  }
426
426
  renderMissionDetails() {
@@ -490,10 +490,14 @@ const YooMissionDetailsComponent = class {
490
490
  return (this.isTodoMission || this.isTodoCampaign) ? this.renderTodoMissionDetails() : this.renderMissionDetails();
491
491
  }
492
492
  renderResults() {
493
- return this.isTodoCampaign ? this.renderTodoMissionDetails() : this.renderMissionResults();
493
+ return this.isTodoMission ? this.renderTodoMissionDetails() : this.renderMissionResults();
494
494
  }
495
495
  render() {
496
- return (index.h(index.Host, { class: { 'mission-results-deprecated': this.isResult && !this.isTodoCampaign, 'mission-detail-deprecated': !this.isResult || this.isTodoCampaign, ...commonHelpers.getAppContext(this.host) } }, this.mission && !this.isResult && this.renderDetails(), this.mission && this.isResult && this.renderResults()));
496
+ const renderTodo = this.isTodoMission || this.isTodoCampaign;
497
+ return (index.h(index.Host, { class: {
498
+ 'mission-results-deprecated': this.isResult && !renderTodo,
499
+ 'mission-detail-deprecated': !this.isResult || renderTodo, ...commonHelpers.getAppContext(this.host)
500
+ } }, this.mission && !this.isResult && this.renderDetails(), this.mission && this.isResult && this.renderResults()));
497
501
  }
498
502
  get host() { return index.getElement(this); }
499
503
  static get watchers() { return {
@@ -400,7 +400,7 @@ export class YooMissionDetailsComponent {
400
400
  'bg-light': this.isMobile,
401
401
  'bg-stable-ultralight': !this.isMobile,
402
402
  'no-scrollbar': true
403
- } }, h("div", null, h("slot", { name: "before-header" }), this.renderTodoMissionHeader(), h("div", { class: { 'mission-content': true, 'web': !this.isMobile && !this.isPreview, 'bg-light': true } }, this.renderTodoMissionSummary(), h("slot", null)), !!(buttons === null || buttons === void 0 ? void 0 : buttons.length) && h("div", { class: { 'scroll-spacer': true, web: !this.isMobile } }))), this.renderFooter(buttons))
403
+ } }, h("div", null, h("slot", { name: "before-header" }), this.renderTodoMissionHeader(), h("div", { class: { 'mission-content': true, 'web': !this.isMobile && !this.isPreview, 'bg-light': true } }, this.renderTodoMissionSummary(), h("slot", null)), h("slot", { name: "end" }), !!(buttons === null || buttons === void 0 ? void 0 : buttons.length) && h("div", { class: { 'scroll-spacer': true, web: !this.isMobile } }))), this.renderFooter(buttons))
404
404
  ];
405
405
  }
406
406
  renderMissionDetails() {
@@ -470,10 +470,14 @@ export class YooMissionDetailsComponent {
470
470
  return (this.isTodoMission || this.isTodoCampaign) ? this.renderTodoMissionDetails() : this.renderMissionDetails();
471
471
  }
472
472
  renderResults() {
473
- return this.isTodoCampaign ? this.renderTodoMissionDetails() : this.renderMissionResults();
473
+ return this.isTodoMission ? this.renderTodoMissionDetails() : this.renderMissionResults();
474
474
  }
475
475
  render() {
476
- return (h(Host, { class: { 'mission-results-deprecated': this.isResult && !this.isTodoCampaign, 'mission-detail-deprecated': !this.isResult || this.isTodoCampaign, ...getAppContext(this.host) } }, this.mission && !this.isResult && this.renderDetails(), this.mission && this.isResult && this.renderResults()));
476
+ const renderTodo = this.isTodoMission || this.isTodoCampaign;
477
+ return (h(Host, { class: {
478
+ 'mission-results-deprecated': this.isResult && !renderTodo,
479
+ 'mission-detail-deprecated': !this.isResult || renderTodo, ...getAppContext(this.host)
480
+ } }, this.mission && !this.isResult && this.renderDetails(), this.mission && this.isResult && this.renderResults()));
477
481
  }
478
482
  static get is() { return "yoo-mission-details"; }
479
483
  static get encapsulation() { return "shadow"; }
@@ -416,7 +416,7 @@ const YooMissionDetailsComponent = class {
416
416
  'bg-light': this.isMobile,
417
417
  'bg-stable-ultralight': !this.isMobile,
418
418
  'no-scrollbar': true
419
- } }, h("div", null, h("slot", { name: "before-header" }), this.renderTodoMissionHeader(), h("div", { class: { 'mission-content': true, 'web': !this.isMobile && !this.isPreview, 'bg-light': true } }, this.renderTodoMissionSummary(), h("slot", null)), !!(buttons === null || buttons === void 0 ? void 0 : buttons.length) && h("div", { class: { 'scroll-spacer': true, web: !this.isMobile } }))), this.renderFooter(buttons))
419
+ } }, h("div", null, h("slot", { name: "before-header" }), this.renderTodoMissionHeader(), h("div", { class: { 'mission-content': true, 'web': !this.isMobile && !this.isPreview, 'bg-light': true } }, this.renderTodoMissionSummary(), h("slot", null)), h("slot", { name: "end" }), !!(buttons === null || buttons === void 0 ? void 0 : buttons.length) && h("div", { class: { 'scroll-spacer': true, web: !this.isMobile } }))), this.renderFooter(buttons))
420
420
  ];
421
421
  }
422
422
  renderMissionDetails() {
@@ -486,10 +486,14 @@ const YooMissionDetailsComponent = class {
486
486
  return (this.isTodoMission || this.isTodoCampaign) ? this.renderTodoMissionDetails() : this.renderMissionDetails();
487
487
  }
488
488
  renderResults() {
489
- return this.isTodoCampaign ? this.renderTodoMissionDetails() : this.renderMissionResults();
489
+ return this.isTodoMission ? this.renderTodoMissionDetails() : this.renderMissionResults();
490
490
  }
491
491
  render() {
492
- return (h(Host, { class: { 'mission-results-deprecated': this.isResult && !this.isTodoCampaign, 'mission-detail-deprecated': !this.isResult || this.isTodoCampaign, ...getAppContext(this.host) } }, this.mission && !this.isResult && this.renderDetails(), this.mission && this.isResult && this.renderResults()));
492
+ const renderTodo = this.isTodoMission || this.isTodoCampaign;
493
+ return (h(Host, { class: {
494
+ 'mission-results-deprecated': this.isResult && !renderTodo,
495
+ 'mission-detail-deprecated': !this.isResult || renderTodo, ...getAppContext(this.host)
496
+ } }, this.mission && !this.isResult && this.renderDetails(), this.mission && this.isResult && this.renderResults()));
493
497
  }
494
498
  get host() { return getElement(this); }
495
499
  static get watchers() { return {
@@ -416,7 +416,7 @@ const YooMissionDetailsComponent = class {
416
416
  'bg-light': this.isMobile,
417
417
  'bg-stable-ultralight': !this.isMobile,
418
418
  'no-scrollbar': true
419
- } }, h("div", null, h("slot", { name: "before-header" }), this.renderTodoMissionHeader(), h("div", { class: { 'mission-content': true, 'web': !this.isMobile && !this.isPreview, 'bg-light': true } }, this.renderTodoMissionSummary(), h("slot", null)), !!(buttons === null || buttons === void 0 ? void 0 : buttons.length) && h("div", { class: { 'scroll-spacer': true, web: !this.isMobile } }))), this.renderFooter(buttons))
419
+ } }, h("div", null, h("slot", { name: "before-header" }), this.renderTodoMissionHeader(), h("div", { class: { 'mission-content': true, 'web': !this.isMobile && !this.isPreview, 'bg-light': true } }, this.renderTodoMissionSummary(), h("slot", null)), h("slot", { name: "end" }), !!(buttons === null || buttons === void 0 ? void 0 : buttons.length) && h("div", { class: { 'scroll-spacer': true, web: !this.isMobile } }))), this.renderFooter(buttons))
420
420
  ];
421
421
  }
422
422
  renderMissionDetails() {
@@ -486,10 +486,14 @@ const YooMissionDetailsComponent = class {
486
486
  return (this.isTodoMission || this.isTodoCampaign) ? this.renderTodoMissionDetails() : this.renderMissionDetails();
487
487
  }
488
488
  renderResults() {
489
- return this.isTodoCampaign ? this.renderTodoMissionDetails() : this.renderMissionResults();
489
+ return this.isTodoMission ? this.renderTodoMissionDetails() : this.renderMissionResults();
490
490
  }
491
491
  render() {
492
- return (h(Host, { class: { 'mission-results-deprecated': this.isResult && !this.isTodoCampaign, 'mission-detail-deprecated': !this.isResult || this.isTodoCampaign, ...getAppContext(this.host) } }, this.mission && !this.isResult && this.renderDetails(), this.mission && this.isResult && this.renderResults()));
492
+ const renderTodo = this.isTodoMission || this.isTodoCampaign;
493
+ return (h(Host, { class: {
494
+ 'mission-results-deprecated': this.isResult && !renderTodo,
495
+ 'mission-detail-deprecated': !this.isResult || renderTodo, ...getAppContext(this.host)
496
+ } }, this.mission && !this.isResult && this.renderDetails(), this.mission && this.isResult && this.renderResults()));
493
497
  }
494
498
  get host() { return getElement(this); }
495
499
  static get watchers() { return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoobic/yobi",
3
- "version": "8.5.0-48",
3
+ "version": "8.5.0-49",
4
4
  "description": "Yobi - Yoobic Design System",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",