@corva/ui 0.100.0-2 → 0.100.0-21
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/cjs-bundle/components/ColorPicker/ColorPicker.js +1 -1
- package/cjs-bundle/components/ColorPicker/ColorPicketUtils.js +1 -1
- package/cjs-bundle/components/ColorPicker/PaletteChromePicker/Palette/PaletteConstants.js +1 -1
- package/cjs-bundle/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
- package/cjs-bundle/components/FeedItem/components/Content.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/GenericDataCommentFeedItem.js +1 -0
- package/cjs-bundle/components/PadModeSelect/PadModeSelect.js +1 -1
- package/cjs-bundle/components/PadModeSelect/effects/useMenuItems.js +1 -1
- package/cjs-bundle/components/PadModeSelect/types.js +1 -1
- package/cjs-bundle/components/PadModeSelect/utils/selectMenuKey.js +1 -1
- package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeSidebarStyles.js +1 -1
- package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBox.js +1 -1
- package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -1
- package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxStyles.js +1 -1
- package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
- package/cjs-bundle/components/RealTimeValuesSidebar/SidebarTitle.js +1 -1
- package/cjs-bundle/componentsV2/Avatar/Avatar.js +1 -0
- package/cjs-bundle/componentsV2/Avatar/Avatar.scss.js +1 -0
- package/cjs-bundle/componentsV2/Avatar/constants.js +1 -0
- package/cjs-bundle/componentsV2/BadgeBase/BadgeBase.js +1 -0
- package/cjs-bundle/componentsV2/BadgeBase/BadgeBase.scss.js +1 -0
- package/cjs-bundle/componentsV2/BadgeCounter/BadgeCounter.js +1 -0
- package/cjs-bundle/componentsV2/BadgeDot/BadgeDot.js +1 -0
- package/cjs-bundle/componentsV2/BadgeDot/BadgeDot.scss.js +1 -0
- package/cjs-bundle/componentsV2/Button/Button.js +1 -1
- package/cjs-bundle/componentsV2/Button/Button.scss.js +1 -1
- package/cjs-bundle/componentsV2/ButtonIcon/ButtonIcon.js +1 -1
- package/cjs-bundle/componentsV2/ButtonIcon/ButtonIcon.scss.js +1 -1
- package/cjs-bundle/componentsV2/Chip/Chip.js +1 -1
- package/cjs-bundle/componentsV2/Chip/Chip.scss.js +1 -1
- package/cjs-bundle/componentsV2/ChipAlert/ChipAlert.js +1 -0
- package/cjs-bundle/componentsV2/ChipAlert/ChipAlert.scss.js +1 -0
- package/cjs-bundle/componentsV2/ChipIndicator/ChipIndicator.js +1 -0
- package/cjs-bundle/componentsV2/ChipIndicator/ChipIndicator.scss.js +1 -0
- package/cjs-bundle/componentsV2/Counter/Counter.js +1 -0
- package/cjs-bundle/componentsV2/Counter/Counter.scss.js +1 -0
- package/cjs-bundle/componentsV2/Menu/Menu.js +1 -0
- package/cjs-bundle/componentsV2/Menu/Menu.scss.js +1 -0
- package/cjs-bundle/componentsV2/Menu/MenuDivider/MenuDivider.js +1 -0
- package/cjs-bundle/componentsV2/Menu/MenuDivider/MenuDivider.scss.js +1 -0
- package/cjs-bundle/componentsV2/Menu/MenuGroup/MenuGroup.js +1 -0
- package/cjs-bundle/componentsV2/Menu/MenuGroup/MenuGroup.scss.js +1 -0
- package/cjs-bundle/componentsV2/Menu/MenuItem/MenuItem.js +1 -0
- package/cjs-bundle/componentsV2/Menu/MenuItem/MenuItem.scss.js +1 -0
- package/cjs-bundle/componentsV2/Modal/Modal.js +1 -0
- package/cjs-bundle/componentsV2/Modal/Modal.scss.js +1 -0
- package/cjs-bundle/componentsV2/Paper/Paper.js +1 -0
- package/cjs-bundle/componentsV2/Paper/Paper.scss.js +1 -0
- package/cjs-bundle/componentsV2/Popover/Popover.js +1 -1
- package/cjs-bundle/componentsV2/Popover/Popover.scss.js +1 -0
- package/cjs-bundle/componentsV2/TextEndTruncated/TextEndTruncated.js +1 -0
- package/cjs-bundle/componentsV2/TextEndTruncated/TextEndTruncated.scss.js +1 -0
- package/cjs-bundle/componentsV2/TextInput/TextInput.js +1 -1
- package/cjs-bundle/componentsV2/TextInput/TextInput.scss.js +1 -1
- package/cjs-bundle/componentsV2/TextMiddleTruncated/TextMiddleTruncated.js +1 -1
- package/cjs-bundle/componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js +1 -1
- package/cjs-bundle/componentsV2/ToggleButtons/ToggleButtons.js +1 -0
- package/cjs-bundle/componentsV2/ToggleButtons/ToggleButtons.scss.js +1 -0
- package/cjs-bundle/componentsV2/Tooltip/Tooltip.js +1 -1
- package/cjs-bundle/componentsV2/Tooltip/Tooltip.scss.js +1 -1
- package/cjs-bundle/componentsV2/index.js +1 -1
- package/cjs-bundle/constants/feed.js +1 -1
- package/cjs-bundle/icons/customIcons/icons/MoreApp.js +1 -1
- package/cjs-bundle/icons/customIcons/icons/SimulFrac.js +1 -1
- package/cjs-bundle/icons/customIcons/icons/ZipperFrac.js +1 -1
- package/cjs-bundle/utils/goalsConfig/goalsConfig.js +1 -1
- package/cjs-bundle/utils/metrics/metricsConfig.js +1 -1
- package/components/AdvancedSlider/AdvancedSlider.stories.d.ts.map +1 -1
- package/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/components/ColorPicker/ColorPicker.js +1 -1
- package/components/ColorPicker/ColorPicketUtils.d.ts.map +1 -1
- package/components/ColorPicker/ColorPicketUtils.js +1 -1
- package/components/ColorPicker/PaletteChromePicker/Palette/PaletteConstants.js +1 -1
- package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
- package/components/EChartsWrapper/ECharts.stories.d.ts +1 -0
- package/components/EChartsWrapper/ECharts.stories.d.ts.map +1 -1
- package/components/FeedItem/components/Content.d.ts.map +1 -1
- package/components/FeedItem/components/Content.js +1 -1
- package/components/FeedItem/feed.fixtures.d.ts +78 -0
- package/components/FeedItem/feedItemTypes/GenericDataCommentFeedItem.d.ts +25 -0
- package/components/FeedItem/feedItemTypes/GenericDataCommentFeedItem.d.ts.map +1 -0
- package/components/FeedItem/feedItemTypes/GenericDataCommentFeedItem.js +1 -0
- package/components/PadModeSelect/PadModeSelect.js +1 -1
- package/components/PadModeSelect/__tests__/useMenuItems.test.d.ts +2 -0
- package/components/PadModeSelect/__tests__/useMenuItems.test.d.ts.map +1 -0
- package/components/PadModeSelect/effects/useMenuItems.d.ts.map +1 -1
- package/components/PadModeSelect/effects/useMenuItems.js +1 -1
- package/components/PadModeSelect/types.d.ts +3 -1
- package/components/PadModeSelect/types.d.ts.map +1 -1
- package/components/PadModeSelect/types.js +1 -1
- package/components/PadModeSelect/utils/selectMenuKey.d.ts +3 -1
- package/components/PadModeSelect/utils/selectMenuKey.d.ts.map +1 -1
- package/components/PadModeSelect/utils/selectMenuKey.js +1 -1
- package/components/RealTimeValuesSidebar/RealTimeSidebarStyles.d.ts.map +1 -1
- package/components/RealTimeValuesSidebar/RealTimeSidebarStyles.js +1 -1
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBox.d.ts.map +1 -1
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBox.js +1 -1
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -1
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxStyles.d.ts +1 -1
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxStyles.d.ts.map +1 -1
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxStyles.js +1 -1
- package/components/RealTimeValuesSidebar/SidebarFooter.d.ts.map +1 -1
- package/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
- package/components/RealTimeValuesSidebar/SidebarTitle.d.ts.map +1 -1
- package/components/RealTimeValuesSidebar/SidebarTitle.js +1 -1
- package/components/Stepper/Step/styles.d.ts +1 -1
- package/componentsV2/Avatar/Avatar.d.ts +9 -0
- package/componentsV2/Avatar/Avatar.d.ts.map +1 -0
- package/componentsV2/Avatar/Avatar.js +1 -0
- package/componentsV2/Avatar/Avatar.scss.js +1 -0
- package/componentsV2/Avatar/Avatar.stories.d.ts +11 -0
- package/componentsV2/Avatar/Avatar.stories.d.ts.map +1 -0
- package/componentsV2/Avatar/constants.d.ts +5 -0
- package/componentsV2/Avatar/constants.d.ts.map +1 -0
- package/componentsV2/Avatar/constants.js +1 -0
- package/componentsV2/Avatar/index.d.ts +2 -0
- package/componentsV2/Avatar/index.d.ts.map +1 -0
- package/componentsV2/BadgeBase/BadgeBase.d.ts +18 -0
- package/componentsV2/BadgeBase/BadgeBase.d.ts.map +1 -0
- package/componentsV2/BadgeBase/BadgeBase.js +1 -0
- package/componentsV2/BadgeBase/BadgeBase.scss.js +1 -0
- package/componentsV2/BadgeBase/index.d.ts +2 -0
- package/componentsV2/BadgeBase/index.d.ts.map +1 -0
- package/componentsV2/BadgeCounter/BadgeCounter.d.ts +35 -0
- package/componentsV2/BadgeCounter/BadgeCounter.d.ts.map +1 -0
- package/componentsV2/BadgeCounter/BadgeCounter.js +1 -0
- package/componentsV2/BadgeCounter/BadgeCounter.stories.d.ts +10 -0
- package/componentsV2/BadgeCounter/BadgeCounter.stories.d.ts.map +1 -0
- package/componentsV2/BadgeCounter/index.d.ts +2 -0
- package/componentsV2/BadgeCounter/index.d.ts.map +1 -0
- package/componentsV2/BadgeDot/BadgeDot.d.ts +26 -0
- package/componentsV2/BadgeDot/BadgeDot.d.ts.map +1 -0
- package/componentsV2/BadgeDot/BadgeDot.js +1 -0
- package/componentsV2/BadgeDot/BadgeDot.scss.js +1 -0
- package/componentsV2/BadgeDot/BadgeDot.stories.d.ts +10 -0
- package/componentsV2/BadgeDot/BadgeDot.stories.d.ts.map +1 -0
- package/componentsV2/BadgeDot/index.d.ts +2 -0
- package/componentsV2/BadgeDot/index.d.ts.map +1 -0
- package/componentsV2/Button/Button.d.ts +2 -0
- package/componentsV2/Button/Button.d.ts.map +1 -1
- package/componentsV2/Button/Button.js +1 -1
- package/componentsV2/Button/Button.scss.js +1 -1
- package/componentsV2/ButtonIcon/ButtonIcon.d.ts.map +1 -1
- package/componentsV2/ButtonIcon/ButtonIcon.js +1 -1
- package/componentsV2/ButtonIcon/ButtonIcon.scss.js +1 -1
- package/componentsV2/Chip/Chip.d.ts +19 -3
- package/componentsV2/Chip/Chip.d.ts.map +1 -1
- package/componentsV2/Chip/Chip.js +1 -1
- package/componentsV2/Chip/Chip.scss.js +1 -1
- package/componentsV2/Chip/Chip.stories.d.ts +1 -1
- package/componentsV2/Chip/Chip.stories.d.ts.map +1 -1
- package/componentsV2/ChipAlert/ChipAlert.d.ts +21 -0
- package/componentsV2/ChipAlert/ChipAlert.d.ts.map +1 -0
- package/componentsV2/ChipAlert/ChipAlert.js +1 -0
- package/componentsV2/ChipAlert/ChipAlert.scss.js +1 -0
- package/componentsV2/ChipAlert/ChipAlert.stories.d.ts +10 -0
- package/componentsV2/ChipAlert/ChipAlert.stories.d.ts.map +1 -0
- package/componentsV2/ChipAlert/index.d.ts +2 -0
- package/componentsV2/ChipAlert/index.d.ts.map +1 -0
- package/componentsV2/ChipIndicator/ChipIndicator.d.ts +12 -0
- package/componentsV2/ChipIndicator/ChipIndicator.d.ts.map +1 -0
- package/componentsV2/ChipIndicator/ChipIndicator.js +1 -0
- package/componentsV2/ChipIndicator/ChipIndicator.scss.js +1 -0
- package/componentsV2/ChipIndicator/ChipIndicator.stories.d.ts +9 -0
- package/componentsV2/ChipIndicator/ChipIndicator.stories.d.ts.map +1 -0
- package/componentsV2/ChipIndicator/index.d.ts +2 -0
- package/componentsV2/ChipIndicator/index.d.ts.map +1 -0
- package/componentsV2/Counter/Counter.d.ts +18 -0
- package/componentsV2/Counter/Counter.d.ts.map +1 -0
- package/componentsV2/Counter/Counter.js +1 -0
- package/componentsV2/Counter/Counter.scss.js +1 -0
- package/componentsV2/Counter/Counter.stories.d.ts +13 -0
- package/componentsV2/Counter/Counter.stories.d.ts.map +1 -0
- package/componentsV2/Counter/index.d.ts +2 -0
- package/componentsV2/Counter/index.d.ts.map +1 -0
- package/componentsV2/Menu/Menu.d.ts +25 -0
- package/componentsV2/Menu/Menu.d.ts.map +1 -0
- package/componentsV2/Menu/Menu.js +1 -0
- package/componentsV2/Menu/Menu.scss.js +1 -0
- package/componentsV2/Menu/Menu.stories.d.ts +14 -0
- package/componentsV2/Menu/Menu.stories.d.ts.map +1 -0
- package/componentsV2/Menu/MenuDivider/MenuDivider.d.ts +6 -0
- package/componentsV2/Menu/MenuDivider/MenuDivider.d.ts.map +1 -0
- package/componentsV2/Menu/MenuDivider/MenuDivider.js +1 -0
- package/componentsV2/Menu/MenuDivider/MenuDivider.scss.js +1 -0
- package/componentsV2/Menu/MenuDivider/index.d.ts +2 -0
- package/componentsV2/Menu/MenuDivider/index.d.ts.map +1 -0
- package/componentsV2/Menu/MenuGroup/MenuGroup.d.ts +9 -0
- package/componentsV2/Menu/MenuGroup/MenuGroup.d.ts.map +1 -0
- package/componentsV2/Menu/MenuGroup/MenuGroup.js +1 -0
- package/componentsV2/Menu/MenuGroup/MenuGroup.scss.js +1 -0
- package/componentsV2/Menu/MenuGroup/index.d.ts +2 -0
- package/componentsV2/Menu/MenuGroup/index.d.ts.map +1 -0
- package/componentsV2/Menu/MenuItem/MenuItem.d.ts +14 -0
- package/componentsV2/Menu/MenuItem/MenuItem.d.ts.map +1 -0
- package/componentsV2/Menu/MenuItem/MenuItem.js +1 -0
- package/componentsV2/Menu/MenuItem/MenuItem.scss.js +1 -0
- package/componentsV2/Menu/MenuItem/index.d.ts +2 -0
- package/componentsV2/Menu/MenuItem/index.d.ts.map +1 -0
- package/componentsV2/Menu/index.d.ts +2 -0
- package/componentsV2/Menu/index.d.ts.map +1 -0
- package/componentsV2/Modal/Modal.d.ts +47 -0
- package/componentsV2/Modal/Modal.d.ts.map +1 -0
- package/componentsV2/Modal/Modal.js +1 -0
- package/componentsV2/Modal/Modal.scss.js +1 -0
- package/componentsV2/Modal/Modal.stories.d.ts +12 -0
- package/componentsV2/Modal/Modal.stories.d.ts.map +1 -0
- package/componentsV2/Modal/index.d.ts +2 -0
- package/componentsV2/Modal/index.d.ts.map +1 -0
- package/componentsV2/Paper/Paper.d.ts +11 -0
- package/componentsV2/Paper/Paper.d.ts.map +1 -0
- package/componentsV2/Paper/Paper.js +1 -0
- package/componentsV2/Paper/Paper.scss.js +1 -0
- package/componentsV2/Paper/Paper.stories.d.ts +8 -0
- package/componentsV2/Paper/Paper.stories.d.ts.map +1 -0
- package/componentsV2/Paper/index.d.ts +2 -0
- package/componentsV2/Paper/index.d.ts.map +1 -0
- package/componentsV2/Popover/Popover.d.ts +14 -6
- package/componentsV2/Popover/Popover.d.ts.map +1 -1
- package/componentsV2/Popover/Popover.js +1 -1
- package/componentsV2/Popover/Popover.scss.js +1 -0
- package/componentsV2/Popover/Popover.stories.d.ts +2 -0
- package/componentsV2/Popover/Popover.stories.d.ts.map +1 -1
- package/componentsV2/Popover/index.d.ts +0 -1
- package/componentsV2/Popover/index.d.ts.map +1 -1
- package/componentsV2/RadioAndCheckboxLabel/RadioAndCheckboxLabel.d.ts +1 -1
- package/componentsV2/RadioAndCheckboxLabel/RadioAndCheckboxLabel.d.ts.map +1 -1
- package/componentsV2/{TextTruncated/TextTruncated.d.ts → TextEndTruncated/TextEndTruncated.d.ts} +3 -3
- package/componentsV2/TextEndTruncated/TextEndTruncated.d.ts.map +1 -0
- package/componentsV2/TextEndTruncated/TextEndTruncated.js +1 -0
- package/componentsV2/TextEndTruncated/TextEndTruncated.scss.js +1 -0
- package/componentsV2/{TextTruncated/TextTruncated.stories.d.ts → TextEndTruncated/TextEndTruncated.stories.d.ts} +3 -3
- package/componentsV2/TextEndTruncated/TextEndTruncated.stories.d.ts.map +1 -0
- package/componentsV2/TextEndTruncated/index.d.ts +2 -0
- package/componentsV2/TextEndTruncated/index.d.ts.map +1 -0
- package/componentsV2/TextInput/TextInput.js +1 -1
- package/componentsV2/TextInput/TextInput.scss.js +1 -1
- package/componentsV2/TextLink/TextLink.stories.d.ts.map +1 -1
- package/componentsV2/TextMiddleTruncated/TextMiddleTruncated.d.ts.map +1 -1
- package/componentsV2/TextMiddleTruncated/TextMiddleTruncated.js +1 -1
- package/componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js +1 -1
- package/componentsV2/ToggleButtons/ToggleButtons.d.ts +18 -0
- package/componentsV2/ToggleButtons/ToggleButtons.d.ts.map +1 -0
- package/componentsV2/ToggleButtons/ToggleButtons.js +1 -0
- package/componentsV2/ToggleButtons/ToggleButtons.scss.js +1 -0
- package/componentsV2/ToggleButtons/ToggleButtons.stories.d.ts +12 -0
- package/componentsV2/ToggleButtons/ToggleButtons.stories.d.ts.map +1 -0
- package/componentsV2/ToggleButtons/index.d.ts +2 -0
- package/componentsV2/ToggleButtons/index.d.ts.map +1 -0
- package/componentsV2/Tooltip/Tooltip.d.ts +7 -7
- package/componentsV2/Tooltip/Tooltip.d.ts.map +1 -1
- package/componentsV2/Tooltip/Tooltip.js +1 -1
- package/componentsV2/Tooltip/Tooltip.scss.js +1 -1
- package/componentsV2/Tooltip/Tooltip.stories.d.ts +1 -1
- package/componentsV2/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/componentsV2/index.d.ts +11 -1
- package/componentsV2/index.d.ts.map +1 -1
- package/componentsV2/index.js +1 -1
- package/constants/feed.d.ts +7 -0
- package/constants/feed.d.ts.map +1 -1
- package/constants/feed.js +1 -1
- package/icons/customIcons/icons/MoreApp.d.ts.map +1 -1
- package/icons/customIcons/icons/MoreApp.js +1 -1
- package/icons/customIcons/icons/SimulFrac.d.ts.map +1 -1
- package/icons/customIcons/icons/SimulFrac.js +1 -1
- package/icons/customIcons/icons/ZipperFrac.d.ts.map +1 -1
- package/icons/customIcons/icons/ZipperFrac.js +1 -1
- package/package.json +2 -2
- package/styles/common.scss +33 -0
- package/styles/mixins.scss +31 -0
- package/utils/goalsConfig/goalsConfig.d.ts.map +1 -1
- package/utils/goalsConfig/goalsConfig.js +1 -1
- package/utils/metrics/metricsConfig.d.ts +534 -0
- package/utils/metrics/metricsConfig.d.ts.map +1 -1
- package/utils/metrics/metricsConfig.js +1 -1
- package/cjs-bundle/componentsV2/TextTruncated/TextTruncated.js +0 -1
- package/cjs-bundle/componentsV2/TextTruncated/TextTruncated.scss.js +0 -1
- package/componentsV2/TextTruncated/TextTruncated.d.ts.map +0 -1
- package/componentsV2/TextTruncated/TextTruncated.js +0 -1
- package/componentsV2/TextTruncated/TextTruncated.scss.js +0 -1
- package/componentsV2/TextTruncated/TextTruncated.stories.d.ts.map +0 -1
- package/componentsV2/TextTruncated/index.d.ts +0 -2
- package/componentsV2/TextTruncated/index.d.ts.map +0 -1
|
@@ -456,4 +456,82 @@ export namespace tracesMemoFeedItem {
|
|
|
456
456
|
}
|
|
457
457
|
export { context_16 as context };
|
|
458
458
|
}
|
|
459
|
+
export namespace genericDataFeedItem {
|
|
460
|
+
let type_19: string;
|
|
461
|
+
export { type_19 as type };
|
|
462
|
+
export namespace context_17 {
|
|
463
|
+
namespace generic_data_comment {
|
|
464
|
+
let body_8: string;
|
|
465
|
+
export { body_8 as body };
|
|
466
|
+
let depth_2: number;
|
|
467
|
+
export { depth_2 as depth };
|
|
468
|
+
let timestamp_14: number;
|
|
469
|
+
export { timestamp_14 as timestamp };
|
|
470
|
+
export namespace data_14 {
|
|
471
|
+
namespace text_field1 {
|
|
472
|
+
let type_20: string;
|
|
473
|
+
export { type_20 as type };
|
|
474
|
+
export let label: string;
|
|
475
|
+
export let value: string;
|
|
476
|
+
}
|
|
477
|
+
namespace number_field2 {
|
|
478
|
+
let type_21: string;
|
|
479
|
+
export { type_21 as type };
|
|
480
|
+
let label_1: string;
|
|
481
|
+
export { label_1 as label };
|
|
482
|
+
let value_1: number;
|
|
483
|
+
export { value_1 as value };
|
|
484
|
+
}
|
|
485
|
+
namespace number_field3 {
|
|
486
|
+
let type_22: string;
|
|
487
|
+
export { type_22 as type };
|
|
488
|
+
let label_2: string;
|
|
489
|
+
export { label_2 as label };
|
|
490
|
+
let value_2: number;
|
|
491
|
+
export { value_2 as value };
|
|
492
|
+
}
|
|
493
|
+
namespace date_field4 {
|
|
494
|
+
let type_23: string;
|
|
495
|
+
export { type_23 as type };
|
|
496
|
+
let label_3: string;
|
|
497
|
+
export { label_3 as label };
|
|
498
|
+
let value_3: number;
|
|
499
|
+
export { value_3 as value };
|
|
500
|
+
}
|
|
501
|
+
namespace date_field5 {
|
|
502
|
+
let type_24: string;
|
|
503
|
+
export { type_24 as type };
|
|
504
|
+
let label_4: string;
|
|
505
|
+
export { label_4 as label };
|
|
506
|
+
let value_4: number;
|
|
507
|
+
export { value_4 as value };
|
|
508
|
+
}
|
|
509
|
+
namespace convertable_field6 {
|
|
510
|
+
let type_25: string;
|
|
511
|
+
export { type_25 as type };
|
|
512
|
+
let label_5: string;
|
|
513
|
+
export { label_5 as label };
|
|
514
|
+
let value_5: number;
|
|
515
|
+
export { value_5 as value };
|
|
516
|
+
export let unitType: string;
|
|
517
|
+
export let from: string;
|
|
518
|
+
}
|
|
519
|
+
namespace convertable_field7 {
|
|
520
|
+
let type_26: string;
|
|
521
|
+
export { type_26 as type };
|
|
522
|
+
let label_6: string;
|
|
523
|
+
export { label_6 as label };
|
|
524
|
+
let value_6: number;
|
|
525
|
+
export { value_6 as value };
|
|
526
|
+
let unitType_1: string;
|
|
527
|
+
export { unitType_1 as unitType };
|
|
528
|
+
let from_1: string;
|
|
529
|
+
export { from_1 as from };
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
export { data_14 as data };
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
export { context_17 as context };
|
|
536
|
+
}
|
|
459
537
|
//# sourceMappingURL=feed.fixtures.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default GenericDataCommentFeedItem;
|
|
2
|
+
declare function GenericDataCommentFeedItem({ feedItem }: {
|
|
3
|
+
feedItem: any;
|
|
4
|
+
}): JSX.Element;
|
|
5
|
+
declare namespace GenericDataCommentFeedItem {
|
|
6
|
+
namespace propTypes {
|
|
7
|
+
let feedItem: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
8
|
+
context: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
9
|
+
[x: string]: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
10
|
+
body: PropTypes.Validator<string>;
|
|
11
|
+
attachment: PropTypes.Requireable<PropTypes.InferProps<{
|
|
12
|
+
url: PropTypes.Requireable<string>;
|
|
13
|
+
size: PropTypes.Requireable<number>;
|
|
14
|
+
}>>;
|
|
15
|
+
depth: PropTypes.Requireable<NonNullable<string | number>>;
|
|
16
|
+
timestamp: PropTypes.Validator<string>;
|
|
17
|
+
data: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
18
|
+
}>>>;
|
|
19
|
+
}>>>;
|
|
20
|
+
mentioned_users: PropTypes.Requireable<PropTypes.InferProps<{}>[]>;
|
|
21
|
+
}>>>;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
import PropTypes from 'prop-types';
|
|
25
|
+
//# sourceMappingURL=GenericDataCommentFeedItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenericDataCommentFeedItem.d.ts","sourceRoot":"","sources":["../../../../src/components/FeedItem/feedItemTypes/GenericDataCommentFeedItem.js"],"names":[],"mappings":";AA+BA;;gBAwDC;;;;;;;;;;;;;;;;;;;;sBAvFqB,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"prop-types";import i from"moment";import{makeStyles as r,Box as n}from"@material-ui/core";import{convertValue as a,getUnitDisplay as o}from"../../../utils/index.js";import{isNativeDetected as m}from"../../../utils/mobileDetect.js";import{Regular14 as l}from"../../Typography.js";import s from"../../Attachment/index.js";import{formatMentionText as p}from"../../UserMention/utils/index.js";import u from"../../CollapsibleContent.js";import{FEED_ITEM_TYPES as d,GENERIC_DATA_COMMENTS_VALUES_TYPES as c,FEED_ITEM_TIME_FORMAT as f}from"../../../constants/feed.js";import{jsxs as h,jsx as v}from"react/jsx-runtime";var y=r((function(e){return{message:{lineHeight:"20px"},container:{marginBottom:4,lineHeight:"20px"},label:{color:e.palette.primary.text6}}})),b=function(e){var t=e.feedItem,r=y(),b=t.context,g=b[d.GENERIC_DATA_COMMENT],x=g.body,T=g.data,j=b.attachment,N=t.mentioned_users;return h(n,{whiteSpace:"pre-wrap",children:[x&&v(u,{children:v(l,{className:r.message,"data-testid":"".concat("GenericDataCommentFeedItem","_message"),variant:"body1",children:p(x,N,m)})}),v(n,{mt:1,mb:1,children:T&&Object.keys(T).map((function(e){var t,n,m,s,p,u;return h(l,{className:r.container,children:[h("span",{className:r.label,children:[T[e].label,": "]}),[c.string,c.number].includes(T[e].type)&&T[e].value,T[e].type===c.date&&i.unix(+(null==T||null===(t=T[e])||void 0===t?void 0:t.value)).format(f),T[e].type===c.convertable&&"".concat(a(null==T||null===(n=T[e])||void 0===n?void 0:n.value,null==T||null===(m=T[e])||void 0===m?void 0:m.unitType,null==T||null===(s=T[e])||void 0===s?void 0:s.from,o(null==T||null===(p=T[e])||void 0===p?void 0:p.unitType))," ").concat(o(null==T||null===(u=T[e])||void 0===u?void 0:u.unitType))]},e)}))}),j&&j.url&&v(s,{attachmentUrl:j.url,fileName:j.name,attachmentSize:j.size,size:"medium"})]})};b.propTypes={feedItem:t.shape({context:t.shape(e({},d.GENERIC_DATA_COMMENT,t.shape({body:t.string.isRequired,attachment:t.shape({url:t.string,size:t.number}),depth:t.oneOfType([t.string,t.number]),timestamp:t.string.isRequired,data:t.shape({})}).isRequired)).isRequired,mentioned_users:t.arrayOf(t.shape({}))}).isRequired};export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,Fragment as o,jsx as s}from"react/jsx-runtime";import{useState as t,useRef as i,useEffect as n}from"react";import{isEmpty as c,first as r}from"lodash";import{makeStyles as a,useTheme as l,Tooltip as m,FormControl as d,Select as u,MenuItem as p}from"@material-ui/core";import f from"classnames";import{PadMode as I}from"../../types/shared/Completions.js";import h from"../MiddleTruncate/MiddleTruncate.js";import{COMPLETION_MODES as j}from"../../constants/completion.js";import S from"./WellStreamActivityStatus.js";import v from"./FracModeLabel.js";import{AssetStatus as g}from"./types.js";import{useWellStreamActivityTypeSubscription as b}from"./effects/useWellStreamActivityTypeSubscription.js";import{useMenuItems as x}from"./effects/useMenuItems.js";import{parseMenuItemKey as F}from"./utils/selectMenuKey.js";import{getSelectValue as M,getActiveAsset as y}from"./utils/resolveCurrentConfig.js";import{InfoIcon as C}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";var A=a((function(e){return{selectFormControl:{maxWidth:"320px",padding:"5px 8px",marginLeft:"auto"},padSelect:{fontSize:"14px","&:before":{borderBottom:0},"&:after":{borderBottom:0},"& .MuiSelect-root":{alignItems:"center",display:"flex"}},simulFracPadMenu:{"&.MuiList-padding":{paddingTop:16}},menuItem:{display:"flex",justifyContent:"space-between","&.subGroupItem":{paddingLeft:24}},menuItemName:{textOverflow:"ellipsis",overflow:"hidden",width:"100%",fontSize:12,lineHeight:"16px"},activeAsset:{fontSize:12,lineHeight:"16px",minWidth:78,display:"flex",alignItems:"center"},simulFracMessage:{maxWidth:230,display:"flex",alignItems:"center",gap:8,padding:"0 16px",fontSize:12,lineHeight:1.35,color:e.palette.primary.text6,pointerEvents:"none"}}})),L=function(a){var L=a.completionAppType,w=a.padModeSetting,P=void 0===w?{mode:I.custom}:w,W=a.assets,T=void 0===W?[]:W,k=a.fracFleetLines,z=void 0===k?[]:k,N=a.disableActiveWellsInPadSelect,O=a.enableSimulFracInPadSelect,
|
|
1
|
+
import{jsxs as e,Fragment as o,jsx as s}from"react/jsx-runtime";import{useState as t,useRef as i,useEffect as n}from"react";import{isEmpty as c,first as r}from"lodash";import{makeStyles as a,useTheme as l,Tooltip as m,FormControl as d,Select as u,MenuItem as p}from"@material-ui/core";import f from"classnames";import{PadMode as I}from"../../types/shared/Completions.js";import h from"../MiddleTruncate/MiddleTruncate.js";import{COMPLETION_MODES as j}from"../../constants/completion.js";import S from"./WellStreamActivityStatus.js";import v from"./FracModeLabel.js";import{AssetStatus as g}from"./types.js";import{useWellStreamActivityTypeSubscription as b}from"./effects/useWellStreamActivityTypeSubscription.js";import{useMenuItems as x}from"./effects/useMenuItems.js";import{parseMenuItemKey as F}from"./utils/selectMenuKey.js";import{getSelectValue as M,getActiveAsset as y}from"./utils/resolveCurrentConfig.js";import{InfoIcon as C}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";var A=a((function(e){return{selectFormControl:{maxWidth:"320px",padding:"5px 8px",marginLeft:"auto"},padSelect:{fontSize:"14px","&:before":{borderBottom:0},"&:after":{borderBottom:0},"& .MuiSelect-root":{alignItems:"center",display:"flex"}},simulFracPadMenu:{"&.MuiList-padding":{paddingTop:16}},menuItem:{display:"flex",justifyContent:"space-between","&.subGroupItem":{paddingLeft:24}},menuItemName:{textOverflow:"ellipsis",overflow:"hidden",width:"100%",fontSize:12,lineHeight:"16px"},activeAsset:{fontSize:12,lineHeight:"16px",minWidth:78,display:"flex",alignItems:"center"},simulFracMessage:{maxWidth:230,display:"flex",alignItems:"center",gap:8,padding:"0 16px",fontSize:12,lineHeight:1.35,color:e.palette.primary.text6,pointerEvents:"none"}}})),L=function(a){var L=a.completionAppType,w=a.padModeSetting,P=void 0===w?{mode:I.custom}:w,W=a.assets,T=void 0===W?[]:W,k=a.fracFleetLines,z=void 0===k?[]:k,N=a.disableActiveWellsInPadSelect,O=a.enableSimulFracInPadSelect,D=a.onChange,E=t(!1),G=E[0],H=E[1],R=i(),q=A(),B=l(),K=M({fracFleetLines:z,padModeSetting:P,enableSimulFracInPadSelect:O}),Z=x({completionAppType:L,assets:T,fracFleetLines:z,enableSimulFracInPadSelect:O}),_=function(e){var o=F(e),s=o.mode,t=o.assetId,i={mode:s};s===I.custom?(i.mode=I.custom,i.selectedAssets=[parseInt(t,10)]):s===I.padLine&&(i.selectedLine=t),D(i)},J=function(e){return P.mode===I.custom&&+r(P.selectedAssets)==+e||G},Q=Z.find((function(e){return e.key===K})),U=b({currentWellId:R.current,isStatusShown:!0,withSubscription:!0}),V=y({assets:T,padModeSetting:P,completionAppType:L});n((function(){(null==Q?void 0:Q.assetId)?R.current=null==Q?void 0:Q.assetId:R.current=void 0}),[null==Q?void 0:Q.assetId]);var X=t(),Y=X[0],$=X[1];if(!V&&P.mode!==I.padLine)return null;var ee=V&&V.status===g.active;return e(o,{children:[P.mode===I.pad&&s(m,{title:Y&&Y!==V.name?V.name:"",children:e("div",{className:q.activeAsset,children:[s(h,{onTruncate:function(e){$(e)},truncatedText:Y,maxWidth:130,children:V.name}),ee&&s(S,{isStatusShown:!0,currentWellId:V.asset_id,subData:c(U)?void 0:U})]})}),s(d,{classes:{root:q.selectFormControl},children:K&&e(u,{value:K,onChange:function(e){return _(e.target.value)},inputProps:{name:"padModeSelect",id:"pad-mode-select"},className:q.padSelect,onClose:function(){return H(!1)},onOpen:function(){return H(!0)},MenuProps:{classes:{list:q.simulFracPadMenu},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},children:[s(v,{fracFleetLines:z,enableSimulFracInPadSelect:O}),Z.map((function(o){var t=o.key,i=o.label,n=o.assetId,c=o.wellId,r=o.status,a=o.isSubItem,l=o.isDisabled,m=J(c)&&r===g.active;return e(p,{value:t,className:f(q.menuItem,a&&"subGroupItem"),disabled:N&&r!==g.active&&t!==j.pad&&(a||l),children:[s("span",{className:q.menuItemName,children:i}),m&&s(S,{isStatusShown:J(c),currentWellId:n,subData:R.current===n?U:void 0})]},t)})),!O&&z.length>0&&e("div",{className:q.simulFracMessage,children:[s(C,{size:16,fill:B.palette.info.main}),"Analytics apps show all wells in Pad Mode for Simulfracs"]})]})})]})};export{L as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMenuItems.test.d.ts","sourceRoot":"","sources":["../../../../src/components/PadModeSelect/__tests__/useMenuItems.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMenuItems.d.ts","sourceRoot":"","sources":["../../../../src/components/PadModeSelect/effects/useMenuItems.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useMenuItems.d.ts","sourceRoot":"","sources":["../../../../src/components/PadModeSelect/effects/useMenuItems.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIjD,OAAO,EAAE,aAAa,EAAW,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAE1E,wBAAgB,YAAY,CAAC,EAC3B,iBAAiB,EACjB,MAAM,EACN,cAAc,EACd,0BAA0B,GAC3B,EAAE;IACD,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC;IAChB,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0BAA0B,EAAE,OAAO,CAAC;CACrC,GAAG,QAAQ,EAAE,CAqBb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useMemo as e}from"react";import{some as t}from"lodash";import{AssetStatus as r}from"../types.js";import{DEFAULT_SUPPORTED_PAD_MODES as n}from"../../../constants/completion.js";import{getMenuItemKey as o,getWellsMenuItems as i}from"../utils/selectMenuKey.js";import{PadMode as a}from"../../../types/shared/Completions.js";function s(s){var l=s.completionAppType,c=s.assets,m=s.fracFleetLines,f=s.enableSimulFracInPadSelect;return e((function(){if(f&&m.length){var e=m.reduce((function(e,n){var s=[{key:o(a.padLine,n.id),label:n.name,isDisabled:!t(n.frac_fleet_line_wells,(function(e){return e.status===r.active})),isSubItem:!1}],l=i(n.frac_fleet_line_wells,!0);return l.length?e.concat(s.concat(l)):e}),[]);return e}var s=i(c);return n.concat(s)}),[l,c,m,f])}export{s as useMenuItems};
|
|
@@ -3,7 +3,8 @@ export declare enum StreamType {
|
|
|
3
3
|
Wireline = "WL"
|
|
4
4
|
}
|
|
5
5
|
export declare enum AssetStatus {
|
|
6
|
-
active = "active"
|
|
6
|
+
active = "active",
|
|
7
|
+
idle = "idle"
|
|
7
8
|
}
|
|
8
9
|
export type MenuItem = {
|
|
9
10
|
key: string;
|
|
@@ -12,6 +13,7 @@ export type MenuItem = {
|
|
|
12
13
|
wellId?: string;
|
|
13
14
|
status?: string;
|
|
14
15
|
isSubItem: boolean;
|
|
16
|
+
isDisabled?: boolean;
|
|
15
17
|
};
|
|
16
18
|
export type AssetStreamStatus = {
|
|
17
19
|
wellId?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/PadModeSelect/types.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,IAAI,OAAO;IACX,QAAQ,OAAO;CAChB;AAED,oBAAY,WAAW;IACrB,MAAM,WAAW;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/PadModeSelect/types.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,IAAI,OAAO;IACX,QAAQ,OAAO;CAChB;AAED,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE;QACL,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;CACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var i,
|
|
1
|
+
var i,e;!function(i){i.Frac="FR",i.Wireline="WL"}(i||(i={})),function(i){i.active="active",i.idle="idle"}(e||(e={}));export{e as AssetStatus,i as StreamType};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { PadMode } from '~/types/shared/Completions';
|
|
1
|
+
import { PadMode, Well } from '~/types/shared/Completions';
|
|
2
|
+
import { MenuItem } from '../types';
|
|
2
3
|
export declare const getMenuItemKey: (mode: PadMode, id: string | number) => string;
|
|
3
4
|
export declare const parseMenuItemKey: (key: string) => {
|
|
4
5
|
mode: PadMode;
|
|
5
6
|
assetId: string;
|
|
6
7
|
};
|
|
8
|
+
export declare const getWellsMenuItems: (wells: Well[], isSubItem?: boolean) => MenuItem[];
|
|
7
9
|
//# sourceMappingURL=selectMenuKey.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectMenuKey.d.ts","sourceRoot":"","sources":["../../../../src/components/PadModeSelect/utils/selectMenuKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"selectMenuKey.d.ts","sourceRoot":"","sources":["../../../../src/components/PadModeSelect/utils/selectMenuKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAe,QAAQ,EAAE,MAAM,UAAU,CAAC;AAMjD,eAAO,MAAM,cAAc,SAAU,OAAO,MAAM,MAAM,GAAG,MAAM,KAAG,MACxC,CAAC;AAE7B,eAAO,MAAM,gBAAgB,QAAS,MAAM,KAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAI9E,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,IAAI,EAAE,0BAAsB,QAAQ,EAkB5E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
import{__spreadArray as t}from'./../../../ext-esm/tslib/tslib.es6.js';import{PadMode as o}from"../../../types/shared/Completions.js";import{AssetStatus as s}from"../types.js";import e from"lodash/flatten";import r from"lodash/partition";var a=function(t,o){return"".concat(t).concat("--").concat(o)},i=function(t){var o=t.split("--");return{mode:o[0],assetId:o[1]}},n=function(i,n){void 0===n&&(n=!1);var m=i.reduce((function(s,e){return t(t([],s,!0),[{key:a(o.custom,e.id),label:"".concat(e.name),assetId:e.asset_id,wellId:e.id,status:e.status,isSubItem:n}],!1)}),[]);return e(r(m,{status:s.active}))};export{a as getMenuItemKey,n as getWellsMenuItems,i as parseMenuItemKey};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RealTimeSidebarStyles.d.ts","sourceRoot":"","sources":["../../../src/components/RealTimeValuesSidebar/RealTimeSidebarStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"RealTimeSidebarStyles.d.ts","sourceRoot":"","sources":["../../../src/components/RealTimeValuesSidebar/RealTimeSidebarStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,qOAwDnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeStyles as t}from"@material-ui/core";var i=t((function(t){return{rtSidebarVertical:{width:"48px",height:"100%",background:t.palette.background.b5,boxShadow:"4px 0px 8px rgba(0, 0, 0, 0.15)",position:"relative","&.fullSize":{width:"235px"}},rtSidebarHorizontal:function(i){return{position:"absolute",top:i.sidebarHorizontalHeight,left:0,width:"100%",height:i.sidebarHorizontalHeight,background:t.palette.background.b5,"&.fullSize":{height:"auto"}}},rtSidebarWhiteTheme:{background:t.palette.primary.contrastText},rtSidebarContent:{overflowY:"auto",height:"calc(100% - 150px)",visibility:"hidden"},rtSidebarContentFullSize:{visibility:"visible",marginTop:"50px","&.vertical":{height:"calc(100% - 100px)"},"&.horizontal":{height:"auto"}},rtSidebarHandler:{position:"absolute",width:"100%",height:"100%",cursor:"pointer","&:hover":{background:t.palette.background.b7,opacity:"0.3",zIndex:"999"}},rtSidebarHandlerFullSize:{display:"none"}}}));export{i as useStyles};
|
|
1
|
+
import{makeStyles as t}from"@material-ui/core";var i=t((function(t){return{rtSidebarVertical:{width:"48px",height:"100%",background:t.palette.background.b5,borderRadius:"8px 0 0 8px",boxShadow:"4px 0px 8px rgba(0, 0, 0, 0.15)",position:"relative","&.fullSize":{width:"235px"}},rtSidebarHorizontal:function(i){return{position:"absolute",top:i.sidebarHorizontalHeight,left:0,borderRadius:"0 0 8px 8px",width:"100%",height:i.sidebarHorizontalHeight,background:t.palette.background.b5,"&.fullSize":{height:"auto"}}},rtSidebarWhiteTheme:{background:t.palette.primary.contrastText},rtSidebarContent:{overflowY:"auto",height:"calc(100% - 150px)",visibility:"hidden"},rtSidebarContentFullSize:{visibility:"visible",marginTop:"50px","&.vertical":{height:"calc(100% - 100px)"},"&.horizontal":{height:"auto"}},rtSidebarHandler:{position:"absolute",width:"100%",height:"100%",cursor:"pointer","&:hover":{background:t.palette.background.b7,opacity:"0.3",zIndex:"999"}},rtSidebarHandlerFullSize:{display:"none"}}}));export{i as useStyles};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RealTimeBox.d.ts","sourceRoot":"","sources":["../../../../src/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBox.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAK5C,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"RealTimeBox.d.ts","sourceRoot":"","sources":["../../../../src/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBox.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAK5C,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,eAyD3C;;AAED,wBAAiC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,Fragment as r,jsx as
|
|
1
|
+
import{jsxs as e,Fragment as r,jsx as i}from"react/jsx-runtime";import{memo as t,useContext as a}from"react";import o from"classnames";import{noop as l}from"lodash";import{Divider as n}from"@material-ui/core";import d from"@material-ui/icons/DragIndicator";import{getUnitDisplay as m}from"../../../utils/index.js";import s from"../../IconButton/index.js";import c from"../RealTimeSidebarContext.js";import{useStyles as u}from"./RealTimeBoxStyles.js";var p=t((function(t){var p,h=t.item,v=void 0===h?null:h,g=t.isDraggable,x=void 0===g||g,f=t.dragHandle,B=void 0===f?l:f,N=t.itemSelected,T=void 0===N?null:N,C=u(),D=a(c),b=D.handleOpenCloseDialog,j=D.handleChangeParamToEdit,I=v?v.unitTo||m(v.unitType):null,y=v?{backgroundColor:v.color,marginRight:"transparent"===v.color?-2:4}:null;return v?e(r,{children:[i("div",{className:o(C.rtBox,(p={},p[C.rtBoxSelected]=!!T,p.notDraggable=!x,p)),"data-testid":"realtime_box",children:e(r,{children:[e("div",{className:C.rtBoxInner,onClick:function(){b(!0),j(v.key)},"data-testid":"".concat(v.name,"_edit_item"),children:[e("div",{className:C.rtBoxTitle,children:[i("div",{className:C.rtBoxTitleBorder,style:y}),i("div",{children:v.name})]}),e("div",{className:C.rtBoxValue,children:[v.value," ",i("span",{children:I})]})]}),x&&B(i("div",{className:C.rtBoxButtonContainer,"data-testid":"realTimeValuesItemDrag",children:i(s,{tooltipProps:{title:"Drag to Reorder"},children:i(d,{className:C.dragIcon,color:"error"})})}))]})}),x&&i(n,{className:C.divider})]}):null}));export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as e,Fragment as r,jsxs as i}from"react/jsx-runtime";import{memo as o,useContext as n}from"react";import a from"react-draggable-list";import{makeStyles as l}from"@material-ui/core";import
|
|
1
|
+
import{__assign as t}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as e,Fragment as r,jsxs as i}from"react/jsx-runtime";import{memo as o,useContext as n}from"react";import a from"react-draggable-list";import{makeStyles as l}from"@material-ui/core";import s from"../../IconButton/index.js";import{PlusIcon as m}from"../../../icons/iconParkIcons.js";import c from"./RealTimeBox.js";import d from"../RealTimeSidebarContext.js";import{ORIENTATIONS as p}from"../enums.js";var u=l((function(){return{boxListVertical:{padding:"10px 0 16px",overflowX:"hidden"},rtBoxListHorizontal:{display:"flex",flexWrap:"wrap"},cTpRtBoxAddButtonContainer:{marginTop:8,textAlign:"center"}}}));var f=o((function(o){var l=o.sourceArray,f=o.findSource,x=u(),g=n(d),v=g.onAppSettingChange,y=g.appSettings,B=g.assetKey,b=g.orientation,h=g.realTimeTypes,T=g.setting,j=g.handleOpenCloseDialog;return e(r,{children:b===p.vertical?i("div",{className:x.boxListVertical,children:[e(a,{list:l,itemKey:function(t){return t.key},template:c,padding:0,unsetZIndex:!0,container:function(){return document.body},onMoveEnd:function(e){var r,i=e.map((function(t){return t.key}));v("rtValuesSetting",t(t({},y.rtValuesSetting),((r={})[B]=i,r)))}}),e("div",{className:x.cTpRtBoxAddButtonContainer,children:e(s,{"data-testid":"addRealTimeValuesButton",color:"primary",tooltipProps:{title:"Add"},onClick:j,children:e(m,{})})})]}):e("div",{className:x.rtBoxListHorizontal,children:T.map((function(t){return e(c,{isDraggable:!1,item:f(t,h)},"".concat(t))}))})})}));export{f as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"divider" | "dragIcon" | "rtBox" | "rtBoxSelected" | "rtBoxInner" | "rtBoxTitle" | "rtBoxValue" | "rtBoxButtonContainer">;
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"divider" | "dragIcon" | "rtBox" | "rtBoxSelected" | "rtBoxInner" | "rtBoxTitle" | "rtBoxValue" | "rtBoxTitleBorder" | "rtBoxButtonContainer">;
|
|
2
2
|
//# sourceMappingURL=RealTimeBoxStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RealTimeBoxStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"RealTimeBoxStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,4MA6DnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeStyles as t}from"@material-ui/core";var e=t((function(t){return{dragIcon:{width:16,height:16},divider:{margin:"0 12px",width:206},rtBox:{padding:"8px 0px 8px 16px",display:"flex",justifyContent:"space-between",backgroundColor:t.isLightTheme?t.palette.primary.contrastText:t.palette.background.b5,alignItems:"center","&.notDraggable":{marginLeft:12,marginBottom:12,padding:0},"&:hover":{backgroundColor:t.palette.background.b6,"&>$rtBoxButtonContainer":{display:"block"}}},rtBoxSelected:{borderBottom:"0px solid ".concat(t.palette.background.b6),backgroundColor:t.palette.background.b6,boxShadow:"0px 0px 16px rgba(0, 0, 0, 0.5)"},rtBoxInner:{
|
|
1
|
+
import{makeStyles as t}from"@material-ui/core";var e=t((function(t){return{dragIcon:{width:16,height:16},divider:{margin:"0 12px",width:206},rtBox:{padding:"8px 0px 8px 16px",display:"flex",justifyContent:"space-between",backgroundColor:t.isLightTheme?t.palette.primary.contrastText:t.palette.background.b5,alignItems:"center","&.notDraggable":{marginLeft:12,marginBottom:12,padding:0},"&:hover":{backgroundColor:t.palette.background.b6,"&>$rtBoxButtonContainer":{display:"block",marginRight:12}}},rtBoxSelected:{borderBottom:"0px solid ".concat(t.palette.background.b6),backgroundColor:t.palette.background.b6,boxShadow:"0px 0px 16px rgba(0, 0, 0, 0.5)"},rtBoxInner:{cursor:"pointer"},rtBoxTitle:{display:"flex",fontSize:"11px",lineHeight:"12px",color:t.palette.primary.text6,letterSpacing:"0.4px"},rtBoxValue:{marginTop:8,fontSize:"20px",lineHeight:"14px","& > span":{fontSize:"11px",lineHeight:"14px",color:t.palette.primary.text6}},rtBoxTitleBorder:{borderRadius:2,width:2,height:10},rtBoxButtonContainer:{display:"none"}}}));export{e as useStyles};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarFooter.d.ts","sourceRoot":"","sources":["../../../src/components/RealTimeValuesSidebar/SidebarFooter.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarFooter.d.ts","sourceRoot":"","sources":["../../../src/components/RealTimeValuesSidebar/SidebarFooter.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AA2E7C,iBAAS,aAAa,CAAC,EAAE,eAAe,EAAE,eAAe,EAAE,EAAE,kBAAkB,eAkD9E;;AAED,wBAAmC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as o,jsxs as t}from"react/jsx-runtime";import{memo as s,useContext as n}from"react";import e from"classnames";import{makeStyles as i,Box as r}from"@material-ui/core";import c from"../IconButton/index.js";import{RightIcon as p,UpIcon as m,PlusIcon as a,LeftIcon as d,DownIcon as l}from"../../icons/iconParkIcons.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Grid.scss.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import{Tooltip as u}from"../../componentsV2/Tooltip/Tooltip.js";import"../../componentsV2/Popover/Popover.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInput/TextInput.js";import"lodash";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/ChipAlert/ChipAlert.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/Avatar/Avatar.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/Paper/Paper.js";import"uuid";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../componentsV2/Modal/Modal.scss.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../componentsV2/Menu/Menu.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/BadgeDot/BadgeDot.scss.js";import j from"./RealTimeSidebarContext.js";import{ORIENTATIONS as h}from"./enums.js";var C=i((function(o){return{button:{fontSize:14,fontWeight:500},buttonIcon:{fontSize:24,marginRight:8},closedButton:{marginBottom:"78px",zIndex:1e3},rtSidebarFooter:{position:"absolute",right:0,"&.vertical":{left:0,bottom:0},"&.horizontal":{top:0}},rtSidebarFooterIcon:{color:o.palette.primary.text6},rtSidebarFooterActions:{display:"flex",paddingRight:"5px",alignItems:"center",height:48,width:48,padding:6,"&.horizontal":{flexDirection:"row-reverse"}},actionButton:{padding:12,height:36,width:36},openToggleContainer:{alignItems:"center",bottom:0,display:"flex",flex:"0 0",height:48,padding:6,position:"absolute",width:"100%",justifyContent:"flex-start",paddingRight:6},collapseTooltip:{marginTop:-8},expandTooltip:{marginTop:-48}}}));var I=s((function(s){var i=s.onSidebarOpened,I=s.onSidebarClosed,x=C(),g=n(j),b=g.isSidebarOpen,T=g.orientation,v=g.handleOpenCloseDialog;return o("div",{className:e(x.rtSidebarFooter,T),"data-testid":"sidebar_footer",children:b?o(r,{className:x.openToggleContainer,children:o(u,{title:"Collapse",className:x.collapseTooltip,children:t("div",{className:e(x.rtSidebarFooterActions,T),children:[o(c,{"data-testid":"sidebar_close_button",onClick:I,className:x.actionButton,children:T===h.vertical?o(p,{}):o(m,{className:x.rtSidebarFooterIcon})}),T===h.horizontal&&o(c,{color:"primary",tooltipProps:{title:"Add"},onClick:function(){return v(!0)},className:x.actionButton,children:o(a,{})})]})})}):o(u,{title:"Expand",className:x.expandTooltip,children:o("div",{className:e(x.rtSidebarFooterActions,T),children:o(c,{onClick:i,"data-testid":"sidebar_open_button",className:e(x.closedButton,x.actionButton),children:T===h.vertical?o(d,{}):o(l,{})})})})})}));export{I as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarTitle.d.ts","sourceRoot":"","sources":["../../../src/components/RealTimeValuesSidebar/SidebarTitle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarTitle.d.ts","sourceRoot":"","sources":["../../../src/components/RealTimeValuesSidebar/SidebarTitle.tsx"],"names":[],"mappings":"AAkDA,iBAAS,YAAY,gBAmBpB;;AAED,wBAAkC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t,jsxs as e,Fragment as i}from"react/jsx-runtime";import{memo as r,useContext as o}from"react";import a from"classnames";import{makeStyles as n,Typography as l}from"@material-ui/core";import m
|
|
1
|
+
import{jsx as t,jsxs as e,Fragment as i}from"react/jsx-runtime";import{memo as r,useContext as o}from"react";import a from"classnames";import{makeStyles as n,Typography as l}from"@material-ui/core";import{StopwatchIcon as m}from"../../icons/iconParkIcons.js";import p from"./RealTimeSidebarContext.js";import{ORIENTATIONS as c}from"./enums.js";var s=n((function(t){return{iconWithText:{fontSize:24,lineHeight:"24px",marginRight:8,fill:t.palette.primary.contrastText},text:{fontSize:16,lineHeight:"22px",fontWeight:400},icon:{fontSize:24,lineHeight:"24px",fill:t.palette.primary.text6,marginLeft:4},cTpRtSidebarTitle:{display:"flex",flexDirection:"row",alignItems:"center",height:"50px",justifyContent:"normal",paddingLeft:"8px",zIndex:1,position:"absolute","&.vertical":{width:"100%",borderBottom:"1px solid ".concat(t.palette.background.b7),color:t.isLightTheme?t.palette.primary.text9:t.palette.primary.text1},"&.horizontal":{color:t.isLightTheme?t.palette.primary.text1:t.palette.primary.text6}}}}));var x=r((function(){var r=s(),n=o(p),x=n.isSidebarOpen,f=n.orientation;return t("div",{className:a(r.cTpRtSidebarTitle,f),children:x||f===c.horizontal?e(i,{children:[t(m,{className:r.iconWithText}),t(l,{variant:"body2",component:"h4",className:r.text,children:"Real-Time Values"})]}):t(m,{className:r.icon})})}));export{x as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"value" | "label" | "medium" | "disabled" | "current" | "step" | "error" | "
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"value" | "label" | "medium" | "disabled" | "current" | "step" | "error" | "hoverable" | "passed">;
|
|
2
2
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type AvatarProps = {
|
|
2
|
+
size?: number;
|
|
3
|
+
name?: string;
|
|
4
|
+
imageSrc?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
testId?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const Avatar: import("react").ForwardRefExoticComponent<AvatarProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Avatar/Avatar.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,MAAM,wGAsClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__rest as t,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import{forwardRef as a,useMemo as e}from"react";import s from"classnames";import{getFontSize as i,getColor as m}from"./constants.js";import n from"./Avatar.scss.js";import c from"../../utils/main.js";var l=a((function(a,l){var d=a.testId,p=a.className,f=a.name,u=a.size,g=void 0===u?40:u,v=a.imageSrc,x=t(a,["testId","className","name","size","imageSrc"]),h=e((function(){return{width:"".concat(g,"px"),height:"".concat(g,"px"),fontSize:"".concat(i(g),"px"),lineHeight:"".concat(g,"px"),backgroundColor:m(f),backgroundImage:v?"url(".concat(v,")"):void 0,color:v?"transparent":void 0}}),[g,v,f]);return r("div",o({},x,{ref:l,className:s(n.root,p),"data-testid":d,style:h,children:f&&c.getNameInitials(f)}))}));export{l as Avatar};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from'./../../ext-esm/style-inject/dist/style-inject.es.js';var t={spacing:"8",root:"Avatar_root__PE6dQ"};e(".Avatar_root__PE6dQ{background-position:50%;background-size:cover;border-radius:50%;color:var(--palette-primary-text-1);display:inline-block;font-weight:500;text-align:center;user-select:none;vertical-align:middle}");export{t as default};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { Avatar } from './Avatar';
|
|
4
|
+
type Props = ComponentProps<typeof Avatar>;
|
|
5
|
+
declare const meta: Meta<Props>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: (props: Props) => JSX.Element;
|
|
8
|
+
export declare const Sizes: () => JSX.Element;
|
|
9
|
+
export declare const Colors: () => JSX.Element;
|
|
10
|
+
export declare const WithImage: () => JSX.Element;
|
|
11
|
+
//# sourceMappingURL=Avatar.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Avatar/Avatar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAKjD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAE3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAcF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAA0B,CAAC;AAE/D,eAAO,MAAM,KAAK,mBAmBjB,CAAC;AAYF,eAAO,MAAM,MAAM,mBAkBlB,CAAC;AAKF,eAAO,MAAM,SAAS,mBAMrB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const ColorsArray: string[];
|
|
2
|
+
export declare const getColor: (name?: string) => string;
|
|
3
|
+
export declare const SizeToFontSizeMap: Record<number, number>;
|
|
4
|
+
export declare const getFontSize: (avatarSize: number) => number;
|
|
5
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Avatar/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,UAiBvB,CAAC;AAEF,eAAO,MAAM,QAAQ,2BAGpB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQpD,CAAC;AAWF,eAAO,MAAM,WAAW,eAAgB,MAAM,WAsB7C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import n from"../../utils/main.js";var e=["#5F47A4","#9078C8","#DC74FD","#F695B5","#CB4F4F","#896F65","#F3AE96","#EE7850","#DDAE67","#A6CA72","#62893D","#91C9C4","#38818D","#77B5F1","#3F4C99","#919DA4"],i=function(i){void 0===i&&(i="");var r=n.hashCode(i);return e[r%e.length]},r={0:0,24:12,32:14,40:16,48:20,128:64,200:80},t=Object.entries(r).map((function(n){var e=n[0],i=n[1];return[Number(e),i]})).sort((function(n,e){return n[0]-e[0]})).map((function(n){return{size:n[0],fontSize:n[1]}})),o=function(n){if(r[n])return r[n];var e=t.findIndex((function(e,i,r){var t=e.size;return n>t&&i<r.length-1&&n<r[i+1].size}));if(e<0)return n<t[0].size?t[0].fontSize:t.slice(-1)[0].fontSize;var i=t[e],o=t[e+1],f=(n-i.size)/(o.size-i.size);return i.fontSize+(o.fontSize-i.fontSize)*f};export{e as ColorsArray,r as SizeToFontSizeMap,i as getColor,o as getFontSize};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Avatar/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type BadgeBaseProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Content over which position the badge
|
|
5
|
+
*/
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
badge: ReactNode;
|
|
8
|
+
offsetX: number;
|
|
9
|
+
offsetY: number;
|
|
10
|
+
badgeHeight: number;
|
|
11
|
+
/**
|
|
12
|
+
* Container className
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
15
|
+
testId?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const BadgeBase: ({ children, testId, className, badge, offsetY, offsetX, badgeHeight, ...injectedProps }: BadgeBaseProps) => JSX.Element;
|
|
18
|
+
//# sourceMappingURL=BadgeBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadgeBase.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/BadgeBase/BadgeBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+C,SAAS,EAAE,MAAM,OAAO,CAAC;AAK/E,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB,KAAK,EAAE,SAAS,CAAC;IAEjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,SAAS,4FASnB,cAAc,gBAkBhB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__rest as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,jsx as t}from"react/jsx-runtime";import{isValidElement as a,cloneElement as r}from"react";import o from"classnames";import i from"./BadgeBase.scss.js";var c=function(c){var d=c.children,m=c.testId,f=c.className,l=c.badge,n=c.offsetY,h=c.offsetX,p=c.badgeHeight,g=e(c,["children","testId","className","badge","offsetY","offsetX","badgeHeight"]),b=a(d)&&Object.keys(g).length>0?r(d,g):d,x={"--shift-x":"".concat(h,"px"),"--shift-y":"".concat(n,"px"),"--radius":"".concat(p/2,"px")};return s("div",{className:o(i.root,f),style:x,"data-testid":m,children:[t("div",{className:i.masked,children:b}),l]})};export{c as BadgeBase};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import a from'./../../ext-esm/style-inject/dist/style-inject.es.js';var e={spacing:"8",root:"BadgeBase_root__VFvXg",masked:"BadgeBase_masked__dQ6zI",badge:"BadgeBase_badge__FQLO8"};a(".BadgeBase_root__VFvXg{display:inline-flex;position:relative;vertical-align:middle}.BadgeBase_masked__dQ6zI{display:inline-flex;mask:radial-gradient(calc(var(--radius) + 2px) at calc(100% + var(--shift-x)) calc(0% - var(--shift-y)),transparent 98%,#000);width:100%}.BadgeBase_badge__FQLO8{bottom:calc(100% + var(--shift-y) - var(--radius));left:calc(100% + var(--shift-x) - var(--radius));position:absolute}");export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/BadgeBase/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CounterProps } from '../Counter';
|
|
3
|
+
export type BadgeCounterProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Content over which position the badge
|
|
6
|
+
*/
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
count: number;
|
|
9
|
+
/**
|
|
10
|
+
* Maximum value after which the plus sign will be shown
|
|
11
|
+
*
|
|
12
|
+
* @default Infinity
|
|
13
|
+
*/
|
|
14
|
+
max?: number;
|
|
15
|
+
type?: CounterProps['type'];
|
|
16
|
+
/**
|
|
17
|
+
* Badge className
|
|
18
|
+
*/
|
|
19
|
+
badgeClassName?: string;
|
|
20
|
+
/**
|
|
21
|
+
* X offset of badge center from top right corner in pixels
|
|
22
|
+
*/
|
|
23
|
+
offsetX?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Y offset of badge center from top right corner in pixels
|
|
26
|
+
*/
|
|
27
|
+
offsetY?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Container className
|
|
30
|
+
*/
|
|
31
|
+
className?: string;
|
|
32
|
+
testId?: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const BadgeCounter: ({ max, type, testId, className, children, count, badgeClassName, offsetX, offsetY, ...injectedProps }: BadgeCounterProps) => JSX.Element;
|
|
35
|
+
//# sourceMappingURL=BadgeCounter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadgeCounter.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/BadgeCounter/BadgeCounter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAW,YAAY,EAAE,MAAM,YAAY,CAAC;AAKnD,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAE5B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,YAAY,0GAYtB,iBAAiB,gBAsBnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__rest as e,__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as a}from"react/jsx-runtime";import t from"classnames";import{Counter as o}from"../Counter/Counter.js";import{BadgeBase as m}from"../BadgeBase/BadgeBase.js";import d from"../BadgeBase/BadgeBase.scss.js";var r=function(r){var f=r.max,i=void 0===f?1/0:f,l=r.type,c=void 0===l?"default":l,n=r.testId,g=r.className,p=r.children,u=r.count,b=r.badgeClassName,B=r.offsetX,v=void 0===B?-1:B,N=r.offsetY,h=void 0===N?0:N,j=e(r,["max","type","testId","className","children","count","badgeClassName","offsetX","offsetY"]);return a(m,s({badge:a(o,{count:u,max:i,type:c,className:t(d.badge,d.badgeShadow,b),size:"small"}),className:g,testId:n,offsetX:v,offsetY:h,badgeHeight:16},j,{children:p}))};export{r as BadgeCounter};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { BadgeCounter } from './BadgeCounter';
|
|
4
|
+
type Props = ComponentProps<typeof BadgeCounter>;
|
|
5
|
+
declare const meta: Meta<Props>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: (props: Props) => JSX.Element;
|
|
8
|
+
export declare const UsageWithComplexComponents: () => JSX.Element;
|
|
9
|
+
export declare const OffsetControl: () => JSX.Element;
|
|
10
|
+
//# sourceMappingURL=BadgeCounter.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadgeCounter.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/BadgeCounter/BadgeCounter.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAOjD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAI9C,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAEjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAeF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAInC,CAAC;AAEF,eAAO,MAAM,0BAA0B,mBAmBtC,CAAC;AAMF,eAAO,MAAM,aAAa,mBA+BzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/BadgeCounter/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type BadgeDotProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Content over which position the badge
|
|
5
|
+
*/
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Badge className
|
|
9
|
+
*/
|
|
10
|
+
badgeClassName?: string;
|
|
11
|
+
/**
|
|
12
|
+
* X offset of badge center from top right corner in pixels
|
|
13
|
+
*/
|
|
14
|
+
offsetX?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Y offset of badge center from top right corner in pixels
|
|
17
|
+
*/
|
|
18
|
+
offsetY?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Container className
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
23
|
+
testId?: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const BadgeDot: ({ badgeClassName, className, testId, children, offsetX, offsetY, ...injectedProps }: BadgeDotProps) => JSX.Element;
|
|
26
|
+
//# sourceMappingURL=BadgeDot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadgeDot.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/BadgeDot/BadgeDot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQlC,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,QAAQ,wFAQlB,aAAa,gBAaf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__rest as s,__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as a}from"react/jsx-runtime";import t from"classnames";import{BadgeBase as o}from"../BadgeBase/BadgeBase.js";import d from"../BadgeBase/BadgeBase.scss.js";import r from"./BadgeDot.scss.js";var m=function(m){var f=m.badgeClassName,i=m.className,l=m.testId,c=m.children,g=m.offsetX,n=void 0===g?-3:g,B=m.offsetY,b=void 0===B?-2:B,p=s(m,["badgeClassName","className","testId","children","offsetX","offsetY"]);return a(o,e({className:i,testId:l,badge:a("div",{className:t(r.badge,d.badge,f)}),offsetX:n,offsetY:b,badgeHeight:8},p,{children:c}))};export{m as BadgeDot};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from'./../../ext-esm/style-inject/dist/style-inject.es.js';var a={spacing:"8",badge:"BadgeDot_badge__z20Lu"};e(".BadgeDot_badge__z20Lu{background:var(--palette-error-main);border-radius:50%;height:8px;width:8px}");export{a as default};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { BadgeDot } from './BadgeDot';
|
|
4
|
+
type Props = ComponentProps<typeof BadgeDot>;
|
|
5
|
+
declare const meta: Meta<Props>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: (props: Props) => JSX.Element;
|
|
8
|
+
export declare const UsageWithComplexComponents: () => JSX.Element;
|
|
9
|
+
export declare const OffsetControl: () => JSX.Element;
|
|
10
|
+
//# sourceMappingURL=BadgeDot.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadgeDot.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/BadgeDot/BadgeDot.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAOjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAItC,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAYF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAInC,CAAC;AAEF,eAAO,MAAM,0BAA0B,mBAmBtC,CAAC;AAMF,eAAO,MAAM,aAAa,mBA+BzB,CAAC"}
|