@citolab/qti-components 6.6.1-15 → 6.6.1-18

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.
@@ -727,12 +727,25 @@
727
727
  "kind": "javascript-module",
728
728
  "path": "src/lib/qti-components/qti-assessment-item/qti-assessment-item.context.ts",
729
729
  "declarations": [
730
+ {
731
+ "kind": "variable",
732
+ "name": "itemContextVariables",
733
+ "default": "[\n {\n identifier: 'completionStatus',\n cardinality: 'single',\n baseType: 'string',\n value: 'unknown',\n type: 'outcome'\n },\n {\n identifier: 'numAttempts',\n cardinality: 'single',\n baseType: 'integer',\n value: '0',\n type: 'response'\n }\n]"
734
+ },
730
735
  {
731
736
  "kind": "variable",
732
737
  "name": "itemContext"
733
738
  }
734
739
  ],
735
740
  "exports": [
741
+ {
742
+ "kind": "js",
743
+ "name": "itemContextVariables",
744
+ "declaration": {
745
+ "name": "itemContextVariables",
746
+ "module": "src/lib/qti-components/qti-assessment-item/qti-assessment-item.context.ts"
747
+ }
748
+ },
736
749
  {
737
750
  "kind": "js",
738
751
  "name": "itemContext",
@@ -823,6 +836,14 @@
823
836
  "text": "boolean"
824
837
  },
825
838
  "fieldName": "readonly"
839
+ },
840
+ {
841
+ "name": "state",
842
+ "type": {
843
+ "text": "| 'item-created' // <-- pk: this is the state when the item is created\n | 'item-connected' // <-- pk: this is the state when the item is connected\n | 'variables-restored' // <-- pk: this is the state when the variables are restored\n | 'first-updated' // <-- pk: this is the state when the first-updated event is fired\n | 'item-connected'"
844
+ },
845
+ "default": "'item-created'",
846
+ "fieldName": "_state"
826
847
  }
827
848
  ],
828
849
  "superclass": {
@@ -0,0 +1,35 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
+ var __spreadValues = (a, b) => {
10
+ for (var prop in b || (b = {}))
11
+ if (__hasOwnProp.call(b, prop))
12
+ __defNormalProp(a, prop, b[prop]);
13
+ if (__getOwnPropSymbols)
14
+ for (var prop of __getOwnPropSymbols(b)) {
15
+ if (__propIsEnum.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ }
18
+ return a;
19
+ };
20
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
+ var __decorateClass = (decorators, target, key, kind) => {
22
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
23
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
24
+ if (decorator = decorators[i])
25
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
26
+ if (kind && result)
27
+ __defProp(target, key, result);
28
+ return result;
29
+ };
30
+
31
+ export {
32
+ __spreadValues,
33
+ __spreadProps,
34
+ __decorateClass
35
+ };