All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.butterfaces-dist-js.butterfaces-trivial-components-wrapper.min.js Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
var ButterFaces;!function(e){e.createTrivialTagComponent=function(e,t){function n(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return e.replace(/[&<>"'\/]/g,function(e){return t[e]})}return new TrivialComponents.TrivialTagComboBox(e,{autoComplete:t.autoComplete,allowFreeText:!0,showTrigger:t.showTrigger,distinct:t.distinct,editingMode:t.editingMode,matchingOptions:{matchingMode:"contains",ignoreCase:!0,maxLevenshteinDistance:0},maxSelectedEntries:t.maxSelectedEntries,selectedEntries:t.selectedEntries,freeTextSeparators:t.freeTextSeparators,entries:t.entries,valueFunction:function(e){return e.map(function(e){return null!=e.id?e.id:e.title}).join(",")},freeTextEntryFactory:function(e){return{title:n(e)}},entryRenderingFunction:function(e){return"
"+e.title+"
"}})},e.createTrivialTreeComponent=function(e,t){return new TrivialComponents.TrivialTree(e,{searchBarMode:t.searchBarMode,selectedEntryId:t.selectedEntryId,performanceOptimizationSettings:t.performanceOptimizationSettings,entryRenderingFunction:function(e,n){return Mustache.render(t.templates[Math.min(t.templates.length-1,n)],e)},spinnerTemplate:t.spinnerTemplate,noEntriesTemplate:t.noEntriesTemplate,entries:t.entries,queryFunction:TrivialComponents.customTreeQueryFunctionFactory(t.entries,"children","expanded",function(e,t,n){var r=e.title&&TrivialComponents.trivialMatch(e.title,t,null).length>0,i=e.description&&TrivialComponents.trivialMatch(e.description,t,null).length>0;return r||i})})},e.createTrivialComboBox=function(e,t){return new TrivialComponents.TrivialComboBox(e,{allowFreeText:!1,entryToEditorTextFunction:function(e){return e[t.inputTextProperty]},entryRenderingFunction:function(e){return Mustache.render(t.template,e)},selectedEntryRenderingFunction:function(e){return!e||e._isEmptyEntry?t.emptyEntryTemplate||"":t.selectedEntryTemplate?Mustache.render(t.selectedEntryTemplate,e):Mustache.render(t.template,e)},editingMode:t.editingMode,showClearButton:t.showClearButton,selectedEntry:t.selectedEntry,spinnerTemplate:t.spinnerTemplate,noEntriesTemplate:t.noEntriesTemplate,entries:t.entries})},e.createTrivialTreeComboBox=function(e,t){return new TrivialComponents.TrivialTreeComboBox(e,{allowFreeText:!1,entryToEditorTextFunction:function(e){return e[t.inputTextProperty]},entryRenderingFunction:function(e,n){return Mustache.render(t.templates[Math.min(t.templates.length-1,n)],e)},selectedEntryRenderingFunction:function(e){return!e||e._isEmptyEntry?t.emptyEntryTemplate||"":t.selectedEntryTemplate?Mustache.render(t.selectedEntryTemplate,e):Mustache.render(t.templates[0],e)},editingMode:t.editingMode,showClearButton:t.showClearButton,selectedEntry:t.selectedEntry,spinnerTemplate:t.spinnerTemplate,noEntriesTemplate:t.noEntriesTemplate,entries:t.entries,queryFunction:TrivialComponents.customTreeQueryFunctionFactory(t.entries,"children","expanded",function(e,t,n){var r=e.title&&TrivialComponents.trivialMatch(e.title,t,null).length>0,i=e.description&&TrivialComponents.trivialMatch(e.description,t,null).length>0;return r||i})})}}(ButterFaces||(ButterFaces={})); //# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJ1dHRlcmZhY2VzLXRyaXZpYWwtY29tcG9uZW50cy13cmFwcGVyLnRzIl0sIm5hbWVzIjpbIkJ1dHRlckZhY2VzIiwiY3JlYXRlVHJpdmlhbFRhZ0NvbXBvbmVudCIsIiRpbnB1dCIsIm9wdGlvbnMiLCJlc2NhcGVIdG1sIiwic291cmNlIiwiZW50aXR5TWFwIiwiJiIsIjwiLCI+IiwiXCIiLCInIiwiLyIsInJlcGxhY2UiLCJzIiwiVHJpdmlhbENvbXBvbmVudHMiLCJUcml2aWFsVGFnQ29tYm9Cb3giLCJhdXRvQ29tcGxldGUiLCJhbGxvd0ZyZWVUZXh0Iiwic2hvd1RyaWdnZXIiLCJkaXN0aW5jdCIsImVkaXRpbmdNb2RlIiwibWF0Y2hpbmdPcHRpb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cmlnZ2VyOiBib29sZWFuLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdXRvQ29tcGxldGU6IGJvb2xlYW4sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRpc3RpbmN0OiBib29sZWFuLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlZGl0aW5nTW9kZTogVHJpdmlhbENvbXBvbmVudHMuRWRpdGluZ01vZGUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1heFNlbGVjdGVkRW50cmllczogbnVtYmVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3RlZEVudHJpZXM6IEJ1dHRlckZhY2VzVHJpdmlhbEVudHJ5W10sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZyZWVUZXh0U2VwYXJhdG9yczogc3RyaW5nW10sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVudHJpZXM6IEJ1dHRlckZhY2VzVHJpdmlhbEVudHJ5W11cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTogVHJpdmlhbENvbXBvbmVudHMuVHJpdmlhbFRhZ0NvbWJvQm94PEJ1dHRlckZhY2VzVHJpdmlhbEVudHJ5PiB7XG4gICAgICAgIHJldHVybiBuZXcgVHJpdmlhbENvbXBvbmVudHMuVHJpdmlhbFRhZ0NvbWJvQm94PEJ1dHRlckZhY2VzVHJpdmlhbEVudHJ5PigkaW5wdXQsIHtcblxuICAgICAgICAgICAgYXV0b0NvbXBsZXRlOiBvcHRpb25zLmF1dG9Db21wbGV0ZSxcbiAgICAgICAgICAgIGFsbG93RnJlZVRleHQ6IHRydWUsXG4gICAgICAgICAgICBzaG93VHJpZ2dlcjogb3B0aW9ucy5zaG93VHJpZ2dlcixcbiAgICAgICAgICAgIGRpc3RpbmN0OiBvcHRpb25zLmRpc3RpbmN0LFxuICAgICAgICAgICAgZWRpdGluZ01vZGU6IG9wdGlvbnMuZWRpdGluZ01vZGUsXG4gICAgICAgICAgICBtYXRjaGluZ09wdGlvbnM6IHtcbiAgICAgICAgICAgICAgICBtYXRjaGluZ01vZGU6IFwiY29udGFpbnNcIixcbiAgICAgICAgICAgICAgICBpZ25vcmVDYXNlOiB0cnVlLFxuICAgICAgICAgICAgICAgIG1heExldmVuc2h0ZWluRGlzdGFuY2U6IDBcbiAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgIG1heFNlbGVjdGVkRW50cmllczogb3B0aW9ucy5tYXhTZWxlY3RlZEVudHJpZXMsXG4gICAgICAgICAgICBzZWxlY3RlZEVudHJpZXM6IG9wdGlvbnMuc2VsZWN0ZWRFbnRyaWVzLFxuICAgICAgICAgICAgZnJlZVRleHRTZXBhcmF0b3JzOiBvcHRpb25zLmZyZWVUZXh0U2VwYXJhdG9ycyBhcyBhbnksIC8vIFRPRE8gcmVtb3ZlIHRoaXMgY2FzdCB3aGVuIHRyaXZpYWwgY29tcG9uZW50cyBpcyBmaXhlZFxuICAgICAgICAgICAgZW50cmllczogb3B0aW9ucy5lbnRyaWVzLFxuXG4gICAgICAgICAgICB2YWx1ZUZ1bmN0aW9uOiBlbnRyaWVzID0+IHtcbiAgICAgICAgICAgICAgICByZXR1cm4gZW50cmllc1xuICAgICAgICAgICAgICAgICAgICAubWFwKGVudHJ5ID0+IChlbnRyeSBhcyBhbnkpLmlkICE9IG51bGwgPyAoZW50cnkgYXMgYW55KS5pZCA6IChlbnRyeSBhcyBhbnkpLnRpdGxlKVxuICAgICAgICAgICAgICAgICAgICAuam9pbihcIixcIik7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgZnJlZVRleHRFbnRyeUZhY3Rvcnk6IGZyZWVUZXh0ID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pbnB1dDogc3RyaW5nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvcHRpb25zOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWFyY2hCYXJNb2RlOiBUcml2aWFsQ29tcG9uZW50cy5TZWFyY2hCYXJNb2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VsZWN0ZWRFbnRyeUlkOiBudW1iZXIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwZXJmb3JtYW5jZU9wdGltaXphdGlvblNldHRpbmdzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9NYW55VmlzaWJsZUl0ZW1zUmVuZGVyRGVsYXk6IG51bWJlcixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0b01hbnlWaXNpYmxlSXRlbXNUaHJlc2hvbGQ6IG51bWJlclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRlbXBsYXRlczogc3RyaW5nW10sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzcGlubmVyVGVtcGxhdGU6IHN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5vRW50cmllc1RlbXBsYXRlOiBzdHJpbmcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbnRyaWVzOiBCdXR0ZXJGYWNlc1RyaXZpYWxUcmVlRW50cnlbXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC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nOiBzdHJpbmcsIG5vZGVEZXB0aDogbnVtYmVyKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIC8vIFRPRE8gcmVtb3ZlIG51bGwgcGFyYW1ldGVyIGFmdGVyIHRyaXZpYWwgY29tcG9uZW50IGlzIGZpeGVkXG4gICAgICAgICAgICAgICAgICAgIGxldCB0aXRsZU1hdGNoZXMgPSBlbnRyeS50aXRsZSAmJiBUcml2aWFsQ29tcG9uZW50cy50cml2aWFsTWF0Y2goZW50cnkudGl0bGUsIHF1ZXJ5U3RyaW5nLCBudWxsKS5sZW5ndGggPiAwO1xuICAgICAgICAgICAgICAgICAgICBsZXQgZGVzY3JpcHRpb25NYXRjaGVzID0gZW50cnkuZGVzY3JpcHRpb24gJiYgVHJpdmlhbENvbXBvbmVudHMudHJpdmlhbE1hdGNoKGVudHJ5LmRlc2NyaXB0aW9uLCBxdWVyeVN0cmluZywgbnVsbCkubGVuZ3RoID4gMDtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRpdGxlTWF0Y2hlcyB8fCBkZXNjcmlwdGlvbk1hdGNoZXM7XG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgfSk7XG4gICAgfVxuXG5cbiAgICBleHBvcnQgZnVuY3Rpb24gY3JlYXRlVHJpdmlhbENvbWJvQm94KCRpbnB1dDogc3RyaW5nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb3B0aW9uczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlucHV0VGV4dFByb3BlcnR5OiBzdHJpbmcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW1wdHlFbnRyeVRlbXBsYXRlOiBzdHJpbmcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZWRpdGluZ01vZGU6IFRyaXZpYWxDb21wb25lbnRzLkVkaXRpbmdNb2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNob3dDbGVhckJ1dHRvbjogYm9vbGVhbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3RlZEVudHJ5OiBCdXR0ZXJGYWNlc1RyaXZpYWxFbnRyeSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3RlZEVudHJ5VGVtcGxhdGU6IHN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZW1wbGF0ZTogc3RyaW5nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNwaW5uZXJUZW1wbGF0ZTogc3RyaW5nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5vRW50cmllc1RlbXBsYXRlOiBzdHJpbmcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW50cmllczogQnV0dGVyRmFjZXNUcml2aWFsRW50cnlbXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk6IFRyaXZpYWxDb21wb25lbnRzLlRyaXZpYWxDb21ib0JveDxCdXR0ZXJGYWNlc1RyaXZpYWxFbnRyeT4ge1xuICAgICAgICByZXR1cm4gbmV3IFRyaXZpYWxDb21wb25lbnRzLlRyaXZpYWxDb21ib0JveDxCdXR0ZXJGYWNlc1RyaXZpYWxFbnRyeT4oJGlucHV0LCB7XG4gICAgICAgICAgICBhbGxvd0ZyZWVUZXh0OiBmYWxzZSxcbiAgICAgICAgICAgIGVudHJ5VG9FZGl0b3JUZXh0RnVuY3Rpb246IGVudHJ5ID0+IGVudHJ5W29wdGlvbnMuaW5wdXRUZXh0UHJvcGVydHldLFxuICAgICAgICAgICAgZW50cnlSZW5kZXJpbmdGdW5jdGlvbjogZW50cnkgPT4ge1xuICAgICAgICAgICAgICAgIHJldHVybiBNdXN0YWNoZS5yZW5kZXIob3B0aW9ucy50ZW1wbGF0ZSwgZW50cnkpO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHNlbGVjdGVkRW50cnlSZW5kZXJpbmdGdW5jdGlvbjogZW50cnkgPT4ge1xuICAgICAgICAgICAgICAgIGlmICghZW50cnkgfHwgKGVudHJ5IGFzIGFueSkuX2lzRW1wdHlFbnRyeSkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gb3B0aW9ucy5lbXB0eUVudHJ5VGVtcGxhdGUgfHwgXCJcIjtcbiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKG9wdGlvbnMuc2VsZWN0ZWRFbnRyeVRlbXBsYXRlKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBNdXN0YWNoZS5yZW5kZXIob3B0aW9ucy5zZWxlY3RlZEVudHJ5VGVtcGxhdGUsIGVudHJ5KTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gTXVzdGFjaGUucmVuZGVyKG9wdGlvbnMudGVtcGxhdGUsIGVudHJ5KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgZWRpdGluZ01vZGU6IG9wdGlvbnMuZWRpdGluZ01vZGUsXG4gICAgICAgICAgICBzaG93Q2xlYXJCdXR0b246IG9wdGlvbnMuc2hvd0NsZWFyQnV0dG9uLFxuICAgICAgICAgICAgc2VsZWN0ZWRFbnRyeTogb3B0aW9ucy5zZWxlY3RlZEVudHJ5LFxuICAgICAgICAgICAgc3Bpbm5lclRlbXBsYXRlOiBvcHRpb25zLnNwaW5uZXJUZW1wbGF0ZSxcbiAgICAgICAgICAgIG5vRW50cmllc1RlbXBsYXRlOiBvcHRpb25zLm5vRW50cmllc1RlbXBsYXRlLFxuICAgICAgICAgICAgZW50cmllczogb3B0aW9ucy5lbnRyaWVzXG4gICAgICAgIH0pO1xuICAgIH1cblxuXG4gICAgZXhwb3J0IGZ1bmN0aW9uIGNyZWF0ZVRyaXZpYWxUcmVlQ29tYm9Cb3goJGlucHV0OiBzdHJpbmcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb3B0aW9uczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbnB1dFRleHRQcm9wZXJ0eTogc3RyaW5nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbXB0eUVudHJ5VGVtcGxhdGU6IHN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZWRpdGluZ01vZGU6IFRyaXZpYWxDb21wb25lbnRzLkVkaXRpbmdNb2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzaG93Q2xlYXJCdXR0b246IGJvb2xlYW4sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGVjdGVkRW50cnk6IEJ1dHRlckZhY2VzVHJpdmlhbEVudHJ5LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3RlZEVudHJ5VGVtcGxhdGU6IHN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGVtcGxhdGVzOiBzdHJpbmdbXSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Bpbm5lclRlbXBsYXRlOiBzdHJpbmcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5vRW50cmllc1RlbXBsYXRlOiBzdHJpbmcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC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pbmcsIG51bGwpLmxlbmd0aCA+IDA7XG4gICAgICAgICAgICAgICAgICAgIGxldCBkZXNjcmlwdGlvbk1hdGNoZXMgPSBlbnRyeS5kZXNjcmlwdGlvbiAmJiBUcml2aWFsQ29tcG9uZW50cy50cml2aWFsTWF0Y2goZW50cnkuZGVzY3JpcHRpb24sIHF1ZXJ5U3RyaW5nLCBudWxsKS5sZW5ndGggPiAwO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGl0bGVNYXRjaGVzIHx8IGRlc2NyaXB0aW9uTWF0Y2hlcztcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICB9KTtcbiAgICB9XG5cblxufSJdfQ==




© 2015 - 2024 Weber Informatics LLC | Privacy Policy