UNPKG

graphdb-workbench

Version:
2 lines 3.33 kB
export const __webpack_id__=69724;export const __webpack_ids__=[29428,69724,84727];export const __webpack_modules__={10307:(e,o,t)=>{t.r(o);var r=t(3588);function n(e){return{restrict:"E",scope:{field:"=",form:"=",translationKeyPrefix:"="},templateUrl:"js/angular/core/directives/dynamic-form/templates/form-field-template.html",link:function(e){e.FIELD_TYPE=r.FIELD_TYPE}}}angular.module("graphdb.framework.core.directives.dynamic-form-field",[]).directive("dynamicFormField",n),n.$inject=[]},29428:()=>{angular.module("graphdb.framework.core.directives.multiselect-dropdown",[]).directive("multiselectDropdown",["$translate",function(e){return{restrict:"E",require:"ngModel",scope:{options:"=",dropdownLabel:"=?"},templateUrl:"js/angular/core/directives/multiselect-dropdown/templates/multiselect-dropdown.html",link:function(o,t,r,n){o.isOpen=!1;const i=e=>{t[0].contains(e.target)||o.$apply(()=>{o.isOpen=!1})};o.toggleDropdown=function(){o.isOpen=!o.isOpen},o.toggleSelection=function(e){e.selected=!e.selected,(()=>{const e=o.options.filter(function(e){return e.selected});n.$setViewValue(e)})()},o.getSelectedText=function(){const t=o.options.filter(e=>e.selected);return 0===t.length?o.dropdownLabel||e.instant("common.select"):t.map(e=>e.label).join(", ")},n.$render=function(){angular.isArray(n.$viewValue)&&o.options.forEach(function(e){e.selected=n.$viewValue.some(function(o){return o.value===e.value})})},document.addEventListener("click",i),o.$on("$destroy",()=>{document.removeEventListener("click",i)})}}}])},58334:(e,o,t)=>{t.r(o),t(10307);var r=t(3588),n=t(304);angular.module("graphdb.framework.core.directives.dynamic-form",["graphdb.framework.core.directives.dynamic-form-field"]).directive("dynamicForm",l),l.$inject=[];const i=n.LoggerProvider.logger;function l(){return{restrict:"E",scope:{formModel:"=",showAllFields:"=?",onValidityChange:"&?",formCtrl:"=?",translationKeyPrefix:"@?"},templateUrl:"js/angular/core/directives/dynamic-form/templates/dynamic-form.html",link:function(e,o){e.FIELD_TYPE=r.FIELD_TYPE,e.formCtrl=void 0,e.showAllFields=e.showAllFields||!1,(()=>{const t=o.find("form").controller("form");if(!t)return void i.error("Form controller not found!");e.formCtrl=t;const r=t.$setValidity;e.formCtrl.$setValidity=function(o,n,i){r.call(t,o,n,i),e.onValidityChange&&e.onValidityChange({valid:t.$valid})}})()}}}},69724:(e,o,t)=>{function r(e,o,t,r){const n="generation-report.json";e.endpointReport=void 0,e.downloadReport=()=>{const o=JSON.stringify(e.endpointReport.toJSON(),null,2),t=new Blob([o],{type:"application/json"}),r=URL.createObjectURL(t),i=document.createElement("a");i.href=r,i.download=e.endpointReport.endpointId?`${e.endpointReport.endpointId}-${n}`:n,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r)},e.deleteReport=()=>{r.deleteEndpointGenerationReport(e.endpointReport),e.close()},e.close=()=>{o.dismiss("cancel")},e.endpointReport=t.endpointReport}t.r(o),t(14874),t(58334),t(29428),angular.module("graphdb.framework.graphql.controllers.endpoint-generation-failure-result-modal",["graphdb.framework.core.services.graphql-service"]).controller("EndpointGenerationResultFailureModalController",r),r.$inject=["$scope","$uibModalInstance","data","GraphqlContextService"]}}; //# sourceMappingURL=69724.56df2d5b2ba312cb8118.bundle.js.map