@gridui/data-explorer 1.4.0 → 2.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.
Files changed (37) hide show
  1. package/README.md +25 -16
  2. package/dist/data-explorer/data-explorer.d.ts +8 -1
  3. package/dist/data-explorer-column-visibility/data-explorer-column-visibility.d.ts +7 -1
  4. package/dist/data-explorer-filter-control/data-explorer-filter-control.d.ts +7 -1
  5. package/dist/data-explorer-filters/data-explorer-filters.d.ts +9 -2
  6. package/dist/data-explorer-filters/filter-editor.d.ts +4 -1
  7. package/dist/data-explorer-provider/data-explorer-provider.d.ts +6 -0
  8. package/dist/data-explorer-search/data-explorer-search.d.ts +7 -1
  9. package/dist/data-explorer-sort/data-explorer-sort.d.ts +7 -1
  10. package/dist/data-explorer-table/column-layout.d.ts +0 -2
  11. package/dist/data-explorer-toolbar/data-explorer-toolbar.d.ts +7 -1
  12. package/dist/data-explorer-view/data-explorer-view.d.ts +9 -2
  13. package/dist/data-explorer-view/style.d.ts +1 -1
  14. package/dist/index.js +68 -30
  15. package/dist/index.js.map +4 -4
  16. package/dist/shared/controller.d.ts +6 -0
  17. package/dist/shared/explorer-context.d.ts +6 -0
  18. package/dist/shared/explorer-options.d.ts +2 -0
  19. package/dist/shared/label-style.d.ts +2 -2
  20. package/dist/shared/labels.d.ts +6 -0
  21. package/dist/shared/presentation.d.ts +14 -0
  22. package/dist/styled.js +8 -0
  23. package/dist/styles.css +3007 -2
  24. package/dist/styles.local.css +125 -0
  25. package/docs/catalog.json +3 -2
  26. package/docs/reference/data-explorer-bulk-actions.md +6 -0
  27. package/docs/reference/data-explorer-column-visibility.md +6 -0
  28. package/docs/reference/data-explorer-filter-control.md +6 -0
  29. package/docs/reference/data-explorer-filters.md +10 -0
  30. package/docs/reference/data-explorer-pagination.md +6 -0
  31. package/docs/reference/data-explorer-search.md +6 -0
  32. package/docs/reference/data-explorer-sort.md +6 -0
  33. package/docs/reference/data-explorer-table.md +11 -1
  34. package/docs/reference/data-explorer-toolbar.md +6 -0
  35. package/docs/reference/data-explorer-view.md +14 -0
  36. package/docs/reference/data-explorer.md +10 -0
  37. package/package.json +30 -12
