@decidables/discountable-elements 0.1.0 → 0.2.0
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 +17 -0
- package/README.md +418 -996
- package/lib/discountableElements.esm.js +8 -6
- package/lib/discountableElements.esm.js.map +1 -1
- package/lib/discountableElements.esm.min.js +5 -3
- package/lib/discountableElements.esm.min.js.map +1 -1
- package/lib/discountableElements.umd.js +8 -6
- package/lib/discountableElements.umd.js.map +1 -1
- package/lib/discountableElements.umd.min.js +5 -3
- package/lib/discountableElements.umd.min.js.map +1 -1
- package/package.json +3 -3
- package/src/components/discountable-response.js +4 -4
- package/src/components/itc-choice.js +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decidables/discountable-elements",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "discountable-elements: Web Components for visualizing Hyperbolic Temporal Discounting",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web component",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@decidables/decidables-elements": "^0.4.0",
|
|
59
|
-
"@decidables/discountable-math": "^0.1.
|
|
59
|
+
"@decidables/discountable-math": "^0.1.1",
|
|
60
60
|
"@lit-labs/motion": "^1.0.4",
|
|
61
61
|
"@observablehq/plot": "^0.6.11",
|
|
62
62
|
"bayes.js": "https://github.com/akrawitz/bayes.js.git#commit=c7b091b75f85a86b6a3965a983b31e23d9ef456f",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"lit": "^2.8.0",
|
|
66
66
|
"regenerator-runtime": "^0.14.0"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "0333bc21a69ead0e4999d36e29458b9f8ce04d92"
|
|
69
69
|
}
|
|
@@ -15,13 +15,13 @@ import DiscountableElement from '../discountable-element';
|
|
|
15
15
|
export default class DiscountableResponse extends DiscountableElement {
|
|
16
16
|
static get properties() {
|
|
17
17
|
return {
|
|
18
|
-
|
|
19
|
-
attribute: '
|
|
18
|
+
feedback: {
|
|
19
|
+
attribute: 'feedback',
|
|
20
20
|
type: Boolean,
|
|
21
21
|
reflect: true,
|
|
22
22
|
},
|
|
23
|
-
|
|
24
|
-
attribute: '
|
|
23
|
+
trial: {
|
|
24
|
+
attribute: 'trial',
|
|
25
25
|
type: Boolean,
|
|
26
26
|
reflect: true,
|
|
27
27
|
},
|
|
@@ -112,7 +112,8 @@ export default class ITCChoice extends DiscountableElement {
|
|
|
112
112
|
render() {
|
|
113
113
|
return html`
|
|
114
114
|
<div class="holder">
|
|
115
|
-
<itc-option
|
|
115
|
+
<itc-option
|
|
116
|
+
class="ss"
|
|
116
117
|
state=${this.state}
|
|
117
118
|
?interactive=${this.interactive}
|
|
118
119
|
amount="${this.as}"
|
|
@@ -120,7 +121,8 @@ export default class ITCChoice extends DiscountableElement {
|
|
|
120
121
|
@itc-option-change=${this.ssChange.bind(this)}>
|
|
121
122
|
</itc-option><span class="query"
|
|
122
123
|
>${(this.state === 'choice') ? '?' : (this.state === 'fixation') ? '+' : html`∙`}</span
|
|
123
|
-
><itc-option
|
|
124
|
+
><itc-option
|
|
125
|
+
class="ll"
|
|
124
126
|
state=${this.state}
|
|
125
127
|
?interactive=${this.interactive}
|
|
126
128
|
amount="${this.al}"
|