@pie-element/match-list 1.12.3 → 1.12.4-next.1016

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/module/demo.js DELETED
@@ -1,86 +0,0 @@
1
- import Element from './element.js';
2
- import * as controller from './controller.js';
3
-
4
- const twoZeroOne = (id, element) => ({
5
- id,
6
- element,
7
- answers: [
8
- {
9
- title: 'All right angles',
10
- id: 0,
11
- },
12
- {
13
- id: 1,
14
- title: 'All acute angles',
15
- },
16
- {
17
- id: 2,
18
- title: 'Two obtuse angles',
19
- },
20
- {
21
- id: 3,
22
- title: 'One pair of perpendicular lines',
23
- },
24
- {
25
- title: 'One pair of parallel lines',
26
- id: 4,
27
- },
28
- ],
29
- prompt:
30
- '<p>Look at the shapes below.</p><p><img alt="image 8c7d142a9af94abf80b021426879a815" id="8c7d142a9af94abf80b021426879a815" src="https://storage.googleapis.com/pie-staging-221718-assets/image/4ec622c1-51d0-4c4b-8282-cd9b7eb9ca22"></p><p></p><p>Each property describes one of the shapes. Drag and drop the property&nbsp;to its shape.</p>',
31
- shuffled: false,
32
- prompts: [
33
- {
34
- id: 0,
35
- title: 'Shape A',
36
- relatedAnswer: 3,
37
- },
38
- {
39
- id: 1,
40
- title: 'Shape B',
41
- relatedAnswer: 2,
42
- },
43
- {
44
- id: 2,
45
- title: 'Shape C',
46
- relatedAnswer: 1,
47
- },
48
- {
49
- id: 3,
50
- title: 'Shape D',
51
- relatedAnswer: 4,
52
- },
53
- {
54
- id: 4,
55
- title: 'Shape E',
56
- relatedAnswer: 0,
57
- },
58
- ],
59
- });
60
-
61
- var model = twoZeroOne;
62
-
63
- var generate = {
64
- model: model
65
- };
66
-
67
- const { model: model$1 } = generate;
68
-
69
- var config = {
70
- elements: {
71
- 'match-list': '../..'
72
- },
73
- models: [model$1('1', 'match-list')]
74
- };
75
-
76
- // configure
77
- class Configure extends HTMLElement {}
78
- //Note: demo-el is a custom element loaded in the markup.
79
- customElements.whenDefined('demo-el').then(() => {
80
- config.models.forEach(m => {
81
- const de = document.createElement('demo-el');
82
- document.body.appendChild(de);
83
- de.def = { tagName: m.element, Element, Configure, controller };
84
- de.model = m;
85
- });
86
- });