@@ -0,0 +1,125 @@
1
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
2
+ @layer properties;
3
+ @layer theme, base, components, utilities;
4
+ @layer theme {
5
+ :root, :host {
6
+ --spacing: 0.25rem;
7
+ }
8
+ }
9
+ @layer utilities {
10
+ .gridui-u-data-explorer--m-0 {
11
+ margin: 0px;
12
+ }
13
+ .gridui-u-data-explorer--flex {
14
+ display: flex;
15
+ }
16
+ .gridui-u-data-explorer--min-h-11 {
17
+ min-height: calc(var(--spacing) * 11);
18
+ }
19
+ .gridui-u-data-explorer--w-gridui-16 {
20
+ width: var(--gridui-space-16);
21
+ }
22
+ .gridui-u-data-explorer--min-w-0 {
23
+ min-width: 0px;
24
+ }
25
+ .gridui-u-data-explorer--flex-\[1_1_10rem\] {
26
+ flex: 1 1 10rem;
27
+ }
28
+ .gridui-u-data-explorer--shrink-0 {
29
+ flex-shrink: 0;
30
+ }
31
+ .gridui-u-data-explorer--cursor-col-resize {
32
+ cursor: col-resize;
33
+ }
34
+ .gridui-u-data-explorer--cursor-pointer {
35
+ cursor: pointer;
36
+ }
37
+ .gridui-u-data-explorer--touch-none {
38
+ touch-action: none;
39
+ }
40
+ .gridui-u-data-explorer--flex-col {
41
+ flex-direction: column;
42
+ }
43
+ .gridui-u-data-explorer--flex-wrap {
44
+ flex-wrap: wrap;
45
+ }
46
+ .gridui-u-data-explorer--items-center {
47
+ align-items: center;
48
+ }
49
+ .gridui-u-data-explorer--items-end {
50
+ align-items: flex-end;
51
+ }
52
+ .gridui-u-data-explorer--justify-between {
53
+ justify-content: space-between;
54
+ }
55
+ .gridui-u-data-explorer--gap-gridui-4 {
56
+ gap: var(--gridui-space-4);
57
+ }
58
+ .gridui-u-data-explorer--gap-gridui-8 {
59
+ gap: var(--gridui-space-8);
60
+ }
61
+ .gridui-u-data-explorer--gap-gridui-16 {
62
+ gap: var(--gridui-space-16);
63
+ }
64
+ .gridui-u-data-explorer--border {
65
+ border-style: var(--tw-border-style);
66
+ border-width: 1px;
67
+ }
68
+ .gridui-u-data-explorer--border-s {
69
+ border-inline-start-style: var(--tw-border-style);
70
+ border-inline-start-width: 1px;
71
+ }
72
+ .gridui-u-data-explorer--border-solid {
73
+ --tw-border-style: solid;
74
+ border-style: solid;
75
+ }
76
+ .gridui-u-data-explorer--border-border {
77
+ border-color: var(--gridui-border);
78
+ }
79
+ .gridui-u-data-explorer--bg-background {
80
+ background-color: var(--gridui-background);
81
+ }
82
+ .gridui-u-data-explorer--p-gridui-16 {
83
+ padding: var(--gridui-space-16);
84
+ }
85
+ .gridui-u-data-explorer--px-gridui-16 {
86
+ padding-inline: var(--gridui-space-16);
87
+ }
88
+ .gridui-u-data-explorer--py-\(--gridui-explorer-row-block\,var\(--gridui-space-16\)\) {
89
+ padding-block: var(--gridui-explorer-row-block,var(--gridui-space-16));
90
+ }
91
+ .gridui-u-data-explorer--pt-gridui-16 {
92
+ padding-top: var(--gridui-space-16);
93
+ }
94
+ .gridui-u-data-explorer--type-caption {
95
+ font: var(--gridui-type-caption);
96
+ font-family: var(--gridui-font-body);
97
+ letter-spacing: normal;
98
+ }
99
+ .gridui-u-data-explorer--text-foreground {
100
+ color: var(--gridui-foreground);
101
+ }
102
+ .gridui-u-data-explorer--text-muted {
103
+ color: var(--gridui-muted);
104
+ }
105
+ }
106
+ @layer components {
107
+ .gridui-explorer-filters {
108
+ --gridui-explorer-row-block: var(--gridui-space-16);
109
+ }
110
+ .gridui-explorer-filters[data-density="compact"] {
111
+ --gridui-explorer-row-block: var(--gridui-space-8);
112
+ }
113
+ }
114
+ @property --tw-border-style {
115
+ syntax: "*";
116
+ inherits: false;
117
+ initial-value: solid;
118
+ }
119
+ @layer properties {
120
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
121
+ *, ::before, ::after, ::backdrop {
122
+ --tw-border-style: solid;
123
+ }
124
+ }
125
+ }
package/docs/catalog.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "name": "@gridui/data-explorer",
4
- "version": "1.4.0",
4
+ "version": "2.0.0",
5
5
  "category": "data",
6
6
  "description": "GridUI React data explorer",
7
- "usage": "DataExplorer belongs to Data because it coordinates generic dataset exploration through Core controls, Layout regions, and DataTable. Composer and ApprovalPanel remain Dashboard task compositions. See task workspace compositions for controlled state, callbacks, and application responsibilities.",
7
+ "usage": "DataExplorer belongs to Data because it coordinates generic dataset exploration through Controls, Layout regions, and DataTable. Composer and ApprovalPanel remain Dashboard task compositions. See task workspace compositions for controlled state, callbacks, and application responsibilities.",
8
8
  "documentation": [
9
9
  "README.md",
10
10
  "docs/reference/README.md",
@@ -235,6 +235,7 @@
235
235
  "@gridui/table/styles.css",
236
236
  "@gridui/data-explorer/styles.css"
237
237
  ],
