/*jslint es6: true, this: true*/ /*global window, Vue*/ (function () { "use strict"; const standardsDefaults = window.WEB_API_MANAGER.defaults; Vue.component("web-api-standards", { props: ["standards", "selectedStandards", "selectedDomain"], template: `

Pattern: {{ selectedDomain }}

Default configurations
Blocked standards
`, methods: { onStandardChecked: function () { this.$root.$data.setSelectedStandards(this.selectedStandards); }, onConservativeClicked: function () { this.$root.$data.setSelectedStandards(standardsDefaults.conservative); }, onAggressiveClicked: function () { this.$root.$data.setSelectedStandards(standardsDefaults.aggressive); }, onClearClicked: function () { this.$root.$data.setSelectedStandards([]); }, onAllClicked: function () { const allStandards = Object.keys(this.standards) .map(aStdName => this.standards[aStdName].info.identifier); this.$root.$data.setSelectedStandards(allStandards); } } }); }());