@axinom/mosaic-ui 0.28.0 → 0.29.0-rc.7
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/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Buttons/CompositeButton/CompositeButton.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.models.d.ts +2 -2
- package/dist/components/ConfirmDialog/ConfirmDialog.models.d.ts.map +1 -1
- package/dist/components/DynamicDataList/DynamicDataList.d.ts +3 -3
- package/dist/components/DynamicDataList/DynamicDataList.d.ts.map +1 -1
- package/dist/components/DynamicDataList/DynamicDataList.model.d.ts +4 -3
- package/dist/components/DynamicDataList/DynamicDataList.model.d.ts.map +1 -1
- package/dist/components/DynamicDataList/DynamicListDataEntry/DynamicListDataEntry.d.ts +3 -2
- package/dist/components/DynamicDataList/DynamicListDataEntry/DynamicListDataEntry.d.ts.map +1 -1
- package/dist/components/DynamicDataList/DynamicListDataEntry/Renderers/createSelectRenderer/createSelectRenderer.d.ts +1 -1
- package/dist/components/DynamicDataList/DynamicListDataEntry/Renderers/createSelectRenderer/createSelectRenderer.d.ts.map +1 -1
- package/dist/components/DynamicDataList/DynamicListHeader/DynamicListHeader.d.ts +3 -2
- package/dist/components/DynamicDataList/DynamicListHeader/DynamicListHeader.d.ts.map +1 -1
- package/dist/components/DynamicDataList/DynamicListRow/DynamicListRow.d.ts +3 -2
- package/dist/components/DynamicDataList/DynamicListRow/DynamicListRow.d.ts.map +1 -1
- package/dist/components/EmptyStation/EmptyStation.d.ts +1 -1
- package/dist/components/EmptyStation/EmptyStation.d.ts.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +3 -2
- package/dist/components/Explorer/Explorer.d.ts.map +1 -1
- package/dist/components/Explorer/Explorer.model.d.ts +4 -3
- package/dist/components/Explorer/Explorer.model.d.ts.map +1 -1
- package/dist/components/Explorer/InMemoryDataProvider.d.ts +2 -2
- package/dist/components/Explorer/InMemoryDataProvider.d.ts.map +1 -1
- package/dist/components/Explorer/NavigationExplorer/NavigationExplorer.d.ts +2 -2
- package/dist/components/Explorer/NavigationExplorer/NavigationExplorer.d.ts.map +1 -1
- package/dist/components/Explorer/SelectionExplorer/SelectionExplorer.d.ts +2 -2
- package/dist/components/Explorer/SelectionExplorer/SelectionExplorer.d.ts.map +1 -1
- package/dist/components/Explorer/useDataProvider.d.ts +3 -2
- package/dist/components/Explorer/useDataProvider.d.ts.map +1 -1
- package/dist/components/Filters/Filter/Filter.d.ts +5 -3
- package/dist/components/Filters/Filter/Filter.d.ts.map +1 -1
- package/dist/components/Filters/Filters.d.ts +2 -2
- package/dist/components/Filters/Filters.d.ts.map +1 -1
- package/dist/components/Filters/Filters.model.d.ts +16 -9
- package/dist/components/Filters/Filters.model.d.ts.map +1 -1
- package/dist/components/Filters/SelectionTypes/SearcheableOptionsFilter/SearcheableOptionsFilter.d.ts +12 -0
- package/dist/components/Filters/SelectionTypes/SearcheableOptionsFilter/SearcheableOptionsFilter.d.ts.map +1 -0
- package/dist/components/FormElements/DynamicDataListControl/DynamicDataListControl.d.ts +3 -2
- package/dist/components/FormElements/DynamicDataListControl/DynamicDataListControl.d.ts.map +1 -1
- package/dist/components/FormElements/DynamicDataListControl/DynamicDataListField.d.ts +2 -1
- package/dist/components/FormElements/DynamicDataListControl/DynamicDataListField.d.ts.map +1 -1
- package/dist/components/FormElements/FormElementContainer/FormElementContainer.d.ts +1 -1
- package/dist/components/FormElements/FormElementContainer/FormElementContainer.d.ts.map +1 -1
- package/dist/components/FormElements/GenericField/GenericField.d.ts +1 -1
- package/dist/components/FormElements/GenericField/GenericField.d.ts.map +1 -1
- package/dist/components/FormElements/Select/Select.d.ts.map +1 -1
- package/dist/components/FormElements/SingleLineText/SingleLineText.d.ts.map +1 -1
- package/dist/components/FormElements/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/FormStation/Create/Create.d.ts +3 -2
- package/dist/components/FormStation/Create/Create.d.ts.map +1 -1
- package/dist/components/FormStation/Details/Details.d.ts +3 -2
- package/dist/components/FormStation/Details/Details.d.ts.map +1 -1
- package/dist/components/FormStation/FormStation.d.ts +4 -3
- package/dist/components/FormStation/FormStation.d.ts.map +1 -1
- package/dist/components/FormStation/FormStation.models.d.ts +2 -2
- package/dist/components/FormStation/FormStation.models.d.ts.map +1 -1
- package/dist/components/FormStation/SaveOnNavigate/SaveOnNavigate.d.ts.map +1 -1
- package/dist/components/FormStation/SaveOnNavigate/handleNavigationAttempt.d.ts +4 -0
- package/dist/components/FormStation/SaveOnNavigate/handleNavigationAttempt.d.ts.map +1 -0
- package/dist/components/Hub/Hub.d.ts.map +1 -1
- package/dist/components/Hub/Tile/Tile.d.ts.map +1 -1
- package/dist/components/Hub/Tile/Tile.model.d.ts +2 -0
- package/dist/components/Hub/Tile/Tile.model.d.ts.map +1 -1
- package/dist/components/List/List.d.ts +3 -2
- package/dist/components/List/List.d.ts.map +1 -1
- package/dist/components/List/List.model.d.ts +2 -4
- package/dist/components/List/List.model.d.ts.map +1 -1
- package/dist/components/List/List.stories.helper.d.ts +2 -1
- package/dist/components/List/List.stories.helper.d.ts.map +1 -1
- package/dist/components/List/ListHeader/ListHeader.d.ts +3 -2
- package/dist/components/List/ListHeader/ListHeader.d.ts.map +1 -1
- package/dist/components/List/ListRow/ListRow.d.ts +3 -2
- package/dist/components/List/ListRow/ListRow.d.ts.map +1 -1
- package/dist/components/List/ListRow/ListRowLoader.d.ts +3 -2
- package/dist/components/List/ListRow/ListRowLoader.d.ts.map +1 -1
- package/dist/components/List/ListRow/Renderers/DateRenderer/DateRenderer.d.ts +1 -1
- package/dist/components/List/ListRow/Renderers/DateRenderer/DateRenderer.d.ts.map +1 -1
- package/dist/components/List/ListRow/Renderers/ExternalLinkRenderer/ExternalLinkRenderer.d.ts +3 -2
- package/dist/components/List/ListRow/Renderers/ExternalLinkRenderer/ExternalLinkRenderer.d.ts.map +1 -1
- package/dist/components/List/ListRow/Renderers/StateRenderer/StateRenderer.d.ts +2 -1
- package/dist/components/List/ListRow/Renderers/StateRenderer/StateRenderer.d.ts.map +1 -1
- package/dist/components/List/ListRow/Renderers/TimestampRenderer/TimestampRenderer.d.ts +1 -1
- package/dist/components/List/ListRow/Renderers/TimestampRenderer/TimestampRenderer.d.ts.map +1 -1
- package/dist/components/Message/Message.d.ts +1 -1
- package/dist/components/Message/Message.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.model.d.ts +1 -1
- package/dist/components/ProgressBar/ProgressBar.model.d.ts.map +1 -1
- package/dist/components/Utils/Postgraphile/CreateConnectionRenderer.d.ts +1 -1
- package/dist/components/Utils/Postgraphile/CreateConnectionRenderer.d.ts.map +1 -1
- package/dist/components/Utils/Postgraphile/FilterTransformer.d.ts +2 -2
- package/dist/components/Utils/Postgraphile/FilterTransformer.d.ts.map +1 -1
- package/dist/components/Utils/Postgraphile/SortTransformer.d.ts +3 -2
- package/dist/components/Utils/Postgraphile/SortTransformer.d.ts.map +1 -1
- package/dist/components/Utils/Postgraphile/UpdateGQLFragmentGenerator.d.ts +2 -2
- package/dist/components/Utils/Postgraphile/UpdateGQLFragmentGenerator.d.ts.map +1 -1
- package/dist/components/Utils/Transformers/Timestamp.d.ts +1 -1
- package/dist/components/Utils/Transformers/Timestamp.d.ts.map +1 -1
- package/dist/components/models.d.ts +3 -6
- package/dist/components/models.d.ts.map +1 -1
- package/dist/helpers/storybook.d.ts +22 -1
- package/dist/helpers/storybook.d.ts.map +1 -1
- package/dist/helpers/testing.d.ts.map +1 -1
- package/dist/helpers/utils.d.ts +2 -2
- package/dist/helpers/utils.d.ts.map +1 -1
- package/dist/hooks/models.d.ts +2 -2
- package/dist/hooks/models.d.ts.map +1 -1
- package/dist/hooks/useReactRouterPause/useReactRouterPause.d.ts +1 -1
- package/dist/hooks/useReactRouterPause/useReactRouterPause.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +3 -18
- package/dist/index.js +3 -18
- package/dist/types/data.d.ts +4 -0
- package/dist/types/data.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/ui-config.d.ts +6 -6
- package/dist/types/ui-config.d.ts.map +1 -1
- package/dist/utils/ErrorTypeToStationError.d.ts +1 -1
- package/dist/utils/ErrorTypeToStationError.d.ts.map +1 -1
- package/package.json +30 -24
- package/src/common/{assett-error.spec.ts → assert-error.spec.ts} +6 -7
- package/src/components/Accordion/Accordion.stories.tsx +78 -71
- package/src/components/Accordion/Accordion.tsx +27 -16
- package/src/components/Actions/Action/Action.spec.tsx +6 -6
- package/src/components/Actions/Actions.stories.tsx +103 -148
- package/src/components/Buttons/CompositeButton/CompositeButton.scss +7 -2
- package/src/components/Buttons/CompositeButton/CompositeButton.tsx +3 -1
- package/src/components/DynamicDataList/DynamicDataList.model.ts +2 -1
- package/src/components/DynamicDataList/DynamicDataList.tsx +2 -2
- package/src/components/DynamicDataList/DynamicListDataEntry/DynamicListDataEntry.tsx +3 -3
- package/src/components/DynamicDataList/DynamicListDataEntry/Renderers/createSelectRenderer/createSelectRenderer.tsx +5 -0
- package/src/components/DynamicDataList/DynamicListHeader/DynamicListHeader.tsx +3 -2
- package/src/components/DynamicDataList/DynamicListRow/DynamicListRow.spec.tsx +1 -1
- package/src/components/DynamicDataList/DynamicListRow/DynamicListRow.tsx +3 -3
- package/src/components/EmptyStation/EmptyStation.stories.tsx +127 -46
- package/src/components/Explorer/Explorer.model.ts +2 -1
- package/src/components/Explorer/Explorer.spec.tsx +2 -1
- package/src/components/Explorer/Explorer.stories.tsx +17 -2
- package/src/components/Explorer/Explorer.tsx +3 -3
- package/src/components/Explorer/InMemoryDataProvider.spec.ts +2 -2
- package/src/components/Explorer/InMemoryDataProvider.ts +3 -6
- package/src/components/Explorer/NavigationExplorer/NavigationExplorer.spec.tsx +1 -1
- package/src/components/Explorer/NavigationExplorer/NavigationExplorer.tsx +3 -2
- package/src/components/Explorer/SelectionExplorer/SelectionExplorer.tsx +5 -2
- package/src/components/Explorer/useDataProvider.tsx +4 -3
- package/src/components/Filters/Filter/Filter.spec.tsx +51 -14
- package/src/components/Filters/Filter/Filter.tsx +81 -61
- package/src/components/Filters/Filters.model.ts +11 -1
- package/src/components/Filters/Filters.spec.tsx +43 -0
- package/src/components/Filters/Filters.stories.tsx +33 -18
- package/src/components/Filters/Filters.tsx +9 -2
- package/src/components/Filters/SelectionTypes/SearcheableOptionsFilter/SearcheableOptionsFilter.scss +44 -0
- package/src/components/Filters/SelectionTypes/SearcheableOptionsFilter/SearcheableOptionsFilter.tsx +70 -0
- package/src/components/FormElements/Checkbox/Checkbox.spec.tsx +6 -6
- package/src/components/FormElements/DateTimeField/DateTimeText.spec.tsx +3 -3
- package/src/components/FormElements/DynamicDataListControl/DynamicDataListControl.tsx +3 -2
- package/src/components/FormElements/DynamicDataListControl/DynamicDataListField.tsx +2 -1
- package/src/components/FormElements/Radio/Radio.spec.tsx +4 -10
- package/src/components/FormElements/Select/Select.spec.tsx +1 -1
- package/src/components/FormElements/Select/Select.tsx +2 -0
- package/src/components/FormElements/SingleLineText/SingleLineText.spec.tsx +3 -3
- package/src/components/FormElements/SingleLineText/SingleLineText.tsx +2 -0
- package/src/components/FormElements/Tags/Tags.spec.tsx +1 -1
- package/src/components/FormElements/TextArea/TextArea.spec.tsx +1 -1
- package/src/components/FormElements/TextArea/TextArea.tsx +2 -0
- package/src/components/FormStation/Create/Create.tsx +3 -2
- package/src/components/FormStation/Details/Details.tsx +6 -2
- package/src/components/FormStation/FormStation.spec.tsx +160 -4
- package/src/components/FormStation/FormStation.stories.tsx +77 -13
- package/src/components/FormStation/FormStation.tsx +4 -3
- package/src/components/FormStation/SaveOnNavigate/SaveOnNavigate.spec.tsx +96 -0
- package/src/components/FormStation/SaveOnNavigate/SaveOnNavigate.tsx +16 -36
- package/src/components/FormStation/SaveOnNavigate/handleNavigationAttempt.spec.ts +215 -0
- package/src/components/FormStation/SaveOnNavigate/handleNavigationAttempt.ts +44 -0
- package/src/components/Hub/Hub.stories.tsx +18 -1
- package/src/components/Hub/Hub.tsx +1 -0
- package/src/components/Hub/Tile/Tile.model.ts +2 -0
- package/src/components/Hub/Tile/Tile.scss +3 -9
- package/src/components/Hub/Tile/Tile.spec.tsx +1 -1
- package/src/components/Hub/Tile/Tile.tsx +11 -4
- package/src/components/Icons/Icons.stories.tsx +11 -168
- package/src/components/LandingPageTiles/LandingPageTiles.spec.tsx +2 -2
- package/src/components/LandingPageTiles/LandingPageTiles.stories.tsx +2 -2
- package/src/components/LandingPageTiles/TileLarge/TileLarge.spec.tsx +1 -1
- package/src/components/LandingPageTiles/TileSmall/TileSmall.spec.tsx +1 -1
- package/src/components/List/List.model.ts +2 -6
- package/src/components/List/List.spec.tsx +2 -1
- package/src/components/List/List.stories.helper.ts +2 -1
- package/src/components/List/List.tsx +2 -2
- package/src/components/List/ListHeader/ColumnLabel/ColumnLabel.spec.tsx +2 -2
- package/src/components/List/ListHeader/ListHeader.tsx +3 -2
- package/src/components/List/ListRow/ListRow.scss +8 -0
- package/src/components/List/ListRow/ListRow.spec.tsx +1 -0
- package/src/components/List/ListRow/ListRow.tsx +4 -2
- package/src/components/List/ListRow/ListRowLoader.tsx +4 -3
- package/src/components/List/ListRow/Renderers/BooleanDotRenderer/BooleanDotRenderer.spec.tsx +1 -1
- package/src/components/List/ListRow/Renderers/DateRenderer/DateRenderer.tsx +1 -1
- package/src/components/List/ListRow/Renderers/ExternalLinkRenderer/ExternalLinkRenderer.tsx +2 -1
- package/src/components/List/ListRow/Renderers/StateRenderer/StateRenderer.spec.tsx +2 -1
- package/src/components/List/ListRow/Renderers/StateRenderer/StateRenderer.tsx +2 -1
- package/src/components/List/ListRow/Renderers/TimestampRenderer/TimestampRenderer.tsx +1 -1
- package/src/components/Loaders/ImageLoader/ImageLoader.spec.tsx +1 -1
- package/src/components/NavigationAwareStation/NavigationAwareStation.spec.tsx +5 -5
- package/src/components/NavigationAwareStation/NavigationAwareStation.stories.tsx +1 -1
- package/src/components/PageHeader/PageHeader.spec.tsx +1 -1
- package/src/components/PageHeader/PageHeaderAction/PageHeaderAction.spec.tsx +8 -8
- package/src/components/Utils/Postgraphile/SortTransformer.ts +3 -2
- package/src/components/Utils/Postgraphile/getArrayDiff.ts +11 -8
- package/src/components/models.ts +1 -5
- package/src/docs/Intro.stories.mdx +28 -8
- package/src/docs/intro.scss +46 -0
- package/src/helpers/storybook.tsx +34 -1
- package/src/helpers/testing.ts +5 -8
- package/src/hooks/useValueOrOnDemand/useValueOrOnDemand.spec.tsx +3 -3
- package/src/index.ts +1 -0
- package/src/types/data.ts +6 -0
- package/src/types/index.ts +1 -0
- package/src/utils/ErrorTypeToStationError.spec.tsx +1 -1
- package/src/docs/HowToBuildAWorkflow.stories.mdx +0 -7
- package/src/docs/Primary Components/Stations/Details.stories.mdx +0 -27
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseFormControl } from '../Form.models';
|
|
3
|
-
export
|
|
3
|
+
export type GenericFieldProps = BaseFormControl & {
|
|
4
4
|
/** Height of the label (default: 50px) */
|
|
5
5
|
labelHeight?: string;
|
|
6
6
|
stickyLabel?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericField.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/GenericField/GenericField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAIjD,
|
|
1
|
+
{"version":3,"file":"GenericField.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/GenericField/GenericField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAIjD,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG;IAChD,0CAA0C;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA0BpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/Select/Select.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAInE,MAAM,WAAW,WAAY,SAAQ,eAAe,EAAE,gBAAgB;IACpE,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/C,iDAAiD;IACjD,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EAAE,CAAC;IAC/D,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2FAA2F;IAC3F,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/Select/Select.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAInE,MAAM,WAAW,WAAY,SAAQ,eAAe,EAAE,gBAAgB;IACpE,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/C,iDAAiD;IACjD,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EAAE,CAAC;IAC/D,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2FAA2F;IAC3F,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAgDxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingleLineText.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/SingleLineText/SingleLineText.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAIlE,MAAM,WAAW,mBAAoB,SAAQ,eAAe,EAAE,eAAe;IAC3E,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;IAEtC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/C,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wDAAwD;IACxD,YAAY,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC;CAC7B;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"SingleLineText.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/SingleLineText/SingleLineText.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;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,mDAAmD;IACnD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;CAC3D;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/TextArea/TextArea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAIjD,MAAM,WAAW,aAAc,SAAQ,eAAe;IACpD,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,wCAAwC;IACxC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IAC3D,gDAAgD;IAChD,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IACzD,mDAAmD;IACnD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;CAC3D;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA2C5C,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { Data } from '../../../types/data';
|
|
2
3
|
import { FormStationProps } from '../FormStation';
|
|
3
4
|
import { ActionHandler } from '../FormStation.models';
|
|
4
|
-
export
|
|
5
|
+
export type CreateProps<TValues extends Data, TSubmitResponse = unknown> = Omit<FormStationProps<TValues, TSubmitResponse>, 'actions' | 'onActionSelected' | 'alwaysShowActionsPanel' | 'defaultTitle' | 'titleProperty' | 'alwaysSubmitBeforeAction'> & {
|
|
5
6
|
/** The title of the station */
|
|
6
7
|
title: string;
|
|
7
8
|
/**
|
|
@@ -31,5 +32,5 @@ export declare type CreateProps<TValues, TSubmitResponse = unknown> = Omit<FormS
|
|
|
31
32
|
*
|
|
32
33
|
* `<Field name="title" label="Title" as={TextField} />`
|
|
33
34
|
*/
|
|
34
|
-
export declare const Create: <TValues, TSubmitResponse = unknown>(props: React.PropsWithChildren<CreateProps<TValues, TSubmitResponse>>) => JSX.Element;
|
|
35
|
+
export declare const Create: <TValues extends Data, TSubmitResponse = unknown>(props: React.PropsWithChildren<CreateProps<TValues, TSubmitResponse>>) => JSX.Element;
|
|
35
36
|
//# sourceMappingURL=Create.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/Create/Create.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAe,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,
|
|
1
|
+
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/Create/Create.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAe,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,MAAM,WAAW,CAAC,OAAO,SAAS,IAAI,EAAE,eAAe,GAAG,OAAO,IAAI,IAAI,CAC7E,gBAAgB,CAAC,OAAO,EAAE,eAAe,CAAC,EACxC,SAAS,GACT,kBAAkB,GAClB,wBAAwB,GACxB,cAAc,GACd,eAAe,GACf,0BAA0B,CAC7B,GAAG;IACF,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,SAAS,EAAE,aAAa,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;IAEnD;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM,8HAEhB,WA+BF,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { Data } from '../../../types/data';
|
|
2
3
|
import { FormStationProps } from '../FormStation';
|
|
3
|
-
export
|
|
4
|
+
export type DetailsProps<TValues extends Data, TSubmitResponse = unknown> = Omit<FormStationProps<TValues, TSubmitResponse>, 'cancelNavigationUrl' | 'alwaysSubmitBeforeAction'>;
|
|
4
5
|
/**
|
|
5
6
|
* This component is the basic building block for 'details' stations in the CMS.
|
|
6
7
|
*
|
|
@@ -14,5 +15,5 @@ export declare type DetailsProps<TValues, TSubmitResponse = unknown> = Omit<Form
|
|
|
14
15
|
* In addition, it allows the definition of `actions`, which will be presented to the user in the appropriate panel.
|
|
15
16
|
* The component uses the `onActionSelected` callback to notify the application when an action needs to be executed by the application.
|
|
16
17
|
*/
|
|
17
|
-
export declare const Details: <TValues, TSubmitResponse = unknown>(props: React.PropsWithChildren<DetailsProps<TValues, TSubmitResponse>>) => JSX.Element;
|
|
18
|
+
export declare const Details: <TValues extends Data, TSubmitResponse = unknown>(props: React.PropsWithChildren<DetailsProps<TValues, TSubmitResponse>>) => JSX.Element;
|
|
18
19
|
//# sourceMappingURL=Details.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/Details/Details.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAe,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,
|
|
1
|
+
{"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/Details/Details.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAe,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,MAAM,YAAY,CACtB,OAAO,SAAS,IAAI,EACpB,eAAe,GAAG,OAAO,IACvB,IAAI,CACN,gBAAgB,CAAC,OAAO,EAAE,eAAe,CAAC,EAC1C,qBAAqB,GAAG,0BAA0B,CACnD,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,OAAO,+HAEjB,WAMF,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { FormikHelpers, FormikValues } from 'formik';
|
|
2
2
|
import React, { PropsWithChildren } from 'react';
|
|
3
3
|
import { OptionalObjectSchema } from 'yup/lib/object';
|
|
4
|
+
import { Data } from '../../types/data';
|
|
4
5
|
import { StationMessage } from '../models';
|
|
5
6
|
import { FormActionData, InitialFormData } from './FormStation.models';
|
|
6
|
-
export
|
|
7
|
+
export type ObjectSchemaDefinition<T extends Data | null = any> = {
|
|
7
8
|
[field in keyof T]: any;
|
|
8
9
|
};
|
|
9
|
-
export interface FormStationProps<TValues = FormikValues, TSubmitResponse = unknown> {
|
|
10
|
+
export interface FormStationProps<TValues extends Data = FormikValues, TSubmitResponse = unknown> {
|
|
10
11
|
/** name of the property on the form that holds the title */
|
|
11
12
|
titleProperty?: keyof TValues;
|
|
12
13
|
/** fallback title if no value can be determined */
|
|
@@ -54,5 +55,5 @@ export interface FormStationProps<TValues = FormikValues, TSubmitResponse = unkn
|
|
|
54
55
|
/** CSS Class name for additional styles */
|
|
55
56
|
className?: string;
|
|
56
57
|
}
|
|
57
|
-
export declare const FormStation: <TValues, TSubmitResponse = unknown>({ titleProperty, defaultTitle, subtitle, children, alwaysShowActionsPanel, actions, actionsWidth, cancelNavigationUrl, initialData, saveData, validationSchema, infoPanel, edgeToEdgeContent, alwaysSubmitBeforeAction, stationMessage, className, }: React.PropsWithChildren<FormStationProps<TValues, TSubmitResponse>>) => JSX.Element;
|
|
58
|
+
export declare const FormStation: <TValues extends Data, TSubmitResponse = unknown>({ titleProperty, defaultTitle, subtitle, children, alwaysShowActionsPanel, actions, actionsWidth, cancelNavigationUrl, initialData, saveData, validationSchema, infoPanel, edgeToEdgeContent, alwaysSubmitBeforeAction, stationMessage, className, }: React.PropsWithChildren<FormStationProps<TValues, TSubmitResponse>>) => JSX.Element;
|
|
58
59
|
//# sourceMappingURL=FormStation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormStation.d.ts","sourceRoot":"","sources":["../../../src/components/FormStation/FormStation.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,aAAa,EACb,YAAY,EAEb,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,EACZ,iBAAiB,EAMlB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"FormStation.d.ts","sourceRoot":"","sources":["../../../src/components/FormStation/FormStation.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,aAAa,EACb,YAAY,EAEb,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,EACZ,iBAAiB,EAMlB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB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;IACf,qCAAqC;IACrC,WAAW,EAAE,eAAe,CAAC,OAAO,CAAC;IACrC,+BAA+B;IAC/B,aAAa,EAAE,aAAa,CAAC,OAAO,CAAC,KAClC,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC;IACrC,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAcD,eAAO,MAAM,WAAW,kXAmBpB,WA0KH,CAAC"}
|
|
@@ -26,9 +26,9 @@ export interface InitialFormData<T> {
|
|
|
26
26
|
* @param values The current values of the form.
|
|
27
27
|
* @param submitResponse The value returned by the form submission (in case the form was submitted).
|
|
28
28
|
*/
|
|
29
|
-
export
|
|
29
|
+
export type ActionHandler<TValues = FormikValues, TSubmitResponse = unknown> = (stationData: {
|
|
30
30
|
values: TValues;
|
|
31
31
|
submitResponse: TSubmitResponse | undefined;
|
|
32
32
|
}) => Promise<ErrorType | undefined | void> | ErrorType | undefined | void;
|
|
33
|
-
export
|
|
33
|
+
export type FormActionData<TValues = FormikValues, TSubmitResponse = unknown> = ActionData<ActionHandler<TValues, TSubmitResponse>>;
|
|
34
34
|
//# sourceMappingURL=FormStation.models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormStation.models.d.ts","sourceRoot":"","sources":["../../../src/components/FormStation/FormStation.models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,yDAAyD;IACzD,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IAChB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"FormStation.models.d.ts","sourceRoot":"","sources":["../../../src/components/FormStation/FormStation.models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,yDAAyD;IACzD,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IAChB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,MAAM,aAAa,CACvB,OAAO,GAAG,YAAY,EACtB,eAAe,GAAG,OAAO,IACvB,CAAC,WAAW,EAAE;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,eAAe,GAAG,SAAS,CAAC;CAC7C,KAAK,OAAO,CAAC,SAAS,GAAG,SAAS,GAAG,IAAI,CAAC,GAAG,SAAS,GAAG,SAAS,GAAG,IAAI,CAAC;AAE3E,MAAM,MAAM,cAAc,CACxB,OAAO,GAAG,YAAY,EACtB,eAAe,GAAG,OAAO,IACvB,UAAU,CAAC,aAAa,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveOnNavigate.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/SaveOnNavigate/SaveOnNavigate.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SaveOnNavigate.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/SaveOnNavigate/SaveOnNavigate.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,UAAU,mBAAmB;IAC3B,0FAA0F;IAC1F,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuBxD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NavigationAPI } from '../../../hooks';
|
|
3
|
+
export declare const handleNavigationAttempt: (navigation: NavigationAPI, dirty: boolean, isValid: boolean, submitForm: (() => Promise<void>) & (() => Promise<any>), isSubmitting: boolean, canSubmit: boolean, setCanSubmit: React.Dispatch<React.SetStateAction<boolean>>) => Promise<void>;
|
|
4
|
+
//# sourceMappingURL=handleNavigationAttempt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleNavigationAttempt.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/SaveOnNavigate/handleNavigationAttempt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,eAAO,MAAM,uBAAuB,eACtB,aAAa,SAClB,OAAO,WACL,OAAO,cAEJ,CAAC,MAAM,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,gBAC1C,OAAO,aACV,OAAO,gBACJ,MAAM,QAAQ,CAAC,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC,KAC1D,QAAQ,IAAI,CA+Bd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hub.d.ts","sourceRoot":"","sources":["../../../src/components/Hub/Hub.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAItC,MAAM,WAAW,QAAQ;IACvB,yBAAyB;IACzB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"Hub.d.ts","sourceRoot":"","sources":["../../../src/components/Hub/Hub.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAItC,MAAM,WAAW,QAAQ;IACvB,yBAAyB;IACzB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAgDlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/components/Hub/Tile/Tile.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC;;;;;;;;GAQG;AACH,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/components/Hub/Tile/Tile.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC;;;;;;;;GAQG;AACH,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA2BpC,CAAC"}
|
|
@@ -4,6 +4,8 @@ export interface TileProps {
|
|
|
4
4
|
path: string;
|
|
5
5
|
/** Tile label */
|
|
6
6
|
label: string;
|
|
7
|
+
/** Tile sub label */
|
|
8
|
+
subLabel?: string;
|
|
7
9
|
/** Icon location or an react element of svg icon.
|
|
8
10
|
* if an react element of svg is passed, the correct style for two types ("small" and "large") will be applied accordingly
|
|
9
11
|
* The styles which don't want to be affected based on the tile type can be passed as inline styles.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.model.d.ts","sourceRoot":"","sources":["../../../../src/components/Hub/Tile/Tile.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,SAAS;IACxB,eAAe;IACf,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
1
|
+
{"version":3,"file":"Tile.model.d.ts","sourceRoot":"","sources":["../../../../src/components/Hub/Tile/Tile.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,SAAS;IACxB,eAAe;IACf,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { LocationDescriptor } from 'history';
|
|
2
2
|
import React, { PropsWithChildren } from 'react';
|
|
3
3
|
import { ActionData } from '..';
|
|
4
|
-
import {
|
|
4
|
+
import { Data } from '../../types/data';
|
|
5
|
+
import { Column, ItemSelectEventArgs, ListSelectMode, SortData } from './List.model';
|
|
5
6
|
export interface ListProps<T extends Data> {
|
|
6
7
|
/**
|
|
7
8
|
* Column definitions
|
|
@@ -89,5 +90,5 @@ export interface ListProps<T extends Data> {
|
|
|
89
90
|
* itemClicked={(item)=> {console.log(item)}}
|
|
90
91
|
* />
|
|
91
92
|
*/
|
|
92
|
-
export declare const List: <T>({ columns, data, isLoading, isError, errorMsg, handleRetry, minimumWidth, columnGap, rowGap, headerRowHeight, listRowHeight, listRowActionSize, headerRowActionSize, horizontalTextAlign, verticalTextAlign, keyProperty, showActionButton, loadingTriggerOffset, defaultSortOrder, selectionMode, enableSelectAll, onItemClicked, onItemSelected, onRequestMoreData, onSortChanged, onRetry, generateItemLink, className, inlineMenuActions, }: React.PropsWithChildren<ListProps<T>>) => JSX.Element;
|
|
93
|
+
export declare const List: <T extends Data>({ columns, data, isLoading, isError, errorMsg, handleRetry, minimumWidth, columnGap, rowGap, headerRowHeight, listRowHeight, listRowActionSize, headerRowActionSize, horizontalTextAlign, verticalTextAlign, keyProperty, showActionButton, loadingTriggerOffset, defaultSortOrder, selectionMode, enableSelectAll, onItemClicked, onItemSelected, onRequestMoreData, onSortChanged, onRetry, generateItemLink, className, inlineMenuActions, }: React.PropsWithChildren<ListProps<T>>) => JSX.Element;
|
|
93
94
|
//# sourceMappingURL=List.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../src/components/List/List.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC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-1,13 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { Data } from '../../types/data';
|
|
2
3
|
export declare enum ListSelectMode {
|
|
3
4
|
None = 0,
|
|
4
5
|
Single = 1,
|
|
5
6
|
Multi = 2
|
|
6
7
|
}
|
|
7
|
-
export
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
export declare type ColumnRenderer<T extends Data> =
|
|
8
|
+
export type ColumnRenderer<T extends Data> =
|
|
11
9
|
/**
|
|
12
10
|
* @param value Column data
|
|
13
11
|
* @param data Complete row data
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.model.d.ts","sourceRoot":"","sources":["../../../src/components/List/List.model.ts"],"names":[],"mappings":";AAAA,oBAAY,cAAc;IACxB,IAAI,IAAA;IACJ,MAAM,IAAA;IACN,KAAK,IAAA;CACN;
|
|
1
|
+
{"version":3,"file":"List.model.d.ts","sourceRoot":"","sources":["../../../src/components/List/List.model.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,oBAAY,cAAc;IACxB,IAAI,IAAA;IACJ,MAAM,IAAA;IACN,KAAK,IAAA;CACN;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,IAAI;AACvC;;;GAGG;AACH,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;AAE/C,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,MAAM,CAAC,CAAC,SAAS,IAAI;IACpC,0FAA0F;IAC1F,YAAY,EAAE,MAAM,CAAC,CAAC;IACtB,yDAAyD;IACzD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IAC3B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sDAAsD;IACtD,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,6EAA6E;IAC7E,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED,MAAM,WAAW,SAAS;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,QAAQ,CAAC,CAAC,SAAS,IAAI;IACtC,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,CAAC,CAAC;CACT;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,IAAI;IACjD,IAAI,EAAE,cAAc,GAAG,YAAY,CAAC;IACpC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;CACb;AAED,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB,sCAAsC;IACtC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChB,wBAAwB;IACxB,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;IAE1B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Data
|
|
1
|
+
import { Data } from '../../types/data';
|
|
2
|
+
import { SortData } from './List.model';
|
|
2
3
|
export declare const sortStoryData: <T extends Data>(sort: SortData<T>, data: T[]) => T[];
|
|
3
4
|
export declare function useLocalSort<T extends Data>(data: T[]): {
|
|
4
5
|
readonly listData: T[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.stories.helper.d.ts","sourceRoot":"","sources":["../../../src/components/List/List.stories.helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"List.stories.helper.d.ts","sourceRoot":"","sources":["../../../src/components/List/List.stories.helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,eAAO,MAAM,aAAa,uDAiBzB,CAAC;AAEF,wBAAgB,YAAY,CAAC,CAAC,SAAS,IAAI,EACzC,IAAI,EAAE,CAAC,EAAE,GACR;IACD,QAAQ,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC;IACvB,QAAQ,CAAC,kBAAkB,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CAC1D,CASA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Data } from '../../../types/data';
|
|
3
|
+
import { Column, SortData } from '../List.model';
|
|
3
4
|
export interface ListHeaderProps<T extends Data> {
|
|
4
5
|
/** Column definitions */
|
|
5
6
|
columns: Column<T>[];
|
|
@@ -44,5 +45,5 @@ export interface ListHeaderProps<T extends Data> {
|
|
|
44
45
|
* verticalTextAlign={'center'}
|
|
45
46
|
* />
|
|
46
47
|
*/
|
|
47
|
-
export declare const ListHeader: <T>({ columns, columnSizes, columnGap, rowHeight, actionSize, horizontalTextAlign, verticalTextAlign, itemSelected, sortData, showItemCheckbox, isCheckboxDisabled, onCheckboxToggled, onSortChanged, className, }: React.PropsWithChildren<ListHeaderProps<T>>) => JSX.Element;
|
|
48
|
+
export declare const ListHeader: <T extends Data>({ columns, columnSizes, columnGap, rowHeight, actionSize, horizontalTextAlign, verticalTextAlign, itemSelected, sortData, showItemCheckbox, isCheckboxDisabled, onCheckboxToggled, onSortChanged, className, }: React.PropsWithChildren<ListHeaderProps<T>>) => JSX.Element;
|
|
48
49
|
//# sourceMappingURL=ListHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/List/ListHeader/ListHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"ListHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/List/ListHeader/ListHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAKjD,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,IAAI;IAC7C,yBAAyB;IACzB,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IACrB,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,8BAA8B;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,wBAAwB;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,2BAA2B;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,mBAAmB,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IACjD,iCAAiC;IACjC,iBAAiB,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IAC9C,2DAA2D;IAC3D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IACvB,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,kFAAkF;IAClF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oFAAoF;IACpF,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,gHAAgH;IAChH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC5C,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,mRAeoB,WAyC1C,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { LocationDescriptor } from 'history';
|
|
2
2
|
import React, { PropsWithChildren } from 'react';
|
|
3
|
+
import { Data } from '../../../types/data';
|
|
3
4
|
import { ActionData } from '../../Actions/Actions.models';
|
|
4
|
-
import { Column,
|
|
5
|
+
import { Column, ListSelectMode } from '../List.model';
|
|
5
6
|
export interface ListRowProps<T extends Data> {
|
|
6
7
|
/** Spacing between columns */
|
|
7
8
|
columnSizes: string;
|
|
@@ -63,5 +64,5 @@ export declare const setLocale: (locale: string) => void;
|
|
|
63
64
|
* verticalTextAlign={'center'}
|
|
64
65
|
* />
|
|
65
66
|
*/
|
|
66
|
-
export declare const ListRow: <T>({ columnSizes, columnGap, rowHeight, actionSize, horizontalTextAlign, verticalTextAlign, data, itemSelected, isTrigger, columns, selectionMode, showActionButton, showCheckMark, showItemCheckbox, onItemClicked, onItemSelected, onTriggered, isRowDisabled, inlineMenuActions, }: React.PropsWithChildren<ListRowProps<T>>) => JSX.Element;
|
|
67
|
+
export declare const ListRow: <T extends Data>({ columnSizes, columnGap, rowHeight, actionSize, horizontalTextAlign, verticalTextAlign, data, itemSelected, isTrigger, columns, selectionMode, showActionButton, showCheckMark, showItemCheckbox, onItemClicked, onItemSelected, onTriggered, isRowDisabled, inlineMenuActions, }: React.PropsWithChildren<ListRowProps<T>>) => JSX.Element;
|
|
67
68
|
//# sourceMappingURL=ListRow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListRow.d.ts","sourceRoot":"","sources":["../../../../src/components/List/ListRow/ListRow.tsx"],"names":[],"mappings":"AACA,O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IACxB,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,yDAAyD;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;wGAGoG;IACpG,aAAa,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC,CAAC;IAClE;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,4EAA4E;IAC5E,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,UAAU,EAAE,CAAC;CAC/C;AAMD,eAAO,MAAM,SAAS,WAAY,MAAM,KAAG,IAW1C,CAAC;AA6BF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,OAAO,oVAoBoB,WAyKvC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import { Column } from '..';
|
|
3
|
-
|
|
3
|
+
import { Data } from '../../../types/data';
|
|
4
|
+
export interface ListRowLoaderProps<T extends Data> {
|
|
4
5
|
/** Spacing between columns */
|
|
5
6
|
columnSizes: string;
|
|
6
7
|
/** Header row height */
|
|
@@ -10,5 +11,5 @@ export interface ListRowLoaderProps<T> {
|
|
|
10
11
|
/** The column definition */
|
|
11
12
|
columns: Column<T>[];
|
|
12
13
|
}
|
|
13
|
-
export declare const ListRowLoader: <T>({ columnSizes, columnGap, rowHeight, columns, }: React.PropsWithChildren<ListRowLoaderProps<T>>) => JSX.Element;
|
|
14
|
+
export declare const ListRowLoader: <T extends Data>({ columnSizes, columnGap, rowHeight, columns, }: React.PropsWithChildren<ListRowLoaderProps<T>>) => JSX.Element;
|
|
14
15
|
//# sourceMappingURL=ListRowLoader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListRowLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/List/ListRow/ListRowLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ListRowLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/List/ListRow/ListRowLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAI3C,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,IAAI;IAChD,8BAA8B;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,wBAAwB;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,sBAAsB;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,4BAA4B;IAC5B,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,uHAKoB,WAsC7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/List/ListRow/Renderers/DateRenderer/DateRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/List/ListRow/Renderers/DateRenderer/DateRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAGjD;;;;GAIG;AACH,eAAO,MAAM,YAAY,wBAAyB,OAAO,cAAY,MAMpE,CAAC"}
|
package/dist/components/List/ListRow/Renderers/ExternalLinkRenderer/ExternalLinkRenderer.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Data } from '../../../../../types/data';
|
|
2
|
+
import { ColumnRenderer } from '../../../List.model';
|
|
3
|
+
export type ExternalLinkResolver<T extends Data> = (
|
|
3
4
|
/** Row data */
|
|
4
5
|
item: T,
|
|
5
6
|
/** Whether or not the external icon is shown (default: true) */
|
package/dist/components/List/ListRow/Renderers/ExternalLinkRenderer/ExternalLinkRenderer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExternalLinkRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/List/ListRow/Renderers/ExternalLinkRenderer/ExternalLinkRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExternalLinkRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/List/ListRow/Renderers/ExternalLinkRenderer/ExternalLinkRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAGrD,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,IAAI,IAAI;AACjD,eAAe;AACf,IAAI,EAAE,CAAC;AACP,gEAAgE;AAChE,cAAc,CAAC,EAAE,OAAO,KACrB,MAAM,GAAG,SAAS,CAAC;AAExB;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,0BAA0B,oGAmCtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StateRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/List/ListRow/Renderers/StateRenderer/StateRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"StateRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/List/ListRow/Renderers/StateRenderer/StateRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGxE;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB,yBACzB,SAAS,yBACQ,OAAO,KAAK,MAAM,mCAUzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimestampRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/List/ListRow/Renderers/TimestampRenderer/TimestampRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TimestampRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/List/ListRow/Renderers/TimestampRenderer/TimestampRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAGjD,eAAO,MAAM,iBAAiB,wBACvB,OAAO,eAEX,MAMF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type MessageType = 'error' | 'info' | 'success' | 'warning';
|
|
3
3
|
export interface MessageProps {
|
|
4
4
|
/** Title of the Message */
|
|
5
5
|
title: string | React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/components/Message/Message.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,
|
|
1
|
+
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/components/Message/Message.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAGnE,MAAM,WAAW,YAAY;IAC3B,2BAA2B;IAC3B,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,uCAAuC;IACvC,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACrB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,2EAA2E;IAC3E,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;GAKG;AACH,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA6D1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressBar.model.d.ts","sourceRoot":"","sources":["../../../src/components/ProgressBar/ProgressBar.model.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"ProgressBar.model.d.ts","sourceRoot":"","sources":["../../../src/components/ProgressBar/ProgressBar.model.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG,eAAe,CAAC;AACnE,oBAAY,iBAAiB;IAC3B,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED,UAAU,WAAW;IACnB;;OAEG;IACH,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
interface Connection {
|
|
2
2
|
nodes: unknown[];
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
type SelectorFunction<T> = (value: T, index: number, array: T[]) => unknown;
|
|
5
5
|
/**
|
|
6
6
|
* Creates a renderer that will loop through each `node` on the value,
|
|
7
7
|
* and adds the string representations into a comma separated string.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateConnectionRenderer.d.ts","sourceRoot":"","sources":["../../../../src/components/Utils/Postgraphile/CreateConnectionRenderer.ts"],"names":[],"mappings":"AAAA,UAAU,UAAU;IAClB,KAAK,EAAE,OAAO,EAAE,CAAC;CAClB;AAED,
|
|
1
|
+
{"version":3,"file":"CreateConnectionRenderer.d.ts","sourceRoot":"","sources":["../../../../src/components/Utils/Postgraphile/CreateConnectionRenderer.ts"],"names":[],"mappings":"AAAA,UAAU,UAAU;IAClB,KAAK,EAAE,OAAO,EAAE,CAAC;CAClB;AAED,KAAK,gBAAgB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,OAAO,CAAC;AAE5E;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,UAAU,EAC3D,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,GAC7C,CAAC,GAAG,EAAE,OAAO,KAAK,MAAM,CAM1B"}
|
|
@@ -2,8 +2,8 @@ import { FilterValue, FilterValues } from '../../Filters/Filters.model';
|
|
|
2
2
|
interface StringKeyedObject {
|
|
3
3
|
[key: string]: unknown;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
6
|
-
|
|
5
|
+
export type FilterFunction = (value: FilterValue) => Record<string, unknown> | boolean;
|
|
6
|
+
type FilterMap<K> = {
|
|
7
7
|
[U in keyof K]: string | string[] | FilterFunction;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterTransformer.d.ts","sourceRoot":"","sources":["../../../../src/components/Utils/Postgraphile/FilterTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAExE,UAAU,iBAAiB;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,
|
|
1
|
+
{"version":3,"file":"FilterTransformer.d.ts","sourceRoot":"","sources":["../../../../src/components/Utils/Postgraphile/FilterTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAExE,UAAU,iBAAiB;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,cAAc,GAAG,CAC3B,KAAK,EAAE,WAAW,KACf,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC;AAEvC,KAAK,SAAS,CAAC,CAAC,IAAI;KACjB,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,cAAc;CACnD,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,0BAA0B,yCAC5B,aAAa,OAAO,CAAC,qCAyB/B,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Data } from '../../../types/data';
|
|
2
|
+
import { SortData } from '../../List/List.model';
|
|
2
3
|
/**
|
|
3
4
|
* Converts the column property name and order from lower case to snake case (all caps) as required by a Postgraphile backend.
|
|
4
5
|
* It will return `undefined` if the calculated value can not be found on the sortingEnum.
|
|
5
6
|
* @param sort Sorting data coming from `<Explorer />`
|
|
6
7
|
* @param sortingEnum Enumeration containing the values on your Postgraphile backend. Usually `{QueryName}OrderBy`.
|
|
7
8
|
*/
|
|
8
|
-
export declare const sortToPostGraphileOrderBy: <T, Y>(sort: SortData<Y> | undefined, sortingEnum: T) => T[keyof T][] | undefined;
|
|
9
|
+
export declare const sortToPostGraphileOrderBy: <T extends Data, Y>(sort: SortData<Y> | undefined, sortingEnum: T) => T[keyof T][] | undefined;
|
|
9
10
|
//# sourceMappingURL=SortTransformer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortTransformer.d.ts","sourceRoot":"","sources":["../../../../src/components/Utils/Postgraphile/SortTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SortTransformer.d.ts","sourceRoot":"","sources":["../../../../src/components/Utils/Postgraphile/SortTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,gGAsBrC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
type UpdateGQLFragmentGenerator<T> = <U, Y = undefined>(mutation: keyof T, args: CustomArgs<U>, result?: [keyof Y]) => string;
|
|
2
2
|
export interface UpdateGQLFragmentEnumInput {
|
|
3
3
|
type: 'enum';
|
|
4
4
|
value: unknown;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
type CustomArgs<T> = {
|
|
7
7
|
[P in keyof T]: T[P] extends (infer U)[] ? CustomArgs<U>[] : T[P] extends object ? CustomArgs<T[P]> : T[P] | UpdateGQLFragmentEnumInput;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateGQLFragmentGenerator.d.ts","sourceRoot":"","sources":["../../../../src/components/Utils/Postgraphile/UpdateGQLFragmentGenerator.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"UpdateGQLFragmentGenerator.d.ts","sourceRoot":"","sources":["../../../../src/components/Utils/Postgraphile/UpdateGQLFragmentGenerator.ts"],"names":[],"mappings":"AACA,KAAK,0BAA0B,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,EACpD,QAAQ,EAAE,MAAM,CAAC,EACjB,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,EACnB,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,KACf,MAAM,CAAC;AAEZ,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,KAAK,UAAU,CAAC,CAAC,IAAI;KAClB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GACpC,UAAU,CAAC,CAAC,CAAC,EAAE,GACf,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACnB,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAChB,CAAC,CAAC,CAAC,CAAC,GAAG,0BAA0B;CACtC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAC9C,CAAC,KACE,0BAA0B,CAAC,CAAC,CAAC,CAmCjC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TransformerFunction } from './TransformerFunction';
|
|
2
|
-
export
|
|
2
|
+
export type Timestamp = `${string}:${string}:${string}.${string}`;
|
|
3
3
|
export declare const TIMESTAMP_DEFAULT = "00:00:00.000";
|
|
4
4
|
/**
|
|
5
5
|
* Renders numeric seconds value as a timestamp
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timestamp.d.ts","sourceRoot":"","sources":["../../../../src/components/Utils/Transformers/Timestamp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,
|
|
1
|
+
{"version":3,"file":"Timestamp.d.ts","sourceRoot":"","sources":["../../../../src/components/Utils/Transformers/Timestamp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,MAAM,SAAS,GAAG,GAAG,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;AAClE,eAAO,MAAM,iBAAiB,iBAAiB,CAAC;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,EAAE,mBAAmB,CAAC,MAAM,EAAE,SAAS,CAkBzE,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,mBAAmB,CAAC,SAAS,EAAE,MAAM,CAQrE,CAAC"}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MessageBarProps } from './MessageBar';
|
|
3
|
-
export
|
|
3
|
+
export type StationError = Pick<MessageBarProps, 'title'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Optional body for the MessageBar
|
|
6
6
|
* If the body type is a 'string', body will be wrapped in a 'p' element.
|
|
7
7
|
*/
|
|
8
8
|
body?: string | React.ReactNode;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
11
|
-
/** Message type. */
|
|
12
|
-
type: Exclude<MessageBarProps['type'], 'error'>;
|
|
13
|
-
};
|
|
10
|
+
export type StationMessage = MessageBarProps;
|
|
14
11
|
/**
|
|
15
12
|
* Possible error options the engine will handle
|
|
16
13
|
*/
|
|
17
|
-
export
|
|
14
|
+
export type ErrorType = StationError | string | Object | Error;
|
|
18
15
|
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/components/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/components/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,GAAG;IAC1D;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC;AAC7C;;GAEG;AAEH,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC"}
|
|
@@ -30,7 +30,7 @@ export declare function getRandomArbitrary(min: number, max: number): number;
|
|
|
30
30
|
* Using Math.round() will give you a non-uniform distribution!
|
|
31
31
|
*/
|
|
32
32
|
export declare function getRandomInt(min: number, max: number): number;
|
|
33
|
-
export
|
|
33
|
+
export type Story = React.FC & {
|
|
34
34
|
story?: {
|
|
35
35
|
[key: string]: any;
|
|
36
36
|
name?: string;
|
|
@@ -44,4 +44,25 @@ export declare type Story = React.FC & {
|
|
|
44
44
|
};
|
|
45
45
|
export declare function randomDate(start?: Date, end?: Date): Date;
|
|
46
46
|
export declare function wait(ms: number): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* Generates a groups object for storybook controls. Used groups:
|
|
49
|
+
* @example
|
|
50
|
+
* createGroups({
|
|
51
|
+
* Storybook: [],
|
|
52
|
+
* Content: [],
|
|
53
|
+
* Behavior: [],
|
|
54
|
+
* Styling: [],
|
|
55
|
+
* })
|
|
56
|
+
* @param definition
|
|
57
|
+
* @returns
|
|
58
|
+
*/
|
|
59
|
+
export declare const createGroups: (definition: {
|
|
60
|
+
[key: string]: string[];
|
|
61
|
+
}) => {
|
|
62
|
+
[key: string]: {
|
|
63
|
+
table: {
|
|
64
|
+
category: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
47
68
|
//# sourceMappingURL=storybook.d.ts.map
|