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

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+IiwiXCIiLCInIiwiLyIsInJlcGxhY2UiLCJzIiwiVHJpdmlhbENvbXBvbmVudHMiLCJUcml2aWFsVGFnQ29tYm9Cb3giLCJhdXRvQ29tcGxldGUiLCJhbGxvd0ZyZWVUZXh0Iiwic2hvd1RyaWdnZXIiLCJkaXN0aW5jdCIsImVkaXRpbmdNb2RlIiwibWF0Y2hpbmdPcHRpb25zIiwibWF0Y2hpbmdNb2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AgICAgICAgICAgICAgICAgICAgIGF1dG9Db21wbGV0ZTogYm9vbGVhbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGlzdGluY3Q6IGJvb2xlYW4sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVkaXRpbmdNb2RlOiBUcml2aWFsQ29tcG9uZW50cy5FZGl0aW5nTW9kZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWF4U2VsZWN0ZWRFbnRyaWVzOiBudW1iZXIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGVjdGVkRW50cmllczogQnV0dGVyRmFjZXNUcml2aWFsRW50cnlbXSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZnJlZVRleHRTZXBhcmF0b3JzOiBzdHJpbmdbXSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW50cmllczogQnV0dGVyRmFjZXNUcml2aWFsRW50cnlbXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pOiBUcml2aWFsQ29tcG9uZW50cy5Ucml2aWFsVGFnQ29tYm9Cb3g8QnV0dGVyRmFjZXNUcml2aWFsRW50cnk+IHtcbiAgICAgICAgcmV0dXJuIG5ldyBUcml2aWFsQ29tcG9uZW50cy5Ucml2aWFsVGFnQ29tYm9Cb3g8QnV0dGVyRmFjZXNUcml2aWFsRW50cnk+KCRpbnB1dCwge1xuXG4gICAgICAgICAgICBhdXRvQ29tcGxldGU6IG9wdGlvbnMuYXV0b0NvbXBsZXRlLFxuICAgICAgICAgICAgYWxsb3dGcmVlVGV4dDogdHJ1ZSxcbiAgICAgICAgICAgIHNob3dUcmlnZ2VyOiBvcHRpb25zLnNob3dUcmlnZ2VyLFxuICAgICAgICAgICAgZGlzdGluY3Q6IG9wdGlvbnMuZGlzdGluY3QsXG4gICAgICAgICAgICBlZGl0aW5nTW9kZTogb3B0aW9ucy5lZGl0aW5nTW9kZSxcbiAgICAgICAgICAgIG1hdGNoaW5nT3B0aW9uczoge1xuICAgICAgICAgICAgICAgIG1hdGNoaW5nTW9kZTogXCJjb250YWluc1wiLFxuICAgICAgICAgICAgICAgIGlnbm9yZUNhc2U6IHRydWUsXG4gICAgICAgICAgICAgICAgbWF4TGV2ZW5zaHRlaW5EaXN0YW5jZTogMFxuICAgICAgICAgICAgfSxcblxuICAgICAgICAgICAgbWF4U2VsZWN0ZWRFbnRyaWVzOiBvcHRpb25zLm1heFNlbGVjdGVkRW50cmllcyxcbiAgICAgICAgICAgIHNlbGVjdGVkRW50cmllczogb3B0aW9ucy5zZWxlY3RlZEVudHJpZXMsXG4gICAgICAgICAgICBmcmVlVGV4dFNlcGFyYXRvcnM6IG9wdGlvbnMuZnJlZVRleHRTZXBhcmF0b3JzIGFzIGFueSwgLy8gVE9ETyByZW1vdmUgdGhpcyBjYXN0IHdoZW4gdHJpdmlhbCBjb21wb25lbnRzIGlzIGZpeGVkXG4gICAgICAgICAgICBlbnRyaWVzOiBvcHRpb25zLmVudHJpZXMsXG5cbiAgICAgICAgICAgIHZhbHVlRnVuY3Rpb246IGVudHJpZXMgPT4ge1xuICAgICAgICAgICAgICAgIHJldHVybiBlbnRyaWVzXG4gICAgICAgICAgICAgICAgICAgIC5tYXAoZW50cnkgPT4gKGVudHJ5IGFzIGFueSkuaWQgIT0gbnVsbCA/IChlbnRyeSBhcyBhbnkpLmlkIDogKGVudHJ5IGFzIGFueSkudGl0bGUpXG4gICAgICAgICAgICAgICAgICAgIC5qb2luKFwiLFwiKTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBmcmVlVGV4dEVudHJ5RmFjdG9yeTogZnJlZVRleHQgPT4ge1xuICAgICAgICAgICAgICAgIHJldHVybiB7dGl0bGU6IGVzY2FwZUh0bWwoZnJlZVRleHQpfTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBlbnRyeVJlbmRlcmluZ0Z1bmN0aW9uOiBlbnRyeSA9PiBgPGRpdj4keyhlbnRyeSBhcyBhbnkpLnRpdGxlfTwvZGl2PmAsIC8vIFRPRE8gdGVtcGxhdGUgcGFyYW1ldGVyXG4gICAgICAgIH0pO1xuXG4gICAgICAgIGZ1bmN0aW9uIGVzY2FwZUh0bWwoc291cmNlOiBzdHJpbmcpIHtcbiAgICAgICAgICAgIC8qIHRzbGludDpkaXNhYmxlICovXG4gICAgICAgICAgICBjb25zdCBlbnRpdHlNYXAgPSB7XG4gICAgICAgICAgICAgICAgXCImXCI6IFwiJmFtcDtcIixcbiAgICAgICAgICAgICAgICBcIjxcIjogXCImbHQ7XCIsXG4gICAgICAgICAgICAgICAgXCI+XCI6IFwiJmd0O1wiLFxuICAgICAgICAgICAgICAgICdcIic6IFwiJnF1b3Q7XCIsXG4gICAgICAgICAgICAgICAgXCInXCI6IFwiJiMzOTtcIixcbiAgICAgICAgICAgICAgICBcIi9cIjogXCImI3gyRjtcIlxuICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIC8qIHRzbGludDplbmFibGUgKi9cblxuICAgICAgICAgICAgcmV0dXJuIHNvdXJjZS5yZXBsYWNlKC9bJjw+XCInXFwvXS9nLCBzID0+IGVudGl0eU1hcFtzXSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBpbnRlcmZhY2UgQnV0dGVyRmFjZXNUcml2aWFsVHJlZUVudHJ5IHtcbiAgICAgICAgdGl0bGU6IHN0cmluZztcbiAgICAgICAgZGVzY3JpcHRpb246IHN0cmluZztcbiAgICAgICAgaWQ6IG51bWJlcjtcbiAgICB9XG5cbiAgICBleHBvcnQgZnVuY3Rpb24gY3JlYXRlVHJpdmlhbFRyZWVDb21wb25lbnQoJGlucHV0OiBzdHJpbmcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9wdGlvbnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlYXJjaEJhck1vZGU6IFRyaXZpYWxDb21wb25lbnRzLlNlYXJjaEJhck1vZGUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3RlZEVudHJ5SWQ6IG51bWJlcixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBlcmZvcm1hbmNlT3B0aW1pemF0aW9uU2V0dGluZ3M6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0b01hbnlWaXNpYmxlSXRlbXNSZW5kZXJEZWxheTogbnVtYmVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRvTWFueVZpc2libGVJdGVtc1RocmVzaG9sZDogbnVtYmVyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGVtcGxhdGVzOiBzdHJpbmdbXSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNwaW5uZXJUZW1wbGF0ZTogc3RyaW5nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbm9FbnRyaWVzVGVtcGxhdGU6IHN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVudHJpZXM6IEJ1dHRlckZhY2VzVHJpdmlhbFRyZWVFbnRyeVtdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pOiBUcml2aWFsQ29tcG9uZW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tcbiAgICAgICAgICAgICAgICAgICAgLy8gVE9ETyByZW1vdmUgbnVsbCBwYXJhbWV0ZXIgYWZ0ZXIgdHJpdmlhbCBjb21wb25lbnQgaXMgZml4ZWRcbiAgICAgICAgICAgICAgICAgICAgbGV0IHRpdGxlTWF0Y2hlcyA9IGVudHJ5LnRpdGxlICYmIFRyaXZpYWxDb21wb25lbnRzLnRyaXZpYWxNYXRjaChlbnRyeS50aXRsZSwgcXVlcnlTdHJpbmcsIG51bGwpLmxlbmd0aCA+IDA7XG4gICAgICAgICAgICAgICAgICAgIGxldCBkZXNjcmlwdGlvbk1hdGNoZXMgPSBlbnRyeS5kZXNjcmlwdGlvbiAmJiBUcml2aWFsQ29tcG9uZW50cy50cml2aWFsTWF0Y2goZW50cnkuZGVzY3JpcHRpb24sIHF1ZXJ5U3RyaW5nLCBudWxsKS5sZW5ndGggPiAwO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGl0bGVNYXRjaGVzIHx8IGRlc2NyaXB0aW9uTWF0Y2hlcztcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICB9KTtcbiAgICB9XG5cblxuICAgIGV4cG9ydCBmdW5jdGlvbiBjcmVhdGVUcml2aWFsQ29tYm9Cb3goJGlucHV0OiBzdHJpbmcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvcHRpb25zOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW5wdXRUZXh0UHJvcGVydHk6IHN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbXB0eUVudHJ5VGVtcGxhdGU6IHN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlZGl0aW5nTW9kZTogVHJpdmlhbENvbXBvbmVudHMuRWRpdGluZ01vZGUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2hvd0NsZWFyQnV0dG9uOiBib29sZWFuLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGVjdGVkRW50cnk6IEJ1dHRlckZhY2VzVHJpdmlhbEVudHJ5LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGVjdGVkRW50cnlUZW1wbGF0ZTogc3RyaW5nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRlbXBsYXRlOiBzdHJpbmcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Bpbm5lclRlbXBsYXRlOiBzdHJpbmcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbm9FbnRyaWVzVGVtcGxhdGU6IHN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbnRyaWVzOiBCdXR0ZXJGYWNlc1RyaXZpYWxFbnRyeVtdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTogVHJpdmlhbENvbXBvbmVudHMuVHJpdmlhbENvbWJvQm94PEJ1dHRlckZhY2VzVHJpdmlhbEVudHJ5PiB7XG4gICAgICAgIHJldHVybiBuZXcgVHJpdmlhbENvbXBvbmVudHMuVHJpdmlhbENvbWJvQm94PEJ1dHRlckZhY2VzVHJpdmlhbEVudHJ5PigkaW5wdXQsIHtcbiAgICAgICAgICAgIGFsbG93RnJlZVRleHQ6IGZhbHNlLFxuICAgICAgICAgICAgZW50cnlUb0VkaXRvclRleHRGdW5jdGlvbjogZW50cnkgPT4gZW50cnlbb3B0aW9ucy5pbnB1dFRleHRQcm9wZXJ0eV0sXG4gICAgICAgICAgICBlbnRyeVJlbmRlcmluZ0Z1bmN0aW9uOiBlbnRyeSA9PiB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIE11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biAgICBleHBvcnQgZnVuY3Rpb24gY3JlYXRlVHJpdmlhbFRyZWVDb21ib0JveCgkaW5wdXQ6IHN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvcHRpb25zOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlucHV0VGV4dFByb3BlcnR5OiBzdHJpbmcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVtcHR5RW50cnlUZW1wbGF0ZTogc3RyaW5nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlZGl0aW5nTW9kZTogVHJpdmlhbENvbXBvbmVudHMuRWRpdGluZ01vZGUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNob3dDbGVhckJ1dHRvbjogYm9vbGVhbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VsZWN0ZWRFbnRyeTogQnV0dGVyRmFjZXNUcml2aWFsRW50cnksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGVjdGVkRW50cnlUZW1wbGF0ZTogc3RyaW5nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZW1wbGF0ZXM6IHN0cmluZ1tdLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzcGlubmVyVGVtcGxhdGU6IHN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbm9FbnRyaWVzVGVtcGxhdGU6IHN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW50cmllczogQnV0dGVyRmFjZX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gICAgICAgbGV0IGRlc2NyaXB0aW9uTWF0Y2hlcyA9IGVudHJ5LmRlc2NyaXB0aW9uICYmIFRyaXZpYWxDb21wb25lbnRzLnRyaXZpYWxNYXRjaChlbnRyeS5kZXNjcmlwdGlvbiwgcXVlcnlTdHJpbmcsIG51bGwpLmxlbmd0aCA+IDA7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB0aXRsZU1hdGNoZXMgfHwgZGVzY3JpcHRpb25NYXRjaGVzO1xuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgIH0pO1xuICAgIH1cblxuXG59Il19




© 2015 - 2025 Weber Informatics LLC | Privacy Policy