@khester/dynamics-cell-renderers 1.1.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 (51) hide show
  1. package/dist/editable/EditableDateCell.d.ts +29 -0
  2. package/dist/editable/EditableDateCell.d.ts.map +1 -0
  3. package/dist/editable/EditableLookupCell.d.ts +54 -0
  4. package/dist/editable/EditableLookupCell.d.ts.map +1 -0
  5. package/dist/editable/EditableNumberCell.d.ts +30 -0
  6. package/dist/editable/EditableNumberCell.d.ts.map +1 -0
  7. package/dist/editable/EditableOptionSetCell.d.ts +28 -0
  8. package/dist/editable/EditableOptionSetCell.d.ts.map +1 -0
  9. package/dist/editable/EditableRatingCell.d.ts +33 -0
  10. package/dist/editable/EditableRatingCell.d.ts.map +1 -0
  11. package/dist/editable/EditableTextCell.d.ts +28 -0
  12. package/dist/editable/EditableTextCell.d.ts.map +1 -0
  13. package/dist/index.d.ts +39 -0
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/index.esm.js +2107 -0
  16. package/dist/index.esm.js.map +1 -0
  17. package/dist/index.js +2156 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/renderers/ColoredCell.d.ts +8 -0
  20. package/dist/renderers/ColoredCell.d.ts.map +1 -0
  21. package/dist/renderers/CompositeCell.d.ts +13 -0
  22. package/dist/renderers/CompositeCell.d.ts.map +1 -0
  23. package/dist/renderers/CurrencyCell.d.ts +8 -0
  24. package/dist/renderers/CurrencyCell.d.ts.map +1 -0
  25. package/dist/renderers/DateCell.d.ts +8 -0
  26. package/dist/renderers/DateCell.d.ts.map +1 -0
  27. package/dist/renderers/IconCell.d.ts +8 -0
  28. package/dist/renderers/IconCell.d.ts.map +1 -0
  29. package/dist/renderers/LinkCell.d.ts +8 -0
  30. package/dist/renderers/LinkCell.d.ts.map +1 -0
  31. package/dist/renderers/LookupCell.d.ts +20 -0
  32. package/dist/renderers/LookupCell.d.ts.map +1 -0
  33. package/dist/renderers/NumberCell.d.ts +8 -0
  34. package/dist/renderers/NumberCell.d.ts.map +1 -0
  35. package/dist/renderers/OptionSetCell.d.ts +9 -0
  36. package/dist/renderers/OptionSetCell.d.ts.map +1 -0
  37. package/dist/renderers/ProgressBarCell.d.ts +8 -0
  38. package/dist/renderers/ProgressBarCell.d.ts.map +1 -0
  39. package/dist/renderers/RatingCell.d.ts +15 -0
  40. package/dist/renderers/RatingCell.d.ts.map +1 -0
  41. package/dist/renderers/TextCell.d.ts +8 -0
  42. package/dist/renderers/TextCell.d.ts.map +1 -0
  43. package/dist/renderers/ToggleCell.d.ts +8 -0
  44. package/dist/renderers/ToggleCell.d.ts.map +1 -0
  45. package/dist/renderers/emojiRating.d.ts +22 -0
  46. package/dist/renderers/emojiRating.d.ts.map +1 -0
  47. package/dist/styles/index.d.ts +121 -0
  48. package/dist/styles/index.d.ts.map +1 -0
  49. package/dist/types/index.d.ts +245 -0
  50. package/dist/types/index.d.ts.map +1 -0
  51. package/package.json +42 -0
