@australiangreens/ag-internal-components 0.4.3 → 0.5.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.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AgDataGrid.comp.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgDataGrid.comp.test.d.ts","sourceRoot":"","sources":["../../../src/components/AgDataGrid/AgDataGrid.comp.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,22 @@
1
+ import { DataGridProps } from '@mui/x-data-grid';
2
+ import { ComponentProps } from 'react';
3
+ export type PaginationModel = {
4
+ page: number;
5
+ pageSize: number;
6
+ };
7
+ /** DataGridProps omits some div ARIA attributes from its typings; we forward these to slotProps.main (v7). */
8
+ type GridMainAriaProps = Pick<ComponentProps<'div'>, 'aria-label' | 'aria-labelledby' | 'aria-describedby'>;
9
+ export type AgDataGridProps = {
10
+ loading: boolean;
11
+ skeletonColumnWidths: number[];
12
+ paginationModel: PaginationModel;
13
+ onPaginationModelChange?: (model: PaginationModel) => void;
14
+ autoTableHeight?: boolean;
15
+ noRowsMessage?: string;
16
+ noResultsMessage?: string;
17
+ paginationMode?: 'client' | 'server';
18
+ filterMode?: 'client' | 'server';
19
+ } & Omit<DataGridProps, 'page' | 'pageSize' | 'onPageChange' | 'onPageSizeChange'> & Partial<GridMainAriaProps>;
20
+ declare const AgDataGrid: ({ loading, skeletonColumnWidths, paginationModel, onPaginationModelChange, autoTableHeight, noRowsMessage, noResultsMessage, rowHeight, paginationMode, filterMode, pageSizeOptions, rows, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, slotProps: incomingSlotProps, ...rest }: AgDataGridProps) => import("react/jsx-runtime").JSX.Element;
21
+ export default AgDataGrid;
22
+ //# sourceMappingURL=AgDataGrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgDataGrid.d.ts","sourceRoot":"","sources":["../../../src/components/AgDataGrid/AgDataGrid.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAgE5C,MAAM,MAAM,eAAe,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjE,8GAA8G;AAC9G,KAAK,iBAAiB,GAAG,IAAI,CAC3B,cAAc,CAAC,KAAK,CAAC,EACrB,YAAY,GAAG,iBAAiB,GAAG,kBAAkB,CACtD,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,eAAe,EAAE,eAAe,CAAC;IACjC,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IAC3D,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACrC,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAClC,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,UAAU,GAAG,cAAc,GAAG,kBAAkB,CAAC,GAChF,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAU7B,QAAA,MAAM,UAAU,GAAI,yUAmBjB,eAAe,4CAuGjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { AgDataGridProps } from './AgDataGrid';
3
+ declare const meta: {
4
+ component: ({ loading, skeletonColumnWidths, paginationModel, onPaginationModelChange, autoTableHeight, noRowsMessage, noResultsMessage, rowHeight, paginationMode, filterMode, pageSizeOptions, rows, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, slotProps: incomingSlotProps, ...rest }: AgDataGridProps) => import("react/jsx-runtime").JSX.Element;
5
+ tags: string[];
6
+ parameters: {
7
+ docs: {
8
+ description: {
9
+ component: string;
10
+ };
11
+ };
12
+ };
13
+ };
14
+ export default meta;
15
+ export declare const CountriesAndTerritories: StoryObj;
16
+ export declare const Loading: StoryObj;
17
+ export declare const Empty: StoryObj;
18
+ //# sourceMappingURL=AgDataGrid.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgDataGrid.stories.d.ts","sourceRoot":"","sources":["../../../src/components/AgDataGrid/AgDataGrid.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAmB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAwB3D,QAAA,MAAM,IAAI;;;;;;;;;;CAWyB,CAAC;AAEpC,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,uBAAuB,EAAE,QAcrC,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,QAUrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,QAWnB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { SxProps } from '@mui/material';
2
+ import { CSSProperties } from 'react';
3
+ export type TableLoadingSkeletonProps = {
4
+ numberOfRows: number;
5
+ firstRowStyle?: CSSProperties | undefined;
6
+ rowHeight?: string | number | undefined;
7
+ columnWidths: number[];
8
+ columnStyles?: SxProps | undefined;
9
+ };
10
+ declare const TableLoadingSkeleton: ({ numberOfRows, firstRowStyle, rowHeight, columnWidths, columnStyles, }: TableLoadingSkeletonProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default TableLoadingSkeleton;
12
+ //# sourceMappingURL=TableLoadingSkeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableLoadingSkeleton.d.ts","sourceRoot":"","sources":["../../../src/components/AgDataGrid/TableLoadingSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,OAAO,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAiB3C,MAAM,MAAM,yBAAyB,GAAG;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACxC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACpC,CAAC;AAyBF,QAAA,MAAM,oBAAoB,GAAI,yEAM3B,yBAAyB,4CAsB3B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,9 @@
1
+ export type CountryDensityRow = {
2
+ id: number;
3
+ name: string;
4
+ areaKm2: number;
5
+ population: number;
6
+ densityPerKm2: number;
7
+ };
8
+ export declare const countriesByPopulationDensity: CountryDensityRow[];
9
+ //# sourceMappingURL=countriesByPopulationDensity.data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"countriesByPopulationDensity.data.d.ts","sourceRoot":"","sources":["../../../src/components/AgDataGrid/countriesByPopulationDensity.data.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAmB,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { GridColDef, GridInitialState } from '@mui/x-data-grid';
2
+ import { countriesByPopulationDensity } from './countriesByPopulationDensity.data';
3
+ export declare const countriesByPopulationDensityColumns: GridColDef[];
4
+ export declare const countriesByPopulationDensityInitialState: GridInitialState;
5
+ export { countriesByPopulationDensity };
6
+ //# sourceMappingURL=countriesByPopulationDensity.grid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"countriesByPopulationDensity.grid.d.ts","sourceRoot":"","sources":["../../../src/components/AgDataGrid/countriesByPopulationDensity.grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAEV,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AAWnF,eAAO,MAAM,mCAAmC,EAAE,UAAU,EAmC3D,CAAC;AAEF,eAAO,MAAM,wCAAwC,EAAE,gBAItD,CAAC;AAEF,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { default } from './AgDataGrid';
2
+ export * from './AgDataGrid';
3
+ export { default as TableLoadingSkeleton } from './TableLoadingSkeleton';
4
+ export type { TableLoadingSkeletonProps } from './TableLoadingSkeleton';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AgDataGrid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,YAAY,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -12,4 +12,6 @@ export * from './AuthGuard';
12
12
  export { default as AuthGuard } from './AuthGuard';
13
13
  export * from './NavBarLink';
14
14
  export { default as NavBarLink } from './NavBarLink';
15
+ export * from './AgDataGrid';
16
+ export { default as AgDataGrid } from './AgDataGrid';
15
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[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