@cdmx/wappler_ag_grid 2.1.7 → 2.1.8

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.
@@ -17,7 +17,7 @@
17
17
  <script src="./lib/test-helpers.js" defer></script>
18
18
  <script src="./lib/page-template.js" defer></script>
19
19
 
20
- <script src="../node_modules/ag-grid-community/dist/ag-grid-community.min.js" defer></script>
20
+ <script src="../node_modules/ag-grid-community/dist/ag-grid-community.min.noStyle.js" defer></script>
21
21
  <script src="../node_modules/@ag-grid-community/locale/dist/umd/@ag-grid-community/locale.min.js" defer></script>
22
22
  <script src="../ru.js" defer></script>
23
23
  <script src="../node_modules/papaparse/papaparse.min.js" defer></script>
@@ -0,0 +1,46 @@
1
+ // Detects the running AppConnect build and exposes it for the page header + console.
2
+ // Logs a warning if it drifts from the version pinned in VERSIONS.json.
3
+ window.__AG_GRID_TEST_SUITE__ = window.__AG_GRID_TEST_SUITE__ || {};
4
+
5
+ (function () {
6
+ const EXPECTED_APP_CONNECT = '2.2.4';
7
+ const MODULE_VERSION = '2.1.3';
8
+
9
+ const detect = () => {
10
+ if (!window.dmx) return null;
11
+ return {
12
+ version: dmx.version || null,
13
+ hasComponentApi: typeof dmx.Component === 'function',
14
+ hasAppContext: !!(dmx.app && typeof dmx.app.get === 'function')
15
+ };
16
+ };
17
+
18
+ const log = (level, msg) => {
19
+ const fn = console[level] || console.log;
20
+ fn('[ag-grid-test-suite] ' + msg);
21
+ };
22
+
23
+ const apply = () => {
24
+ const info = detect();
25
+ if (!info) {
26
+ setTimeout(apply, 50);
27
+ return;
28
+ }
29
+ window.__AG_GRID_TEST_SUITE__.appConnect = info.version;
30
+ window.__AG_GRID_TEST_SUITE__.module = MODULE_VERSION;
31
+ window.__AG_GRID_TEST_SUITE__.expectedAppConnect = EXPECTED_APP_CONNECT;
32
+ window.__AG_GRID_TEST_SUITE__.driftFromExpected = info.version !== EXPECTED_APP_CONNECT;
33
+
34
+ if (info.version !== EXPECTED_APP_CONNECT) {
35
+ log('warn',
36
+ 'AppConnect version drift: expected ' + EXPECTED_APP_CONNECT +
37
+ ', running ' + info.version + '. Update tests/VERSIONS.json if intentional.');
38
+ } else {
39
+ log('log', 'AppConnect ' + info.version + ' matches pinned version.');
40
+ }
41
+ if (!info.hasComponentApi) {
42
+ log('error', 'dmx.Component API missing — grid will not register.');
43
+ }
44
+ };
45
+ apply();
46
+ })();
@@ -23,7 +23,8 @@ const PAGES = [
23
23
  { file: '11-layout.html', grids: ['autoH','fixedH','scrollH'] },
24
24
  { file: '12-methods.html', grids: ['m'] },
25
25
  { file: '13-flags-styles.html', grids: ['flagsGrid','rsFn','rsOp','rsCompound','rsShort','rsFirst','rsLegacy','csCell','transformGrid','tipGrid'], pageAssertion: '__rsCheck' },
26
- { file: '14-compact-view.html', grids: ['compactGrid','extButtons','cellEvtGrid'] }
26
+ { file: '14-compact-view.html', grids: ['compactGrid','extButtons','cellEvtGrid'] },
27
+ { file: '15-csp.html', grids: ['cspGrid','statusGrid'], pageAssertion: '__cspCheck' }
27
28
  ];
28
29
 
29
30
  function findChrome() {
package/tests/run-all.cjs CHANGED
@@ -26,7 +26,8 @@ const PAGES = [
26
26
  { file: '11-layout.html', grids: ['autoH','fixedH','scrollH'] },
27
27
  { file: '12-methods.html', grids: ['m'] },
28
28
  { file: '13-flags-styles.html', grids: ['flagsGrid','stylesGrid','transformGrid','tipGrid'] },
29
- { file: '14-compact-view.html', grids: ['compactGrid','extButtons','cellEvtGrid'] }
29
+ { file: '14-compact-view.html', grids: ['compactGrid','extButtons','cellEvtGrid'] },
30
+ { file: '15-csp.html', grids: ['cspGrid','statusGrid'] }
30
31
  ];
31
32
 
32
33
  function ab(args, { allowFail = false, timeout = 60000 } = {}) {