datatables.net-fixedcolumns-dt
Advanced tools
| /*! DataTables integration for DataTables' FixedColumns | ||
| * © SpryMedia Ltd - datatables.net/license | ||
| */ | ||
| import $ from"jquery";import DataTable from"datatables.net-dt";import DataTable from"datatables.net-fixedcolumns";export default DataTable; |
| /*! DataTables integration for DataTables' FixedColumns | ||
| * © SpryMedia Ltd - datatables.net/license | ||
| */ | ||
| import $ from 'jquery'; | ||
| import DataTable from 'datatables.net-dt'; | ||
| import DataTable from 'datatables.net-fixedcolumns'; | ||
| export default DataTable; |
| // Type definitions for DataTables FixedColumns | ||
| // | ||
| // Project: https://datatables.net/extensions/fixedcolumns/, https://datatables.net | ||
| /// <reference types="jquery" /> | ||
| import DataTables, {Api} from 'datatables.net'; | ||
| import {IDefaults} from './FixedColumns'; | ||
| export default DataTables; | ||
| type DeepPartial<T> = T extends object ? { | ||
| [P in keyof T]?: DeepPartial<T[P]>; | ||
| } : T; | ||
| /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| * DataTables' types integration | ||
| */ | ||
| declare module 'datatables.net' { | ||
| interface Config { | ||
| /** | ||
| * FixedColumns extension options | ||
| */ | ||
| fixedColumns?: boolean | ConfigFixedColumns; | ||
| } | ||
| interface ConfigLanguage { | ||
| /** | ||
| * StateRestore language options | ||
| */ | ||
| fixedColumns?: ConfigFixedColumnsLanguage; | ||
| } | ||
| interface Api<T> { | ||
| /** | ||
| * FixedColumns API Methods | ||
| */ | ||
| fixedColumns(): ApiFixedColumns<T>; | ||
| } | ||
| interface ApiStatic { | ||
| /** | ||
| * FixedColumns class | ||
| */ | ||
| FixedColumns: { | ||
| /** | ||
| * Create a new FixedColumns instance for the target DataTable | ||
| */ | ||
| new (dt: Api<any>, settings: string[] | ConfigFixedColumns | ConfigFixedColumns[]); | ||
| /** | ||
| * FixedColumns version | ||
| */ | ||
| version: string; | ||
| /** | ||
| * Default configuration values | ||
| */ | ||
| defaults: ConfigFixedColumns; | ||
| } | ||
| } | ||
| } | ||
| /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| * Options | ||
| */ | ||
| interface ConfigFixedColumns extends DeepPartial<IDefaults> {} | ||
| interface ConfigFixedColumnsLanguage extends DeepPartial<IDefaults['i18n']> {} | ||
| /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| * API | ||
| */ | ||
| interface ApiFixedColumns<T> extends Api<T> { | ||
| /** | ||
| * Get the number of fixed left columns | ||
| */ | ||
| left(): number; | ||
| /** | ||
| * Set the number of fixed left columns | ||
| */ | ||
| left(val: number): Api<T>; | ||
| /** | ||
| * Get the number of fixed right columns | ||
| */ | ||
| right(): number; | ||
| /** | ||
| * Set the number of fixed right columns | ||
| */ | ||
| right(val: number): Api<T>; | ||
| } |
| table.dataTable thead tr > .dtfc-fixed-left, | ||
| table.dataTable thead tr > .dtfc-fixed-right { | ||
| z-index: 1; | ||
| table.dataTable thead tr > .dtfc-fixed-right, | ||
| table.dataTable tfoot tr > .dtfc-fixed-left, | ||
| table.dataTable tfoot tr > .dtfc-fixed-right { | ||
| top: 0; | ||
| bottom: 0; | ||
| z-index: 3; | ||
| background-color: white; | ||
@@ -5,0 +9,0 @@ } |
@@ -1,1 +0,1 @@ | ||
| table.dataTable thead tr>.dtfc-fixed-left,table.dataTable thead tr>.dtfc-fixed-right{z-index:1;background-color:white}table.dataTable tbody tr>.dtfc-fixed-left,table.dataTable tbody tr>.dtfc-fixed-right{z-index:1;background-color:white}div.dtfc-left-top-blocker,div.dtfc-right-top-blocker{background-color:white} | ||
| table.dataTable thead tr>.dtfc-fixed-left,table.dataTable thead tr>.dtfc-fixed-right,table.dataTable tfoot tr>.dtfc-fixed-left,table.dataTable tfoot tr>.dtfc-fixed-right{top:0;bottom:0;z-index:3;background-color:white}table.dataTable tbody tr>.dtfc-fixed-left,table.dataTable tbody tr>.dtfc-fixed-right{z-index:1;background-color:white}div.dtfc-left-top-blocker,div.dtfc-right-top-blocker{background-color:white} |
@@ -0,36 +1,52 @@ | ||
| /*! DataTables integration for DataTables' FixedColumns | ||
| * ©2016 SpryMedia Ltd - datatables.net/license | ||
| * © SpryMedia Ltd - datatables.net/license | ||
| */ | ||
| (function (factory) { | ||
| if (typeof define === 'function' && define.amd) { | ||
| // AMD | ||
| define(['jquery', 'datatables.net-dt', 'datatables.net-fixedcolumns'], function ($) { | ||
| return factory($); | ||
| }); | ||
| } | ||
| else if (typeof exports === 'object') { | ||
| // CommonJS | ||
| module.exports = function (root, $) { | ||
| if (!root) { | ||
| root = window; | ||
| } | ||
| if (!$ || !$.fn.dataTable) { | ||
| // eslint-disable-next-line @typescript-eslint/no-var-requires | ||
| $ = require('datatables.net-dt')(root, $).$; | ||
| } | ||
| if (!$.fn.dataTable.FixedColumns) { | ||
| // eslint-disable-next-line @typescript-eslint/no-var-requires | ||
| require('datatables.net-fixedcolumns')(root, $); | ||
| } | ||
| return factory($); | ||
| }; | ||
| } | ||
| else { | ||
| // Browser | ||
| factory(jQuery); | ||
| } | ||
| }(function ($) { | ||
| 'use strict'; | ||
| var dataTable = $.fn.dataTable; | ||
| return dataTable.fixedColumns; | ||
| (function( factory ){ | ||
| if ( typeof define === 'function' && define.amd ) { | ||
| // AMD | ||
| define( ['jquery', 'datatables.net-dt', 'datatables.net-fixedcolumns'], function ( $ ) { | ||
| return factory( $, window, document ); | ||
| } ); | ||
| } | ||
| else if ( typeof exports === 'object' ) { | ||
| // CommonJS | ||
| module.exports = function (root, $) { | ||
| if ( ! root ) { | ||
| // CommonJS environments without a window global must pass a | ||
| // root. This will give an error otherwise | ||
| root = window; | ||
| } | ||
| if ( ! $ ) { | ||
| $ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window | ||
| require('jquery') : | ||
| require('jquery')( root ); | ||
| } | ||
| if ( ! $.fn.dataTable ) { | ||
| require('datatables.net-dt')(root, $); | ||
| } | ||
| if ( ! $.fn.dataTable ) { | ||
| require('datatables.net-fixedcolumns')(root, $); | ||
| } | ||
| return factory( $, root, root.document ); | ||
| }; | ||
| } | ||
| else { | ||
| // Browser | ||
| factory( jQuery, window, document ); | ||
| } | ||
| }(function( $, window, document, undefined ) { | ||
| 'use strict'; | ||
| var DataTable = $.fn.dataTable; | ||
| return DataTable; | ||
| })); |
@@ -1,5 +0,4 @@ | ||
| /*! | ||
| DataTables integration for DataTables' FixedColumns | ||
| ©2016 SpryMedia Ltd - datatables.net/license | ||
| */ | ||
| (function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-fixedcolumns"],function(b){return c(b)}):"object"===typeof exports?module.exports=function(b,a){b||(b=window);a&&a.fn.dataTable||(a=require("datatables.net-dt")(b,a).$);a.fn.dataTable.FixedColumns||require("datatables.net-fixedcolumns")(b,a);return c(a)}:c(jQuery)})(function(c){return c.fn.dataTable.fixedColumns}); | ||
| /*! DataTables integration for DataTables' FixedColumns | ||
| * © SpryMedia Ltd - datatables.net/license | ||
| */ | ||
| !function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-fixedcolumns"],function(e){return n(e,window,document)}):"object"==typeof exports?module.exports=function(e,t){return e=e||window,(t=t||("undefined"!=typeof window?require("jquery"):require("jquery")(e))).fn.dataTable||require("datatables.net-dt")(e,t),t.fn.dataTable||require("datatables.net-fixedcolumns")(e,t),n(t,0,e.document)}:n(jQuery,window,document)}(function(e,t,n,d){"use strict";return e.fn.dataTable}); |
+6
-4
@@ -5,8 +5,10 @@ { | ||
| "main": "js/fixedColumns.dataTables.js", | ||
| "module": "js/fixedColumns.dataTables.mjs", | ||
| "style": "css/fixedColumns.dataTables.css", | ||
| "types": "./types/fixedColumns.dataTables.d.ts", | ||
| "version": "4.1.0", | ||
| "types": "./types/types.d.ts", | ||
| "version": "4.2.0", | ||
| "files": [ | ||
| "css/**/*.css", | ||
| "js/**/*.js", | ||
| "js/**/*.mjs", | ||
| "types/**/*.d.ts" | ||
@@ -23,4 +25,4 @@ ], | ||
| "dependencies": { | ||
| "datatables.net-fixedcolumns": ">=4.0.0", | ||
| "datatables.net-dt": ">=1.11.3", | ||
| "datatables.net-fixedcolumns": ">=4.1.0", | ||
| "datatables.net-dt": ">=1.12.1", | ||
| "jquery": ">=1.7" | ||
@@ -27,0 +29,0 @@ }, |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
9790
42.86%11
37.5%155
167.24%1
Infinity%1
Infinity%