@ndla/ui 42.0.1 → 42.0.3
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/es/AudioPlayer/AudioPlayer.js +15 -15
- package/es/Gloss/Gloss.js +137 -0
- package/es/Gloss/index.js +9 -0
- package/es/Navigation/NavigationBox.js +20 -20
- package/es/Programme/ProgrammeSubjects.js +3 -2
- package/es/locale/messages-en.js +15 -4
- package/es/locale/messages-nb.js +14 -4
- package/es/locale/messages-nn.js +15 -5
- package/es/locale/messages-se.js +14 -4
- package/es/locale/messages-sma.js +14 -4
- package/es/model/Transcriptions.js +1 -0
- package/es/model/WordClass.js +45 -0
- package/es/model/index.js +5 -1
- package/lib/AudioPlayer/AudioPlayer.js +15 -15
- package/lib/Gloss/Gloss.d.ts +32 -0
- package/lib/Gloss/Gloss.js +141 -0
- package/lib/Gloss/index.d.ts +8 -0
- package/lib/Gloss/index.js +13 -0
- package/lib/Navigation/NavigationBox.d.ts +1 -1
- package/lib/Navigation/NavigationBox.js +20 -20
- package/lib/Programme/ProgrammeSubjects.d.ts +2 -2
- package/lib/Programme/ProgrammeSubjects.js +3 -2
- package/lib/locale/messages-en.d.ts +12 -1
- package/lib/locale/messages-en.js +17 -4
- package/lib/locale/messages-nb.d.ts +12 -1
- package/lib/locale/messages-nb.js +15 -4
- package/lib/locale/messages-nn.d.ts +12 -1
- package/lib/locale/messages-nn.js +16 -5
- package/lib/locale/messages-se.d.ts +12 -1
- package/lib/locale/messages-se.js +15 -4
- package/lib/locale/messages-sma.d.ts +12 -1
- package/lib/locale/messages-sma.js +15 -4
- package/lib/model/Transcriptions.d.ts +11 -0
- package/lib/model/Transcriptions.js +5 -0
- package/lib/model/WordClass.d.ts +44 -0
- package/lib/model/WordClass.js +52 -0
- package/lib/model/index.d.ts +4 -0
- package/lib/model/index.js +5 -1
- package/package.json +15 -15
- package/src/AudioPlayer/AudioPlayer.tsx +1 -0
- package/src/ContactBlock/Contactblock.stories.tsx +2 -2
- package/src/Gloss/Gloss.stories.tsx +108 -0
- package/src/Gloss/Gloss.tsx +163 -0
- package/src/Gloss/index.tsx +9 -0
- package/src/Grid/Grid.stories.tsx +1 -1
- package/src/KeyFigure/KeyFigure.stories.tsx +2 -2
- package/src/LearningPaths/LearningPathMenu.stories.tsx +2 -2
- package/src/MyNdla/Resource/Folder.stories.tsx +1 -1
- package/src/Navigation/NavigationBox.tsx +2 -2
- package/src/Programme/ProgrammeSubjects.tsx +3 -3
- package/src/Resource/BlockResource.stories.tsx +1 -1
- package/src/Resource/Resource.stories.tsx +1 -1
- package/src/locale/messages-en.ts +46 -1
- package/src/locale/messages-nb.ts +46 -1
- package/src/locale/messages-nn.ts +47 -2
- package/src/locale/messages-se.ts +46 -1
- package/src/locale/messages-sma.ts +46 -1
- package/src/model/Transcriptions.ts +12 -0
- package/src/model/WordClass.ts +45 -0
- package/src/model/index.ts +4 -0
|
@@ -27,8 +27,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
27
27
|
var GradesMenu = /*#__PURE__*/(0, _base.default)("ul", {
|
|
28
28
|
target: "e1jqauch0",
|
|
29
29
|
label: "GradesMenu"
|
|
30
|
-
})("display:flex;gap:", _core.spacing.small, ";li{list-style:none;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
30
|
+
})("display:flex;gap:", _core.spacing.small, ";li{list-style:none;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlByb2dyYW1tZVN1YmplY3RzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFnQjRCIiwiZmlsZSI6IlByb2dyYW1tZVN1YmplY3RzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ29weXJpZ2h0IChjKSAyMDIxLXByZXNlbnQsIE5ETEEuXG4gKlxuICogVGhpcyBzb3VyY2UgY29kZSBpcyBsaWNlbnNlZCB1bmRlciB0aGUgR1BMdjMgbGljZW5zZSBmb3VuZCBpbiB0aGVcbiAqIExJQ0VOU0UgZmlsZSBpbiB0aGUgcm9vdCBkaXJlY3Rvcnkgb2YgdGhpcyBzb3VyY2UgdHJlZS5cbiAqXG4gKi9cblxuaW1wb3J0IFJlYWN0LCB7IHVzZU1lbW8gfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyB1c2VUcmFuc2xhdGlvbiB9IGZyb20gJ3JlYWN0LWkxOG5leHQnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgc3BhY2luZyB9IGZyb20gJ0BuZGxhL2NvcmUnO1xuaW1wb3J0IHsgU2FmZUxpbmtCdXR0b24gfSBmcm9tICdAbmRsYS9zYWZlbGluayc7XG5pbXBvcnQgeyBOYXZpZ2F0aW9uQm94IH0gZnJvbSAnLi4vTmF2aWdhdGlvbic7XG5pbXBvcnQgeyBNZXNzYWdlQm94IH0gZnJvbSAnLi4vTWVzc2FnZXMnO1xuXG5jb25zdCBHcmFkZXNNZW51ID0gc3R5bGVkLnVsYFxuICBkaXNwbGF5OiBmbGV4O1xuICBnYXA6ICR7c3BhY2luZy5zbWFsbH07XG4gIGxpIHtcbiAgICBsaXN0LXN0eWxlOiBub25lO1xuICB9XG5gO1xuXG5leHBvcnQgdHlwZSBHcmFkZXNQcm9wcyA9IHtcbiAgc2VsZWN0ZWRHcmFkZT86IHN0cmluZztcbiAgZ3JhZGVzOiB7XG4gICAgbWlzc2luZ1Byb2dyYW1tZVN1YmplY3RzPzogYm9vbGVhbjtcbiAgICBuYW1lOiBzdHJpbmc7XG4gICAgY2F0ZWdvcmllcz86IHtcbiAgICAgIG5hbWU6IHN0cmluZztcbiAgICAgIHN1YmplY3RzPzoge1xuICAgICAgICBsYWJlbDogc3RyaW5nO1xuICAgICAgICB1cmw6IHN0cmluZztcbiAgICAgIH1bXTtcbiAgICB9W107XG4gIH1bXTtcbn07XG5cbnR5cGUgUHJvcHMgPSBHcmFkZXNQcm9wcyAmIHtcbiAgb25OYXZpZ2F0ZT86ICgpID0+IHZvaWQ7XG59O1xuXG5jb25zdCBQcm9ncmFtbWVTdWJqZWN0cyA9ICh7IGdyYWRlcywgb25OYXZpZ2F0ZSwgc2VsZWN0ZWRHcmFkZSA9ICd2ZzEnIH06IFByb3BzKSA9PiB7XG4gIGNvbnN0IHsgdCB9ID0gdXNlVHJhbnNsYXRpb24oKTtcblxuICBjb25zdCBncmFkZSA9IHVzZU1lbW8oXG4gICAgKCkgPT4gZ3JhZGVzLmZpbmQoKGdyYWRlKSA9PiBncmFkZS5uYW1lLnRvTG93ZXJDYXNlKCkgPT09IHNlbGVjdGVkR3JhZGUpID8/IGdyYWRlc1swXSxcbiAgICBbZ3JhZGVzLCBzZWxlY3RlZEdyYWRlXSxcbiAgKTtcblxuICByZXR1cm4gKFxuICAgIDw+XG4gICAgICA8R3JhZGVzTWVudSBhcmlhLWxhYmVsPXt0KCdwcm9ncmFtbWUuZ3JhZGVzJyl9PlxuICAgICAgICB7Z3JhZGVzLm1hcCgoaXRlbSkgPT4ge1xuICAgICAgICAgIGNvbnN0IGN1cnJlbnQgPSBpdGVtLm5hbWUudG9Mb3dlckNhc2UoKSA9PT0gc2VsZWN0ZWRHcmFkZTtcbiAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgPGxpIGtleT17aXRlbS5uYW1lfT5cbiAgICAgICAgICAgICAgPFNhZmVMaW5rQnV0dG9uXG4gICAgICAgICAgICAgICAgdG89e2N1cnJlbnQgPyAnJyA6IGl0ZW0ubmFtZS50b0xvd2VyQ2FzZSgpfVxuICAgICAgICAgICAgICAgIGNvbG9yVGhlbWU9e2l0ZW0gIT09IGdyYWRlID8gJ2xpZ2h0ZXInIDogdW5kZWZpbmVkfVxuICAgICAgICAgICAgICAgIHNoYXBlPVwicGlsbFwiXG4gICAgICAgICAgICAgICAgc2l6ZT1cIm5vcm1hbFwiXG4gICAgICAgICAgICAgICAgYXJpYS1jdXJyZW50PXtjdXJyZW50fVxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAge2l0ZW0ubmFtZX1cbiAgICAgICAgICAgICAgPC9TYWZlTGlua0J1dHRvbj5cbiAgICAgICAgICAgIDwvbGk+XG4gICAgICAgICAgKTtcbiAgICAgICAgfSl9XG4gICAgICA8L0dyYWRlc01lbnU+XG4gICAgICB7Z3JhZGUubWlzc2luZ1Byb2dyYW1tZVN1YmplY3RzICYmIDxNZXNzYWdlQm94Pnt0KCdtZXNzYWdlQm94SW5mby5ub0NvbnRlbnQnKX08L01lc3NhZ2VCb3g+fVxuICAgICAge2dyYWRlLmNhdGVnb3JpZXM/Lm1hcCgoY2F0ZWdvcnkpID0+IChcbiAgICAgICAgPE5hdmlnYXRpb25Cb3gga2V5PXtjYXRlZ29yeS5uYW1lfSBoZWFkaW5nPXtjYXRlZ29yeS5uYW1lfSBpdGVtcz17Y2F0ZWdvcnkuc3ViamVjdHN9IG9uQ2xpY2s9e29uTmF2aWdhdGV9IC8+XG4gICAgICApKX1cbiAgICA8Lz5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFByb2dyYW1tZVN1YmplY3RzO1xuIl19 */"));
|
|
31
31
|
var ProgrammeSubjects = function ProgrammeSubjects(_ref) {
|
|
32
|
+
var _grade$categories;
|
|
32
33
|
var grades = _ref.grades,
|
|
33
34
|
onNavigate = _ref.onNavigate,
|
|
34
35
|
_ref$selectedGrade = _ref.selectedGrade,
|
|
@@ -59,7 +60,7 @@ var ProgrammeSubjects = function ProgrammeSubjects(_ref) {
|
|
|
59
60
|
})
|
|
60
61
|
}), grade.missingProgrammeSubjects && (0, _jsxRuntime.jsx)(_Messages.MessageBox, {
|
|
61
62
|
children: t('messageBoxInfo.noContent')
|
|
62
|
-
}), grade.categories.map(function (category) {
|
|
63
|
+
}), (_grade$categories = grade.categories) === null || _grade$categories === void 0 ? void 0 : _grade$categories.map(function (category) {
|
|
63
64
|
return (0, _jsxRuntime.jsx)(_Navigation.NavigationBox, {
|
|
64
65
|
heading: category.name,
|
|
65
66
|
items: category.subjects,
|
|
@@ -15,7 +15,7 @@ export declare const contentTypes: {
|
|
|
15
15
|
LEARNING_PATH: string;
|
|
16
16
|
TOPIC: string;
|
|
17
17
|
MULTIDISCIPLINARY_TOPIC: string;
|
|
18
|
-
}, subjectCategories: typeof import("../model/SubjectCategories"), subjectTypes: typeof import("../model/SubjectTypes");
|
|
18
|
+
}, subjectCategories: typeof import("../model/SubjectCategories"), subjectTypes: typeof import("../model/SubjectTypes"), WordClass: typeof import("../model/WordClass"), Transcriptions: typeof import("../model/Transcriptions");
|
|
19
19
|
declare const messages: {
|
|
20
20
|
filterButtons: {
|
|
21
21
|
removeAllFilters: string;
|
|
@@ -282,6 +282,17 @@ declare const messages: {
|
|
|
282
282
|
external: string;
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
|
+
gloss: {
|
|
286
|
+
examples: string;
|
|
287
|
+
wordClass: string;
|
|
288
|
+
transcriptions: {
|
|
289
|
+
traditional: string;
|
|
290
|
+
pinyin: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
wordClass: {
|
|
294
|
+
[x: string]: string;
|
|
295
|
+
};
|
|
285
296
|
common: {
|
|
286
297
|
subject: string;
|
|
287
298
|
subject_plural: string;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.subjectTypes = exports.subjectCategories = exports.default = exports.contentTypes = void 0;
|
|
6
|
+
exports.subjectTypes = exports.subjectCategories = exports.default = exports.contentTypes = exports.WordClass = exports.Transcriptions = void 0;
|
|
7
7
|
var _licenses = require("@ndla/licenses");
|
|
8
8
|
var _model = _interopRequireDefault(require("../model"));
|
|
9
|
-
var _subjectCategories, _subjectTypes, _contentTypeResultsSh, _contentTypeResultsSh2, _contentTypeResultsNo;
|
|
9
|
+
var _subjectCategories, _subjectTypes, _contentTypeResultsSh, _contentTypeResultsSh2, _contentTypeResultsNo, _wordClass;
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
12
12
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -22,7 +22,11 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
22
22
|
*/
|
|
23
23
|
var contentTypes = _model.default.contentTypes,
|
|
24
24
|
subjectCategories = _model.default.subjectCategories,
|
|
25
|
-
subjectTypes = _model.default.subjectTypes
|
|
25
|
+
subjectTypes = _model.default.subjectTypes,
|
|
26
|
+
WordClass = _model.default.WordClass,
|
|
27
|
+
Transcriptions = _model.default.Transcriptions;
|
|
28
|
+
exports.Transcriptions = Transcriptions;
|
|
29
|
+
exports.WordClass = WordClass;
|
|
26
30
|
exports.subjectTypes = subjectTypes;
|
|
27
31
|
exports.subjectCategories = subjectCategories;
|
|
28
32
|
exports.contentTypes = contentTypes;
|
|
@@ -1279,7 +1283,16 @@ var messages = _objectSpread(_objectSpread({
|
|
|
1279
1283
|
h5p: 'H5P',
|
|
1280
1284
|
external: 'External resource'
|
|
1281
1285
|
}
|
|
1282
|
-
}
|
|
1286
|
+
},
|
|
1287
|
+
gloss: {
|
|
1288
|
+
examples: 'Examples',
|
|
1289
|
+
wordClass: 'Word class',
|
|
1290
|
+
transcriptions: {
|
|
1291
|
+
traditional: 'Traditional spelling',
|
|
1292
|
+
pinyin: 'Pinyin'
|
|
1293
|
+
}
|
|
1294
|
+
},
|
|
1295
|
+
wordClass: (_wordClass = {}, _defineProperty(_wordClass, WordClass.WordClass.Adjective, 'Adjective'), _defineProperty(_wordClass, WordClass.WordClass.Adverb, 'Adverb'), _defineProperty(_wordClass, WordClass.WordClass.ProperNoun, 'Proper Noun'), _defineProperty(_wordClass, WordClass.WordClass.Auxiliary, 'Auxiliary'), _defineProperty(_wordClass, WordClass.WordClass.Complement, 'Complement'), _defineProperty(_wordClass, WordClass.WordClass.Conjunction, 'Conjunction'), _defineProperty(_wordClass, WordClass.WordClass.Coverb, 'Coverb'), _defineProperty(_wordClass, WordClass.WordClass.Determiner, 'Determiner'), _defineProperty(_wordClass, WordClass.WordClass.Interjection, 'Interjection'), _defineProperty(_wordClass, WordClass.WordClass.Quantifier, 'Quantifier'), _defineProperty(_wordClass, WordClass.WordClass.Marker, 'Marker'), _defineProperty(_wordClass, WordClass.WordClass.ModalVerb, 'Modal Verb'), _defineProperty(_wordClass, WordClass.WordClass.MeasureWord, 'Measure Word'), _defineProperty(_wordClass, WordClass.WordClass.Noun, 'Noun'), _defineProperty(_wordClass, WordClass.WordClass['Noun-zh'], 'Noun'), _defineProperty(_wordClass, WordClass.WordClass.NounPhrase, 'Noun Phrase'), _defineProperty(_wordClass, WordClass.WordClass.Onomatopoeia, 'Onomatopoeia'), _defineProperty(_wordClass, WordClass.WordClass.Particle, 'Particle'), _defineProperty(_wordClass, WordClass.WordClass.Demonstrative, 'Demonstrative'), _defineProperty(_wordClass, WordClass.WordClass.PersonalPronoun, 'Personal Pronoun'), _defineProperty(_wordClass, WordClass.WordClass.Preposition, 'Preposition'), _defineProperty(_wordClass, WordClass.WordClass.Pronoun, 'Pronoun'), _defineProperty(_wordClass, WordClass.WordClass.QuestionWord, 'Question Word'), _defineProperty(_wordClass, WordClass.WordClass.LocationWord, 'Location Word'), _defineProperty(_wordClass, WordClass.WordClass.Suffix, 'Suffix'), _defineProperty(_wordClass, WordClass.WordClass.Numeral, 'Numeral'), _defineProperty(_wordClass, WordClass.WordClass.TimeWord, 'Time word'), _defineProperty(_wordClass, WordClass.WordClass.TimeExpression, 'Time Expression'), _defineProperty(_wordClass, WordClass.WordClass.StativeVerb, 'Stative Verb'), _defineProperty(_wordClass, WordClass.WordClass.SubordinatingConjunction, 'Subordinating Conjunction'), _defineProperty(_wordClass, WordClass.WordClass.ExclamationWord, 'Exclamation Word'), _defineProperty(_wordClass, WordClass.WordClass.Expression, 'Expression'), _defineProperty(_wordClass, WordClass.WordClass.Verb, 'Verb'), _defineProperty(_wordClass, WordClass.WordClass.VerbComplement, 'Verb-Complement'), _defineProperty(_wordClass, WordClass.WordClass.VerbObject, 'Verb-Object'), _wordClass)
|
|
1283
1296
|
});
|
|
1284
1297
|
var _default = messages;
|
|
1285
1298
|
exports.default = _default;
|
|
@@ -15,7 +15,7 @@ export declare const contentTypes: {
|
|
|
15
15
|
LEARNING_PATH: string;
|
|
16
16
|
TOPIC: string;
|
|
17
17
|
MULTIDISCIPLINARY_TOPIC: string;
|
|
18
|
-
}, subjectCategories: typeof import("../model/SubjectCategories"), subjectTypes: typeof import("../model/SubjectTypes");
|
|
18
|
+
}, subjectCategories: typeof import("../model/SubjectCategories"), subjectTypes: typeof import("../model/SubjectTypes"), WordClass: typeof import("../model/WordClass");
|
|
19
19
|
declare const messages: {
|
|
20
20
|
filterButtons: {
|
|
21
21
|
removeAllFilters: string;
|
|
@@ -282,6 +282,17 @@ declare const messages: {
|
|
|
282
282
|
external: string;
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
|
+
gloss: {
|
|
286
|
+
examples: string;
|
|
287
|
+
wordClass: string;
|
|
288
|
+
transcriptions: {
|
|
289
|
+
traditional: string;
|
|
290
|
+
pinyin: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
wordClass: {
|
|
294
|
+
[x: string]: string;
|
|
295
|
+
};
|
|
285
296
|
common: {
|
|
286
297
|
subject: string;
|
|
287
298
|
subject_plural: string;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.subjectTypes = exports.subjectCategories = exports.default = exports.contentTypes = void 0;
|
|
6
|
+
exports.subjectTypes = exports.subjectCategories = exports.default = exports.contentTypes = exports.WordClass = void 0;
|
|
7
7
|
var _licenses = require("@ndla/licenses");
|
|
8
8
|
var _model = _interopRequireDefault(require("../model"));
|
|
9
|
-
var _subjectCategories, _subjectTypes, _contentTypeResultsSh, _contentTypeResultsSh2, _contentTypeResultsNo;
|
|
9
|
+
var _subjectCategories, _subjectTypes, _contentTypeResultsSh, _contentTypeResultsSh2, _contentTypeResultsNo, _wordClass;
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
12
12
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -22,7 +22,9 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
22
22
|
*/
|
|
23
23
|
var contentTypes = _model.default.contentTypes,
|
|
24
24
|
subjectCategories = _model.default.subjectCategories,
|
|
25
|
-
subjectTypes = _model.default.subjectTypes
|
|
25
|
+
subjectTypes = _model.default.subjectTypes,
|
|
26
|
+
WordClass = _model.default.WordClass;
|
|
27
|
+
exports.WordClass = WordClass;
|
|
26
28
|
exports.subjectTypes = subjectTypes;
|
|
27
29
|
exports.subjectCategories = subjectCategories;
|
|
28
30
|
exports.contentTypes = contentTypes;
|
|
@@ -1279,7 +1281,16 @@ var messages = _objectSpread(_objectSpread({
|
|
|
1279
1281
|
h5p: 'H5P',
|
|
1280
1282
|
external: 'Ekstern ressurs'
|
|
1281
1283
|
}
|
|
1282
|
-
}
|
|
1284
|
+
},
|
|
1285
|
+
gloss: {
|
|
1286
|
+
examples: 'Eksempler',
|
|
1287
|
+
wordClass: 'Ordklasse',
|
|
1288
|
+
transcriptions: {
|
|
1289
|
+
traditional: 'Tradisjonell skrivemåte',
|
|
1290
|
+
pinyin: 'Pinyin'
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
wordClass: (_wordClass = {}, _defineProperty(_wordClass, WordClass.WordClass.Adjective, 'Adjektiv'), _defineProperty(_wordClass, WordClass.WordClass.Adverb, 'Adverb'), _defineProperty(_wordClass, WordClass.WordClass.ProperNoun, 'Egennavn'), _defineProperty(_wordClass, WordClass.WordClass.Auxiliary, 'Hjelpeord'), _defineProperty(_wordClass, WordClass.WordClass.Complement, 'Komplement'), _defineProperty(_wordClass, WordClass.WordClass.Conjunction, 'Konjunksjon'), _defineProperty(_wordClass, WordClass.WordClass.Coverb, 'Koverb'), _defineProperty(_wordClass, WordClass.WordClass.Determiner, 'Bestemmerord'), _defineProperty(_wordClass, WordClass.WordClass.Interjection, 'Interjeksjon'), _defineProperty(_wordClass, WordClass.WordClass.Quantifier, 'Kvantor'), _defineProperty(_wordClass, WordClass.WordClass.Marker, 'Markør'), _defineProperty(_wordClass, WordClass.WordClass.ModalVerb, 'Modalverb'), _defineProperty(_wordClass, WordClass.WordClass.MeasureWord, 'Målord'), _defineProperty(_wordClass, WordClass.WordClass.Noun, 'Substantiv'), _defineProperty(_wordClass, WordClass.WordClass['Noun-zh'], 'Nomen'), _defineProperty(_wordClass, WordClass.WordClass.NounPhrase, 'Nominalfrase'), _defineProperty(_wordClass, WordClass.WordClass.Onomatopoeia, 'Onomatopoetikon'), _defineProperty(_wordClass, WordClass.WordClass.Particle, 'Partikkel'), _defineProperty(_wordClass, WordClass.WordClass.Demonstrative, 'Pekeord'), _defineProperty(_wordClass, WordClass.WordClass.PersonalPronoun, 'Personlig Pronomen'), _defineProperty(_wordClass, WordClass.WordClass.Preposition, 'Preposisjon'), _defineProperty(_wordClass, WordClass.WordClass.Pronoun, 'Pronomen'), _defineProperty(_wordClass, WordClass.WordClass.QuestionWord, 'Spørreord'), _defineProperty(_wordClass, WordClass.WordClass.LocationWord, 'Stedsord'), _defineProperty(_wordClass, WordClass.WordClass.Suffix, 'Suffiks'), _defineProperty(_wordClass, WordClass.WordClass.Numeral, 'Tallord'), _defineProperty(_wordClass, WordClass.WordClass.TimeWord, 'Tidsord'), _defineProperty(_wordClass, WordClass.WordClass.TimeExpression, 'Tidsuttrykk'), _defineProperty(_wordClass, WordClass.WordClass.StativeVerb, 'Tilstandsverb'), _defineProperty(_wordClass, WordClass.WordClass.SubordinatingConjunction, 'Subjunksjon'), _defineProperty(_wordClass, WordClass.WordClass.ExclamationWord, 'Utropsord'), _defineProperty(_wordClass, WordClass.WordClass.Expression, 'Uttrykk'), _defineProperty(_wordClass, WordClass.WordClass.Verb, 'Verb'), _defineProperty(_wordClass, WordClass.WordClass.VerbComplement, 'Verb-Komplement'), _defineProperty(_wordClass, WordClass.WordClass.VerbObject, 'Verb-Objekt'), _wordClass)
|
|
1283
1294
|
});
|
|
1284
1295
|
var _default = messages;
|
|
1285
1296
|
exports.default = _default;
|
|
@@ -15,7 +15,7 @@ export declare const contentTypes: {
|
|
|
15
15
|
LEARNING_PATH: string;
|
|
16
16
|
TOPIC: string;
|
|
17
17
|
MULTIDISCIPLINARY_TOPIC: string;
|
|
18
|
-
}, subjectCategories: typeof import("../model/SubjectCategories"), subjectTypes: typeof import("../model/SubjectTypes");
|
|
18
|
+
}, subjectCategories: typeof import("../model/SubjectCategories"), subjectTypes: typeof import("../model/SubjectTypes"), WordClass: typeof import("../model/WordClass");
|
|
19
19
|
declare const messages: {
|
|
20
20
|
filterButtons: {
|
|
21
21
|
removeAllFilters: string;
|
|
@@ -282,6 +282,17 @@ declare const messages: {
|
|
|
282
282
|
external: string;
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
|
+
gloss: {
|
|
286
|
+
examples: string;
|
|
287
|
+
wordClass: string;
|
|
288
|
+
transcriptions: {
|
|
289
|
+
traditional: string;
|
|
290
|
+
pinyin: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
wordClass: {
|
|
294
|
+
[x: string]: string;
|
|
295
|
+
};
|
|
285
296
|
common: {
|
|
286
297
|
subject: string;
|
|
287
298
|
subject_plural: string;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.subjectTypes = exports.subjectCategories = exports.default = exports.contentTypes = void 0;
|
|
6
|
+
exports.subjectTypes = exports.subjectCategories = exports.default = exports.contentTypes = exports.WordClass = void 0;
|
|
7
7
|
var _licenses = require("@ndla/licenses");
|
|
8
8
|
var _model = _interopRequireDefault(require("../model"));
|
|
9
|
-
var _subjectCategories, _subjectTypes, _contentTypeResultsSh, _contentTypeResultsSh2, _contentTypeResultsNo;
|
|
9
|
+
var _subjectCategories, _subjectTypes, _contentTypeResultsSh, _contentTypeResultsSh2, _contentTypeResultsNo, _wordClass;
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
12
12
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -22,7 +22,9 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
22
22
|
*/
|
|
23
23
|
var contentTypes = _model.default.contentTypes,
|
|
24
24
|
subjectCategories = _model.default.subjectCategories,
|
|
25
|
-
subjectTypes = _model.default.subjectTypes
|
|
25
|
+
subjectTypes = _model.default.subjectTypes,
|
|
26
|
+
WordClass = _model.default.WordClass;
|
|
27
|
+
exports.WordClass = WordClass;
|
|
26
28
|
exports.subjectTypes = subjectTypes;
|
|
27
29
|
exports.subjectCategories = subjectCategories;
|
|
28
30
|
exports.contentTypes = contentTypes;
|
|
@@ -418,7 +420,7 @@ var messages = _objectSpread(_objectSpread({
|
|
|
418
420
|
frontPageExpired: 'Utgåtte fag blir det ikkje undervist i lenger, men det kan framleis vere mogleg å ta eksamen i faget som privatist.'
|
|
419
421
|
},
|
|
420
422
|
article: {
|
|
421
|
-
lastUpdated: 'Sist
|
|
423
|
+
lastUpdated: 'Sist fagleg oppdatert',
|
|
422
424
|
edition: 'Utgåve',
|
|
423
425
|
publisher: 'Utgjevar',
|
|
424
426
|
closeLabel: 'Lukk',
|
|
@@ -1279,7 +1281,16 @@ var messages = _objectSpread(_objectSpread({
|
|
|
1279
1281
|
h5p: 'H5P',
|
|
1280
1282
|
external: 'Ekstern ressurs'
|
|
1281
1283
|
}
|
|
1282
|
-
}
|
|
1284
|
+
},
|
|
1285
|
+
gloss: {
|
|
1286
|
+
examples: 'Eksempler',
|
|
1287
|
+
wordClass: 'Ordklasse',
|
|
1288
|
+
transcriptions: {
|
|
1289
|
+
traditional: 'Tradisjonell skrivemåte',
|
|
1290
|
+
pinyin: 'Pinyin'
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
wordClass: (_wordClass = {}, _defineProperty(_wordClass, WordClass.WordClass.Adjective, 'Adjektiv'), _defineProperty(_wordClass, WordClass.WordClass.Adverb, 'Adverb'), _defineProperty(_wordClass, WordClass.WordClass.ProperNoun, 'Egennavn'), _defineProperty(_wordClass, WordClass.WordClass.Auxiliary, 'Hjelpeord'), _defineProperty(_wordClass, WordClass.WordClass.Complement, 'Komplement'), _defineProperty(_wordClass, WordClass.WordClass.Conjunction, 'Konjunksjon'), _defineProperty(_wordClass, WordClass.WordClass.Coverb, 'Koverb'), _defineProperty(_wordClass, WordClass.WordClass.Determiner, 'Bestemmerord'), _defineProperty(_wordClass, WordClass.WordClass.Interjection, 'Interjeksjon'), _defineProperty(_wordClass, WordClass.WordClass.Quantifier, 'Kvantor'), _defineProperty(_wordClass, WordClass.WordClass.Marker, 'Markør'), _defineProperty(_wordClass, WordClass.WordClass.ModalVerb, 'Modalverb'), _defineProperty(_wordClass, WordClass.WordClass.MeasureWord, 'Målord'), _defineProperty(_wordClass, WordClass.WordClass.Noun, 'Substantiv'), _defineProperty(_wordClass, WordClass.WordClass['Noun-zh'], 'Nomen'), _defineProperty(_wordClass, WordClass.WordClass.NounPhrase, 'Nominalfrase'), _defineProperty(_wordClass, WordClass.WordClass.Onomatopoeia, 'Onomatopoetikon'), _defineProperty(_wordClass, WordClass.WordClass.Particle, 'Partikkel'), _defineProperty(_wordClass, WordClass.WordClass.Demonstrative, 'Pekeord'), _defineProperty(_wordClass, WordClass.WordClass.PersonalPronoun, 'Personlig Pronomen'), _defineProperty(_wordClass, WordClass.WordClass.Preposition, 'Preposisjon'), _defineProperty(_wordClass, WordClass.WordClass.Pronoun, 'Pronomen'), _defineProperty(_wordClass, WordClass.WordClass.QuestionWord, 'Spørreord'), _defineProperty(_wordClass, WordClass.WordClass.LocationWord, 'Stedsord'), _defineProperty(_wordClass, WordClass.WordClass.Suffix, 'Suffiks'), _defineProperty(_wordClass, WordClass.WordClass.Numeral, 'Tallord'), _defineProperty(_wordClass, WordClass.WordClass.TimeWord, 'Tidsord'), _defineProperty(_wordClass, WordClass.WordClass.TimeExpression, 'Tidsuttrykk'), _defineProperty(_wordClass, WordClass.WordClass.StativeVerb, 'Tilstandsverb'), _defineProperty(_wordClass, WordClass.WordClass.SubordinatingConjunction, 'Subjunksjon'), _defineProperty(_wordClass, WordClass.WordClass.ExclamationWord, 'Utropsord'), _defineProperty(_wordClass, WordClass.WordClass.Expression, 'Uttrykk'), _defineProperty(_wordClass, WordClass.WordClass.Verb, 'Verb'), _defineProperty(_wordClass, WordClass.WordClass.VerbComplement, 'Verb-Komplement'), _defineProperty(_wordClass, WordClass.WordClass.VerbObject, 'Verb-Objekt'), _wordClass)
|
|
1283
1294
|
});
|
|
1284
1295
|
var _default = messages;
|
|
1285
1296
|
exports.default = _default;
|
|
@@ -15,7 +15,7 @@ export declare const contentTypes: {
|
|
|
15
15
|
LEARNING_PATH: string;
|
|
16
16
|
TOPIC: string;
|
|
17
17
|
MULTIDISCIPLINARY_TOPIC: string;
|
|
18
|
-
}, subjectCategories: typeof import("../model/SubjectCategories"), subjectTypes: typeof import("../model/SubjectTypes");
|
|
18
|
+
}, subjectCategories: typeof import("../model/SubjectCategories"), subjectTypes: typeof import("../model/SubjectTypes"), WordClass: typeof import("../model/WordClass");
|
|
19
19
|
declare const messages: {
|
|
20
20
|
filterButtons: {
|
|
21
21
|
removeAllFilters: string;
|
|
@@ -282,6 +282,17 @@ declare const messages: {
|
|
|
282
282
|
external: string;
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
|
+
gloss: {
|
|
286
|
+
examples: string;
|
|
287
|
+
wordClass: string;
|
|
288
|
+
transcriptions: {
|
|
289
|
+
traditional: string;
|
|
290
|
+
pinyin: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
wordClass: {
|
|
294
|
+
[x: string]: string;
|
|
295
|
+
};
|
|
285
296
|
common: {
|
|
286
297
|
subject: string;
|
|
287
298
|
subject_plural: string;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.subjectTypes = exports.subjectCategories = exports.default = exports.contentTypes = void 0;
|
|
6
|
+
exports.subjectTypes = exports.subjectCategories = exports.default = exports.contentTypes = exports.WordClass = void 0;
|
|
7
7
|
var _licenses = require("@ndla/licenses");
|
|
8
8
|
var _model = _interopRequireDefault(require("../model"));
|
|
9
|
-
var _subjectCategories, _subjectTypes, _contentTypeResultsSh, _contentTypeResultsSh2, _contentTypeResultsNo;
|
|
9
|
+
var _subjectCategories, _subjectTypes, _contentTypeResultsSh, _contentTypeResultsSh2, _contentTypeResultsNo, _wordClass;
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
12
12
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -22,7 +22,9 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
22
22
|
*/
|
|
23
23
|
var contentTypes = _model.default.contentTypes,
|
|
24
24
|
subjectCategories = _model.default.subjectCategories,
|
|
25
|
-
subjectTypes = _model.default.subjectTypes
|
|
25
|
+
subjectTypes = _model.default.subjectTypes,
|
|
26
|
+
WordClass = _model.default.WordClass;
|
|
27
|
+
exports.WordClass = WordClass;
|
|
26
28
|
exports.subjectTypes = subjectTypes;
|
|
27
29
|
exports.subjectCategories = subjectCategories;
|
|
28
30
|
exports.contentTypes = contentTypes;
|
|
@@ -1279,7 +1281,16 @@ var messages = _objectSpread(_objectSpread({
|
|
|
1279
1281
|
h5p: 'H5P',
|
|
1280
1282
|
external: 'Ekstern ressurs'
|
|
1281
1283
|
}
|
|
1282
|
-
}
|
|
1284
|
+
},
|
|
1285
|
+
gloss: {
|
|
1286
|
+
examples: 'Eksempler',
|
|
1287
|
+
wordClass: 'Ordklasse',
|
|
1288
|
+
transcriptions: {
|
|
1289
|
+
traditional: 'Tradisjonell skrivemåte',
|
|
1290
|
+
pinyin: 'Pinyin'
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
wordClass: (_wordClass = {}, _defineProperty(_wordClass, WordClass.WordClass.Adjective, 'Adjektiv'), _defineProperty(_wordClass, WordClass.WordClass.Adverb, 'Adverb'), _defineProperty(_wordClass, WordClass.WordClass.ProperNoun, 'Egennavn'), _defineProperty(_wordClass, WordClass.WordClass.Auxiliary, 'Hjelpeord'), _defineProperty(_wordClass, WordClass.WordClass.Complement, 'Komplement'), _defineProperty(_wordClass, WordClass.WordClass.Conjunction, 'Konjunksjon'), _defineProperty(_wordClass, WordClass.WordClass.Coverb, 'Koverb'), _defineProperty(_wordClass, WordClass.WordClass.Determiner, 'Bestemmerord'), _defineProperty(_wordClass, WordClass.WordClass.Interjection, 'Interjeksjon'), _defineProperty(_wordClass, WordClass.WordClass.Quantifier, 'Kvantor'), _defineProperty(_wordClass, WordClass.WordClass.Marker, 'Markør'), _defineProperty(_wordClass, WordClass.WordClass.ModalVerb, 'Modalverb'), _defineProperty(_wordClass, WordClass.WordClass.MeasureWord, 'Målord'), _defineProperty(_wordClass, WordClass.WordClass.Noun, 'Substantiv'), _defineProperty(_wordClass, WordClass.WordClass['Noun-zh'], 'Nomen'), _defineProperty(_wordClass, WordClass.WordClass.NounPhrase, 'Nominalfrase'), _defineProperty(_wordClass, WordClass.WordClass.Onomatopoeia, 'Onomatopoetikon'), _defineProperty(_wordClass, WordClass.WordClass.Particle, 'Partikkel'), _defineProperty(_wordClass, WordClass.WordClass.Demonstrative, 'Pekeord'), _defineProperty(_wordClass, WordClass.WordClass.PersonalPronoun, 'Personlig Pronomen'), _defineProperty(_wordClass, WordClass.WordClass.Preposition, 'Preposisjon'), _defineProperty(_wordClass, WordClass.WordClass.Pronoun, 'Pronomen'), _defineProperty(_wordClass, WordClass.WordClass.QuestionWord, 'Spørreord'), _defineProperty(_wordClass, WordClass.WordClass.LocationWord, 'Stedsord'), _defineProperty(_wordClass, WordClass.WordClass.Suffix, 'Suffiks'), _defineProperty(_wordClass, WordClass.WordClass.Numeral, 'Tallord'), _defineProperty(_wordClass, WordClass.WordClass.TimeWord, 'Tidsord'), _defineProperty(_wordClass, WordClass.WordClass.TimeExpression, 'Tidsuttrykk'), _defineProperty(_wordClass, WordClass.WordClass.StativeVerb, 'Tilstandsverb'), _defineProperty(_wordClass, WordClass.WordClass.SubordinatingConjunction, 'Subjunksjon'), _defineProperty(_wordClass, WordClass.WordClass.ExclamationWord, 'Utropsord'), _defineProperty(_wordClass, WordClass.WordClass.Expression, 'Uttrykk'), _defineProperty(_wordClass, WordClass.WordClass.Verb, 'Verb'), _defineProperty(_wordClass, WordClass.WordClass.VerbComplement, 'Verb-Komplement'), _defineProperty(_wordClass, WordClass.WordClass.VerbObject, 'Verb-Objekt'), _wordClass)
|
|
1283
1294
|
});
|
|
1284
1295
|
var _default = messages;
|
|
1285
1296
|
exports.default = _default;
|
|
@@ -15,7 +15,7 @@ export declare const contentTypes: {
|
|
|
15
15
|
LEARNING_PATH: string;
|
|
16
16
|
TOPIC: string;
|
|
17
17
|
MULTIDISCIPLINARY_TOPIC: string;
|
|
18
|
-
}, subjectCategories: typeof import("../model/SubjectCategories"), subjectTypes: typeof import("../model/SubjectTypes");
|
|
18
|
+
}, subjectCategories: typeof import("../model/SubjectCategories"), subjectTypes: typeof import("../model/SubjectTypes"), WordClass: typeof import("../model/WordClass");
|
|
19
19
|
declare const messages: {
|
|
20
20
|
filterButtons: {
|
|
21
21
|
removeAllFilters: string;
|
|
@@ -282,6 +282,17 @@ declare const messages: {
|
|
|
282
282
|
external: string;
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
|
+
gloss: {
|
|
286
|
+
examples: string;
|
|
287
|
+
wordClass: string;
|
|
288
|
+
transcriptions: {
|
|
289
|
+
traditional: string;
|
|
290
|
+
pinyin: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
wordClass: {
|
|
294
|
+
[x: string]: string;
|
|
295
|
+
};
|
|
285
296
|
common: {
|
|
286
297
|
subject: string;
|
|
287
298
|
subject_plural: string;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.subjectTypes = exports.subjectCategories = exports.default = exports.contentTypes = void 0;
|
|
6
|
+
exports.subjectTypes = exports.subjectCategories = exports.default = exports.contentTypes = exports.WordClass = void 0;
|
|
7
7
|
var _licenses = require("@ndla/licenses");
|
|
8
8
|
var _model = _interopRequireDefault(require("../model"));
|
|
9
|
-
var _subjectCategories, _subjectTypes, _contentTypeResultsSh, _contentTypeResultsSh2, _contentTypeResultsNo;
|
|
9
|
+
var _subjectCategories, _subjectTypes, _contentTypeResultsSh, _contentTypeResultsSh2, _contentTypeResultsNo, _wordClass;
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
12
12
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -22,7 +22,9 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
22
22
|
*/
|
|
23
23
|
var contentTypes = _model.default.contentTypes,
|
|
24
24
|
subjectCategories = _model.default.subjectCategories,
|
|
25
|
-
subjectTypes = _model.default.subjectTypes
|
|
25
|
+
subjectTypes = _model.default.subjectTypes,
|
|
26
|
+
WordClass = _model.default.WordClass;
|
|
27
|
+
exports.WordClass = WordClass;
|
|
26
28
|
exports.subjectTypes = subjectTypes;
|
|
27
29
|
exports.subjectCategories = subjectCategories;
|
|
28
30
|
exports.contentTypes = contentTypes;
|
|
@@ -1279,7 +1281,16 @@ var messages = _objectSpread(_objectSpread({
|
|
|
1279
1281
|
h5p: 'H5P',
|
|
1280
1282
|
external: 'Ekstern ressurs'
|
|
1281
1283
|
}
|
|
1282
|
-
}
|
|
1284
|
+
},
|
|
1285
|
+
gloss: {
|
|
1286
|
+
examples: 'Eksempler',
|
|
1287
|
+
wordClass: 'Ordklasse',
|
|
1288
|
+
transcriptions: {
|
|
1289
|
+
traditional: 'Tradisjonell skrivemåte',
|
|
1290
|
+
pinyin: 'Pinyin'
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
wordClass: (_wordClass = {}, _defineProperty(_wordClass, WordClass.WordClass.Adjective, 'Adjektiv'), _defineProperty(_wordClass, WordClass.WordClass.Adverb, 'Adverb'), _defineProperty(_wordClass, WordClass.WordClass.ProperNoun, 'Egennavn'), _defineProperty(_wordClass, WordClass.WordClass.Auxiliary, 'Hjelpeord'), _defineProperty(_wordClass, WordClass.WordClass.Complement, 'Komplement'), _defineProperty(_wordClass, WordClass.WordClass.Conjunction, 'Konjunksjon'), _defineProperty(_wordClass, WordClass.WordClass.Coverb, 'Koverb'), _defineProperty(_wordClass, WordClass.WordClass.Determiner, 'Bestemmerord'), _defineProperty(_wordClass, WordClass.WordClass.Interjection, 'Interjeksjon'), _defineProperty(_wordClass, WordClass.WordClass.Quantifier, 'Kvantor'), _defineProperty(_wordClass, WordClass.WordClass.Marker, 'Markør'), _defineProperty(_wordClass, WordClass.WordClass.ModalVerb, 'Modalverb'), _defineProperty(_wordClass, WordClass.WordClass.MeasureWord, 'Målord'), _defineProperty(_wordClass, WordClass.WordClass.Noun, 'Substantiv'), _defineProperty(_wordClass, WordClass.WordClass['Noun-zh'], 'Nomen'), _defineProperty(_wordClass, WordClass.WordClass.NounPhrase, 'Nominalfrase'), _defineProperty(_wordClass, WordClass.WordClass.Onomatopoeia, 'Onomatopoetikon'), _defineProperty(_wordClass, WordClass.WordClass.Particle, 'Partikkel'), _defineProperty(_wordClass, WordClass.WordClass.Demonstrative, 'Pekeord'), _defineProperty(_wordClass, WordClass.WordClass.PersonalPronoun, 'Personlig Pronomen'), _defineProperty(_wordClass, WordClass.WordClass.Preposition, 'Preposisjon'), _defineProperty(_wordClass, WordClass.WordClass.Pronoun, 'Pronomen'), _defineProperty(_wordClass, WordClass.WordClass.QuestionWord, 'Spørreord'), _defineProperty(_wordClass, WordClass.WordClass.LocationWord, 'Stedsord'), _defineProperty(_wordClass, WordClass.WordClass.Suffix, 'Suffiks'), _defineProperty(_wordClass, WordClass.WordClass.Numeral, 'Tallord'), _defineProperty(_wordClass, WordClass.WordClass.TimeWord, 'Tidsord'), _defineProperty(_wordClass, WordClass.WordClass.TimeExpression, 'Tidsuttrykk'), _defineProperty(_wordClass, WordClass.WordClass.StativeVerb, 'Tilstandsverb'), _defineProperty(_wordClass, WordClass.WordClass.SubordinatingConjunction, 'Subjunksjon'), _defineProperty(_wordClass, WordClass.WordClass.ExclamationWord, 'Utropsord'), _defineProperty(_wordClass, WordClass.WordClass.Expression, 'Uttrykk'), _defineProperty(_wordClass, WordClass.WordClass.Verb, 'Verb'), _defineProperty(_wordClass, WordClass.WordClass.VerbComplement, 'Verb-Komplement'), _defineProperty(_wordClass, WordClass.WordClass.VerbObject, 'Verb-Objekt'), _wordClass)
|
|
1283
1294
|
});
|
|
1284
1295
|
var _default = messages;
|
|
1285
1296
|
exports.default = _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2023-present, NDLA.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export interface Transcription {
|
|
9
|
+
traditional?: string;
|
|
10
|
+
pinyin?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2023-present, NDLA.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare const WordClass: {
|
|
9
|
+
Adjective: string;
|
|
10
|
+
Adverb: string;
|
|
11
|
+
ProperNoun: string;
|
|
12
|
+
Auxiliary: string;
|
|
13
|
+
Complement: string;
|
|
14
|
+
Conjunction: string;
|
|
15
|
+
Coverb: string;
|
|
16
|
+
Determiner: string;
|
|
17
|
+
Interjection: string;
|
|
18
|
+
Quantifier: string;
|
|
19
|
+
Marker: string;
|
|
20
|
+
ModalVerb: string;
|
|
21
|
+
MeasureWord: string;
|
|
22
|
+
Noun: string;
|
|
23
|
+
'Noun-zh': string;
|
|
24
|
+
NounPhrase: string;
|
|
25
|
+
Onomatopoeia: string;
|
|
26
|
+
Particle: string;
|
|
27
|
+
Demonstrative: string;
|
|
28
|
+
PersonalPronoun: string;
|
|
29
|
+
Preposition: string;
|
|
30
|
+
Pronoun: string;
|
|
31
|
+
QuestionWord: string;
|
|
32
|
+
LocationWord: string;
|
|
33
|
+
Suffix: string;
|
|
34
|
+
Numeral: string;
|
|
35
|
+
TimeWord: string;
|
|
36
|
+
TimeExpression: string;
|
|
37
|
+
StativeVerb: string;
|
|
38
|
+
SubordinatingConjunction: string;
|
|
39
|
+
ExclamationWord: string;
|
|
40
|
+
Expression: string;
|
|
41
|
+
Verb: string;
|
|
42
|
+
VerbComplement: string;
|
|
43
|
+
VerbObject: string;
|
|
44
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.WordClass = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Copyright (c) 2023-present, NDLA.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
var WordClass = {
|
|
16
|
+
Adjective: 'adjective',
|
|
17
|
+
Adverb: 'adverb',
|
|
18
|
+
ProperNoun: 'proper-noun',
|
|
19
|
+
Auxiliary: 'auxiliary',
|
|
20
|
+
Complement: 'complement',
|
|
21
|
+
Conjunction: 'conjunction',
|
|
22
|
+
Coverb: 'coverb',
|
|
23
|
+
Determiner: 'determiner',
|
|
24
|
+
Interjection: 'interjection',
|
|
25
|
+
Quantifier: 'quantifier',
|
|
26
|
+
Marker: 'marker',
|
|
27
|
+
ModalVerb: 'modal-verb',
|
|
28
|
+
MeasureWord: 'measure-word',
|
|
29
|
+
Noun: 'noun',
|
|
30
|
+
'Noun-zh': 'noun-zh',
|
|
31
|
+
NounPhrase: 'noun-phrase',
|
|
32
|
+
Onomatopoeia: 'onomatopoeia',
|
|
33
|
+
Particle: 'particle',
|
|
34
|
+
Demonstrative: 'demonstrative',
|
|
35
|
+
PersonalPronoun: 'personal-pronoun',
|
|
36
|
+
Preposition: 'preposition',
|
|
37
|
+
Pronoun: 'pronoun',
|
|
38
|
+
QuestionWord: 'question-word',
|
|
39
|
+
LocationWord: 'location-word',
|
|
40
|
+
Suffix: 'suffix',
|
|
41
|
+
Numeral: 'numeral',
|
|
42
|
+
TimeWord: 'time word',
|
|
43
|
+
TimeExpression: 'time-expression',
|
|
44
|
+
StativeVerb: 'stative-verb',
|
|
45
|
+
SubordinatingConjunction: 'subordinating-conjunction',
|
|
46
|
+
ExclamationWord: 'exclamation-word',
|
|
47
|
+
Expression: 'expression',
|
|
48
|
+
Verb: 'verb',
|
|
49
|
+
VerbComplement: 'verb-complement',
|
|
50
|
+
VerbObject: 'verb-object'
|
|
51
|
+
};
|
|
52
|
+
exports.WordClass = WordClass;
|
package/lib/model/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as subjectCategories from './SubjectCategories';
|
|
9
9
|
import * as subjectTypes from './SubjectTypes';
|
|
10
|
+
import * as WordClass from './WordClass';
|
|
11
|
+
import * as Transcriptions from './Transcriptions';
|
|
10
12
|
declare const model: {
|
|
11
13
|
contentTypes: {
|
|
12
14
|
SUBJECT_MATERIAL: string;
|
|
@@ -23,5 +25,7 @@ declare const model: {
|
|
|
23
25
|
subjectTypes: typeof subjectTypes;
|
|
24
26
|
contentTypeMapping: Record<string, string>;
|
|
25
27
|
resourceEmbedTypeMapping: Record<string, string>;
|
|
28
|
+
WordClass: typeof WordClass;
|
|
29
|
+
Transcriptions: typeof Transcriptions;
|
|
26
30
|
};
|
|
27
31
|
export default model;
|
package/lib/model/index.js
CHANGED
|
@@ -8,6 +8,8 @@ exports.default = void 0;
|
|
|
8
8
|
var _ContentType = require("./ContentType");
|
|
9
9
|
var subjectCategories = _interopRequireWildcard(require("./SubjectCategories"));
|
|
10
10
|
var subjectTypes = _interopRequireWildcard(require("./SubjectTypes"));
|
|
11
|
+
var WordClass = _interopRequireWildcard(require("./WordClass"));
|
|
12
|
+
var Transcriptions = _interopRequireWildcard(require("./Transcriptions"));
|
|
11
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
15
|
/**
|
|
@@ -23,7 +25,9 @@ var model = {
|
|
|
23
25
|
subjectCategories: subjectCategories,
|
|
24
26
|
subjectTypes: subjectTypes,
|
|
25
27
|
contentTypeMapping: _ContentType.contentTypeMapping,
|
|
26
|
-
resourceEmbedTypeMapping: _ContentType.resourceEmbedTypeMapping
|
|
28
|
+
resourceEmbedTypeMapping: _ContentType.resourceEmbedTypeMapping,
|
|
29
|
+
WordClass: WordClass,
|
|
30
|
+
Transcriptions: Transcriptions
|
|
27
31
|
};
|
|
28
32
|
var _default = model;
|
|
29
33
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/ui",
|
|
3
|
-
"version": "42.0.
|
|
3
|
+
"version": "42.0.3",
|
|
4
4
|
"description": "UI component library for NDLA.",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -31,21 +31,21 @@
|
|
|
31
31
|
"types"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ndla/accordion": "^2.2.
|
|
34
|
+
"@ndla/accordion": "^2.2.12",
|
|
35
35
|
"@ndla/article-scripts": "^3.0.18",
|
|
36
|
-
"@ndla/button": "^10.1.
|
|
37
|
-
"@ndla/carousel": "^3.1.
|
|
38
|
-
"@ndla/core": "^4.1.
|
|
39
|
-
"@ndla/forms": "^4.3.
|
|
36
|
+
"@ndla/button": "^10.1.11",
|
|
37
|
+
"@ndla/carousel": "^3.1.9",
|
|
38
|
+
"@ndla/core": "^4.1.4",
|
|
39
|
+
"@ndla/forms": "^4.3.12",
|
|
40
40
|
"@ndla/hooks": "^2.0.7",
|
|
41
|
-
"@ndla/icons": "^3.0.
|
|
42
|
-
"@ndla/licenses": "^7.1.
|
|
43
|
-
"@ndla/modal": "^3.0.
|
|
44
|
-
"@ndla/notion": "^5.0.
|
|
45
|
-
"@ndla/safelink": "^4.1.
|
|
46
|
-
"@ndla/switch": "^1.1.
|
|
47
|
-
"@ndla/tabs": "^3.0.
|
|
48
|
-
"@ndla/tooltip": "^4.1.
|
|
41
|
+
"@ndla/icons": "^3.0.7",
|
|
42
|
+
"@ndla/licenses": "^7.1.1",
|
|
43
|
+
"@ndla/modal": "^3.0.9",
|
|
44
|
+
"@ndla/notion": "^5.0.10",
|
|
45
|
+
"@ndla/safelink": "^4.1.11",
|
|
46
|
+
"@ndla/switch": "^1.1.8",
|
|
47
|
+
"@ndla/tabs": "^3.0.4",
|
|
48
|
+
"@ndla/tooltip": "^4.1.11",
|
|
49
49
|
"@ndla/util": "^3.1.13",
|
|
50
50
|
"@radix-ui/react-dropdown-menu": "^2.0.5",
|
|
51
51
|
"@radix-ui/react-popover": "^1.0.6",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "0ac4799295c3e85112df9074b5c6f5e23f0adc04"
|
|
87
87
|
}
|