TimeTrex/interface/html5/dist/reports-whos_in_summary-ActiveShiftReportViewController.bundle.js

1 line
4.0 KiB
JavaScript
Raw Permalink Normal View History

2022-12-13 07:10:06 +01:00
"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["reports-whos_in_summary-ActiveShiftReportViewController"],{7081:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"ActiveShiftReportViewController\": () => (/* binding */ ActiveShiftReportViewController)\n/* harmony export */ });\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\nclass ActiveShiftReportViewController extends ReportBaseViewController {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {} );\n\n\t\tsuper( options );\n\t}\n\n\tinitReport( options ) {\n\t\tthis.script_name = 'ActiveShiftReport';\n\t\tthis.viewId = 'ActiveShiftReport';\n\t\tthis.context_menu_name = $.i18n._( 'Whos In Summary' );\n\t\tthis.navigation_label = $.i18n._( 'Saved Report' );\n\t\tthis.view_file = 'ActiveShiftReportView.html';\n\t\tthis.api = TTAPI.APIActiveShiftReport;\n\t}\n\n\tgetCustomContextMenuModel() {\n\t\tvar context_menu_model = {\n\t\t\texclude: [],\n\t\t\tinclude: ['default']\n\t\t};\n\n\t\treturn context_menu_model;\n\t}\n\n\tprocessFilterField() {\n\t\tfor ( var i = 0; i < this.setup_fields_array.length; i++ ) {\n\t\t\tvar item = this.setup_fields_array[i];\n\t\t\tif ( item.value === 'user_status_id' ) {\n\t\t\t\titem.value = 'filter';\n\t\t\t}\n\t\t}\n\t}\n\n\tsetFilterValue( widget, value ) {\n\t\twidget.setValue( value.user_status_id );\n\t}\n\n\tonFormItemChangeProcessFilterField( target, key ) {\n\t\tvar filter = target.getValue();\n\t\tthis.visible_report_values[key] = { user_status_id: filter };\n\t}\n\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;char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