@zealicsolutions/web-ui 1.0.121 → 1.0.123

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 (20) hide show
  1. package/dist/cjs/index.js +6 -6
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/components/NotificationCard.d.ts +22 -0
  4. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/stories/NotificationCard.stories.d.ts +17 -0
  5. package/dist/cjs/organisms/DataGrid/ListViewComponent/templates/types.d.ts +1 -1
  6. package/dist/cjs/organisms/DataGrid/config/descriptors.d.ts +8 -0
  7. package/dist/cjs/organisms/DataGrid/config/toolDescriptor/view.d.ts +8 -0
  8. package/dist/esm/organisms/DataGrid/ListViewComponent/templates/components/NotificationCard.d.ts +22 -0
  9. package/dist/esm/organisms/DataGrid/ListViewComponent/templates/components/NotificationCard.js +2 -0
  10. package/dist/esm/organisms/DataGrid/ListViewComponent/templates/components/NotificationCard.js.map +1 -0
  11. package/dist/esm/organisms/DataGrid/ListViewComponent/templates/registry.js +1 -1
  12. package/dist/esm/organisms/DataGrid/ListViewComponent/templates/registry.js.map +1 -1
  13. package/dist/esm/organisms/DataGrid/ListViewComponent/templates/stories/NotificationCard.stories.d.ts +17 -0
  14. package/dist/esm/organisms/DataGrid/ListViewComponent/templates/types.d.ts +1 -1
  15. package/dist/esm/organisms/DataGrid/config/descriptors.d.ts +8 -0
  16. package/dist/esm/organisms/DataGrid/config/toolDescriptor/view.d.ts +8 -0
  17. package/dist/esm/organisms/DataGrid/config/toolDescriptor/view.js +1 -1
  18. package/dist/esm/organisms/DataGrid/config/toolDescriptor/view.js.map +1 -1
  19. package/dist/index.d.ts +8 -0
  20. package/package.json +1 -1
@@ -0,0 +1,22 @@
1
+ import type { GridRenderCellParams } from '@mui/x-data-grid-pro';
2
+ import type { ColumnCfg } from '../types';
3
+ type Props = {
4
+ params: GridRenderCellParams;
5
+ cfgCols: ColumnCfg[];
6
+ columns: Array<{
7
+ field: string;
8
+ }>;
9
+ config?: NotificationCardConfig;
10
+ onDismiss?: (row: Record<string, unknown>) => void;
11
+ };
12
+ type NotificationCardConfig = {
13
+ backgroundColor?: string;
14
+ borderColor?: string;
15
+ borderRadius?: number;
16
+ textColor?: string;
17
+ secondaryTextColor?: string;
18
+ priorityIndicatorColor?: string;
19
+ priorityIndicatorTextColor?: string;
20
+ };
21
+ export declare const NotificationCard: ({ params, cfgCols, columns, config, onDismiss, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
22
+ export {};
@@ -0,0 +1,17 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { ListView } from '../../ListView';
3
+ declare const meta: Meta<typeof ListView>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ListView>;
6
+ /**
7
+ * Default NotificationCard with sample notification data
8
+ */
9
+ export declare const DefaultNotifications: Story;
10
+ /**
11
+ * NotificationCard with different priority levels
12
+ */
13
+ export declare const PriorityLevels: Story;
14
+ /**
15
+ * NotificationCard with custom styling
16
+ */
17
+ export declare const CustomStyled: Story;
@@ -12,7 +12,7 @@ export type ColumnCfg = {
12
12
  sortable?: boolean;
13
13
  filterable?: boolean;
14
14
  };
15
- export type ListTemplateId = 'compact' | 'mediaLeft' | 'titleSubtitleMeta' | 'twoColumn' | 'custom' | 'visitCard' | 'visitCardCheck' | 'fourItems' | 'studyCard' | 'subjectCard' | 'applicationCard';
15
+ export type ListTemplateId = 'compact' | 'mediaLeft' | 'titleSubtitleMeta' | 'twoColumn' | 'custom' | 'visitCard' | 'visitCardCheck' | 'fourItems' | 'studyCard' | 'subjectCard' | 'applicationCard' | 'notificationCard';
16
16
  export type TemplateAreas = {
17
17
  primary?: ColumnCfg | undefined;
18
18
  secondary?: ColumnCfg | undefined;
@@ -35,6 +35,14 @@ export declare const dataGridConfiguratorDescriptor: {
35
35
  readonly id: "fourItems";
36
36
  readonly label: "4 items view";
37
37
  readonly labelKey: "config.datagrid.list.template.fourItems";
38
+ }, {
39
+ readonly id: "applicationCard";
40
+ readonly label: "Application card";
41
+ readonly labelKey: "config.datagrid.list.template.applicationCard";
42
+ }, {
43
+ readonly id: "notificationCard";
44
+ readonly label: "Notification card";
45
+ readonly labelKey: "config.datagrid.list.template.notificationCard";
38
46
  }, {
39
47
  readonly id: "compact";
40
48
  readonly label: "Compact";
@@ -32,6 +32,14 @@ export declare const viewGroup: {
32
32
  readonly id: "fourItems";
33
33
  readonly label: "4 items view";
34
34
  readonly labelKey: "config.datagrid.list.template.fourItems";
35
+ }, {
36
+ readonly id: "applicationCard";
37
+ readonly label: "Application card";
38
+ readonly labelKey: "config.datagrid.list.template.applicationCard";
39
+ }, {
40
+ readonly id: "notificationCard";
41
+ readonly label: "Notification card";
42
+ readonly labelKey: "config.datagrid.list.template.notificationCard";
35
43
  }, {
36
44
  readonly id: "compact";
37
45
  readonly label: "Compact";
@@ -0,0 +1,22 @@
1
+ import type { GridRenderCellParams } from '@mui/x-data-grid-pro';
2
+ import type { ColumnCfg } from '../types';
3
+ type Props = {
4
+ params: GridRenderCellParams;
5
+ cfgCols: ColumnCfg[];
6
+ columns: Array<{
7
+ field: string;
8
+ }>;
9
+ config?: NotificationCardConfig;
10
+ onDismiss?: (row: Record<string, unknown>) => void;
11
+ };
12
+ type NotificationCardConfig = {
13
+ backgroundColor?: string;
14
+ borderColor?: string;
15
+ borderRadius?: number;
16
+ textColor?: string;
17
+ secondaryTextColor?: string;
18
+ priorityIndicatorColor?: string;
19
+ priorityIndicatorTextColor?: string;
20
+ };
21
+ export declare const NotificationCard: ({ params, cfgCols, columns, config, onDismiss, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
22
+ export {};