tablefilter 0.7.4 → 0.7.5

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 (75) hide show
  1. package/.gitattributes +16 -0
  2. package/.github/workflows/build-deploy.yml +30 -2
  3. package/.github/workflows/opencode-review.yml +104 -0
  4. package/.github/workflows/opencode.yml +34 -0
  5. package/ROADMAP/README.md +6 -1
  6. package/ROADMAP/content-projection-parity.md +162 -0
  7. package/ROADMAP/hybrid-migration-strategy.md +48 -7
  8. package/ROADMAP/key-decisions-review.md +5 -3
  9. package/ROADMAP/preliminary-and-milestone-0.8.0-plan.md +11 -12
  10. package/ROADMAP/v1-webcomponents-investigation.md +6 -1
  11. package/dist/starter.html +2 -2
  12. package/dist/tablefilter/style/colsVisibility.css +1 -1
  13. package/dist/tablefilter/style/filtersVisibility.css +1 -1
  14. package/dist/tablefilter/style/tablefilter.css +1 -1
  15. package/dist/tablefilter/style/themes/default/default.css +1 -1
  16. package/dist/tablefilter/style/themes/mytheme/mytheme.css +1 -1
  17. package/dist/tablefilter/style/themes/skyblue/skyblue.css +1 -1
  18. package/dist/tablefilter/style/themes/transparent/transparent.css +1 -1
  19. package/dist/tablefilter/tablefilter.js +1 -1
  20. package/dist/tablefilter/tablefilter.vite.js +4 -0
  21. package/dist/tablefilter/tf-1-a5c3a73bd559e47dd5a2.js +1 -0
  22. package/dist/tablefilter/tf-2-3a936d22b849361acff5.js +6 -0
  23. package/dist/tablefilter.cjs.js +4 -0
  24. package/dist/tablefilter.esm.js +7278 -0
  25. package/dist/tablefilter.umd.js +4 -0
  26. package/package.json +12 -5
  27. package/playwright.config.js +25 -0
  28. package/scripts/check-css-tokens.js +65 -0
  29. package/src/components/table-filter.js +243 -0
  30. package/src/components/tf-clear-button.js +95 -0
  31. package/src/components/tf-rows-counter.js +82 -0
  32. package/src/components/tf-status.js +106 -0
  33. package/src/modules/clearButton.js +65 -11
  34. package/src/modules/rowsCounter.js +48 -25
  35. package/src/modules/statusBar.js +62 -30
  36. package/src/sanitize.js +25 -0
  37. package/static/style/active-header.styl +2 -2
  38. package/static/style/alternating-rows.styl +2 -2
  39. package/static/style/config.styl +18 -18
  40. package/static/style/custom-properties.styl +43 -0
  41. package/static/style/ezedittable.styl +12 -12
  42. package/static/style/filter-checklist.styl +3 -3
  43. package/static/style/filters.styl +8 -8
  44. package/static/style/grid-layout.styl +9 -9
  45. package/static/style/help.styl +9 -9
  46. package/static/style/keyword.styl +1 -1
  47. package/static/style/loader.styl +3 -3
  48. package/static/style/noresults.styl +1 -1
  49. package/static/style/paging.styl +1 -1
  50. package/static/style/rows-counter.styl +1 -1
  51. package/static/style/status-bar.styl +1 -4
  52. package/static/style/tablefilter.styl +1 -0
  53. package/static/style/themes/skyblue/skyblue.styl +2 -2
  54. package/static/style/themes/transparent/transparent.styl +2 -2
  55. package/static/style/toolbar.styl +1 -1
  56. package/static/templates/table-filter.html +40 -0
  57. package/test/playwright/axe.baseline.spec.js +34 -0
  58. package/test/playwright/axe.statusbar.spec.js +35 -0
  59. package/test/playwright/axeScan.js +42 -0
  60. package/test/playwright/ce-bridge.spec.js +167 -0
  61. package/test/playwright/qunit.all.spec.js +10 -0
  62. package/test/playwright/qunit.single.spec.js +14 -0
  63. package/test/playwright/qunitSuite.js +56 -0
  64. package/test/playwright/table-filter.config.spec.js +265 -0
  65. package/test/playwright/table-filter.demo.spec.js +60 -0
  66. package/test/playwright/table-filter.element.spec.js +477 -0
  67. package/test/playwright/tf-clear-button.spec.js +135 -0
  68. package/test/playwright/tf-rows-counter.spec.js +172 -0
  69. package/test/playwright/tf-status.spec.js +258 -0
  70. package/test/test-clear-button.js +1 -0
  71. package/test/test-rows-counter.js +2 -0
  72. package/test/test-status-bar.js +3 -0
  73. package/vite.config.js +71 -0
  74. package/webpack.config.js +12 -0
  75. package/dist/tablefilter/tf-1-d2360db09a424b1ed633.js +0 -1
