TimeTrex/interface/html5/dist/awesomebox-AComboBox.bundle.js

1 line
241 KiB
JavaScript
Raw Permalink Normal View History

2022-12-13 07:10:06 +01:00
(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["awesomebox-AComboBox"],{2897:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{eval("/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var jQuery = __webpack_require__(9755);\n( function( $ ) {\n\n\t$.fn.AComboBox = function( options ) {\n\t\tvar opts = $.extend( {}, $.fn.AComboBox.defaults, options );\n\n\t\tvar label_span = null;\n\n\t\tvar a_dropdown = null;\n\n\t\tvar layout_name = '';\n\n\t\tvar pager_data = null; //use to reset pager data when open dropdown\n\n\t\tvar api_class = null;\n\n\t\tvar api = null; //Related TTAPI.API instance, use to get data\n\n\t\tvar default_columns = null;\t //Default coluns when no layout saved\n\n\t\tvar allow_multiple_selection = false;\n\n\t\tvar do_not_get_real_data = false; //Get full data when only pass id to select Value.\n\n\t\tvar get_real_data_on_multi = false; //Usually only get real data when select has a single value. But punch tags require manual_id of all records.\n\n\t\tvar set_any = false;\n\n\t\tvar set_empty = false;\n\n\t\tvar set_special_empty = false;\n\n\t\tvar set_open = false;\n\n\t\tvar set_default = false;\n\n\t\tvar set_all = false;\n\n\t\tvar select_item = null;\n\n\t\tvar select_items = null;\n\n\t\tvar field = '';\n\n\t\tvar validation_field;\n\n\t\tvar user_generic_api = null;\n\n\t\tvar display_columns = null; //Display columns in ADropDown in jGrid model format\n\n\t\tvar possible_display_columns = null; //Only these columns can be shown when init dispaly columns.\n\n\t\tvar list_view_default_columns = null; //Only these columns can be shown when init dispaly columns.\n\n\t\tvar display_columns_in_columnEditor = null; //Display columns in edit columns\n\n\t\tvar all_columns = null; // All columns when edit columns\n\n\t\tvar column_editor = null;\n\n\t\tvar source_data = null; // This will never change when search in search input. Set it back to dropdown every time when open\n\n\t\tvar id = '';\n\n\t\tvar get_real_data_when_open = false;\n\n\t\tvar set_select_items_when_set_data_provider = false;\n\n\t\tvar $this = null;\n\n\t\tvar a_dropdown_div = null;\n\n\t\tvar is_mouse_over = false;\n\n\t\tvar row_per_page = 0;\n\n\t\tvar show_all = false;\n\n\t\tvar args = null;\n\n\t\tGlobal.addCss( 'global/widgets/awesomebox/AComboBox.css' );\n\n\t\tvar show_search_inputs = true;\n\n\t\tvar tree_mode = false;\n\n\t\tvar on_tree_grid_row_select = false;\n\n\t\tvar key = 'id';\n\n\t\tvar error_string = '';\n\n\t\tvar error_tip_box;\n\n\t\t$this = this;\n\n\t\tvar mass_edit_mode = false;\n\n\t\tvar check_box = null;\n\n\t\tvar enabled = true;\n\n\t\tvar allow_drag_to_order = false;\n\n\t\tvar navigation_mode = false;\n\n\t\tvar args_from_saved_layout = null;\n\n\t\tvar default_args = null;\n\t\t//Use this in Navigation Mode, Keep search filter when open. Don't clean it in onClose if navigation_mode\n\t\t// Now we di this in both navigation and normal (2014/6/7)\n\t\tvar cached_search_inputs_filter = null;\n\n\t\tvar cached_select_grid_search_inputs_filter = null;\n\n\t\tvar cached_sort_filter = null; //Same as above\n\n\t\tvar cached_selected_grid_sort_filter = null; //Same as above\n\n\t\tvar script_name = '';\n\n\t\tvar navigation_mode_source_data_before_open = null;\n\n\t\tvar set_default_args_manually = false; //If set default args outside\n\n\t\tvar addition_source_function = null;\n\n\t\tvar custom_key_name = null;\n\n\t\tvar setRealValueCallBack = null; //Set real data call back function\n\n\t\tvar custom_first_label = null;\n\n\t\tvar added_items = null;\n\n\t\tvar column_option_key = 'columns';\n\n\t\t// set this when close, don't allow awesomebox open until 0.3 sec, this prevent awesomebox close in mousedown, and open in click.\n\t\tvar dontOpenTimer = null;\n\n\t\tvar dontOpen = false;\n\n\t\tvar total_header_width;\n\n\t\t//if init source data right after initcolumns complete\n\t\tvar init_data_immediately = false;\n\n\t\tvar unselect_grid_search_result;\n\n\t\t// don't do column filter base on display columns, use all inst