@talxis/base-controls 1.2504.2 → 1.2504.4

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 (59) hide show
  1. package/dist/components/DatasetControl/DatasetControl.js +6 -10
  2. package/dist/components/DatasetControl/DatasetControl.js.map +1 -1
  3. package/dist/components/DatasetControl/QuickFind/QuickFind.js +8 -2
  4. package/dist/components/DatasetControl/QuickFind/QuickFind.js.map +1 -1
  5. package/dist/components/DatasetControl/QuickFind/styles.d.ts +8 -0
  6. package/dist/components/DatasetControl/QuickFind/styles.js +15 -0
  7. package/dist/components/DatasetControl/QuickFind/styles.js.map +1 -0
  8. package/dist/components/DatasetControl/interfaces.d.ts +2 -1
  9. package/dist/components/DatasetControl/styles.d.ts +3 -0
  10. package/dist/components/DatasetControl/styles.js +3 -0
  11. package/dist/components/DatasetControl/styles.js.map +1 -1
  12. package/dist/components/Grid/Grid.js +1 -1
  13. package/dist/components/Grid/Grid.js.map +1 -1
  14. package/dist/components/Grid/core/components/AgGrid/AgGrid.d.ts +2 -1
  15. package/dist/components/Grid/core/components/AgGrid/AgGrid.js +94 -58
  16. package/dist/components/Grid/core/components/AgGrid/AgGrid.js.map +1 -1
  17. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.d.ts +3 -1
  18. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js +68 -57
  19. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js.map +1 -1
  20. package/dist/components/Grid/core/components/AgGrid/styles.d.ts +3 -3
  21. package/dist/components/Grid/core/components/AgGrid/styles.js +3 -9
  22. package/dist/components/Grid/core/components/AgGrid/styles.js.map +1 -1
  23. package/dist/components/Grid/core/components/Cell/Cell.js +5 -13
  24. package/dist/components/Grid/core/components/Cell/Cell.js.map +1 -1
  25. package/dist/components/Grid/core/components/Cell/CellContent/CellContent.js +14 -2
  26. package/dist/components/Grid/core/components/Cell/CellContent/CellContent.js.map +1 -1
  27. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.js +9 -9
  28. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.js.map +1 -1
  29. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.js +16 -0
  30. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.js.map +1 -1
  31. package/dist/components/Grid/core/model/Grid.d.ts +8 -4
  32. package/dist/components/Grid/core/model/Grid.js +32 -25
  33. package/dist/components/Grid/core/model/Grid.js.map +1 -1
  34. package/dist/components/Grid/filtering/model/Condition.d.ts +0 -1
  35. package/dist/components/Grid/filtering/model/Condition.js +5 -4
  36. package/dist/components/Grid/filtering/model/Condition.js.map +1 -1
  37. package/dist/components/Grid/interfaces.d.ts +9 -1
  38. package/dist/components/Grid/paging/components/Paging/Paging.js +2 -2
  39. package/dist/components/Grid/paging/components/Paging/Paging.js.map +1 -1
  40. package/dist/components/Grid/sorting/Sorting.d.ts +1 -0
  41. package/dist/components/Grid/sorting/Sorting.js +5 -6
  42. package/dist/components/Grid/sorting/Sorting.js.map +1 -1
  43. package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js +12 -0
  44. package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js.map +1 -1
  45. package/dist/components/Grid/sorting/controllers/useColumnSortingController.d.ts +1 -0
  46. package/dist/components/Grid/sorting/controllers/useColumnSortingController.js +2 -1
  47. package/dist/components/Grid/sorting/controllers/useColumnSortingController.js.map +1 -1
  48. package/dist/components/Grid/translations.d.ts +4 -0
  49. package/dist/components/Grid/translations.js +1 -0
  50. package/dist/components/Grid/translations.js.map +1 -1
  51. package/dist/components/GridCellRenderer/GridCellRenderer.js +4 -2
  52. package/dist/components/GridCellRenderer/GridCellRenderer.js.map +1 -1
  53. package/dist/components/GridCellRenderer/OptionSet/OptionSet.js +8 -2
  54. package/dist/components/GridCellRenderer/OptionSet/OptionSet.js.map +1 -1
  55. package/dist/components/GridCellRenderer/interfaces.d.ts +1 -0
  56. package/dist/index.d.ts +16 -2
  57. package/package.json +4 -3
  58. package/dist/components/DatasetControl/ErrorBoundary.js +0 -33
  59. package/dist/components/DatasetControl/ErrorBoundary.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { useTheme, ThemeProvider, Text } from '@fluentui/react';
