tablefilter 0.7.4 → 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.
Files changed (311) hide show
  1. package/dist/starter.html +2 -2
  2. package/dist/tablefilter/style/colsVisibility.css +1 -1
  3. package/dist/tablefilter/style/filtersVisibility.css +1 -1
  4. package/dist/tablefilter/style/tablefilter.css +1 -1
  5. package/dist/tablefilter/style/themes/default/default.css +1 -1
  6. package/dist/tablefilter/style/themes/mytheme/mytheme.css +1 -1
  7. package/dist/tablefilter/style/themes/skyblue/skyblue.css +1 -1
  8. package/dist/tablefilter/style/themes/transparent/transparent.css +1 -1
  9. package/dist/tablefilter/tablefilter.js +1 -1
  10. package/dist/tablefilter/tf-1-2aa33b10e0e549020c12.js +1 -0
  11. package/dist/tablefilter/tf-1-bc5a8b07e0d66035b05b.js +1 -0
  12. package/dist/tablefilter/tf-2-025e1e774794d5827df8.js +6 -0
  13. package/dist/tablefilter.cjs.js +17614 -0
  14. package/dist/tablefilter.esm.js +17617 -0
  15. package/dist/tablefilter.umd.js +17620 -0
  16. package/index.js +16 -1
  17. package/package.json +21 -5
  18. package/src/components/attributes.js +59 -0
  19. package/src/components/table-filter.js +391 -0
  20. package/src/components/tf-clear-button.js +95 -0
  21. package/src/components/tf-rows-counter.js +79 -0
  22. package/src/components/tf-status.js +101 -0
  23. package/src/extensions/sort/sort.js +8 -1
  24. package/src/modules/clearButton.js +65 -11
  25. package/src/modules/rowsCounter.js +48 -25
  26. package/src/modules/statusBar.js +62 -30
  27. package/src/sanitize.js +25 -0
  28. package/src/tablefilter.js +39 -6
  29. package/.editorconfig +0 -15
  30. package/.esdoc.json +0 -14
  31. package/.eslintrc +0 -37
  32. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
  33. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -36
  34. package/.github/ISSUE_TEMPLATE/support.md +0 -17
  35. package/.github/dependabot.yml +0 -10
  36. package/.github/workflows/build-deploy.yml +0 -113
  37. package/AGENTS.md +0 -36
  38. package/CONTRIBUTING.md +0 -128
  39. package/Gruntfile.js +0 -252
  40. package/PULL_REQUEST_TEMPLATE.md +0 -24
  41. package/ROADMAP/README.md +0 -29
  42. package/ROADMAP/hybrid-migration-strategy.md +0 -234
  43. package/ROADMAP/key-decisions-review.md +0 -213
  44. package/ROADMAP/preliminary-and-milestone-0.8.0-plan.md +0 -308
  45. package/ROADMAP/v1-webcomponents-investigation.md +0 -516
  46. package/dist/tablefilter/tf-1-d2360db09a424b1ed633.js +0 -1
  47. package/static/demos-assets/img_best-price.png +0 -0
  48. package/static/demos-assets/img_great-deal.png +0 -0
  49. package/static/demos-assets/img_maintenance.jpg +0 -0
  50. package/static/demos-assets/img_new-edition.png +0 -0
  51. package/static/demos-assets/img_sold-out.png +0 -0
  52. package/static/partials/books-table-with-images.html +0 -328
  53. package/static/partials/books.html +0 -273
  54. package/static/partials/countries-by-continent.html +0 -2592
  55. package/static/partials/countries-table-tiny.html +0 -436
  56. package/static/partials/countries-table.html +0 -12954
  57. package/static/partials/dummy-table-with-totals-footer.html +0 -353
  58. package/static/partials/dummy-table.html +0 -503
  59. package/static/partials/pre-inline-script.html +0 -17
  60. package/static/partials/pre.html +0 -1
  61. package/static/partials/style.html +0 -23
  62. package/static/partials/table-with-grouped-headers.html +0 -9258
  63. package/static/partials/tablefilter-script.html +0 -1
  64. package/static/style/active-header.styl +0 -10
  65. package/static/style/alternating-rows.styl +0 -8
  66. package/static/style/config.styl +0 -44
  67. package/static/style/extensions/colsVisibility.styl +0 -71
  68. package/static/style/extensions/filtersVisibility.styl +0 -18
  69. package/static/style/ezedittable.styl +0 -93
  70. package/static/style/filter-checklist.styl +0 -52
  71. package/static/style/filters.styl +0 -111
  72. package/static/style/grid-layout.styl +0 -130
  73. package/static/style/help.styl +0 -57
  74. package/static/style/keyword.styl +0 -8
  75. package/static/style/loader.styl +0 -16
  76. package/static/style/mixins/arrow.styl +0 -63
  77. package/static/style/mixins/box-shadow.styl +0 -8
  78. package/static/style/mixins/empty-content.styl +0 -7
  79. package/static/style/noresults.styl +0 -14
  80. package/static/style/paging.styl +0 -73
  81. package/static/style/reset-button.styl +0 -21
  82. package/static/style/rows-counter.styl +0 -17
  83. package/static/style/sort.styl +0 -20
  84. package/static/style/status-bar.styl +0 -16
  85. package/static/style/table.styl +0 -44
  86. package/static/style/tablefilter.styl +0 -18
  87. package/static/style/themes/blank.png +0 -0
  88. package/static/style/themes/btn_clear_filters.png +0 -0
  89. package/static/style/themes/btn_filter.png +0 -0
  90. package/static/style/themes/btn_first_page.gif +0 -0
  91. package/static/style/themes/btn_last_page.gif +0 -0
  92. package/static/style/themes/btn_next_page.gif +0 -0
  93. package/static/style/themes/btn_previous_page.gif +0 -0
  94. package/static/style/themes/default/default.styl +0 -137
  95. package/static/style/themes/default/images/bg_infDiv.jpg +0 -0
  96. package/static/style/themes/default/images/bg_th.jpg +0 -0
  97. package/static/style/themes/default/images/btn_eraser.gif +0 -0
  98. package/static/style/themes/default/images/btn_first_page.gif +0 -0
  99. package/static/style/themes/default/images/btn_last_page.gif +0 -0
  100. package/static/style/themes/default/images/btn_next_page.gif +0 -0
  101. package/static/style/themes/default/images/btn_over_eraser.gif +0 -0
  102. package/static/style/themes/default/images/btn_over_first_page.gif +0 -0
  103. package/static/style/themes/default/images/btn_over_last_page.gif +0 -0
  104. package/static/style/themes/default/images/btn_over_next_page.gif +0 -0
  105. package/static/style/themes/default/images/btn_over_previous_page.gif +0 -0
  106. package/static/style/themes/default/images/btn_previous_page.gif +0 -0
  107. package/static/style/themes/default/images/img_loading.gif +0 -0
  108. package/static/style/themes/downsimple.png +0 -0
  109. package/static/style/themes/icn_clp.png +0 -0
  110. package/static/style/themes/icn_exp.png +0 -0
  111. package/static/style/themes/icn_filter.gif +0 -0
  112. package/static/style/themes/icn_filterActive.gif +0 -0
  113. package/static/style/themes/mytheme/images/bg_headers.jpg +0 -0
  114. package/static/style/themes/mytheme/images/bg_infDiv.jpg +0 -0
  115. package/static/style/themes/mytheme/images/btn_filter.png +0 -0
  116. package/static/style/themes/mytheme/images/btn_first_page.gif +0 -0
  117. package/static/style/themes/mytheme/images/btn_last_page.gif +0 -0
  118. package/static/style/themes/mytheme/images/btn_next_page.gif +0 -0
  119. package/static/style/themes/mytheme/images/btn_previous_page.gif +0 -0
  120. package/static/style/themes/mytheme/images/img_loading.gif +0 -0
  121. package/static/style/themes/mytheme/mytheme.styl +0 -152
  122. package/static/style/themes/skyblue/images/bg_skyblue.gif +0 -0
  123. package/static/style/themes/skyblue/images/btn_first_page.gif +0 -0
  124. package/static/style/themes/skyblue/images/btn_last_page.gif +0 -0
  125. package/static/style/themes/skyblue/images/btn_next_page.gif +0 -0
  126. package/static/style/themes/skyblue/images/btn_prev_page.gif +0 -0
  127. package/static/style/themes/skyblue/images/icn_clear_filters.png +0 -0
  128. package/static/style/themes/skyblue/images/img_loading.gif +0 -0
  129. package/static/style/themes/skyblue/skyblue.styl +0 -195
  130. package/static/style/themes/transparent/images/btn_first_page.gif +0 -0
  131. package/static/style/themes/transparent/images/btn_last_page.gif +0 -0
  132. package/static/style/themes/transparent/images/btn_next_page.gif +0 -0
  133. package/static/style/themes/transparent/images/btn_prev_page.gif +0 -0
  134. package/static/style/themes/transparent/images/icn_clear_filters.png +0 -0
  135. package/static/style/themes/transparent/images/img_loading.gif +0 -0
  136. package/static/style/themes/transparent/transparent.styl +0 -205
  137. package/static/style/themes/upsimple.png +0 -0
  138. package/static/style/toolbar.styl +0 -58
  139. package/static/templates/advanced-grid-editable.html +0 -140
  140. package/static/templates/advanced-grid-selection.html +0 -93
  141. package/static/templates/auto-filter.html +0 -46
  142. package/static/templates/columns-visibility.html +0 -67
  143. package/static/templates/data-types.html +0 -123
  144. package/static/templates/demo.html +0 -62
  145. package/static/templates/external-filters-visibility-commad.html +0 -49
  146. package/static/templates/external-filters.html +0 -125
  147. package/static/templates/filter-images.html +0 -91
  148. package/static/templates/filters-visibility.html +0 -45
  149. package/static/templates/grid-layout.html +0 -51
  150. package/static/templates/grouped-headers.html +0 -78
  151. package/static/templates/linked-filters-disabled.html +0 -56
  152. package/static/templates/linked-filters.html +0 -45
  153. package/static/templates/load-filters-on-demand.html +0 -42
  154. package/static/templates/pagination.html +0 -78
  155. package/static/templates/requirejs.html +0 -53
  156. package/static/templates/starter.html +0 -61
  157. package/static/templates/theme-roller.html +0 -106
  158. package/test/libs/polyfill.js +0 -359
  159. package/test/libs/qunit/qunit.css +0 -237
  160. package/test/libs/qunit/qunit.js +0 -2495
  161. package/test/test-active-columns.html +0 -80
  162. package/test/test-active-columns.js +0 -318
  163. package/test/test-alternate-rows.html +0 -80
  164. package/test/test-alternate-rows.js +0 -335
  165. package/test/test-api.html +0 -141
  166. package/test/test-api.js +0 -795
  167. package/test/test-auto-filter.html +0 -80
  168. package/test/test-auto-filter.js +0 -43
  169. package/test/test-callbacks.html +0 -78
  170. package/test/test-callbacks.js +0 -58
  171. package/test/test-case-sensitive-query.html +0 -78
  172. package/test/test-case-sensitive-query.js +0 -39
  173. package/test/test-cell-parser.html +0 -109
  174. package/test/test-cell-parser.js +0 -80
  175. package/test/test-checklist.html +0 -78
  176. package/test/test-checklist.js +0 -267
  177. package/test/test-clear-button.html +0 -79
  178. package/test/test-clear-button.js +0 -182
  179. package/test/test-col-ops-grid-layout.html +0 -129
  180. package/test/test-col-ops-grid-layout.js +0 -134
  181. package/test/test-col-ops-paging.html +0 -129
  182. package/test/test-col-ops-paging.js +0 -154
  183. package/test/test-col-ops.html +0 -129
  184. package/test/test-col-ops.js +0 -337
  185. package/test/test-col-widths.html +0 -80
  186. package/test/test-col-widths.js +0 -40
  187. package/test/test-cols-visibility-grid-layout.html +0 -80
  188. package/test/test-cols-visibility-grid-layout.js +0 -165
  189. package/test/test-cols-visibility.html +0 -80
  190. package/test/test-cols-visibility.js +0 -121
  191. package/test/test-custom-options.html +0 -80
  192. package/test/test-custom-options.js +0 -139
  193. package/test/test-data-types.html +0 -377
  194. package/test/test-data-types.js +0 -392
  195. package/test/test-date-type.html +0 -356
  196. package/test/test-date-type.js +0 -159
  197. package/test/test-disable-enter-key.html +0 -78
  198. package/test/test-disable-enter-key.js +0 -29
  199. package/test/test-disable-filter-onchange.html +0 -78
  200. package/test/test-disable-filter-onchange.js +0 -40
  201. package/test/test-dom-changes.html +0 -78
  202. package/test/test-dom-changes.js +0 -166
  203. package/test/test-dropdown.html +0 -78
  204. package/test/test-dropdown.js +0 -246
  205. package/test/test-emitter.html +0 -78
  206. package/test/test-emitter.js +0 -57
  207. package/test/test-empty-cells-filtering.html +0 -8696
  208. package/test/test-empty-cells-filtering.js +0 -45
  209. package/test/test-exact-query-match.html +0 -78
  210. package/test/test-exact-query-match.js +0 -56
  211. package/test/test-excluded-rows.html +0 -92
  212. package/test/test-excluded-rows.js +0 -129
  213. package/test/test-external-filters.html +0 -100
  214. package/test/test-external-filters.js +0 -219
  215. package/test/test-filter-html-elements.html +0 -88
  216. package/test/test-filter-html-elements.js +0 -63
  217. package/test/test-filter-operators.html +0 -80
  218. package/test/test-filter-operators.js +0 -264
  219. package/test/test-filtering.html +0 -53
  220. package/test/test-filtering.js +0 -293
  221. package/test/test-filters-visibility-grid-layout.html +0 -80
  222. package/test/test-filters-visibility-grid-layout.js +0 -50
  223. package/test/test-filters-visibility-with-button.html +0 -80
  224. package/test/test-filters-visibility-with-button.js +0 -48
  225. package/test/test-filters-visibility.html +0 -80
  226. package/test/test-filters-visibility.js +0 -48
  227. package/test/test-grid-layout.html +0 -7736
  228. package/test/test-grid-layout.js +0 -39
  229. package/test/test-grouped-headers.html +0 -154
  230. package/test/test-grouped-headers.js +0 -107
  231. package/test/test-hash.html +0 -78
  232. package/test/test-hash.js +0 -88
  233. package/test/test-help-responsive.html +0 -79
  234. package/test/test-help-responsive.js +0 -70
  235. package/test/test-help.html +0 -78
  236. package/test/test-help.js +0 -217
  237. package/test/test-highlight-keywords.html +0 -78
  238. package/test/test-highlight-keywords.js +0 -94
  239. package/test/test-ignore-diacritics.html +0 -67
  240. package/test/test-ignore-diacritics.js +0 -117
  241. package/test/test-integration-paging-sort.html +0 -80
  242. package/test/test-integration-paging-sort.js +0 -60
  243. package/test/test-linked-filters-disabled-options-grid-layout.html +0 -80
  244. package/test/test-linked-filters-disabled-options-grid-layout.js +0 -73
  245. package/test/test-linked-filters-grid-layout.html +0 -80
  246. package/test/test-linked-filters-grid-layout.js +0 -72
  247. package/test/test-linked-filters-load-filters-on-demand.html +0 -80
  248. package/test/test-linked-filters-load-filters-on-demand.js +0 -99
  249. package/test/test-linked-filters-paging.html +0 -80
  250. package/test/test-linked-filters-paging.js +0 -99
  251. package/test/test-linked-filters.html +0 -80
  252. package/test/test-linked-filters.js +0 -138
  253. package/test/test-load-filters-on-demand.html +0 -78
  254. package/test/test-load-filters-on-demand.js +0 -124
  255. package/test/test-loader.html +0 -79
  256. package/test/test-loader.js +0 -159
  257. package/test/test-no-config.html +0 -80
  258. package/test/test-no-config.js +0 -63
  259. package/test/test-no-filters.html +0 -80
  260. package/test/test-no-filters.js +0 -172
  261. package/test/test-no-headers.html +0 -71
  262. package/test/test-no-headers.js +0 -99
  263. package/test/test-no-results-message.html +0 -262
  264. package/test/test-no-results-message.js +0 -222
  265. package/test/test-no-rows.html +0 -19
  266. package/test/test-no-rows.js +0 -10
  267. package/test/test-one-row.html +0 -29
  268. package/test/test-one-row.js +0 -18
  269. package/test/test-paging.html +0 -78
  270. package/test/test-paging.js +0 -273
  271. package/test/test-popup-filter-one-row.html +0 -38
  272. package/test/test-popup-filter-one-row.js +0 -138
  273. package/test/test-popup-filter.html +0 -78
  274. package/test/test-popup-filter.js +0 -384
  275. package/test/test-popup-filters-grouped-headers.html +0 -104
  276. package/test/test-popup-filters-grouped-headers.js +0 -206
  277. package/test/test-rows-counter.html +0 -78
  278. package/test/test-rows-counter.js +0 -112
  279. package/test/test-single-filter.html +0 -79
  280. package/test/test-single-filter.js +0 -138
  281. package/test/test-sort-custom-sorter.html +0 -244
  282. package/test/test-sort-custom-sorter.js +0 -74
  283. package/test/test-sort-grid-layout.html +0 -143
  284. package/test/test-sort-grid-layout.js +0 -86
  285. package/test/test-sort-key.html +0 -244
  286. package/test/test-sort-key.js +0 -67
  287. package/test/test-sort.html +0 -143
  288. package/test/test-sort.js +0 -126
  289. package/test/test-state.html +0 -78
  290. package/test/test-state.js +0 -369
  291. package/test/test-status-bar.html +0 -79
  292. package/test/test-status-bar.js +0 -146
  293. package/test/test-storage-cookie.html +0 -78
  294. package/test/test-storage-cookie.js +0 -82
  295. package/test/test-storage-local.html +0 -78
  296. package/test/test-storage-local.js +0 -82
  297. package/test/test-tfoot.html +0 -96
  298. package/test/test-tfoot.js +0 -123
  299. package/test/test-thead.html +0 -80
  300. package/test/test-thead.js +0 -69
  301. package/test/test-toolbar.html +0 -81
  302. package/test/test-toolbar.js +0 -218
  303. package/test/test-uneven-rows.html +0 -95
  304. package/test/test-uneven-rows.js +0 -61
  305. package/test/test-watermark.html +0 -80
  306. package/test/test-watermark.js +0 -103
  307. package/test/test.html +0 -141
  308. package/test/test.js +0 -162
  309. package/webpack.config.js +0 -87
  310. package/webpack.dev.config.js +0 -25
  311. package/webpack.test.config.js +0 -44