238
+ "styledImport": "@gridui/data-explorer/styled",
238
239
  "examples": [
239
240
  "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/data-explorer/stories/bulk-actions.mdx",
240
241
  "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/data-explorer/stories/columns-details.mdx",
@@ -17,6 +17,12 @@ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blo
17
17
 
18
18
  The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
19
19
 
20
+ ### size
21
+
22
+ ``Size | undefined`` · Optional
23
+
24
+ Component size preset.
25
+
20
26
  ### className
21
27
 
22
28
  ``string | undefined`` · Optional
@@ -17,6 +17,12 @@ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blo
17
17
 
18
18
  The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
19
19
 
20
+ ### size
21
+
22
+ ``Size | undefined`` · Optional
23
+
24
+ Component size preset.
25
+
20
26
  ### className
21
27
 
22
28
  ``string | undefined`` · Optional
@@ -17,6 +17,12 @@ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blo
17
17
 
18
18
  The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
19
19
 
20
+ ### size
21
+
22
+ ``Size | undefined`` · Optional
23
+
24
+ Component size preset.
25
+
20
26
  ### className
21
27
 
22
28
  ``string | undefined`` · Optional
@@ -17,6 +17,16 @@ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blo
17
17
 
18
18
  The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
19
19
 
20
+ ### size
21
+
22
+ ``Size | undefined`` · Optional
23
+
24
+ Component size preset.
25
+
26
+ ### density
27
+
28
+ ``Density | undefined`` · Optional
29
+
20
30
  ### labels
21
31
 
22
32
  ``{ readonly add: string; readonly remove: (index: number) => string; readonly field: string; readonly operator: string; readonly value: string; readonly operators: Readonly<Record<DataExplorerFilterOperator, string>>; } | undefined`` · Optional
@@ -17,6 +17,12 @@ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blo
17
17
 
18
18
  The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
19
19
 
20
+ ### size
21
+
22
+ ``Size | undefined`` · Optional
23
+
24
+ Component size preset.
25
+
20
26
  ### className
21
27
 
22
28
  ``string | undefined`` · Optional
@@ -17,6 +17,12 @@ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blo
17
17
 
18
18
  The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
19
19
 
20
+ ### size
21
+
22
+ ``Size | undefined`` · Optional
23
+
24
+ Component size preset.
25
+
20
26
  ### className
21
27
 
22
28
  ``string | undefined`` · Optional
@@ -17,6 +17,12 @@ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blo
17
17
 
18
18
  The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
19
19
 
20
+ ### size
21
+
22
+ ``Size | undefined`` · Optional
23
+
24
+ Component size preset.
25
+
20
26
  ### className
21
27
 
22
28
  ``string | undefined`` · Optional
@@ -17,6 +17,14 @@ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blo
17
17
 
18
18
  The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
19
19
 
20
+ ### size
21
+
22
+ ``Size | undefined`` · Optional
23
+
24
+ Default: ``inherited.size``
25
+
26
+ Component size preset.
27
+
20
28
  ### className
21
29
 
22
30
  ``string | undefined`` · Optional
@@ -31,7 +39,9 @@ The public Props type is the source of these signatures. Defaults below are expl
31
39
 
32
40
  ### density
33
41
 
34
- ``"compact" | "comfortable" | undefined`` · Optional
42
+ ``Density | undefined`` · Optional
43
+
44
+ Default: ``inherited.density``
35
45
 
36
46
  ### headerSurface
37
47
 
@@ -17,6 +17,12 @@ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blo
17
17
 
18
18
  The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
19
19
 
20
+ ### size
21
+
22
+ ``Size | undefined`` · Optional
23
+
24
+ Component size preset.
25
+
20
26
  ### className
21
27
 
22
28
  ``string | undefined`` · Optional
@@ -53,6 +53,20 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
53
53
 
54
54
  Called when the corresponding interaction occurs; inspect the arguments in Actions.
55
55
 
56
+ ### size
57
+
58
+ ``Size | undefined`` · Optional
59
+
60
+ Default: ``"medium"``
61
+
62
+ Component size preset.
63
+
64
+ ### density
65
+
66
+ ``Density | undefined`` · Optional
67
+
68
+ Default: ``"comfortable"``
69
+
56
70
  ### label
57
71
 
58
72
  ``string`` · Required
@@ -127,3 +127,13 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
127
127
 
128
128
  ``Partial<DataExplorerLabels> & DataExplorerLabels`` · Required
129
129
 
130
+ ### size
131
+
132
+ ``Size | undefined`` · Optional
133
+
134
+ Component size preset.
135
+
136
+ ### density
137
+
138
+ ``Density | undefined`` · Optional
139
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridui/data-explorer",
3
- "version": "1.4.0",
3
+ "version": "2.0.0",
4
4
  "description": "GridUI React data explorer",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -10,14 +10,19 @@
10
10
  "docs"
11
11
  ],
12
12
  "sideEffects": [
13
- "**/*.css"
13
+ "**/*.css",
14
+ "./dist/styled.js"
14
15
  ],
15
16
  "exports": {
16
17
  ".": {
17
18
  "types": "./dist/index.d.ts",
18
19
  "import": "./dist/index.js"
19
20
  },
20
- "./styles.css": "./dist/styles.css"
21
+ "./styles.css": "./dist/styles.css",
22
+ "./styled": {
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/styled.js"
25
+ }
21
26
  },
22
27
  "publishConfig": {
23
28
  "access": "public"
@@ -27,21 +32,21 @@
27
32
  "react-dom": "^19.2.0"
28
33
  },
29
34
  "dependencies": {
30
- "@gridui/button": "^5.1.0",
31
- "@gridui/choice": "^1.3.0",
32
- "@gridui/grid": "^3.1.0",
33
- "@gridui/input": "^4.0.2",
35
+ "@gridui/button": "^6.0.0",
36
+ "@gridui/choice": "^2.0.0",
37
+ "@gridui/grid": "^3.3.0",
38
+ "@gridui/input": "^5.0.0",
34
39
  "@gridui/interaction": "^1.3.0",
35
40
  "@gridui/react-utils": "^1.1.0",
36
- "@gridui/select": "^1.5.0",
37
- "@gridui/style-utils": "^4.0.0",
38
- "@gridui/table": "^3.1.2",
39
- "@gridui/theme": "^3.0.0",
41
+ "@gridui/select": "^2.0.0",
42
+ "@gridui/style-utils": "^4.1.0",
43
+ "@gridui/table": "^4.0.0",
44
+ "@gridui/theme": "^5.0.0",
40
45
  "class-variance-authority": "0.7.1"
41
46
  },
42
47
  "devDependencies": {
43
48
  "@gridui-internal/configuration": "0.0.0-internal",
44
- "@gridui/inline-notice": "1.0.8",
49
+ "@gridui/inline-notice": "1.1.1",
45
50
  "@jest/globals": "30.5.2",
46
51
  "@storybook/react-vite": "10.6.7",
47
52
  "@types/jest": "30.0.0",
@@ -53,6 +58,19 @@
53
58
  "react-dom": "19.3.1",
54
59
  "typescript": "6.0.3"
55
60
  },
61
+ "gridui": {
62
+ "styleOrder": [
63
+ "@gridui/button",
64
+ "@gridui/form",
65
+ "@gridui/choice",
66
+ "@gridui/grid",
67
+ "@gridui/overlay",
68
+ "@gridui/input",
69
+ "@gridui/dropdown-menu",
70
+ "@gridui/select",
71
+ "@gridui/table"
72
+ ]
73
+ },
56
74
  "scripts": {
57
75
  "build": "node ../../scripts/compilation/package.ts",
58
76
  "compile": "tsc --project tsconfig.json",