tablefilter 0.7.5 → 0.7.7

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 (325) hide show
  1. package/dist/starter.html +2 -2
  2. package/dist/tablefilter/tablefilter.js +1 -1
  3. package/dist/tablefilter/tf-1-2aa33b10e0e549020c12.js +1 -0
  4. package/dist/tablefilter/tf-1-7e29d0dbe6e0e0a4ff05.js +1 -0
  5. package/dist/tablefilter/{tf-2-3a936d22b849361acff5.js → tf-2-0ea691278d572212426a.js} +2 -2
  6. package/dist/tablefilter.cjs.js +17787 -4
  7. package/dist/tablefilter.esm.js +15910 -5398
  8. package/dist/tablefilter.umd.js +17793 -4
  9. package/index.js +16 -1
  10. package/package.json +10 -1
  11. package/src/components/attributes.js +59 -0
  12. package/src/components/table-filter.js +193 -45
  13. package/src/components/tf-pager.js +325 -0
  14. package/src/components/tf-results-per-page.js +181 -0
  15. package/src/components/tf-rows-counter.js +3 -6
  16. package/src/components/tf-status.js +6 -11
  17. package/src/extensions/sort/sort.js +8 -1
  18. package/src/modules/paging.js +270 -46
  19. package/src/tablefilter.js +39 -6
  20. package/.editorconfig +0 -15
  21. package/.esdoc.json +0 -14
  22. package/.eslintrc +0 -37
  23. package/.gitattributes +0 -16
  24. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
  25. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -36
  26. package/.github/ISSUE_TEMPLATE/support.md +0 -17
  27. package/.github/dependabot.yml +0 -10
  28. package/.github/workflows/build-deploy.yml +0 -141
  29. package/.github/workflows/opencode-review.yml +0 -104
  30. package/.github/workflows/opencode.yml +0 -34
  31. package/AGENTS.md +0 -36
  32. package/CONTRIBUTING.md +0 -128
  33. package/Gruntfile.js +0 -252
  34. package/PULL_REQUEST_TEMPLATE.md +0 -24
  35. package/ROADMAP/README.md +0 -34
  36. package/ROADMAP/content-projection-parity.md +0 -162
  37. package/ROADMAP/hybrid-migration-strategy.md +0 -275
  38. package/ROADMAP/key-decisions-review.md +0 -215
  39. package/ROADMAP/preliminary-and-milestone-0.8.0-plan.md +0 -307
  40. package/ROADMAP/v1-webcomponents-investigation.md +0 -521
  41. package/dist/tablefilter/tablefilter.vite.js +0 -4
  42. package/dist/tablefilter/tf-1-a5c3a73bd559e47dd5a2.js +0 -1
  43. package/playwright.config.js +0 -25
  44. package/scripts/check-css-tokens.js +0 -65
  45. package/static/demos-assets/img_best-price.png +0 -0
  46. package/static/demos-assets/img_great-deal.png +0 -0
  47. package/static/demos-assets/img_maintenance.jpg +0 -0
  48. package/static/demos-assets/img_new-edition.png +0 -0
  49. package/static/demos-assets/img_sold-out.png +0 -0
  50. package/static/partials/books-table-with-images.html +0 -328
  51. package/static/partials/books.html +0 -273
  52. package/static/partials/countries-by-continent.html +0 -2592
  53. package/static/partials/countries-table-tiny.html +0 -436
  54. package/static/partials/countries-table.html +0 -12954
  55. package/static/partials/dummy-table-with-totals-footer.html +0 -353
  56. package/static/partials/dummy-table.html +0 -503
  57. package/static/partials/pre-inline-script.html +0 -17
  58. package/static/partials/pre.html +0 -1
  59. package/static/partials/style.html +0 -23
  60. package/static/partials/table-with-grouped-headers.html +0 -9258
  61. package/static/partials/tablefilter-script.html +0 -1
  62. package/static/style/active-header.styl +0 -10
  63. package/static/style/alternating-rows.styl +0 -8
  64. package/static/style/config.styl +0 -44
  65. package/static/style/custom-properties.styl +0 -43
  66. package/static/style/extensions/colsVisibility.styl +0 -71
  67. package/static/style/extensions/filtersVisibility.styl +0 -18
  68. package/static/style/ezedittable.styl +0 -93
  69. package/static/style/filter-checklist.styl +0 -52
  70. package/static/style/filters.styl +0 -111
  71. package/static/style/grid-layout.styl +0 -130
  72. package/static/style/help.styl +0 -57
  73. package/static/style/keyword.styl +0 -8
  74. package/static/style/loader.styl +0 -16
  75. package/static/style/mixins/arrow.styl +0 -63
  76. package/static/style/mixins/box-shadow.styl +0 -8
  77. package/static/style/mixins/empty-content.styl +0 -7
  78. package/static/style/noresults.styl +0 -14
  79. package/static/style/paging.styl +0 -73
  80. package/static/style/reset-button.styl +0 -21
  81. package/static/style/rows-counter.styl +0 -17
  82. package/static/style/sort.styl +0 -20
  83. package/static/style/status-bar.styl +0 -13
  84. package/static/style/table.styl +0 -44
  85. package/static/style/tablefilter.styl +0 -19
  86. package/static/style/themes/blank.png +0 -0
  87. package/static/style/themes/btn_clear_filters.png +0 -0
  88. package/static/style/themes/btn_filter.png +0 -0
  89. package/static/style/themes/btn_first_page.gif +0 -0
  90. package/static/style/themes/btn_last_page.gif +0 -0
  91. package/static/style/themes/btn_next_page.gif +0 -0
  92. package/static/style/themes/btn_previous_page.gif +0 -0
  93. package/static/style/themes/default/default.styl +0 -137
  94. package/static/style/themes/default/images/bg_infDiv.jpg +0 -0
  95. package/static/style/themes/default/images/bg_th.jpg +0 -0
  96. package/static/style/themes/default/images/btn_eraser.gif +0 -0
  97. package/static/style/themes/default/images/btn_first_page.gif +0 -0
  98. package/static/style/themes/default/images/btn_last_page.gif +0 -0
  99. package/static/style/themes/default/images/btn_next_page.gif +0 -0
  100. package/static/style/themes/default/images/btn_over_eraser.gif +0 -0
  101. package/static/style/themes/default/images/btn_over_first_page.gif +0 -0
  102. package/static/style/themes/default/images/btn_over_last_page.gif +0 -0
  103. package/static/style/themes/default/images/btn_over_next_page.gif +0 -0
  104. package/static/style/themes/default/images/btn_over_previous_page.gif +0 -0
  105. package/static/style/themes/default/images/btn_previous_page.gif +0 -0
  106. package/static/style/themes/default/images/img_loading.gif +0 -0
  107. package/static/style/themes/downsimple.png +0 -0
  108. package/static/style/themes/icn_clp.png +0 -0
  109. package/static/style/themes/icn_exp.png +0 -0
  110. package/static/style/themes/icn_filter.gif +0 -0
  111. package/static/style/themes/icn_filterActive.gif +0 -0
  112. package/static/style/themes/mytheme/images/bg_headers.jpg +0 -0
  113. package/static/style/themes/mytheme/images/bg_infDiv.jpg +0 -0
  114. package/static/style/themes/mytheme/images/btn_filter.png +0 -0
  115. package/static/style/themes/mytheme/images/btn_first_page.gif +0 -0
  116. package/static/style/themes/mytheme/images/btn_last_page.gif +0 -0
  117. package/static/style/themes/mytheme/images/btn_next_page.gif +0 -0
  118. package/static/style/themes/mytheme/images/btn_previous_page.gif +0 -0
  119. package/static/style/themes/mytheme/images/img_loading.gif +0 -0
  120. package/static/style/themes/mytheme/mytheme.styl +0 -152
  121. package/static/style/themes/skyblue/images/bg_skyblue.gif +0 -0
  122. package/static/style/themes/skyblue/images/btn_first_page.gif +0 -0
  123. package/static/style/themes/skyblue/images/btn_last_page.gif +0 -0
  124. package/static/style/themes/skyblue/images/btn_next_page.gif +0 -0
  125. package/static/style/themes/skyblue/images/btn_prev_page.gif +0 -0
  126. package/static/style/themes/skyblue/images/icn_clear_filters.png +0 -0
  127. package/static/style/themes/skyblue/images/img_loading.gif +0 -0
  128. package/static/style/themes/skyblue/skyblue.styl +0 -195
  129. package/static/style/themes/transparent/images/btn_first_page.gif +0 -0
  130. package/static/style/themes/transparent/images/btn_last_page.gif +0 -0
  131. package/static/style/themes/transparent/images/btn_next_page.gif +0 -0
  132. package/static/style/themes/transparent/images/btn_prev_page.gif +0 -0
  133. package/static/style/themes/transparent/images/icn_clear_filters.png +0 -0
  134. package/static/style/themes/transparent/images/img_loading.gif +0 -0
  135. package/static/style/themes/transparent/transparent.styl +0 -205
  136. package/static/style/themes/upsimple.png +0 -0
  137. package/static/style/toolbar.styl +0 -58
  138. package/static/templates/advanced-grid-editable.html +0 -140
  139. package/static/templates/advanced-grid-selection.html +0 -93
  140. package/static/templates/auto-filter.html +0 -46
  141. package/static/templates/columns-visibility.html +0 -67
  142. package/static/templates/data-types.html +0 -123
  143. package/static/templates/demo.html +0 -62
  144. package/static/templates/external-filters-visibility-commad.html +0 -49
  145. package/static/templates/external-filters.html +0 -125
  146. package/static/templates/filter-images.html +0 -91
  147. package/static/templates/filters-visibility.html +0 -45
  148. package/static/templates/grid-layout.html +0 -51
  149. package/static/templates/grouped-headers.html +0 -78
  150. package/static/templates/linked-filters-disabled.html +0 -56
  151. package/static/templates/linked-filters.html +0 -45
  152. package/static/templates/load-filters-on-demand.html +0 -42
  153. package/static/templates/pagination.html +0 -78
  154. package/static/templates/requirejs.html +0 -53
  155. package/static/templates/starter.html +0 -61
  156. package/static/templates/table-filter.html +0 -40
  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/playwright/axe.baseline.spec.js +0 -34
  162. package/test/playwright/axe.statusbar.spec.js +0 -35
  163. package/test/playwright/axeScan.js +0 -42
  164. package/test/playwright/ce-bridge.spec.js +0 -167
  165. package/test/playwright/qunit.all.spec.js +0 -10
  166. package/test/playwright/qunit.single.spec.js +0 -14
  167. package/test/playwright/qunitSuite.js +0 -56
  168. package/test/playwright/table-filter.config.spec.js +0 -265
  169. package/test/playwright/table-filter.demo.spec.js +0 -60
  170. package/test/playwright/table-filter.element.spec.js +0 -477
  171. package/test/playwright/tf-clear-button.spec.js +0 -135
  172. package/test/playwright/tf-rows-counter.spec.js +0 -172
  173. package/test/playwright/tf-status.spec.js +0 -258
  174. package/test/test-active-columns.html +0 -80
  175. package/test/test-active-columns.js +0 -318
  176. package/test/test-alternate-rows.html +0 -80
  177. package/test/test-alternate-rows.js +0 -335
  178. package/test/test-api.html +0 -141
  179. package/test/test-api.js +0 -795
  180. package/test/test-auto-filter.html +0 -80
  181. package/test/test-auto-filter.js +0 -43
  182. package/test/test-callbacks.html +0 -78
  183. package/test/test-callbacks.js +0 -58
  184. package/test/test-case-sensitive-query.html +0 -78
  185. package/test/test-case-sensitive-query.js +0 -39
  186. package/test/test-cell-parser.html +0 -109
  187. package/test/test-cell-parser.js +0 -80
  188. package/test/test-checklist.html +0 -78
  189. package/test/test-checklist.js +0 -267
  190. package/test/test-clear-button.html +0 -79
  191. package/test/test-clear-button.js +0 -183
  192. package/test/test-col-ops-grid-layout.html +0 -129
  193. package/test/test-col-ops-grid-layout.js +0 -134
  194. package/test/test-col-ops-paging.html +0 -129
  195. package/test/test-col-ops-paging.js +0 -154
  196. package/test/test-col-ops.html +0 -129
  197. package/test/test-col-ops.js +0 -337
  198. package/test/test-col-widths.html +0 -80
  199. package/test/test-col-widths.js +0 -40
  200. package/test/test-cols-visibility-grid-layout.html +0 -80
  201. package/test/test-cols-visibility-grid-layout.js +0 -165
  202. package/test/test-cols-visibility.html +0 -80
  203. package/test/test-cols-visibility.js +0 -121
  204. package/test/test-custom-options.html +0 -80
  205. package/test/test-custom-options.js +0 -139
  206. package/test/test-data-types.html +0 -377
  207. package/test/test-data-types.js +0 -392
  208. package/test/test-date-type.html +0 -356
  209. package/test/test-date-type.js +0 -159
  210. package/test/test-disable-enter-key.html +0 -78
  211. package/test/test-disable-enter-key.js +0 -29
  212. package/test/test-disable-filter-onchange.html +0 -78
  213. package/test/test-disable-filter-onchange.js +0 -40
  214. package/test/test-dom-changes.html +0 -78
  215. package/test/test-dom-changes.js +0 -166
  216. package/test/test-dropdown.html +0 -78
  217. package/test/test-dropdown.js +0 -246
  218. package/test/test-emitter.html +0 -78
  219. package/test/test-emitter.js +0 -57
  220. package/test/test-empty-cells-filtering.html +0 -8696
  221. package/test/test-empty-cells-filtering.js +0 -45
  222. package/test/test-exact-query-match.html +0 -78
  223. package/test/test-exact-query-match.js +0 -56
  224. package/test/test-excluded-rows.html +0 -92
  225. package/test/test-excluded-rows.js +0 -129
  226. package/test/test-external-filters.html +0 -100
  227. package/test/test-external-filters.js +0 -219
  228. package/test/test-filter-html-elements.html +0 -88
  229. package/test/test-filter-html-elements.js +0 -63
  230. package/test/test-filter-operators.html +0 -80
  231. package/test/test-filter-operators.js +0 -264
  232. package/test/test-filtering.html +0 -53
  233. package/test/test-filtering.js +0 -293
  234. package/test/test-filters-visibility-grid-layout.html +0 -80
  235. package/test/test-filters-visibility-grid-layout.js +0 -50
  236. package/test/test-filters-visibility-with-button.html +0 -80
  237. package/test/test-filters-visibility-with-button.js +0 -48
  238. package/test/test-filters-visibility.html +0 -80
  239. package/test/test-filters-visibility.js +0 -48
  240. package/test/test-grid-layout.html +0 -7736
  241. package/test/test-grid-layout.js +0 -39
  242. package/test/test-grouped-headers.html +0 -154
  243. package/test/test-grouped-headers.js +0 -107
  244. package/test/test-hash.html +0 -78
  245. package/test/test-hash.js +0 -88
  246. package/test/test-help-responsive.html +0 -79
  247. package/test/test-help-responsive.js +0 -70
  248. package/test/test-help.html +0 -78
  249. package/test/test-help.js +0 -217
  250. package/test/test-highlight-keywords.html +0 -78
  251. package/test/test-highlight-keywords.js +0 -94
  252. package/test/test-ignore-diacritics.html +0 -67
  253. package/test/test-ignore-diacritics.js +0 -117
  254. package/test/test-integration-paging-sort.html +0 -80
  255. package/test/test-integration-paging-sort.js +0 -60
  256. package/test/test-linked-filters-disabled-options-grid-layout.html +0 -80
  257. package/test/test-linked-filters-disabled-options-grid-layout.js +0 -73
  258. package/test/test-linked-filters-grid-layout.html +0 -80
  259. package/test/test-linked-filters-grid-layout.js +0 -72
  260. package/test/test-linked-filters-load-filters-on-demand.html +0 -80
  261. package/test/test-linked-filters-load-filters-on-demand.js +0 -99
  262. package/test/test-linked-filters-paging.html +0 -80
  263. package/test/test-linked-filters-paging.js +0 -99
  264. package/test/test-linked-filters.html +0 -80
  265. package/test/test-linked-filters.js +0 -138
  266. package/test/test-load-filters-on-demand.html +0 -78
  267. package/test/test-load-filters-on-demand.js +0 -124
  268. package/test/test-loader.html +0 -79
  269. package/test/test-loader.js +0 -159
  270. package/test/test-no-config.html +0 -80
  271. package/test/test-no-config.js +0 -63
  272. package/test/test-no-filters.html +0 -80
  273. package/test/test-no-filters.js +0 -172
  274. package/test/test-no-headers.html +0 -71
  275. package/test/test-no-headers.js +0 -99
  276. package/test/test-no-results-message.html +0 -262
  277. package/test/test-no-results-message.js +0 -222
  278. package/test/test-no-rows.html +0 -19
  279. package/test/test-no-rows.js +0 -10
  280. package/test/test-one-row.html +0 -29
  281. package/test/test-one-row.js +0 -18
  282. package/test/test-paging.html +0 -78
  283. package/test/test-paging.js +0 -273
  284. package/test/test-popup-filter-one-row.html +0 -38
  285. package/test/test-popup-filter-one-row.js +0 -138
  286. package/test/test-popup-filter.html +0 -78
  287. package/test/test-popup-filter.js +0 -384
  288. package/test/test-popup-filters-grouped-headers.html +0 -104
  289. package/test/test-popup-filters-grouped-headers.js +0 -206
  290. package/test/test-rows-counter.html +0 -78
  291. package/test/test-rows-counter.js +0 -114
  292. package/test/test-single-filter.html +0 -79
  293. package/test/test-single-filter.js +0 -138
  294. package/test/test-sort-custom-sorter.html +0 -244
  295. package/test/test-sort-custom-sorter.js +0 -74
  296. package/test/test-sort-grid-layout.html +0 -143
  297. package/test/test-sort-grid-layout.js +0 -86
  298. package/test/test-sort-key.html +0 -244
  299. package/test/test-sort-key.js +0 -67
  300. package/test/test-sort.html +0 -143
  301. package/test/test-sort.js +0 -126
  302. package/test/test-state.html +0 -78
  303. package/test/test-state.js +0 -369
  304. package/test/test-status-bar.html +0 -79
  305. package/test/test-status-bar.js +0 -149
  306. package/test/test-storage-cookie.html +0 -78
  307. package/test/test-storage-cookie.js +0 -82
  308. package/test/test-storage-local.html +0 -78
  309. package/test/test-storage-local.js +0 -82
  310. package/test/test-tfoot.html +0 -96
  311. package/test/test-tfoot.js +0 -123
  312. package/test/test-thead.html +0 -80
  313. package/test/test-thead.js +0 -69
  314. package/test/test-toolbar.html +0 -81
  315. package/test/test-toolbar.js +0 -218
  316. package/test/test-uneven-rows.html +0 -95
  317. package/test/test-uneven-rows.js +0 -61
  318. package/test/test-watermark.html +0 -80
  319. package/test/test-watermark.js +0 -103
  320. package/test/test.html +0 -141
  321. package/test/test.js +0 -162
  322. package/vite.config.js +0 -71
  323. package/webpack.config.js +0 -99
  324. package/webpack.dev.config.js +0 -25
  325. package/webpack.test.config.js +0 -44
