@decidables/discountable-elements 0.3.0 → 0.3.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.3.1](https://github.com/decidables/decidables/compare/@decidables/discountable-elements@0.3.0...@decidables/discountable-elements@0.3.1) (2023-12-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **libraries:** add event listeners in connectedCallback ([affc3de](https://github.com/decidables/decidables/commit/affc3de94ad40a3811ae8d710dbc2461ce492251))
12
+ * **libraries:** move alignState to willUpdate ([d6decd0](https://github.com/decidables/decidables/commit/d6decd07b9430ddf858d9996869f23b987c44b42))
13
+
14
+
15
+
6
16
  ## [0.3.0](https://github.com/decidables/decidables/compare/@decidables/discountable-elements@0.2.0...@decidables/discountable-elements@0.3.0) (2023-11-30)
7
17
 
8
18
 
@@ -12607,8 +12607,10 @@ class HTDCalculation extends HTDEquation {
12607
12607
  }
12608
12608
  `];
12609
12609
  }
12610
- render() {
12610
+ willUpdate() {
12611
12611
  this.alignState();
12612
+ }
12613
+ render() {
12612
12614
  let as;
12613
12615
  let ds;
12614
12616
  let al;
@@ -13027,12 +13029,12 @@ class HTDCurves extends DecidablesMixinResizeable(DiscountableElement) {
13027
13029
  render() {
13028
13030
  /* eslint-disable-line class-methods-use-this */
13029
13031
  return x$2``;
13030
- // ${DiscountableElement.svgFilters}
13031
- // `;
13032
+ }
13033
+ willUpdate() {
13034
+ this.alignState();
13032
13035
  }
13033
13036
  update(changedProperties) {
13034
13037
  super.update(changedProperties);
13035
- this.alignState();
13036
13038
 
13037
13039
  // Bail out if we can't get the width/height
13038
13040
  if (Number.isNaN(this.width) || Number.isNaN(this.height) || Number.isNaN(this.rem)) {
@@ -22806,8 +22808,10 @@ class HTDEquationADK2V extends HTDEquation {
22806
22808
  this.alignState();
22807
22809
  this.sendEvent();
22808
22810
  }
22809
- render() {
22811
+ willUpdate() {
22810
22812
  this.alignState();
22813
+ }
22814
+ render() {
22811
22815
  let a;
22812
22816
  let d;
22813
22817
  let k;
@@ -22930,8 +22934,8 @@ customElements.define('htd-example', HTDExample);
22930
22934
  <htd-example-human>
22931
22935
  */
22932
22936
  class HTDExampleHuman extends HTDExample {
22933
- firstUpdated( /* changedProperties */
22934
- ) {
22937
+ connectedCallback() {
22938
+ super.connectedCallback();
22935
22939
  this.discountableControl = this.querySelector('discountable-control');
22936
22940
  this.itcTask = this.querySelector('itc-task');
22937
22941
  this.discountableResponse = this.querySelector('discountable-response');
@@ -23083,8 +23087,8 @@ class HTDExampleInteractive extends HTDExample {
23083
23087
  this.htdCurves = null;
23084
23088
  this.itcChoice = null;
23085
23089
  }
23086
- firstUpdated( /* changedProperties */
23087
- ) {
23090
+ connectedCallback() {
23091
+ super.connectedCallback();
23088
23092
  this.htdCalculation = this.querySelector('htd-calculation');
23089
23093
  this.htdCurves = this.querySelector('htd-curves');
23090
23094
  this.itcChoice = this.querySelector('itc-choice');
@@ -23166,8 +23170,8 @@ class HTDExampleModel extends HTDExample {
23166
23170
  this.htdCurves = null;
23167
23171
  this.itcTask = null;
23168
23172
  }
23169
- firstUpdated( /* changedProperties */
23170
- ) {
23173
+ connectedCallback() {
23174
+ super.connectedCallback();
23171
23175
  this.discountableControl = this.querySelector('discountable-control');
23172
23176
  this.discountableResponse = this.querySelector('discountable-response');
23173
23177
  this.htdCalculation = this.querySelector('htd-calculation');