pui9-datatables 3.2.0 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pui9-datatables.common.js +170 -1240
- package/dist/pui9-datatables.css +1 -1
- package/package-lock.json +166 -149
- package/package.json +1 -1
|
@@ -47882,13 +47882,6 @@ $({ target: 'Array', proto: true, forced: FORCED }, {
|
|
|
47882
47882
|
});
|
|
47883
47883
|
|
|
47884
47884
|
|
|
47885
|
-
/***/ }),
|
|
47886
|
-
|
|
47887
|
-
/***/ "4f75":
|
|
47888
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
47889
|
-
|
|
47890
|
-
// extracted by mini-css-extract-plugin
|
|
47891
|
-
|
|
47892
47885
|
/***/ }),
|
|
47893
47886
|
|
|
47894
47887
|
/***/ "4fad":
|
|
@@ -47992,13 +47985,6 @@ var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
|
|
|
47992
47985
|
module.exports = !!webkit && +webkit[1];
|
|
47993
47986
|
|
|
47994
47987
|
|
|
47995
|
-
/***/ }),
|
|
47996
|
-
|
|
47997
|
-
/***/ "517f":
|
|
47998
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
47999
|
-
|
|
48000
|
-
// extracted by mini-css-extract-plugin
|
|
48001
|
-
|
|
48002
47988
|
/***/ }),
|
|
48003
47989
|
|
|
48004
47990
|
/***/ "51eb":
|
|
@@ -48181,6 +48167,13 @@ module.exports = function (key) {
|
|
|
48181
48167
|
};
|
|
48182
48168
|
|
|
48183
48169
|
|
|
48170
|
+
/***/ }),
|
|
48171
|
+
|
|
48172
|
+
/***/ "5463c":
|
|
48173
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
48174
|
+
|
|
48175
|
+
// extracted by mini-css-extract-plugin
|
|
48176
|
+
|
|
48184
48177
|
/***/ }),
|
|
48185
48178
|
|
|
48186
48179
|
/***/ "547b":
|
|
@@ -49074,6 +49067,17 @@ module.exports = function (originalArray, length) {
|
|
|
49074
49067
|
};
|
|
49075
49068
|
|
|
49076
49069
|
|
|
49070
|
+
/***/ }),
|
|
49071
|
+
|
|
49072
|
+
/***/ "666e":
|
|
49073
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
49074
|
+
|
|
49075
|
+
"use strict";
|
|
49076
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiSimpleDatatable_vue_vue_type_style_index_1_id_673ef7c9_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5463c");
|
|
49077
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiSimpleDatatable_vue_vue_type_style_index_1_id_673ef7c9_prod_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiSimpleDatatable_vue_vue_type_style_index_1_id_673ef7c9_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
49078
|
+
/* unused harmony reexport * */
|
|
49079
|
+
|
|
49080
|
+
|
|
49077
49081
|
/***/ }),
|
|
49078
49082
|
|
|
49079
49083
|
/***/ "6795":
|
|
@@ -51002,13 +51006,6 @@ module.exports = function (key, value) {
|
|
|
51002
51006
|
};
|
|
51003
51007
|
|
|
51004
51008
|
|
|
51005
|
-
/***/ }),
|
|
51006
|
-
|
|
51007
|
-
/***/ "93d4":
|
|
51008
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
51009
|
-
|
|
51010
|
-
// extracted by mini-css-extract-plugin
|
|
51011
|
-
|
|
51012
51009
|
/***/ }),
|
|
51013
51010
|
|
|
51014
51011
|
/***/ "94ca":
|
|
@@ -52859,6 +52856,13 @@ module.exports = queueMicrotask || function (fn) {
|
|
|
52859
52856
|
};
|
|
52860
52857
|
|
|
52861
52858
|
|
|
52859
|
+
/***/ }),
|
|
52860
|
+
|
|
52861
|
+
/***/ "b60a":
|
|
52862
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
52863
|
+
|
|
52864
|
+
// extracted by mini-css-extract-plugin
|
|
52865
|
+
|
|
52862
52866
|
/***/ }),
|
|
52863
52867
|
|
|
52864
52868
|
/***/ "b622":
|
|
@@ -53203,13 +53207,6 @@ module.exports = {
|
|
|
53203
53207
|
};
|
|
53204
53208
|
|
|
53205
53209
|
|
|
53206
|
-
/***/ }),
|
|
53207
|
-
|
|
53208
|
-
/***/ "bf85":
|
|
53209
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
53210
|
-
|
|
53211
|
-
// extracted by mini-css-extract-plugin
|
|
53212
|
-
|
|
53213
53210
|
/***/ }),
|
|
53214
53211
|
|
|
53215
53212
|
/***/ "c043":
|
|
@@ -53284,6 +53281,17 @@ module.exports = function (key) {
|
|
|
53284
53281
|
};
|
|
53285
53282
|
|
|
53286
53283
|
|
|
53284
|
+
/***/ }),
|
|
53285
|
+
|
|
53286
|
+
/***/ "c398":
|
|
53287
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
53288
|
+
|
|
53289
|
+
"use strict";
|
|
53290
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiSimpleDatatable_vue_vue_type_style_index_0_id_673ef7c9_prod_lang_postcss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b60a");
|
|
53291
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiSimpleDatatable_vue_vue_type_style_index_0_id_673ef7c9_prod_lang_postcss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiSimpleDatatable_vue_vue_type_style_index_0_id_673ef7c9_prod_lang_postcss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
53292
|
+
/* unused harmony reexport * */
|
|
53293
|
+
|
|
53294
|
+
|
|
53287
53295
|
/***/ }),
|
|
53288
53296
|
|
|
53289
53297
|
/***/ "c430":
|
|
@@ -53729,17 +53737,6 @@ module.exports = function (object, key, value) {
|
|
|
53729
53737
|
|
|
53730
53738
|
// extracted by mini-css-extract-plugin
|
|
53731
53739
|
|
|
53732
|
-
/***/ }),
|
|
53733
|
-
|
|
53734
|
-
/***/ "ca82":
|
|
53735
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
53736
|
-
|
|
53737
|
-
"use strict";
|
|
53738
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiAuditForm_vue_vue_type_style_index_0_id_f82d1292_prod_lang_postcss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("93d4");
|
|
53739
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiAuditForm_vue_vue_type_style_index_0_id_f82d1292_prod_lang_postcss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiAuditForm_vue_vue_type_style_index_0_id_f82d1292_prod_lang_postcss__WEBPACK_IMPORTED_MODULE_0__);
|
|
53740
|
-
/* unused harmony reexport * */
|
|
53741
|
-
|
|
53742
|
-
|
|
53743
53740
|
/***/ }),
|
|
53744
53741
|
|
|
53745
53742
|
/***/ "ca84":
|
|
@@ -72200,17 +72197,6 @@ $({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
|
72200
72197
|
});
|
|
72201
72198
|
|
|
72202
72199
|
|
|
72203
|
-
/***/ }),
|
|
72204
|
-
|
|
72205
|
-
/***/ "f2f2":
|
|
72206
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
72207
|
-
|
|
72208
|
-
"use strict";
|
|
72209
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiSimpleDatatable_vue_vue_type_style_index_1_id_08a16ede_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("bf85");
|
|
72210
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiSimpleDatatable_vue_vue_type_style_index_1_id_08a16ede_prod_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiSimpleDatatable_vue_vue_type_style_index_1_id_08a16ede_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
72211
|
-
/* unused harmony reexport * */
|
|
72212
|
-
|
|
72213
|
-
|
|
72214
72200
|
/***/ }),
|
|
72215
72201
|
|
|
72216
72202
|
/***/ "f36a":
|
|
@@ -72328,17 +72314,6 @@ module.exports = function (key) {
|
|
|
72328
72314
|
};
|
|
72329
72315
|
|
|
72330
72316
|
|
|
72331
|
-
/***/ }),
|
|
72332
|
-
|
|
72333
|
-
/***/ "f871":
|
|
72334
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
72335
|
-
|
|
72336
|
-
"use strict";
|
|
72337
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiSimpleDatatable_vue_vue_type_style_index_0_id_08a16ede_prod_lang_postcss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("517f");
|
|
72338
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiSimpleDatatable_vue_vue_type_style_index_0_id_08a16ede_prod_lang_postcss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiSimpleDatatable_vue_vue_type_style_index_0_id_08a16ede_prod_lang_postcss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
72339
|
-
/* unused harmony reexport * */
|
|
72340
|
-
|
|
72341
|
-
|
|
72342
72317
|
/***/ }),
|
|
72343
72318
|
|
|
72344
72319
|
/***/ "f914":
|
|
@@ -76233,9 +76208,9 @@ var PuiGridActionsBtn_component = normalizeComponent(
|
|
|
76233
76208
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.fixed.js
|
|
76234
76209
|
var es_string_fixed = __webpack_require__("c7cd");
|
|
76235
76210
|
|
|
76236
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cf80b3ea-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/desktop/PuiSimpleDatatable.vue?vue&type=template&id=
|
|
76211
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cf80b3ea-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/desktop/PuiSimpleDatatable.vue?vue&type=template&id=673ef7c9&scoped=true
|
|
76237
76212
|
|
|
76238
|
-
var
|
|
76213
|
+
var PuiSimpleDatatablevue_type_template_id_673ef7c9_scoped_true_render = function render() {
|
|
76239
76214
|
var _vm = this,
|
|
76240
76215
|
_c = _vm._self._c;
|
|
76241
76216
|
return _c('v-layout', {
|
|
@@ -76295,9 +76270,9 @@ var PuiSimpleDatatablevue_type_template_id_08a16ede_scoped_true_render = functio
|
|
|
76295
76270
|
}
|
|
76296
76271
|
})], 1);
|
|
76297
76272
|
};
|
|
76298
|
-
var
|
|
76273
|
+
var PuiSimpleDatatablevue_type_template_id_673ef7c9_scoped_true_staticRenderFns = [];
|
|
76299
76274
|
|
|
76300
|
-
// CONCATENATED MODULE: ./src/components/desktop/PuiSimpleDatatable.vue?vue&type=template&id=
|
|
76275
|
+
// CONCATENATED MODULE: ./src/components/desktop/PuiSimpleDatatable.vue?vue&type=template&id=673ef7c9&scoped=true
|
|
76301
76276
|
|
|
76302
76277
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptor.js
|
|
76303
76278
|
var es_object_get_own_property_descriptor = __webpack_require__("e439");
|
|
@@ -81093,1071 +81068,6 @@ var dataTables_fixedColumns = __webpack_require__("ea7d");
|
|
|
81093
81068
|
// EXTERNAL MODULE: ./node_modules/datatables.net-fixedcolumns-dt/css/fixedColumns.dataTables.css
|
|
81094
81069
|
var fixedColumns_dataTables = __webpack_require__("8e28");
|
|
81095
81070
|
|
|
81096
|
-
// CONCATENATED MODULE: ./node_modules/datatables.net-fixedheader/js/dataTables.fixedHeader.mjs
|
|
81097
|
-
/*! FixedHeader 3.3.1
|
|
81098
|
-
* ©2009-2022 SpryMedia Ltd - datatables.net/license
|
|
81099
|
-
*/
|
|
81100
|
-
|
|
81101
|
-
|
|
81102
|
-
|
|
81103
|
-
|
|
81104
|
-
|
|
81105
|
-
|
|
81106
|
-
/**
|
|
81107
|
-
* @summary FixedHeader
|
|
81108
|
-
* @description Fix a table's header or footer, so it is always visible while
|
|
81109
|
-
* scrolling
|
|
81110
|
-
* @version 3.3.1
|
|
81111
|
-
* @author SpryMedia Ltd (www.sprymedia.co.uk)
|
|
81112
|
-
* @contact www.sprymedia.co.uk
|
|
81113
|
-
* @copyright SpryMedia Ltd.
|
|
81114
|
-
*
|
|
81115
|
-
* This source file is free software, available under the following license:
|
|
81116
|
-
* MIT license - http://datatables.net/license/mit
|
|
81117
|
-
*
|
|
81118
|
-
* This source file is distributed in the hope that it will be useful, but
|
|
81119
|
-
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
81120
|
-
* or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
|
|
81121
|
-
*
|
|
81122
|
-
* For details please refer to: http://www.datatables.net
|
|
81123
|
-
*/
|
|
81124
|
-
|
|
81125
|
-
var _instCounter = 0;
|
|
81126
|
-
|
|
81127
|
-
var FixedHeader = function ( dt, config ) {
|
|
81128
|
-
// Sanity check - you just know it will happen
|
|
81129
|
-
if ( ! (this instanceof FixedHeader) ) {
|
|
81130
|
-
throw "FixedHeader must be initialised with the 'new' keyword.";
|
|
81131
|
-
}
|
|
81132
|
-
|
|
81133
|
-
// Allow a boolean true for defaults
|
|
81134
|
-
if ( config === true ) {
|
|
81135
|
-
config = {};
|
|
81136
|
-
}
|
|
81137
|
-
|
|
81138
|
-
dt = new js_jquery_dataTables_default.a.Api( dt );
|
|
81139
|
-
|
|
81140
|
-
this.c = jquery_default.a.extend( true, {}, FixedHeader.defaults, config );
|
|
81141
|
-
|
|
81142
|
-
this.s = {
|
|
81143
|
-
dt: dt,
|
|
81144
|
-
position: {
|
|
81145
|
-
theadTop: 0,
|
|
81146
|
-
tbodyTop: 0,
|
|
81147
|
-
tfootTop: 0,
|
|
81148
|
-
tfootBottom: 0,
|
|
81149
|
-
width: 0,
|
|
81150
|
-
left: 0,
|
|
81151
|
-
tfootHeight: 0,
|
|
81152
|
-
theadHeight: 0,
|
|
81153
|
-
windowHeight: jquery_default()(window).height(),
|
|
81154
|
-
visible: true
|
|
81155
|
-
},
|
|
81156
|
-
headerMode: null,
|
|
81157
|
-
footerMode: null,
|
|
81158
|
-
autoWidth: dt.settings()[0].oFeatures.bAutoWidth,
|
|
81159
|
-
namespace: '.dtfc'+(_instCounter++),
|
|
81160
|
-
scrollLeft: {
|
|
81161
|
-
header: -1,
|
|
81162
|
-
footer: -1
|
|
81163
|
-
},
|
|
81164
|
-
enable: true
|
|
81165
|
-
};
|
|
81166
|
-
|
|
81167
|
-
this.dom = {
|
|
81168
|
-
floatingHeader: null,
|
|
81169
|
-
thead: jquery_default()(dt.table().header()),
|
|
81170
|
-
tbody: jquery_default()(dt.table().body()),
|
|
81171
|
-
tfoot: jquery_default()(dt.table().footer()),
|
|
81172
|
-
header: {
|
|
81173
|
-
host: null,
|
|
81174
|
-
floating: null,
|
|
81175
|
-
floatingParent: jquery_default()('<div class="dtfh-floatingparent">'),
|
|
81176
|
-
placeholder: null
|
|
81177
|
-
},
|
|
81178
|
-
footer: {
|
|
81179
|
-
host: null,
|
|
81180
|
-
floating: null,
|
|
81181
|
-
floatingParent: jquery_default()('<div class="dtfh-floatingparent">'),
|
|
81182
|
-
placeholder: null
|
|
81183
|
-
}
|
|
81184
|
-
};
|
|
81185
|
-
|
|
81186
|
-
this.dom.header.host = this.dom.thead.parent();
|
|
81187
|
-
this.dom.footer.host = this.dom.tfoot.parent();
|
|
81188
|
-
|
|
81189
|
-
var dtSettings = dt.settings()[0];
|
|
81190
|
-
if ( dtSettings._fixedHeader ) {
|
|
81191
|
-
throw "FixedHeader already initialised on table "+dtSettings.nTable.id;
|
|
81192
|
-
}
|
|
81193
|
-
|
|
81194
|
-
dtSettings._fixedHeader = this;
|
|
81195
|
-
|
|
81196
|
-
this._constructor();
|
|
81197
|
-
};
|
|
81198
|
-
|
|
81199
|
-
|
|
81200
|
-
/*
|
|
81201
|
-
* Variable: FixedHeader
|
|
81202
|
-
* Purpose: Prototype for FixedHeader
|
|
81203
|
-
* Scope: global
|
|
81204
|
-
*/
|
|
81205
|
-
jquery_default.a.extend( FixedHeader.prototype, {
|
|
81206
|
-
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
81207
|
-
* API methods
|
|
81208
|
-
*/
|
|
81209
|
-
|
|
81210
|
-
/**
|
|
81211
|
-
* Kill off FH and any events
|
|
81212
|
-
*/
|
|
81213
|
-
destroy: function () {
|
|
81214
|
-
var dom = this.dom;
|
|
81215
|
-
|
|
81216
|
-
this.s.dt.off( '.dtfc' );
|
|
81217
|
-
jquery_default()(window).off( this.s.namespace );
|
|
81218
|
-
|
|
81219
|
-
// Remove clones of FC blockers
|
|
81220
|
-
if (dom.header.rightBlocker) {
|
|
81221
|
-
dom.header.rightBlocker.remove();
|
|
81222
|
-
}
|
|
81223
|
-
if (dom.header.leftBlocker) {
|
|
81224
|
-
dom.header.leftBlocker.remove();
|
|
81225
|
-
}
|
|
81226
|
-
if (dom.footer.rightBlocker) {
|
|
81227
|
-
dom.footer.rightBlocker.remove();
|
|
81228
|
-
}
|
|
81229
|
-
if (dom.footer.leftBlocker) {
|
|
81230
|
-
dom.footer.leftBlocker.remove();
|
|
81231
|
-
}
|
|
81232
|
-
|
|
81233
|
-
if ( this.c.header ) {
|
|
81234
|
-
this._modeChange( 'in-place', 'header', true );
|
|
81235
|
-
}
|
|
81236
|
-
|
|
81237
|
-
if ( this.c.footer && dom.tfoot.length ) {
|
|
81238
|
-
this._modeChange( 'in-place', 'footer', true );
|
|
81239
|
-
}
|
|
81240
|
-
},
|
|
81241
|
-
|
|
81242
|
-
/**
|
|
81243
|
-
* Enable / disable the fixed elements
|
|
81244
|
-
*
|
|
81245
|
-
* @param {boolean} enable `true` to enable, `false` to disable
|
|
81246
|
-
*/
|
|
81247
|
-
enable: function ( enable, update )
|
|
81248
|
-
{
|
|
81249
|
-
this.s.enable = enable;
|
|
81250
|
-
|
|
81251
|
-
if ( update || update === undefined ) {
|
|
81252
|
-
this._positions();
|
|
81253
|
-
this._scroll( true );
|
|
81254
|
-
}
|
|
81255
|
-
},
|
|
81256
|
-
|
|
81257
|
-
/**
|
|
81258
|
-
* Get enabled status
|
|
81259
|
-
*/
|
|
81260
|
-
enabled: function ()
|
|
81261
|
-
{
|
|
81262
|
-
return this.s.enable;
|
|
81263
|
-
},
|
|
81264
|
-
|
|
81265
|
-
/**
|
|
81266
|
-
* Set header offset
|
|
81267
|
-
*
|
|
81268
|
-
* @param {int} new value for headerOffset
|
|
81269
|
-
*/
|
|
81270
|
-
headerOffset: function ( offset )
|
|
81271
|
-
{
|
|
81272
|
-
if ( offset !== undefined ) {
|
|
81273
|
-
this.c.headerOffset = offset;
|
|
81274
|
-
this.update();
|
|
81275
|
-
}
|
|
81276
|
-
|
|
81277
|
-
return this.c.headerOffset;
|
|
81278
|
-
},
|
|
81279
|
-
|
|
81280
|
-
/**
|
|
81281
|
-
* Set footer offset
|
|
81282
|
-
*
|
|
81283
|
-
* @param {int} new value for footerOffset
|
|
81284
|
-
*/
|
|
81285
|
-
footerOffset: function ( offset )
|
|
81286
|
-
{
|
|
81287
|
-
if ( offset !== undefined ) {
|
|
81288
|
-
this.c.footerOffset = offset;
|
|
81289
|
-
this.update();
|
|
81290
|
-
}
|
|
81291
|
-
|
|
81292
|
-
return this.c.footerOffset;
|
|
81293
|
-
},
|
|
81294
|
-
|
|
81295
|
-
|
|
81296
|
-
/**
|
|
81297
|
-
* Recalculate the position of the fixed elements and force them into place
|
|
81298
|
-
*/
|
|
81299
|
-
update: function (force)
|
|
81300
|
-
{
|
|
81301
|
-
if (! this.s.enable) {
|
|
81302
|
-
return;
|
|
81303
|
-
}
|
|
81304
|
-
|
|
81305
|
-
var table = this.s.dt.table().node();
|
|
81306
|
-
|
|
81307
|
-
if ( jquery_default()(table).is(':visible') ) {
|
|
81308
|
-
this.enable( true, false );
|
|
81309
|
-
}
|
|
81310
|
-
else {
|
|
81311
|
-
this.enable( false, false );
|
|
81312
|
-
}
|
|
81313
|
-
|
|
81314
|
-
// Don't update if header is not in the document atm (due to
|
|
81315
|
-
// async events)
|
|
81316
|
-
if (jquery_default()(table).children('thead').length === 0) {
|
|
81317
|
-
return;
|
|
81318
|
-
}
|
|
81319
|
-
|
|
81320
|
-
this._positions();
|
|
81321
|
-
this._scroll( force !== undefined ? force : true );
|
|
81322
|
-
},
|
|
81323
|
-
|
|
81324
|
-
|
|
81325
|
-
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
81326
|
-
* Constructor
|
|
81327
|
-
*/
|
|
81328
|
-
|
|
81329
|
-
/**
|
|
81330
|
-
* FixedHeader constructor - adding the required event listeners and
|
|
81331
|
-
* simple initialisation
|
|
81332
|
-
*
|
|
81333
|
-
* @private
|
|
81334
|
-
*/
|
|
81335
|
-
_constructor: function ()
|
|
81336
|
-
{
|
|
81337
|
-
var that = this;
|
|
81338
|
-
var dt = this.s.dt;
|
|
81339
|
-
|
|
81340
|
-
jquery_default()(window)
|
|
81341
|
-
.on( 'scroll'+this.s.namespace, function () {
|
|
81342
|
-
that._scroll();
|
|
81343
|
-
} )
|
|
81344
|
-
.on( 'resize'+this.s.namespace, js_jquery_dataTables_default.a.util.throttle( function () {
|
|
81345
|
-
that.s.position.windowHeight = jquery_default()(window).height();
|
|
81346
|
-
that.update();
|
|
81347
|
-
}, 50 ) );
|
|
81348
|
-
|
|
81349
|
-
var autoHeader = jquery_default()('.fh-fixedHeader');
|
|
81350
|
-
if ( ! this.c.headerOffset && autoHeader.length ) {
|
|
81351
|
-
this.c.headerOffset = autoHeader.outerHeight();
|
|
81352
|
-
}
|
|
81353
|
-
|
|
81354
|
-
var autoFooter = jquery_default()('.fh-fixedFooter');
|
|
81355
|
-
if ( ! this.c.footerOffset && autoFooter.length ) {
|
|
81356
|
-
this.c.footerOffset = autoFooter.outerHeight();
|
|
81357
|
-
}
|
|
81358
|
-
|
|
81359
|
-
dt
|
|
81360
|
-
.on( 'column-reorder.dt.dtfc column-visibility.dt.dtfc column-sizing.dt.dtfc responsive-display.dt.dtfc', function (e, ctx) {
|
|
81361
|
-
that.update();
|
|
81362
|
-
} )
|
|
81363
|
-
.on( 'draw.dt.dtfc', function (e, ctx) {
|
|
81364
|
-
// For updates from our own table, don't reclone, but for all others, do
|
|
81365
|
-
that.update(ctx === dt.settings()[0] ? false : true);
|
|
81366
|
-
} );
|
|
81367
|
-
|
|
81368
|
-
dt.on( 'destroy.dtfc', function () {
|
|
81369
|
-
that.destroy();
|
|
81370
|
-
} );
|
|
81371
|
-
|
|
81372
|
-
this._positions();
|
|
81373
|
-
this._scroll();
|
|
81374
|
-
},
|
|
81375
|
-
|
|
81376
|
-
|
|
81377
|
-
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
81378
|
-
* Private methods
|
|
81379
|
-
*/
|
|
81380
|
-
|
|
81381
|
-
/**
|
|
81382
|
-
* Clone a fixed item to act as a place holder for the original element
|
|
81383
|
-
* which is moved into a clone of the table element, and moved around the
|
|
81384
|
-
* document to give the fixed effect.
|
|
81385
|
-
*
|
|
81386
|
-
* @param {string} item 'header' or 'footer'
|
|
81387
|
-
* @param {boolean} force Force the clone to happen, or allow automatic
|
|
81388
|
-
* decision (reuse existing if available)
|
|
81389
|
-
* @private
|
|
81390
|
-
*/
|
|
81391
|
-
_clone: function ( item, force )
|
|
81392
|
-
{
|
|
81393
|
-
var that = this;
|
|
81394
|
-
var dt = this.s.dt;
|
|
81395
|
-
var itemDom = this.dom[ item ];
|
|
81396
|
-
var itemElement = item === 'header' ?
|
|
81397
|
-
this.dom.thead :
|
|
81398
|
-
this.dom.tfoot;
|
|
81399
|
-
|
|
81400
|
-
// If footer and scrolling is enabled then we don't clone
|
|
81401
|
-
// Instead the table's height is decreased accordingly - see `_scroll()`
|
|
81402
|
-
if (item === 'footer' && this._scrollEnabled()) {
|
|
81403
|
-
return;
|
|
81404
|
-
}
|
|
81405
|
-
|
|
81406
|
-
if ( ! force && itemDom.floating ) {
|
|
81407
|
-
// existing floating element - reuse it
|
|
81408
|
-
itemDom.floating.removeClass( 'fixedHeader-floating fixedHeader-locked' );
|
|
81409
|
-
}
|
|
81410
|
-
else {
|
|
81411
|
-
var docScrollLeft = jquery_default()(document).scrollLeft();
|
|
81412
|
-
var docScrollTop = jquery_default()(document).scrollTop();
|
|
81413
|
-
|
|
81414
|
-
if ( itemDom.floating ) {
|
|
81415
|
-
if(itemDom.placeholder !== null) {
|
|
81416
|
-
itemDom.placeholder.remove();
|
|
81417
|
-
}
|
|
81418
|
-
this._unsize( item );
|
|
81419
|
-
itemDom.floating.children().detach();
|
|
81420
|
-
itemDom.floating.remove();
|
|
81421
|
-
}
|
|
81422
|
-
|
|
81423
|
-
var tableNode = jquery_default()(dt.table().node());
|
|
81424
|
-
var scrollBody = jquery_default()(tableNode.parent());
|
|
81425
|
-
var scrollEnabled = this._scrollEnabled();
|
|
81426
|
-
|
|
81427
|
-
itemDom.floating = jquery_default()( dt.table().node().cloneNode( false ) )
|
|
81428
|
-
.attr( 'aria-hidden', 'true' )
|
|
81429
|
-
.css({
|
|
81430
|
-
'table-layout': 'fixed',
|
|
81431
|
-
top: 0,
|
|
81432
|
-
left: 0
|
|
81433
|
-
})
|
|
81434
|
-
.removeAttr( 'id' )
|
|
81435
|
-
.append( itemElement );
|
|
81436
|
-
|
|
81437
|
-
itemDom.floatingParent
|
|
81438
|
-
.css({
|
|
81439
|
-
width: scrollBody.width(),
|
|
81440
|
-
overflow: 'hidden',
|
|
81441
|
-
height: 'fit-content',
|
|
81442
|
-
position: 'fixed',
|
|
81443
|
-
left: scrollEnabled ? tableNode.offset().left + scrollBody.scrollLeft() : 0
|
|
81444
|
-
})
|
|
81445
|
-
.css(
|
|
81446
|
-
item === 'header' ?
|
|
81447
|
-
{
|
|
81448
|
-
top: this.c.headerOffset,
|
|
81449
|
-
bottom: ''
|
|
81450
|
-
} :
|
|
81451
|
-
{
|
|
81452
|
-
top: '',
|
|
81453
|
-
bottom: this.c.footerOffset
|
|
81454
|
-
}
|
|
81455
|
-
)
|
|
81456
|
-
.addClass(item === 'footer' ? 'dtfh-floatingparentfoot' : 'dtfh-floatingparenthead')
|
|
81457
|
-
.append(itemDom.floating)
|
|
81458
|
-
.appendTo( 'body' );
|
|
81459
|
-
|
|
81460
|
-
this._stickyPosition(itemDom.floating, '-');
|
|
81461
|
-
|
|
81462
|
-
var scrollLeftUpdate = function () {
|
|
81463
|
-
var scrollLeft = scrollBody.scrollLeft()
|
|
81464
|
-
that.s.scrollLeft = {footer: scrollLeft, header: scrollLeft};
|
|
81465
|
-
itemDom.floatingParent.scrollLeft(that.s.scrollLeft.header);
|
|
81466
|
-
}
|
|
81467
|
-
|
|
81468
|
-
scrollLeftUpdate();
|
|
81469
|
-
scrollBody
|
|
81470
|
-
.off('scroll.dtfh')
|
|
81471
|
-
.on('scroll.dtfh', scrollLeftUpdate);
|
|
81472
|
-
|
|
81473
|
-
// Insert a fake thead/tfoot into the DataTable to stop it jumping around
|
|
81474
|
-
itemDom.placeholder = itemElement.clone( false );
|
|
81475
|
-
itemDom.placeholder
|
|
81476
|
-
.find( '*[id]' )
|
|
81477
|
-
.removeAttr( 'id' );
|
|
81478
|
-
|
|
81479
|
-
itemDom.host.prepend( itemDom.placeholder );
|
|
81480
|
-
|
|
81481
|
-
// Clone widths
|
|
81482
|
-
this._matchWidths( itemDom.placeholder, itemDom.floating );
|
|
81483
|
-
|
|
81484
|
-
// The above action will remove the table header, potentially causing the table to
|
|
81485
|
-
// collapse to a smaller size, before it is then re-inserted (append). The result
|
|
81486
|
-
// can be that the document, if scrolling, can "jump".
|
|
81487
|
-
jquery_default()(document)
|
|
81488
|
-
.scrollTop(docScrollTop)
|
|
81489
|
-
.scrollLeft(docScrollLeft);
|
|
81490
|
-
}
|
|
81491
|
-
},
|
|
81492
|
-
|
|
81493
|
-
/**
|
|
81494
|
-
* This method sets the sticky position of the header elements to match fixed columns
|
|
81495
|
-
* @param {JQuery<HTMLElement>} el
|
|
81496
|
-
* @param {string} sign
|
|
81497
|
-
*/
|
|
81498
|
-
_stickyPosition: function(el, sign) {
|
|
81499
|
-
if (this._scrollEnabled()) {
|
|
81500
|
-
var that = this
|
|
81501
|
-
var rtl = jquery_default()(that.s.dt.table().node()).css('direction') === 'rtl';
|
|
81502
|
-
|
|
81503
|
-
el.find('th').each(function() {
|
|
81504
|
-
// Find out if fixed header has previously set this column
|
|
81505
|
-
if (jquery_default()(this).css('position') === 'sticky') {
|
|
81506
|
-
var right = jquery_default()(this).css('right');
|
|
81507
|
-
var left = jquery_default()(this).css('left');
|
|
81508
|
-
if (right !== 'auto' && !rtl) {
|
|
81509
|
-
// New position either adds or dismisses the barWidth
|
|
81510
|
-
var potential = +right.replace(/px/g, '') + (sign === '-' ? -1 : 1) * that.s.dt.settings()[0].oBrowser.barWidth;
|
|
81511
|
-
jquery_default()(this).css('right', potential > 0 ? potential : 0);
|
|
81512
|
-
}
|
|
81513
|
-
else if(left !== 'auto' && rtl) {
|
|
81514
|
-
var potential = +left.replace(/px/g, '') + (sign === '-' ? -1 : 1) * that.s.dt.settings()[0].oBrowser.barWidth;
|
|
81515
|
-
jquery_default()(this).css('left', potential > 0 ? potential : 0);
|
|
81516
|
-
}
|
|
81517
|
-
}
|
|
81518
|
-
});
|
|
81519
|
-
}
|
|
81520
|
-
},
|
|
81521
|
-
|
|
81522
|
-
/**
|
|
81523
|
-
* Copy widths from the cells in one element to another. This is required
|
|
81524
|
-
* for the footer as the footer in the main table takes its sizes from the
|
|
81525
|
-
* header columns. That isn't present in the footer so to have it still
|
|
81526
|
-
* align correctly, the sizes need to be copied over. It is also required
|
|
81527
|
-
* for the header when auto width is not enabled
|
|
81528
|
-
*
|
|
81529
|
-
* @param {jQuery} from Copy widths from
|
|
81530
|
-
* @param {jQuery} to Copy widths to
|
|
81531
|
-
* @private
|
|
81532
|
-
*/
|
|
81533
|
-
_matchWidths: function ( from, to ) {
|
|
81534
|
-
var get = function ( name ) {
|
|
81535
|
-
return jquery_default()(name, from)
|
|
81536
|
-
.map( function () {
|
|
81537
|
-
return jquery_default()(this).css('width').replace(/[^\d\.]/g, '') * 1;
|
|
81538
|
-
} ).toArray();
|
|
81539
|
-
};
|
|
81540
|
-
|
|
81541
|
-
var set = function ( name, toWidths ) {
|
|
81542
|
-
jquery_default()(name, to).each( function ( i ) {
|
|
81543
|
-
jquery_default()(this).css( {
|
|
81544
|
-
width: toWidths[i],
|
|
81545
|
-
minWidth: toWidths[i]
|
|
81546
|
-
} );
|
|
81547
|
-
} );
|
|
81548
|
-
};
|
|
81549
|
-
|
|
81550
|
-
var thWidths = get( 'th' );
|
|
81551
|
-
var tdWidths = get( 'td' );
|
|
81552
|
-
|
|
81553
|
-
set( 'th', thWidths );
|
|
81554
|
-
set( 'td', tdWidths );
|
|
81555
|
-
},
|
|
81556
|
-
|
|
81557
|
-
/**
|
|
81558
|
-
* Remove assigned widths from the cells in an element. This is required
|
|
81559
|
-
* when inserting the footer back into the main table so the size is defined
|
|
81560
|
-
* by the header columns and also when auto width is disabled in the
|
|
81561
|
-
* DataTable.
|
|
81562
|
-
*
|
|
81563
|
-
* @param {string} item The `header` or `footer`
|
|
81564
|
-
* @private
|
|
81565
|
-
*/
|
|
81566
|
-
_unsize: function ( item ) {
|
|
81567
|
-
var el = this.dom[ item ].floating;
|
|
81568
|
-
|
|
81569
|
-
if ( el && (item === 'footer' || (item === 'header' && ! this.s.autoWidth)) ) {
|
|
81570
|
-
jquery_default()('th, td', el).css( {
|
|
81571
|
-
width: '',
|
|
81572
|
-
minWidth: ''
|
|
81573
|
-
} );
|
|
81574
|
-
}
|
|
81575
|
-
else if ( el && item === 'header' ) {
|
|
81576
|
-
jquery_default()('th, td', el).css( 'min-width', '' );
|
|
81577
|
-
}
|
|
81578
|
-
},
|
|
81579
|
-
|
|
81580
|
-
/**
|
|
81581
|
-
* Reposition the floating elements to take account of horizontal page
|
|
81582
|
-
* scroll
|
|
81583
|
-
*
|
|
81584
|
-
* @param {string} item The `header` or `footer`
|
|
81585
|
-
* @param {int} scrollLeft Document scrollLeft
|
|
81586
|
-
* @private
|
|
81587
|
-
*/
|
|
81588
|
-
_horizontal: function ( item, scrollLeft )
|
|
81589
|
-
{
|
|
81590
|
-
var itemDom = this.dom[ item ];
|
|
81591
|
-
var position = this.s.position;
|
|
81592
|
-
var lastScrollLeft = this.s.scrollLeft;
|
|
81593
|
-
|
|
81594
|
-
if ( itemDom.floating && lastScrollLeft[ item ] !== scrollLeft ) {
|
|
81595
|
-
// If scrolling is enabled we need to match the floating header to the body
|
|
81596
|
-
if (this._scrollEnabled()) {
|
|
81597
|
-
var newScrollLeft = jquery_default()(jquery_default()(this.s.dt.table().node()).parent()).scrollLeft()
|
|
81598
|
-
itemDom.floating.scrollLeft(newScrollLeft);
|
|
81599
|
-
itemDom.floatingParent.scrollLeft(newScrollLeft);
|
|
81600
|
-
}
|
|
81601
|
-
|
|
81602
|
-
lastScrollLeft[ item ] = scrollLeft;
|
|
81603
|
-
}
|
|
81604
|
-
},
|
|
81605
|
-
|
|
81606
|
-
/**
|
|
81607
|
-
* Change from one display mode to another. Each fixed item can be in one
|
|
81608
|
-
* of:
|
|
81609
|
-
*
|
|
81610
|
-
* * `in-place` - In the main DataTable
|
|
81611
|
-
* * `in` - Floating over the DataTable
|
|
81612
|
-
* * `below` - (Header only) Fixed to the bottom of the table body
|
|
81613
|
-
* * `above` - (Footer only) Fixed to the top of the table body
|
|
81614
|
-
*
|
|
81615
|
-
* @param {string} mode Mode that the item should be shown in
|
|
81616
|
-
* @param {string} item 'header' or 'footer'
|
|
81617
|
-
* @param {boolean} forceChange Force a redraw of the mode, even if already
|
|
81618
|
-
* in that mode.
|
|
81619
|
-
* @private
|
|
81620
|
-
*/
|
|
81621
|
-
_modeChange: function ( mode, item, forceChange )
|
|
81622
|
-
{
|
|
81623
|
-
var dt = this.s.dt;
|
|
81624
|
-
var itemDom = this.dom[ item ];
|
|
81625
|
-
var position = this.s.position;
|
|
81626
|
-
|
|
81627
|
-
// Just determine if scroll is enabled once
|
|
81628
|
-
var scrollEnabled = this._scrollEnabled();
|
|
81629
|
-
|
|
81630
|
-
// If footer and scrolling is enabled then we don't clone
|
|
81631
|
-
// Instead the table's height is decreased accordingly - see `_scroll()`
|
|
81632
|
-
if (item === 'footer' && scrollEnabled) {
|
|
81633
|
-
return;
|
|
81634
|
-
}
|
|
81635
|
-
|
|
81636
|
-
// It isn't trivial to add a !important css attribute...
|
|
81637
|
-
var importantWidth = function (w) {
|
|
81638
|
-
itemDom.floating.attr('style', function(i,s) {
|
|
81639
|
-
return (s || '') + 'width: '+w+'px !important;';
|
|
81640
|
-
});
|
|
81641
|
-
|
|
81642
|
-
// If not scrolling also have to update the floatingParent
|
|
81643
|
-
if (!scrollEnabled) {
|
|
81644
|
-
itemDom.floatingParent.attr('style', function(i,s) {
|
|
81645
|
-
return (s || '') + 'width: '+w+'px !important;';
|
|
81646
|
-
});
|
|
81647
|
-
}
|
|
81648
|
-
};
|
|
81649
|
-
|
|
81650
|
-
// Record focus. Browser's will cause input elements to loose focus if
|
|
81651
|
-
// they are inserted else where in the doc
|
|
81652
|
-
var tablePart = this.dom[ item==='footer' ? 'tfoot' : 'thead' ];
|
|
81653
|
-
var focus = jquery_default.a.contains( tablePart[0], document.activeElement ) ?
|
|
81654
|
-
document.activeElement :
|
|
81655
|
-
null;
|
|
81656
|
-
var scrollBody = jquery_default()(jquery_default()(this.s.dt.table().node()).parent());
|
|
81657
|
-
|
|
81658
|
-
if ( mode === 'in-place' ) {
|
|
81659
|
-
// Insert the header back into the table's real header
|
|
81660
|
-
if ( itemDom.placeholder ) {
|
|
81661
|
-
itemDom.placeholder.remove();
|
|
81662
|
-
itemDom.placeholder = null;
|
|
81663
|
-
}
|
|
81664
|
-
|
|
81665
|
-
this._unsize( item );
|
|
81666
|
-
|
|
81667
|
-
if ( item === 'header' ) {
|
|
81668
|
-
itemDom.host.prepend( tablePart );
|
|
81669
|
-
}
|
|
81670
|
-
else {
|
|
81671
|
-
itemDom.host.append( tablePart );
|
|
81672
|
-
}
|
|
81673
|
-
|
|
81674
|
-
if ( itemDom.floating ) {
|
|
81675
|
-
itemDom.floating.remove();
|
|
81676
|
-
itemDom.floating = null;
|
|
81677
|
-
this._stickyPosition(itemDom.host, '+');
|
|
81678
|
-
}
|
|
81679
|
-
|
|
81680
|
-
if ( itemDom.floatingParent ) {
|
|
81681
|
-
itemDom.floatingParent.remove();
|
|
81682
|
-
}
|
|
81683
|
-
|
|
81684
|
-
jquery_default()(jquery_default()(itemDom.host.parent()).parent()).scrollLeft(scrollBody.scrollLeft())
|
|
81685
|
-
}
|
|
81686
|
-
else if ( mode === 'in' ) {
|
|
81687
|
-
// Remove the header from the read header and insert into a fixed
|
|
81688
|
-
// positioned floating table clone
|
|
81689
|
-
this._clone( item, forceChange );
|
|
81690
|
-
|
|
81691
|
-
// Get useful position values
|
|
81692
|
-
var scrollOffset = scrollBody.offset();
|
|
81693
|
-
var windowTop = jquery_default()(document).scrollTop();
|
|
81694
|
-
var windowHeight = jquery_default()(window).height();
|
|
81695
|
-
var windowBottom = windowTop + windowHeight;
|
|
81696
|
-
var bodyTop = scrollEnabled ? scrollOffset.top : position.tbodyTop;
|
|
81697
|
-
var bodyBottom = scrollEnabled ? scrollOffset.top + scrollBody.outerHeight() : position.tfootTop
|
|
81698
|
-
|
|
81699
|
-
// Calculate the amount that the footer or header needs to be shuffled
|
|
81700
|
-
var shuffle = item === 'footer' ?
|
|
81701
|
-
// footer and top of body isn't on screen
|
|
81702
|
-
bodyTop > windowBottom ?
|
|
81703
|
-
// Yes - push the footer below
|
|
81704
|
-
position.tfootHeight :
|
|
81705
|
-
// No - bottom set to the gap between the top of the body and the bottom of the window
|
|
81706
|
-
bodyTop + position.tfootHeight - windowBottom :
|
|
81707
|
-
// Otherwise must be a header so get the difference from the bottom of the
|
|
81708
|
-
// desired floating header and the bottom of the table body
|
|
81709
|
-
windowTop + this.c.headerOffset + position.theadHeight - bodyBottom
|
|
81710
|
-
|
|
81711
|
-
// Set the top or bottom based off of the offset and the shuffle value
|
|
81712
|
-
var prop = item === 'header' ? 'top' : 'bottom';
|
|
81713
|
-
var val = this.c[item+'Offset'] - (shuffle > 0 ? shuffle : 0);
|
|
81714
|
-
|
|
81715
|
-
itemDom.floating.addClass( 'fixedHeader-floating' );
|
|
81716
|
-
itemDom.floatingParent
|
|
81717
|
-
.css(prop, val)
|
|
81718
|
-
.css( {
|
|
81719
|
-
'left': position.left,
|
|
81720
|
-
'height': item === 'header' ? position.theadHeight : position.tfootHeight,
|
|
81721
|
-
'z-index': 2
|
|
81722
|
-
})
|
|
81723
|
-
.append(itemDom.floating);
|
|
81724
|
-
|
|
81725
|
-
importantWidth(position.width);
|
|
81726
|
-
|
|
81727
|
-
if ( item === 'footer' ) {
|
|
81728
|
-
itemDom.floating.css( 'top', '' );
|
|
81729
|
-
}
|
|
81730
|
-
}
|
|
81731
|
-
else if ( mode === 'below' ) { // only used for the header
|
|
81732
|
-
// Fix the position of the floating header at base of the table body
|
|
81733
|
-
this._clone( item, forceChange );
|
|
81734
|
-
|
|
81735
|
-
itemDom.floating.addClass( 'fixedHeader-locked' );
|
|
81736
|
-
itemDom.floatingParent.css({
|
|
81737
|
-
position: 'absolute',
|
|
81738
|
-
top: position.tfootTop - position.theadHeight,
|
|
81739
|
-
left: position.left+'px'
|
|
81740
|
-
});
|
|
81741
|
-
|
|
81742
|
-
importantWidth(position.width);
|
|
81743
|
-
}
|
|
81744
|
-
else if ( mode === 'above' ) { // only used for the footer
|
|
81745
|
-
// Fix the position of the floating footer at top of the table body
|
|
81746
|
-
this._clone( item, forceChange );
|
|
81747
|
-
|
|
81748
|
-
itemDom.floating.addClass( 'fixedHeader-locked' );
|
|
81749
|
-
itemDom.floatingParent.css({
|
|
81750
|
-
position: 'absolute',
|
|
81751
|
-
top: position.tbodyTop,
|
|
81752
|
-
left: position.left+'px'
|
|
81753
|
-
});
|
|
81754
|
-
|
|
81755
|
-
importantWidth(position.width);
|
|
81756
|
-
}
|
|
81757
|
-
|
|
81758
|
-
// Restore focus if it was lost
|
|
81759
|
-
if ( focus && focus !== document.activeElement ) {
|
|
81760
|
-
setTimeout( function () {
|
|
81761
|
-
focus.focus();
|
|
81762
|
-
}, 10 );
|
|
81763
|
-
}
|
|
81764
|
-
|
|
81765
|
-
this.s.scrollLeft.header = -1;
|
|
81766
|
-
this.s.scrollLeft.footer = -1;
|
|
81767
|
-
this.s[item+'Mode'] = mode;
|
|
81768
|
-
},
|
|
81769
|
-
|
|
81770
|
-
/**
|
|
81771
|
-
* Cache the positional information that is required for the mode
|
|
81772
|
-
* calculations that FixedHeader performs.
|
|
81773
|
-
*
|
|
81774
|
-
* @private
|
|
81775
|
-
*/
|
|
81776
|
-
_positions: function ()
|
|
81777
|
-
{
|
|
81778
|
-
var dt = this.s.dt;
|
|
81779
|
-
var table = dt.table();
|
|
81780
|
-
var position = this.s.position;
|
|
81781
|
-
var dom = this.dom;
|
|
81782
|
-
var tableNode = jquery_default()(table.node());
|
|
81783
|
-
var scrollEnabled = this._scrollEnabled();
|
|
81784
|
-
|
|
81785
|
-
// Need to use the header and footer that are in the main table,
|
|
81786
|
-
// regardless of if they are clones, since they hold the positions we
|
|
81787
|
-
// want to measure from
|
|
81788
|
-
var thead = jquery_default()(dt.table().header());
|
|
81789
|
-
var tfoot = jquery_default()(dt.table().footer());
|
|
81790
|
-
var tbody = dom.tbody;
|
|
81791
|
-
var scrollBody = tableNode.parent();
|
|
81792
|
-
|
|
81793
|
-
position.visible = tableNode.is(':visible');
|
|
81794
|
-
position.width = tableNode.outerWidth();
|
|
81795
|
-
position.left = tableNode.offset().left;
|
|
81796
|
-
position.theadTop = thead.offset().top;
|
|
81797
|
-
position.tbodyTop = scrollEnabled ? scrollBody.offset().top : tbody.offset().top;
|
|
81798
|
-
position.tbodyHeight = scrollEnabled ? scrollBody.outerHeight() : tbody.outerHeight();
|
|
81799
|
-
position.theadHeight = thead.outerHeight();
|
|
81800
|
-
position.theadBottom = position.theadTop + position.theadHeight;
|
|
81801
|
-
|
|
81802
|
-
if ( tfoot.length ) {
|
|
81803
|
-
position.tfootTop = position.tbodyTop + position.tbodyHeight; //tfoot.offset().top;
|
|
81804
|
-
position.tfootBottom = position.tfootTop + tfoot.outerHeight();
|
|
81805
|
-
position.tfootHeight = tfoot.outerHeight();
|
|
81806
|
-
}
|
|
81807
|
-
else {
|
|
81808
|
-
position.tfootTop = position.tbodyTop + tbody.outerHeight();
|
|
81809
|
-
position.tfootBottom = position.tfootTop;
|
|
81810
|
-
position.tfootHeight = position.tfootTop;
|
|
81811
|
-
}
|
|
81812
|
-
},
|
|
81813
|
-
|
|
81814
|
-
|
|
81815
|
-
/**
|
|
81816
|
-
* Mode calculation - determine what mode the fixed items should be placed
|
|
81817
|
-
* into.
|
|
81818
|
-
*
|
|
81819
|
-
* @param {boolean} forceChange Force a redraw of the mode, even if already
|
|
81820
|
-
* in that mode.
|
|
81821
|
-
* @private
|
|
81822
|
-
*/
|
|
81823
|
-
_scroll: function ( forceChange )
|
|
81824
|
-
{
|
|
81825
|
-
if (this.s.dt.settings()[0].bDestroying) {
|
|
81826
|
-
return;
|
|
81827
|
-
}
|
|
81828
|
-
|
|
81829
|
-
// ScrollBody details
|
|
81830
|
-
var scrollEnabled = this._scrollEnabled();
|
|
81831
|
-
var scrollBody = jquery_default()(this.s.dt.table().node()).parent();
|
|
81832
|
-
var scrollOffset = scrollBody.offset();
|
|
81833
|
-
var scrollHeight = scrollBody.outerHeight();
|
|
81834
|
-
|
|
81835
|
-
// Window details
|
|
81836
|
-
var windowLeft = jquery_default()(document).scrollLeft();
|
|
81837
|
-
var windowTop = jquery_default()(document).scrollTop();
|
|
81838
|
-
var windowHeight = jquery_default()(window).height();
|
|
81839
|
-
var windowBottom = windowHeight + windowTop
|
|
81840
|
-
|
|
81841
|
-
|
|
81842
|
-
var position = this.s.position;
|
|
81843
|
-
var headerMode, footerMode;
|
|
81844
|
-
|
|
81845
|
-
// Body Details
|
|
81846
|
-
var bodyTop = (scrollEnabled ? scrollOffset.top : position.tbodyTop);
|
|
81847
|
-
var bodyLeft = (scrollEnabled ? scrollOffset.left : position.left);
|
|
81848
|
-
var bodyBottom = (scrollEnabled ? scrollOffset.top + scrollHeight : position.tfootTop);
|
|
81849
|
-
var bodyWidth = (scrollEnabled ? scrollBody.outerWidth() : position.tbodyWidth);
|
|
81850
|
-
|
|
81851
|
-
var windowBottom = windowTop + windowHeight;
|
|
81852
|
-
|
|
81853
|
-
if ( this.c.header ) {
|
|
81854
|
-
if ( ! this.s.enable ) {
|
|
81855
|
-
headerMode = 'in-place';
|
|
81856
|
-
}
|
|
81857
|
-
// The header is in it's normal place if the body top is lower than
|
|
81858
|
-
// the scroll of the window plus the headerOffset and the height of the header
|
|
81859
|
-
else if ( ! position.visible || windowTop + this.c.headerOffset + position.theadHeight <= bodyTop) {
|
|
81860
|
-
headerMode = 'in-place';
|
|
81861
|
-
}
|
|
81862
|
-
// The header should be floated if
|
|
81863
|
-
else if (
|
|
81864
|
-
// The scrolling plus the header offset plus the height of the header is lower than the top of the body
|
|
81865
|
-
windowTop + this.c.headerOffset + position.theadHeight > bodyTop &&
|
|
81866
|
-
// And the scrolling at the top plus the header offset is above the bottom of the body
|
|
81867
|
-
windowTop + this.c.headerOffset + position.theadHeight < bodyBottom
|
|
81868
|
-
) {
|
|
81869
|
-
headerMode = 'in';
|
|
81870
|
-
var scrollBody = jquery_default()(jquery_default()(this.s.dt.table().node()).parent());
|
|
81871
|
-
|
|
81872
|
-
// Further to the above, If the scrolling plus the header offset plus the header height is lower
|
|
81873
|
-
// than the bottom of the table a shuffle is required so have to force the calculation
|
|
81874
|
-
if(windowTop + this.c.headerOffset + position.theadHeight > bodyBottom || this.dom.header.floatingParent === undefined){
|
|
81875
|
-
forceChange = true;
|
|
81876
|
-
}
|
|
81877
|
-
else {
|
|
81878
|
-
this.dom.header.floatingParent
|
|
81879
|
-
.css({
|
|
81880
|
-
'top': this.c.headerOffset,
|
|
81881
|
-
'position': 'fixed'
|
|
81882
|
-
})
|
|
81883
|
-
.append(this.dom.header.floating);
|
|
81884
|
-
}
|
|
81885
|
-
}
|
|
81886
|
-
// Anything else and the view is below the table
|
|
81887
|
-
else {
|
|
81888
|
-
headerMode = 'below';
|
|
81889
|
-
}
|
|
81890
|
-
|
|
81891
|
-
if ( forceChange || headerMode !== this.s.headerMode ) {
|
|
81892
|
-
this._modeChange( headerMode, 'header', forceChange );
|
|
81893
|
-
}
|
|
81894
|
-
|
|
81895
|
-
this._horizontal( 'header', windowLeft );
|
|
81896
|
-
}
|
|
81897
|
-
|
|
81898
|
-
var header = {
|
|
81899
|
-
offset: {top: 0, left: 0},
|
|
81900
|
-
height: 0
|
|
81901
|
-
}
|
|
81902
|
-
var footer = {
|
|
81903
|
-
offset: {top: 0, left: 0},
|
|
81904
|
-
height: 0
|
|
81905
|
-
}
|
|
81906
|
-
|
|
81907
|
-
if ( this.c.footer && this.dom.tfoot.length ) {
|
|
81908
|
-
if ( ! this.s.enable ) {
|
|
81909
|
-
footerMode = 'in-place';
|
|
81910
|
-
}
|
|
81911
|
-
else if ( ! position.visible || position.tfootBottom + this.c.footerOffset <= windowBottom ) {
|
|
81912
|
-
footerMode = 'in-place';
|
|
81913
|
-
}
|
|
81914
|
-
else if (
|
|
81915
|
-
bodyBottom + position.tfootHeight + this.c.footerOffset > windowBottom &&
|
|
81916
|
-
bodyTop + this.c.footerOffset < windowBottom
|
|
81917
|
-
) {
|
|
81918
|
-
footerMode = 'in';
|
|
81919
|
-
forceChange = true;
|
|
81920
|
-
}
|
|
81921
|
-
else {
|
|
81922
|
-
footerMode = 'above';
|
|
81923
|
-
}
|
|
81924
|
-
|
|
81925
|
-
if ( forceChange || footerMode !== this.s.footerMode ) {
|
|
81926
|
-
this._modeChange( footerMode, 'footer', forceChange );
|
|
81927
|
-
}
|
|
81928
|
-
|
|
81929
|
-
this._horizontal( 'footer', windowLeft );
|
|
81930
|
-
|
|
81931
|
-
var getOffsetHeight = function (el) {
|
|
81932
|
-
return {
|
|
81933
|
-
offset: el.offset(),
|
|
81934
|
-
height: el.outerHeight()
|
|
81935
|
-
};
|
|
81936
|
-
};
|
|
81937
|
-
|
|
81938
|
-
header = this.dom.header.floating ? getOffsetHeight(this.dom.header.floating) : getOffsetHeight(this.dom.thead);
|
|
81939
|
-
footer = this.dom.footer.floating ? getOffsetHeight(this.dom.footer.floating) : getOffsetHeight(this.dom.tfoot);
|
|
81940
|
-
|
|
81941
|
-
// If scrolling is enabled and the footer is off the screen
|
|
81942
|
-
if (scrollEnabled && footer.offset.top > windowTop){// && footer.offset.top >= windowBottom) {
|
|
81943
|
-
// Calculate the gap between the top of the scrollBody and the top of the window
|
|
81944
|
-
var overlap = windowTop - scrollOffset.top;
|
|
81945
|
-
// The new height is the bottom of the window
|
|
81946
|
-
var newHeight = windowBottom +
|
|
81947
|
-
// If the gap between the top of the scrollbody and the window is more than
|
|
81948
|
-
// the height of the header then the top of the table is still visible so add that gap
|
|
81949
|
-
// Doing this has effectively calculated the height from the top of the table to the bottom of the current page
|
|
81950
|
-
(overlap > -header.height ? overlap : 0) -
|
|
81951
|
-
// Take from that
|
|
81952
|
-
(
|
|
81953
|
-
// The top of the header plus
|
|
81954
|
-
header.offset.top +
|
|
81955
|
-
// The header height if the standard header is present
|
|
81956
|
-
(overlap < -header.height ? header.height : 0) +
|
|
81957
|
-
// And the height of the footer
|
|
81958
|
-
footer.height
|
|
81959
|
-
)
|
|
81960
|
-
|
|
81961
|
-
// Don't want a negative height
|
|
81962
|
-
if (newHeight < 0) {
|
|
81963
|
-
newHeight = 0;
|
|
81964
|
-
}
|
|
81965
|
-
|
|
81966
|
-
// At the end of the above calculation the space between the header (top of the page if floating)
|
|
81967
|
-
// and the point just above the footer should be the new value for the height of the table.
|
|
81968
|
-
scrollBody.outerHeight(newHeight);
|
|
81969
|
-
|
|
81970
|
-
// Need some rounding here as sometimes very small decimal places are encountered
|
|
81971
|
-
// If the actual height is bigger or equal to the height we just applied then the footer is "Floating"
|
|
81972
|
-
if(Math.round(scrollBody.outerHeight()) >= Math.round(newHeight)) {
|
|
81973
|
-
jquery_default()(this.dom.tfoot.parent()).addClass("fixedHeader-floating");
|
|
81974
|
-
}
|
|
81975
|
-
// Otherwise max-width has kicked in so it is not floating
|
|
81976
|
-
else {
|
|
81977
|
-
jquery_default()(this.dom.tfoot.parent()).removeClass("fixedHeader-floating");
|
|
81978
|
-
}
|
|
81979
|
-
}
|
|
81980
|
-
}
|
|
81981
|
-
|
|
81982
|
-
if(this.dom.header.floating){
|
|
81983
|
-
this.dom.header.floatingParent.css('left', bodyLeft-windowLeft);
|
|
81984
|
-
}
|
|
81985
|
-
if(this.dom.footer.floating){
|
|
81986
|
-
this.dom.footer.floatingParent.css('left', bodyLeft-windowLeft);
|
|
81987
|
-
}
|
|
81988
|
-
|
|
81989
|
-
// If fixed columns is being used on this table then the blockers need to be copied across
|
|
81990
|
-
// Cloning these is cleaner than creating as our own as it will keep consistency with fixedColumns automatically
|
|
81991
|
-
// ASSUMING that the class remains the same
|
|
81992
|
-
if (this.s.dt.settings()[0]._fixedColumns !== undefined) {
|
|
81993
|
-
var adjustBlocker = function (side, end, el) {
|
|
81994
|
-
if (el === undefined) {
|
|
81995
|
-
var blocker = jquery_default()('div.dtfc-'+side+'-'+end+'-blocker');
|
|
81996
|
-
|
|
81997
|
-
el = blocker.length === 0 ?
|
|
81998
|
-
null :
|
|
81999
|
-
blocker.clone().css('z-index', 1);
|
|
82000
|
-
}
|
|
82001
|
-
|
|
82002
|
-
if(el !== null) {
|
|
82003
|
-
if (headerMode === 'in' || headerMode === 'below') {
|
|
82004
|
-
el
|
|
82005
|
-
.appendTo('body')
|
|
82006
|
-
.css({
|
|
82007
|
-
top: end === 'top' ? header.offset.top : footer.offset.top,
|
|
82008
|
-
left: side === 'right' ? bodyLeft + bodyWidth - el.width() : bodyLeft
|
|
82009
|
-
});
|
|
82010
|
-
}
|
|
82011
|
-
else {
|
|
82012
|
-
el.detach();
|
|
82013
|
-
}
|
|
82014
|
-
}
|
|
82015
|
-
|
|
82016
|
-
return el;
|
|
82017
|
-
}
|
|
82018
|
-
|
|
82019
|
-
// Adjust all blockers
|
|
82020
|
-
this.dom.header.rightBlocker = adjustBlocker('right', 'top', this.dom.header.rightBlocker);
|
|
82021
|
-
this.dom.header.leftBlocker = adjustBlocker('left', 'top', this.dom.header.leftBlocker);
|
|
82022
|
-
this.dom.footer.rightBlocker = adjustBlocker('right', 'bottom', this.dom.footer.rightBlocker);
|
|
82023
|
-
this.dom.footer.leftBlocker = adjustBlocker('left', 'bottom', this.dom.footer.leftBlocker);
|
|
82024
|
-
}
|
|
82025
|
-
},
|
|
82026
|
-
|
|
82027
|
-
/**
|
|
82028
|
-
* Function to check if scrolling is enabled on the table or not
|
|
82029
|
-
* @returns Boolean value indicating if scrolling on the table is enabled or not
|
|
82030
|
-
*/
|
|
82031
|
-
_scrollEnabled: function() {
|
|
82032
|
-
var oScroll = this.s.dt.settings()[0].oScroll;
|
|
82033
|
-
if(oScroll.sY !== "" || oScroll.sX !== "") {
|
|
82034
|
-
return true;
|
|
82035
|
-
}
|
|
82036
|
-
return false
|
|
82037
|
-
}
|
|
82038
|
-
} );
|
|
82039
|
-
|
|
82040
|
-
|
|
82041
|
-
/**
|
|
82042
|
-
* Version
|
|
82043
|
-
* @type {String}
|
|
82044
|
-
* @static
|
|
82045
|
-
*/
|
|
82046
|
-
FixedHeader.version = "3.3.1";
|
|
82047
|
-
|
|
82048
|
-
/**
|
|
82049
|
-
* Defaults
|
|
82050
|
-
* @type {Object}
|
|
82051
|
-
* @static
|
|
82052
|
-
*/
|
|
82053
|
-
FixedHeader.defaults = {
|
|
82054
|
-
header: true,
|
|
82055
|
-
footer: false,
|
|
82056
|
-
headerOffset: 0,
|
|
82057
|
-
footerOffset: 0
|
|
82058
|
-
};
|
|
82059
|
-
|
|
82060
|
-
|
|
82061
|
-
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
82062
|
-
* DataTables interfaces
|
|
82063
|
-
*/
|
|
82064
|
-
|
|
82065
|
-
// Attach for constructor access
|
|
82066
|
-
jquery_default.a.fn.dataTable.FixedHeader = FixedHeader;
|
|
82067
|
-
jquery_default.a.fn.DataTable.FixedHeader = FixedHeader;
|
|
82068
|
-
|
|
82069
|
-
|
|
82070
|
-
// DataTables creation - check if the FixedHeader option has been defined on the
|
|
82071
|
-
// table and if so, initialise
|
|
82072
|
-
jquery_default()(document).on( 'init.dt.dtfh', function (e, settings, json) {
|
|
82073
|
-
if ( e.namespace !== 'dt' ) {
|
|
82074
|
-
return;
|
|
82075
|
-
}
|
|
82076
|
-
|
|
82077
|
-
var init = settings.oInit.fixedHeader;
|
|
82078
|
-
var defaults = js_jquery_dataTables_default.a.defaults.fixedHeader;
|
|
82079
|
-
|
|
82080
|
-
if ( (init || defaults) && ! settings._fixedHeader ) {
|
|
82081
|
-
var opts = jquery_default.a.extend( {}, defaults, init );
|
|
82082
|
-
|
|
82083
|
-
if ( init !== false ) {
|
|
82084
|
-
new FixedHeader( settings, opts );
|
|
82085
|
-
}
|
|
82086
|
-
}
|
|
82087
|
-
} );
|
|
82088
|
-
|
|
82089
|
-
// DataTables API methods
|
|
82090
|
-
js_jquery_dataTables_default.a.Api.register( 'fixedHeader()', function () {} );
|
|
82091
|
-
|
|
82092
|
-
js_jquery_dataTables_default.a.Api.register( 'fixedHeader.adjust()', function () {
|
|
82093
|
-
return this.iterator( 'table', function ( ctx ) {
|
|
82094
|
-
var fh = ctx._fixedHeader;
|
|
82095
|
-
|
|
82096
|
-
if ( fh ) {
|
|
82097
|
-
fh.update();
|
|
82098
|
-
}
|
|
82099
|
-
} );
|
|
82100
|
-
} );
|
|
82101
|
-
|
|
82102
|
-
js_jquery_dataTables_default.a.Api.register( 'fixedHeader.enable()', function ( flag ) {
|
|
82103
|
-
return this.iterator( 'table', function ( ctx ) {
|
|
82104
|
-
var fh = ctx._fixedHeader;
|
|
82105
|
-
|
|
82106
|
-
flag = ( flag !== undefined ? flag : true );
|
|
82107
|
-
if ( fh && flag !== fh.enabled() ) {
|
|
82108
|
-
fh.enable( flag );
|
|
82109
|
-
}
|
|
82110
|
-
} );
|
|
82111
|
-
} );
|
|
82112
|
-
|
|
82113
|
-
js_jquery_dataTables_default.a.Api.register( 'fixedHeader.enabled()', function () {
|
|
82114
|
-
if ( this.context.length ) {
|
|
82115
|
-
var fh = this.context[0]._fixedHeader;
|
|
82116
|
-
|
|
82117
|
-
if ( fh ) {
|
|
82118
|
-
return fh.enabled();
|
|
82119
|
-
}
|
|
82120
|
-
}
|
|
82121
|
-
|
|
82122
|
-
return false;
|
|
82123
|
-
} );
|
|
82124
|
-
|
|
82125
|
-
js_jquery_dataTables_default.a.Api.register( 'fixedHeader.disable()', function ( ) {
|
|
82126
|
-
return this.iterator( 'table', function ( ctx ) {
|
|
82127
|
-
var fh = ctx._fixedHeader;
|
|
82128
|
-
|
|
82129
|
-
if ( fh && fh.enabled() ) {
|
|
82130
|
-
fh.enable( false );
|
|
82131
|
-
}
|
|
82132
|
-
} );
|
|
82133
|
-
} );
|
|
82134
|
-
|
|
82135
|
-
jquery_default.a.each( ['header', 'footer'], function ( i, el ) {
|
|
82136
|
-
js_jquery_dataTables_default.a.Api.register( 'fixedHeader.'+el+'Offset()', function ( offset ) {
|
|
82137
|
-
var ctx = this.context;
|
|
82138
|
-
|
|
82139
|
-
if ( offset === undefined ) {
|
|
82140
|
-
return ctx.length && ctx[0]._fixedHeader ?
|
|
82141
|
-
ctx[0]._fixedHeader[el +'Offset']() :
|
|
82142
|
-
undefined;
|
|
82143
|
-
}
|
|
82144
|
-
|
|
82145
|
-
return this.iterator( 'table', function ( ctx ) {
|
|
82146
|
-
var fh = ctx._fixedHeader;
|
|
82147
|
-
|
|
82148
|
-
if ( fh ) {
|
|
82149
|
-
fh[ el +'Offset' ]( offset );
|
|
82150
|
-
}
|
|
82151
|
-
} );
|
|
82152
|
-
} );
|
|
82153
|
-
} );
|
|
82154
|
-
|
|
82155
|
-
|
|
82156
|
-
/* harmony default export */ var dataTables_fixedHeader = (js_jquery_dataTables_default.a);
|
|
82157
|
-
|
|
82158
|
-
// EXTERNAL MODULE: ./node_modules/datatables.net-fixedheader-dt/css/fixedHeader.dataTables.css
|
|
82159
|
-
var fixedHeader_dataTables = __webpack_require__("4f75");
|
|
82160
|
-
|
|
82161
81071
|
// CONCATENATED MODULE: ./src/components/desktop/datatables.net-plugins/pagination/input.js
|
|
82162
81072
|
|
|
82163
81073
|
|
|
@@ -82873,7 +81783,9 @@ var lodash = __webpack_require__("2ef0");
|
|
|
82873
81783
|
|
|
82874
81784
|
// eslint-disable-line
|
|
82875
81785
|
|
|
82876
|
-
|
|
81786
|
+
|
|
81787
|
+
//import fixedheader from 'datatables.net-fixedheader'; // eslint-disable-line
|
|
81788
|
+
//import 'datatables.net-fixedheader-dt/css/fixedHeader.dataTables.css';
|
|
82877
81789
|
|
|
82878
81790
|
// eslint-disable-line
|
|
82879
81791
|
|
|
@@ -83033,7 +81945,8 @@ var lodash = __webpack_require__("2ef0");
|
|
|
83033
81945
|
actionsView: true,
|
|
83034
81946
|
actionsEdit: true,
|
|
83035
81947
|
actionsDelete: true,
|
|
83036
|
-
|
|
81948
|
+
shortDebouncedAdjustTableColumns: null,
|
|
81949
|
+
longDebouncedAdjustTableColumns: null
|
|
83037
81950
|
};
|
|
83038
81951
|
},
|
|
83039
81952
|
computed: {
|
|
@@ -83384,6 +82297,9 @@ var lodash = __webpack_require__("2ef0");
|
|
|
83384
82297
|
row.select();
|
|
83385
82298
|
}, 350);
|
|
83386
82299
|
}
|
|
82300
|
+
setTimeout(function () {
|
|
82301
|
+
return _this.scrollToRow();
|
|
82302
|
+
}, 500);
|
|
83387
82303
|
|
|
83388
82304
|
// refresh data in selectedRows from datatable
|
|
83389
82305
|
var rowObj = {};
|
|
@@ -84219,6 +83135,13 @@ var lodash = __webpack_require__("2ef0");
|
|
|
84219
83135
|
jquery_default()('html, body').animate({
|
|
84220
83136
|
scrollTop: -this.scrollHeadHeight
|
|
84221
83137
|
}, 'slow');
|
|
83138
|
+
},
|
|
83139
|
+
scrollToRow: function scrollToRow() {
|
|
83140
|
+
var _$row$position;
|
|
83141
|
+
var $row = jquery_default()('tr.selected');
|
|
83142
|
+
jquery_default()('html, body').animate({
|
|
83143
|
+
scrollTop: (_$row$position = $row.position()) === null || _$row$position === void 0 ? void 0 : _$row$position.top
|
|
83144
|
+
}, 'slow');
|
|
84222
83145
|
}
|
|
84223
83146
|
},
|
|
84224
83147
|
watch: {
|
|
@@ -84226,20 +83149,17 @@ var lodash = __webpack_require__("2ef0");
|
|
|
84226
83149
|
this.setFixedThead();
|
|
84227
83150
|
},
|
|
84228
83151
|
onPuiExpandMenu: function onPuiExpandMenu() {
|
|
84229
|
-
|
|
84230
|
-
setTimeout(function () {
|
|
84231
|
-
_this9.adjustTableColumns();
|
|
84232
|
-
}, 180);
|
|
83152
|
+
this.longDebouncedAdjustTableColumns();
|
|
84233
83153
|
},
|
|
84234
83154
|
onPuiSecondMenuShowed: function onPuiSecondMenuShowed() {
|
|
84235
|
-
|
|
84236
|
-
setTimeout(function () {
|
|
84237
|
-
_this0.adjustTableColumns();
|
|
84238
|
-
}, 180);
|
|
83155
|
+
this.longDebouncedAdjustTableColumns();
|
|
84239
83156
|
}
|
|
84240
83157
|
},
|
|
84241
83158
|
created: function created() {
|
|
84242
|
-
var
|
|
83159
|
+
var _this9 = this;
|
|
83160
|
+
// Initialize debounced functions
|
|
83161
|
+
this.shortDebouncedAdjustTableColumns = Object(lodash["debounce"])(this.adjustTableColumns, 80);
|
|
83162
|
+
this.longDebouncedAdjustTableColumns = Object(lodash["debounce"])(this.adjustTableColumns, 180);
|
|
84243
83163
|
this.dateFormat = this.$store.dateFormat;
|
|
84244
83164
|
this.timeFormat = this.$store.timeFormat;
|
|
84245
83165
|
this.toolbarSingleRowNegativeHeight = 0;
|
|
@@ -84256,7 +83176,7 @@ var lodash = __webpack_require__("2ef0");
|
|
|
84256
83176
|
this.tableColumns = [];
|
|
84257
83177
|
this.columnDefs = this.modelColumnDefs;
|
|
84258
83178
|
this.columns && this.columns.forEach(function (column) {
|
|
84259
|
-
|
|
83179
|
+
_this9.tableColumns.push(column);
|
|
84260
83180
|
});
|
|
84261
83181
|
this.addSelectCheckColumn();
|
|
84262
83182
|
this.model = this.$store.getModelByName(this.modelName);
|
|
@@ -84273,23 +83193,23 @@ var lodash = __webpack_require__("2ef0");
|
|
|
84273
83193
|
this.subscribeToActionsEvents();
|
|
84274
83194
|
},
|
|
84275
83195
|
mounted: function mounted() {
|
|
84276
|
-
var
|
|
83196
|
+
var _this0 = this;
|
|
84277
83197
|
this.createDatatable();
|
|
84278
83198
|
this.adjustTableColumns();
|
|
84279
|
-
this.
|
|
84280
|
-
window.addEventListener('resize', this.debouncedAdjustTableColumns);
|
|
84281
|
-
window.addEventListener('wheel', this.refreshDatatableScrollHeadInner = function (event) {
|
|
83199
|
+
this.refreshDatatableScrollHeadInner = function (event) {
|
|
84282
83200
|
if (event.deltaY < 0) {
|
|
84283
83201
|
// scrolling up
|
|
84284
|
-
|
|
83202
|
+
_this0.shortDebouncedAdjustTableColumns();
|
|
84285
83203
|
}
|
|
84286
|
-
}
|
|
83204
|
+
};
|
|
83205
|
+
window.addEventListener('resize', this.longDebouncedAdjustTableColumns);
|
|
83206
|
+
window.addEventListener('wheel', this.refreshDatatableScrollHeadInner);
|
|
84287
83207
|
},
|
|
84288
83208
|
updated: function updated() {
|
|
84289
83209
|
this.setFixedThead();
|
|
84290
83210
|
},
|
|
84291
83211
|
beforeDestroy: function beforeDestroy() {
|
|
84292
|
-
window.removeEventListener('resize', this.
|
|
83212
|
+
window.removeEventListener('resize', this.longDebouncedAdjustTableColumns);
|
|
84293
83213
|
window.removeEventListener('wheel', this.refreshDatatableScrollHeadInner);
|
|
84294
83214
|
this.table.destroy(true);
|
|
84295
83215
|
if (this.masterDetail && (!this.model.searcher || !this.model.searcher.goToElement)) {
|
|
@@ -84309,11 +83229,11 @@ var lodash = __webpack_require__("2ef0");
|
|
|
84309
83229
|
});
|
|
84310
83230
|
// CONCATENATED MODULE: ./src/components/desktop/PuiSimpleDatatable.vue?vue&type=script&lang=js
|
|
84311
83231
|
/* harmony default export */ var desktop_PuiSimpleDatatablevue_type_script_lang_js = (PuiSimpleDatatablevue_type_script_lang_js);
|
|
84312
|
-
// EXTERNAL MODULE: ./src/components/desktop/PuiSimpleDatatable.vue?vue&type=style&index=0&id=
|
|
84313
|
-
var
|
|
83232
|
+
// EXTERNAL MODULE: ./src/components/desktop/PuiSimpleDatatable.vue?vue&type=style&index=0&id=673ef7c9&prod&lang=postcss&scoped=true
|
|
83233
|
+
var PuiSimpleDatatablevue_type_style_index_0_id_673ef7c9_prod_lang_postcss_scoped_true = __webpack_require__("c398");
|
|
84314
83234
|
|
|
84315
|
-
// EXTERNAL MODULE: ./src/components/desktop/PuiSimpleDatatable.vue?vue&type=style&index=1&id=
|
|
84316
|
-
var
|
|
83235
|
+
// EXTERNAL MODULE: ./src/components/desktop/PuiSimpleDatatable.vue?vue&type=style&index=1&id=673ef7c9&prod&lang=css
|
|
83236
|
+
var PuiSimpleDatatablevue_type_style_index_1_id_673ef7c9_prod_lang_css = __webpack_require__("666e");
|
|
84317
83237
|
|
|
84318
83238
|
// CONCATENATED MODULE: ./src/components/desktop/PuiSimpleDatatable.vue
|
|
84319
83239
|
|
|
@@ -84327,11 +83247,11 @@ var PuiSimpleDatatablevue_type_style_index_1_id_08a16ede_prod_lang_css = __webpa
|
|
|
84327
83247
|
|
|
84328
83248
|
var PuiSimpleDatatable_component = normalizeComponent(
|
|
84329
83249
|
desktop_PuiSimpleDatatablevue_type_script_lang_js,
|
|
84330
|
-
|
|
84331
|
-
|
|
83250
|
+
PuiSimpleDatatablevue_type_template_id_673ef7c9_scoped_true_render,
|
|
83251
|
+
PuiSimpleDatatablevue_type_template_id_673ef7c9_scoped_true_staticRenderFns,
|
|
84332
83252
|
false,
|
|
84333
83253
|
null,
|
|
84334
|
-
"
|
|
83254
|
+
"673ef7c9",
|
|
84335
83255
|
null
|
|
84336
83256
|
|
|
84337
83257
|
)
|
|
@@ -85822,8 +84742,8 @@ var PuiGridAdvancedFilterDialogvue_type_template_id_888d7730_staticRenderFns = [
|
|
|
85822
84742
|
|
|
85823
84743
|
// CONCATENATED MODULE: ./src/components/desktop/toolbar/filtering/PuiGridAdvancedFilterDialog.vue?vue&type=template&id=888d7730
|
|
85824
84744
|
|
|
85825
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cf80b3ea-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../pui9-components/src/components/PuiFilter.vue?vue&type=template&id=
|
|
85826
|
-
var
|
|
84745
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cf80b3ea-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../pui9-components/src/components/PuiFilter.vue?vue&type=template&id=7ffc6605
|
|
84746
|
+
var PuiFiltervue_type_template_id_7ffc6605_render = function render() {
|
|
85827
84747
|
var _vm = this,
|
|
85828
84748
|
_c = _vm._self._c;
|
|
85829
84749
|
return _c('v-container', {
|
|
@@ -85842,9 +84762,9 @@ var PuiFiltervue_type_template_id_5f23694f_render = function render() {
|
|
|
85842
84762
|
}
|
|
85843
84763
|
}) : _vm._e()], 1);
|
|
85844
84764
|
};
|
|
85845
|
-
var
|
|
84765
|
+
var PuiFiltervue_type_template_id_7ffc6605_staticRenderFns = [];
|
|
85846
84766
|
|
|
85847
|
-
// CONCATENATED MODULE: ../pui9-components/src/components/PuiFilter.vue?vue&type=template&id=
|
|
84767
|
+
// CONCATENATED MODULE: ../pui9-components/src/components/PuiFilter.vue?vue&type=template&id=7ffc6605
|
|
85848
84768
|
|
|
85849
84769
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cf80b3ea-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../pui9-components/src/components/PuiFilterGroup.vue?vue&type=template&id=dc303b8a
|
|
85850
84770
|
var PuiFilterGroupvue_type_template_id_dc303b8a_render = function render() {
|
|
@@ -86026,8 +84946,8 @@ var es_string_at_alternative = __webpack_require__("46fc");
|
|
|
86026
84946
|
// EXTERNAL MODULE: ../pui9-components/node_modules/core-js/modules/es.string.replace.js
|
|
86027
84947
|
var modules_es_string_replace = __webpack_require__("8869");
|
|
86028
84948
|
|
|
86029
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cf80b3ea-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../pui9-components/src/components/PuiFilterRule.vue?vue&type=template&id=
|
|
86030
|
-
var
|
|
84949
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cf80b3ea-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../pui9-components/src/components/PuiFilterRule.vue?vue&type=template&id=0b06fdb4
|
|
84950
|
+
var PuiFilterRulevue_type_template_id_0b06fdb4_render = function render() {
|
|
86031
84951
|
var _vm = this,
|
|
86032
84952
|
_c = _vm._self._c;
|
|
86033
84953
|
return _c('v-layout', {
|
|
@@ -86273,7 +85193,7 @@ var PuiFilterRulevue_type_template_id_2b452968_render = function render() {
|
|
|
86273
85193
|
attrs: {
|
|
86274
85194
|
"xs5": ""
|
|
86275
85195
|
}
|
|
86276
|
-
}, [_vm.columnHasFilterColumnValues && _vm.filterRuleModel.op === 'eq' || _vm.filterRuleModel.op === 'ne' ? _c('v-autocomplete', {
|
|
85196
|
+
}, [_vm.columnHasFilterColumnValues && _vm.filterRuleModel.op === 'eq' || _vm.columnHasFilterColumnValues && _vm.filterRuleModel.op === 'ne' ? _c('v-autocomplete', {
|
|
86277
85197
|
attrs: {
|
|
86278
85198
|
"append-icon": "fa fa-angle-down",
|
|
86279
85199
|
"solo": "",
|
|
@@ -86384,9 +85304,9 @@ var PuiFilterRulevue_type_template_id_2b452968_render = function render() {
|
|
|
86384
85304
|
}])
|
|
86385
85305
|
}, [_c('span', [_vm._v(_vm._s(_vm.$t('puidatatables.caseSensitive')))])])], 1)], 2)]], 2)], 1);
|
|
86386
85306
|
};
|
|
86387
|
-
var
|
|
85307
|
+
var PuiFilterRulevue_type_template_id_0b06fdb4_staticRenderFns = [];
|
|
86388
85308
|
|
|
86389
|
-
// CONCATENATED MODULE: ../pui9-components/src/components/PuiFilterRule.vue?vue&type=template&id=
|
|
85309
|
+
// CONCATENATED MODULE: ../pui9-components/src/components/PuiFilterRule.vue?vue&type=template&id=0b06fdb4
|
|
86390
85310
|
|
|
86391
85311
|
// EXTERNAL MODULE: ../pui9-components/node_modules/core-js/modules/es.array.concat.js
|
|
86392
85312
|
var modules_es_array_concat = __webpack_require__("d01e");
|
|
@@ -86832,8 +85752,8 @@ var modules_web_dom_collections_for_each = __webpack_require__("5099");
|
|
|
86832
85752
|
|
|
86833
85753
|
var PuiFilterRule_component = normalizeComponent(
|
|
86834
85754
|
components_PuiFilterRulevue_type_script_lang_js,
|
|
86835
|
-
|
|
86836
|
-
|
|
85755
|
+
PuiFilterRulevue_type_template_id_0b06fdb4_render,
|
|
85756
|
+
PuiFilterRulevue_type_template_id_0b06fdb4_staticRenderFns,
|
|
86837
85757
|
false,
|
|
86838
85758
|
null,
|
|
86839
85759
|
null,
|
|
@@ -87034,6 +85954,7 @@ var PuiFilterGroup_component = normalizeComponent(
|
|
|
87034
85954
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!../pui9-components/src/components/PuiFilter.vue?vue&type=script&lang=js
|
|
87035
85955
|
|
|
87036
85956
|
|
|
85957
|
+
|
|
87037
85958
|
/* harmony default export */ var PuiFiltervue_type_script_lang_js = ({
|
|
87038
85959
|
name: 'PuiFilter',
|
|
87039
85960
|
components: {
|
|
@@ -87049,6 +85970,11 @@ var PuiFilterGroup_component = normalizeComponent(
|
|
|
87049
85970
|
//type: Object,
|
|
87050
85971
|
required: true
|
|
87051
85972
|
},
|
|
85973
|
+
mandatoryRule: {
|
|
85974
|
+
type: Boolean,
|
|
85975
|
+
required: false,
|
|
85976
|
+
default: true
|
|
85977
|
+
},
|
|
87052
85978
|
columns: {
|
|
87053
85979
|
type: Array,
|
|
87054
85980
|
required: true
|
|
@@ -87078,32 +86004,36 @@ var PuiFilterGroup_component = normalizeComponent(
|
|
|
87078
86004
|
},
|
|
87079
86005
|
methods: {
|
|
87080
86006
|
retrieveGroupsData: function retrieveGroupsData() {
|
|
87081
|
-
var _this = this
|
|
86007
|
+
var _this = this,
|
|
86008
|
+
_this$filterModel;
|
|
87082
86009
|
// validation - al menos una regla por filtro
|
|
87083
86010
|
|
|
87084
86011
|
var validFilter = true;
|
|
87085
|
-
var
|
|
87086
|
-
var _validate = function validate(filterGroupModel) {
|
|
86012
|
+
var validate = function validate(filterGroupModel) {
|
|
87087
86013
|
if (filterGroupModel) {
|
|
87088
|
-
|
|
87089
|
-
|
|
87090
|
-
|
|
87091
|
-
|
|
87092
|
-
|
|
87093
|
-
|
|
87094
|
-
|
|
87095
|
-
|
|
87096
|
-
|
|
87097
|
-
|
|
86014
|
+
var _iterator = _createForOfIteratorHelper(filterGroupModel.rules),
|
|
86015
|
+
_step;
|
|
86016
|
+
try {
|
|
86017
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
86018
|
+
var rule = _step.value;
|
|
86019
|
+
if (_this.mandatoryRule && (!rule.field || !rule.op || !rule.data && rule.op !== 'nn' && rule.op !== 'nu')) {
|
|
86020
|
+
_this.$puiNotify.warning(_this.$t('puidatatables.not-valid-rule-error'));
|
|
86021
|
+
validFilter = false;
|
|
86022
|
+
return;
|
|
86023
|
+
}
|
|
86024
|
+
if (_typeof(rule.data) !== 'object' && (rule.op === 'in' || rule.op === 'ni')) {
|
|
86025
|
+
rule.data = rule.data.split(',');
|
|
86026
|
+
}
|
|
87098
86027
|
}
|
|
87099
|
-
}
|
|
87100
|
-
|
|
87101
|
-
|
|
86028
|
+
} catch (err) {
|
|
86029
|
+
_iterator.e(err);
|
|
86030
|
+
} finally {
|
|
86031
|
+
_iterator.f();
|
|
87102
86032
|
}
|
|
87103
86033
|
}
|
|
87104
86034
|
};
|
|
87105
|
-
this.filterModel &&
|
|
87106
|
-
if (
|
|
86035
|
+
this.filterModel && validate(this.filterModel);
|
|
86036
|
+
if (this.mandatoryRule && ((_this$filterModel = this.filterModel) === null || _this$filterModel === void 0 || (_this$filterModel = _this$filterModel.rules) === null || _this$filterModel === void 0 ? void 0 : _this$filterModel.length) < 1) {
|
|
87107
86037
|
this.$puiNotify.warning(this.$t('puidatatables.no-rules-error'));
|
|
87108
86038
|
return null;
|
|
87109
86039
|
} else if (validFilter === true) {
|
|
@@ -87128,8 +86058,8 @@ var PuiFilterGroup_component = normalizeComponent(
|
|
|
87128
86058
|
|
|
87129
86059
|
var PuiFilter_component = normalizeComponent(
|
|
87130
86060
|
components_PuiFiltervue_type_script_lang_js,
|
|
87131
|
-
|
|
87132
|
-
|
|
86061
|
+
PuiFiltervue_type_template_id_7ffc6605_render,
|
|
86062
|
+
PuiFiltervue_type_template_id_7ffc6605_staticRenderFns,
|
|
87133
86063
|
false,
|
|
87134
86064
|
null,
|
|
87135
86065
|
null,
|
|
@@ -88827,8 +87757,8 @@ var PuiGridSortBtn_component = normalizeComponent(
|
|
|
88827
87757
|
)
|
|
88828
87758
|
|
|
88829
87759
|
/* harmony default export */ var PuiGridSortBtn = (PuiGridSortBtn_component.exports);
|
|
88830
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cf80b3ea-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/desktop/toolbar/searching/PuiGridSearcher.vue?vue&type=template&id=
|
|
88831
|
-
var
|
|
87760
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cf80b3ea-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/desktop/toolbar/searching/PuiGridSearcher.vue?vue&type=template&id=11bd0287
|
|
87761
|
+
var PuiGridSearchervue_type_template_id_11bd0287_render = function render() {
|
|
88832
87762
|
var _vm = this,
|
|
88833
87763
|
_c = _vm._self._c;
|
|
88834
87764
|
return _c('div', {
|
|
@@ -88903,9 +87833,9 @@ var PuiGridSearchervue_type_template_id_684fde12_render = function render() {
|
|
|
88903
87833
|
}
|
|
88904
87834
|
}) : _vm._e()], 1);
|
|
88905
87835
|
};
|
|
88906
|
-
var
|
|
87836
|
+
var PuiGridSearchervue_type_template_id_11bd0287_staticRenderFns = [];
|
|
88907
87837
|
|
|
88908
|
-
// CONCATENATED MODULE: ./src/components/desktop/toolbar/searching/PuiGridSearcher.vue?vue&type=template&id=
|
|
87838
|
+
// CONCATENATED MODULE: ./src/components/desktop/toolbar/searching/PuiGridSearcher.vue?vue&type=template&id=11bd0287
|
|
88909
87839
|
|
|
88910
87840
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cf80b3ea-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/desktop/toolbar/searching/PuiGridSearcherColumnsList.vue?vue&type=template&id=13818202
|
|
88911
87841
|
var PuiGridSearcherColumnsListvue_type_template_id_13818202_render = function render() {
|
|
@@ -89303,12 +88233,16 @@ var PuiGridSearcherColumnsList_component = normalizeComponent(
|
|
|
89303
88233
|
jquery_default()('.pui-completeDatatable_desktop__table table').on('draw.dt', function () {
|
|
89304
88234
|
self.searchRunning = false;
|
|
89305
88235
|
});
|
|
88236
|
+
jquery_default()('.pui-completeDatatable_desktop_detail__table table').on('draw.dt', function () {
|
|
88237
|
+
self.searchRunning = false;
|
|
88238
|
+
});
|
|
89306
88239
|
},
|
|
89307
88240
|
beforeDestroy: function beforeDestroy() {
|
|
89308
88241
|
this.$puiEvents.$off("onPui-apply-configuration-".concat(this.modelName));
|
|
89309
88242
|
this.$puiEvents.$off("onPuiApplySearchingColumns-".concat(this.modelName));
|
|
89310
88243
|
this.$puiEvents.$off("onPuiApplySearchingColumnsDisable-".concat(this.modelName));
|
|
89311
88244
|
jquery_default()('.pui-completeDatatable_desktop__table table').off('draw.dt');
|
|
88245
|
+
jquery_default()('.pui-completeDatatable_desktop_detail__table table').off('draw.dt');
|
|
89312
88246
|
},
|
|
89313
88247
|
methods: {
|
|
89314
88248
|
initConf: function initConf() {
|
|
@@ -89402,8 +88336,8 @@ var PuiGridSearcherColumnsList_component = normalizeComponent(
|
|
|
89402
88336
|
|
|
89403
88337
|
var PuiGridSearcher_component = normalizeComponent(
|
|
89404
88338
|
searching_PuiGridSearchervue_type_script_lang_js,
|
|
89405
|
-
|
|
89406
|
-
|
|
88339
|
+
PuiGridSearchervue_type_template_id_11bd0287_render,
|
|
88340
|
+
PuiGridSearchervue_type_template_id_11bd0287_staticRenderFns,
|
|
89407
88341
|
false,
|
|
89408
88342
|
null,
|
|
89409
88343
|
null,
|
|
@@ -95358,8 +94292,8 @@ var PuiDatalist_component = normalizeComponent(
|
|
|
95358
94292
|
)
|
|
95359
94293
|
|
|
95360
94294
|
/* harmony default export */ var PuiDatalist = (PuiDatalist_component.exports);
|
|
95361
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cf80b3ea-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/puiaudit/PuiAuditForm.vue?vue&type=template&id=
|
|
95362
|
-
var
|
|
94295
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cf80b3ea-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/puiaudit/PuiAuditForm.vue?vue&type=template&id=47f28786
|
|
94296
|
+
var PuiAuditFormvue_type_template_id_47f28786_render = function render() {
|
|
95363
94297
|
var _vm = this,
|
|
95364
94298
|
_c = _vm._self._c;
|
|
95365
94299
|
return _c('div', {
|
|
@@ -95367,76 +94301,72 @@ var PuiAuditFormvue_type_template_id_f82d1292_render = function render() {
|
|
|
95367
94301
|
}, [_c('table', [_c('thead', [_c('tr', [_c('th', [_vm._v(_vm._s(_vm.$t('puiaudit.attribute')))]), _vm.type === 'update' ? _c('th', [_vm._v(_vm._s(_vm.$t('puiaudit.oldValue')))]) : _vm._e(), _c('th', [_vm._v(_vm._s(_vm.$t('puiaudit.newValue')))])])]), _c('tbody', _vm._l(_vm.content, function (item, index) {
|
|
95368
94302
|
return _c('tr', {
|
|
95369
94303
|
key: index
|
|
95370
|
-
}, [_c('td', [_c('span', [_vm._v(_vm._s(item.attribute))])]), _vm.type === 'update' ? [
|
|
95371
|
-
return _c('tr', {
|
|
95372
|
-
key: internalIndex
|
|
95373
|
-
}, [_c('pui-audit-item', {
|
|
95374
|
-
attrs: {
|
|
95375
|
-
"model": internalItem
|
|
95376
|
-
}
|
|
95377
|
-
})], 1);
|
|
95378
|
-
}), 0) : _c('pui-audit-item', {
|
|
94304
|
+
}, [_c('td', [_c('span', [_vm._v(_vm._s(item.attribute))])]), _vm.type === 'update' ? [_c('pui-audit-item', {
|
|
95379
94305
|
attrs: {
|
|
95380
94306
|
"model": item.oldValue
|
|
95381
94307
|
}
|
|
95382
|
-
})] : _vm._e(),
|
|
95383
|
-
return _c('tr', {
|
|
95384
|
-
key: internalIndex
|
|
95385
|
-
}, [_c('pui-audit-item', {
|
|
95386
|
-
attrs: {
|
|
95387
|
-
"model": internalItem
|
|
95388
|
-
}
|
|
95389
|
-
})], 1);
|
|
95390
|
-
}), 0) : _c('pui-audit-item', {
|
|
94308
|
+
})] : _vm._e(), [_c('pui-audit-item', {
|
|
95391
94309
|
attrs: {
|
|
95392
94310
|
"model": item.value
|
|
95393
94311
|
}
|
|
95394
|
-
})], 2);
|
|
94312
|
+
})]], 2);
|
|
95395
94313
|
}), 0)])]);
|
|
95396
94314
|
};
|
|
95397
|
-
var
|
|
94315
|
+
var PuiAuditFormvue_type_template_id_47f28786_staticRenderFns = [];
|
|
94316
|
+
|
|
94317
|
+
// CONCATENATED MODULE: ./src/components/puiaudit/PuiAuditForm.vue?vue&type=template&id=47f28786
|
|
95398
94318
|
|
|
95399
|
-
// CONCATENATED MODULE: ./src/components/puiaudit/
|
|
94319
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cf80b3ea-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/puiaudit/PuiAuditItem.vue?vue&type=template&id=67aaeeda
|
|
95400
94320
|
|
|
95401
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"cf80b3ea-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/puiaudit/PuiAuditItem.vue?vue&type=template&id=0e03d588
|
|
95402
94321
|
|
|
95403
|
-
var
|
|
94322
|
+
var PuiAuditItemvue_type_template_id_67aaeeda_render = function render() {
|
|
95404
94323
|
var _vm = this,
|
|
95405
94324
|
_c = _vm._self._c;
|
|
95406
|
-
return _c('td', [!_vm.isObject(_vm.model) ? _c('span', [_vm._v(" " + _vm._s(_vm.printValue(_vm.model)))]) : _vm.
|
|
95407
|
-
return
|
|
94325
|
+
return _c('td', [!_vm.model || _vm.isArray(_vm.model) && _vm.model.length === 0 ? [_c('span', [_vm._v(" ")])] : _vm.model && !_vm.isObject(_vm.model) ? [_c('span', [_vm._v(" " + _vm._s(_vm.printValue(_vm.model)))])] : _vm.model && _vm.isObject(_vm.model) ? [_c('table', [_vm.mainHeaders ? _c('tr', [_c('th', [_vm._v(_vm._s(_vm.$t('puiaudit.attribute')))]), _c('th', [_vm._v(_vm._s(_vm.$t('puiaudit.value')))])]) : _vm._e(), _vm._l(Object.entries(_vm.model), function (item, index) {
|
|
94326
|
+
return [item[1] && _vm.isObject(item[1]) ? [_vm._l(Object.entries(item[1]), function (sitem, sindex) {
|
|
94327
|
+
return [_c('tr', {
|
|
94328
|
+
key: "".concat(index, "-").concat(sindex)
|
|
94329
|
+
}, [sitem[1] && sitem[1].attribute ? [_c('td', [_c('span', [_vm._v(_vm._s(sitem[1].attribute))])]), _c('td', [_c('span', [_vm._v(_vm._s(_vm.printValue(sitem[1].value)))])])] : [_c('td', [_c('span', [_vm._v(_vm._s(sitem[0]))])]), _c('td', [_c('span', [_vm._v(_vm._s(_vm.printValue(sitem[1])))])])]], 2)];
|
|
94330
|
+
})] : _c('tr', {
|
|
95408
94331
|
key: index
|
|
95409
|
-
}, [_c('td', [_c('span', [_vm._v(_vm._s(item[0]))])]), _c('td', [_c('span', [_vm._v(_vm._s(_vm.printValue(item[1])))])])]);
|
|
94332
|
+
}, [_c('td', [_c('span', [_vm._v(_vm._s(item[0]))])]), _c('td', [_c('span', [_vm._v(_vm._s(_vm.printValue(item[1])))])])])];
|
|
95410
94333
|
})], 2)] : _vm._e()], 2);
|
|
95411
94334
|
};
|
|
95412
|
-
var
|
|
94335
|
+
var PuiAuditItemvue_type_template_id_67aaeeda_staticRenderFns = [];
|
|
95413
94336
|
|
|
95414
|
-
// CONCATENATED MODULE: ./src/components/puiaudit/PuiAuditItem.vue?vue&type=template&id=
|
|
94337
|
+
// CONCATENATED MODULE: ./src/components/puiaudit/PuiAuditItem.vue?vue&type=template&id=67aaeeda
|
|
95415
94338
|
|
|
95416
94339
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/puiaudit/PuiAuditItem.vue?vue&type=script&lang=js
|
|
95417
94340
|
|
|
95418
94341
|
|
|
94342
|
+
|
|
94343
|
+
|
|
95419
94344
|
/* harmony default export */ var PuiAuditItemvue_type_script_lang_js = ({
|
|
95420
94345
|
name: 'PuiAuditItem',
|
|
95421
94346
|
props: {
|
|
95422
94347
|
model: {
|
|
95423
94348
|
required: true
|
|
95424
|
-
},
|
|
95425
|
-
headers: {
|
|
95426
|
-
type: Boolean,
|
|
95427
|
-
default: false
|
|
95428
94349
|
}
|
|
95429
94350
|
},
|
|
95430
|
-
|
|
95431
|
-
|
|
94351
|
+
data: function data() {
|
|
94352
|
+
return {
|
|
94353
|
+
mainHeaders: true
|
|
94354
|
+
};
|
|
95432
94355
|
},
|
|
95433
94356
|
methods: {
|
|
95434
|
-
|
|
95435
|
-
return
|
|
94357
|
+
isArray: function isArray(value) {
|
|
94358
|
+
return Array.isArray(value);
|
|
95436
94359
|
},
|
|
95437
94360
|
isObject: function isObject(value) {
|
|
95438
94361
|
return _typeof(value) === 'object';
|
|
95439
94362
|
},
|
|
94363
|
+
printValue: function printValue(value) {
|
|
94364
|
+
if (value) {
|
|
94365
|
+
return this.isDate(value) ? this.getLocalDate(value) : value.toString();
|
|
94366
|
+
} else {
|
|
94367
|
+
return null;
|
|
94368
|
+
}
|
|
94369
|
+
},
|
|
95440
94370
|
isDate: function isDate(value) {
|
|
95441
94371
|
try {
|
|
95442
94372
|
return value.indexOf('T') > -1 && value.indexOf('Z') > -1 && this.getLocalDate(value) != 'Invalid date';
|
|
@@ -95445,7 +94375,7 @@ var PuiAuditItemvue_type_template_id_0e03d588_staticRenderFns = [];
|
|
|
95445
94375
|
}
|
|
95446
94376
|
},
|
|
95447
94377
|
getLocalDate: function getLocalDate(value) {
|
|
95448
|
-
return this.$dateTimeUtils.getLocalFormattedDate(value, "".concat(this.$store.dateFormat, " ").concat(this.$store.timeFormat));
|
|
94378
|
+
return this.$dateTimeUtils.getLocalFormattedDate(value, "".concat(this.$store.getters.dateFormat, " ").concat(this.$store.getters.timeFormat));
|
|
95449
94379
|
}
|
|
95450
94380
|
}
|
|
95451
94381
|
});
|
|
@@ -95461,8 +94391,8 @@ var PuiAuditItemvue_type_template_id_0e03d588_staticRenderFns = [];
|
|
|
95461
94391
|
|
|
95462
94392
|
var PuiAuditItem_component = normalizeComponent(
|
|
95463
94393
|
puiaudit_PuiAuditItemvue_type_script_lang_js,
|
|
95464
|
-
|
|
95465
|
-
|
|
94394
|
+
PuiAuditItemvue_type_template_id_67aaeeda_render,
|
|
94395
|
+
PuiAuditItemvue_type_template_id_67aaeeda_staticRenderFns,
|
|
95466
94396
|
false,
|
|
95467
94397
|
null,
|
|
95468
94398
|
null,
|
|
@@ -95500,26 +94430,26 @@ var PuiAuditItem_component = normalizeComponent(
|
|
|
95500
94430
|
this.type = newValue.type;
|
|
95501
94431
|
this.content = JSON.parse(newValue.content);
|
|
95502
94432
|
}
|
|
94433
|
+
},
|
|
94434
|
+
created: function created() {
|
|
94435
|
+
this.type = this.model.type;
|
|
94436
|
+
this.content = JSON.parse(this.model.content);
|
|
95503
94437
|
}
|
|
95504
94438
|
});
|
|
95505
94439
|
// CONCATENATED MODULE: ./src/components/puiaudit/PuiAuditForm.vue?vue&type=script&lang=js
|
|
95506
94440
|
/* harmony default export */ var puiaudit_PuiAuditFormvue_type_script_lang_js = (PuiAuditFormvue_type_script_lang_js);
|
|
95507
|
-
// EXTERNAL MODULE: ./src/components/puiaudit/PuiAuditForm.vue?vue&type=style&index=0&id=f82d1292&prod&lang=postcss
|
|
95508
|
-
var PuiAuditFormvue_type_style_index_0_id_f82d1292_prod_lang_postcss = __webpack_require__("ca82");
|
|
95509
|
-
|
|
95510
94441
|
// CONCATENATED MODULE: ./src/components/puiaudit/PuiAuditForm.vue
|
|
95511
94442
|
|
|
95512
94443
|
|
|
95513
94444
|
|
|
95514
94445
|
|
|
95515
94446
|
|
|
95516
|
-
|
|
95517
94447
|
/* normalize component */
|
|
95518
94448
|
|
|
95519
94449
|
var PuiAuditForm_component = normalizeComponent(
|
|
95520
94450
|
puiaudit_PuiAuditFormvue_type_script_lang_js,
|
|
95521
|
-
|
|
95522
|
-
|
|
94451
|
+
PuiAuditFormvue_type_template_id_47f28786_render,
|
|
94452
|
+
PuiAuditFormvue_type_template_id_47f28786_staticRenderFns,
|
|
95523
94453
|
false,
|
|
95524
94454
|
null,
|
|
95525
94455
|
null,
|