@furystack/shades-common-components 10.0.35 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +66 -0
- package/esm/components/animations.spec.d.ts +2 -0
- package/esm/components/animations.spec.d.ts.map +1 -0
- package/esm/components/animations.spec.js +201 -0
- package/esm/components/animations.spec.js.map +1 -0
- package/esm/components/app-bar-link.js +21 -20
- package/esm/components/app-bar-link.js.map +1 -1
- package/esm/components/app-bar-link.spec.d.ts +2 -0
- package/esm/components/app-bar-link.spec.d.ts.map +1 -0
- package/esm/components/app-bar-link.spec.js +252 -0
- package/esm/components/app-bar-link.spec.js.map +1 -0
- package/esm/components/app-bar.js +21 -21
- package/esm/components/app-bar.js.map +1 -1
- package/esm/components/app-bar.spec.d.ts +2 -0
- package/esm/components/app-bar.spec.d.ts.map +1 -0
- package/esm/components/app-bar.spec.js +117 -0
- package/esm/components/app-bar.spec.js.map +1 -0
- package/esm/components/avatar.d.ts.map +1 -1
- package/esm/components/avatar.js +15 -19
- package/esm/components/avatar.js.map +1 -1
- package/esm/components/avatar.spec.d.ts +2 -0
- package/esm/components/avatar.spec.d.ts.map +1 -0
- package/esm/components/avatar.spec.js +114 -0
- package/esm/components/avatar.spec.js.map +1 -0
- package/esm/components/button.d.ts.map +1 -1
- package/esm/components/button.js +145 -156
- package/esm/components/button.js.map +1 -1
- package/esm/components/button.spec.d.ts +2 -0
- package/esm/components/button.spec.d.ts.map +1 -0
- package/esm/components/button.spec.js +155 -0
- package/esm/components/button.spec.js.map +1 -0
- package/esm/components/command-palette/command-palette-input.d.ts.map +1 -1
- package/esm/components/command-palette/command-palette-input.js +18 -16
- package/esm/components/command-palette/command-palette-input.js.map +1 -1
- package/esm/components/command-palette/command-palette-input.spec.d.ts +2 -0
- package/esm/components/command-palette/command-palette-input.spec.d.ts.map +1 -0
- package/esm/components/command-palette/command-palette-input.spec.js +233 -0
- package/esm/components/command-palette/command-palette-input.spec.js.map +1 -0
- package/esm/components/command-palette/command-palette-manager.spec.d.ts +2 -0
- package/esm/components/command-palette/command-palette-manager.spec.d.ts.map +1 -0
- package/esm/components/command-palette/command-palette-manager.spec.js +362 -0
- package/esm/components/command-palette/command-palette-manager.spec.js.map +1 -0
- package/esm/components/command-palette/command-palette-suggestion-list.d.ts.map +1 -1
- package/esm/components/command-palette/command-palette-suggestion-list.js +42 -46
- package/esm/components/command-palette/command-palette-suggestion-list.js.map +1 -1
- package/esm/components/command-palette/command-palette-suggestion-list.spec.d.ts +2 -0
- package/esm/components/command-palette/command-palette-suggestion-list.spec.d.ts.map +1 -0
- package/esm/components/command-palette/command-palette-suggestion-list.spec.js +376 -0
- package/esm/components/command-palette/command-palette-suggestion-list.spec.js.map +1 -0
- package/esm/components/command-palette/index.d.ts.map +1 -1
- package/esm/components/command-palette/index.js +100 -110
- package/esm/components/command-palette/index.js.map +1 -1
- package/esm/components/command-palette/index.spec.d.ts +2 -0
- package/esm/components/command-palette/index.spec.d.ts.map +1 -0
- package/esm/components/command-palette/index.spec.js +509 -0
- package/esm/components/command-palette/index.spec.js.map +1 -0
- package/esm/components/data-grid/body.js +1 -1
- package/esm/components/data-grid/body.js.map +1 -1
- package/esm/components/data-grid/body.spec.d.ts +2 -0
- package/esm/components/data-grid/body.spec.d.ts.map +1 -0
- package/esm/components/data-grid/body.spec.js +228 -0
- package/esm/components/data-grid/body.spec.js.map +1 -0
- package/esm/components/data-grid/data-grid-row.d.ts.map +1 -1
- package/esm/components/data-grid/data-grid-row.js +49 -73
- package/esm/components/data-grid/data-grid-row.js.map +1 -1
- package/esm/components/data-grid/data-grid-row.spec.d.ts +2 -0
- package/esm/components/data-grid/data-grid-row.spec.d.ts.map +1 -0
- package/esm/components/data-grid/data-grid-row.spec.js +296 -0
- package/esm/components/data-grid/data-grid-row.spec.js.map +1 -0
- package/esm/components/data-grid/data-grid.d.ts.map +1 -1
- package/esm/components/data-grid/data-grid.js +35 -28
- package/esm/components/data-grid/data-grid.js.map +1 -1
- package/esm/components/data-grid/data-grid.spec.d.ts +2 -0
- package/esm/components/data-grid/data-grid.spec.d.ts.map +1 -0
- package/esm/components/data-grid/data-grid.spec.js +544 -0
- package/esm/components/data-grid/data-grid.spec.js.map +1 -0
- package/esm/components/data-grid/footer.js +21 -15
- package/esm/components/data-grid/footer.js.map +1 -1
- package/esm/components/data-grid/footer.spec.d.ts +2 -0
- package/esm/components/data-grid/footer.spec.d.ts.map +1 -0
- package/esm/components/data-grid/footer.spec.js +264 -0
- package/esm/components/data-grid/footer.spec.js.map +1 -0
- package/esm/components/data-grid/header.d.ts.map +1 -1
- package/esm/components/data-grid/header.js +55 -33
- package/esm/components/data-grid/header.js.map +1 -1
- package/esm/components/data-grid/header.spec.d.ts +2 -0
- package/esm/components/data-grid/header.spec.d.ts.map +1 -0
- package/esm/components/data-grid/header.spec.js +421 -0
- package/esm/components/data-grid/header.spec.js.map +1 -0
- package/esm/components/data-grid/selection-cell.d.ts.map +1 -1
- package/esm/components/data-grid/selection-cell.js +13 -6
- package/esm/components/data-grid/selection-cell.js.map +1 -1
- package/esm/components/data-grid/selection-cell.spec.d.ts +2 -0
- package/esm/components/data-grid/selection-cell.spec.d.ts.map +1 -0
- package/esm/components/data-grid/selection-cell.spec.js +118 -0
- package/esm/components/data-grid/selection-cell.spec.js.map +1 -0
- package/esm/components/fab.d.ts.map +1 -1
- package/esm/components/fab.js +10 -1
- package/esm/components/fab.js.map +1 -1
- package/esm/components/fab.spec.d.ts +2 -0
- package/esm/components/fab.spec.d.ts.map +1 -0
- package/esm/components/fab.spec.js +95 -0
- package/esm/components/fab.spec.js.map +1 -0
- package/esm/components/form.spec.d.ts +2 -0
- package/esm/components/form.spec.d.ts.map +1 -0
- package/esm/components/form.spec.js +314 -0
- package/esm/components/form.spec.js.map +1 -0
- package/esm/components/grid.d.ts.map +1 -1
- package/esm/components/grid.js +40 -37
- package/esm/components/grid.js.map +1 -1
- package/esm/components/grid.spec.d.ts +2 -0
- package/esm/components/grid.spec.d.ts.map +1 -0
- package/esm/components/grid.spec.js +316 -0
- package/esm/components/grid.spec.js.map +1 -0
- package/esm/components/inputs/autocomplete.spec.d.ts +2 -0
- package/esm/components/inputs/autocomplete.spec.d.ts.map +1 -0
- package/esm/components/inputs/autocomplete.spec.js +194 -0
- package/esm/components/inputs/autocomplete.spec.js.map +1 -0
- package/esm/components/inputs/input.d.ts.map +1 -1
- package/esm/components/inputs/input.js +141 -109
- package/esm/components/inputs/input.js.map +1 -1
- package/esm/components/inputs/input.spec.d.ts +2 -0
- package/esm/components/inputs/input.spec.d.ts.map +1 -0
- package/esm/components/inputs/input.spec.js +577 -0
- package/esm/components/inputs/input.spec.js.map +1 -0
- package/esm/components/inputs/text-area.d.ts.map +1 -1
- package/esm/components/inputs/text-area.js +54 -58
- package/esm/components/inputs/text-area.js.map +1 -1
- package/esm/components/inputs/text-area.spec.d.ts +2 -0
- package/esm/components/inputs/text-area.spec.d.ts.map +1 -0
- package/esm/components/inputs/text-area.spec.js +214 -0
- package/esm/components/inputs/text-area.spec.js.map +1 -0
- package/esm/components/loader.js +1 -1
- package/esm/components/loader.js.map +1 -1
- package/esm/components/loader.spec.d.ts +2 -0
- package/esm/components/loader.spec.d.ts.map +1 -0
- package/esm/components/loader.spec.js +251 -0
- package/esm/components/loader.spec.js.map +1 -0
- package/esm/components/modal.d.ts.map +1 -1
- package/esm/components/modal.js +11 -9
- package/esm/components/modal.js.map +1 -1
- package/esm/components/modal.spec.d.ts +2 -0
- package/esm/components/modal.spec.d.ts.map +1 -0
- package/esm/components/modal.spec.js +227 -0
- package/esm/components/modal.spec.js.map +1 -0
- package/esm/components/noty-list.d.ts.map +1 -1
- package/esm/components/noty-list.js +39 -40
- package/esm/components/noty-list.js.map +1 -1
- package/esm/components/noty-list.spec.d.ts +2 -0
- package/esm/components/noty-list.spec.d.ts.map +1 -0
- package/esm/components/noty-list.spec.js +486 -0
- package/esm/components/noty-list.spec.js.map +1 -0
- package/esm/components/paper.d.ts.map +1 -1
- package/esm/components/paper.js +15 -12
- package/esm/components/paper.js.map +1 -1
- package/esm/components/paper.spec.d.ts +2 -0
- package/esm/components/paper.spec.d.ts.map +1 -0
- package/esm/components/paper.spec.js +63 -0
- package/esm/components/paper.spec.js.map +1 -0
- package/esm/components/skeleton.js +1 -1
- package/esm/components/skeleton.js.map +1 -1
- package/esm/components/skeleton.spec.d.ts +2 -0
- package/esm/components/skeleton.spec.d.ts.map +1 -0
- package/esm/components/skeleton.spec.js +159 -0
- package/esm/components/skeleton.spec.js.map +1 -0
- package/esm/components/styles.spec.d.ts +2 -0
- package/esm/components/styles.spec.d.ts.map +1 -0
- package/esm/components/styles.spec.js +56 -0
- package/esm/components/styles.spec.js.map +1 -0
- package/esm/components/suggest/index.d.ts.map +1 -1
- package/esm/components/suggest/index.js +74 -83
- package/esm/components/suggest/index.js.map +1 -1
- package/esm/components/suggest/index.spec.d.ts +2 -0
- package/esm/components/suggest/index.spec.d.ts.map +1 -0
- package/esm/components/suggest/index.spec.js +515 -0
- package/esm/components/suggest/index.spec.js.map +1 -0
- package/esm/components/suggest/suggest-input.d.ts.map +1 -1
- package/esm/components/suggest/suggest-input.js +16 -17
- package/esm/components/suggest/suggest-input.js.map +1 -1
- package/esm/components/suggest/suggest-input.spec.d.ts +2 -0
- package/esm/components/suggest/suggest-input.spec.d.ts.map +1 -0
- package/esm/components/suggest/suggest-input.spec.js +138 -0
- package/esm/components/suggest/suggest-input.spec.js.map +1 -0
- package/esm/components/suggest/suggest-manager.spec.d.ts +2 -0
- package/esm/components/suggest/suggest-manager.spec.d.ts.map +1 -0
- package/esm/components/suggest/suggest-manager.spec.js +308 -0
- package/esm/components/suggest/suggest-manager.spec.js.map +1 -0
- package/esm/components/suggest/suggestion-list.d.ts.map +1 -1
- package/esm/components/suggest/suggestion-list.js +43 -48
- package/esm/components/suggest/suggestion-list.js.map +1 -1
- package/esm/components/suggest/suggestion-list.spec.d.ts +2 -0
- package/esm/components/suggest/suggestion-list.spec.d.ts.map +1 -0
- package/esm/components/suggest/suggestion-list.spec.js +252 -0
- package/esm/components/suggest/suggestion-list.spec.js.map +1 -0
- package/esm/components/tabs.d.ts.map +1 -1
- package/esm/components/tabs.js +32 -18
- package/esm/components/tabs.js.map +1 -1
- package/esm/components/tabs.spec.d.ts +2 -0
- package/esm/components/tabs.spec.d.ts.map +1 -0
- package/esm/components/tabs.spec.js +187 -0
- package/esm/components/tabs.spec.js.map +1 -0
- package/esm/components/wizard/index.d.ts.map +1 -1
- package/esm/components/wizard/index.js +10 -7
- package/esm/components/wizard/index.js.map +1 -1
- package/esm/components/wizard/index.spec.d.ts +2 -0
- package/esm/components/wizard/index.spec.d.ts.map +1 -0
- package/esm/components/wizard/index.spec.js +171 -0
- package/esm/components/wizard/index.spec.js.map +1 -0
- package/esm/services/collection-service.spec.js +391 -2
- package/esm/services/collection-service.spec.js.map +1 -1
- package/esm/services/css-variable-theme.d.ts.map +1 -1
- package/esm/services/css-variable-theme.js +21 -1
- package/esm/services/css-variable-theme.js.map +1 -1
- package/esm/services/css-variable-theme.spec.d.ts +2 -0
- package/esm/services/css-variable-theme.spec.d.ts.map +1 -0
- package/esm/services/css-variable-theme.spec.js +169 -0
- package/esm/services/css-variable-theme.spec.js.map +1 -0
- package/esm/services/default-palette.d.ts +4 -0
- package/esm/services/default-palette.d.ts.map +1 -1
- package/esm/services/default-palette.js +22 -0
- package/esm/services/default-palette.js.map +1 -1
- package/esm/services/theme-provider-service.d.ts +59 -1
- package/esm/services/theme-provider-service.d.ts.map +1 -1
- package/esm/services/theme-provider-service.js.map +1 -1
- package/esm/services/theme-provider-service.spec.d.ts +2 -0
- package/esm/services/theme-provider-service.spec.d.ts.map +1 -0
- package/esm/services/theme-provider-service.spec.js +166 -0
- package/esm/services/theme-provider-service.spec.js.map +1 -0
- package/package.json +2 -2
- package/src/components/animations.spec.ts +299 -0
- package/src/components/app-bar-link.spec.tsx +341 -0
- package/src/components/app-bar-link.tsx +21 -21
- package/src/components/app-bar.spec.tsx +142 -0
- package/src/components/app-bar.tsx +22 -22
- package/src/components/avatar.spec.tsx +146 -0
- package/src/components/avatar.tsx +17 -20
- package/src/components/button.spec.tsx +193 -0
- package/src/components/button.tsx +162 -197
- package/src/components/command-palette/command-palette-input.spec.tsx +320 -0
- package/src/components/command-palette/command-palette-input.tsx +19 -22
- package/src/components/command-palette/command-palette-manager.spec.ts +470 -0
- package/src/components/command-palette/command-palette-suggestion-list.spec.tsx +499 -0
- package/src/components/command-palette/command-palette-suggestion-list.tsx +42 -46
- package/src/components/command-palette/index.spec.tsx +684 -0
- package/src/components/command-palette/index.tsx +107 -136
- package/src/components/data-grid/body.spec.tsx +340 -0
- package/src/components/data-grid/body.tsx +1 -1
- package/src/components/data-grid/data-grid-row.spec.tsx +382 -0
- package/src/components/data-grid/data-grid-row.tsx +50 -82
- package/src/components/data-grid/data-grid.spec.tsx +939 -0
- package/src/components/data-grid/data-grid.tsx +38 -35
- package/src/components/data-grid/footer.spec.tsx +344 -0
- package/src/components/data-grid/footer.tsx +19 -19
- package/src/components/data-grid/header.spec.tsx +563 -0
- package/src/components/data-grid/header.tsx +53 -44
- package/src/components/data-grid/selection-cell.spec.tsx +150 -0
- package/src/components/data-grid/selection-cell.tsx +12 -6
- package/src/components/fab.spec.tsx +108 -0
- package/src/components/fab.tsx +10 -1
- package/src/components/form.spec.tsx +481 -0
- package/src/components/grid.spec.tsx +334 -0
- package/src/components/grid.tsx +57 -63
- package/src/components/inputs/autocomplete.spec.tsx +258 -0
- package/src/components/inputs/input.spec.tsx +808 -0
- package/src/components/inputs/input.tsx +153 -139
- package/src/components/inputs/text-area.spec.tsx +285 -0
- package/src/components/inputs/text-area.tsx +53 -79
- package/src/components/loader.spec.tsx +346 -0
- package/src/components/loader.tsx +1 -1
- package/src/components/modal.spec.tsx +304 -0
- package/src/components/modal.tsx +11 -9
- package/src/components/noty-list.spec.tsx +631 -0
- package/src/components/noty-list.tsx +39 -50
- package/src/components/paper.spec.tsx +72 -0
- package/src/components/paper.tsx +15 -13
- package/src/components/skeleton.spec.tsx +219 -0
- package/src/components/skeleton.tsx +1 -1
- package/src/components/styles.spec.ts +70 -0
- package/src/components/suggest/index.spec.tsx +861 -0
- package/src/components/suggest/index.tsx +74 -101
- package/src/components/suggest/suggest-input.spec.tsx +181 -0
- package/src/components/suggest/suggest-input.tsx +16 -24
- package/src/components/suggest/suggest-manager.spec.ts +409 -0
- package/src/components/suggest/suggestion-list.spec.tsx +334 -0
- package/src/components/suggest/suggestion-list.tsx +43 -48
- package/src/components/tabs.spec.tsx +236 -0
- package/src/components/tabs.tsx +33 -21
- package/src/components/wizard/index.spec.tsx +224 -0
- package/src/components/wizard/index.tsx +10 -9
- package/src/services/collection-service.spec.ts +492 -3
- package/src/services/css-variable-theme.spec.ts +204 -0
- package/src/services/css-variable-theme.ts +21 -1
- package/src/services/default-palette.ts +22 -0
- package/src/services/theme-provider-service.spec.ts +195 -0
- package/src/services/theme-provider-service.ts +60 -2
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
import { Injector } from '@furystack/inject';
|
|
2
|
+
import { createComponent, initializeShadeRoot } from '@furystack/shades';
|
|
3
|
+
import { ObservableValue, sleepAsync } from '@furystack/utils';
|
|
4
|
+
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
|
5
|
+
import { DataGridHeader, OrderButton } from './header.js';
|
|
6
|
+
describe('DataGridHeader', () => {
|
|
7
|
+
let originalAnimate;
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
document.body.innerHTML = '<div id="root"></div>';
|
|
10
|
+
originalAnimate = Element.prototype.animate;
|
|
11
|
+
Element.prototype.animate = vi.fn(() => {
|
|
12
|
+
const mockAnimation = {
|
|
13
|
+
onfinish: null,
|
|
14
|
+
oncancel: null,
|
|
15
|
+
cancel: vi.fn(),
|
|
16
|
+
play: vi.fn(),
|
|
17
|
+
pause: vi.fn(),
|
|
18
|
+
finish: vi.fn(),
|
|
19
|
+
addEventListener: vi.fn(),
|
|
20
|
+
removeEventListener: vi.fn(),
|
|
21
|
+
};
|
|
22
|
+
setTimeout(() => {
|
|
23
|
+
mockAnimation.onfinish?.({});
|
|
24
|
+
}, 0);
|
|
25
|
+
return mockAnimation;
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
afterEach(() => {
|
|
29
|
+
document.body.innerHTML = '';
|
|
30
|
+
Element.prototype.animate = originalAnimate;
|
|
31
|
+
});
|
|
32
|
+
const createFindOptions = (options = {}) => {
|
|
33
|
+
return new ObservableValue(options);
|
|
34
|
+
};
|
|
35
|
+
describe('rendering', () => {
|
|
36
|
+
it('should render with custom element', async () => {
|
|
37
|
+
const injector = new Injector();
|
|
38
|
+
const rootElement = document.getElementById('root');
|
|
39
|
+
const findOptions = createFindOptions();
|
|
40
|
+
initializeShadeRoot({
|
|
41
|
+
injector,
|
|
42
|
+
rootElement,
|
|
43
|
+
jsxElement: createComponent(DataGridHeader, { field: "name", findOptions: findOptions }),
|
|
44
|
+
});
|
|
45
|
+
await sleepAsync(50);
|
|
46
|
+
const header = document.querySelector('data-grid-header');
|
|
47
|
+
expect(header).not.toBeNull();
|
|
48
|
+
});
|
|
49
|
+
it('should render field name', async () => {
|
|
50
|
+
const injector = new Injector();
|
|
51
|
+
const rootElement = document.getElementById('root');
|
|
52
|
+
const findOptions = createFindOptions();
|
|
53
|
+
initializeShadeRoot({
|
|
54
|
+
injector,
|
|
55
|
+
rootElement,
|
|
56
|
+
jsxElement: createComponent(DataGridHeader, { field: "name", findOptions: findOptions }),
|
|
57
|
+
});
|
|
58
|
+
await sleepAsync(50);
|
|
59
|
+
const header = document.querySelector('data-grid-header');
|
|
60
|
+
const fieldName = header?.querySelector('.header-field-name');
|
|
61
|
+
expect(fieldName?.textContent).toBe('name');
|
|
62
|
+
});
|
|
63
|
+
it('should render order button', async () => {
|
|
64
|
+
const injector = new Injector();
|
|
65
|
+
const rootElement = document.getElementById('root');
|
|
66
|
+
const findOptions = createFindOptions();
|
|
67
|
+
initializeShadeRoot({
|
|
68
|
+
injector,
|
|
69
|
+
rootElement,
|
|
70
|
+
jsxElement: createComponent(DataGridHeader, { field: "name", findOptions: findOptions }),
|
|
71
|
+
});
|
|
72
|
+
await sleepAsync(50);
|
|
73
|
+
const orderButton = document.querySelector('data-grid-order-button');
|
|
74
|
+
expect(orderButton).not.toBeNull();
|
|
75
|
+
});
|
|
76
|
+
it('should render search button', async () => {
|
|
77
|
+
const injector = new Injector();
|
|
78
|
+
const rootElement = document.getElementById('root');
|
|
79
|
+
const findOptions = createFindOptions();
|
|
80
|
+
initializeShadeRoot({
|
|
81
|
+
injector,
|
|
82
|
+
rootElement,
|
|
83
|
+
jsxElement: createComponent(DataGridHeader, { field: "name", findOptions: findOptions }),
|
|
84
|
+
});
|
|
85
|
+
await sleepAsync(50);
|
|
86
|
+
const searchButton = document.querySelector('data-grid-search-button');
|
|
87
|
+
expect(searchButton).not.toBeNull();
|
|
88
|
+
});
|
|
89
|
+
it('should render search form', async () => {
|
|
90
|
+
const injector = new Injector();
|
|
91
|
+
const rootElement = document.getElementById('root');
|
|
92
|
+
const findOptions = createFindOptions();
|
|
93
|
+
initializeShadeRoot({
|
|
94
|
+
injector,
|
|
95
|
+
rootElement,
|
|
96
|
+
jsxElement: createComponent(DataGridHeader, { field: "name", findOptions: findOptions }),
|
|
97
|
+
});
|
|
98
|
+
await sleepAsync(50);
|
|
99
|
+
const searchForm = document.querySelector('data-grid-search-form');
|
|
100
|
+
expect(searchForm).not.toBeNull();
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
describe('OrderButton', () => {
|
|
104
|
+
it('should show neutral icon when no order is set', async () => {
|
|
105
|
+
const injector = new Injector();
|
|
106
|
+
const rootElement = document.getElementById('root');
|
|
107
|
+
const findOptions = createFindOptions();
|
|
108
|
+
initializeShadeRoot({
|
|
109
|
+
injector,
|
|
110
|
+
rootElement,
|
|
111
|
+
jsxElement: createComponent(OrderButton, { field: "name", findOptions: findOptions }),
|
|
112
|
+
});
|
|
113
|
+
await sleepAsync(50);
|
|
114
|
+
const button = document.querySelector('data-grid-order-button');
|
|
115
|
+
expect(button?.textContent).toContain('↕');
|
|
116
|
+
});
|
|
117
|
+
it('should show descending icon when ASC order is set for field', async () => {
|
|
118
|
+
const injector = new Injector();
|
|
119
|
+
const rootElement = document.getElementById('root');
|
|
120
|
+
const findOptions = createFindOptions({ order: { name: 'ASC' } });
|
|
121
|
+
initializeShadeRoot({
|
|
122
|
+
injector,
|
|
123
|
+
rootElement,
|
|
124
|
+
jsxElement: createComponent(OrderButton, { field: "name", findOptions: findOptions }),
|
|
125
|
+
});
|
|
126
|
+
await sleepAsync(50);
|
|
127
|
+
const button = document.querySelector('data-grid-order-button');
|
|
128
|
+
expect(button?.textContent).toContain('⬇');
|
|
129
|
+
});
|
|
130
|
+
it('should show ascending icon when DESC order is set for field', async () => {
|
|
131
|
+
const injector = new Injector();
|
|
132
|
+
const rootElement = document.getElementById('root');
|
|
133
|
+
const findOptions = createFindOptions({ order: { name: 'DESC' } });
|
|
134
|
+
initializeShadeRoot({
|
|
135
|
+
injector,
|
|
136
|
+
rootElement,
|
|
137
|
+
jsxElement: createComponent(OrderButton, { field: "name", findOptions: findOptions }),
|
|
138
|
+
});
|
|
139
|
+
await sleepAsync(50);
|
|
140
|
+
const button = document.querySelector('data-grid-order-button');
|
|
141
|
+
expect(button?.textContent).toContain('⬆');
|
|
142
|
+
});
|
|
143
|
+
it('should show neutral icon when order is set for different field', async () => {
|
|
144
|
+
const injector = new Injector();
|
|
145
|
+
const rootElement = document.getElementById('root');
|
|
146
|
+
const findOptions = createFindOptions({ order: { id: 'ASC' } });
|
|
147
|
+
initializeShadeRoot({
|
|
148
|
+
injector,
|
|
149
|
+
rootElement,
|
|
150
|
+
jsxElement: createComponent(OrderButton, { field: "name", findOptions: findOptions }),
|
|
151
|
+
});
|
|
152
|
+
await sleepAsync(50);
|
|
153
|
+
const button = document.querySelector('data-grid-order-button');
|
|
154
|
+
expect(button?.textContent).toContain('↕');
|
|
155
|
+
});
|
|
156
|
+
it('should toggle order to ASC when clicking on unsorted field', async () => {
|
|
157
|
+
const injector = new Injector();
|
|
158
|
+
const rootElement = document.getElementById('root');
|
|
159
|
+
const findOptions = createFindOptions();
|
|
160
|
+
initializeShadeRoot({
|
|
161
|
+
injector,
|
|
162
|
+
rootElement,
|
|
163
|
+
jsxElement: createComponent(OrderButton, { field: "name", findOptions: findOptions }),
|
|
164
|
+
});
|
|
165
|
+
await sleepAsync(50);
|
|
166
|
+
const button = document.querySelector('data-grid-order-button')?.querySelector('button');
|
|
167
|
+
button?.click();
|
|
168
|
+
await sleepAsync(50);
|
|
169
|
+
const updatedOptions = findOptions.getValue();
|
|
170
|
+
expect(updatedOptions.order).toEqual({ name: 'ASC' });
|
|
171
|
+
});
|
|
172
|
+
it('should toggle order from ASC to DESC when clicking', async () => {
|
|
173
|
+
const injector = new Injector();
|
|
174
|
+
const rootElement = document.getElementById('root');
|
|
175
|
+
const findOptions = createFindOptions({ order: { name: 'ASC' } });
|
|
176
|
+
initializeShadeRoot({
|
|
177
|
+
injector,
|
|
178
|
+
rootElement,
|
|
179
|
+
jsxElement: createComponent(OrderButton, { field: "name", findOptions: findOptions }),
|
|
180
|
+
});
|
|
181
|
+
await sleepAsync(50);
|
|
182
|
+
const button = document.querySelector('data-grid-order-button')?.querySelector('button');
|
|
183
|
+
button?.click();
|
|
184
|
+
await sleepAsync(50);
|
|
185
|
+
const updatedOptions = findOptions.getValue();
|
|
186
|
+
expect(updatedOptions.order).toEqual({ name: 'DESC' });
|
|
187
|
+
});
|
|
188
|
+
it('should toggle order from DESC to ASC when clicking', async () => {
|
|
189
|
+
const injector = new Injector();
|
|
190
|
+
const rootElement = document.getElementById('root');
|
|
191
|
+
const findOptions = createFindOptions({ order: { name: 'DESC' } });
|
|
192
|
+
initializeShadeRoot({
|
|
193
|
+
injector,
|
|
194
|
+
rootElement,
|
|
195
|
+
jsxElement: createComponent(OrderButton, { field: "name", findOptions: findOptions }),
|
|
196
|
+
});
|
|
197
|
+
await sleepAsync(50);
|
|
198
|
+
const button = document.querySelector('data-grid-order-button')?.querySelector('button');
|
|
199
|
+
button?.click();
|
|
200
|
+
await sleepAsync(50);
|
|
201
|
+
const updatedOptions = findOptions.getValue();
|
|
202
|
+
expect(updatedOptions.order).toEqual({ name: 'ASC' });
|
|
203
|
+
});
|
|
204
|
+
it('should react to external findOptions changes', async () => {
|
|
205
|
+
const injector = new Injector();
|
|
206
|
+
const rootElement = document.getElementById('root');
|
|
207
|
+
const findOptions = createFindOptions();
|
|
208
|
+
initializeShadeRoot({
|
|
209
|
+
injector,
|
|
210
|
+
rootElement,
|
|
211
|
+
jsxElement: createComponent(OrderButton, { field: "name", findOptions: findOptions }),
|
|
212
|
+
});
|
|
213
|
+
await sleepAsync(50);
|
|
214
|
+
let button = document.querySelector('data-grid-order-button');
|
|
215
|
+
expect(button?.textContent).toContain('↕');
|
|
216
|
+
findOptions.setValue({ order: { name: 'ASC' } });
|
|
217
|
+
await sleepAsync(50);
|
|
218
|
+
button = document.querySelector('data-grid-order-button');
|
|
219
|
+
expect(button?.textContent).toContain('⬇');
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
describe('SearchButton', () => {
|
|
223
|
+
it('should show inactive icon when no filter is set', async () => {
|
|
224
|
+
const injector = new Injector();
|
|
225
|
+
const rootElement = document.getElementById('root');
|
|
226
|
+
const findOptions = createFindOptions();
|
|
227
|
+
initializeShadeRoot({
|
|
228
|
+
injector,
|
|
229
|
+
rootElement,
|
|
230
|
+
jsxElement: createComponent(DataGridHeader, { field: "name", findOptions: findOptions }),
|
|
231
|
+
});
|
|
232
|
+
await sleepAsync(50);
|
|
233
|
+
const searchButton = document.querySelector('data-grid-search-button');
|
|
234
|
+
expect(searchButton?.textContent).toContain('🔎');
|
|
235
|
+
});
|
|
236
|
+
it('should show active icon when filter is set for field', async () => {
|
|
237
|
+
const injector = new Injector();
|
|
238
|
+
const rootElement = document.getElementById('root');
|
|
239
|
+
const findOptions = createFindOptions({ filter: { name: { $regex: 'test' } } });
|
|
240
|
+
initializeShadeRoot({
|
|
241
|
+
injector,
|
|
242
|
+
rootElement,
|
|
243
|
+
jsxElement: createComponent(DataGridHeader, { field: "name", findOptions: findOptions }),
|
|
244
|
+
});
|
|
245
|
+
await sleepAsync(50);
|
|
246
|
+
const searchButton = document.querySelector('data-grid-search-button');
|
|
247
|
+
expect(searchButton?.textContent).toContain('🔍');
|
|
248
|
+
});
|
|
249
|
+
it('should show inactive icon when filter is set for different field', async () => {
|
|
250
|
+
const injector = new Injector();
|
|
251
|
+
const rootElement = document.getElementById('root');
|
|
252
|
+
const findOptions = createFindOptions({ filter: { email: { $regex: 'test' } } });
|
|
253
|
+
initializeShadeRoot({
|
|
254
|
+
injector,
|
|
255
|
+
rootElement,
|
|
256
|
+
jsxElement: createComponent(DataGridHeader, { field: "name", findOptions: findOptions }),
|
|
257
|
+
});
|
|
258
|
+
await sleepAsync(50);
|
|
259
|
+
const searchButton = document.querySelector('data-grid-search-button');
|
|
260
|
+
expect(searchButton?.textContent).toContain('🔎');
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
describe('SearchForm', () => {
|
|
264
|
+
it('should expand search form when search button is clicked', async () => {
|
|
265
|
+
const injector = new Injector();
|
|
266
|
+
const rootElement = document.getElementById('root');
|
|
267
|
+
const findOptions = createFindOptions();
|
|
268
|
+
initializeShadeRoot({
|
|
269
|
+
injector,
|
|
270
|
+
rootElement,
|
|
271
|
+
jsxElement: createComponent(DataGridHeader, { field: "name", findOptions: findOptions }),
|
|
272
|
+
});
|
|
273
|
+
await sleepAsync(50);
|
|
274
|
+
const searchButton = document.querySelector('data-grid-search-button')?.querySelector('button');
|
|
275
|
+
searchButton?.click();
|
|
276
|
+
await sleepAsync(150);
|
|
277
|
+
const searchForm = document.querySelector('.search-form');
|
|
278
|
+
expect(searchForm.style.display).toBe('flex');
|
|
279
|
+
});
|
|
280
|
+
it('should update findOptions when search is submitted', async () => {
|
|
281
|
+
const injector = new Injector();
|
|
282
|
+
const rootElement = document.getElementById('root');
|
|
283
|
+
const findOptions = createFindOptions();
|
|
284
|
+
initializeShadeRoot({
|
|
285
|
+
injector,
|
|
286
|
+
rootElement,
|
|
287
|
+
jsxElement: createComponent(DataGridHeader, { field: "name", findOptions: findOptions }),
|
|
288
|
+
});
|
|
289
|
+
await sleepAsync(50);
|
|
290
|
+
const searchButton = document.querySelector('data-grid-search-button')?.querySelector('button');
|
|
291
|
+
searchButton?.click();
|
|
292
|
+
await sleepAsync(150);
|
|
293
|
+
const input = document.querySelector('.search-form input');
|
|
294
|
+
input.value = 'test-search';
|
|
295
|
+
input.dispatchEvent(new Event('input', { bubbles: true }));
|
|
296
|
+
const form = document.querySelector('.search-form');
|
|
297
|
+
form.dispatchEvent(new Event('submit', { bubbles: true }));
|
|
298
|
+
await sleepAsync(50);
|
|
299
|
+
const updatedOptions = findOptions.getValue();
|
|
300
|
+
expect(updatedOptions.filter).toEqual({ name: { $regex: 'test-search' } });
|
|
301
|
+
});
|
|
302
|
+
it('should clear filter when clear button is clicked', async () => {
|
|
303
|
+
const injector = new Injector();
|
|
304
|
+
const rootElement = document.getElementById('root');
|
|
305
|
+
const findOptions = createFindOptions({ filter: { name: { $regex: 'existing' } } });
|
|
306
|
+
initializeShadeRoot({
|
|
307
|
+
injector,
|
|
308
|
+
rootElement,
|
|
309
|
+
jsxElement: createComponent(DataGridHeader, { field: "name", findOptions: findOptions }),
|
|
310
|
+
});
|
|
311
|
+
await sleepAsync(50);
|
|
312
|
+
const searchButton = document.querySelector('data-grid-search-button')?.querySelector('button');
|
|
313
|
+
searchButton?.click();
|
|
314
|
+
await sleepAsync(150);
|
|
315
|
+
const clearButton = document.querySelector('.search-form button[type="reset"]');
|
|
316
|
+
clearButton?.click();
|
|
317
|
+
await sleepAsync(50);
|
|
318
|
+
const updatedOptions = findOptions.getValue();
|
|
319
|
+
expect(updatedOptions.filter?.name).toBeUndefined();
|
|
320
|
+
});
|
|
321
|
+
it('should preserve filters for other fields when submitting search', async () => {
|
|
322
|
+
const injector = new Injector();
|
|
323
|
+
const rootElement = document.getElementById('root');
|
|
324
|
+
const findOptions = createFindOptions({ filter: { email: { $regex: 'existing' } } });
|
|
325
|
+
initializeShadeRoot({
|
|
326
|
+
injector,
|
|
327
|
+
rootElement,
|
|
328
|
+
jsxElement: createComponent(DataGridHeader, { field: "name", findOptions: findOptions }),
|
|
329
|
+
});
|
|
330
|
+
await sleepAsync(50);
|
|
331
|
+
const searchButton = document.querySelector('data-grid-search-button')?.querySelector('button');
|
|
332
|
+
searchButton?.click();
|
|
333
|
+
await sleepAsync(150);
|
|
334
|
+
const input = document.querySelector('.search-form input');
|
|
335
|
+
input.value = 'new-search';
|
|
336
|
+
input.dispatchEvent(new Event('input', { bubbles: true }));
|
|
337
|
+
const form = document.querySelector('.search-form');
|
|
338
|
+
form.dispatchEvent(new Event('submit', { bubbles: true }));
|
|
339
|
+
await sleepAsync(50);
|
|
340
|
+
const updatedOptions = findOptions.getValue();
|
|
341
|
+
expect(updatedOptions.filter).toEqual({
|
|
342
|
+
email: { $regex: 'existing' },
|
|
343
|
+
name: { $regex: 'new-search' },
|
|
344
|
+
});
|
|
345
|
+
});
|
|
346
|
+
it('should preserve other findOptions properties when updating filter', async () => {
|
|
347
|
+
const injector = new Injector();
|
|
348
|
+
const rootElement = document.getElementById('root');
|
|
349
|
+
const findOptions = createFindOptions({
|
|
350
|
+
order: { id: 'ASC' },
|
|
351
|
+
top: 10,
|
|
352
|
+
skip: 20,
|
|
353
|
+
});
|
|
354
|
+
initializeShadeRoot({
|
|
355
|
+
injector,
|
|
356
|
+
rootElement,
|
|
357
|
+
jsxElement: createComponent(DataGridHeader, { field: "name", findOptions: findOptions }),
|
|
358
|
+
});
|
|
359
|
+
await sleepAsync(50);
|
|
360
|
+
const searchButton = document.querySelector('data-grid-search-button')?.querySelector('button');
|
|
361
|
+
searchButton?.click();
|
|
362
|
+
await sleepAsync(150);
|
|
363
|
+
const input = document.querySelector('.search-form input');
|
|
364
|
+
input.value = 'search-value';
|
|
365
|
+
input.dispatchEvent(new Event('input', { bubbles: true }));
|
|
366
|
+
const form = document.querySelector('.search-form');
|
|
367
|
+
form.dispatchEvent(new Event('submit', { bubbles: true }));
|
|
368
|
+
await sleepAsync(50);
|
|
369
|
+
const updatedOptions = findOptions.getValue();
|
|
370
|
+
expect(updatedOptions.order).toEqual({ id: 'ASC' });
|
|
371
|
+
expect(updatedOptions.top).toBe(10);
|
|
372
|
+
expect(updatedOptions.skip).toBe(20);
|
|
373
|
+
expect(updatedOptions.filter).toEqual({ name: { $regex: 'search-value' } });
|
|
374
|
+
});
|
|
375
|
+
it('should show current filter value in search input', async () => {
|
|
376
|
+
const injector = new Injector();
|
|
377
|
+
const rootElement = document.getElementById('root');
|
|
378
|
+
const findOptions = createFindOptions({ filter: { name: { $regex: 'current-filter' } } });
|
|
379
|
+
initializeShadeRoot({
|
|
380
|
+
injector,
|
|
381
|
+
rootElement,
|
|
382
|
+
jsxElement: createComponent(DataGridHeader, { field: "name", findOptions: findOptions }),
|
|
383
|
+
});
|
|
384
|
+
await sleepAsync(50);
|
|
385
|
+
const searchButton = document.querySelector('data-grid-search-button')?.querySelector('button');
|
|
386
|
+
searchButton?.click();
|
|
387
|
+
await sleepAsync(150);
|
|
388
|
+
const input = document.querySelector('.search-form input');
|
|
389
|
+
expect(input.value).toBe('current-filter');
|
|
390
|
+
});
|
|
391
|
+
});
|
|
392
|
+
describe('integration', () => {
|
|
393
|
+
it('should support both sorting and filtering simultaneously', async () => {
|
|
394
|
+
const injector = new Injector();
|
|
395
|
+
const rootElement = document.getElementById('root');
|
|
396
|
+
const findOptions = createFindOptions();
|
|
397
|
+
initializeShadeRoot({
|
|
398
|
+
injector,
|
|
399
|
+
rootElement,
|
|
400
|
+
jsxElement: createComponent(DataGridHeader, { field: "name", findOptions: findOptions }),
|
|
401
|
+
});
|
|
402
|
+
await sleepAsync(50);
|
|
403
|
+
const orderButton = document.querySelector('data-grid-order-button')?.querySelector('button');
|
|
404
|
+
orderButton?.click();
|
|
405
|
+
await sleepAsync(50);
|
|
406
|
+
const searchButton = document.querySelector('data-grid-search-button')?.querySelector('button');
|
|
407
|
+
searchButton?.click();
|
|
408
|
+
await sleepAsync(150);
|
|
409
|
+
const input = document.querySelector('.search-form input');
|
|
410
|
+
input.value = 'filter-value';
|
|
411
|
+
input.dispatchEvent(new Event('input', { bubbles: true }));
|
|
412
|
+
const form = document.querySelector('.search-form');
|
|
413
|
+
form.dispatchEvent(new Event('submit', { bubbles: true }));
|
|
414
|
+
await sleepAsync(50);
|
|
415
|
+
const updatedOptions = findOptions.getValue();
|
|
416
|
+
expect(updatedOptions.order).toEqual({ name: 'ASC' });
|
|
417
|
+
expect(updatedOptions.filter).toEqual({ name: { $regex: 'filter-value' } });
|
|
418
|
+
});
|
|
419
|
+
});
|
|
420
|
+
});
|
|
421
|
+
//# sourceMappingURL=header.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.spec.js","sourceRoot":"","sources":["../../../src/components/data-grid/header.spec.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACxE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AACxE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAIzD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,IAAI,eAAiD,CAAA;IAErD,UAAU,CAAC,GAAG,EAAE;QACd,QAAQ,CAAC,IAAI,CAAC,SAAS,GAAG,uBAAuB,CAAA;QAEjD,eAAe,GAAG,OA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C5B,KAAK,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;YAE1D,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,cAAc,CAAoB,CAAA;YACtE,IAAI,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;YAE1D,MAAM,UAAU,CAAC,EAAE,CAAC,CAAA;YAEpB,MAAM,cAAc,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAA;YAC7C,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAA;YACrD,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE,CAAC,CAAA;QAC7E,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection-cell.d.ts","sourceRoot":"","sources":["../../../src/components/data-grid/selection-cell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAA;
|
|
1
|
+
{"version":3,"file":"selection-cell.d.ts","sourceRoot":"","sources":["../../../src/components/data-grid/selection-cell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAA;AAG7E,eAAO,MAAM,aAAa;WAAkB,GAAG;aAAW,iBAAiB,CAAC,GAAG,CAAC;;;sEA+B9E,CAAA"}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { createComponent, Shade } from '@furystack/shades';
|
|
2
|
+
import { cssVariableTheme } from '../../services/css-variable-theme.js';
|
|
2
3
|
export const SelectionCell = Shade({
|
|
3
4
|
shadowDomName: 'shades-data-grid-selection-cell',
|
|
5
|
+
css: {
|
|
6
|
+
display: 'inline-flex',
|
|
7
|
+
alignItems: 'center',
|
|
8
|
+
justifyContent: 'center',
|
|
9
|
+
'& input[type="checkbox"]': {
|
|
10
|
+
cursor: 'pointer',
|
|
11
|
+
width: '18px',
|
|
12
|
+
height: '18px',
|
|
13
|
+
accentColor: cssVariableTheme.palette.primary.main,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
4
16
|
render: ({ props, useObservable, element }) => {
|
|
5
17
|
const [selection] = useObservable('selection', props.service.selection, {
|
|
6
18
|
onChange: (newSelection) => {
|
|
@@ -11,12 +23,7 @@ export const SelectionCell = Shade({
|
|
|
11
23
|
const isSelected = selection.includes(props.entry);
|
|
12
24
|
return (createComponent("input", { onchange: () => {
|
|
13
25
|
props.service.toggleSelection(props.entry);
|
|
14
|
-
}, type: "checkbox", checked: isSelected
|
|
15
|
-
cursor: 'pointer',
|
|
16
|
-
width: '18px',
|
|
17
|
-
height: '18px',
|
|
18
|
-
accentColor: 'var(--shades-theme-palette-primary-main)',
|
|
19
|
-
} }));
|
|
26
|
+
}, type: "checkbox", checked: isSelected }));
|
|
20
27
|
},
|
|
21
28
|
});
|
|
22
29
|
//# sourceMappingURL=selection-cell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection-cell.js","sourceRoot":"","sources":["../../../src/components/data-grid/selection-cell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"selection-cell.js","sourceRoot":"","sources":["../../../src/components/data-grid/selection-cell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAE1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAA;AAEvE,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAkD;IAClF,aAAa,EAAE,iCAAiC;IAChD,GAAG,EAAE;QACH,OAAO,EAAE,aAAa;QACtB,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;QACxB,0BAA0B,EAAE;YAC1B,MAAM,EAAE,SAAS;YACjB,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,MAAM;YACd,WAAW,EAAE,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;SACnD;KACF;IACD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,EAAE;QAC5C,MAAM,CAAC,SAAS,CAAC,GAAG,aAAa,CAAC,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE;YACtE,QAAQ,EAAE,CAAC,YAAY,EAAE,EAAE;gBACzB,CAAC;gBAAC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAsB,CAAC,OAAO,GAAG,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;YACpG,CAAC;SACF,CAAC,CAAA;QACF,MAAM,UAAU,GAAG,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QAElD,OAAO,CACL,2BACE,QAAQ,EAAE,GAAG,EAAE;gBACb,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;YAC5C,CAAC,EACD,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,UAAU,GACnB,CACH,CAAA;IACH,CAAC;CACF,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection-cell.spec.d.ts","sourceRoot":"","sources":["../../../src/components/data-grid/selection-cell.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Injector } from '@furystack/inject';
|
|
2
|
+
import { createComponent, initializeShadeRoot } from '@furystack/shades';
|
|
3
|
+
import { sleepAsync, usingAsync } from '@furystack/utils';
|
|
4
|
+
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
|
|
5
|
+
import { CollectionService } from '../../services/collection-service.js';
|
|
6
|
+
import { SelectionCell } from './selection-cell.js';
|
|
7
|
+
describe('SelectionCell', () => {
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
document.body.innerHTML = '<div id="root"></div>';
|
|
10
|
+
});
|
|
11
|
+
afterEach(() => {
|
|
12
|
+
document.body.innerHTML = '';
|
|
13
|
+
});
|
|
14
|
+
const renderSelectionCell = async (entry, service) => {
|
|
15
|
+
const injector = new Injector();
|
|
16
|
+
const root = document.getElementById('root');
|
|
17
|
+
initializeShadeRoot({
|
|
18
|
+
injector,
|
|
19
|
+
rootElement: root,
|
|
20
|
+
jsxElement: createComponent(SelectionCell, { entry: entry, service: service }),
|
|
21
|
+
});
|
|
22
|
+
await sleepAsync(50);
|
|
23
|
+
return {
|
|
24
|
+
injector,
|
|
25
|
+
cell: root.querySelector('shades-data-grid-selection-cell'),
|
|
26
|
+
getCheckbox: () => root.querySelector('shades-data-grid-selection-cell')?.querySelector('input[type="checkbox"]'),
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
describe('rendering', () => {
|
|
30
|
+
it('should render a checkbox input', async () => {
|
|
31
|
+
await usingAsync(new CollectionService(), async (service) => {
|
|
32
|
+
const entry = { id: 1, name: 'Test' };
|
|
33
|
+
const { cell, getCheckbox } = await renderSelectionCell(entry, service);
|
|
34
|
+
expect(cell).toBeTruthy();
|
|
35
|
+
expect(getCheckbox()).toBeTruthy();
|
|
36
|
+
expect(getCheckbox()?.type).toBe('checkbox');
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
describe('checkbox state sync', () => {
|
|
41
|
+
it('should be unchecked when entry is not selected', async () => {
|
|
42
|
+
await usingAsync(new CollectionService(), async (service) => {
|
|
43
|
+
const entry = { id: 1, name: 'Test' };
|
|
44
|
+
const { getCheckbox } = await renderSelectionCell(entry, service);
|
|
45
|
+
expect(getCheckbox()?.checked).toBe(false);
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
it('should be checked when entry is in selection', async () => {
|
|
49
|
+
await usingAsync(new CollectionService(), async (service) => {
|
|
50
|
+
const entry = { id: 1, name: 'Test' };
|
|
51
|
+
service.selection.setValue([entry]);
|
|
52
|
+
const { getCheckbox } = await renderSelectionCell(entry, service);
|
|
53
|
+
expect(getCheckbox()?.checked).toBe(true);
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
it('should update checkbox when selection changes externally', async () => {
|
|
57
|
+
await usingAsync(new CollectionService(), async (service) => {
|
|
58
|
+
const entry = { id: 1, name: 'Test' };
|
|
59
|
+
const { getCheckbox } = await renderSelectionCell(entry, service);
|
|
60
|
+
expect(getCheckbox()?.checked).toBe(false);
|
|
61
|
+
service.selection.setValue([entry]);
|
|
62
|
+
await sleepAsync(50);
|
|
63
|
+
expect(getCheckbox()?.checked).toBe(true);
|
|
64
|
+
service.selection.setValue([]);
|
|
65
|
+
await sleepAsync(50);
|
|
66
|
+
expect(getCheckbox()?.checked).toBe(false);
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
it('should remain unchecked when different entries are selected', async () => {
|
|
70
|
+
await usingAsync(new CollectionService(), async (service) => {
|
|
71
|
+
const entry = { id: 1, name: 'Test' };
|
|
72
|
+
const otherEntry = { id: 2, name: 'Other' };
|
|
73
|
+
service.selection.setValue([otherEntry]);
|
|
74
|
+
const { getCheckbox } = await renderSelectionCell(entry, service);
|
|
75
|
+
expect(getCheckbox()?.checked).toBe(false);
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
describe('selection toggle', () => {
|
|
80
|
+
it('should add entry to selection when checkbox is clicked and entry is not selected', async () => {
|
|
81
|
+
await usingAsync(new CollectionService(), async (service) => {
|
|
82
|
+
const entry = { id: 1, name: 'Test' };
|
|
83
|
+
const { getCheckbox } = await renderSelectionCell(entry, service);
|
|
84
|
+
expect(service.selection.getValue()).toEqual([]);
|
|
85
|
+
const checkbox = getCheckbox();
|
|
86
|
+
checkbox?.dispatchEvent(new Event('change', { bubbles: true }));
|
|
87
|
+
await sleepAsync(50);
|
|
88
|
+
expect(service.selection.getValue()).toContain(entry);
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
it('should remove entry from selection when checkbox is clicked and entry is selected', async () => {
|
|
92
|
+
await usingAsync(new CollectionService(), async (service) => {
|
|
93
|
+
const entry = { id: 1, name: 'Test' };
|
|
94
|
+
service.selection.setValue([entry]);
|
|
95
|
+
const { getCheckbox } = await renderSelectionCell(entry, service);
|
|
96
|
+
expect(service.selection.getValue()).toContain(entry);
|
|
97
|
+
const checkbox = getCheckbox();
|
|
98
|
+
checkbox?.dispatchEvent(new Event('change', { bubbles: true }));
|
|
99
|
+
await sleepAsync(50);
|
|
100
|
+
expect(service.selection.getValue()).not.toContain(entry);
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
it('should preserve other selected entries when toggling', async () => {
|
|
104
|
+
await usingAsync(new CollectionService(), async (service) => {
|
|
105
|
+
const entry = { id: 1, name: 'Test' };
|
|
106
|
+
const otherEntry = { id: 2, name: 'Other' };
|
|
107
|
+
service.selection.setValue([otherEntry]);
|
|
108
|
+
const { getCheckbox } = await renderSelectionCell(entry, service);
|
|
109
|
+
const checkbox = getCheckbox();
|
|
110
|
+
checkbox?.dispatchEvent(new Event('change', { bubbles: true }));
|
|
111
|
+
await sleepAsync(50);
|
|
112
|
+
expect(service.selection.getValue()).toContain(entry);
|
|
113
|
+
expect(service.selection.getValue()).toContain(otherEntry);
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
//# sourceMappingURL=selection-cell.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection-cell.spec.js","sourceRoot":"","sources":["../../../src/components/data-grid/selection-cell.spec.tsx"],"names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,MAAM,KAAK,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAA;gBACrC,MAAM,UAAU,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;gBAC3C,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,CAAA;gBACxC,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,mBAAmB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;gBAEjE,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAA;gBAC9B,QAAQ,EAAE,aAAa,CAAC,IAAI,KAAK,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;gBAC/D,MAAM,UAAU,CAAC,EAAE,CAAC,CAAA;gBAEpB,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;gBACrD,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAA;YAC5D,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fab.d.ts","sourceRoot":"","sources":["../../src/components/fab.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG;;
|
|
1
|
+
{"version":3,"file":"fab.d.ts","sourceRoot":"","sources":["../../src/components/fab.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG;;sEA8Bd,CAAA"}
|