2
+ import { useTheme, merge, ThemeProvider, Text } from '@fluentui/react';
3
3
  import { Theming, useThemeGenerator } from '@talxis/react-components';
4
4
  import { useMemo } from 'react';
5
5
  import { getOptionSetStyles, getColorfulOptionStyles } from './styles.js';
@@ -51,7 +51,13 @@ const ColorfulOption = (props) => {
51
51
  const backgroundColor = option.Color ?? theme.palette.neutralLight;
52
52
  const textColor = Theming.GetTextColorForBackground(backgroundColor);
53
53
  const styles = useMemo(() => getColorfulOptionStyles(), []);
54
- const optionTheme = useThemeGenerator(textColor, backgroundColor, textColor, props.context.fluentDesignLanguage?.v8FluentOverrides);
54
+ const optionTheme = useThemeGenerator(textColor, backgroundColor, textColor, merge({}, {
55
+ fonts: {
56
+ medium: {
57
+ fontWeight: 600
58
+ }
59
+ }
60
+ }, props.context.fluentDesignLanguage?.v8FluentOverrides));
55
61
  const optionProps = props.optionSetProps.onGetOptionProps({
56
62
  containerProps: {
57
63
  className: styles.option,
@@ -1 +1 @@
1
- {"version":3,"file":"OptionSet.js","sources":["../../../../src/components/GridCellRenderer/OptionSet/OptionSet.tsx"],"sourcesContent":["import { DataType } from \"@talxis/client-libraries\";\nimport { IOptionSet } from \"../../OptionSet\"\nimport { IMultiSelectOptionSet } from \"../../MultiSelectOptionSet\";\nimport { ITwoOptions } from \"../../TwoOptions\";\nimport { ThemeProvider, useTheme } from \"@fluentui/react\";\nimport { Theming, useThemeGenerator } from \"@talxis/react-components\";\nimport { Text } from '@fluentui/react';\nimport { IContext } from \"../../../interfaces\";\nimport { useMemo } from \"react\";\nimport { getColorfulOptionStyles, getOptionSetStyles } from \"./styles\";\nimport { useComponentProps } from \"../useComponentProps\";\nimport { IOptionSetProps } from \"../interfaces\";\nimport { DefaultContentRenderer } from \"../DefaultContentRenderer\";\n\nexport const OptionSet = (props: IOptionSet | IMultiSelectOptionSet | ITwoOptions) => {\n const dataType: DataType = props.parameters.value.type as DataType;\n const options = props.parameters.value.attributes.Options;\n const value: any = props.parameters.value.raw;\n const styles = useMemo(() => getOptionSetStyles(), []);\n const componentProps = useComponentProps();\n\n const optionSetProps = componentProps.onGetOptionSetProps({\n containerProps: {\n className: styles.root\n },\n onGetOptionProps: (props) => props\n })\n\n const shouldRenderDefaultLabel = () => {\n if (!props.parameters.EnableOptionSetColors?.raw || !options.some(option => option.Color)) {\n return true;\n }\n return false;\n }\n\n const getSelectedOptions = () => {\n let result: any = value ?? [];\n switch (dataType) {\n case 'OptionSet': {\n result = [value]\n break;\n }\n case 'TwoOptions': {\n result = [+value];\n break;\n }\n }\n return options.filter(option => result?.includes(option.Value)) ?? [];\n }\n\n if (shouldRenderDefaultLabel()) {\n return <DefaultContentRenderer />\n }\n return (<div {...optionSetProps.containerProps}>\n {getSelectedOptions().map(option => {\n return <ColorfulOption\n key={option.Value}\n optionSetProps={optionSetProps}\n option={option}\n context={props.context} />\n })}\n </div>)\n}\n\nconst ColorfulOption = (props: {\n option: ComponentFramework.PropertyHelper.OptionMetadata,\n context: IContext;\n optionSetProps: IOptionSetProps\n}) => {\n const theme = useTheme();\n const option = props.option;\n const backgroundColor = option.Color ?? theme.palette.neutralLight;\n const textColor = Theming.GetTextColorForBackground(backgroundColor);\n const styles = useMemo(() => getColorfulOptionStyles(), []);\n const optionTheme = useThemeGenerator(textColor, backgroundColor, textColor, props.context.fluentDesignLanguage?.v8FluentOverrides);\n\n const optionProps = props.optionSetProps.onGetOptionProps({\n containerProps: {\n className: styles.option,\n theme: optionTheme\n },\n option: option,\n textProps: {\n children: option.Label\n }\n })\n\n return (\n <ThemeProvider {...optionProps.containerProps}>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,CAAC;AACtD,QAAA,cAAc,EAAE;YACZ,SAAS,EAAE,MAAM,CAAC,MAAM;AACxB,YAAA,KAAK,EAAE,WAAW;AACrB,SAAA;AACD,QAAA,MAAM,EAAE,MAAM;AACd,QAAA,SAAS,EAAE;YACP,QAAQ,EAAE,MAAM,CAAC,KAAK;AACzB,SAAA;AACJ,KAAA,CAAC,CAAA;IAEF,QACIA,IAAC,aAAa,EAAA,EAAA,GAAK,WAAW,CAAC,cAAc,EACzC,QAAA,EAAAA,GAAA,CAAC,IAAI,EAAA,EAAA,GAAK,WAAW,CAAC,SAAS,EAAG,QAAA,EAAA,WAAW,CAAC,SAAS,CAAC,QAAQ,EAAA,CAAQ,EAC5D,CAAA,EACnB;AACL,CAAC;;;;"}
1
+ {"version":3,"file":"OptionSet.js","sources":["../../../../src/components/GridCellRenderer/OptionSet/OptionSet.tsx"],"sourcesContent":["import { DataType } from \"@talxis/client-libraries\";\nimport { IOptionSet } from \"../../OptionSet\"\nimport { IMultiSelectOptionSet } from \"../../MultiSelectOptionSet\";\nimport { ITwoOptions } from \"../../TwoOptions\";\nimport { PartialTheme, ThemeProvider, useTheme, merge } from \"@fluentui/react\";\nimport { Theming, useThemeGenerator } from \"@talxis/react-components\";\nimport { Text } from '@fluentui/react';\nimport { IContext } from \"../../../interfaces\";\nimport { useMemo } from \"react\";\nimport { getColorfulOptionStyles, getOptionSetStyles } from \"./styles\";\nimport { useComponentProps } from \"../useComponentProps\";\nimport { IOptionSetProps } from \"../interfaces\";\nimport { DefaultContentRenderer } from \"../DefaultContentRenderer\";\n\nexport const OptionSet = (props: IOptionSet | IMultiSelectOptionSet | ITwoOptions) => {\n const dataType: DataType = props.parameters.value.type as DataType;\n const options = props.parameters.value.attributes.Options;\n const value: any = props.parameters.value.raw;\n const styles = useMemo(() => getOptionSetStyles(), []);\n const componentProps = useComponentProps();\n\n const optionSetProps = componentProps.onGetOptionSetProps({\n containerProps: {\n className: styles.root\n },\n onGetOptionProps: (props) => props\n })\n\n const shouldRenderDefaultLabel = () => {\n if (!props.parameters.EnableOptionSetColors?.raw || !options.some(option => option.Color)) {\n return true;\n }\n return false;\n }\n\n const getSelectedOptions = () => {\n let result: any = value ?? [];\n switch (dataType) {\n case 'OptionSet': {\n result = [value]\n break;\n }\n case 'TwoOptions': {\n result = [+value];\n break;\n }\n }\n return options.filter(option => result?.includes(option.Value)) ?? [];\n }\n\n if (shouldRenderDefaultLabel()) {\n return <DefaultContentRenderer />\n }\n return (<div {...optionSetProps.containerProps}>\n {getSelectedOptions().map(option => {\n return <ColorfulOption\n key={option.Value}\n optionSetProps={optionSetProps}\n option={option}\n context={props.context} />\n })}\n </div>)\n}\n\nconst ColorfulOption = (props: {\n option: ComponentFramework.PropertyHelper.OptionMetadata,\n context: IContext;\n optionSetProps: IOptionSetProps\n}) => {\n const theme = useTheme();\n const option = props.option;\n const backgroundColor = option.Color ?? theme.palette.neutralLight;\n const textColor = Theming.GetTextColorForBackground(backgroundColor);\n const styles = useMemo(() => getColorfulOptionStyles(), []);\n const optionTheme = useThemeGenerator(textColor, backgroundColor, textColor, merge({}, {\n fonts: {\n medium: {\n fontWeight: 600\n }\n }\n } as PartialTheme, props.context.fluentDesignLanguage?.v8FluentOverrides as PartialTheme));\n\n const optionProps = props.optionSetProps.onGetOptionProps({\n containerProps: {\n className: styles.option,\n theme: optionTheme\n },\n option: option,\n textProps: {\n children: option.Label\n }\n })\n\n return (\n <ThemeProvider {...optionProps.containerProps}>\n <Text {...optionProps.textProps}>{optionProps.textProps.children}</Text>\n </ThemeProvider>\n )\n}"],"names":["_jsx"],"mappings":";;;;;;;;AAca,MAAA,SAAS,GAAG,CAAC,KAAuD,KAAI;IACjF,MAAM,QAAQ,GAAa,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,IAAgB,CAAC;IACnE,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC;IAC1D,MAAM,KAAK,GAAQ,KAAK,CA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M,CAAC,KAAK;AACzB,SAAA;AACJ,KAAA,CAAC,CAAA;IAEF,QACIA,IAAC,aAAa,EAAA,EAAA,GAAK,WAAW,CAAC,cAAc,EACzC,QAAA,EAAAA,GAAA,CAAC,IAAI,EAAA,EAAA,GAAK,WAAW,CAAC,SAAS,EAAG,QAAA,EAAA,WAAW,CAAC,SAAS,CAAC,QAAQ,EAAA,CAAQ,EAC5D,CAAA,EACnB;AACL,CAAC;;;;"}
@@ -35,6 +35,7 @@ export interface IOptionProps {
35
35
  export interface IGridCellRendererComponentProps {
36
36
  onGetOptionSetProps: (props: IOptionSetProps) => IOptionSetProps;
37
37
  onGetLinkProps: (props: ILinkProps) => ILinkProps;
38
+ onRenderContent: (defaultRenderer: () => JSX.Element) => JSX.Element;
38
39
  rootContainerProps: ThemeProviderProps;
39
40
  contentWrapperProps: React.HTMLAttributes<HTMLDivElement>;
40
41
  textProps: ITextProps;
package/dist/index.d.ts CHANGED
@@ -480,6 +480,10 @@ declare const gridTranslations: {
480
480
  1029: string;
481
481
  1033: string;
482
482
  };
483
+ "filtersortmenu-clearsorting": {
484
+ 1029: string;
485
+ 1033: string;
486
+ };
483
487
  "paging-of": {
484
488
  1029: string;
485
489
  1033: string;
@@ -606,7 +610,13 @@ declare const gridTranslations: {
606
610
  };
607
611
  };
608
612
 
609
- interface IGrid extends IControl<IGridParameters, IGridOutputs, Partial<ITranslation<typeof gridTranslations>>, AgGridReactProps> {
613
+ interface IGridComponentProps {
614
+ agGrid: AgGridReactProps;
615
+ registerRowGroupingModule: boolean;
616
+ container: any;
617
+ pagingProps: any;
618
+ }
619
+ interface IGrid extends IControl<IGridParameters, IGridOutputs, Partial<ITranslation<typeof gridTranslations>>, IGridComponentProps> {
610
620
  }
611
621
  interface IGridParameters extends IParameters$1 {
612
622
  EnableEditing?: Omit<ITwoOptionsProperty, 'attributes'>;
@@ -617,7 +627,9 @@ interface IGridParameters extends IParameters$1 {
617
627
  EnableOptionSetColors?: Omit<ITwoOptionsProperty, 'attributes'>;
618
628
  EnableChangeEditor?: Omit<ITwoOptionsProperty, 'attributes'>;
619
629
  EnableMultiEdit?: Omit<ITwoOptionsProperty, 'attributes'>;
630
+ EnableZebra?: Omit<ITwoOptionsProperty, 'attributes'>;
620
631
  RowHeight?: Omit<IWholeNumberProperty, 'attributes'>;
632
+ EnablePageSizeSwitcher?: Omit<ITwoOptionsProperty, 'attributes'>;
621
633
  Height?: IStringProperty;
622
634
  InlineRibbonButtonIds?: IStringProperty;
623
635
  SelectableRows?: Omit<ComponentFramework.PropertyTypes.EnumProperty<"none" | "single" | "multiple">, 'type'>;
@@ -659,6 +671,7 @@ interface IDatasetControlComponentProps {
659
671
  onRender: (renderQuickFind: () => React.ReactElement) => React.ReactElement;
660
672
  onGetQuickFindProps: (props: IQuickFindProps) => IQuickFindProps;
661
673
  };
674
+ onOverrideControlProps: (props: IGridComponentProps) => IGridComponentProps;
662
675
  }
663
676
  interface IDatasetControl extends IControl<IGridParameters, IGridOutputs, Partial<ITranslation<typeof datasetControlTranslations & typeof gridTranslations>>, IDatasetControlComponentProps> {
664
677
  EnableQuickFind?: Omit<ITwoOptionsProperty, 'attributes'>;
@@ -786,6 +799,7 @@ interface IOptionProps {
786
799
  interface IGridCellRendererComponentProps {
787
800
  onGetOptionSetProps: (props: IOptionSetProps) => IOptionSetProps;
788
801
  onGetLinkProps: (props: ILinkProps) => ILinkProps;
802
+ onRenderContent: (defaultRenderer: () => JSX.Element) => JSX.Element;
789
803
  rootContainerProps: ThemeProviderProps;
790
804
  contentWrapperProps: React.HTMLAttributes<HTMLDivElement>;
791
805
  textProps: ITextProps;
@@ -1249,4 +1263,4 @@ interface IDurationOutputs extends IOutputs$1 {
1249
1263
 
1250
1264
  declare const Duration: (props: IDuration) => JSX.Element;
1251
1265
 
1252
- export { BaseControl, BaseControls, ControlTheme, DatasetControl, DateTime, Decimal, Duration, Grid, GridCellRenderer, IContext, IControl, IControlController, IDatasetControl, IDatasetControlComponentProps, IDateTime, IDateTimeOutputs, IDateTimeParameters, IDateTimeProperty, IDecimal, IDecimalNumberProperty, IDecimalOutputs, IDecimalParameters, IDefaultTranslations, IDuration, IDurationOutputs, IDurationParameters, IEntity, IFileProperty, IFluentDesignState, IGrid, IGridOutputs, IGridParameters, ILayout, ILookup, ILookupOutputs, ILookupParameters, ILookupProperty, IMetadata, IMultiSelectOptionSet, IMultiSelectOptionSetOutputs, IMultiSelectOptionSetParameters, IMultiSelectOptionSetProperty, IOptionSet, IOptionSetOutputs, IOptionSetParameters, IOptionSetProperty, IOutputs, IParameters$1 as IParameters, IProperty, IQuickFindProps, IStringProperty, ITextField, ITextFieldOutputs, ITextFieldParameters, ITranslation, ITranslations, ITwoOptions, ITwoOptionsOutputs, ITwoOptionsParameters, ITwoOptionsProperty, IWholeNumberProperty, Lookup, MultiSelectOptionSet, NestedControlRenderer, OptionSet, TextField, ThemeWrapper, TwoOptions, useControl, useControlLabels, useControlSizing, useControlTheme, useControlThemeGenerator, useDateTime, useFocusIn, useInputBasedControl, useLookup, useMouseOver };
1266
+ export { BaseControl, BaseControls, ControlTheme, DatasetControl, DateTime, Decimal, Duration, Grid, GridCellRenderer, IContext, IControl, IControlController, IDatasetControl, IDatasetControlComponentProps, IDateTime, IDateTimeOutputs, IDateTimeParameters, IDateTimeProperty, IDecimal, IDecimalNumberProperty, IDecimalOutputs, IDecimalParameters, IDefaultTranslations, IDuration, IDurationOutputs, IDurationParameters, IEntity, IFileProperty, IFluentDesignState, IGrid, IGridComponentProps, IGridOutputs, IGridParameters, ILayout, ILookup, ILookupOutputs, ILookupParameters, ILookupProperty, IMetadata, IMultiSelectOptionSet, IMultiSelectOptionSetOutputs, IMultiSelectOptionSetParameters, IMultiSelectOptionSetProperty, IOptionSet, IOptionSetOutputs, IOptionSetParameters, IOptionSetProperty, IOutputs, IParameters$1 as IParameters, IProperty, IQuickFindProps, IStringProperty, ITextField, ITextFieldOutputs, ITextFieldParameters, ITranslation, ITranslations, ITwoOptions, ITwoOptionsOutputs, ITwoOptionsParameters, ITwoOptionsProperty, IWholeNumberProperty, Lookup, MultiSelectOptionSet, NestedControlRenderer, OptionSet, TextField, ThemeWrapper, TwoOptions, useControl, useControlLabels, useControlSizing, useControlTheme, useControlThemeGenerator, useDateTime, useFocusIn, useInputBasedControl, useLookup, useMouseOver };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talxis/base-controls",
3
- "version": "1.2504.2",
3
+ "version": "1.2504.4",
4
4
  "description": "Set of React components that natively work with Power Apps Component Framework API's",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -70,6 +70,7 @@
70
70
  "@ag-grid-community/core": "^31.3.2",
71
71
  "@ag-grid-community/react": "^31.3.2",
72
72
  "@ag-grid-community/styles": "^31.3.2",
73
+ "@ag-grid-enterprise/row-grouping": "31.3.2",
73
74
  "@fluentui/react-migration-v8-v9": "^9.6.20",
74
75
  "color": "^4.2.3",
75
76
  "dayjs": "^1.11.10",
@@ -85,8 +86,8 @@
85
86
  "peerDependencies": {
86
87
  "react": "^16.8.6 || ^17.0.2",
87
88
  "react-dom": "^16.8.6 || ^17.0.2",
88
- "@talxis/react-components": "^1.2503.1",
89
- "@talxis/client-libraries": "^1.2503.8",
89
+ "@talxis/react-components": "^1.2503.4",
90
+ "@talxis/client-libraries": "^1.2504.1",
90
91
  "@fluentui/react": "<=8.121.5"
91
92
  }
92
93
  }
@@ -1,33 +0,0 @@
1
- import React__default from 'react';
2
-
3
- class ErrorBoundary extends React__default.Component {
4
- constructor(props) {
5
- super(props);
6
- this.state = { hasError: false };
7
- }
8
-
9
- static getDerivedStateFromError(error) {
10
- // Update state so the next render will show the fallback UI.
11
- return { hasError: true };
12
- }
13
-
14
- componentDidCatch(error, info) {
15
- console.error(error);
16
- }
17
-
18
- resetError() {
19
- this.setState({ hasError: false });
20
- }
21
-
22
- render() {
23
- if (this.state.hasError) {
24
- // You can render any custom fallback UI
25
- return this.props.fallback(() => this.resetError());
26
- }
27
-
28
- return this.props.children;
29
- }
30
- }
31
-
32
- export { ErrorBoundary };
33
- //# sourceMappingURL=ErrorBoundary.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorBoundary.js","sources":["../../../src/components/DatasetControl/ErrorBoundary.js"],"sourcesContent":["import React from 'react';\n\nexport class ErrorBoundary extends React.Component {\n constructor(props) {\n super(props);\n this.state = { hasError: false };\n }\n \n static getDerivedStateFromError(error) {\n // Update state so the next render will show the fallback UI.\n return { hasError: true };\n }\n \n componentDidCatch(error, info) {\n console.error(error);\n }\n\n resetError() {\n this.setState({ hasError: false });\n }\n \n render() {\n if (this.state.hasError) {\n // You can render any custom fallback UI\n return this.props.fallback(() => this.resetError());\n }\n \n return this.props.children;\n }\n }"],"names":["React"],"mappings":";;AAEO,MAAM,aAAa,SAASA,cAAK,CAAC,SAAS,CAAC;AACnD,IAAI,WAAW,CAAC,KAAK,EAAE;AACvB,MAAM,KAAK,CAAC,KAAK,CAAC,CAAC;AACnB,MAAM,IAAI,CAAC,KAAK,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AACvC,KAAK;AACL;AACA,IAAI,OAAO,wBAAwB,CAAC,KAAK,EAAE;AAC3C;AACA,MAAM,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAChC,KAAK;AACL;AACA,IAAI,iBAAiB,CAAC,KAAK,EAAE,IAAI,EAAE;AACnC,QAAQ,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC7B,KAAK;AACL;AACA,IAAI,UAAU,GAAG;AACjB,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;AACzC,KAAK;AACL;AACA,IAAI,MAAM,GAAG;AACb,MAAM,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;AAC/B;AACA,QAAQ,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;AAC5D,OAAO;AACP;AACA,MAAM,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;AACjC,KAAK;AACL;;;;"}