package/.eslintrc DELETED
@@ -1,37 +0,0 @@
1
- {
2
- "parser": "babel-eslint",
3
- "parserOptions": {
4
- "sourceType": "module",
5
- "ecmaFeatures": { "modules": true }
6
- },
7
- "rules": {
8
- "max-len": [2, 80, 2, {"ignoreUrls": true}],
9
- "indent": [2, 4, {"SwitchCase": 1}],
10
- "semi": ["error", "always"],
11
- "no-trailing-spaces": 2,
12
- "no-multi-spaces": 2,
13
- "array-bracket-spacing": 2,
14
- "keyword-spacing": ["error", { "after": true, "before": true }],
15
- "max-depth": [2, 7],
16
- "max-statements": [2, 133],
17
- "complexity": [2, 45],
18
- "no-unused-vars": 2,
19
- "no-eval": 2,
20
- "no-underscore-dangle": 0,
21
- "no-loop-func": 2,
22
- "no-floating-decimal": 2,
23
- "curly": 2,
24
- "eqeqeq": [2, "smart"],
25
- "quotes": [2, "single"],
26
- "new-cap": 2,
27
- "radix": [2, "always"]
28
- },
29
- "env": {
30
- "es6": true,
31
- "browser": true,
32
- "node": false
33
- },
34
- "globals": {
35
- "__webpack_public_path__": false
36
- }
37
- }
@@ -1,38 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Create a report to help us improve
4
- title: ''
5
- labels: bug
6
- assignees: ''
7
-
8
- ---
9
-
10
- **Describe the bug**
11
- A clear and concise description of what the bug is.
12
-
13
- **Reproduction steps:**
14
- Steps to reproduce the behavior:
15
- 1. [First Step]
16
- 2. [Second Step]
17
- 3. [Other Steps...]
18
-
19
- **Expected behavior**
20
- A clear and concise description of what you expected to happen.
21
-
22
- **Observed behavior:**
23
- A clear and concise description of observed behavior.
24
-
25
- **Screenshots**
26
- If applicable, add screenshots to help explain your problem.
27
- ![Screenshots and GIFs which follow reproduction steps to demonstrate the problem](url)
28
-
29
- **TableFilter version:** [Enter TableFilter version here]
30
- **Browser and version:** [Enter Browser name and version here]
31
- **OS and version:** [Enter OS name and version here]
32
- **Device:** [e.g. iPhone6]
33
-
34
- **Additional information/context:**
35
- Add any other context about the problem here.
36
-
37
- * Problem started happening recently, didn't happen in an older version of TableFilter: [Yes/No] if yes [version here]
38
- * Problem can be reliably reproduced, doesn't happen randomly: [Yes/No]
@@ -1,36 +0,0 @@
1
- ---
2
- name: Feature request
3
- about: Suggest an idea for this project
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
-
8
- ---
9
-
10
- **Enhancement/feature description**
11
- [A clear and concise description of what the problem is. Ex. I'm always frustrated when ...]
12
-
13
- **Steps which explain the enhancement/feature**
14
- 1. [First Step]
15
- 2. [Second Step]
16
- 3. [Other Steps...]
17
-
18
- **Current and suggested behavior**
19
- [Describe current and suggested behavior here]
20
-
21
- **Why would the enhancement be useful to most users**
22
- [Explain why the enhancement would be useful to most users]
23
-
24
- **Screenshots and GIFs**
25
- ![Screenshots and GIFs which demonstrate the steps or part of TableFilter the enhancement suggestion is related to](url)
26
-
27
- **Additional context**
28
- [Add any other context or screenshots about the feature request here.]
29
-
30
- **Describe alternatives you've considered**
31
- A clear and concise description of any alternative solutions or features you've considered.
32
-
33
- **TableFilter Version:** [Enter TableFilter version here]
34
- **Browser and version:** [Enter Browser name and version here]
35
- **OS and version:** [Enter OS name and version here]
36
- **Device:** [e.g. iPhone6]
@@ -1,17 +0,0 @@
1
- ---
2
- name: Support
3
- about: I need support with TableFilter
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
-
8
- ---
9
-
10
- For usage and support questions, please check out resources below, you might find an answer:
11
-
12
- - https://www.tablefilter.com/
13
- - https://www.tablefilter.com/docs/
14
- - https://www.tablefilter.com/examples.html
15
- - https://github.com/koalyptus/TableFilter/wiki/
16
- - https://github.com/koalyptus/TableFilter/issues?q=is%3Aissue+is%3Aclosed
17
- - https://codepen.io/koalyptus/pens/public/
@@ -1,10 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: npm
4
- directory: /
5
- schedule:
6
- interval: weekly
7
- ignore:
8
- - dependency-name: webpack-dev-server
9
- update-types:
10
- - version-update:semver-major
@@ -1,113 +0,0 @@
1
- name: Build and deploy
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
- pull_request:
8
- branches:
9
- - master
10
-
11
- permissions:
12
- contents: read
13
-
14
- jobs:
15
- build:
16
- runs-on: ubuntu-latest
17
- steps:
18
- - uses: actions/checkout@v4
19
- with:
20
- fetch-depth: 0
21
-
22
- - uses: actions/setup-node@v4
23
- with:
24
- node-version: 24
25
-
26
- - name: Pin npm version
27
- run: |
28
- npm install --global npm@12.0.1
29
- npm --version
30
-
31
- - name: Install dependencies
32
- run: npm install --no-audit --no-fund
33
-
34
- - uses: actions/setup-node@v4
35
- with:
36
- node-version: 8.9.4
37
-
38
- - name: Test
39
- run: npm test
40
-
41
- - name: Upload coverage
42
- run: npm run codecov
43
-
44
- - uses: actions/setup-node@v4
45
- with:
46
- node-version: 24
47
-
48
- - name: Build deployment files
49
- run: npm run build:all
50
- env:
51
- NODE_OPTIONS: --openssl-legacy-provider
52
-
53
- - name: Upload deployment files
54
- if: github.event_name == 'push' && github.ref == 'refs/heads/master'
55
- uses: actions/upload-artifact@v4
56
- with:
57
- name: website-files
58
- path: |
59
- dist/
60
- docs/
61
- if-no-files-found: error
62
- retention-days: 1
63
-
64
- deploy:
65
- if: github.event_name == 'push' && github.ref == 'refs/heads/master'
66
- needs: build
67
- runs-on: ubuntu-latest
68
- permissions:
69
- contents: write
70
- steps:
71
- - uses: actions/checkout@v4
72
- with:
73
- fetch-depth: 0
74
-
75
- - uses: actions/download-artifact@v4
76
- with:
77
- name: website-files
78
-
79
- - name: Configure AWS credentials
80
- uses: aws-actions/configure-aws-credentials@v4
81
- with:
82
- aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
83
- aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
84
- aws-region: ${{ vars.AWS_DEFAULT_REGION }}
85
-
86
- - name: Publish version release
87
- env:
88
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89
- run: |
90
- set -euo pipefail
91
- version=$(node -p "require('./package.json').version")
92
- if ! git show-ref --verify --quiet "refs/tags/$version"; then
93
- latest_tag="$(git describe --tags --abbrev=0 2>/dev/null || true)"
94
- if [ "$latest_tag" != "$version" ]; then
95
- git config user.name "koalyptus"
96
- git config user.email "maxgug@hotmail.com"
97
- git tag -a "$version" -m "Generated tag from GitHub Actions run $GITHUB_RUN_NUMBER"
98
- git push origin "refs/tags/$version"
99
- fi
100
- fi
101
-
102
- if ! gh release view "$version" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
103
- gh release create "$version" \
104
- --repo "$GITHUB_REPOSITORY" \
105
- --title "$version" \
106
- --notes ""
107
- fi
108
-
109
- - name: Deploy distribution to S3
110
- run: aws s3 sync dist/ "s3://www.tablefilter.com/"
111
-
112
- - name: Deploy documentation to S3
113
- run: aws s3 sync docs/ "s3://www.tablefilter.com/"
package/AGENTS.md DELETED
@@ -1,36 +0,0 @@
1
- # Agent guidelines
2
-
3
- Work is tracked in the "TableFilter v1.0.0 Modernization" GitHub Project and
4
- planned in [ROADMAP/](./ROADMAP/README.md). One issue = one small PR.
5
-
6
- ## Temporary code and follow-ups
7
-
8
- When a change leaves temporary code behind (compat aliases, shims, duplicated
9
- logic that a later task removes):
10
-
11
- 1. Mark it with a `TODO(#<issue>)` comment that links the issue that removes it:
12
- `// TODO(#881): remove once contains() uses the native helper`
13
- 2. Add a checklist item to that issue naming the symbol to delete, plus a
14
- check such as `grep "TODO(#881)" src` returning nothing.
15
- 3. The issue that removes the code must delete the TODO in the same PR.
16
-
17
- Never leave a bare `TODO` without an issue number.
18
-
19
- ## Commits and PRs
20
-
21
- - Commit and open PRs as the agent bot (see the `agent-git-setup` and
22
- `agent-github-access` skills); work in a linked worktree, not the main checkout.
23
- - Reference the issue in the PR body. Use `Refs #n` when the issue needs a
24
- follow-up, `Closes #n` when the PR completes it (this closes the issue and
25
- moves it to Done on the board).
26
-
27
- ## Running tests locally
28
-
29
- The test toolchain (grunt-qunit, PhantomJS, Babel 6) is about ten years old and
30
- breaks on current Node. CI runs `npm test` on Node 8.9.4 and builds on Node 24
31
- with `NODE_OPTIONS=--openssl-legacy-provider`. Match that locally.
32
-
33
- ## Versioning
34
-
35
- Do not bump the `package.json` version in feature PRs. Versions change only in
36
- the milestone "Release vX.Y.Z" issue.
package/CONTRIBUTING.md DELETED
@@ -1,128 +0,0 @@
1
- # Contributing to TableFilter
2
- :+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
3
-
4
- ## Reporting bugs
5
- Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/).
6
- Create an issue and provide the following information.
7
-
8
- Explain the problem and include additional details to help maintainers reproduce
9
- the problem:
10
-
11
- * **Use a clear, concise and descriptive title** for the issue to identify the
12
- problem.
13
- * **Describe the exact steps which reproduce the problem** in as many details
14
- as possible.
15
- * **Provide specific examples to demonstrate the steps**. Include links to
16
- files or GitHub projects, or copy/pasteable snippets, which you use in those
17
- examples. If you're providing snippets in the issue, use
18
- [Markdown code blocks](https://guides.github.com/features/mastering-markdown/#GitHub-flavored-markdown).
19
- Do not paste large snippets completely unrelated to the issue.
20
- * **Describe the behavior you observed after following the steps** and point
21
- out what exactly is the problem with that behavior.
22
- * **Explain which behavior you expected to see instead and why.**
23
- * Do not hesitate to **include screenshots and animated GIFs** which show you
24
- following the described steps and clearly demonstrate the problem.
25
- You can use [this tool](http://www.cockos.com/licecap/) to record GIFs on macOS
26
- and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or
27
- [this tool](https://github.com/GNOME/byzanz) on Linux.
28
-
29
- ### Template for submitting bug reports
30
-
31
- [Short description of problem here]
32
-
33
- **Reproduction steps:**
34
-
35
- 1. [First Step]
36
- 2. [Second Step]
37
- 3. [Other Steps...]
38
-
39
- **Expected behavior:**
40
-
41
- [Describe expected behavior here]
42
-
43
- **Observed behavior:**
44
-
45
- [Describe observed behavior here]
46
-
47
- **Screenshots and GIFs**
48
-
49
- ![Screenshots and GIFs which follow reproduction steps to demonstrate the
50
- problem](url)
51
-
52
- **TableFilter version:** [Enter TableFilter version here]
53
- **Browser and version:** [Enter Browser name and version here]
54
- **OS and version:** [Enter OS name and version here]
55
-
56
- **Additional information:**
57
-
58
- * Problem started happening recently, didn't happen in an older version of
59
- TableFilter: [Yes/No]
60
- * Problem can be reliably reproduced, doesn't happen randomly: [Yes/No]
61
-
62
- ## Suggesting enhancements and features
63
- Enhancement and feature suggestions are tracked as
64
- [GitHub issues](https://guides.github.com/features/issues/).
65
- Create an issue and provide the following information:
66
-
67
- * **Use a clear and descriptive title** for the issue to identify the
68
- suggestion.
69
- * **Provide a step-by-step description of the suggested enhancement/feature**
70
- in as many details as possible.
71
- * When applicable **describe the current behavior** and
72
- **explain which behavior you expected to see instead** and why.
73
- * **Include screenshots and animated GIFs** which help you demonstrate the
74
- steps or point out the part of TableFilter which the suggestion is related to.
75
- You can use [this tool](http://www.cockos.com/licecap/) to record GIFs on macOS
76
- and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or
77
- [this tool](https://github.com/GNOME/byzanz) on Linux.
78
- * **Explain why this enhancement would be useful** to most TableFilter users.
79
-
80
- ### Template for submitting enhancement and feature suggestions
81
-
82
- [Short description of suggestion]
83
-
84
- **Steps which explain the enhancement/feature**
85
-
86
- 1. [First Step]
87
- 2. [Second Step]
88
- 3. [Other Steps...]
89
-
90
- **Current and suggested behavior**
91
-
92
- [Describe current and suggested behavior here]
93
-
94
- **Why would the enhancement be useful to most users**
95
-
96
- [Explain why the enhancement would be useful to most users]
97
-
98
- **Screenshots and GIFs**
99
-
100
- ![Screenshots and GIFs which demonstrate the steps or part of TableFilter
101
- the enhancement suggestion is related to](url)
102
-
103
- **TableFilter Version:** [Enter TableFilter version here]
104
- **Browser and version:** [Enter Browser name and version here]
105
- **OS and version:** [Enter OS name and version here]
106
-
107
- ## Code contribution
108
- TableFilter welcomes contributions from anyone and everyone. If you want to get
109
- your hands dirty:
110
-
111
- ### Pull requests
112
- In general, we follow the "fork-and-pull" Git workflow.
113
-
114
- 1. **Fork** the repo on GitHub
115
- 2. **Clone** the project to your own machine
116
- 3. **Commit** changes to your own branch
117
- - 3.1. **Add** unit tests covering your change in the `test` folder
118
- - 3.2. **Run** the tests with the `npm run eslint test` command
119
- - 3.3. **Ensure** build is working with `npm run dist` command
120
- 4. **Push** your work back up to your fork
121
- 5. Submit a **Pull request** so that we can review your changes
122
-
123
- NOTE: Be sure to merge the latest from "upstream" before making a pull request!
124
-
125
- ## Donations
126
- Support this project by donating [here](http://www.tablefilter.com/donate.html).
127
- Thanks to all those who supported this project in the past and those who will
128
- in the future!
package/Gruntfile.js DELETED
@@ -1,252 +0,0 @@
1
- module.exports = function (grunt) {
2
- var fs = require('fs');
3
- var path = require('path');
4
- var testDir = 'test';
5
- var testHost = 'http://localhost:8000/';
6
- var pkg = grunt.file.readJSON('package.json');
7
-
8
- grunt.initConfig({
9
-
10
- qunit: {
11
- options: {
12
- '--web-security': 'no',
13
- coverage: {
14
- disposeCollector: true,
15
- src: ['dist/tablefilter/*.js'],
16
- instrumentedFiles: 'report/temp/',
17
- htmlReport: 'report/coverage',
18
- coberturaReport: 'report/',
19
- lcovReport: 'report/',
20
- jsonReport: 'report',
21
- linesThresholdPct: 80
22
- }
23
- },
24
- all: {
25
- options: {
26
- urls: getTestFiles(testDir, testHost)
27
- }
28
- },
29
- only: {
30
- options: {
31
- urls: []
32
- }
33
- }
34
- },
35
-
36
- connect: {
37
- server: {
38
- options: {
39
- port: 8000,
40
- base: '.'
41
- }
42
- }
43
- },
44
-
45
- copy: {
46
- dist: {
47
- src: [
48
- '**',
49
- '!**/*.styl',
50
- '!**/extensions/**',
51
- '!**/mixins/**'
52
- ],
53
- cwd: 'static/style',
54
- dest: 'dist/tablefilter/style',
55
- expand: true
56
- },
57
- templates: {
58
- src: ['**'],
59
- cwd: 'static/templates',
60
- dest: 'demos',
61
- expand: true
62
- },
63
- assets: {
64
- src: ['**'],
65
- cwd: 'static/demos-assets',
66
- dest: 'demos/assets',
67
- expand: true
68
- },
69
- starter: {
70
- src: ['demos/starter.html'],
71
- dest: 'dist/starter.html'
72
- }
73
- },
74
-
75
- 'string-replace': {
76
- demos: {
77
- files: { 'demos/': 'demos/*.html' },
78
- options: {
79
- replacements: [
80
- {
81
- pattern: /{NAME}/ig,
82
- replacement: pkg.name
83
- }, {
84
- pattern: /{VERSION}/ig,
85
- replacement: pkg.version
86
- }, {
87
- pattern: /{EZEDITTABLE_LINK}/ig,
88
- replacement: '<a href="http://edittable.free.fr/' +
89
- 'zip.php?f=ezEditTable.zip&amp;p=1"' +
90
- 'target="_blank" title="ezEditTable is a ' +
91
- 'javascript code aimed at enhancing regular ' +
92
- 'HTML tables by adding features such as ' +
93
- 'inline editing components, advanced ' +
94
- 'selection and keyboard navigation ' +
95
- '- Developed by ' + pkg.author.name + '">' +
96
- 'ezEditTable</a>'
97
- }, {
98
- pattern: /<!-- @import (.*?) -->/ig,
99
- replacement: function (match, p1) {
100
- return grunt.file.read('static/' + p1);
101
- }
102
- }
103
- ]
104
- }
105
- }
106
- },
107
-
108
- clean: ['demos/starter.html'],
109
-
110
- watch: {
111
- app: {
112
- files: ['src/**/*', 'static/style/**/*'],
113
- tasks: ['dev'],
114
- options: {
115
- spawn: false
116
- }
117
- },
118
- templates: {
119
- files: ['static/templates/**/*', 'static/partials/**/*'],
120
- tasks: ['build-demos'],
121
- options: {
122
- spawn: false
123
- }
124
- }
125
- },
126
-
127
- // temporary shell commands while decommissioning grunt
128
- shell: {
129
- eslint: {
130
- command: 'npm run lint'
131
- },
132
- esdoc: {
133
- command: 'npm run esdoc'
134
- },
135
- build: {
136
- command: 'npm run build'
137
- },
138
- dev: {
139
- command: 'npm run dev'
140
- },
141
- test: {
142
- command: 'npm run build:test'
143
- },
144
- 'build-css': {
145
- command: 'npm run build:css'
146
- }
147
- }
148
- });
149
-
150
- grunt.loadNpmTasks('grunt-contrib-copy');
151
- grunt.loadNpmTasks('grunt-contrib-clean');
152
- grunt.loadNpmTasks('grunt-contrib-watch');
153
- grunt.loadNpmTasks('grunt-string-replace');
154
- grunt.loadNpmTasks('grunt-contrib-connect');
155
- grunt.loadNpmTasks('grunt-shell');
156
- grunt.loadNpmTasks('grunt-qunit-istanbul');
157
-
158
- grunt.registerTask('eslint', ['shell:eslint']);
159
- grunt.registerTask('esdoc', ['shell:esdoc']);
160
-
161
- grunt.registerTask('default', ['test', 'build', 'build-demos']);
162
-
163
- // Dev dev/build/watch cycle
164
- grunt.registerTask('dev',
165
- ['eslint', 'shell:dev', 'copy:dist', 'shell:build-css', 'watch:app']);
166
-
167
- // Production build
168
- grunt.registerTask('build',
169
- ['eslint', 'shell:build', 'copy:dist', 'shell:build-css']);
170
-
171
- // Build demos
172
- grunt.registerTask('dev-demos', ['build-demos', 'watch:templates']);
173
- grunt.registerTask('build-demos', ['copy:templates', 'copy:assets',
174
- 'string-replace:demos', 'copy:starter', 'clean']);
175
-
176
- // Build tests
177
- grunt.registerTask('build-test',
178
- ['eslint', 'shell:test', 'copy:dist', 'shell:build-css']);
179
-
180
- // Tests with coverage
181
- grunt.registerTask('test', ['build-test', 'connect', 'qunit:all']);
182
-
183
- // Build all for deployment from travis
184
- grunt.registerTask('build-all', 'Prepare for deployment', [
185
- 'build', 'build-demos', 'esdoc'
186
- ]);
187
-
188
- // Custom task running QUnit tests for specified files.
189
- // Usage example: grunt test-only:test.html,test-help.html
190
- grunt.registerTask('test-only',
191
- 'A task that runs only specified tests.',
192
- function (tests) {
193
- if (!tests) {
194
- return;
195
- }
196
- tests = tests.split(',');
197
- var res = [];
198
-
199
- tests.forEach(function (itm) {
200
- var filePath = path.resolve(testDir, itm);
201
- var parts = filePath.split(path.sep);
202
- res.push(buildTestUrl(testHost, testDir, parts));
203
- });
204
-
205
- grunt.task.run('connect');
206
- grunt.config('qunit.only.options.urls', res);
207
- grunt.task.run('qunit:only');
208
- }
209
- );
210
-
211
- function isTestFile(pth) {
212
- var allowedExts = ['.html', '.htm'];
213
- for (var i = 0, len = allowedExts.length; i < len; i++) {
214
- var ext = allowedExts[i];
215
- if (pth.indexOf(ext) !== -1) {
216
- return true;
217
- }
218
- }
219
- return false;
220
- }
221
-
222
- function buildTestUrl(host, testDir, parts) {
223
- var idx = parts.indexOf(testDir);
224
- var fileIdx = parts.length;
225
- var relParts = parts.slice(idx, fileIdx);
226
- return host.concat(relParts.join('/'));
227
- }
228
-
229
- // Returns the list of test files from the test folder for qunit task
230
- function getTestFiles(testDir, host) {
231
- var getFiles = function (dir, host) {
232
- var res = [];
233
- var items = fs.readdirSync(dir);
234
-
235
- items.forEach(function (itm) {
236
- var fileOrDir = path.resolve(dir, itm);
237
- if (isTestFile(fileOrDir)) {
238
- var parts = fileOrDir.split(path.sep);
239
- res.push(buildTestUrl(host, testDir, parts));
240
- } else {
241
- if (fs.lstatSync(fileOrDir).isDirectory()) {
242
- res = res.concat(getFiles(fileOrDir, host));
243
- }
244
- }
245
- });
246
-
247
- return res;
248
- };
249
-
250
- return getFiles(testDir, host);
251
- }
252
- };