@@ -102,31 +102,22 @@ export class RowsCounter extends Feature {
102
102
 
103
103
  let tf = this.tf;
104
104
 
105
- //rows counter container
106
- let countDiv = createElm('div');
107
- countDiv.className = this.cssClass;
108
- //rows counter label
109
- let countSpan = createElm('span');
110
- let countText = createElm('span');
111
- countText.appendChild(createText(this.text));
112
-
113
- // counter is added to defined element
114
- let targetEl = !this.targetId ?
105
+ // Bridge to <tf-rows-counter> (scaffold #909). If the custom
106
+ // element is registered (Vite / module load) use it; otherwise
107
+ // fall back to the legacy div/span structure (#910).
108
+ // TODO(#965): restore static import once namespace migration lands.
109
+ // initCE/initLegacy are split so the legacy path is a clean
110
+ // deletion boundary when #965 lands.
111
+ const targetEl = !this.targetId ?
115
112
  tf.feature('toolbar').container(this.toolbarPosition) :
116
113
  elm(this.targetId);
117
114
 
118
- //default container: 'lDiv'
119
- if (!this.targetId) {
120
- countDiv.appendChild(countText);
121
- countDiv.appendChild(countSpan);
122
- targetEl.appendChild(countDiv);
115
+ if (typeof customElements !== 'undefined' &&
116
+ customElements.get('tf-rows-counter')) {
117
+ this.initCE(targetEl);
123
118
  } else {
124
- //custom container, no need to append statusDiv
125
- targetEl.appendChild(countText);
126
- targetEl.appendChild(countSpan);
119
+ this.initLegacy(targetEl);
127
120
  }
128
- this.container = countDiv;
129
- this.label = countSpan;
130
121
 
131
122
  // subscribe to events
132
123
  this.emitter.on(['after-filtering', 'grouped-by-page'],
@@ -140,6 +131,42 @@ export class RowsCounter extends Feature {
140
131
  this.emitter.emit('feature-initialized', this);
141
132
  }
142
133
 
134
+ /**
135
+ * Initialize using the <tf-rows-counter> custom element
136
+ * @param {DOMElement} targetEl Target container element
137
+ * @private
138
+ */
139
+ initCE(targetEl) {
140
+ const countEl = document.createElement('tf-rows-counter');
141
+ countEl.className = this.cssClass;
142
+ if (this.text) {
143
+ countEl.setAttribute('text', this.text);
144
+ }
145
+ targetEl.appendChild(countEl);
146
+
147
+ this.container = countEl;
148
+ this.label = countEl.shadowRoot.querySelector('[part=count]');
149
+ }
150
+
151
+ /**
152
+ * Initialize using the legacy div/span structure
153
+ * @param {DOMElement} targetEl Target container element
154
+ * @private
155
+ */
156
+ initLegacy(targetEl) {
157
+ const countDiv = createElm('div');
158
+ countDiv.className = this.cssClass;
159
+ const countText = createElm('span');
160
+ countText.appendChild(createText(this.text));
161
+ const countSpan = createElm('span');
162
+ countDiv.appendChild(countText);
163
+ countDiv.appendChild(countSpan);
164
+ targetEl.appendChild(countDiv);
165
+
166
+ this.container = countDiv;
167
+ this.label = countSpan;
168
+ }
169
+
143
170
  /**
144
171
  * Refreshes the rows counter
145
172
  * @param {Number} p Optional parameter the total number of rows to display
@@ -189,11 +216,7 @@ export class RowsCounter extends Feature {
189
216
  return;
190
217
  }
191
218
 
192
- if (!this.targetId && this.container) {
193
- removeElm(this.container);
194
- } else {
195
- elm(this.targetId).innerHTML = '';
196
- }
219
+ removeElm(this.container);
197
220
  this.label = null;
198
221
  this.container = null;
199
222
 
@@ -5,6 +5,7 @@ import {EMPTY_FN, isNull} from '../types';
5
5
  import {defaultsStr, defaultsFn} from '../settings';
6
6
  import {LEFT} from './toolbar';
7
7
 
8
+
8
9
  const EVENTS = [
9
10
  'after-filtering',
10
11
  'after-populating-filter',
@@ -185,36 +186,23 @@ export class StatusBar extends Feature {
185
186
 
186
187
  emitter.emit('initializing-feature', this, !isNull(this.targetId));
187
188
 
188
- // status bar container
189
- let statusDiv = createElm('div');
190
- statusDiv.className = this.cssClass;
191
-
192
- // status bar label
193
- let statusSpan = createElm('span');
194
- // preceding text
195
- let statusSpanText = createElm('span');
196
- statusSpanText.appendChild(createText(this.text));
197
-
198
- // target element container
199
- let targetEl = (!this.targetId) ?
189
+ // Bridge to <tf-status> (scaffold #905, live region #906).
190
+ // If the custom element is registered (Vite / module load) use it;
191
+ // otherwise fall back to the legacy div/span structure (#908).
192
+ // TODO(#965): restore static import once namespace migration lands.
193
+ // init/initLegacy are split so the legacy path is a clean deletion
194
+ // boundary when #965 lands.
195
+ const targetEl = (!this.targetId) ?
200
196
  tf.feature('toolbar').container(this.toolbarPosition) :
201
197
  elm(this.targetId);
202
198
 
203
- // default container
204
- if (!this.targetId) {
205
- statusDiv.appendChild(statusSpanText);
206
- statusDiv.appendChild(statusSpan);
207
- targetEl.appendChild(statusDiv);
199
+ if (typeof customElements !== 'undefined' &&
200
+ customElements.get('tf-status')) {
201
+ this.initCE(targetEl);
208
202
  } else {
209
- // custom container, no need to append statusDiv
210
- targetEl.appendChild(statusSpanText);
211
- targetEl.appendChild(statusSpan);
203
+ this.initLegacy(targetEl);
212
204
  }
213
205
 
214
- this.container = statusDiv;
215
- this.msgContainer = statusSpan;
216
- this.labelContainer = statusSpanText;
217
-
218
206
  // subscribe to events
219
207
  emitter.on(['before-filtering'], () => this.message(this.msgFilter));
220
208
  emitter.on(['before-populating-filter'],
@@ -242,6 +230,48 @@ export class StatusBar extends Feature {
242
230
  emitter.emit('feature-initialized', this);
243
231
  }
244
232
 
233
+ /**
234
+ * Initialize using the <tf-status> custom element
235
+ * @param {DOMElement} targetEl Target container element
236
+ * @private
237
+ */
238
+ initCE(targetEl) {
239
+ const statusEl = document.createElement('tf-status');
240
+ statusEl.className = this.cssClass;
241
+ if (this.text) {
242
+ statusEl.setAttribute('text', this.text);
243
+ }
244
+ targetEl.appendChild(statusEl);
245
+
246
+ this.container = statusEl;
247
+ this.statusEl = statusEl;
248
+ this.msgContainer = statusEl.shadowRoot
249
+ .querySelector('[part=message]');
250
+ this.labelContainer = statusEl.shadowRoot
251
+ .querySelector('[part=label]');
252
+ }
253
+
254
+ /**
255
+ * Initialize using the legacy div/span structure
256
+ * @param {DOMElement} targetEl Target container element
257
+ * @private
258
+ */
259
+ initLegacy(targetEl) {
260
+ const statusDiv = createElm('div');
261
+ statusDiv.className = this.cssClass;
262
+ const msgSpan = createElm('span');
263
+ const labelSpan = createElm('span');
264
+ labelSpan.appendChild(createText(this.text));
265
+ statusDiv.appendChild(labelSpan);
266
+ statusDiv.appendChild(msgSpan);
267
+ targetEl.appendChild(statusDiv);
268
+
269
+ this.container = statusDiv;
270
+ this.statusEl = statusDiv;
271
+ this.msgContainer = msgSpan;
272
+ this.labelContainer = labelSpan;
273
+ }
274
+
245
275
  /**
246
276
  * Display status message
247
277
  * @param {String} [t=''] Message to be displayed
@@ -258,7 +288,11 @@ export class StatusBar extends Feature {
258
288
  if (!this.initialized) {
259
289
  return;
260
290
  }
261
- this.msgContainer.innerHTML = t;
291
+ if (this.statusEl.setMessage) {
292
+ this.statusEl.setMessage(t);
293
+ } else {
294
+ this.msgContainer.innerHTML = t;
295
+ }
262
296
 
263
297
  this.onAfterShowMsg(this.tf, t);
264
298
  }, d);
@@ -274,12 +308,10 @@ export class StatusBar extends Feature {
274
308
 
275
309
  let emitter = this.emitter;
276
310
 
277
- this.container.innerHTML = '';
278
- if (!this.targetId) {
279
- removeElm(this.container);
280
- }
281
- this.labelContainer = null;
311
+ removeElm(this.container);
312
+ this.statusEl = null;
282
313
  this.msgContainer = null;
314
+ this.labelContainer = null;
283
315
  this.container = null;
284
316
 
285
317
  // Unsubscribe to events
@@ -0,0 +1,25 @@
1
+ /**
2
+ * HTML sanitising for config-supplied markup.
3
+ *
4
+ * TableFilter lets consumers inject markup through config
5
+ * (`btn_reset.html`, `loader.html`, status messages, …); see
6
+ * ROADMAP/content-projection-parity.md. That config is integrator-authored
7
+ * and trusted, but rendering it with `innerHTML` is still an XSS sink waiting
8
+ * for an accidental untrusted value. Every such injection goes through
9
+ * `sanitizeHtml()` so the trust boundary is explicit and enforced once.
10
+ *
11
+ * DOMPurify is the established sanitiser for this. Its default profile keeps
12
+ * ordinary markup — `<b>`, `<i>`, `<a>`, `<span>`, `<br>`, `class`, … — and
13
+ * strips scripts, event-handler attributes and `javascript:` URLs. Config
14
+ * that relied on those was never doing anything safe, so dropping them is
15
+ * intended.
16
+ */
17
+ import DOMPurify from 'dompurify';
18
+
19
+ /**
20
+ * Sanitise an HTML string for injection with `innerHTML`.
21
+ * @param {*} html Markup
22
+ * @returns {String} Sanitised markup
23
+ */
24
+ export const sanitizeHtml = (html) =>
25
+ DOMPurify.sanitize(html == null ? '' : String(html));
@@ -3,8 +3,8 @@
3
3
  */
4
4
 
5
5
  .activeHeader
6
- background-color #66AFE9 !important
7
- color #fff !important
6
+ background-color var(--tf-active-col, #66AFE9) !important
7
+ color var(--tf-text-on-accent, #fff) !important
8
8
 
9
9
  .activeCell
10
10
  background-color rgba(0,0,0,0.075)
@@ -3,6 +3,6 @@
3
3
  */
4
4
 
5
5
  .even
6
- background-color #FFF
6
+ background-color var(--tf-bg, #FFF)
7
7
  .odd
8
- background-color #F9F9F9
8
+ background-color var(--tf-row-alt, #F9F9F9)
@@ -10,35 +10,35 @@ $min-height = 35px
10
10
 
11
11
  // header cell
12
12
  $th-height = 35px
13
- $th-bg-color = #EAEAEA
13
+ $th-bg-color = var(--tf-header-bg, #EAEAEA)
14
14
  $th-padding = 5px
15
- $th-font-color = #333
16
- $th-bottom-border-color = #CCC
17
- $th-top-border-color = #F4F4F4
18
- $th-left-border-color = #CCC
19
- $th-right-border-color = #F4F4F4
15
+ $th-font-color = var(--tf-text, #333)
16
+ $th-bottom-border-color = var(--tf-border, #CCC)
17
+ $th-top-border-color = var(--tf-border-light, #F4F4F4)
18
+ $th-left-border-color = var(--tf-border, #CCC)
19
+ $th-right-border-color = var(--tf-border-light, #F4F4F4)
20
20
 
21
21
  // cell
22
- $td-border-color = #C6C6C6
22
+ $td-border-color = var(--tf-cell-border, #C6C6C6)
23
23
 
24
24
  // filters
25
- $filter-font-color = #444
26
- $filter-row-bg-color = #EAEAEA
27
- $filter-bg-color = #FFF
28
- $filter-border-color = #F4F4F4
25
+ $filter-font-color = var(--tf-text-secondary, #444)
26
+ $filter-row-bg-color = var(--tf-header-bg, #EAEAEA)
27
+ $filter-bg-color = var(--tf-bg, #FFF)
28
+ $filter-border-color = var(--tf-border-light, #F4F4F4)
29
29
  $filter-height = 35px
30
30
 
31
31
  // toolbar container (.inf)
32
- $toolbar-bg-color = #FFF
32
+ $toolbar-bg-color = var(--tf-bg, #FFF)
33
33
  $toolbar-font-size = inherit
34
- $toolbar-border-color = #CCC
35
- $toolbar-divider-color = #F4F4F4
36
- $toolbar-hover-color = #F4F4F4
34
+ $toolbar-border-color = var(--tf-border, #CCC)
35
+ $toolbar-divider-color = var(--tf-border-light, #F4F4F4)
36
+ $toolbar-hover-color = var(--tf-border-light, #F4F4F4)
37
37
 
38
38
  // paging
39
- $paging-nav-button-bg-color-hover = #F4F4F4
39
+ $paging-nav-button-bg-color-hover = var(--tf-border-light, #F4F4F4)
40
40
 
41
41
  // grid layout
42
- $grid-layout-bg-color = #C8E0FB
43
- $grid-layout-border-color = #99BBE8
42
+ $grid-layout-bg-color = var(--tf-grid-bg, #C8E0FB)
43
+ $grid-layout-border-color = var(--tf-grid-border, #99BBE8)
44
44
 
@@ -0,0 +1,43 @@
1
+ /**
2
+ * CSS custom properties (design tokens) for the base stylesheet.
3
+ *
4
+ * Every variable carries a fallback equal to the pre-variable computed
5
+ * value, so rendering is unchanged with or without author overrides.
6
+ * Class names and selector specificity are untouched, therefore the
7
+ * theme stylesheets in themes/ keep overriding exactly as before.
8
+ * Themes are ported to *set* these properties in a later milestone.
9
+ *
10
+ * The `table-filter` selector is forward-compat for the autonomous
11
+ * `<table-filter>` custom element (see #898): once it exists, tokens set
12
+ * on the element scope to its subtree. Until then it matches nothing and
13
+ * `:root` carries the defaults document-wide.
14
+ */
15
+
16
+ :root, table-filter
17
+ --tf-bg #FFF
18
+ --tf-text #333
19
+ --tf-text-secondary #444
20
+ --tf-text-on-accent #FFF
21
+ --tf-text-inverse #000
22
+ --tf-border #CCC
23
+ --tf-border-light #F4F4F4
24
+ --tf-border-dark #999
25
+ --tf-cell-border #C6C6C6
26
+ --tf-header-bg #EAEAEA
27
+ --tf-row-alt #F9F9F9
28
+ --tf-shadow #888
29
+ --tf-error #cc0000
30
+ --tf-focus-ring #66AFE9
31
+ --tf-active-col #66AFE9
32
+ --tf-loader-bg #A7A7A8
33
+ --tf-checklist-bg #E5E5E5
34
+ --tf-checklist-item-bg #335EA8
35
+ --tf-grid-bg #C8E0FB
36
+ --tf-grid-alt-bg #DFE8F6
37
+ --tf-grid-border #99BBE8
38
+ --tf-grid-focus-border #558DD9
39
+ --tf-editor-border #AACCF6
40
+ --tf-select-fill #2852A8
41
+ --tf-select-fill-alt #316AC5
42
+ --tf-selected-cell-bg #D9E8FB
43
+ --tf-edit-cell-bg #FFDC61
@@ -4,26 +4,26 @@
4
4
 
5
5
  @import 'config'
6
6
 
7
- $editor-border-color = #AACCF6
7
+ $editor-border-color = var(--tf-editor-border, #AACCF6)
8
8
 
9
9
  // selection
10
10
  .ezActiveRow
11
- background-color #2852A8 !important
12
- color #fff
11
+ background-color var(--tf-select-fill, #2852A8) !important
12
+ color var(--tf-text-on-accent, #fff)
13
13
 
14
14
  .ezSelectedRow
15
- background-color #316AC5 !important
16
- color #fff
15
+ background-color var(--tf-select-fill-alt, #316AC5) !important
16
+ color var(--tf-text-on-accent, #fff)
17
17
 
18
18
  .ezActiveCell
19
- background-color #D9E8FB !important
20
- color #000 !important
19
+ background-color var(--tf-selected-cell-bg, #D9E8FB) !important
20
+ color var(--tf-text-inverse, #000) !important
21
21
  font-weight bold
22
22
 
23
23
  .ezETSelectedCell
24
- background-color #FFDC61 !important
24
+ background-color var(--tf-edit-cell-bg, #FFDC61) !important
25
25
  font-weight bold
26
- color rgb(0,0,0) !important
26
+ color var(--tf-text-inverse, #000) !important
27
27
 
28
28
  .ezUnselectable
29
29
  -moz-user-select -moz-none
@@ -64,13 +64,13 @@ select[multiple="multiple"].ezSelectEditor
64
64
  min-height 22px
65
65
  margin 1px
66
66
  padding 3px
67
- border 1px solid #ccc
68
- background #fff
67
+ border 1px solid var(--tf-border, #ccc)
68
+ background var(--tf-bg, #fff)
69
69
  border-radius 4px 4px 4px 4px
70
70
  -moz-border-radius 4px 4px 4px 4px
71
71
 
72
72
  &:hover
73
- border 1px solid #999
73
+ border 1px solid var(--tf-border-dark, #999)
74
74
 
75
75
  img
76
76
  border 0
@@ -4,8 +4,8 @@
4
4
 
5
5
  @import 'config'
6
6
 
7
- $item-bg-color = #335EA8
8
- $item-font-color = #fff
7
+ $item-bg-color = var(--tf-checklist-item-bg, #335EA8)
8
+ $item-font-color = var(--tf-text-on-accent, #fff)
9
9
 
10
10
  // div containing checklist
11
11
  .div_checklist
@@ -44,7 +44,7 @@ $item-font-color = #fff
44
44
 
45
45
  // disabled checklist item
46
46
  .flt_checklist_item_disabled
47
- background-color #E5E5E5
47
+ background-color var(--tf-checklist-bg, #E5E5E5)
48
48
 
49
49
  // selected checklist item
50
50
  .flt_checklist_slc_item
@@ -12,13 +12,13 @@
12
12
  background-color $filter-row-bg-color
13
13
 
14
14
  td
15
- border-bottom: 1px solid #CCC !important
16
- border-top: 1px solid #f4f4f4
17
- border-left 1px solid #CCC
18
- border-right 1px solid #f4f4f4
15
+ border-bottom: 1px solid var(--tf-border, #CCC) !important
16
+ border-top: 1px solid var(--tf-border-light, #f4f4f4)
17
+ border-left 1px solid var(--tf-border, #CCC)
18
+ border-right 1px solid var(--tf-border-light, #f4f4f4)
19
19
  padding 0.2em !important
20
20
  &:last-child
21
- border-right 1px solid #CCC
21
+ border-right 1px solid var(--tf-border, #CCC)
22
22
 
23
23
  // button appearance
24
24
  .btnflt
@@ -57,7 +57,7 @@
57
57
  box-sizing border-box
58
58
 
59
59
  &:focus
60
- border-color #66AFE9
60
+ border-color var(--tf-focus-ring, #66AFE9)
61
61
  outline 0 none
62
62
  box-shadow 0 1px 1px rgba(0, 0, 0, 0.075) inset,
63
63
  0 0 8px rgba(102, 175, 233, 0.6)
@@ -96,8 +96,8 @@ select.flt_multi
96
96
 
97
97
  // pop-up filters elements
98
98
  div.popUpFilter
99
- arrow(top, 10px white, 2px $th-bg-color)
100
- box-shadow(3px 3px 2px #888)
99
+ arrow(top, 10px var(--tf-bg, #fff), 2px $th-bg-color)
100
+ box-shadow(3px 3px 2px var(--tf-shadow, #888))
101
101
  margin 30px auto 0 0
102
102
  position absolute
103
103
  display none
@@ -24,14 +24,14 @@ div.grd_Cont
24
24
  width 100%
25
25
 
26
26
  :focus
27
- border 1px solid #558DD9
27
+ border 1px solid var(--tf-grid-focus-border, #558DD9)
28
28
 
29
29
  // alternating background color
30
30
  .even
31
- background-color #fff
31
+ background-color var(--tf-bg, #fff)
32
32
 
33
33
  .odd
34
- background-color #DFE8F6
34
+ background-color var(--tf-grid-alt-bg, #DFE8F6)
35
35
 
36
36
  .no-results
37
37
  background-color transparent
@@ -43,7 +43,7 @@ div.grd_Cont
43
43
  div.grd_tblCont
44
44
  height 400px
45
45
  width 800px
46
- background #fff
46
+ background var(--tf-bg, #fff)
47
47
  overflow-x auto
48
48
  overflow-y scroll
49
49
 
@@ -69,7 +69,7 @@ div.grd_headTblCont table th
69
69
  height $th-height
70
70
  background-color $grid-layout-bg-color
71
71
  padding 0.1em 0.5em
72
- color #333
72
+ color var(--tf-text, #333)
73
73
  border-right 1px solid $grid-layout-border-color !important
74
74
  overflow hidden
75
75
  text-overflow ellipsis
@@ -96,7 +96,7 @@ div.grd_tblCont table td
96
96
 
97
97
  // link appearence
98
98
  a
99
- color #333
99
+ color var(--tf-text, #333)
100
100
  text-decoration none
101
101
  font-weight bold
102
102
  &:hover
@@ -117,14 +117,14 @@ div.grd_tblCont table td
117
117
  .helpBtn
118
118
  border 0 !important
119
119
 
120
- div.status
120
+ .status
121
121
  position absolute
122
122
  float none !important
123
123
  height auto !important
124
124
  margin 19px 0 !important
125
125
  font-size 12px
126
- color #333
126
+ color var(--tf-text, #333)
127
127
  border 0 !important
128
128
 
129
- div.tot
129
+ .tot
130
130
  border 0 !important
@@ -19,28 +19,28 @@
19
19
 
20
20
  // help container
21
21
  div.helpCont
22
- arrow(top, 10px white, 2px #ccc)
23
- box-shadow(3px 3px 2px #888)
22
+ arrow(top, 10px var(--tf-bg, #fff), 2px var(--tf-border, #ccc))
23
+ box-shadow(3px 3px 2px var(--tf-shadow, #888))
24
24
  position absolute
25
25
  display none
26
26
  width 300px
27
27
  padding 10px
28
28
  margin 45px 0 0 -150px
29
- border 1px solid #CCC
29
+ border 1px solid var(--tf-border, #CCC)
30
30
  line-height 20px
31
31
  font-size inherit
32
- color #333
33
- background #fff
32
+ color var(--tf-text, #333)
33
+ background var(--tf-bg, #fff)
34
34
  text-align left
35
35
  z-index 1000
36
36
 
37
37
  a
38
- color #cc0000
38
+ color var(--tf-error, #cc0000)
39
39
  text-decoration underline
40
40
  font-weight normal
41
41
 
42
42
  a.close
43
- color #333 !important
43
+ color var(--tf-text, #333) !important
44
44
  text-decoration none !important
45
45
  font-weight bold
46
46
 
@@ -48,10 +48,10 @@ div.helpCont
48
48
  text-decoration none
49
49
 
50
50
  hr
51
- border 1px solid #ccc
51
+ border 1px solid var(--tf-border, #ccc)
52
52
 
53
53
  div.helpFooter
54
54
  margin 10px 0 0 0
55
55
  h4
56
56
  margin 2px 2px 2px 2px
57
- color #333
57
+ color var(--tf-text, #333)
@@ -5,4 +5,4 @@
5
5
  span.keyword
6
6
  font-weight 700
7
7
  font-style italic
8
- border-bottom 1px dotted #CCC
8
+ border-bottom 1px dotted var(--tf-border, #CCC)
@@ -9,8 +9,8 @@
9
9
  width auto
10
10
  z-index 1000
11
11
  font-weight 600
12
- background-color #A7A7A8
12
+ background-color var(--tf-loader-bg, #A7A7A8)
13
13
  vertical-align middle
14
14
  border-radius 10px
15
- color #FFF
16
- text-shadow 1px 1px #333
15
+ color var(--tf-text-on-accent, #FFF)
16
+ text-shadow 1px 1px var(--tf-text, #333)
@@ -11,4 +11,4 @@
11
11
  padding 1em 0
12
12
  text-align center
13
13
  max-height 5em
14
- background-color #F4F4F4
14
+ background-color var(--tf-border-light, #F4F4F4)
@@ -10,7 +10,7 @@ filter()
10
10
  border 1px solid $filter-border-color
11
11
  background-color $filter-bg-color
12
12
  &:focus
13
- border-color #66AFE9
13
+ border-color var(--tf-focus-ring, #66AFE9)
14
14
  outline 0 none
15
15
  box-shadow 0 1px 1px rgba(0, 0, 0, 0.075) inset,
16
16
  0 0 8px rgba(102, 175, 233, 0.6)
@@ -4,7 +4,7 @@
4
4
 
5
5
  @import 'config'
6
6
 
7
- div.tot
7
+ .tot
8
8
  float left
9
9
  overflow hidden
10
10
  min-width 150px
@@ -4,13 +4,10 @@
4
4
 
5
5
  @import 'config'
6
6
 
7
- div.status
7
+ .status
8
8
  float left
9
9
  overflow hidden
10
10
  min-width 120px
11
11
  height 100%
12
12
  margin 0
13
13
  padding 0.5em
14
-
15
- span
16
- font-size inherit