tablefilter 0.7.5 → 0.7.6
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/starter.html +2 -2
- package/dist/tablefilter/tablefilter.js +1 -1
- package/dist/tablefilter/tf-1-2aa33b10e0e549020c12.js +1 -0
- package/dist/tablefilter/tf-1-bc5a8b07e0d66035b05b.js +1 -0
- package/dist/tablefilter/{tf-2-3a936d22b849361acff5.js → tf-2-025e1e774794d5827df8.js} +2 -2
- package/dist/tablefilter.cjs.js +17614 -4
- package/dist/tablefilter.esm.js +15736 -5397
- package/dist/tablefilter.umd.js +17620 -4
- package/index.js +16 -1
- package/package.json +10 -1
- package/src/components/attributes.js +59 -0
- package/src/components/table-filter.js +193 -45
- package/src/components/tf-rows-counter.js +3 -6
- package/src/components/tf-status.js +6 -11
- package/src/extensions/sort/sort.js +8 -1
- package/src/tablefilter.js +39 -6
- package/.editorconfig +0 -15
- package/.esdoc.json +0 -14
- package/.eslintrc +0 -37
- package/.gitattributes +0 -16
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -36
- package/.github/ISSUE_TEMPLATE/support.md +0 -17
- package/.github/dependabot.yml +0 -10
- package/.github/workflows/build-deploy.yml +0 -141
- package/.github/workflows/opencode-review.yml +0 -104
- package/.github/workflows/opencode.yml +0 -34
- package/AGENTS.md +0 -36
- package/CONTRIBUTING.md +0 -128
- package/Gruntfile.js +0 -252
- package/PULL_REQUEST_TEMPLATE.md +0 -24
- package/ROADMAP/README.md +0 -34
- package/ROADMAP/content-projection-parity.md +0 -162
- package/ROADMAP/hybrid-migration-strategy.md +0 -275
- package/ROADMAP/key-decisions-review.md +0 -215
- package/ROADMAP/preliminary-and-milestone-0.8.0-plan.md +0 -307
- package/ROADMAP/v1-webcomponents-investigation.md +0 -521
- package/dist/tablefilter/tablefilter.vite.js +0 -4
- package/dist/tablefilter/tf-1-a5c3a73bd559e47dd5a2.js +0 -1
- package/playwright.config.js +0 -25
- package/scripts/check-css-tokens.js +0 -65
- package/static/demos-assets/img_best-price.png +0 -0
- package/static/demos-assets/img_great-deal.png +0 -0
- package/static/demos-assets/img_maintenance.jpg +0 -0
- package/static/demos-assets/img_new-edition.png +0 -0
- package/static/demos-assets/img_sold-out.png +0 -0
- package/static/partials/books-table-with-images.html +0 -328
- package/static/partials/books.html +0 -273
- package/static/partials/countries-by-continent.html +0 -2592
- package/static/partials/countries-table-tiny.html +0 -436
- package/static/partials/countries-table.html +0 -12954
- package/static/partials/dummy-table-with-totals-footer.html +0 -353
- package/static/partials/dummy-table.html +0 -503
- package/static/partials/pre-inline-script.html +0 -17
- package/static/partials/pre.html +0 -1
- package/static/partials/style.html +0 -23
- package/static/partials/table-with-grouped-headers.html +0 -9258
- package/static/partials/tablefilter-script.html +0 -1
- package/static/style/active-header.styl +0 -10
- package/static/style/alternating-rows.styl +0 -8
- package/static/style/config.styl +0 -44
- package/static/style/custom-properties.styl +0 -43
- package/static/style/extensions/colsVisibility.styl +0 -71
- package/static/style/extensions/filtersVisibility.styl +0 -18
- package/static/style/ezedittable.styl +0 -93
- package/static/style/filter-checklist.styl +0 -52
- package/static/style/filters.styl +0 -111
- package/static/style/grid-layout.styl +0 -130
- package/static/style/help.styl +0 -57
- package/static/style/keyword.styl +0 -8
- package/static/style/loader.styl +0 -16
- package/static/style/mixins/arrow.styl +0 -63
- package/static/style/mixins/box-shadow.styl +0 -8
- package/static/style/mixins/empty-content.styl +0 -7
- package/static/style/noresults.styl +0 -14
- package/static/style/paging.styl +0 -73
- package/static/style/reset-button.styl +0 -21
- package/static/style/rows-counter.styl +0 -17
- package/static/style/sort.styl +0 -20
- package/static/style/status-bar.styl +0 -13
- package/static/style/table.styl +0 -44
- package/static/style/tablefilter.styl +0 -19
- package/static/style/themes/blank.png +0 -0
- package/static/style/themes/btn_clear_filters.png +0 -0
- package/static/style/themes/btn_filter.png +0 -0
- package/static/style/themes/btn_first_page.gif +0 -0
- package/static/style/themes/btn_last_page.gif +0 -0
- package/static/style/themes/btn_next_page.gif +0 -0
- package/static/style/themes/btn_previous_page.gif +0 -0
- package/static/style/themes/default/default.styl +0 -137
- package/static/style/themes/default/images/bg_infDiv.jpg +0 -0
- package/static/style/themes/default/images/bg_th.jpg +0 -0
- package/static/style/themes/default/images/btn_eraser.gif +0 -0
- package/static/style/themes/default/images/btn_first_page.gif +0 -0
- package/static/style/themes/default/images/btn_last_page.gif +0 -0
- package/static/style/themes/default/images/btn_next_page.gif +0 -0
- package/static/style/themes/default/images/btn_over_eraser.gif +0 -0
- package/static/style/themes/default/images/btn_over_first_page.gif +0 -0
- package/static/style/themes/default/images/btn_over_last_page.gif +0 -0
- package/static/style/themes/default/images/btn_over_next_page.gif +0 -0
- package/static/style/themes/default/images/btn_over_previous_page.gif +0 -0
- package/static/style/themes/default/images/btn_previous_page.gif +0 -0
- package/static/style/themes/default/images/img_loading.gif +0 -0
- package/static/style/themes/downsimple.png +0 -0
- package/static/style/themes/icn_clp.png +0 -0
- package/static/style/themes/icn_exp.png +0 -0
- package/static/style/themes/icn_filter.gif +0 -0
- package/static/style/themes/icn_filterActive.gif +0 -0
- package/static/style/themes/mytheme/images/bg_headers.jpg +0 -0
- package/static/style/themes/mytheme/images/bg_infDiv.jpg +0 -0
- package/static/style/themes/mytheme/images/btn_filter.png +0 -0
- package/static/style/themes/mytheme/images/btn_first_page.gif +0 -0
- package/static/style/themes/mytheme/images/btn_last_page.gif +0 -0
- package/static/style/themes/mytheme/images/btn_next_page.gif +0 -0
- package/static/style/themes/mytheme/images/btn_previous_page.gif +0 -0
- package/static/style/themes/mytheme/images/img_loading.gif +0 -0
- package/static/style/themes/mytheme/mytheme.styl +0 -152
- package/static/style/themes/skyblue/images/bg_skyblue.gif +0 -0
- package/static/style/themes/skyblue/images/btn_first_page.gif +0 -0
- package/static/style/themes/skyblue/images/btn_last_page.gif +0 -0
- package/static/style/themes/skyblue/images/btn_next_page.gif +0 -0
- package/static/style/themes/skyblue/images/btn_prev_page.gif +0 -0
- package/static/style/themes/skyblue/images/icn_clear_filters.png +0 -0
- package/static/style/themes/skyblue/images/img_loading.gif +0 -0
- package/static/style/themes/skyblue/skyblue.styl +0 -195
- package/static/style/themes/transparent/images/btn_first_page.gif +0 -0
- package/static/style/themes/transparent/images/btn_last_page.gif +0 -0
- package/static/style/themes/transparent/images/btn_next_page.gif +0 -0
- package/static/style/themes/transparent/images/btn_prev_page.gif +0 -0
- package/static/style/themes/transparent/images/icn_clear_filters.png +0 -0
- package/static/style/themes/transparent/images/img_loading.gif +0 -0
- package/static/style/themes/transparent/transparent.styl +0 -205
- package/static/style/themes/upsimple.png +0 -0
- package/static/style/toolbar.styl +0 -58
- package/static/templates/advanced-grid-editable.html +0 -140
- package/static/templates/advanced-grid-selection.html +0 -93
- package/static/templates/auto-filter.html +0 -46
- package/static/templates/columns-visibility.html +0 -67
- package/static/templates/data-types.html +0 -123
- package/static/templates/demo.html +0 -62
- package/static/templates/external-filters-visibility-commad.html +0 -49
- package/static/templates/external-filters.html +0 -125
- package/static/templates/filter-images.html +0 -91
- package/static/templates/filters-visibility.html +0 -45
- package/static/templates/grid-layout.html +0 -51
- package/static/templates/grouped-headers.html +0 -78
- package/static/templates/linked-filters-disabled.html +0 -56
- package/static/templates/linked-filters.html +0 -45
- package/static/templates/load-filters-on-demand.html +0 -42
- package/static/templates/pagination.html +0 -78
- package/static/templates/requirejs.html +0 -53
- package/static/templates/starter.html +0 -61
- package/static/templates/table-filter.html +0 -40
- package/static/templates/theme-roller.html +0 -106
- package/test/libs/polyfill.js +0 -359
- package/test/libs/qunit/qunit.css +0 -237
- package/test/libs/qunit/qunit.js +0 -2495
- package/test/playwright/axe.baseline.spec.js +0 -34
- package/test/playwright/axe.statusbar.spec.js +0 -35
- package/test/playwright/axeScan.js +0 -42
- package/test/playwright/ce-bridge.spec.js +0 -167
- package/test/playwright/qunit.all.spec.js +0 -10
- package/test/playwright/qunit.single.spec.js +0 -14
- package/test/playwright/qunitSuite.js +0 -56
- package/test/playwright/table-filter.config.spec.js +0 -265
- package/test/playwright/table-filter.demo.spec.js +0 -60
- package/test/playwright/table-filter.element.spec.js +0 -477
- package/test/playwright/tf-clear-button.spec.js +0 -135
- package/test/playwright/tf-rows-counter.spec.js +0 -172
- package/test/playwright/tf-status.spec.js +0 -258
- package/test/test-active-columns.html +0 -80
- package/test/test-active-columns.js +0 -318
- package/test/test-alternate-rows.html +0 -80
- package/test/test-alternate-rows.js +0 -335
- package/test/test-api.html +0 -141
- package/test/test-api.js +0 -795
- package/test/test-auto-filter.html +0 -80
- package/test/test-auto-filter.js +0 -43
- package/test/test-callbacks.html +0 -78
- package/test/test-callbacks.js +0 -58
- package/test/test-case-sensitive-query.html +0 -78
- package/test/test-case-sensitive-query.js +0 -39
- package/test/test-cell-parser.html +0 -109
- package/test/test-cell-parser.js +0 -80
- package/test/test-checklist.html +0 -78
- package/test/test-checklist.js +0 -267
- package/test/test-clear-button.html +0 -79
- package/test/test-clear-button.js +0 -183
- package/test/test-col-ops-grid-layout.html +0 -129
- package/test/test-col-ops-grid-layout.js +0 -134
- package/test/test-col-ops-paging.html +0 -129
- package/test/test-col-ops-paging.js +0 -154
- package/test/test-col-ops.html +0 -129
- package/test/test-col-ops.js +0 -337
- package/test/test-col-widths.html +0 -80
- package/test/test-col-widths.js +0 -40
- package/test/test-cols-visibility-grid-layout.html +0 -80
- package/test/test-cols-visibility-grid-layout.js +0 -165
- package/test/test-cols-visibility.html +0 -80
- package/test/test-cols-visibility.js +0 -121
- package/test/test-custom-options.html +0 -80
- package/test/test-custom-options.js +0 -139
- package/test/test-data-types.html +0 -377
- package/test/test-data-types.js +0 -392
- package/test/test-date-type.html +0 -356
- package/test/test-date-type.js +0 -159
- package/test/test-disable-enter-key.html +0 -78
- package/test/test-disable-enter-key.js +0 -29
- package/test/test-disable-filter-onchange.html +0 -78
- package/test/test-disable-filter-onchange.js +0 -40
- package/test/test-dom-changes.html +0 -78
- package/test/test-dom-changes.js +0 -166
- package/test/test-dropdown.html +0 -78
- package/test/test-dropdown.js +0 -246
- package/test/test-emitter.html +0 -78
- package/test/test-emitter.js +0 -57
- package/test/test-empty-cells-filtering.html +0 -8696
- package/test/test-empty-cells-filtering.js +0 -45
- package/test/test-exact-query-match.html +0 -78
- package/test/test-exact-query-match.js +0 -56
- package/test/test-excluded-rows.html +0 -92
- package/test/test-excluded-rows.js +0 -129
- package/test/test-external-filters.html +0 -100
- package/test/test-external-filters.js +0 -219
- package/test/test-filter-html-elements.html +0 -88
- package/test/test-filter-html-elements.js +0 -63
- package/test/test-filter-operators.html +0 -80
- package/test/test-filter-operators.js +0 -264
- package/test/test-filtering.html +0 -53
- package/test/test-filtering.js +0 -293
- package/test/test-filters-visibility-grid-layout.html +0 -80
- package/test/test-filters-visibility-grid-layout.js +0 -50
- package/test/test-filters-visibility-with-button.html +0 -80
- package/test/test-filters-visibility-with-button.js +0 -48
- package/test/test-filters-visibility.html +0 -80
- package/test/test-filters-visibility.js +0 -48
- package/test/test-grid-layout.html +0 -7736
- package/test/test-grid-layout.js +0 -39
- package/test/test-grouped-headers.html +0 -154
- package/test/test-grouped-headers.js +0 -107
- package/test/test-hash.html +0 -78
- package/test/test-hash.js +0 -88
- package/test/test-help-responsive.html +0 -79
- package/test/test-help-responsive.js +0 -70
- package/test/test-help.html +0 -78
- package/test/test-help.js +0 -217
- package/test/test-highlight-keywords.html +0 -78
- package/test/test-highlight-keywords.js +0 -94
- package/test/test-ignore-diacritics.html +0 -67
- package/test/test-ignore-diacritics.js +0 -117
- package/test/test-integration-paging-sort.html +0 -80
- package/test/test-integration-paging-sort.js +0 -60
- package/test/test-linked-filters-disabled-options-grid-layout.html +0 -80
- package/test/test-linked-filters-disabled-options-grid-layout.js +0 -73
- package/test/test-linked-filters-grid-layout.html +0 -80
- package/test/test-linked-filters-grid-layout.js +0 -72
- package/test/test-linked-filters-load-filters-on-demand.html +0 -80
- package/test/test-linked-filters-load-filters-on-demand.js +0 -99
- package/test/test-linked-filters-paging.html +0 -80
- package/test/test-linked-filters-paging.js +0 -99
- package/test/test-linked-filters.html +0 -80
- package/test/test-linked-filters.js +0 -138
- package/test/test-load-filters-on-demand.html +0 -78
- package/test/test-load-filters-on-demand.js +0 -124
- package/test/test-loader.html +0 -79
- package/test/test-loader.js +0 -159
- package/test/test-no-config.html +0 -80
- package/test/test-no-config.js +0 -63
- package/test/test-no-filters.html +0 -80
- package/test/test-no-filters.js +0 -172
- package/test/test-no-headers.html +0 -71
- package/test/test-no-headers.js +0 -99
- package/test/test-no-results-message.html +0 -262
- package/test/test-no-results-message.js +0 -222
- package/test/test-no-rows.html +0 -19
- package/test/test-no-rows.js +0 -10
- package/test/test-one-row.html +0 -29
- package/test/test-one-row.js +0 -18
- package/test/test-paging.html +0 -78
- package/test/test-paging.js +0 -273
- package/test/test-popup-filter-one-row.html +0 -38
- package/test/test-popup-filter-one-row.js +0 -138
- package/test/test-popup-filter.html +0 -78
- package/test/test-popup-filter.js +0 -384
- package/test/test-popup-filters-grouped-headers.html +0 -104
- package/test/test-popup-filters-grouped-headers.js +0 -206
- package/test/test-rows-counter.html +0 -78
- package/test/test-rows-counter.js +0 -114
- package/test/test-single-filter.html +0 -79
- package/test/test-single-filter.js +0 -138
- package/test/test-sort-custom-sorter.html +0 -244
- package/test/test-sort-custom-sorter.js +0 -74
- package/test/test-sort-grid-layout.html +0 -143
- package/test/test-sort-grid-layout.js +0 -86
- package/test/test-sort-key.html +0 -244
- package/test/test-sort-key.js +0 -67
- package/test/test-sort.html +0 -143
- package/test/test-sort.js +0 -126
- package/test/test-state.html +0 -78
- package/test/test-state.js +0 -369
- package/test/test-status-bar.html +0 -79
- package/test/test-status-bar.js +0 -149
- package/test/test-storage-cookie.html +0 -78
- package/test/test-storage-cookie.js +0 -82
- package/test/test-storage-local.html +0 -78
- package/test/test-storage-local.js +0 -82
- package/test/test-tfoot.html +0 -96
- package/test/test-tfoot.js +0 -123
- package/test/test-thead.html +0 -80
- package/test/test-thead.js +0 -69
- package/test/test-toolbar.html +0 -81
- package/test/test-toolbar.js +0 -218
- package/test/test-uneven-rows.html +0 -95
- package/test/test-uneven-rows.js +0 -61
- package/test/test-watermark.html +0 -80
- package/test/test-watermark.js +0 -103
- package/test/test.html +0 -141
- package/test/test.js +0 -162
- package/vite.config.js +0 -71
- package/webpack.config.js +0 -99
- package/webpack.dev.config.js +0 -25
- package/webpack.test.config.js +0 -44
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
(function(win, TableFilter){
|
|
2
|
-
|
|
3
|
-
var tf = new TableFilter('demo', {
|
|
4
|
-
base_path: '../dist/tablefilter/'
|
|
5
|
-
});
|
|
6
|
-
tf.init();
|
|
7
|
-
|
|
8
|
-
module('Sanity checks');
|
|
9
|
-
test('Filters', function() {
|
|
10
|
-
deepEqual(tf instanceof TableFilter, true, 'TableFilter instanciated');
|
|
11
|
-
notEqual(tf.getFilterElement(0), null, 'Filter generated');
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
module('Operators');
|
|
15
|
-
test('Regex operator - rgx:', function() {
|
|
16
|
-
tf.setFilterValue(3, 'rgx:[4-5]');
|
|
17
|
-
tf.filter();
|
|
18
|
-
var filteredData = tf.getFilteredData();
|
|
19
|
-
deepEqual(tf.getValidRows().length, 3, 'Expected number of matches');
|
|
20
|
-
deepEqual(
|
|
21
|
-
filteredData[1],
|
|
22
|
-
[3, ['Sydney', 'Brisbane', '982', '1.5', '16']],
|
|
23
|
-
'Expected row data'
|
|
24
|
-
);
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
test('Regex operator - rgx:b.*e', function() {
|
|
28
|
-
tf.clearFilters();
|
|
29
|
-
tf.setFilterValue(1, 'rgx:b.*e');
|
|
30
|
-
tf.filter();
|
|
31
|
-
var filteredData = tf.getFilteredData();
|
|
32
|
-
deepEqual(tf.getValidRows().length, 4, 'Expected number of matches');
|
|
33
|
-
deepEqual(
|
|
34
|
-
filteredData[3],
|
|
35
|
-
[8, ['Adelaide', 'Brisbane', '2045', '2.15', '40']],
|
|
36
|
-
'Expected row data'
|
|
37
|
-
);
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
test('Regex operator - rgx:b.+e', function() {
|
|
41
|
-
tf.clearFilters();
|
|
42
|
-
tf.setFilterValue(1, 'rgx:b.+e');
|
|
43
|
-
tf.filter();
|
|
44
|
-
var filteredData = tf.getFilteredData();
|
|
45
|
-
deepEqual(tf.getValidRows().length, 3, 'Expected number of matches');
|
|
46
|
-
deepEqual(
|
|
47
|
-
filteredData[2],
|
|
48
|
-
[8, ['Adelaide', 'Brisbane', '2045', '2.15', '40']],
|
|
49
|
-
'Expected row data'
|
|
50
|
-
);
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
test('Empty operator - [empty]', function() {
|
|
54
|
-
var cell = tf.getWorkingRows()[4].cells[4];
|
|
55
|
-
cell.innerHTML = '';
|
|
56
|
-
tf.clearFilters();
|
|
57
|
-
tf.setFilterValue(4, '[empty]');
|
|
58
|
-
tf.filter();
|
|
59
|
-
var filteredData = tf.getFilteredData();
|
|
60
|
-
|
|
61
|
-
deepEqual(tf.getValidRows().length, 1, 'Expected number of matches');
|
|
62
|
-
deepEqual(
|
|
63
|
-
filteredData[0],
|
|
64
|
-
[6, ['Adelaide', 'Perth', '2781', '3.1', '']],
|
|
65
|
-
'Expected row data'
|
|
66
|
-
);
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
test('Empty operator - with cell containing dom element', function() {
|
|
70
|
-
var cell = tf.getWorkingRows()[4].cells[4];
|
|
71
|
-
cell.innerHTML = '<img>';
|
|
72
|
-
tf.clearFilters();
|
|
73
|
-
tf.setFilterValue(4, '[empty]');
|
|
74
|
-
tf.filter();
|
|
75
|
-
var filteredData = tf.getFilteredData();
|
|
76
|
-
|
|
77
|
-
deepEqual(tf.getValidRows().length, 1, 'Expected match');
|
|
78
|
-
deepEqual(
|
|
79
|
-
filteredData[0],
|
|
80
|
-
[6, ['Adelaide', 'Perth', '2781', '3.1', '']],
|
|
81
|
-
'Expected row data'
|
|
82
|
-
);
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
test('Non-empty operator - [nonempty]', function() {
|
|
86
|
-
var cell = tf.getWorkingRows()[4].cells[4];
|
|
87
|
-
cell.innerHTML = '';
|
|
88
|
-
tf.clearFilters();
|
|
89
|
-
tf.setFilterValue(4, '[nonempty]');
|
|
90
|
-
tf.filter();
|
|
91
|
-
var filteredData = tf.getFilteredData();
|
|
92
|
-
deepEqual(tf.getValidRows().length, 6, 'Expected number of matches');
|
|
93
|
-
deepEqual(
|
|
94
|
-
filteredData[5],
|
|
95
|
-
[8, ['Adelaide', 'Brisbane', '2045', '2.15', '40']],
|
|
96
|
-
'Expected row data');
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
test('Non-empty operator - with cell containing dom element', function() {
|
|
100
|
-
var cell = tf.getWorkingRows()[4].cells[4];
|
|
101
|
-
cell.innerHTML = '<img>';
|
|
102
|
-
tf.clearFilters();
|
|
103
|
-
tf.setFilterValue(4, '[nonempty]');
|
|
104
|
-
tf.filter();
|
|
105
|
-
|
|
106
|
-
deepEqual(tf.getValidRows().length, 6, 'Expected number of matches');
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
test('Or operator - ||', function() {
|
|
110
|
-
tf.clearFilters();
|
|
111
|
-
tf.setFilterValue(1, 'Canberra||Alice Springs');
|
|
112
|
-
tf.filter();
|
|
113
|
-
var filteredData = tf.getFilteredData();
|
|
114
|
-
deepEqual(tf.getValidRows().length, 2, 'Expected number of matches');
|
|
115
|
-
deepEqual(
|
|
116
|
-
filteredData[1],
|
|
117
|
-
[7, ['Adelaide', 'Alice Springs', '1533', '2', '20.25']],
|
|
118
|
-
'Expected row data'
|
|
119
|
-
);
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
test('And operator - &&', function() {
|
|
123
|
-
tf.clearFilters();
|
|
124
|
-
tf.setFilterValue(1, 'Al&&Spr');
|
|
125
|
-
tf.filter();
|
|
126
|
-
var filteredData = tf.getFilteredData();
|
|
127
|
-
deepEqual(tf.getValidRows().length, 1, 'Expected number of matches');
|
|
128
|
-
deepEqual(
|
|
129
|
-
filteredData[0],
|
|
130
|
-
[7, ['Adelaide', 'Alice Springs', '1533', '2', '20.25']],
|
|
131
|
-
'Expected row data'
|
|
132
|
-
);
|
|
133
|
-
});
|
|
134
|
-
|
|
135
|
-
test('Greater than operator - >', function() {
|
|
136
|
-
tf.clearFilters();
|
|
137
|
-
tf.setFilterValue(2, '>1600');
|
|
138
|
-
tf.filter();
|
|
139
|
-
var filteredData = tf.getFilteredData();
|
|
140
|
-
deepEqual(tf.getValidRows().length, 2, 'Expected number of matches');
|
|
141
|
-
deepEqual(
|
|
142
|
-
filteredData[1],
|
|
143
|
-
[8, ['Adelaide', 'Brisbane', '2045', '2.15', '40']],
|
|
144
|
-
'Expected row data'
|
|
145
|
-
);
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
test('Lower than operator - <', function() {
|
|
149
|
-
tf.clearFilters();
|
|
150
|
-
tf.setFilterValue(3, '<1.5');
|
|
151
|
-
tf.filter();
|
|
152
|
-
var filteredData = tf.getFilteredData();
|
|
153
|
-
deepEqual(tf.getValidRows().length, 3, 'Expected number of matches');
|
|
154
|
-
deepEqual(
|
|
155
|
-
filteredData[2],
|
|
156
|
-
[5, ['Sydney', 'Melbourne', '872', '1.1', '10.5']],
|
|
157
|
-
'Expected row data'
|
|
158
|
-
);
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
test('Greater than or equal to operator - >=', function() {
|
|
162
|
-
tf.clearFilters();
|
|
163
|
-
tf.setFilterValue(2, '>=2781');
|
|
164
|
-
tf.filter();
|
|
165
|
-
var filteredData = tf.getFilteredData();
|
|
166
|
-
deepEqual(tf.getValidRows().length, 1, 'Expected number of matches');
|
|
167
|
-
deepEqual(
|
|
168
|
-
filteredData[0],
|
|
169
|
-
[6, ['Adelaide', 'Perth', '2781', '3.1', '']],
|
|
170
|
-
'Expected row data'
|
|
171
|
-
);
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
test('Lower than or equal to operator - <=', function() {
|
|
175
|
-
tf.clearFilters();
|
|
176
|
-
tf.setFilterValue(3, '<=0.6');
|
|
177
|
-
tf.filter();
|
|
178
|
-
var filteredData = tf.getFilteredData();
|
|
179
|
-
deepEqual(tf.getValidRows().length, 1, 'Expected number of matches');
|
|
180
|
-
deepEqual(
|
|
181
|
-
filteredData[0],
|
|
182
|
-
[4, ['Sydney', 'Canberra', '286', '.6', '4.3']],
|
|
183
|
-
'Expected row data'
|
|
184
|
-
);
|
|
185
|
-
});
|
|
186
|
-
|
|
187
|
-
test('Different from operator - !', function() {
|
|
188
|
-
tf.clearFilters();
|
|
189
|
-
tf.setFilterValue(0, '!Sydney');
|
|
190
|
-
tf.filter();
|
|
191
|
-
var filteredData = tf.getFilteredData();
|
|
192
|
-
deepEqual(tf.getValidRows().length, 3, 'Expected number of matches');
|
|
193
|
-
deepEqual(
|
|
194
|
-
filteredData[2],
|
|
195
|
-
[8, ['Adelaide', 'Brisbane', '2045', '2.15', '40']],
|
|
196
|
-
'Expected row data'
|
|
197
|
-
);
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
test('Like operator - *', function() {
|
|
201
|
-
tf.clearFilters();
|
|
202
|
-
tf.setFilterValue(1, '*our');
|
|
203
|
-
tf.filter();
|
|
204
|
-
var filteredData = tf.getFilteredData();
|
|
205
|
-
deepEqual(tf.getValidRows().length, 1, 'Expected number of matches');
|
|
206
|
-
deepEqual(
|
|
207
|
-
filteredData[0],
|
|
208
|
-
[5, ['Sydney', 'Melbourne', '872', '1.1', '10.5']],
|
|
209
|
-
'Expected row data'
|
|
210
|
-
);
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
test('Equal operator - =', function() {
|
|
214
|
-
tf.clearFilters();
|
|
215
|
-
tf.setFilterValue(1, '=Pe');
|
|
216
|
-
tf.filter();
|
|
217
|
-
deepEqual(tf.getValidRows().length, 0, 'Expected number of matches');
|
|
218
|
-
|
|
219
|
-
tf.clearFilters();
|
|
220
|
-
tf.setFilterValue(1, '=Perth');
|
|
221
|
-
tf.filter();
|
|
222
|
-
var filteredData = tf.getFilteredData();
|
|
223
|
-
deepEqual(tf.getValidRows().length, 1, 'Expected number of matches');
|
|
224
|
-
deepEqual(
|
|
225
|
-
filteredData[0],
|
|
226
|
-
[6, ['Adelaide', 'Perth', '2781', '3.1', '']],
|
|
227
|
-
'Expected row data'
|
|
228
|
-
);
|
|
229
|
-
});
|
|
230
|
-
|
|
231
|
-
test('Starts with - {', function() {
|
|
232
|
-
tf.clearFilters();
|
|
233
|
-
tf.setFilterValue(1, '{a');
|
|
234
|
-
tf.filter();
|
|
235
|
-
var filteredData = tf.getFilteredData();
|
|
236
|
-
deepEqual(tf.getValidRows().length, 2, 'Expected number of matches');
|
|
237
|
-
deepEqual(
|
|
238
|
-
filteredData[0],
|
|
239
|
-
[2, ['Sydney', 'Adelaide', '1412', '1.4', '25.3']],
|
|
240
|
-
'Expected row data'
|
|
241
|
-
);
|
|
242
|
-
});
|
|
243
|
-
|
|
244
|
-
test('Ends with - }', function() {
|
|
245
|
-
tf.clearFilters();
|
|
246
|
-
tf.setFilterValue(1, '}e');
|
|
247
|
-
tf.filter();
|
|
248
|
-
var filteredData = tf.getFilteredData();
|
|
249
|
-
deepEqual(tf.getValidRows().length, 4, 'Expected number of matches');
|
|
250
|
-
deepEqual(
|
|
251
|
-
filteredData[0],
|
|
252
|
-
[2, ['Sydney', 'Adelaide', '1412', '1.4', '25.3']],
|
|
253
|
-
'Expected row data'
|
|
254
|
-
);
|
|
255
|
-
});
|
|
256
|
-
|
|
257
|
-
module('Tear-down');
|
|
258
|
-
test('can destroy TableFilter DOM elements', function() {
|
|
259
|
-
tf.clearFilters();
|
|
260
|
-
tf.destroy();
|
|
261
|
-
deepEqual(tf.isInitialized(), false, 'Filters removed');
|
|
262
|
-
});
|
|
263
|
-
|
|
264
|
-
})(window, TableFilter);
|
package/test/test-filtering.html
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<title>TableFilter filtering tests</title>
|
|
6
|
-
<link rel="stylesheet" href="libs/qunit/qunit.css">
|
|
7
|
-
<script src="libs/qunit/qunit.js"></script>
|
|
8
|
-
<script src="libs/polyfill.js"></script>
|
|
9
|
-
</head>
|
|
10
|
-
<body>
|
|
11
|
-
|
|
12
|
-
<table id="demo">
|
|
13
|
-
<tr>
|
|
14
|
-
<th>a</th>
|
|
15
|
-
<th>b</th>
|
|
16
|
-
<th>c</th>
|
|
17
|
-
<th>d</th>
|
|
18
|
-
<th>e</th>
|
|
19
|
-
<th>f</th>
|
|
20
|
-
</tr>
|
|
21
|
-
<tr>
|
|
22
|
-
<td>21.1.18</td>
|
|
23
|
-
<td>21.1.04</td>
|
|
24
|
-
<td>3-Jan-2014</td>
|
|
25
|
-
<td>alpha a xyz</td>
|
|
26
|
-
<td>numeric</td>
|
|
27
|
-
<td>2767</td>
|
|
28
|
-
</tr>
|
|
29
|
-
<tr>
|
|
30
|
-
<td>21.1.16</td>
|
|
31
|
-
<td>21.1.05</td>
|
|
32
|
-
<td>23-Oct-2007</td>
|
|
33
|
-
<td>alpha c xyz</td>
|
|
34
|
-
<td>numeric 1</td>
|
|
35
|
-
<td>0.6565765</td>
|
|
36
|
-
</tr>
|
|
37
|
-
<tr>
|
|
38
|
-
<td>34.234</td>
|
|
39
|
-
<td>rr</td>
|
|
40
|
-
<td>14-Mar-2009</td>
|
|
41
|
-
<td>alpha e xyz</td>
|
|
42
|
-
<td>numeric 2</td>
|
|
43
|
-
<td>this is a string</td>
|
|
44
|
-
</tr>
|
|
45
|
-
</table>
|
|
46
|
-
|
|
47
|
-
<script src="../dist/tablefilter/tablefilter.js"></script>
|
|
48
|
-
<script src="test-filtering.js"></script>
|
|
49
|
-
|
|
50
|
-
<div id="qunit"></div>
|
|
51
|
-
<div id="qunit-fixture"></div>
|
|
52
|
-
</body>
|
|
53
|
-
</html>
|
package/test/test-filtering.js
DELETED
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
var tf = new TableFilter('demo', {
|
|
2
|
-
base_path: '../dist/tablefilter/',
|
|
3
|
-
col_types: [
|
|
4
|
-
null,
|
|
5
|
-
{ type: 'date', format: ['{dd}.{MM}.{yyyy|yy}'] },
|
|
6
|
-
{ type: 'date', format: ['{dd}.{months}.{yyyy}'] },
|
|
7
|
-
null,
|
|
8
|
-
null,
|
|
9
|
-
'formatted-number'
|
|
10
|
-
]
|
|
11
|
-
});
|
|
12
|
-
tf.init();
|
|
13
|
-
|
|
14
|
-
module('Sanity checks');
|
|
15
|
-
test('TableFilter object', function() {
|
|
16
|
-
deepEqual(tf instanceof TableFilter, true, 'TableFilter instantiated');
|
|
17
|
-
deepEqual(tf.id, 'demo', 'id check');
|
|
18
|
-
deepEqual(tf.filtersRowIndex, 0, 'Filters row index');
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
module('Issue 74');
|
|
22
|
-
test('can filter values in this format: 21.1.18 as string', function(){
|
|
23
|
-
tf.setFilterValue(0, '2');
|
|
24
|
-
tf.filter();
|
|
25
|
-
deepEqual(tf.getValidRows().length, 3, 'Expected number of matches');
|
|
26
|
-
});
|
|
27
|
-
test('can filter values in this format: 21.1.18 as date', function(){
|
|
28
|
-
tf.clearFilters();
|
|
29
|
-
tf.setFilterValue(1, '21.1.2005');
|
|
30
|
-
tf.filter();
|
|
31
|
-
deepEqual(tf.getValidRows().length, 1, 'Expected number of matches');
|
|
32
|
-
});
|
|
33
|
-
test('can filter values in this format: 21.1.18 as date with operator',
|
|
34
|
-
function(){
|
|
35
|
-
tf.clearFilters();
|
|
36
|
-
tf.setFilterValue(1, '>21.1.04');
|
|
37
|
-
tf.filter();
|
|
38
|
-
deepEqual(tf.getValidRows().length, 1, 'Expected number of matches');
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
module('Issue 72');
|
|
43
|
-
test('can filter values in this format: 21-Jul-2010 as date', function(){
|
|
44
|
-
tf.clearFilters();
|
|
45
|
-
tf.setFilterValue(2, '14-Mar-2009');
|
|
46
|
-
tf.filter();
|
|
47
|
-
deepEqual(tf.getValidRows().length, 1, 'Expected number of matches');
|
|
48
|
-
});
|
|
49
|
-
test('can filter values in this format: 21-Jul-2010 as date with operator',
|
|
50
|
-
function(){
|
|
51
|
-
tf.clearFilters();
|
|
52
|
-
tf.setFilterValue(2, '<21-Jul-2010');
|
|
53
|
-
tf.filter();
|
|
54
|
-
deepEqual(tf.getValidRows().length, 2, 'Expected number of matches');
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
|
|
58
|
-
module('Issue 217');
|
|
59
|
-
test('can filter columns with blank space separated values (1)', function(){
|
|
60
|
-
tf.clearFilters();
|
|
61
|
-
tf.setFilterValue(3, 'c');
|
|
62
|
-
tf.filter();
|
|
63
|
-
deepEqual(tf.getValidRows().length, 1, 'Expected number of matches');
|
|
64
|
-
});
|
|
65
|
-
test('can filter columns with blank space separated values (2)', function(){
|
|
66
|
-
tf.clearFilters();
|
|
67
|
-
tf.setFilterValue(3, 'xyz');
|
|
68
|
-
tf.filter();
|
|
69
|
-
deepEqual(tf.getValidRows().length, 3, 'Expected number of matches');
|
|
70
|
-
});
|
|
71
|
-
test('can filter columns with alpha numeric values (1)', function(){
|
|
72
|
-
tf.clearFilters();
|
|
73
|
-
tf.setFilterValue(4, '1');
|
|
74
|
-
tf.filter();
|
|
75
|
-
deepEqual(tf.getValidRows().length, 1, 'Expected number of matches');
|
|
76
|
-
});
|
|
77
|
-
test('can filter columns with alpha numeric values (2)', function(){
|
|
78
|
-
tf.clearFilters();
|
|
79
|
-
tf.setFilterValue(4, 'numeric');
|
|
80
|
-
tf.filter();
|
|
81
|
-
deepEqual(tf.getValidRows().length, 3, 'Expected number of matches');
|
|
82
|
-
});
|
|
83
|
-
test('can filter numeric value (6)', function(){
|
|
84
|
-
// setup
|
|
85
|
-
tf.clearFilters();
|
|
86
|
-
|
|
87
|
-
// act
|
|
88
|
-
tf.setFilterValue(5, 2767);
|
|
89
|
-
tf.filter();
|
|
90
|
-
|
|
91
|
-
// assert
|
|
92
|
-
deepEqual(tf.getFilteredDataCol(5), ['2767'], 'Expected match');
|
|
93
|
-
});
|
|
94
|
-
test('Should return no results for an unmatched term (6)', function(){
|
|
95
|
-
// setup
|
|
96
|
-
tf.clearFilters();
|
|
97
|
-
|
|
98
|
-
// act
|
|
99
|
-
tf.setFilterValue(5, 'hello world');
|
|
100
|
-
tf.filter();
|
|
101
|
-
|
|
102
|
-
// assert
|
|
103
|
-
deepEqual(tf.getValidRows().length, 0, 'No matches');
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
module('Filtering data types');
|
|
108
|
-
module('Date types');
|
|
109
|
-
test('can filter date with `<` operator', function(){
|
|
110
|
-
// setup
|
|
111
|
-
tf.clearFilters();
|
|
112
|
-
|
|
113
|
-
// act
|
|
114
|
-
tf.setFilterValue(2, '< 14-Mar-2009');
|
|
115
|
-
tf.filter();
|
|
116
|
-
|
|
117
|
-
// assert
|
|
118
|
-
deepEqual(
|
|
119
|
-
tf.getFilteredDataCol(2),
|
|
120
|
-
['23-Oct-2007'],
|
|
121
|
-
'Expected match'
|
|
122
|
-
);
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
test('can filter date with `<=` operator', function(){
|
|
126
|
-
// setup
|
|
127
|
-
tf.clearFilters();
|
|
128
|
-
|
|
129
|
-
// act
|
|
130
|
-
tf.setFilterValue(2, '<= 14-Mar-2009');
|
|
131
|
-
tf.filter();
|
|
132
|
-
|
|
133
|
-
// assert
|
|
134
|
-
deepEqual(
|
|
135
|
-
tf.getFilteredDataCol(2),
|
|
136
|
-
['23-Oct-2007', '14-Mar-2009'],
|
|
137
|
-
'Expected match'
|
|
138
|
-
);
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
test('can filter date with `>` operator', function(){
|
|
142
|
-
// setup
|
|
143
|
-
tf.clearFilters();
|
|
144
|
-
|
|
145
|
-
// act
|
|
146
|
-
tf.setFilterValue(2, '> 14/03/2009');
|
|
147
|
-
tf.filter();
|
|
148
|
-
|
|
149
|
-
// assert
|
|
150
|
-
deepEqual(
|
|
151
|
-
tf.getFilteredDataCol(2),
|
|
152
|
-
['3-Jan-2014'],
|
|
153
|
-
'Expected match'
|
|
154
|
-
);
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
test('can filter date with `>` operator', function(){
|
|
158
|
-
// setup
|
|
159
|
-
tf.clearFilters();
|
|
160
|
-
|
|
161
|
-
// act
|
|
162
|
-
tf.setFilterValue(2, '>= 14/03/2009');
|
|
163
|
-
tf.filter();
|
|
164
|
-
|
|
165
|
-
// assert
|
|
166
|
-
deepEqual(
|
|
167
|
-
tf.getFilteredDataCol(2),
|
|
168
|
-
['3-Jan-2014', '14-Mar-2009'],
|
|
169
|
-
'Expected match'
|
|
170
|
-
);
|
|
171
|
-
});
|
|
172
|
-
|
|
173
|
-
test('can filter date with `!` operator', function(){
|
|
174
|
-
// setup
|
|
175
|
-
tf.clearFilters();
|
|
176
|
-
|
|
177
|
-
// act
|
|
178
|
-
tf.setFilterValue(2, '! 14-Mar-2009');
|
|
179
|
-
tf.filter();
|
|
180
|
-
|
|
181
|
-
// assert
|
|
182
|
-
deepEqual(
|
|
183
|
-
tf.getFilteredDataCol(2),
|
|
184
|
-
['3-Jan-2014', '23-Oct-2007'],
|
|
185
|
-
'Expected match'
|
|
186
|
-
);
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
test('can filter date with `=` operator', function(){
|
|
190
|
-
// setup
|
|
191
|
-
tf.clearFilters();
|
|
192
|
-
|
|
193
|
-
// act
|
|
194
|
-
tf.setFilterValue(2, '= 14-Mar-2009');
|
|
195
|
-
tf.filter();
|
|
196
|
-
|
|
197
|
-
// assert
|
|
198
|
-
deepEqual(
|
|
199
|
-
tf.getFilteredDataCol(2),
|
|
200
|
-
['14-Mar-2009'],
|
|
201
|
-
'Expected match'
|
|
202
|
-
);
|
|
203
|
-
});
|
|
204
|
-
|
|
205
|
-
test('can filter date with `=` operator and different date format', function(){
|
|
206
|
-
// setup
|
|
207
|
-
tf.clearFilters();
|
|
208
|
-
|
|
209
|
-
// act
|
|
210
|
-
tf.setFilterValue(2, '= 14.03.2009');
|
|
211
|
-
tf.filter();
|
|
212
|
-
|
|
213
|
-
// assert
|
|
214
|
-
deepEqual(
|
|
215
|
-
tf.getFilteredDataCol(2),
|
|
216
|
-
['14-Mar-2009'],
|
|
217
|
-
'Expected match'
|
|
218
|
-
);
|
|
219
|
-
});
|
|
220
|
-
|
|
221
|
-
test('can filter date with different date format', function(){
|
|
222
|
-
// setup
|
|
223
|
-
tf.clearFilters();
|
|
224
|
-
|
|
225
|
-
// act
|
|
226
|
-
tf.setFilterValue(2, '2007-10-23');
|
|
227
|
-
tf.filter();
|
|
228
|
-
|
|
229
|
-
// assert
|
|
230
|
-
deepEqual(
|
|
231
|
-
tf.getFilteredDataCol(2),
|
|
232
|
-
['23-Oct-2007'],
|
|
233
|
-
'Expected match'
|
|
234
|
-
);
|
|
235
|
-
});
|
|
236
|
-
|
|
237
|
-
test('can filter empty value with [empty] operator', function(){
|
|
238
|
-
// setup
|
|
239
|
-
var cellValue = tf.getCellValue(tf.dom().rows[2].cells[2]);
|
|
240
|
-
tf.clearFilters();
|
|
241
|
-
tf.dom().rows[2].cells[2].innerHTML = '';
|
|
242
|
-
|
|
243
|
-
// act
|
|
244
|
-
tf.setFilterValue(2, '[empty]');
|
|
245
|
-
tf.filter();
|
|
246
|
-
|
|
247
|
-
// assert
|
|
248
|
-
deepEqual(
|
|
249
|
-
tf.getFilteredDataCol(2),
|
|
250
|
-
[''],
|
|
251
|
-
'Expected match'
|
|
252
|
-
);
|
|
253
|
-
|
|
254
|
-
tf.dom().rows[2].cells[2].innerHTML = cellValue;
|
|
255
|
-
});
|
|
256
|
-
|
|
257
|
-
test('can filter empty value with [nonempty] operator', function(){
|
|
258
|
-
// setup
|
|
259
|
-
tf.clearFilters();
|
|
260
|
-
|
|
261
|
-
// act
|
|
262
|
-
tf.setFilterValue(2, '[nonempty]');
|
|
263
|
-
tf.filter();
|
|
264
|
-
|
|
265
|
-
// assert
|
|
266
|
-
deepEqual(
|
|
267
|
-
tf.getFilteredDataCol(2),
|
|
268
|
-
['3-Jan-2014', '23-Oct-2007', '14-Mar-2009'],
|
|
269
|
-
'Expected match'
|
|
270
|
-
);
|
|
271
|
-
});
|
|
272
|
-
|
|
273
|
-
test('can filter date with date range with operators', function(){
|
|
274
|
-
// setup
|
|
275
|
-
tf.clearFilters();
|
|
276
|
-
|
|
277
|
-
// act
|
|
278
|
-
tf.setFilterValue(2, '<3-jan-2014 && >=23-Oct-2007');
|
|
279
|
-
tf.filter();
|
|
280
|
-
|
|
281
|
-
// assert
|
|
282
|
-
deepEqual(
|
|
283
|
-
tf.getFilteredDataCol(2),
|
|
284
|
-
['23-Oct-2007', '14-Mar-2009'],
|
|
285
|
-
'Expected match'
|
|
286
|
-
);
|
|
287
|
-
});
|
|
288
|
-
|
|
289
|
-
module('Tear-down');
|
|
290
|
-
test('can destroy TableFilter DOM elements', function() {
|
|
291
|
-
tf.destroy();
|
|
292
|
-
deepEqual(tf.isInitialized(), false, 'Filters removed');
|
|
293
|
-
});
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<title>TableFilter filters visibility extension tests</title>
|
|
6
|
-
<link rel="stylesheet" href="libs/qunit/qunit.css">
|
|
7
|
-
<script src="libs/qunit/qunit.js"></script>
|
|
8
|
-
<script src="libs/polyfill.js"></script>
|
|
9
|
-
</head>
|
|
10
|
-
<body>
|
|
11
|
-
<table id="demo">
|
|
12
|
-
<thead>
|
|
13
|
-
<tr>
|
|
14
|
-
<th>From</th>
|
|
15
|
-
<th>Destination</th>
|
|
16
|
-
<th>Road Distance (km)</th>
|
|
17
|
-
<th>By Air (hrs)</th>
|
|
18
|
-
<th>By Rail (hrs)</th>
|
|
19
|
-
</tr>
|
|
20
|
-
</thead>
|
|
21
|
-
<tbody>
|
|
22
|
-
<tr>
|
|
23
|
-
<td><strong>Sydney</strong></td>
|
|
24
|
-
<td>Adelaide</td>
|
|
25
|
-
<td>1412</td>
|
|
26
|
-
<td>1.4</td>
|
|
27
|
-
<td>25.3</td>
|
|
28
|
-
</tr>
|
|
29
|
-
<tr>
|
|
30
|
-
<td><strong>Sydney</strong></td>
|
|
31
|
-
<td>Brisbane</td>
|
|
32
|
-
<td>982</td>
|
|
33
|
-
<td>1.5</td>
|
|
34
|
-
<td>16</td>
|
|
35
|
-
</tr>
|
|
36
|
-
<tr>
|
|
37
|
-
<td><strong>Sydney</strong></td>
|
|
38
|
-
<td>Canberra</td>
|
|
39
|
-
<td>286</td>
|
|
40
|
-
<td>.6</td>
|
|
41
|
-
<td>4.3</td>
|
|
42
|
-
</tr>
|
|
43
|
-
<tr>
|
|
44
|
-
<td><strong>Sydney</strong></td>
|
|
45
|
-
<td>Melbourne</td>
|
|
46
|
-
<td>872</td>
|
|
47
|
-
<td>1.1</td>
|
|
48
|
-
<td>10.5</td>
|
|
49
|
-
</tr>
|
|
50
|
-
<tr>
|
|
51
|
-
<td><strong>Adelaide</strong></td>
|
|
52
|
-
<td>Perth</td>
|
|
53
|
-
<td>2781</td>
|
|
54
|
-
<td>3.1</td>
|
|
55
|
-
<td>38</td>
|
|
56
|
-
</tr>
|
|
57
|
-
<tr>
|
|
58
|
-
<td><strong>Adelaide</strong></td>
|
|
59
|
-
<td>Alice Springs</td>
|
|
60
|
-
<td>1533</td>
|
|
61
|
-
<td>2</td>
|
|
62
|
-
<td>20.25</td>
|
|
63
|
-
</tr>
|
|
64
|
-
<tr>
|
|
65
|
-
<td><strong>Adelaide</strong></td>
|
|
66
|
-
<td>Brisbane</td>
|
|
67
|
-
<td>2045</td>
|
|
68
|
-
<td>2.15</td>
|
|
69
|
-
<td>40</td>
|
|
70
|
-
</tr>
|
|
71
|
-
</tbody>
|
|
72
|
-
</table>
|
|
73
|
-
|
|
74
|
-
<script src="../dist/tablefilter/tablefilter.js"></script>
|
|
75
|
-
<script src="test-filters-visibility-grid-layout.js"></script>
|
|
76
|
-
|
|
77
|
-
<div id="qunit"></div>
|
|
78
|
-
<div id="qunit-fixture"></div>
|
|
79
|
-
</body>
|
|
80
|
-
</html>
|