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

views.static.entity.js.entity-query.js Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=17)}([function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function i(t){var e="function"==typeof Map?new Map:void 0;return(i=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return a(t,arguments,c(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,t)})(t)}function a(t,e,n){return(a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&u(o,n.prototype),o}).apply(null,arguments)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){function e(t,n,r){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(i=o(this,c(e).call(this,"[".concat(t,'] field "').concat(n,'" may not be null or undefined: ').concat(r)))).name="NullOrUndefinedException",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,i(Error)),e}(),f=n(10),s=n(11);function p(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1)return p(t);if(t[0]instanceof Array)return p(t[0]);if(!y(t[0]))return[t[0]];throw new l(null,null,t)}function v(t,e,n){if(y(n))throw new l(t,e,n)}function b(t){var e=t.toString();return e.startsWith("'")&&e.endsWith("'")?new s.a(e.substring(1,e.length-1)):new f.a(t)}function g(t){return y(t)||y(t.length)||0===t.length}n.d(e,"f",function(){return y}),n.d(e,"a",function(){return d}),n.d(e,"c",function(){return h}),n.d(e,"b",function(){return v}),n.d(e,"d",function(){return b}),n.d(e,"e",function(){return g})},function(t,e){t.exports=jQuery},function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n(13),o=n.n(r),i=n(0);function a(t,e){for(var n=0;n1?n-1:0),o=1;o1?e-1:0),r=1;r1?e-1:0),r=1;r1?e-1:0),r=1;r"),CONTAINS:new u(function(t){return"".concat(t," contains ").concat(c(arguments.length<=1?void 0:arguments[1]))},"contains"),NOT_CONTAINS:new u(function(t){return"".concat(t," not contains ").concat(c(arguments.length<=1?void 0:arguments[1]))},"not contains"),IN:new u(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r1?e-1:0),r=1;r ").concat(c(arguments.length<=1?void 0:arguments[1]))},">"),GE:new u(function(t){return"".concat(t," >= ").concat(c(arguments.length<=1?void 0:arguments[1]))},">="),LT:new u(function(t){return"".concat(t," < ").concat(c(arguments.length<=1?void 0:arguments[1]))},"<"),LE:new u(function(t){return"".concat(t," <= ").concat(c(arguments.length<=1?void 0:arguments[1]))},"<="),IS_NULL:new u(function(t){return"".concat(t," is NULL")},"is"),IS_NOT_NULL:new u(function(t){return"".concat(t," is not NULL")},"is not"),IS_EMPTY:new u(function(t){return"".concat(t," is EMPTY")},"is"),IS_NOT_EMPTY:new u(function(t){return"".concat(t," is not EMPTY")},"is not"),forToken:function(t){for(var e=t.toLowerCase().trim(),n=Object.values(p),r=0;r1&&o.removeClass("hidden");var a=function(){var t=e.data("bootstrapui-adapter");t&&t.triggerChange()},u=function(t){t.preventDefault(),r(t.currentTarget).closest("[data-role=item]").remove(),1===o.find("tr").length&&o.addClass("hidden"),a()};o.find("[data-action=remove-item]").click(u);var c=e.find("[data-role=control]").first().data("bootstrapui-adapter");r(c.getTarget()).on("bootstrapui.change",function(e,c){e.stopPropagation();var l=c.getValue()[0];if(""!==l.value){var f=t.escapeHtml(""+l.value);if(0===o.find('[value="'+f+'"]').length){var s=r(r(n.bootstrapUiModule.refTarget(i)).html().replace("{{id}}",f).replace("{{label}}",t.escapeHtml(""+l.label)));s.find("[data-action=remove-item]").click(u),o.append(s),o.removeClass("hidden")}c.reset(),a()}})}return t.escapeHtml=function(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")},t}(),i=function(){function t(t){this.target=t,this.items=r(t).find("[data-role=items]").first()}return t.prototype.getTarget=function(){return this.target},t.prototype.getValue=function(){return this.items.find("input[type=hidden]").map(function(t,e){var n=r(e).val();return{label:n,value:n,context:e}}).toArray()},t.prototype.reset=function(){},t.prototype.selectValue=function(t){},t.prototype.triggerChange=function(){r(this.getTarget()).trigger("bootstrapui.change",[this])},t.prototype.triggerSubmit=function(){r(this.getTarget()).trigger("bootstrapui.submit",[this])},t}()},function(t,e,n){"use strict";e.a=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return r});var r=function(){return function(e){var n=this;this.bootstrapUiModule=window.BootstrapUiModule,this.entityModule=window.EntityModule;var r=e,o=function(e){return e.filter(function(e,n){return t(n).closest("[data-item-format]").is(r)})},i=o(r.find("[data-role=items]")).first(),a=o(r.find("[data-role=edit-item-template]")).first(),u=a.attr("data-template-prefix"),c=a.data("next-item-index"),l=r.attr("data-item-format"),f=r.closest("[data-item-prefix]");if(f.length){var s=f.attr("data-item-prefix"),p=f.closest("[data-item-format]").attr("data-item-format");l=l.replace(p,s)}o(i.find("[data-action=remove-item]")).click(function(e){e.preventDefault(),t(e.currentTarget).closest("[data-role=item]").remove()}),o(r.find("[data-action=add-item]")).click(function(){var e=c++,r="item-"+e,o=l.replace("{{key}}",r),f=t(n.bootstrapUiModule.refTarget(a).html());f.attr("data-item-key",r),f.attr("data-item-prefix",o),f.find('[name^="'+u+'"]').each(function(e,n){t(n).attr("name",t(n).attr("name").replace(u,o))}),f.find('[name^="_'+u+'"]').each(function(e,n){t(n).attr("name",t(n).attr("name").replace("_"+u,"_"+o))}),f.find('[for^="'+u+'"]').each(function(e,n){t(n).attr("for",t(n).attr("for").replace(u,o))}),f.find('[id^="'+u+'"]').each(function(e,n){t(n).attr("id",t(n).attr("id").replace(u,o))}),f.find("[data-action=remove-item]").click(function(e){e.preventDefault(),t(e.currentTarget).closest("[data-role=item]").remove()}),f.find('[name="'+o+'.sortIndex"]').attr("value",e),i.append(f),n.entityModule.initializeFormElements(f)})}}()}).call(this,n(1))},function(t,e,n){"use strict";var r=n(0),o=n(2);function i(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e2?i-2:0),u=2;u0}},{key:"getFirstArgument",value:function(){return this.args.length>0?this.args[0]:null}},{key:"equals",value:function(e){return this.valueOf()===e.valueOf()||!Object(r.f)(e)&&e instanceof t&&(!!Object(r.a)(this.args,e.expressions)&&(this.operand===e.operand&&!(Object(r.f)(this.prop)?!Object(r.f)(e.prop):!this.prop.equals(e.prop))))}},{key:"toString",value:function(){var t;return(t=this.operand).toString.apply(t,[this.prop].concat(i(this.args)))}}])&&a(e.prototype,n),u&&a(e,u),t}();e.a=u},function(t,e,n){"use strict";var r=n(1),o=n.n(r),i=n(0);function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n2&&void 0!==arguments[2])||arguments[2],r=o()(t).data("entity-query-property"),f=o()(t).data("bootstrapui-adapter").getValue().map(function(t){var e=o()(t.context);return e.is("[data-entity-query-pretty-value]")?e.data("entity-query-pretty-value"):t.value}),s=null;if(!Object(l.e)(f)){var p=function(t,e){var n=e.filter(function(t){return""!==t});if("EQGroup"===t)return new b(n.map(l.d));if(0!==n.length){var r=Object(l.d)(n.toString());return"EQString"===t&&r instanceof u.a?new c.a(r.getValue()):r}return null}(o()(t).data("entity-query-type"),f);if(!Object(l.f)(p)){var y=i.a[o()(t).data("entity-query-operand")];s=new a.a(r,y,p)}}e.setPropertyCondition(r,s,n)}function m(t,e){if(!Object(l.e)(t)){g(t,e,!1);var n=o()(t).data("bootstrapui-adapter");if(n)return o()(n.getTarget()).on("bootstrapui.change",{item:o()(t),filter:e},function(t){return g(t.data.item,t.data.filter)}),!0}return!1}n.d(e,"a",function(){return m})},function(t,e,n){"use strict";var r=n(1),o=n.n(r),i=n(8),a=n(0),u=n(2);function c(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1?r-1:0),i=1;i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy