@godxjp/ui 33.15.0 → 33.16.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/README.md +4 -4
- package/agent/START-HERE.md +5 -5
- package/agent/components/AreaChart.json +6 -0
- package/agent/components/BarChart.json +6 -0
- package/agent/components/DashboardGrid.json +76 -0
- package/agent/components/DataTable.json +1 -1
- package/agent/components/HeatmapChart.json +6 -0
- package/agent/components/LineChart.json +6 -0
- package/agent/components/Pagination.json +1 -1
- package/agent/components/PieChart.json +6 -0
- package/agent/components/Table.json +1 -1
- package/agent/components-index.json +7 -1
- package/agent/components.json +109 -3
- package/agent/index.json +6 -6
- package/agent/llms.txt +6 -6
- package/agent/tokens.json +38 -2
- package/dist/components/charts/chart-cartesian.d.ts +3 -2
- package/dist/components/charts/chart-cartesian.js +146 -46
- package/dist/components/charts/chart-datum-selection.d.ts +15 -0
- package/dist/components/charts/chart-datum-selection.js +97 -0
- package/dist/components/charts/chart-frame.d.ts +2 -1
- package/dist/components/charts/chart-frame.js +2 -1
- package/dist/components/charts/heatmap-chart.d.ts +1 -1
- package/dist/components/charts/heatmap-chart.js +20 -0
- package/dist/components/charts/index.d.ts +1 -1
- package/dist/components/charts/pie-chart.d.ts +2 -1
- package/dist/components/charts/pie-chart.js +36 -1
- package/dist/components/charts/recharts-peer.d.ts +1 -1
- package/dist/components/charts/recharts-peer.js +6 -0
- package/dist/contracts/measurement.json +1 -1
- package/dist/i18n/messages/en.json +10 -0
- package/dist/i18n/messages/ja.json +10 -0
- package/dist/i18n/messages/vi.json +10 -0
- package/dist/lab/dashboard-grid-layout.d.ts +4 -0
- package/dist/lab/dashboard-grid-layout.js +36 -0
- package/dist/lab/dashboard-grid.d.ts +5 -0
- package/dist/lab/dashboard-grid.js +258 -0
- package/dist/lab/index.d.ts +2 -0
- package/dist/lab/index.js +2 -0
- package/dist/props/components/charts.prop.d.ts +11 -0
- package/dist/props/components/dashboard-grid.prop.d.ts +27 -0
- package/dist/props/components/dashboard-grid.prop.js +0 -0
- package/dist/props/components/index.d.ts +1 -1
- package/dist/props/registry.d.ts +83 -5
- package/dist/props/registry.js +79 -0
- package/dist/styles/chart-layout.css +28 -0
- package/dist/styles/control.css +82 -0
- package/dist/styles/layers.json +10 -1
- package/dist/styles/navigation-layout.css +2 -0
- package/dist/styles.css +1 -1
- package/dist/tokens/base.css +2 -0
- package/dist/tokens/components/dashboard-grid.css +14 -0
- package/dist/tokens/components/table.css +1 -1
- package/docs/COMPOSITION-VS-COMPONENT.md +15 -14
- package/package.json +2 -2
package/dist/props/registry.js
CHANGED
|
@@ -717,6 +717,60 @@ const VOCABULARY_REGISTRY = {
|
|
|
717
717
|
}
|
|
718
718
|
};
|
|
719
719
|
const COMPONENT_PROP_REGISTRY = {
|
|
720
|
+
DashboardGridProp: {
|
|
721
|
+
group: "layout",
|
|
722
|
+
file: "components/dashboard-grid.prop.ts",
|
|
723
|
+
vocabulary: [
|
|
724
|
+
"ClassNameProp",
|
|
725
|
+
"IdProp",
|
|
726
|
+
{
|
|
727
|
+
field: "items",
|
|
728
|
+
local: true,
|
|
729
|
+
reason: "DashboardGrid cell-layout editing contract (#1397), owner-approved lab API."
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
field: "layout",
|
|
733
|
+
local: true,
|
|
734
|
+
reason: "DashboardGrid cell-layout editing contract (#1397), owner-approved lab API."
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
field: "defaultLayout",
|
|
738
|
+
local: true,
|
|
739
|
+
reason: "DashboardGrid cell-layout editing contract (#1397), owner-approved lab API."
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
field: "onLayoutChange",
|
|
743
|
+
local: true,
|
|
744
|
+
reason: "DashboardGrid cell-layout editing contract (#1397), owner-approved lab API."
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
field: "columns",
|
|
748
|
+
local: true,
|
|
749
|
+
reason: "DashboardGrid cell-layout editing contract (#1397), owner-approved lab API."
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
field: "rowHeight",
|
|
753
|
+
local: true,
|
|
754
|
+
reason: "DashboardGrid cell-layout editing contract (#1397), owner-approved lab API."
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
field: "editable",
|
|
758
|
+
local: true,
|
|
759
|
+
reason: "DashboardGrid cell-layout editing contract (#1397), owner-approved lab API."
|
|
760
|
+
}
|
|
761
|
+
]
|
|
762
|
+
},
|
|
763
|
+
DashboardGridItemProp: {
|
|
764
|
+
group: "layout",
|
|
765
|
+
file: "components/dashboard-grid.prop.ts",
|
|
766
|
+
vocabulary: [
|
|
767
|
+
{ field: "id", local: true, reason: "Persisted grid cell coordinate or identity." },
|
|
768
|
+
{ field: "x", local: true, reason: "Persisted grid cell coordinate or identity." },
|
|
769
|
+
{ field: "y", local: true, reason: "Persisted grid cell coordinate or identity." },
|
|
770
|
+
{ field: "w", local: true, reason: "Persisted grid cell coordinate or identity." },
|
|
771
|
+
{ field: "h", local: true, reason: "Persisted grid cell coordinate or identity." }
|
|
772
|
+
]
|
|
773
|
+
},
|
|
720
774
|
AppProviderProp: { group: "app", file: "components/app.prop.ts", vocabulary: ["ChildrenProp"] },
|
|
721
775
|
ThemeScopeProp: {
|
|
722
776
|
group: "app",
|
|
@@ -2843,6 +2897,11 @@ const COMPONENT_PROP_REGISTRY = {
|
|
|
2843
2897
|
group: "data-display",
|
|
2844
2898
|
file: "components/charts.prop.ts",
|
|
2845
2899
|
vocabulary: [
|
|
2900
|
+
{
|
|
2901
|
+
field: "onDatumSelect",
|
|
2902
|
+
local: true,
|
|
2903
|
+
reason: "Pointer and keyboard datum selection action, independent of dashboard state."
|
|
2904
|
+
},
|
|
2846
2905
|
"LabelProp",
|
|
2847
2906
|
"DescriptionProp",
|
|
2848
2907
|
"SizeProp",
|
|
@@ -2879,6 +2938,11 @@ const COMPONENT_PROP_REGISTRY = {
|
|
|
2879
2938
|
group: "data-display",
|
|
2880
2939
|
file: "components/charts.prop.ts",
|
|
2881
2940
|
vocabulary: [
|
|
2941
|
+
{
|
|
2942
|
+
field: "onDatumSelect",
|
|
2943
|
+
local: true,
|
|
2944
|
+
reason: "Pointer and keyboard datum selection action, independent of dashboard state."
|
|
2945
|
+
},
|
|
2882
2946
|
"LabelProp",
|
|
2883
2947
|
"DescriptionProp",
|
|
2884
2948
|
"SizeProp",
|
|
@@ -2952,6 +3016,11 @@ const COMPONENT_PROP_REGISTRY = {
|
|
|
2952
3016
|
group: "data-display",
|
|
2953
3017
|
file: "components/charts.prop.ts",
|
|
2954
3018
|
vocabulary: [
|
|
3019
|
+
{
|
|
3020
|
+
field: "onDatumSelect",
|
|
3021
|
+
local: true,
|
|
3022
|
+
reason: "Pointer and keyboard datum selection action, independent of dashboard state."
|
|
3023
|
+
},
|
|
2955
3024
|
"LabelProp",
|
|
2956
3025
|
"DescriptionProp",
|
|
2957
3026
|
"SizeProp",
|
|
@@ -2988,6 +3057,11 @@ const COMPONENT_PROP_REGISTRY = {
|
|
|
2988
3057
|
group: "data-display",
|
|
2989
3058
|
file: "components/charts.prop.ts",
|
|
2990
3059
|
vocabulary: [
|
|
3060
|
+
{
|
|
3061
|
+
field: "onDatumSelect",
|
|
3062
|
+
local: true,
|
|
3063
|
+
reason: "Pointer and keyboard datum selection action, independent of dashboard state."
|
|
3064
|
+
},
|
|
2991
3065
|
"LabelProp",
|
|
2992
3066
|
"DescriptionProp",
|
|
2993
3067
|
"SizeProp",
|
|
@@ -3025,6 +3099,11 @@ const COMPONENT_PROP_REGISTRY = {
|
|
|
3025
3099
|
group: "data-display",
|
|
3026
3100
|
file: "components/charts.prop.ts",
|
|
3027
3101
|
vocabulary: [
|
|
3102
|
+
{
|
|
3103
|
+
field: "onDatumSelect",
|
|
3104
|
+
local: true,
|
|
3105
|
+
reason: "Pointer and keyboard datum selection action, independent of dashboard state."
|
|
3106
|
+
},
|
|
3028
3107
|
"LabelProp",
|
|
3029
3108
|
"DescriptionProp",
|
|
3030
3109
|
"SizeProp",
|
|
@@ -326,3 +326,31 @@
|
|
|
326
326
|
calc(var(--radius) / var(--radius-ratio) / var(--radius-ratio))
|
|
327
327
|
);
|
|
328
328
|
}
|
|
329
|
+
|
|
330
|
+
.ui-chart-datum,
|
|
331
|
+
.ui-chart-heatmap-cell[data-interactive] {
|
|
332
|
+
cursor: pointer;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.ui-chart-datum:hover,
|
|
336
|
+
.ui-chart-heatmap-cell[data-interactive]:hover {
|
|
337
|
+
outline: var(--focus-ring-width) solid hsl(var(--focus-ring-color, var(--ring)));
|
|
338
|
+
outline-offset: var(--focus-ring-offset);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.ui-chart-bar-hit {
|
|
342
|
+
width: max(var(--chart-mark-width, 0px), var(--touch-target-min));
|
|
343
|
+
height: max(var(--chart-mark-height, 0px), var(--touch-target-min));
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.ui-chart-point-hit {
|
|
347
|
+
r: calc(var(--touch-target-min) / 2);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.ui-chart-canvas:has(.ui-chart-datum) .recharts-surface {
|
|
351
|
+
overflow: visible;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.ui-chart-canvas:has(.ui-chart-datum) .recharts-text {
|
|
355
|
+
direction: ltr;
|
|
356
|
+
}
|
package/dist/styles/control.css
CHANGED
|
@@ -3921,3 +3921,85 @@
|
|
|
3921
3921
|
}
|
|
3922
3922
|
}
|
|
3923
3923
|
}
|
|
3924
|
+
|
|
3925
|
+
@layer components {
|
|
3926
|
+
.ui-dashboard-grid,
|
|
3927
|
+
.ui-dashboard-grid-items,
|
|
3928
|
+
.ui-dashboard-grid-item,
|
|
3929
|
+
.ui-dashboard-grid-content {
|
|
3930
|
+
min-inline-size: 0;
|
|
3931
|
+
}
|
|
3932
|
+
.ui-dashboard-grid-items {
|
|
3933
|
+
display: grid;
|
|
3934
|
+
grid-template-columns: repeat(var(--dashboard-grid-columns, 1), minmax(0, 1fr));
|
|
3935
|
+
grid-auto-rows: var(--dashboard-grid-row-height);
|
|
3936
|
+
gap: var(--dashboard-grid-gap);
|
|
3937
|
+
}
|
|
3938
|
+
.ui-dashboard-grid-item {
|
|
3939
|
+
position: relative;
|
|
3940
|
+
border-radius: var(--dashboard-grid-item-radius);
|
|
3941
|
+
}
|
|
3942
|
+
.ui-dashboard-grid-surface {
|
|
3943
|
+
display: flex;
|
|
3944
|
+
flex-direction: column;
|
|
3945
|
+
block-size: 100%;
|
|
3946
|
+
}
|
|
3947
|
+
.ui-dashboard-grid-item .ui-dashboard-grid-header {
|
|
3948
|
+
padding-inline-start: calc(
|
|
3949
|
+
var(--dashboard-grid-handle-size) + var(--dashboard-grid-handle-inset) * 2
|
|
3950
|
+
);
|
|
3951
|
+
}
|
|
3952
|
+
.ui-dashboard-grid-items[data-stacked] {
|
|
3953
|
+
grid-auto-rows: auto;
|
|
3954
|
+
}
|
|
3955
|
+
.ui-dashboard-grid-content {
|
|
3956
|
+
flex: 1;
|
|
3957
|
+
min-block-size: 0;
|
|
3958
|
+
overflow: auto;
|
|
3959
|
+
}
|
|
3960
|
+
.ui-dashboard-grid-item[data-held] {
|
|
3961
|
+
outline: var(--focus-ring-width) solid
|
|
3962
|
+
hsl(var(--dashboard-grid-preview-ring-color, var(--ring)));
|
|
3963
|
+
outline-offset: var(--focus-ring-offset);
|
|
3964
|
+
}
|
|
3965
|
+
.ui-dashboard-grid-move,
|
|
3966
|
+
.ui-dashboard-grid-resize {
|
|
3967
|
+
position: absolute;
|
|
3968
|
+
z-index: 1;
|
|
3969
|
+
inline-size: var(--dashboard-grid-handle-size);
|
|
3970
|
+
block-size: var(--dashboard-grid-handle-size);
|
|
3971
|
+
min-inline-size: var(--touch-target-min);
|
|
3972
|
+
min-block-size: var(--touch-target-min);
|
|
3973
|
+
touch-action: none;
|
|
3974
|
+
}
|
|
3975
|
+
.ui-dashboard-grid-move {
|
|
3976
|
+
inset-block-start: var(--dashboard-grid-handle-inset);
|
|
3977
|
+
inset-inline-start: var(--dashboard-grid-handle-inset);
|
|
3978
|
+
cursor: grab;
|
|
3979
|
+
}
|
|
3980
|
+
.ui-dashboard-grid-resize {
|
|
3981
|
+
inset-block-end: var(--dashboard-grid-handle-inset);
|
|
3982
|
+
inset-inline-end: var(--dashboard-grid-handle-inset);
|
|
3983
|
+
cursor: nwse-resize;
|
|
3984
|
+
opacity: 0;
|
|
3985
|
+
}
|
|
3986
|
+
.ui-dashboard-grid-item:dir(rtl) .ui-dashboard-grid-resize {
|
|
3987
|
+
cursor: nesw-resize;
|
|
3988
|
+
transform: scaleX(-1);
|
|
3989
|
+
}
|
|
3990
|
+
.ui-dashboard-grid-item:hover .ui-dashboard-grid-resize,
|
|
3991
|
+
.ui-dashboard-grid-item:focus-within .ui-dashboard-grid-resize {
|
|
3992
|
+
opacity: 1;
|
|
3993
|
+
}
|
|
3994
|
+
.ui-dashboard-grid-item[data-held] .ui-dashboard-grid-move {
|
|
3995
|
+
cursor: grabbing;
|
|
3996
|
+
}
|
|
3997
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3998
|
+
.ui-dashboard-grid-item,
|
|
3999
|
+
.ui-dashboard-grid-move,
|
|
4000
|
+
.ui-dashboard-grid-resize {
|
|
4001
|
+
transition: none;
|
|
4002
|
+
animation: none;
|
|
4003
|
+
}
|
|
4004
|
+
}
|
|
4005
|
+
}
|
package/dist/styles/layers.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "33.
|
|
2
|
+
"version": "33.16.0",
|
|
3
3
|
"generatedBy": "scripts/gen-style-layers.mjs — do not edit by hand; run `pnpm gen:style-layers`",
|
|
4
4
|
"base": "base.css",
|
|
5
5
|
"fonts": "fonts.css",
|
|
@@ -404,6 +404,15 @@
|
|
|
404
404
|
"data-display-layout.css"
|
|
405
405
|
]
|
|
406
406
|
},
|
|
407
|
+
"DashboardGrid": {
|
|
408
|
+
"layers": [
|
|
409
|
+
"control.css",
|
|
410
|
+
"toggle.css",
|
|
411
|
+
"card-layout.css",
|
|
412
|
+
"dialog-layout.css",
|
|
413
|
+
"navigation-layout.css"
|
|
414
|
+
]
|
|
415
|
+
},
|
|
407
416
|
"DataState": {
|
|
408
417
|
"layers": [
|
|
409
418
|
"layout.css",
|