{"version":3,"sources":["jquery.ewjtable.js"],"names":["$","unloadingPage","window","on","widget","options","actions","fields","animationsEnabled","defaultDateFormat","dialogShowEffect","dialogHideEffect","showCloseButton","loadingAnimationDelay","saveUserPreferences","jqueryuiTheme","unAuthorizedRequestRedirectUrl","ajaxSettings","type","dataType","toolbar","hoverAnimation","hoverAnimationDuration","hoverAnimationEasing","undefined","items","closeRequested","event","data","formCreated","formSubmitting","formClosed","loadingRecords","recordsLoaded","rowInserted","rowsRemoved","messages","serverCommunicationError","loadingMessage","noDataAvailable","close","_$mainContainer","_$titleDiv","_$toolbarDiv","_$table","_$tableBody","_$tableRows","_$busyDiv","_$busyMessageDiv","_columnList","_fieldList","_keyField","_firstDataColumnOffset","_lastPostData","_cache","_create","this","_normalizeFieldsOptions","_initializeFields","_createFieldAndColumnList","_createMainContainer","_createTableTitle","_createToolBar","_createTable","_createBusyPanel","_addNoDataRow","_cookieKeyPrefix","_generateCookieKeyPrefix","self","each","fieldName","props","_normalizeFieldOptions","listClass","inputClass","dependsOn","dependsOnArray","split","i","length","push","trim","name","key","list","addClass","appendTo","element","_jqueryuiThemeAddClass","title","$titleDiv","append","$textSpan","html","attr","click","e","preventDefault","stopPropagation","_onCloseRequested","tableId","_createTableHead","_createTableBody","$thead","_addRowToTableHead","$tr","_addColumnsToHeaderRow","_createHeaderCellForField","field","$headerTextSpan","$headerContainerDiv","$th","css","width","_createEmptyCommandHeader","prependTo","_hideBusy","load","postData","completeCallback","_reloadTable","reload","getRowByKey","_getKeyValueOfRecord","destroy","empty","Widget","prototype","call","_setOption","value","completeReload","result","_removeAllRows","_addRecordsToTable","records","_onRecordsLoaded","_showError","message","_showBusy","_onLoadingRecords","isFunction","listAction","funcResult","_createJtParamsForLoading","_isDeferredObject","done","fail","always","loadUrl","_createRecordLoadUrl","_ajax","url","success","error","_createRowFromRecord","record","_addCellsToRowUsingRecord","$row","_createCellForRecordField","_getDisplayTextForRecordField","index","_addRow","_refreshRowStyles","_addRowToTable","$tableRow","isNewRow","_normalizeNumber","extend","_removeNoDataRow","prepend","unshift","after","splice","_onRowInserted","_showNewRowAnimation","className","removeClass","_removeRowsFromTable","$rows","reason","remove","_findRowIndex","_onRowsRemoved","_findIndexInArray","$row1","$row2","find","totalColumnCount","fieldValue","display","_getDisplayTextForDateRecordField","displayFormat","ew","formatDate","_addToolBarItem","item","text","icon","_logWarn","$toolBarItem","cssClass","tooltip","$icon","hover","alert","_setBusyTimer","delay","height","show","makeVisible","setTimeout","clearTimeout","hide","_isBusy","is","$elm","hoverClassName","_performAjaxCall","async","_unAuthorizedRequestHandler","location","href","opts","statusCode","401","unAuthorizedRequest","jqXHR","textStatus","errorThrown","abort","arguments","complete","ajax","_setCookie","expireDate","Date","setDate","getDate","document","cookie","encodeURIComponent","toUTCString","_getCookie","equalities","splitted","decodeURIComponent","strToHash","hash","charCodeAt","simpleHash","join","_trigger","serverResponse","row","rows","jQuery","ewjtable","_getPropertyOfObject","obj","propName","indexOf","preDot","substring","postDot","_setPropertyOfObject","_insertToArrayIfDoesNotExists","array","inArray","compareFunc","a","b","number","min","max","defaultValue","isNaN","_formatString","str","placeHolder","replace","then","_logDebug","console","log","_logInfo","_logError","Array","elt","len","from","Number","Math","ceil","floor","base","selecting","multiselect","selectingCheckboxes","selectOnRowClick","selectionChanged","_selectedRecordIdsBeforeLoad","_$selectAllCheckbox","_shiftKeyDown","_bindKeyboardEvents","apply","keydown","which","keyup","selectedRows","_getSelectedRows","selectRows","_selectRows","_onSelectionChanged","Event","_createSelectAllHeader","_makeRowSelectable","_storeSelectionList","_restoreSelectionList","filter","$columnHeader","$headerContainer","prop","allRows","_deselectRows","selectedRowCount","recordId","_refreshSelectAllCheckboxState","target","_invertRowSelection","$cell","id","random","$selectCheckbox","hasClass","rowIndex","beforeIndex","_findFirstSelectedRowIndexBeforeIndex","slice","afterIndex","_findFirstSelectedRowIndexAfterIndex","totalRowCount","paging","pageList","pageSize","pageSizes","pageSizeChangeArea","gotoPageArea","pagingInfo","pageSizeChangeLabel","gotoPageLabel","_$bottomPanel","_$pagingListArea","_$pageSizeChangeArea","_$pageInfoSpan","_$gotoPageArea","_$gotoPageInput","_totalRecordCount","_currentPageNo","_loadPagingSettings","_createBottomPanel","_createPageListArea","_createGotoPageInput","_createPageSizeSelection","insertAfter","parseInt","sort","$pageSizeChangeCombobox","val","change","_changePageSize","_changePage","keypress","keyCode","shiftKey","altKey","_refreshGotoPageInput","oldPageCount","currentPageCount","_calculatePageCount","pageStep","pageCount","_savePagingSettings","_addPagingInfoToUrl","jtParams","start","recperpage","totalRecordCount","_createPagingList","_createPagingInfo","pageNumber","startIndex","_createFirstAndPreviousPageButtons","_createPageNumberButtons","_calculatePageNumbers","_createLastAndNextPageButtons","_bindClickEventsToPageNumberButtons","wrapInner","$first","$previous","$next","$last","pageNumbers","previousNumber","_createPageNumberButton","$pageNumber","shownPageNumbers","previousPageNo","nextPageNo","startNo","endNo","pagingInfoMessage","not","pageNo","sorting","multiSorting","defaultSorting","_lastSorting","_buildDefaultSortingArray","$headerCell","_makeColumnSortable","_addSortingInfoToUrl","orderIndex","orderValue","fieldProps","colOffset","toUpperCase","sortOrder","ctrlKey","_sortTableByColumn","sortIndex","sortField","siblings","idx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCC,SAAUA,GAEV,IAAIC,EAEJD,EAAEE,QAAQC,GAAG,gBAAgB,WAC5BF,GAAgB,KAEjBD,EAAEE,QAAQC,GAAG,UAAU,WACtBF,GAAgB,KAGjBD,EAAEI,OAAO,cAAe,CAKvBC,QAAS,CAGRC,QAAS,GACTC,OAAQ,GACRC,mBAAmB,EACnBC,kBAAmB,KACnBC,iBAAkB,OAClBC,iBAAkB,OAClBC,iBAAiB,EACjBC,sBAAuB,IACvBC,qBAAqB,EACrBC,eAAe,EACfC,+BAAgC,KAEhCC,aAAc,CACbC,KAAM,OACNC,SAAU,QAGXC,QAAS,CACRC,gBAAgB,EAChBC,uBAAwB,GACxBC,0BAAsBC,E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AcpS,KAAK,aAChC+Y,UAAW,WAGZ3G,EAAc/I,YAAY,sCAAsC5F,SAAS,qCACzE7B,KAAKyW,aAAajV,KAAK,CACtBV,UAAa0P,EAAcpS,KAAK,aAChC+Y,UAAW,SAKbnX,KAAKgE,gBAKN6S,qBAAsB,SAAU7Q,GAC/B,IAAKhG,KAAKnD,QAAQyZ,SAAuC,GAA5BtW,KAAKyW,aAAalV,OAC9C,OAAOyE,EAGR,IAAIsQ,EAAU,GAKd,OAJA9Z,EAAEqE,KAAKb,KAAKyW,cAAc,SAAUgB,EAAK/S,GACxC4R,EAAQ9U,KAAKkD,EAAM5D,UAAY,IAAM4D,EAAMyS,cAGpCnR,GAAOA,EAAI6G,QAAQ,KAAO,EAAI,IAAM,KAAO,WAAayJ,EAAQnK,KAAK,MAK9E3G,0BAA2B,WAC1B,IAAIgP,EAAWzF,EAAKvJ,0BAA0BiK,MAAMzP,KAAM+K,WAE1D,GAAI/K,KAAKnD,QAAQyZ,SAAWtW,KAAKyW,aAAalV,OAAQ,CACrD,IAAI+U,EAAU,GACd9Z,EAAEqE,KAAKb,KAAKyW,cAAc,SAAUgB,EAAK/S,GACxC4R,EAAQ9U,KAAKkD,EAAM5D,UAAY,IAAM4D,EAAMyS,cAG5C3C,EAAS8B,QAAUA,EAAQnK,KAAK,KAGjC,OAAOqI,KAjMV,CAsMGhI","sourcesContent":["/*\r\n\r\newjTable (requires ew*.js)\r\n@license Copyright (C) 2017 by e.World Technology Limited (http://www.hkvstore.com)\r\n\r\nBased on:\r\n\r\njTable 2.4.0\r\nhttp://www.jtable.org\r\n\r\n---------------------------------------------------------------------------\r\n\r\nCopyright (C) 2011-2014 by Halil İbrahim Kalkan (http://www.halilibrahimkalkan.com)\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in\r\nall copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\nTHE SOFTWARE.\r\n\r\n*/\r\n\r\n/************************************************************************\r\n* CORE ewjTable module *\r\n*************************************************************************/\r\n(function ($) {\r\n\r\n\tvar unloadingPage;\r\n\r\n\t$(window).on('beforeunload', function () {\r\n\t\tunloadingPage = true;\r\n\t});\r\n\t$(window).on('unload', function () {\r\n\t\tunloadingPage = false;\r\n\t});\r\n\r\n\t$.widget(\"ew.ewjtable\", {\r\n\r\n\t\t/************************************************************************\r\n\t\t* DEFAULT OPTIONS / EVENTS *\r\n\t\t*************************************************************************/\r\n\t\toptions: {\r\n\r\n\t\t\t//Options\r\n\t\t\tactions: {},\r\n\t\t\tfields: {},\r\n\t\t\tanimationsEnabled: true,\r\n\t\t\tdefaultDateFormat: null,\r\n\t\t\tdialogShowEffect: 'fade',\r\n\t\t\tdialogHideEffect: 'fade',\r\n\t\t\tshowCloseButton: false,\r\n\t\t\tloadingAnimationDelay: 500,\r\n\t\t\tsaveUserPreferences: true,\r\n\t\t\tjqueryuiTheme: false,\r\n\t\t\tunAuthorizedRequestRedirectUrl: null,\r\n\r\n\t\t\tajaxSettings: {\r\n\t\t\t\ttype: 'POST',\r\n\t\t\t\tdataType: 'json'\r\n\t\t\t},\r\n\r\n\t\t\ttoolbar: {\r\n\t\t\t\thoverAnimation: true,\r\n\t\t\t\thoverAnimationDuration: 60,\r\n\t\t\t\thoverAnimationEasing: undefined,\r\n\t\t\t\titems: []\r\n\t\t\t},\r\n\r\n\t\t\t//Events\r\n\t\t\tcloseRequested: function (event, data) { },\r\n\t\t\tformCreated: function (event, data) { },\r\n\t\t\tformSubmitting: function (event, data) { },\r\n\t\t\tformClosed: function (event, data) { },\r\n\t\t\tloadingRecords: function (event, data) { },\r\n\t\t\trecordsLoaded: function (event, data) { },\r\n\t\t\trowInserted: function (event, data) { },\r\n\t\t\trowsRemoved: function (event, data) { },\r\n\r\n\t\t\t//Localization\r\n\t\t\tmessages: {\r\n\t\t\t\tserverCommunicationError: 'An error occured while communicating to the server.',\r\n\t\t\t\tloadingMessage: 'Loading records...',\r\n\t\t\t\tnoDataAvailable: 'No data available!',\r\n\t\t\t\tclose: 'Close'\r\n\t\t\t}\r\n\r\n\t\t},\r\n\r\n\t\t/************************************************************************\r\n\t\t* PRIVATE FIELDS *\r\n\t\t*************************************************************************/\r\n\r\n\t\t_$mainContainer: null, //Reference to the main container of all elements that are created by this plug-in (jQuery object)\r\n\r\n\t\t_$titleDiv: null, //Reference to the title div (jQuery object)\r\n\t\t_$toolbarDiv: null, //Reference to the toolbar div (jQuery object)\r\n\r\n\t\t_$table: null, //Reference to the main