1 line
21 KiB
JavaScript
1 line
21 KiB
JavaScript
|
"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["awesomebox-ALayoutCache"],{4243:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"ALayoutCache\": () => (/* binding */ ALayoutCache)\n/* harmony export */ });\n/* provided dependency */ var $ = __webpack_require__(9755);\nvar ALayoutCache = function() {\n\n};\n\nALayoutCache.layout_dic = {};\n\nALayoutCache.default_columns = null;\n\nALayoutCache.getDefaultColumn = function( layout_name ) {\n\tif ( !ALayoutCache.default_columns ) {\n\t\tALayoutCache.default_columns = ALayoutCache.buildDefaultColumns();\n\t}\n\n\tif ( !Global.isSet( ALayoutCache.default_columns[layout_name] ) ) {\n\t\treturn [\n\t\t\t{ label: $.i18n._( 'Name' ), value: 'name' }\n\t\t]; //Default Column setting\n\t}\n\n\treturn ALayoutCache.default_columns[layout_name];\n\n};\n\nALayoutCache.buildDefaultColumns = function() {\n\tvar default_columns = {};\n\n//\t default_columns['global_branch'] = [new ViewColumn({label:'Name',value:'name'})];\n//\t default_columns['global_department'] = [new ViewColumn({label:'Name',value:'name'})];\n//\t default_columns['global_job_title'] = [new ViewColumn({label:'Name',value:'name'})];\n//\t default_columns['global_permission_control'] = [new ViewColumn({label:'Name',value:'name'})];\n\n\tdefault_columns['global_client_contact'] = [\n\t\t{ label: $.i18n._( 'First Name' ), value: 'first_name' },\n\t\t{ label: $.i18n._( 'Last Name' ), value: 'last_name' },\n\t\t{ label: $.i18n._( 'Status' ), value: 'status' }\n\t];\n\n\tdefault_columns['global_legal_entity'] = [\n\t\t{ label: $.i18n._( 'Name' ), value: 'legal_name' }\n\t];\n\n\tdefault_columns['global_job'] = [\n\t\t{ label: $.i18n._( 'Name' ), value: 'name' },\n\t\t{ label: $.i18n._( 'Code' ), value: 'manual_id' }\n\t];\n\n\tdefault_columns['global_job_item'] = [\n\t\t{ label: $.i18n._( 'Name' ), value: 'name' },\n\t\t{ label: $.i18n._( 'Code' ), value: 'manual_id' }\n\t];\n\n\tdefault_columns['global_punch_tag'] = [\n\t\t{ label: $.i18n._( 'Name' ), value: 'name' },\n\t\t{ label: $.i18n._( 'Code' ), value: 'manual_id' }\n\t];\n\n\tdefault_columns['global_client_payment'] = [\n\t\t{ label: $.i18n._( 'Number' ), value: 'display_number' },\n\t\t{ label: $.i18n._( 'Type' ), value: 'type' }\n\t];\n\tdefault_columns['global_option_column'] = [\n\t\t{ label: $.i18n._( 'Name' ), value: 'label' }\n\t];\n\tdefault_columns['global_absence'] = [\n\t\t{ label: $.i18n._( 'Name' ), value: 'name' },\n\t\t{ label: $.i18n._( 'Date' ), value: 'date_stamp' }\n\t];\n\tdefault_columns['global_timesheet'] = [\n\t\t{ label: $.i18n._( 'Time' ), value: 'punch_time' },\n\t\t{ label: $.i18n._( 'In/Out' ), value: 'status' },\n\t\t{ label: $.i18n._( 'Punch Type' ), value: 'type' }\n\n\t];\n\tdefault_columns['global_user'] = [\n\t\t{ label: $.i18n._( 'First Name' ), value: 'first_name' },\n\t\t{ label: $.i18n._( 'Last Name' ), value: 'last_name' },\n\t\t{ label: $.i18n._( 'Status' ), value: 'status' }\n\t];\n\n\tdefault_columns['global_message_user'] = [\n\t\t{ label: $.i18n._( 'First Name' ), value: 'first_name' },\n\t\t{ label: $.i18n._( 'Last Name' ), value: 'last_name' },\n\t\t{ label: $.i18n._( 'Status' ), value: 'status' }\n\t];\n\n\tdefault_columns['global_user_contact'] = [\n\t\t{ label: $.i18n._( 'First Name' ), value: 'first_name' },\n\t\t{ label: $.i18n._( 'Last Name' ), value: 'last_name' }\n\t];\n\tdefault_columns['global_wage'] = [\n\t\t{ label: $.i18n._( 'First Name' ), value: 'first_name' },\n\t\t{ label: $.i18n._( 'Last Name' ), value: 'last_name' },\n\t\t{ label: $.i18n._( 'Type' ), value: 'type' },\n\t\t{ label: $.i18n._( 'Wage' ), value: 'wage' }\n\t];\n\tdefault_columns['global_log'] = [\n\t\t{ label: $.i18n._( 'Date' ), value: 'date' },\n\t\t{ label: $.i18n._( 'Action' ), value: 'action' },\n\t\t{ label: $.i18n._( 'Object' ), value: 'object' }\n\t];\n\tdefault_columns['global_bank_account'] = [\n\t\t{ label: $.i18n._( 'First Name' ), valu
|