@ndla/ui 35.0.27 → 35.0.28
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/Animation/DisplayOnPageYOffset.js +4 -2
- package/es/Article/Article.js +5 -3
- package/es/Article/ArticleContent.js +4 -1
- package/es/Article/ArticleHeaderWrapper.js +6 -3
- package/es/Aside/Aside.js +4 -1
- package/es/AudioPlayer/AudioPlayer.js +2 -2
- package/es/AudioPlayer/Controls.js +2 -2
- package/es/Breadcrumb/Breadcrumb.js +6 -3
- package/es/Breadcrumblist/Breadcrumblist.js +2 -2
- package/es/CompetenceGoalTab/CompetenceGoalTab.js +2 -2
- package/es/CompetenceGoals/CompetenceGoalsDialog.js +4 -1
- package/es/ContentCard/ContentCard.js +4 -1
- package/es/ContentLoader/index.js +4 -1
- package/es/ContentTypeBadge/ContentTypeBadge.js +4 -1
- package/es/CopyParagraphButton/CopyParagraphButton.js +2 -2
- package/es/CopyParagraphButton/CopyParagraphButtonV2.js +2 -2
- package/es/Dialog/Dialog.js +4 -1
- package/es/Embed/AudioEmbed.js +2 -2
- package/es/Embed/BrightcoveEmbed.js +6 -3
- package/es/Embed/ConceptEmbed.js +2 -2
- package/es/Embed/ImageEmbed.js +2 -2
- package/es/Embed/conceptComponents.js +4 -1
- package/es/FactBox/FactBox.js +4 -1
- package/es/FactBox/FactBoxV2.js +6 -3
- package/es/Figure/Figure.js +4 -1
- package/es/Figure/FigureLicense.js +4 -1
- package/es/Figure/FigureLicenseDialog.js +4 -1
- package/es/Figure/FigureLicenseDialogContent.js +4 -1
- package/es/Filter/FilterButtons.js +2 -2
- package/es/Filter/FilterCarousel.js +6 -3
- package/es/Filter/FilterList.js +6 -3
- package/es/Filter/FilterListPhone.js +6 -3
- package/es/Filter/ToggleItem.js +4 -1
- package/es/Footer/FooterAuth.js +4 -1
- package/es/Frontpage/FrontpageAllSubjects.js +1 -1
- package/es/Frontpage/FrontpageProgramMenu.js +2 -2
- package/es/Hero/Hero.js +4 -1
- package/es/Image/Image.js +4 -1
- package/es/Image/ImageLink.js +4 -1
- package/es/Image/LazyLoadImage.js +4 -1
- package/es/Layout/PageContainer.js +4 -1
- package/es/LearningPaths/LearningPathMenu.js +2 -2
- package/es/Logo/Logo.js +4 -1
- package/es/Logo/SvgLogo.js +4 -1
- package/es/Masthead/MastheadAuthModal.js +4 -1
- package/es/Masthead/utils.js +2 -2
- package/es/MediaList/MediaList.js +4 -1
- package/es/MultidisciplinarySubject/List.js +4 -1
- package/es/MyNdla/Resource/FolderInput.js +4 -1
- package/es/NDLAFilm/AllMoviesAlphabetically.js +2 -2
- package/es/NDLAFilm/CategorySelect.js +2 -2
- package/es/NDLAFilm/FilmMovieList.js +4 -1
- package/es/NDLAFilm/FilmSlideshow.js +6 -3
- package/es/Notion/ConceptNotion.js +1 -1
- package/es/Notion/FigureNotion.js +1 -1
- package/es/RadioButtonGroup/RadioButtonGroup.js +4 -2
- package/es/RelatedArticleList/RelatedArticleList.js +4 -1
- package/es/RelatedArticleList/RelatedArticleV2.js +6 -3
- package/es/ResourceGroup/ResourceList.js +4 -1
- package/es/ResourcesWrapper/ResourcesWrapper.js +4 -1
- package/es/Search/ContentTypeResult.js +6 -3
- package/es/Search/SearchField.js +4 -1
- package/es/Search/SearchResult.js +3 -1
- package/es/Search/SearchResultSleeve.js +2 -2
- package/es/Search/ToggleSearchButton.js +4 -1
- package/es/SearchTypeResult/PopupFilter.js +2 -2
- package/es/SearchTypeResult/SearchFieldHeader.js +2 -2
- package/es/SearchTypeResult/SearchHeader.js +2 -2
- package/es/SearchTypeResult/SearchTypeResult.js +4 -1
- package/es/SearchTypeResult/components/SubjectFilters.js +6 -3
- package/es/SnackBar/SnackbarProvider.js +6 -3
- package/es/Table/Table.js +6 -3
- package/es/TagSelector/Control.js +4 -1
- package/es/TagSelector/DropdownIndicator.js +4 -1
- package/es/TagSelector/Input.js +4 -1
- package/es/TagSelector/Menu.js +4 -1
- package/es/TagSelector/MenuList.js +4 -1
- package/es/TagSelector/Option.js +4 -1
- package/es/TagSelector/SelectContainer.js +4 -1
- package/es/TagSelector/TagSelector.js +6 -3
- package/es/TagSelector/ValueButton.js +4 -1
- package/es/Translation/Translation.js +4 -1
- package/es/Translation/TranslationLine.js +4 -1
- package/es/TreeStructure/FolderItem.js +53 -22
- package/es/TreeStructure/FolderItems.js +4 -1
- package/es/TreeStructure/TreeStructure.js +2 -2
- package/es/TreeStructure/helperFunctions.js +4 -1
- package/es/User/UserInfo.js +2 -2
- package/es/User/parseUserObject.js +6 -3
- package/es/all.css +1 -1
- package/es/index.js +1 -0
- package/es/locale/messages-en.js +4 -1
- package/es/locale/messages-nb.js +4 -1
- package/es/locale/messages-nn.js +4 -1
- package/es/locale/messages-se.js +81 -78
- package/es/locale/messages-sma.js +4 -1
- package/es/model/ContentType.js +4 -1
- package/lib/Animation/DisplayOnPageYOffset.js +11 -3
- package/lib/Article/Article.js +12 -4
- package/lib/Article/ArticleAccessMessage.js +7 -1
- package/lib/Article/ArticleByline.js +7 -1
- package/lib/Article/ArticleContent.js +10 -1
- package/lib/Article/ArticleHeaderWrapper.js +12 -4
- package/lib/Aside/Aside.js +10 -1
- package/lib/AudioPlayer/AudioPlayer.js +9 -3
- package/lib/AudioPlayer/Controls.js +9 -3
- package/lib/Breadcrumb/Breadcrumb.js +12 -4
- package/lib/Breadcrumb/BreadcrumbItem.js +7 -1
- package/lib/Breadcrumb/HomeBreadcrumb.js +7 -1
- package/lib/Breadcrumblist/Breadcrumblist.js +9 -3
- package/lib/CompetenceGoalTab/CompetenceGoalItem.js +7 -1
- package/lib/CompetenceGoalTab/CompetenceGoalTab.js +9 -3
- package/lib/CompetenceGoalTab/CompetenceItem.js +7 -1
- package/lib/CompetenceGoals/CompetenceGoalsDialog.js +10 -2
- package/lib/ContentCard/ContentCard.js +4 -1
- package/lib/ContentLoader/index.js +11 -1
- package/lib/ContentPlaceholder/ContentPlaceholder.js +7 -1
- package/lib/ContentTypeBadge/ContentTypeBadge.js +4 -2
- package/lib/CopyParagraphButton/CopyParagraphButton.js +9 -3
- package/lib/CopyParagraphButton/CopyParagraphButtonV2.js +9 -3
- package/lib/CreatedBy/CreatedBy.js +7 -1
- package/lib/Dialog/Dialog.js +13 -1
- package/lib/Embed/AudioEmbed.js +9 -3
- package/lib/Embed/BrightcoveEmbed.js +13 -4
- package/lib/Embed/ConceptEmbed.js +9 -3
- package/lib/Embed/ConceptListEmbed.js +7 -1
- package/lib/Embed/ExternalEmbed.js +7 -1
- package/lib/Embed/H5pEmbed.js +7 -1
- package/lib/Embed/ImageEmbed.js +9 -3
- package/lib/Embed/conceptComponents.js +11 -2
- package/lib/FactBox/FactBox.js +10 -1
- package/lib/FactBox/FactBoxV2.js +12 -4
- package/lib/Figure/Figure.js +11 -1
- package/lib/Figure/FigureLicense.js +11 -1
- package/lib/Figure/FigureLicenseDialog.js +11 -1
- package/lib/Figure/FigureLicenseDialogContent.js +10 -1
- package/lib/FileList/FileListV2.js +7 -1
- package/lib/Filter/FilterButtons.js +9 -3
- package/lib/Filter/FilterCarousel.js +12 -4
- package/lib/Filter/FilterList.js +12 -4
- package/lib/Filter/FilterListPhone.js +12 -4
- package/lib/Filter/ToggleItem.js +10 -1
- package/lib/Footer/Footer.js +7 -1
- package/lib/Footer/FooterAuth.js +11 -2
- package/lib/Frontpage/FrontpageAllSubjects.js +1 -1
- package/lib/Frontpage/FrontpageProgramMenu.js +2 -2
- package/lib/Frontpage/illustrations/FrontpageSubjectIllustration.js +7 -1
- package/lib/Hero/Hero.js +10 -2
- package/lib/Image/Image.js +11 -2
- package/lib/Image/ImageLink.js +11 -2
- package/lib/Image/LazyLoadImage.js +11 -1
- package/lib/InfoBlock/InfoBlock.js +7 -1
- package/lib/LanguageSelector/LanguageSelector.js +7 -1
- package/lib/Layout/PageContainer.js +10 -1
- package/lib/LearningPaths/LearningPathLastStepNavigation.js +7 -1
- package/lib/LearningPaths/LearningPathMenu.js +9 -3
- package/lib/LearningPaths/LearningPathMenuIntro.js +7 -1
- package/lib/Logo/Logo.js +10 -1
- package/lib/Logo/SvgLogo.js +10 -1
- package/lib/Masthead/Masthead.js +7 -1
- package/lib/Masthead/MastheadAuthModal.js +11 -1
- package/lib/Masthead/utils.js +9 -3
- package/lib/MediaList/MediaList.js +10 -1
- package/lib/Messages/MessageBanner.js +7 -1
- package/lib/Messages/MessageBox.js +7 -1
- package/lib/Messages/MessageBoxTag.js +7 -1
- package/lib/MultidisciplinarySubject/List.js +4 -1
- package/lib/MyNdla/Resource/Folder.js +7 -1
- package/lib/MyNdla/Resource/FolderInput.js +10 -1
- package/lib/MyNdla/SettingsMenu.js +7 -1
- package/lib/NDLAFilm/AllMoviesAlphabetically.js +9 -3
- package/lib/NDLAFilm/CategorySelect.js +9 -2
- package/lib/NDLAFilm/FilmMovieList.js +9 -1
- package/lib/NDLAFilm/FilmSlideshow.js +12 -4
- package/lib/NDLAFilm/VisualElement.js +7 -1
- package/lib/Notion/ConceptNotion.js +6 -1
- package/lib/Notion/FigureNotion.js +6 -1
- package/lib/Notion/Notion.js +7 -1
- package/lib/Notion/NotionVisualElement.js +6 -1
- package/lib/RadioButtonGroup/RadioButtonGroup.js +10 -2
- package/lib/RelatedArticleList/RelatedArticleList.js +4 -2
- package/lib/RelatedArticleList/RelatedArticleV2.js +12 -3
- package/lib/Resource/BlockResource.js +7 -1
- package/lib/Resource/ListResource.js +7 -1
- package/lib/Resource/resourceComponents.js +7 -1
- package/lib/ResourceGroup/ResourceItem.js +7 -1
- package/lib/ResourceGroup/ResourceList.js +11 -1
- package/lib/ResourcesWrapper/ResourcesWrapper.js +11 -1
- package/lib/Search/ContentTypeResult.js +5 -3
- package/lib/Search/SearchField.js +10 -1
- package/lib/Search/SearchResult.js +3 -1
- package/lib/Search/SearchResultSleeve.js +8 -2
- package/lib/Search/ToggleSearchButton.js +11 -1
- package/lib/SearchTypeResult/ActiveFilterContent.js +7 -1
- package/lib/SearchTypeResult/ActiveFilters.js +7 -1
- package/lib/SearchTypeResult/PopupFilter.js +9 -3
- package/lib/SearchTypeResult/SearchFieldHeader.js +9 -3
- package/lib/SearchTypeResult/SearchFilterContent.js +7 -1
- package/lib/SearchTypeResult/SearchHeader.js +9 -3
- package/lib/SearchTypeResult/SearchItem.js +7 -1
- package/lib/SearchTypeResult/SearchItemList.js +7 -1
- package/lib/SearchTypeResult/SearchItems.js +7 -1
- package/lib/SearchTypeResult/SearchNotionItem.js +7 -1
- package/lib/SearchTypeResult/SearchSubjectItem.js +7 -1
- package/lib/SearchTypeResult/SearchTypeHeader.js +7 -1
- package/lib/SearchTypeResult/SearchTypeResult.js +9 -1
- package/lib/SearchTypeResult/SearchViewType.js +7 -1
- package/lib/SearchTypeResult/components/ItemContexts.js +7 -1
- package/lib/SearchTypeResult/components/ItemResourceHeader.js +7 -1
- package/lib/SearchTypeResult/components/ItemTopicHeader.js +7 -1
- package/lib/SearchTypeResult/components/SubjectFilters.js +12 -4
- package/lib/SnackBar/SnackbarProvider.js +12 -4
- package/lib/Table/Table.js +12 -4
- package/lib/TagSelector/Control.js +10 -1
- package/lib/TagSelector/DropdownIndicator.js +10 -2
- package/lib/TagSelector/Input.js +10 -1
- package/lib/TagSelector/Menu.js +11 -1
- package/lib/TagSelector/MenuList.js +10 -1
- package/lib/TagSelector/Option.js +10 -1
- package/lib/TagSelector/SelectContainer.js +10 -1
- package/lib/TagSelector/TagSelector.js +12 -4
- package/lib/TagSelector/ValueButton.js +10 -1
- package/lib/Topic/Topic.js +7 -1
- package/lib/Translation/Translation.js +10 -1
- package/lib/Translation/TranslationLine.js +10 -1
- package/lib/TreeStructure/AddFolderButton.js +7 -1
- package/lib/TreeStructure/FolderItem.js +60 -23
- package/lib/TreeStructure/FolderItems.js +11 -1
- package/lib/TreeStructure/TreeStructure.js +9 -3
- package/lib/TreeStructure/helperFunctions.js +4 -1
- package/lib/User/AuthModal.js +7 -1
- package/lib/User/UserInfo.js +8 -3
- package/lib/User/parseUserObject.js +12 -4
- package/lib/all.css +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +7 -0
- package/lib/locale/messages-en.js +10 -1
- package/lib/locale/messages-nb.js +10 -1
- package/lib/locale/messages-nn.js +10 -1
- package/lib/locale/messages-se.js +87 -78
- package/lib/locale/messages-sma.js +10 -1
- package/lib/model/ContentType.js +4 -1
- package/package.json +12 -12
- package/src/BlogPost/BlogPost.stories.tsx +4 -3
- package/src/LanguageSelector/LanguageSelector.stories.tsx +4 -3
- package/src/LetterFilter/LetterFilter.stories.tsx +4 -3
- package/src/MyNdla/Resource/Folder.stories.tsx +39 -0
- package/src/Resource/BlockResource.stories.tsx +52 -0
- package/src/Resource/Resource.stories.tsx +52 -0
- package/src/TreeStructure/FolderItem.tsx +39 -20
- package/src/index.ts +1 -0
- package/src/locale/messages-se.ts +77 -77
- package/src/MyNdla/Resource/Folder.stories.mdx +0 -53
- package/src/Resource/BlockResource.stories.mdx +0 -58
- package/src/Resource/Resource.stories.mdx +0 -58
package/lib/index.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export { default as messagesNB } from './locale/messages-nb';
|
|
|
60
60
|
export { default as messagesNN } from './locale/messages-nn';
|
|
61
61
|
export { default as messagesEN } from './locale/messages-en';
|
|
62
62
|
export { default as messagesSE } from './locale/messages-se';
|
|
63
|
+
export { default as messagesSMA } from './locale/messages-sma';
|
|
63
64
|
export { default as RadioButtonGroup } from './RadioButtonGroup';
|
|
64
65
|
export { ToolboxInfo } from './ToolboxPage';
|
|
65
66
|
export { default as Topic } from './Topic';
|
package/lib/index.js
CHANGED
|
@@ -1240,6 +1240,12 @@ Object.defineProperty(exports, "messagesSE", {
|
|
|
1240
1240
|
return _messagesSe["default"];
|
|
1241
1241
|
}
|
|
1242
1242
|
});
|
|
1243
|
+
Object.defineProperty(exports, "messagesSMA", {
|
|
1244
|
+
enumerable: true,
|
|
1245
|
+
get: function get() {
|
|
1246
|
+
return _messagesSma["default"];
|
|
1247
|
+
}
|
|
1248
|
+
});
|
|
1243
1249
|
Object.defineProperty(exports, "resourceTypeColor", {
|
|
1244
1250
|
enumerable: true,
|
|
1245
1251
|
get: function get() {
|
|
@@ -1308,6 +1314,7 @@ var _messagesNb = _interopRequireDefault(require("./locale/messages-nb"));
|
|
|
1308
1314
|
var _messagesNn = _interopRequireDefault(require("./locale/messages-nn"));
|
|
1309
1315
|
var _messagesEn = _interopRequireDefault(require("./locale/messages-en"));
|
|
1310
1316
|
var _messagesSe = _interopRequireDefault(require("./locale/messages-se"));
|
|
1317
|
+
var _messagesSma = _interopRequireDefault(require("./locale/messages-sma"));
|
|
1311
1318
|
var _RadioButtonGroup = _interopRequireDefault(require("./RadioButtonGroup"));
|
|
1312
1319
|
var _ToolboxPage = require("./ToolboxPage");
|
|
1313
1320
|
var _Topic = _interopRequireDefault(require("./Topic"));
|
|
@@ -8,9 +8,18 @@ var _licenses = require("@ndla/licenses");
|
|
|
8
8
|
var _model = _interopRequireDefault(require("../model"));
|
|
9
9
|
var _subjectCategories, _subjectTypes, _contentTypeResultsSh, _contentTypeResultsSh2, _contentTypeResultsNo;
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
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); }
|
|
11
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; }
|
|
12
13
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
|
|
17
|
+
* Copyright (c) 2018-present, NDLA.
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
14
23
|
var contentTypes = _model["default"].contentTypes,
|
|
15
24
|
subjectCategories = _model["default"].subjectCategories,
|
|
16
25
|
subjectTypes = _model["default"].subjectTypes;
|
|
@@ -8,9 +8,18 @@ var _licenses = require("@ndla/licenses");
|
|
|
8
8
|
var _model = _interopRequireDefault(require("../model"));
|
|
9
9
|
var _subjectCategories, _subjectTypes, _contentTypeResultsSh, _contentTypeResultsSh2, _contentTypeResultsNo;
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
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); }
|
|
11
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; }
|
|
12
13
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
|
|
17
|
+
* Copyright (c) 2018-present, NDLA.
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
14
23
|
var contentTypes = _model["default"].contentTypes,
|
|
15
24
|
subjectCategories = _model["default"].subjectCategories,
|
|
16
25
|
subjectTypes = _model["default"].subjectTypes;
|
|
@@ -8,9 +8,18 @@ var _licenses = require("@ndla/licenses");
|
|
|
8
8
|
var _model = _interopRequireDefault(require("../model"));
|
|
9
9
|
var _subjectCategories, _subjectTypes, _contentTypeResultsSh, _contentTypeResultsSh2, _contentTypeResultsNo;
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
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); }
|
|
11
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; }
|
|
12
13
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
|
|
17
|
+
* Copyright (c) 2018-present, NDLA.
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
14
23
|
var contentTypes = _model["default"].contentTypes,
|
|
15
24
|
subjectCategories = _model["default"].subjectCategories,
|
|
16
25
|
subjectTypes = _model["default"].subjectTypes;
|
|
@@ -8,9 +8,18 @@ var _licenses = require("@ndla/licenses");
|
|
|
8
8
|
var _model = _interopRequireDefault(require("../model"));
|
|
9
9
|
var _subjectCategories, _subjectTypes, _contentTypeResultsSh, _contentTypeResultsSh2, _contentTypeResultsNo;
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
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); }
|
|
11
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; }
|
|
12
13
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
|
|
17
|
+
* Copyright (c) 2018-present, NDLA.
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
14
23
|
var contentTypes = _model["default"].contentTypes,
|
|
15
24
|
subjectCategories = _model["default"].subjectCategories,
|
|
16
25
|
subjectTypes = _model["default"].subjectTypes;
|
|
@@ -248,23 +257,23 @@ var messages = _objectSpread(_objectSpread({
|
|
|
248
257
|
archived: 'Dát leat heaittihuvvon fága mii ii ođasmahttojuvvo.'
|
|
249
258
|
},
|
|
250
259
|
subjectsPage: {
|
|
251
|
-
filterSubjects: '
|
|
252
|
-
scrollToGroup: '
|
|
253
|
-
goToTop: '
|
|
254
|
-
alphabeticSort: '
|
|
255
|
-
subjectGroup: '
|
|
260
|
+
filterSubjects: 'Filtarastte fágaid',
|
|
261
|
+
scrollToGroup: 'Njuike jovkui',
|
|
262
|
+
goToTop: 'Mana álgui',
|
|
263
|
+
alphabeticSort: 'Fágat alfabehtalaččat',
|
|
264
|
+
subjectGroup: 'Joavku "{{ category }}"',
|
|
256
265
|
allSubjects: 'Buot fágat',
|
|
257
|
-
myFavoriteSubjects: '
|
|
266
|
+
myFavoriteSubjects: 'Mu oiddotfágat',
|
|
258
267
|
errorDescription: 'Šállošat, boasttuvuohta čuožžilii fágaid viežžamis.',
|
|
259
268
|
chooseSubject: 'Vállje fága',
|
|
260
|
-
confirmRemove: '
|
|
261
|
-
addFavorite: '
|
|
262
|
-
removeFavorite: '
|
|
263
|
-
removeConfirmed: '{{subject}}
|
|
264
|
-
addConfirmed: '{{subject}}
|
|
265
|
-
subjectFavoritePitch: '
|
|
266
|
-
subjectFavoriteGuide: '
|
|
267
|
-
shows: '
|
|
269
|
+
confirmRemove: 'Leat go sihkar ahte áiggut sihkkut {{subject}} oiddotfágain?',
|
|
270
|
+
addFavorite: 'Lasit oiddotfága',
|
|
271
|
+
removeFavorite: 'Sihko oiddotfága',
|
|
272
|
+
removeConfirmed: '{{subject}} lea sihkkojuvvon oiddotfágain',
|
|
273
|
+
addConfirmed: '{{subject}} lea lasihuvvon oiddotfágan',
|
|
274
|
+
subjectFavoritePitch: 'Háliidat go dán fága merket oiddotfágan?',
|
|
275
|
+
subjectFavoriteGuide: 'Vai galggat sáhttit merket fága oiddohin, fertet logget sisa Mu NDLAii. Fága gávnnat bajimusas siiddus go leat sisaloggen.',
|
|
276
|
+
shows: 'Čájeha'
|
|
268
277
|
},
|
|
269
278
|
topicPage: {
|
|
270
279
|
articleErrorDescription: 'Šállošat, boasttuvuohta čuožžilii fáddáčilgehusa viežžamis.',
|
|
@@ -325,33 +334,33 @@ var messages = _objectSpread(_objectSpread({
|
|
|
325
334
|
toolboxTeachers: 'Reaidokássa - oahpaheddjiide',
|
|
326
335
|
film: 'NDLA Filbma',
|
|
327
336
|
about: {
|
|
328
|
-
title: '
|
|
329
|
-
numbers: '
|
|
330
|
-
keyPersonnel: '
|
|
331
|
-
vacancies: '
|
|
332
|
-
vision: '
|
|
333
|
-
communityPurpose: '
|
|
334
|
-
history: '
|
|
335
|
-
cooperation: '
|
|
336
|
-
faq: '
|
|
337
|
-
follow: '
|
|
338
|
-
whoAreWe: '
|
|
339
|
-
whatWeDo: '
|
|
340
|
-
careers: '
|
|
341
|
-
contactUs: '
|
|
342
|
-
organizing: '
|
|
343
|
-
articlesOfAssociation: '
|
|
337
|
+
title: 'NDLA birra',
|
|
338
|
+
numbers: 'Logut ja raporttat',
|
|
339
|
+
keyPersonnel: 'Čoavddaolbmot',
|
|
340
|
+
vacancies: 'Almmuhusat',
|
|
341
|
+
vision: 'Niehkodoaivva ja árvvut',
|
|
342
|
+
communityPurpose: 'Min servvodatdoaibma',
|
|
343
|
+
history: 'NDLA historjá',
|
|
344
|
+
cooperation: 'Min ovttasbarggu',
|
|
345
|
+
faq: 'Dávjá jerron jearaladagat',
|
|
346
|
+
follow: 'Čuovo min sosiála medijaid',
|
|
347
|
+
whoAreWe: 'Geat leat mii?',
|
|
348
|
+
whatWeDo: 'Maid mii bargat?',
|
|
349
|
+
careers: 'Barggut min fitnodagas',
|
|
350
|
+
contactUs: 'Váldde oktavuođa minguin',
|
|
351
|
+
organizing: 'Organiseren',
|
|
352
|
+
articlesOfAssociation: 'Njuolggadusat'
|
|
344
353
|
}
|
|
345
354
|
},
|
|
346
355
|
menu: {
|
|
347
|
-
button: '
|
|
348
|
-
goToMainMenu: '
|
|
356
|
+
button: 'Fállu',
|
|
357
|
+
goToMainMenu: 'Mana váldofállui',
|
|
349
358
|
close: 'Govčča',
|
|
350
359
|
goTo: 'Mana deike',
|
|
351
360
|
search: 'Oza',
|
|
352
361
|
toFrontpage: 'Ovdasiidui',
|
|
353
362
|
subjectOverview: 'Buot fágat',
|
|
354
|
-
title: '
|
|
363
|
+
title: 'Raba fálu',
|
|
355
364
|
modalLabel: 'Vállje sisdoalu',
|
|
356
365
|
subjectPage: 'Ovdasiidu fágas',
|
|
357
366
|
backToSubjectFrontpage: 'Ruovttoluotta fága ovdasiidui',
|
|
@@ -458,9 +467,9 @@ var messages = _objectSpread(_objectSpread({
|
|
|
458
467
|
competenceGoalClose: 'Govčča',
|
|
459
468
|
competenceGoalTitle: 'Mihttun lea ahte oahppi galgá máhttit:',
|
|
460
469
|
competenceTabLK20label: 'Gealbomihttomearri',
|
|
461
|
-
competenceTabLK20Tooltip: '
|
|
470
|
+
competenceTabLK20Tooltip: 'Čájet gealbomihtuid',
|
|
462
471
|
competenceTabCorelabel: 'Guovddášelemeanta',
|
|
463
|
-
competenceTabCoreTooltip: '
|
|
472
|
+
competenceTabCoreTooltip: 'Čájet guovddášelemeanttaid',
|
|
464
473
|
competenceGoalItem: {
|
|
465
474
|
title: 'Gealbomihttomearit ja árvvoštallan'
|
|
466
475
|
},
|
|
@@ -599,21 +608,21 @@ var messages = _objectSpread(_objectSpread({
|
|
|
599
608
|
},
|
|
600
609
|
figure: {
|
|
601
610
|
button: {
|
|
602
|
-
alternative: 'Lonut mas dulkojuvvo oaidninváttuid ektui',
|
|
611
|
+
alternative: 'Lonut siidui mas dulkojuvvo oaidninváttuid ektui',
|
|
603
612
|
original: 'Lonut orginála videoi'
|
|
604
613
|
}
|
|
605
614
|
},
|
|
606
615
|
footer: {
|
|
607
616
|
aboutNDLA: 'NDLA birra',
|
|
608
|
-
socialMedia: '
|
|
617
|
+
socialMedia: 'Sosiála mediat',
|
|
609
618
|
selectLanguage: 'Vállje giela (language): ',
|
|
610
619
|
vision: 'Ovttas hábmet boahtteáiggi oahppama',
|
|
611
620
|
linksHeader: 'Eará NDLA neahttabáikkit',
|
|
612
621
|
info: 'Neahttabáiki lea ráhkaduvvon NDLA bokte rabas gáldokodain.',
|
|
613
622
|
editorInChief: 'Vásttolaš doaimmaheaddji:',
|
|
614
|
-
availabilityLink: '
|
|
623
|
+
availabilityLink: 'Beasatlašvuođajulggaštus',
|
|
615
624
|
privacyLink: 'Persovdnasuodjalusjulggaštus ja diehtočoahkku (gáhkožat)',
|
|
616
|
-
cookiesLink: 'Julggaštus
|
|
625
|
+
cookiesLink: 'Julggaštus diehtočoahku ektui (gáhkožat)',
|
|
617
626
|
socialMediaLinks: {
|
|
618
627
|
facebook: 'NDLA Facebookas',
|
|
619
628
|
facebookAria: 'Fina NDLA siiddus Facebookas',
|
|
@@ -631,7 +640,7 @@ var messages = _objectSpread(_objectSpread({
|
|
|
631
640
|
ndlaLinks: {
|
|
632
641
|
ndla: 'ndla.no',
|
|
633
642
|
omNdla: 'NDLA birra',
|
|
634
|
-
aboutNdla: '
|
|
643
|
+
aboutNdla: 'NDLA birra',
|
|
635
644
|
blog: 'Fágablogga',
|
|
636
645
|
tips: 'Cavgileapmi ohppiide',
|
|
637
646
|
fyr: 'FYR-prošeakta',
|
|
@@ -723,7 +732,7 @@ var messages = _objectSpread(_objectSpread({
|
|
|
723
732
|
hits: '{{count}} deaivama'
|
|
724
733
|
},
|
|
725
734
|
notions: {
|
|
726
|
-
tags: '
|
|
735
|
+
tags: 'Listu ja filttar',
|
|
727
736
|
usedIn: 'Adnojuvvo dás',
|
|
728
737
|
closeNotion: 'Govčča'
|
|
729
738
|
},
|
|
@@ -792,7 +801,7 @@ var messages = _objectSpread(_objectSpread({
|
|
|
792
801
|
shortFilm: 'Oanehis filbma',
|
|
793
802
|
all: 'Buot filmmat A-Å'
|
|
794
803
|
},
|
|
795
|
-
allMovieGroupTitleLabel: '
|
|
804
|
+
allMovieGroupTitleLabel: 'Filmmat mat álget {{letter}}',
|
|
796
805
|
moreAboutNdlaFilm: {
|
|
797
806
|
header: 'NDLA Filbma',
|
|
798
807
|
firstParagraph: 'Filmmat filbmabálvalusas leat vižžouvvon norgga ja riikkaidgaskasaš filbmaárbbis ja leat čadnon oahppoplánaide máŋgga fágas. Dat leat válljejuvvon NDLA doaimmahusgottiin ovttasráđiid Norgesfilm AS:ain.',
|
|
@@ -885,7 +894,7 @@ var messages = _objectSpread(_objectSpread({
|
|
|
885
894
|
frontpageMultidisciplinarySubject: {
|
|
886
895
|
heading: 'Fágaidrasttideaddji fáttát',
|
|
887
896
|
text: 'Oahppoplána golbma fágaidrasttideaddji fáttáin leat vuolggasadjin áigeguovdilis hástalusat servvodagas mat gáibidit beroštumi ja rahčamuša ovttaskas olbmuin ja searvevuođas lagasbirrasis, našunálalaččat ja máilmmeviidosaččat.',
|
|
888
|
-
linkText: 'Geahča
|
|
897
|
+
linkText: 'Geahča keisaid fágaidrasttideaddji fáttáin.',
|
|
889
898
|
publicHealthTopic: 'Álbmotdearvvašvuohta ja eallimis birgen',
|
|
890
899
|
democracyTopic: 'Demokratiija ja mielboargárvuohta',
|
|
891
900
|
sustainableTopic: 'Guoddevaš ovdáneapmi',
|
|
@@ -905,7 +914,7 @@ var messages = _objectSpread(_objectSpread({
|
|
|
905
914
|
loadingText: 'Viežžá fáttá'
|
|
906
915
|
},
|
|
907
916
|
multidisciplinarySubject: {
|
|
908
|
-
subjectsLinksDescription: '
|
|
917
|
+
subjectsLinksDescription: 'Keisa mii gullá'
|
|
909
918
|
},
|
|
910
919
|
multibutton: {
|
|
911
920
|
open: 'Raba fálu',
|
|
@@ -1027,7 +1036,7 @@ var messages = _objectSpread(_objectSpread({
|
|
|
1027
1036
|
mail: 'Eboasta',
|
|
1028
1037
|
username: 'Geavahan namma',
|
|
1029
1038
|
mobile: 'Telefonnummar',
|
|
1030
|
-
preferredLanguage: '
|
|
1039
|
+
preferredLanguage: 'Sávvojuvvon giella',
|
|
1031
1040
|
groupTypes: {
|
|
1032
1041
|
basic: 'Vuođđojoavku',
|
|
1033
1042
|
teaching: 'Oahpahusjoavku',
|
|
@@ -1051,8 +1060,8 @@ var messages = _objectSpread(_objectSpread({
|
|
|
1051
1060
|
resources: '{{count}} resursa',
|
|
1052
1061
|
resources_plural: '{{count}} resurssat',
|
|
1053
1062
|
folders: '{{count}} máhpat',
|
|
1054
|
-
folders_plural: '{{count}}
|
|
1055
|
-
settings: '
|
|
1063
|
+
folders_plural: '{{count}} máhpat',
|
|
1064
|
+
settings: 'Válljemat',
|
|
1056
1065
|
folder: {
|
|
1057
1066
|
folder: 'Máhppa',
|
|
1058
1067
|
"delete": 'Sihko máhpa',
|
|
@@ -1068,27 +1077,27 @@ var messages = _objectSpread(_objectSpread({
|
|
|
1068
1077
|
onDragCancel: 'Sirdin botkejuvvui. Máhppa {{name}} lea luitojuvvon.',
|
|
1069
1078
|
dragHandle: 'Ordne máhpa {{name}}',
|
|
1070
1079
|
sharing: {
|
|
1071
|
-
share: '
|
|
1072
|
-
shared: '
|
|
1073
|
-
unShare: '
|
|
1074
|
-
link: '
|
|
1080
|
+
share: 'Juoge máhpa',
|
|
1081
|
+
shared: 'Juogaduvvon',
|
|
1082
|
+
unShare: 'Juohkin lea loahpahuvvon. Máhppa ii leat šat juogaduvvon.',
|
|
1083
|
+
link: 'Liŋka lea máŋgejuvvon.',
|
|
1075
1084
|
header: {
|
|
1076
|
-
"private": '
|
|
1077
|
-
shared: '
|
|
1078
|
-
unShare: '
|
|
1085
|
+
"private": 'Áiggut go juogadit dán máhpa?',
|
|
1086
|
+
shared: 'Dát máhpa lea juogaduvvon.',
|
|
1087
|
+
unShare: 'Háliidat go loahpahit máhpa juogadeami?'
|
|
1079
1088
|
},
|
|
1080
1089
|
description: {
|
|
1081
|
-
copy: '
|
|
1082
|
-
"private": '
|
|
1083
|
-
private2: '
|
|
1084
|
-
shared: '
|
|
1085
|
-
unShare: '
|
|
1090
|
+
copy: 'Máŋge ja juoge dán liŋkka:',
|
|
1091
|
+
"private": 'Go juogát máhpa ráhkadat liŋkka mii lea rabas buohkaide geas lea liŋka. Sáhtát rievdadit sisdoalu dahje loahpahit juogadeami go háliidat.',
|
|
1092
|
+
private2: 'Go juogadat máhpa juogát buot máhpa sisdoalu, oktan vuollemáhpaiguin ja resursaiguin',
|
|
1093
|
+
shared: 'Dál sáhtát juogadit dán liŋkka ohppiiguin dahje eará oahpaheddjiiguin. Jus rievdadat maidege máhpas šaddá rievdan oinnolaš buohkaide geaidda leat juogadan liŋkka',
|
|
1094
|
+
unShare: 'Go loahpahat juogadeami ii doaimma liŋka juogaduvvon máhppii šat. Jus leat juogadan liŋkka ovttainge, de eai sáhte šat oaidnit máhpa sisdoalu'
|
|
1086
1095
|
},
|
|
1087
1096
|
button: {
|
|
1088
|
-
share: '
|
|
1089
|
-
preview: '
|
|
1090
|
-
unShare: '
|
|
1091
|
-
shareLink: '
|
|
1097
|
+
share: 'Juoge máhpa',
|
|
1098
|
+
preview: 'Čájet ovdagihtii juogaduvvon máhpa',
|
|
1099
|
+
unShare: 'Loahpat juogdeami',
|
|
1100
|
+
shareLink: 'Máŋge liŋkka'
|
|
1092
1101
|
}
|
|
1093
1102
|
}
|
|
1094
1103
|
},
|
|
@@ -1118,15 +1127,15 @@ var messages = _objectSpread(_objectSpread({
|
|
|
1118
1127
|
detailView: 'Bienalaš oppalašlistu',
|
|
1119
1128
|
shortView: 'Oanehis listu',
|
|
1120
1129
|
sharedFolder: {
|
|
1121
|
-
info: '
|
|
1122
|
-
firstShared: '
|
|
1123
|
-
drawerButton: '
|
|
1124
|
-
drawerTitle: '
|
|
1125
|
-
learningpathUnsupported: '
|
|
1130
|
+
info: 'Dán máhpas lea NDLA fágasisdoallu ja bargobihtát, čohkkejuvvon oahpaheaddjis.',
|
|
1131
|
+
firstShared: 'Máhppa juogaduvvui vuosttaš geardde {{date}}',
|
|
1132
|
+
drawerButton: 'Čájet máhpaid ja resurssaid',
|
|
1133
|
+
drawerTitle: 'Máhpat ja resurssat',
|
|
1134
|
+
learningpathUnsupported: 'Oahppanbálgát eai sáhte njuolga čájehuvvot juogaduvvon máhpain. Jus deaddilat liŋkka navigerenfálus gurut bealde, rahpasa bálggis ođđa siiddus.',
|
|
1126
1135
|
description: {
|
|
1127
|
-
info1: '
|
|
1128
|
-
info2: '
|
|
1129
|
-
info3: '
|
|
1136
|
+
info1: 'Dán máhpas gávnnat fágaávdnasiid ja bargobihtáid NDLAs. Oahpaheaddji lea čohkken artihkkaliid ja bidjan daid ortnetvurrui.',
|
|
1137
|
+
info2: 'Sáhtát bláđet artihkkaliid fálu vehkiin.',
|
|
1138
|
+
info3: 'Jus háliidat gávdnat máhpa maŋŋel fas, sáhtát geavahit seamma liŋkka maid oahpaheaddjis leat ožžon, dahje sáhtát girjemearka bidjat siidui.'
|
|
1130
1139
|
},
|
|
1131
1140
|
willOpenInNewTab: 'Åpnes i ny fane.'
|
|
1132
1141
|
},
|
|
@@ -1152,7 +1161,7 @@ var messages = _objectSpread(_objectSpread({
|
|
|
1152
1161
|
privacyLink: 'https://om.ndla.no/gdpr',
|
|
1153
1162
|
questions: {
|
|
1154
1163
|
question: 'Smiehtat go maidege?',
|
|
1155
|
-
ask: 'Jeara min
|
|
1164
|
+
ask: 'Jeara min čeattas'
|
|
1156
1165
|
},
|
|
1157
1166
|
wishToDelete: 'It go hálit geavaheaddjiprofiila min geahčen šat?',
|
|
1158
1167
|
terms: {
|
|
@@ -1200,7 +1209,7 @@ var messages = _objectSpread(_objectSpread({
|
|
|
1200
1209
|
tagsUpdated: 'Fáddágilkorat leat ođastuvvon',
|
|
1201
1210
|
show: 'Čájet',
|
|
1202
1211
|
save: 'Vurke resurssa',
|
|
1203
|
-
onDragStart: '
|
|
1212
|
+
onDragStart: 'Rohtte resurssa {{name}}. Resursa lea {{index}} posišuvnnas čuovvovačča {{length}} posišuvnnas',
|
|
1204
1213
|
onDragOver: 'Resursa {{name}} sirdojuvvui {{index}} posišuvdnii {{length}} posišuvnnas',
|
|
1205
1214
|
onDragOverMissingOver: 'Resursa {{name}} ii leat šat luoitinposišuvnnas',
|
|
1206
1215
|
onDragEnd: 'Resursa {{name}} luitojuvvui {{index}} posišuvdnii {{length}} posišuvnnas',
|
|
@@ -1236,12 +1245,12 @@ var messages = _objectSpread(_objectSpread({
|
|
|
1236
1245
|
help: 'Veahket'
|
|
1237
1246
|
},
|
|
1238
1247
|
programme: {
|
|
1239
|
-
grades: '
|
|
1248
|
+
grades: 'Ceahkki'
|
|
1240
1249
|
},
|
|
1241
1250
|
embed: {
|
|
1242
|
-
conceptListError: '
|
|
1243
|
-
linkError: '
|
|
1244
|
-
unsupported: "Embed {{type}}
|
|
1251
|
+
conceptListError: 'Ii sáhttán čájehit čilgehuslisttu',
|
|
1252
|
+
linkError: 'Ii sáhttán čájehit liŋkka.',
|
|
1253
|
+
unsupported: "Embed {{type}} ii dorjojuvvo."
|
|
1245
1254
|
}
|
|
1246
1255
|
});
|
|
1247
1256
|
var _default = messages;
|
|
@@ -8,9 +8,18 @@ var _licenses = require("@ndla/licenses");
|
|
|
8
8
|
var _model = _interopRequireDefault(require("../model"));
|
|
9
9
|
var _subjectCategories, _subjectTypes, _contentTypeResultsSh, _contentTypeResultsSh2, _contentTypeResultsNo;
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
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); }
|
|
11
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; }
|
|
12
13
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
|
|
17
|
+
* Copyright (c) 2018-present, NDLA.
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the GPLv3 license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
14
23
|
var contentTypes = _model["default"].contentTypes,
|
|
15
24
|
subjectCategories = _model["default"].subjectCategories,
|
|
16
25
|
subjectTypes = _model["default"].subjectTypes;
|
package/lib/model/ContentType.js
CHANGED
|
@@ -5,7 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.contentTypes = exports.contentTypeMapping = exports.TOPIC = exports.TASKS_AND_ACTIVITIES = exports.SUBJECT_MATERIAL = exports.SUBJECT = exports.SOURCE_MATERIAL = exports.RESOURCE_TYPE_TASKS_AND_ACTIVITIES = exports.RESOURCE_TYPE_SUBJECT_MATERIAL = exports.RESOURCE_TYPE_SOURCE_MATERIAL = exports.RESOURCE_TYPE_LEARNING_PATH = exports.RESOURCE_TYPE_EXTERNAL_LEARNING_RESOURCES = exports.RESOURCE_TYPE_ASSESSMENT_RESOURCES = exports.MULTIDISCIPLINARY_TOPIC = exports.ListOfContentTypes = exports.LEARNING_PATH = exports.EXTERNAL_LEARNING_RESOURCES = exports.ASSESSMENT_RESOURCES = void 0;
|
|
7
7
|
var _contentTypeMapping;
|
|
8
|
-
function
|
|
8
|
+
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); }
|
|
9
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
11
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
12
|
/**
|
|
10
13
|
* Copyright (c) 2017-present, NDLA.
|
|
11
14
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/ui",
|
|
3
|
-
"version": "35.0.
|
|
3
|
+
"version": "35.0.28",
|
|
4
4
|
"description": "UI component library for NDLA.",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@ndla/article-scripts": "^3.0.17",
|
|
35
|
-
"@ndla/button": "^10.0.
|
|
35
|
+
"@ndla/button": "^10.0.12",
|
|
36
36
|
"@ndla/carousel": "^3.0.12",
|
|
37
37
|
"@ndla/core": "^3.1.3",
|
|
38
|
-
"@ndla/forms": "^4.2.
|
|
38
|
+
"@ndla/forms": "^4.2.21",
|
|
39
39
|
"@ndla/hooks": "^2.0.4",
|
|
40
40
|
"@ndla/icons": "^2.2.12",
|
|
41
41
|
"@ndla/licenses": "^7.0.4",
|
|
42
42
|
"@ndla/modal": "^2.2.16",
|
|
43
|
-
"@ndla/notion": "^4.2.
|
|
44
|
-
"@ndla/safelink": "^4.0.
|
|
45
|
-
"@ndla/switch": "^1.0.
|
|
46
|
-
"@ndla/tabs": "^2.1.
|
|
47
|
-
"@ndla/tooltip": "^4.0.
|
|
43
|
+
"@ndla/notion": "^4.2.18",
|
|
44
|
+
"@ndla/safelink": "^4.0.22",
|
|
45
|
+
"@ndla/switch": "^1.0.9",
|
|
46
|
+
"@ndla/tabs": "^2.1.19",
|
|
47
|
+
"@ndla/tooltip": "^4.0.20",
|
|
48
48
|
"@ndla/util": "^3.1.12",
|
|
49
49
|
"@radix-ui/react-accordion": "1.1.0",
|
|
50
50
|
"@radix-ui/react-dropdown-menu": "2.0.2",
|
|
@@ -78,13 +78,13 @@
|
|
|
78
78
|
"@ndla/types-embed": "^1.0.11",
|
|
79
79
|
"@types/reach__dialog": "^0.1.0",
|
|
80
80
|
"css-loader": "^6.7.3",
|
|
81
|
-
"mini-css-extract-plugin": "^2.7.
|
|
82
|
-
"sass-loader": "^13.2.
|
|
83
|
-
"webpack": "^5.
|
|
81
|
+
"mini-css-extract-plugin": "^2.7.5",
|
|
82
|
+
"sass-loader": "^13.2.2",
|
|
83
|
+
"webpack": "^5.79.0",
|
|
84
84
|
"webpack-cli": "^5.0.1"
|
|
85
85
|
},
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "5409272e9cd733486c528ae68d576721e25d4674"
|
|
90
90
|
}
|
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { Meta, StoryFn } from '@storybook/react';
|
|
11
11
|
import BlogPost from './BlogPost';
|
|
12
12
|
import { defaultParameters } from '../../../../stories/defaults';
|
|
13
13
|
|
|
14
14
|
export default {
|
|
15
15
|
title: 'Enkle komponenter/Blog Post',
|
|
16
16
|
component: BlogPost,
|
|
17
|
+
tags: ['autodocs'],
|
|
17
18
|
parameters: {
|
|
18
19
|
...defaultParameters,
|
|
19
20
|
},
|
|
@@ -28,9 +29,9 @@ export default {
|
|
|
28
29
|
url: 'https://api.test.ndla.no/image-api/raw/20080101-032119-ag.jpg',
|
|
29
30
|
},
|
|
30
31
|
},
|
|
31
|
-
} as
|
|
32
|
+
} as Meta<typeof BlogPost>;
|
|
32
33
|
|
|
33
|
-
export const BlogPostStory:
|
|
34
|
+
export const BlogPostStory: StoryFn<typeof BlogPost> = ({ ...args }) => {
|
|
34
35
|
return <BlogPost {...args} />;
|
|
35
36
|
};
|
|
36
37
|
|
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { Meta, StoryFn } from '@storybook/react';
|
|
11
11
|
import { LanguageSelector } from '@ndla/ui';
|
|
12
12
|
import styled from '@emotion/styled';
|
|
13
13
|
import { colors, spacing } from '@ndla/core';
|
|
14
14
|
import { defaultParameters } from '../../../../stories/defaults';
|
|
15
15
|
export default {
|
|
16
16
|
title: 'Enkle komponenter/LanguageSelector',
|
|
17
|
+
tags: ['autodocs'],
|
|
17
18
|
component: LanguageSelector,
|
|
18
19
|
parameters: {
|
|
19
20
|
...defaultParameters,
|
|
@@ -24,7 +25,7 @@ export default {
|
|
|
24
25
|
// eslint-disable-next-line no-console
|
|
25
26
|
onSelect: (locale) => console.log(`selected ${locale}`),
|
|
26
27
|
},
|
|
27
|
-
} as
|
|
28
|
+
} as Meta<typeof LanguageSelector>;
|
|
28
29
|
|
|
29
30
|
interface ButtonWrapperProps {
|
|
30
31
|
inverted?: boolean;
|
|
@@ -37,7 +38,7 @@ const ButtonWrapper = styled('div', { shouldForwardProp })<ButtonWrapperProps>`
|
|
|
37
38
|
padding: ${spacing.normal};
|
|
38
39
|
`;
|
|
39
40
|
|
|
40
|
-
export const LanguageSelectorStory:
|
|
41
|
+
export const LanguageSelectorStory: StoryFn<typeof LanguageSelector> = (args) => {
|
|
41
42
|
return (
|
|
42
43
|
<ButtonWrapper inverted={args.inverted}>
|
|
43
44
|
<LanguageSelector {...args} />
|