@@ -0,0 +1,29 @@
1
+ /// <reference types="react" />
2
+ import { CellRendererProps } from '../types';
3
+ /**
4
+ * Extended props for editable date cell.
5
+ */
6
+ export interface EditableDateCellProps<T> extends CellRendererProps<T> {
7
+ /** Whether the grid is in edit mode */
8
+ isEditMode: boolean;
9
+ /** Whether this cell has been modified */
10
+ isDirty: boolean;
11
+ /** Current edited value (if different from original) */
12
+ editedValue?: unknown;
13
+ /** Callback when value changes */
14
+ onValueChange: (rowKey: string, fieldName: string, value: unknown, originalValue: unknown) => void;
15
+ /** Validation error message */
16
+ errorMessage?: string;
17
+ /** Callback when validation error changes */
18
+ onValidationError?: (rowKey: string, fieldName: string, error: string | undefined) => void;
19
+ }
20
+ /**
21
+ * Editable date/datetime cell renderer.
22
+ * - Date-only fields: Fluent UI DatePicker (calendar popup)
23
+ * - DateTime fields: DatePicker + time ComboBox side by side
24
+ * Shows blue indicator when dirty, red indicator when has validation error.
25
+ */
26
+ export declare function EditableDateCell<T extends {
27
+ key: string;
28
+ }>({ item, column, value, itemKey, isEditMode, isDirty, editedValue, onValueChange, errorMessage, onValidationError, }: EditableDateCellProps<T>): JSX.Element;
29
+ //# sourceMappingURL=EditableDateCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditableDateCell.d.ts","sourceRoot":"","sources":["../../src/editable/EditableDateCell.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAmB,MAAM,UAAU,CAAC;AAU9D;;GAEG;AACH,MAAM,WAAW,qBAAqB,CAAC,CAAC,CAAE,SAAQ,iBAAiB,CAAC,CAAC,CAAC;IACpE,uCAAuC;IACvC,UAAU,EAAE,OAAO,CAAC;IACpB,0CAA0C;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kCAAkC;IAClC,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,KAAK,IAAI,CAAC;IACnG,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;CAC5F;AAyLD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,EAAE,EAC1D,IAAI,EACJ,MAAM,EACN,KAAK,EACL,OAAO,EACP,UAAU,EACV,OAAO,EACP,WAAW,EACX,aAAa,EACb,YAAY,EACZ,iBAAiB,GAClB,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,CAwKxC"}
@@ -0,0 +1,54 @@
1
+ /// <reference types="react" />
2
+ import { CellRendererProps, IApiService } from '../types';
3
+ /**
4
+ * Lookup option for dropdown list.
5
+ */
6
+ export interface LookupOption {
7
+ id: string;
8
+ name: string;
9
+ }
10
+ /**
11
+ * Lookup value stored in edited state.
12
+ */
13
+ export interface LookupValue {
14
+ id: string;
15
+ name: string;
16
+ entitySetName?: string;
17
+ }
18
+ /**
19
+ * Extended props for editable lookup cell.
20
+ */
21
+ export interface EditableLookupCellProps<T> extends CellRendererProps<T> {
22
+ /** Whether the grid is in edit mode */
23
+ isEditMode: boolean;
24
+ /** Whether this cell has been modified */
25
+ isDirty: boolean;
26
+ /** Current edited value (if different from original) */
27
+ editedValue?: LookupValue | null;
28
+ /** Callback when value changes */
29
+ onValueChange: (rowKey: string, fieldName: string, value: unknown, originalValue: unknown) => void;
30
+ /** Validation error message */
31
+ errorMessage?: string;
32
+ /** Callback when validation error changes */
33
+ onValidationError?: (rowKey: string, fieldName: string, error: string | undefined) => void;
34
+ /** API service for search queries */
35
+ apiService?: IApiService;
36
+ /** Dynamics 365 base URL for navigation links */
37
+ dynamicsBaseUrl?: string;
38
+ /**
39
+ * Consumer-supplied search callback (fetch-free). When present it is used
40
+ * INSTEAD of `apiService` — this is grid-kit's contract (the host owns the
41
+ * query; the cell only renders the returned options). Falls back to
42
+ * `column.lookupSearch` when not passed directly.
43
+ */
44
+ searchLookup?: (term: string) => Promise<LookupOption[]>;
45
+ }
46
+ /**
47
+ * Editable lookup cell renderer.
48
+ * Displays as a clickable link in read mode, as a searchable dropdown in edit mode.
49
+ * Shows blue indicator when dirty, red indicator when has validation error.
50
+ */
51
+ export declare function EditableLookupCell<T extends {
52
+ key: string;
53
+ }>({ item, column, value, itemKey, isEditMode, isDirty, editedValue, onValueChange, errorMessage, onValidationError, apiService, dynamicsBaseUrl, searchLookup, }: EditableLookupCellProps<T>): JSX.Element;
54
+ //# sourceMappingURL=EditableLookupCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditableLookupCell.d.ts","sourceRoot":"","sources":["../../src/editable/EditableLookupCell.tsx"],"names":[],"m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ACN,KAAK,EACL,OAAO,EACP,UAAU,EACV,OAAO,EACP,WAAW,EACX,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,YAAY,GACb,EAAE,uBAAuB,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,CAse1C"}
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ import { CellRendererProps } from '../types';
3
+ /**
4
+ * Extended props for editable number cell.
5
+ */
6
+ export interface EditableNumberCellProps<T> extends CellRendererProps<T> {
7
+ /** Whether the grid is in edit mode */
8
+ isEditMode: boolean;
9
+ /** Whether this cell has been modified */
10
+ isDirty: boolean;
11
+ /** Current edited value (if different from original) */
12
+ editedValue?: unknown;
13
+ /** Callback when value changes */
14
+ onValueChange: (rowKey: string, fieldName: string, value: unknown, originalValue: unknown) => void;
15
+ /** Validation error message */
16
+ errorMessage?: string;
17
+ /** Callback when validation error changes */
18
+ onValidationError?: (rowKey: string, fieldName: string, error: string | undefined) => void;
19
+ /** Whether to format as currency */
20
+ isCurrency?: boolean;
21
+ }
22
+ /**
23
+ * Editable number cell renderer.
24
+ * Displays formatted number/currency in read mode, as TextField in edit mode.
25
+ * Shows blue indicator when dirty, red indicator when has validation error.
26
+ */
27
+ export declare function EditableNumberCell<T extends {
28
+ key: string;
29
+ }>({ item, column, value, itemKey, isEditMode, isDirty, editedValue, onValueChange, errorMessage, onValidationError, isCurrency, }: EditableNumberCellProps<T>): JSX.Element;
30
+ //# sourceMappingURL=EditableNumberCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditableNumberCell.d.ts","sourceRoot":"","sources":["../../src/editable/EditableNumberCell.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAmB,MAAM,UAAU,CAAC;AAW9D;;GAEG;AACH,MAAM,WAAW,uBAAuB,CAAC,CAAC,CAAE,SAAQ,iBAAiB,CAAC,CAAC,CAAC;IACtE,uCAAuC;IACvC,UAAU,EAAE,OAAO,CAAC;IACpB,0CAA0C;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kCAAkC;IAClC,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,KAAK,IAAI,CAAC;IACnG,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC3F,oCAAoC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAsED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,EAAE,EAC5D,IAAI,EACJ,MAAM,EACN,KAAK,EACL,OAAO,EACP,UAAU,EACV,OAAO,EACP,WAAW,EACX,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,UAAkB,GACnB,EAAE,uBAAuB,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,CAqH1C"}
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ import { CellRendererProps } from '../types';
3
+ /**
4
+ * Extended props for editable option set cell.
5
+ */
6
+ export interface EditableOptionSetCellProps<T> extends CellRendererProps<T> {
7
+ /** Whether the grid is in edit mode */
8
+ isEditMode: boolean;
9
+ /** Whether this cell has been modified */
10
+ isDirty: boolean;
11
+ /** Current edited value (if different from original) */
12
+ editedValue?: unknown;
13
+ /** Callback when value changes */
14
+ onValueChange: (rowKey: string, fieldName: string, value: unknown, originalValue: unknown) => void;
15
+ /** Validation error message */
16
+ errorMessage?: string;
17
+ /** Callback when validation error changes */
18
+ onValidationError?: (rowKey: string, fieldName: string, error: string | undefined) => void;
19
+ }
20
+ /**
21
+ * Editable option set cell renderer.
22
+ * Displays as colored badge (OptionSetCell) in read mode, as Dropdown in edit mode.
23
+ * Shows blue indicator when dirty, red indicator when has validation error.
24
+ */
25
+ export declare function EditableOptionSetCell<T extends {
26
+ key: string;
27
+ }>({ item, column, value, itemKey, isEditMode, isDirty, editedValue, onValueChange, errorMessage, onValidationError, }: EditableOptionSetCellProps<T>): JSX.Element;
28
+ //# sourceMappingURL=EditableOptionSetCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditableOptionSetCell.d.ts","sourceRoot":"","sources":["../../src/editable/EditableOptionSetCell.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAmB,MAAM,UAAU,CAAC;AAU9D;;GAEG;AACH,MAAM,WAAW,0BAA0B,CAAC,CAAC,CAAE,SAAQ,iBAAiB,CAAC,CAAC,CAAC;IACzE,uCAAuC;IACvC,UAAU,EAAE,OAAO,CAAC;IACpB,0CAA0C;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kCAAkC;IAClC,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,KAAK,IAAI,CAAC;IACnG,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;CAC5F;AA4DD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,EAAE,EAC/D,IAAI,EACJ,MAAM,EACN,KAAK,EACL,OAAO,EACP,UAAU,EACV,OAAO,EACP,WAAW,EACX,aAAa,EACb,YAAY,EACZ,iBAAiB,GAClB,EAAE,0BAA0B,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,CAgH7C"}
@@ -0,0 +1,33 @@
1
+ /// <reference types="react" />
2
+ import { CellRendererProps } from '../types';
3
+ /**
4
+ * Extended props for the editable rating cell.
5
+ */
6
+ export interface EditableRatingCellProps<T> extends CellRendererProps<T> {
7
+ /** Whether the grid is in edit mode */
8
+ isEditMode: boolean;
9
+ /** Whether this cell has been modified */
10
+ isDirty: boolean;
11
+ /** Current edited value (if different from original) */
12
+ editedValue?: unknown;
13
+ /** Callback when value changes */
14
+ onValueChange: (rowKey: string, fieldName: string, value: unknown, originalValue: unknown) => void;
15
+ /** Validation error message */
16
+ errorMessage?: string;
17
+ /** Callback when validation error changes */
18
+ onValidationError?: (rowKey: string, fieldName: string, error: string | undefined) => void;
19
+ }
20
+ /**
21
+ * Editable rating cell renderer.
22
+ * Read mode delegates to `RatingCell` (stars or a single sentiment emoji);
23
+ * edit mode renders clickable stars / faces (click to set, click the selected
24
+ * one again to clear, arrow keys to adjust). Shows blue indicator when dirty,
25
+ * red when it has a validation error.
26
+ *
27
+ * NOTE: `ratingStyle: 'emoji'` renders Fluent `<Icon>`s — the host must have
28
+ * called `initializeIcons()`.
29
+ */
30
+ export declare function EditableRatingCell<T extends {
31
+ key: string;
32
+ }>({ item, column, value, itemKey, isEditMode, isDirty, editedValue, onValueChange, errorMessage, onValidationError, }: EditableRatingCellProps<T>): JSX.Element;
33
+ //# sourceMappingURL=EditableRatingCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditableRatingCell.d.ts","sourceRoot":"","sources":["../../src/editable/EditableRatingCell.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAmB,MAAM,UAAU,CAAC;AAW9D;;GAEG;AACH,MAAM,WAAW,uBAAuB,CAAC,CAAC,CAAE,SAAQ,iBAAiB,CAAC,CAAC,CAAC;IACtE,uCAAuC;IACvC,UAAU,EAAE,OAAO,CAAC;IACpB,0CAA0C;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kCAAkC;IAClC,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,KAAK,IAAI,CAAC;IACnG,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;CAC5F;AAYD;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,EAAE,EAC5D,IAAI,EACJ,MAAM,EACN,KAAK,EACL,OAAO,EACP,UAAU,EACV,OAAO,EACP,WAAW,EACX,aAAa,EACb,YAAY,EACZ,iBAAiB,GAClB,EAAE,uBAAuB,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,CA0H1C"}
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ import { CellRendererProps } from '../types';
3
+ /**
4
+ * Extended props for editable text cell.
5
+ */
6
+ export interface EditableTextCellProps<T> extends CellRendererProps<T> {
7
+ /** Whether the grid is in edit mode */
8
+ isEditMode: boolean;
9
+ /** Whether this cell has been modified */
10
+ isDirty: boolean;
11
+ /** Current edited value (if different from original) */
12
+ editedValue?: unknown;
13
+ /** Callback when value changes */
14
+ onValueChange: (rowKey: string, fieldName: string, value: unknown, originalValue: unknown) => void;
15
+ /** Validation error message */
16
+ errorMessage?: string;
17
+ /** Callback when validation error changes */
18
+ onValidationError?: (rowKey: string, fieldName: string, error: string | undefined) => void;
19
+ }
20
+ /**
21
+ * Editable text cell renderer.
22
+ * Displays as text in read mode, as TextField in edit mode.
23
+ * Shows blue indicator when dirty, red indicator when has validation error.
24
+ */
25
+ export declare function EditableTextCell<T extends {
26
+ key: string;
27
+ }>({ item, column, value, itemKey, isEditMode, isDirty, editedValue, onValueChange, errorMessage, onValidationError, }: EditableTextCellProps<T>): JSX.Element;
28
+ //# sourceMappingURL=EditableTextCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditableTextCell.d.ts","sourceRoot":"","sources":["../../src/editable/EditableTextCell.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAmB,MAAM,UAAU,CAAC;AAS9D;;GAEG;AACH,MAAM,WAAW,qBAAqB,CAAC,CAAC,CAAE,SAAQ,iBAAiB,CAAC,CAAC,CAAC;IACpE,uCAAuC;IACvC,UAAU,EAAE,OAAO,CAAC;IACpB,0CAA0C;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kCAAkC;IAClC,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,KAAK,IAAI,CAAC;IACnG,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;CAC5F;AAsDD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,EAAE,EAC1D,IAAI,EACJ,MAAM,EACN,KAAK,EACL,OAAO,EACP,UAAU,EACV,OAAO,EACP,WAAW,EACX,aAAa,EACb,YAAY,EACZ,iBAAiB,GAClB,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,CAyFxC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @khester/dynamics-cell-renderers
3
+ *
4
+ * Cell renderer components for Dynamics 365 grids.
5
+ * Provides read-only and editable renderers for common field types:
6
+ * text, link, currency, date, number, optionset, toggle, icon, progress, lookup.
7
+ *
8
+ * Peer dependencies: @fluentui/react, react, react-dom
9
+ * Runtime dependency: @khester/dynamics-utils (formatting + color utilities)
10
+ */
11
+ export type { ListFieldType, IReusableColumn, CellRendererProps, BatchUpdateResult, BatchUpdateRecord, ListSelectionMode, SortDirection, SortState, PaginationState, ChangedRecord, IApiService, CompositeSlotType, ConditionalStyle, CompositeSlot, CompositeRendererConfig, } from './types';
12
+ export { cellClass, linkCellClass, coloredBadgeClass, currencyCellClass, progressBarContainerClass, progressBarBackgroundClass, progressBarFillClass, progressBarLabelClass, iconButtonCellClass, ratingCellClass, ratingStarClass, compositeCellClass, editableCellClass, editableCellInputWrapperClass, dirtyCellIndicatorClass, errorCellIndicatorClass, cellErrorTextClass, lookupCellContainerClass, lookupDropdownClass, lookupDropdownItemClass, lookupDropdownItemActiveClass, lookupDropdownNoneOptionClass, lookupLoadingClass, lookupNoResultsClass, lookupClearButtonClass, lookupReadModeLinkClass, getDetailsListStyles, getRowStyles, getRowStylesWithSelection, } from './styles';
13
+ export { TextCell } from './renderers/TextCell';
14
+ export { LinkCell } from './renderers/LinkCell';
15
+ export { CurrencyCell } from './renderers/CurrencyCell';
16
+ export { DateCell } from './renderers/DateCell';
17
+ export { NumberCell } from './renderers/NumberCell';
18
+ export { OptionSetCell } from './renderers/OptionSetCell';
19
+ export { ToggleCell } from './renderers/ToggleCell';
20
+ export { IconCell } from './renderers/IconCell';
21
+ export { ProgressBarCell } from './renderers/ProgressBarCell';
22
+ export { ColoredCell } from './renderers/ColoredCell';
23
+ export { LookupCell } from './renderers/LookupCell';
24
+ export type { LookupCellProps } from './renderers/LookupCell';
25
+ export { RatingCell } from './renderers/RatingCell';
26
+ export { CompositeCell } from './renderers/CompositeCell';
27
+ export { EditableTextCell } from './editable/EditableTextCell';
28
+ export type { EditableTextCellProps } from './editable/EditableTextCell';
29
+ export { EditableNumberCell } from './editable/EditableNumberCell';
30
+ export type { EditableNumberCellProps } from './editable/EditableNumberCell';
31
+ export { EditableDateCell } from './editable/EditableDateCell';
32
+ export type { EditableDateCellProps } from './editable/EditableDateCell';
33
+ export { EditableOptionSetCell } from './editable/EditableOptionSetCell';
34
+ export type { EditableOptionSetCellProps } from './editable/EditableOptionSetCell';
35
+ export { EditableLookupCell } from './editable/EditableLookupCell';
36
+ export type { EditableLookupCellProps, LookupOption, LookupValue } from './editable/EditableLookupCell';
37
+ export { EditableRatingCell } from './editable/EditableRatingCell';
38
+ export type { EditableRatingCellProps } from './editable/EditableRatingCell';
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,YAAY,EACV,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,eAAe,EACf,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,uBAAuB,GACxB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAEL,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,0BAA0B,EAC1B,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,6BAA6B,EAC7B,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,EAElB,wBAAwB,EACxB,mBAAmB,EACnB,uBAAuB,EACvB,6BAA6B,EAC7B,6BAA6B,EAC7B,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EAEvB,o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