export const __webpack_esm_id__=54211;export const __webpack_esm_ids__=[19115,54211];export const __webpack_esm_modules__={68152(e,t,r){var o=r(20575);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=o.w}}}angular.module("graphdb.framework.core.directives.dynamic-form-field",[]).directive("dynamicFormField",n),n.$inject=[]},95113(e,t,r){r(68152);var o=r(20575),n=r(71315);angular.module("graphdb.framework.core.directives.dynamic-form",["graphdb.framework.core.directives.dynamic-form-field"]).directive("dynamicForm",l),l.$inject=[];const i=n.I.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,t){e.FIELD_TYPE=o.w,e.formCtrl=void 0,e.showAllFields=e.showAllFields||!1,(()=>{const r=t.find("form").controller("form");if(!r)return void i.error("Form controller not found!");e.formCtrl=r;const o=r.$setValidity;e.formCtrl.$setValidity=function(t,n,i){o.call(r,t,n,i),e.onValidityChange&&e.onValidityChange({valid:r.$valid})}})()}}}},19115(){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(t,r,o,n){t.isOpen=!1;const i=e=>{r[0].contains(e.target)||t.$apply(()=>{t.isOpen=!1})};t.toggleDropdown=function(){t.isOpen=!t.isOpen},t.toggleSelection=function(e){e.selected=!e.selected,(()=>{const e=t.options.filter(function(e){return e.selected});n.$setViewValue(e)})()},t.getSelectedText=function(){const r=t.options.filter(e=>e.selected);return 0===r.length?t.dropdownLabel||e.instant("common.select"):r.map(e=>e.label).join(", ")},n.$render=function(){angular.isArray(n.$viewValue)&&t.options.forEach(function(e){e.selected=n.$viewValue.some(function(t){return t.value===e.value})})},document.addEventListener("click",i),t.$on("$destroy",()=>{document.removeEventListener("click",i)})}}}])}};
//# sourceMappingURL=54211.d6f9061b23707d4a6668.bundle.js.map