@@ -1,141 +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
- - name: Check CSS token fallbacks
35
- run: npm run lint:css-tokens
36
-
37
- - uses: actions/setup-node@v4
38
- with:
39
- node-version: 8.9.4
40
-
41
- # Legacy PhantomJS gate retired: it lacks Intl, so qunit:all can
42
- # no longer validate the suites. This keeps its eslint +
43
- # webpack + CSS signal; Playwright runs the suites below.
44
- - name: Build test bundles
45
- run: npx grunt build-test
46
-
47
- # Demos are build output (gitignored); the axe baseline spec
48
- # scans demos/demo.html, so build them before Playwright runs.
49
- - name: Build demo pages
50
- run: npx grunt build-demos
51
-
52
- - name: Upload coverage
53
- run: npm run codecov
54
-
55
- - uses: actions/setup-node@v4
56
- with:
57
- node-version: 24
58
-
59
- - name: Install Playwright browsers
60
- run: npx playwright install --with-deps chromium
61
-
62
- - name: Playwright QUnit suites
63
- run: npm run test:playwright
64
-
65
- - name: Build deployment files
66
- run: npm run build:all
67
- env:
68
- NODE_OPTIONS: --openssl-legacy-provider
69
-
70
- # After the webpack build: its CleanWebpackPlugin wipes dist/, so the
71
- # Vite outputs (esm/cjs/umd + staged legacy copy) would not survive
72
- # otherwise.
73
- - name: Build Vite bundles
74
- run: npm run build:vite
75
-
76
- # Guard: the published legacy bundle must stay the webpack flat-global
77
- # build until #965 migrates consumers to the Vite namespace.
78
- - name: Check legacy bundle is the webpack build
79
- run: grep -q webpackUniversalModuleDefinition dist/tablefilter/tablefilter.js
80
-
81
- - name: Upload deployment files
82
- if: github.event_name == 'push' && github.ref == 'refs/heads/master'
83
- uses: actions/upload-artifact@v4
84
- with:
85
- name: website-files
86
- path: |
87
- dist/
88
- docs/
89
- if-no-files-found: error
90
- retention-days: 1
91
-
92
- deploy:
93
- if: github.event_name == 'push' && github.ref == 'refs/heads/master'
94
- needs: build
95
- runs-on: ubuntu-latest
96
- permissions:
97
- contents: write
98
- steps:
99
- - uses: actions/checkout@v4
100
- with:
101
- fetch-depth: 0
102
-
103
- - uses: actions/download-artifact@v4
104
- with:
105
- name: website-files
106
-
107
- - name: Configure AWS credentials
108
- uses: aws-actions/configure-aws-credentials@v4
109
- with:
110
- aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
111
- aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
112
- aws-region: ${{ vars.AWS_DEFAULT_REGION }}
113
-
114
- - name: Publish version release
115
- env:
116
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
117
- run: |
118
- set -euo pipefail
119
- version=$(node -p "require('./package.json').version")
120
- if ! git show-ref --verify --quiet "refs/tags/$version"; then
121
- latest_tag="$(git describe --tags --abbrev=0 2>/dev/null || true)"
122
- if [ "$latest_tag" != "$version" ]; then
123
- git config user.name "koalyptus"
124
- git config user.email "maxgug@hotmail.com"
125
- git tag -a "$version" -m "Generated tag from GitHub Actions run $GITHUB_RUN_NUMBER"
126
- git push origin "refs/tags/$version"
127
- fi
128
- fi
129
-
130
- if ! gh release view "$version" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
131
- gh release create "$version" \
132
- --repo "$GITHUB_REPOSITORY" \
133
- --title "$version" \
134
- --notes ""
135
- fi
136
-
137
- - name: Deploy distribution to S3
138
- run: aws s3 sync dist/ "s3://www.tablefilter.com/"
139
-
140
- - name: Deploy documentation to S3
141
- run: aws s3 sync docs/ "s3://www.tablefilter.com/"
@@ -1,104 +0,0 @@
1
- name: opencode-review
2
-
3
- # Automatic pull-request review. Runs the opencode CLI directly (v2 CI mode)
4
- # instead of the anomalyco/opencode action: the action refuses runs triggered
5
- # by app bots, while the CLI path has no actor gate, so bot-created PRs get
6
- # reviewed too. The review is posted as github-actions[bot]. Same secret and
7
- # model as opencode.yml.
8
- on:
9
- pull_request:
10
- # When the PR first appears or becomes ready — not on every push. Later
11
- # pushes are covered by the local agent's own checks, and re-reviewing
12
- # each one stacks duplicate comments.
13
- types: [opened, reopened, ready_for_review]
14
- # Manual re-run for a failed review (no close/reopen dance required).
15
- workflow_dispatch:
16
- inputs:
17
- pr:
18
- description: 'PR number to review'
19
- required: true
20
-
21
- # One review per PR: a reopen cancels a superseded run instead of stacking
22
- # duplicate reviews. Manual dispatches carry their PR in inputs (no
23
- # pull_request context), so fall back to it to keep groups distinct.
24
- concurrency:
25
- group: opencode-review-${{ github.event.pull_request.number || github.event.inputs.pr }}
26
- cancel-in-progress: true
27
-
28
- jobs:
29
- review:
30
- # Drafts are skipped (ready_for_review picks them up when marked ready).
31
- # Fork PRs are skipped too: secrets are not passed to the runner and
32
- # GITHUB_TOKEN is forced read-only for them, so the review would only fail.
33
- # Dependabot PRs are skipped: they run with a read-only token, so the
34
- # comment step could never post. Manual dispatches always run (the clicker
35
- # chose the PR explicitly).
36
- if: >-
37
- github.actor != 'dependabot[bot]' &&
38
- (github.event_name == 'workflow_dispatch' ||
39
- (github.event.pull_request.draft == false &&
40
- github.event.pull_request.head.repo.full_name == github.repository))
41
- runs-on: ubuntu-latest
42
- # Reviews take ~10 minutes; bound a hung agent run instead of holding the
43
- # concurrency group until the 6-hour default.
44
- timeout-minutes: 30
45
- permissions:
46
- # Read-only on purpose: the reviewer must not commit. The local agent
47
- # already pushed its edits, and a review-time push would fork history.
48
- contents: read
49
- pull-requests: write
50
- issues: write
51
- steps:
52
- - name: Checkout repository
53
- # Skipped on manual dispatch: the next step checks out the PR head.
54
- if: github.event_name != 'workflow_dispatch'
55
- uses: actions/checkout@v6
56
- with:
57
- persist-credentials: false
58
-
59
- - name: Checkout PR head (manual dispatch only)
60
- if: github.event_name == 'workflow_dispatch'
61
- uses: actions/checkout@v6
62
- with:
63
- persist-credentials: false
64
- ref: ${{ format('refs/pull/{0}/head', github.event.inputs.pr) }}
65
-
66
- - name: Review with opencode CLI
67
- env:
68
- OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
69
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70
- PR_NUMBER: ${{ github.event.pull_request.number || github.event.inputs.pr }}
71
- run: |
72
- # The CLI prints the reply on stdout and its progress/errors on
73
- # stderr, so the redirect alone is the comment body; a non-zero exit
74
- # fails the step and trips "Report review failure" below.
75
- npm install --global @opencode/cli@2.0.30
76
- opencode run --standalone --model opencode/big-pickle \
77
- "Review PR $PR_NUMBER in ${{ github.repository }}. Get the change
78
- with 'gh pr diff $PR_NUMBER --repo ${{ github.repository }}'
79
- (GH_TOKEN is set) and review the diff itself; do not run tests.
80
- Start with a title: 'Review — Verdict: Approve / Changes requested
81
- / Flagged'. Be thorough - check the diff rather than trusting its
82
- description - and apply the conventions in AGENTS.md. Flag dead
83
- code or debug output left in the diff. Write only the findings,
84
- each with file:line and a concrete fix. Skip the narration, the
85
- restating and the thinking out loud. Keep it concise and focused;
86
- one line is enough when it is sound." > /tmp/review.md
87
- # Ceiling on a runaway reply: thorough is fine, unbounded is not.
88
- head -c 20000 /tmp/review.md > /tmp/review.capped.md &&
89
- mv /tmp/review.capped.md /tmp/review.md
90
- # An empty reply would make the comment step fail obscurely.
91
- [ -s /tmp/review.md ] || { echo "review empty: no stdout" >&2; exit 1; }
92
- gh pr comment "$PR_NUMBER" \
93
- --repo "${{ github.repository }}" --body-file /tmp/review.md
94
-
95
- - name: Report review failure
96
- # A silent failure is a missing review with no visible cause; link
97
- # the failed run instead.
98
- if: failure()
99
- env:
100
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
101
- PR_NUMBER: ${{ github.event.pull_request.number || github.event.inputs.pr }}
102
- run: |
103
- gh pr comment "$PR_NUMBER" --repo "${{ github.repository }}" \
104
- --body "Automated review failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
@@ -1,34 +0,0 @@
1
- name: opencode
2
-
3
- on:
4
- issue_comment:
5
- types: [created]
6
- pull_request_review_comment:
7
- types: [created]
8
-
9
- jobs:
10
- opencode:
11
- if: |
12
- contains(github.event.comment.body, ' /oc') ||
13
- startsWith(github.event.comment.body, '/oc') ||
14
- contains(github.event.comment.body, ' /opencode') ||
15
- startsWith(github.event.comment.body, '/opencode')
16
- runs-on: ubuntu-latest
17
- permissions:
18
- id-token: write
19
- contents: read
20
- pull-requests: read
21
- issues: read
22
- steps:
23
- - name: Checkout repository
24
- uses: actions/checkout@v6
25
- with:
26
- persist-credentials: false
27
-
28
- - name: Run opencode
29
- uses: anomalyco/opencode/github@latest
30
- env:
31
- OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
32
- with:
33
- model: opencode/big-pickle
34
- agent: plan
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
- };