@bikdotai/bik-component-library 0.0.391-beta.1 → 0.0.391
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/cjs/_virtual/index.js +1 -0
- package/dist/cjs/_virtual/index2.js +1 -0
- package/dist/cjs/_virtual/index3.js +1 -0
- package/dist/cjs/_virtual/react-is.development.js +1 -0
- package/dist/cjs/_virtual/react-is.development2.js +1 -0
- package/dist/cjs/_virtual/react-is.production.min.js +1 -0
- package/dist/cjs/_virtual/react-is.production.min2.js +1 -0
- package/dist/cjs/assets/icons/WhiteStarFilled.svg.js +1 -0
- package/dist/cjs/assets/icons/checkCircle.svg.js +1 -0
- package/dist/cjs/assets/icons/drag_handle.svg.js +1 -0
- package/dist/cjs/assets/icons/quotes.svg.js +1 -0
- package/dist/cjs/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
- package/dist/cjs/components/QueryBuilder/Filters/Segment/components/SegmentFilter.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +2 -2
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/NumberTime.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/SingleDate.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/TwoDate.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Connector.js +1 -1
- package/dist/cjs/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -1
- package/dist/cjs/components/QueryBuilder/constants/connector.d.ts +6 -3
- package/dist/cjs/components/QueryBuilder/constants/connector.js +1 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilder.type.d.ts +2 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilder.type.js +1 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +1 -0
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderOperator.type.d.ts +4 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderOperator.type.js +1 -1
- package/dist/cjs/components/SearchFilter/components/DateRangeOnlyButton.d.ts +7 -0
- package/dist/cjs/components/SearchFilter/components/DateRangeOnlyButton.js +1 -0
- package/dist/cjs/components/SearchFilter/components/SearchFilterItem.js +1 -1
- package/dist/cjs/components/SearchFilter/types/SearchFilter.type.d.ts +4 -0
- package/dist/cjs/components/accordion/Accordion.d.ts +2 -0
- package/dist/cjs/components/accordion/Accordion.js +1 -1
- package/dist/cjs/components/accordion/Accordion.style.d.ts +1 -0
- package/dist/cjs/components/accordion/Accordion.style.js +1 -1
- package/dist/cjs/components/add-variableV2/AddVariableV2.js +1 -1
- package/dist/cjs/components/add-variableV2/AddVariableV2.styled.js +2 -0
- package/dist/cjs/components/add-variableV2/AddVariableV2SideModal.js +1 -1
- package/dist/cjs/components/alerts/Alert.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.d.ts +3 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/CommonStyles.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
- package/dist/cjs/components/avatar/Avatar.js +1 -1
- package/dist/cjs/components/bik-layout/BikLayout.d.ts +2 -0
- package/dist/cjs/components/bik-layout/BikLayout.js +1 -1
- package/dist/cjs/components/bik-layout/CommonStyles.d.ts +10 -0
- package/dist/cjs/components/bik-layout/CommonStyles.js +1 -1
- package/dist/cjs/components/bik-layout/FeatureModal.d.ts +1 -0
- package/dist/cjs/components/bik-layout/FeatureModal.js +1 -1
- package/dist/cjs/components/bik-layout/FeatureModalV2.d.ts +12 -0
- package/dist/cjs/components/bik-layout/FeatureModalV2.js +1 -0
- package/dist/cjs/components/bik-layout/MockMenus.d.ts +1 -0
- package/dist/cjs/components/bik-layout/ShowShopifyRestrictedModal.d.ts +13 -0
- package/dist/cjs/components/bik-layout/ShowShopifyRestrictedModal.js +1 -0
- package/dist/cjs/components/bik-layout/index.d.ts +2 -0
- package/dist/cjs/components/button/Button.js +1 -1
- package/dist/cjs/components/button/Button.styled.js +1 -1
- package/dist/cjs/components/button/model.d.ts +1 -1
- package/dist/cjs/components/button/themes.d.ts +3 -2
- package/dist/cjs/components/button/themes.js +1 -1
- package/dist/cjs/components/carousel-secondary/CarouselSecondary.js +1 -1
- package/dist/cjs/components/colourInput/ColourInput.js +1 -1
- package/dist/cjs/components/datePicker/DatePicker.js +1 -1
- package/dist/cjs/components/datePicker/DatePickerWrapper.d.ts +2 -0
- package/dist/cjs/components/datePicker/DatePickerWrapper.js +1 -1
- package/dist/cjs/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
- package/dist/cjs/components/discount-modal/DiscountModal.d.ts +9 -0
- package/dist/cjs/components/discount-modal/DiscountModal.js +1 -1
- package/dist/cjs/components/discount-modal/DiscountUtils.d.ts +2 -0
- package/dist/cjs/components/discount-modal/DiscountUtils.js +1 -1
- package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.d.ts +7 -5
- package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
- package/dist/cjs/components/discount-modal/StaticCoupon/StaticCoupon.js +1 -1
- package/dist/cjs/components/discount-modal/type.d.ts +11 -2
- package/dist/cjs/components/discount-modal/type.js +1 -1
- package/dist/cjs/components/dropdown/ChipDropdown.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
- package/dist/cjs/components/dropdown/type.d.ts +1 -0
- package/dist/cjs/components/dropdown-button/DropdownButton.js +1 -1
- package/dist/cjs/components/input/Input.d.ts +1 -0
- package/dist/cjs/components/input/Input.js +1 -1
- package/dist/cjs/components/input/Input.styled.d.ts +6 -0
- package/dist/cjs/components/input/Input.styled.js +1 -1
- package/dist/cjs/components/input-with-vars/InputWithVariables.d.ts +3 -1
- package/dist/cjs/components/input-with-vars/InputWithVariables.js +6 -6
- package/dist/cjs/components/modals/Modal.d.ts +1 -0
- package/dist/cjs/components/modals/Modal.js +1 -1
- package/dist/cjs/components/modals/styledModal.d.ts +1 -0
- package/dist/cjs/components/modals/styledModal.js +1 -1
- package/dist/cjs/components/plans/NewSubscriptionPlan.d.ts +18 -0
- package/dist/cjs/components/plans/NewSubscriptionPlan.js +1 -0
- package/dist/cjs/components/plans/SubscriptionPlan.d.ts +4 -2
- package/dist/cjs/components/plans/SubscriptionPlan.js +1 -1
- package/dist/cjs/components/plans/SubscriptionPlanSelector.d.ts +1 -0
- package/dist/cjs/components/plans/SubscriptionPlanSelector.js +1 -1
- package/dist/cjs/components/plans/SubscriptionPlanStyled.d.ts +7 -0
- package/dist/cjs/components/plans/SubscriptionPlanStyled.js +1 -1
- package/dist/cjs/components/plans/SubscriptionPlansCollected.d.ts +14 -0
- package/dist/cjs/components/plans/SubscriptionPlansCollected.js +6 -0
- package/dist/cjs/components/plans/index.d.ts +2 -0
- package/dist/cjs/components/product-picker/ProductPicker.styled.js +1 -1
- package/dist/cjs/components/product-picker/ProductPickerModal.js +1 -1
- package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.d.ts +45 -0
- package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.js +1 -0
- package/dist/cjs/components/product-picker-v2/modal.d.ts +27 -2
- package/dist/cjs/components/product-picker-v2/modal.js +1 -1
- package/dist/cjs/components/product-picker-v2/productScreen.d.ts +9 -1
- package/dist/cjs/components/product-picker-v2/productScreen.js +1 -1
- package/dist/cjs/components/product-picker-v2/rearrangeScreen.d.ts +18 -0
- package/dist/cjs/components/product-picker-v2/rearrangeScreen.js +1 -0
- package/dist/cjs/components/product-picker-v2/style.d.ts +3 -0
- package/dist/cjs/components/product-picker-v2/style.js +43 -11
- package/dist/cjs/components/product-picker-v2/type.d.ts +6 -0
- package/dist/cjs/components/product-picker-v2/type.js +1 -0
- package/dist/cjs/components/product-picker-v2/variant.d.ts +32 -0
- package/dist/cjs/components/product-picker-v2/variant.js +1 -0
- package/dist/cjs/components/product-picker-v2/variantComponents.d.ts +21 -0
- package/dist/cjs/components/product-picker-v2/variantComponents.js +1 -0
- package/dist/cjs/components/side-modal/SideModal.js +1 -1
- package/dist/cjs/components/slider/index.d.ts +1 -0
- package/dist/cjs/components/slider/slider.d.ts +10 -0
- package/dist/cjs/components/slider/slider.js +1 -0
- package/dist/cjs/components/star-rating/Star.d.ts +1 -0
- package/dist/cjs/components/star-rating/Star.js +1 -1
- package/dist/cjs/components/star-rating/StarRating.d.ts +1 -0
- package/dist/cjs/components/star-rating/StarRating.js +1 -1
- package/dist/cjs/components/template-context-mapper/TemplateContextMapper.d.ts +5 -1
- package/dist/cjs/components/template-context-mapper/TemplateContextMapper.js +1 -1
- package/dist/cjs/components/template-context-mapper/context/templateModalContext.d.ts +4 -0
- package/dist/cjs/components/template-context-mapper/context/templateModalContext.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/Body.d.ts +2 -0
- package/dist/cjs/components/template-context-mapper/modalElements/Body.js +3 -4
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaV2.d.ts +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaV2.js +2 -2
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.js +2 -2
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.d.ts +3 -1
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.d.ts +2 -1
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.js +3 -3
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.d.ts +4 -1
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +24 -2
- package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
- package/dist/cjs/components/template-preview/EmailTemplatePreview.styled.js +1 -0
- package/dist/cjs/components/template-preview/SmsTemplatePreview.js +1 -1
- package/dist/cjs/components/testimonial-card/TestimonialCard.d.ts +14 -0
- package/dist/cjs/components/testimonial-card/TestimonialCard.js +1 -0
- package/dist/cjs/components/testimonial-card/TestimonialCard.style.d.ts +16 -0
- package/dist/cjs/components/testimonial-card/TestimonialCard.style.js +1 -0
- package/dist/cjs/components/testimonial-card/index.d.ts +1 -0
- package/dist/cjs/components/tooltips/Tooltip.js +1 -1
- package/dist/cjs/components/tooltips/TooltipInternal.d.ts +1 -0
- package/dist/cjs/components/tooltips/TooltipInternal.js +1 -1
- package/dist/cjs/constants/Theme.d.ts +25 -0
- package/dist/cjs/constants/Theme.js +1 -1
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +1 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -0
- package/dist/cjs/node_modules/@mui/base/node_modules/clsx/dist/clsx.mjs.js +1 -0
- package/dist/cjs/node_modules/@mui/base/useSlider/useSlider.js +1 -0
- package/dist/cjs/node_modules/@mui/base/utils/appendOwnerState.js +1 -0
- package/dist/cjs/node_modules/@mui/base/utils/areArraysEqual.js +1 -0
- package/dist/cjs/node_modules/@mui/base/utils/extractEventHandlers.js +1 -0
- package/dist/cjs/node_modules/@mui/base/utils/isHostComponent.js +1 -0
- package/dist/cjs/node_modules/@mui/base/utils/mergeSlotProps.js +1 -0
- package/dist/cjs/node_modules/@mui/base/utils/omitEventHandlers.js +1 -0
- package/dist/cjs/node_modules/@mui/base/utils/resolveComponentProps.js +1 -0
- package/dist/cjs/node_modules/@mui/base/utils/useSlotProps.js +1 -0
- package/dist/cjs/node_modules/@mui/material/Slider/Slider.js +1 -0
- package/dist/cjs/node_modules/@mui/material/Slider/SliderValueLabel.js +1 -0
- package/dist/cjs/node_modules/@mui/material/Slider/sliderClasses.js +1 -0
- package/dist/cjs/node_modules/@mui/material/colors/blue.js +1 -0
- package/dist/cjs/node_modules/@mui/material/colors/common.js +1 -0
- package/dist/cjs/node_modules/@mui/material/colors/green.js +1 -0
- package/dist/cjs/node_modules/@mui/material/colors/grey.js +1 -0
- package/dist/cjs/node_modules/@mui/material/colors/lightBlue.js +1 -0
- package/dist/cjs/node_modules/@mui/material/colors/orange.js +1 -0
- package/dist/cjs/node_modules/@mui/material/colors/purple.js +1 -0
- package/dist/cjs/node_modules/@mui/material/colors/red.js +1 -0
- package/dist/cjs/node_modules/@mui/material/node_modules/clsx/dist/clsx.mjs.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/createMixins.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/createPalette.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/createTheme.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/createTransitions.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/createTypography.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/defaultTheme.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/identifier.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/shadows.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/styled.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/useTheme.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/useThemeProps.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/zIndex.js +1 -0
- package/dist/cjs/node_modules/@mui/material/utils/capitalize.js +1 -0
- package/dist/cjs/node_modules/@mui/material/utils/shouldSpreadAdditionalProps.js +1 -0
- package/dist/cjs/node_modules/@mui/styled-engine/index.js +8 -0
- package/dist/cjs/node_modules/@mui/system/esm/borders.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/breakpoints.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/colorManipulator.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/compose.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/createStyled.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/createTheme/createBreakpoints.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/createTheme/createSpacing.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/createTheme/createTheme.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/createTheme/shape.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/cssGrid.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/memoize.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/merge.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/palette.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/propsToClassKey.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/responsivePropType.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/sizing.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/spacing.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/style.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/useTheme.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/useThemeWithoutDefault.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/capitalize/capitalize.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/deepmerge.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/formatMuiErrorMessage.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/getDisplayName.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/resolveProps.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/setRef.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/useControlled/useControlled.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/useIsFocusVisible.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/visuallyHidden.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js +10 -0
- package/dist/cjs/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.min.js +10 -0
- package/dist/cjs/node_modules/@mui/utils/node_modules/react-is/index.js +1 -0
- package/dist/cjs/node_modules/object-assign/index.js +7 -0
- package/dist/cjs/node_modules/prop-types/checkPropTypes.js +1 -0
- package/dist/cjs/node_modules/prop-types/factoryWithThrowingShims.js +1 -0
- package/dist/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +1 -0
- package/dist/cjs/node_modules/prop-types/index.js +1 -0
- package/dist/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -0
- package/dist/cjs/node_modules/prop-types/lib/has.js +1 -0
- package/dist/cjs/node_modules/react-is/cjs/react-is.development.js +9 -0
- package/dist/cjs/node_modules/react-is/cjs/react-is.production.min.js +9 -0
- package/dist/cjs/node_modules/react-is/index.js +1 -0
- package/dist/esm/_virtual/index.js +1 -0
- package/dist/esm/_virtual/index2.js +1 -0
- package/dist/esm/_virtual/index3.js +1 -0
- package/dist/esm/_virtual/react-is.development.js +1 -0
- package/dist/esm/_virtual/react-is.development2.js +1 -0
- package/dist/esm/_virtual/react-is.production.min.js +1 -0
- package/dist/esm/_virtual/react-is.production.min2.js +1 -0
- package/dist/esm/assets/icons/WhiteStarFilled.svg.js +1 -0
- package/dist/esm/assets/icons/checkCircle.svg.js +1 -0
- package/dist/esm/assets/icons/drag_handle.svg.js +1 -0
- package/dist/esm/assets/icons/quotes.svg.js +1 -0
- package/dist/esm/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
- package/dist/esm/components/QueryBuilder/Filters/Segment/components/SegmentFilter.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +2 -2
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/NumberTime.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/SingleDate.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/TwoDate.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Connector.js +1 -1
- package/dist/esm/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -1
- package/dist/esm/components/QueryBuilder/constants/connector.d.ts +6 -3
- package/dist/esm/components/QueryBuilder/constants/connector.js +1 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilder.type.d.ts +2 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilder.type.js +1 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +1 -0
- package/dist/esm/components/QueryBuilder/types/QueryBuilderOperator.type.d.ts +4 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilderOperator.type.js +1 -1
- package/dist/esm/components/SearchFilter/components/DateRangeOnlyButton.d.ts +7 -0
- package/dist/esm/components/SearchFilter/components/DateRangeOnlyButton.js +1 -0
- package/dist/esm/components/SearchFilter/components/SearchFilterItem.js +1 -1
- package/dist/esm/components/SearchFilter/types/SearchFilter.type.d.ts +4 -0
- package/dist/esm/components/accordion/Accordion.d.ts +2 -0
- package/dist/esm/components/accordion/Accordion.js +1 -1
- package/dist/esm/components/accordion/Accordion.style.d.ts +1 -0
- package/dist/esm/components/accordion/Accordion.style.js +1 -1
- package/dist/esm/components/add-variableV2/AddVariableV2.js +1 -1
- package/dist/esm/components/add-variableV2/AddVariableV2.styled.js +2 -0
- package/dist/esm/components/add-variableV2/AddVariableV2SideModal.js +1 -1
- package/dist/esm/components/alerts/Alert.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.d.ts +3 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/CommonStyles.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
- package/dist/esm/components/avatar/Avatar.js +1 -1
- package/dist/esm/components/bik-layout/BikLayout.d.ts +2 -0
- package/dist/esm/components/bik-layout/BikLayout.js +1 -1
- package/dist/esm/components/bik-layout/CommonStyles.d.ts +10 -0
- package/dist/esm/components/bik-layout/CommonStyles.js +1 -1
- package/dist/esm/components/bik-layout/FeatureModal.d.ts +1 -0
- package/dist/esm/components/bik-layout/FeatureModal.js +1 -1
- package/dist/esm/components/bik-layout/FeatureModalV2.d.ts +12 -0
- package/dist/esm/components/bik-layout/FeatureModalV2.js +1 -0
- package/dist/esm/components/bik-layout/MockMenus.d.ts +1 -0
- package/dist/esm/components/bik-layout/ShowShopifyRestrictedModal.d.ts +13 -0
- package/dist/esm/components/bik-layout/ShowShopifyRestrictedModal.js +1 -0
- package/dist/esm/components/bik-layout/index.d.ts +2 -0
- package/dist/esm/components/button/Button.js +1 -1
- package/dist/esm/components/button/Button.styled.js +1 -1
- package/dist/esm/components/button/model.d.ts +1 -1
- package/dist/esm/components/button/themes.d.ts +3 -2
- package/dist/esm/components/button/themes.js +1 -1
- package/dist/esm/components/carousel-secondary/CarouselSecondary.js +1 -1
- package/dist/esm/components/colourInput/ColourInput.js +1 -1
- package/dist/esm/components/datePicker/DatePicker.js +1 -1
- package/dist/esm/components/datePicker/DatePickerWrapper.d.ts +2 -0
- package/dist/esm/components/datePicker/DatePickerWrapper.js +1 -1
- package/dist/esm/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
- package/dist/esm/components/discount-modal/DiscountModal.d.ts +9 -0
- package/dist/esm/components/discount-modal/DiscountModal.js +1 -1
- package/dist/esm/components/discount-modal/DiscountUtils.d.ts +2 -0
- package/dist/esm/components/discount-modal/DiscountUtils.js +1 -1
- package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.d.ts +7 -5
- package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
- package/dist/esm/components/discount-modal/StaticCoupon/StaticCoupon.js +1 -1
- package/dist/esm/components/discount-modal/type.d.ts +11 -2
- package/dist/esm/components/discount-modal/type.js +1 -1
- package/dist/esm/components/dropdown/ChipDropdown.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
- package/dist/esm/components/dropdown/type.d.ts +1 -0
- package/dist/esm/components/dropdown-button/DropdownButton.js +1 -1
- package/dist/esm/components/input/Input.d.ts +1 -0
- package/dist/esm/components/input/Input.js +1 -1
- package/dist/esm/components/input/Input.styled.d.ts +6 -0
- package/dist/esm/components/input/Input.styled.js +1 -1
- package/dist/esm/components/input-with-vars/InputWithVariables.d.ts +3 -1
- package/dist/esm/components/input-with-vars/InputWithVariables.js +6 -6
- package/dist/esm/components/modals/Modal.d.ts +1 -0
- package/dist/esm/components/modals/Modal.js +1 -1
- package/dist/esm/components/modals/styledModal.d.ts +1 -0
- package/dist/esm/components/modals/styledModal.js +1 -1
- package/dist/esm/components/plans/NewSubscriptionPlan.d.ts +18 -0
- package/dist/esm/components/plans/NewSubscriptionPlan.js +1 -0
- package/dist/esm/components/plans/SubscriptionPlan.d.ts +4 -2
- package/dist/esm/components/plans/SubscriptionPlan.js +1 -1
- package/dist/esm/components/plans/SubscriptionPlanSelector.d.ts +1 -0
- package/dist/esm/components/plans/SubscriptionPlanSelector.js +1 -1
- package/dist/esm/components/plans/SubscriptionPlanStyled.d.ts +7 -0
- package/dist/esm/components/plans/SubscriptionPlanStyled.js +1 -1
- package/dist/esm/components/plans/SubscriptionPlansCollected.d.ts +14 -0
- package/dist/esm/components/plans/SubscriptionPlansCollected.js +6 -0
- package/dist/esm/components/plans/index.d.ts +2 -0
- package/dist/esm/components/product-picker/ProductPicker.styled.js +1 -1
- package/dist/esm/components/product-picker/ProductPickerModal.js +1 -1
- package/dist/esm/components/product-picker-v2/helpers/ProductHelper.d.ts +45 -0
- package/dist/esm/components/product-picker-v2/helpers/ProductHelper.js +1 -0
- package/dist/esm/components/product-picker-v2/modal.d.ts +27 -2
- package/dist/esm/components/product-picker-v2/modal.js +1 -1
- package/dist/esm/components/product-picker-v2/productScreen.d.ts +9 -1
- package/dist/esm/components/product-picker-v2/productScreen.js +1 -1
- package/dist/esm/components/product-picker-v2/rearrangeScreen.d.ts +18 -0
- package/dist/esm/components/product-picker-v2/rearrangeScreen.js +1 -0
- package/dist/esm/components/product-picker-v2/style.d.ts +3 -0
- package/dist/esm/components/product-picker-v2/style.js +41 -9
- package/dist/esm/components/product-picker-v2/type.d.ts +6 -0
- package/dist/esm/components/product-picker-v2/type.js +1 -0
- package/dist/esm/components/product-picker-v2/variant.d.ts +32 -0
- package/dist/esm/components/product-picker-v2/variant.js +1 -0
- package/dist/esm/components/product-picker-v2/variantComponents.d.ts +21 -0
- package/dist/esm/components/product-picker-v2/variantComponents.js +1 -0
- package/dist/esm/components/side-modal/SideModal.js +1 -1
- package/dist/esm/components/slider/index.d.ts +1 -0
- package/dist/esm/components/slider/slider.d.ts +10 -0
- package/dist/esm/components/slider/slider.js +1 -0
- package/dist/esm/components/star-rating/Star.d.ts +1 -0
- package/dist/esm/components/star-rating/Star.js +1 -1
- package/dist/esm/components/star-rating/StarRating.d.ts +1 -0
- package/dist/esm/components/star-rating/StarRating.js +1 -1
- package/dist/esm/components/template-context-mapper/TemplateContextMapper.d.ts +5 -1
- package/dist/esm/components/template-context-mapper/TemplateContextMapper.js +1 -1
- package/dist/esm/components/template-context-mapper/context/templateModalContext.d.ts +4 -0
- package/dist/esm/components/template-context-mapper/context/templateModalContext.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/Body.d.ts +2 -0
- package/dist/esm/components/template-context-mapper/modalElements/Body.js +5 -6
- package/dist/esm/components/template-context-mapper/modalElements/EditMediaV2.d.ts +1 -0
- package/dist/esm/components/template-context-mapper/modalElements/EditMediaV2.js +2 -2
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.js +2 -2
- package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.d.ts +3 -1
- package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.d.ts +2 -1
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.js +3 -3
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.d.ts +4 -1
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +24 -2
- package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
- package/dist/esm/components/template-preview/EmailTemplatePreview.styled.js +6 -5
- package/dist/esm/components/template-preview/SmsTemplatePreview.js +1 -1
- package/dist/esm/components/testimonial-card/TestimonialCard.d.ts +14 -0
- package/dist/esm/components/testimonial-card/TestimonialCard.js +1 -0
- package/dist/esm/components/testimonial-card/TestimonialCard.style.d.ts +16 -0
- package/dist/esm/components/testimonial-card/TestimonialCard.style.js +1 -0
- package/dist/esm/components/testimonial-card/index.d.ts +1 -0
- package/dist/esm/components/tooltips/Tooltip.js +1 -1
- package/dist/esm/components/tooltips/TooltipInternal.d.ts +1 -0
- package/dist/esm/components/tooltips/TooltipInternal.js +1 -1
- package/dist/esm/constants/Theme.d.ts +25 -0
- package/dist/esm/constants/Theme.js +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/extends.js +1 -0
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -0
- package/dist/esm/node_modules/@mui/base/node_modules/clsx/dist/clsx.mjs.js +1 -0
- package/dist/esm/node_modules/@mui/base/useSlider/useSlider.js +1 -0
- package/dist/esm/node_modules/@mui/base/utils/appendOwnerState.js +1 -0
- package/dist/esm/node_modules/@mui/base/utils/areArraysEqual.js +1 -0
- package/dist/esm/node_modules/@mui/base/utils/extractEventHandlers.js +1 -0
- package/dist/esm/node_modules/@mui/base/utils/isHostComponent.js +1 -0
- package/dist/esm/node_modules/@mui/base/utils/mergeSlotProps.js +1 -0
- package/dist/esm/node_modules/@mui/base/utils/omitEventHandlers.js +1 -0
- package/dist/esm/node_modules/@mui/base/utils/resolveComponentProps.js +1 -0
- package/dist/esm/node_modules/@mui/base/utils/useSlotProps.js +1 -0
- package/dist/esm/node_modules/@mui/material/Slider/Slider.js +1 -0
- package/dist/esm/node_modules/@mui/material/Slider/SliderValueLabel.js +1 -0
- package/dist/esm/node_modules/@mui/material/Slider/sliderClasses.js +1 -0
- package/dist/esm/node_modules/@mui/material/colors/blue.js +1 -0
- package/dist/esm/node_modules/@mui/material/colors/common.js +1 -0
- package/dist/esm/node_modules/@mui/material/colors/green.js +1 -0
- package/dist/esm/node_modules/@mui/material/colors/grey.js +1 -0
- package/dist/esm/node_modules/@mui/material/colors/lightBlue.js +1 -0
- package/dist/esm/node_modules/@mui/material/colors/orange.js +1 -0
- package/dist/esm/node_modules/@mui/material/colors/purple.js +1 -0
- package/dist/esm/node_modules/@mui/material/colors/red.js +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/clsx/dist/clsx.mjs.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/createMixins.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/createPalette.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/createTheme.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/createTransitions.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/createTypography.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/defaultTheme.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/identifier.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/shadows.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/styled.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/useTheme.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/useThemeProps.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/zIndex.js +1 -0
- package/dist/esm/node_modules/@mui/material/utils/capitalize.js +1 -0
- package/dist/esm/node_modules/@mui/material/utils/shouldSpreadAdditionalProps.js +1 -0
- package/dist/esm/node_modules/@mui/styled-engine/index.js +8 -0
- package/dist/esm/node_modules/@mui/system/esm/borders.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/breakpoints.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/colorManipulator.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/compose.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/createStyled.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/createTheme/createBreakpoints.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/createTheme/createSpacing.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/createTheme/createTheme.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/createTheme/shape.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/cssGrid.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/memoize.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/merge.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/palette.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/propsToClassKey.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/responsivePropType.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/sizing.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/spacing.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/style.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/useTheme.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/useThemeWithoutDefault.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/capitalize/capitalize.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/deepmerge.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/formatMuiErrorMessage.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/getDisplayName.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/resolveProps.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/setRef.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/useControlled/useControlled.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/useIsFocusVisible.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/visuallyHidden.js +1 -0
- package/dist/esm/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js +10 -0
- package/dist/esm/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.min.js +10 -0
- package/dist/esm/node_modules/@mui/utils/node_modules/react-is/index.js +1 -0
- package/dist/esm/node_modules/object-assign/index.js +6 -0
- package/dist/esm/node_modules/prop-types/checkPropTypes.js +1 -0
- package/dist/esm/node_modules/prop-types/factoryWithThrowingShims.js +1 -0
- package/dist/esm/node_modules/prop-types/factoryWithTypeCheckers.js +1 -0
- package/dist/esm/node_modules/prop-types/index.js +1 -0
- package/dist/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -0
- package/dist/esm/node_modules/prop-types/lib/has.js +1 -0
- package/dist/esm/node_modules/react-is/cjs/react-is.development.js +9 -0
- package/dist/esm/node_modules/react-is/cjs/react-is.production.min.js +9 -0
- package/dist/esm/node_modules/react-is/index.js +1 -0
- package/package.json +6 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,r=require("../../_virtual/index2.js"),o=require("./cjs/react-is.production.min.js"),s=require("./cjs/react-is.development.js");exports.__require=function(){return e||(e=1,"production"===process.env.NODE_ENV?r.__module.exports=o.__require():r.__module.exports=s.__require()),r.__module.exports};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={exports:{}};export{e as __module};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={exports:{}};export{e as __module};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={exports:{}};export{e as __module};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r={};export{r as __exports};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r={};export{r as __exports};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r={};export{r as __exports};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r={};export{r as __exports};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react";var t,l;function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},a.apply(this,arguments)}var r=r=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 13"},r),t||(t=e.createElement("g",{clipPath:"url(#WhiteStarFilled_svg__a)"},e.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M7.036.759c.196 0 .376.111.463.288l1.478 2.994 3.306.483a.517.517 0 0 1 .286.883l-2.391 2.329.564 3.29a.517.517 0 0 1-.75.546l-2.956-1.555-2.956 1.555a.517.517 0 0 1-.75-.546l.564-3.29-2.392-2.33a.517.517 0 0 1 .286-.882l3.306-.483 1.478-2.994a.517.517 0 0 1 .464-.288Z",clipRule:"evenodd"}))),l||(l=e.createElement("defs",null,e.createElement("clipPath",{id:"WhiteStarFilled_svg__a"},e.createElement("path",{fill:"#fff",d:"M.829.241h12.414v12.414H.829z"})))));export{r as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react";var t,r;function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},a.apply(this,arguments)}var n=n=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},n),t||(t=e.createElement("g",{stroke:"#616161",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.256,clipPath:"url(#checkCircle_svg__a)"},e.createElement("path",{d:"M6.875 10.625 8.75 12.5l4.375-4.375"}),e.createElement("path",{d:"M10 17.5a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15Z"}))),r||(r=e.createElement("defs",null,e.createElement("clipPath",{id:"checkCircle_svg__a"},e.createElement("path",{fill:"#fff",d:"M0 0h20v20H0z"})))));export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react";var t;function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},a.apply(this,arguments)}var r=r=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},r),t||(t=e.createElement("g",{fill:"#9E9E9E"},e.createElement("path",{d:"M5 9a1 1 0 0 0 0 2h14a1 1 0 1 0 0-2H5ZM5 13a1 1 0 1 0 0 2h14a1 1 0 1 0 0-2H5Z"}))));export{r as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as t from"react";var e;function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},r.apply(this,arguments)}var a=a=>t.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 29 21"},a),e||(e=t.createElement("path",{fill:"#DDCCF0",d:"M10.275 3.39 8.439 1.8C6.532 3.049 4.884 4.86 3.496 7.239c-1.366 2.354-2.048 4.638-2.048 6.85 0 1.695.447 2.92 1.341 3.672.895.73 2.013 1.095 3.355 1.095 1.153 0 2.13-.447 2.93-1.342.8-.894 1.2-1.895 1.2-3.001 0-2.801-1.517-4.202-4.554-4.202l-.141-.212c.47-2.33 2.036-4.566 4.696-6.708Zm13.064 0-1.8-1.59c-1.93 1.248-3.59 3.06-4.98 5.438-1.365 2.354-2.047 4.638-2.047 6.85 0 1.695.447 2.92 1.342 3.672.894.73 2.024 1.095 3.39 1.095 1.153 0 2.118-.447 2.895-1.342.8-.894 1.2-1.895 1.2-3.001 0-2.801-1.518-4.202-4.555-4.202l-.141-.212c.494-2.307 2.06-4.543 4.696-6.708ZM11.052 0l3.919 3.39c-2.66 2.26-4.355 4.143-5.085 5.649 1.695.188 2.884.906 3.567 2.154.565-2.119 1.6-4.214 3.107-6.285C18.09 2.836 19.773 1.2 21.609 0h2.542l3.884 3.39c-2.636 2.26-4.32 4.143-5.049 5.649 2.895.424 4.343 2.248 4.343 5.473 0 1.6-.683 2.966-2.048 4.096-1.342 1.13-3.354 1.694-6.038 1.694-2.848 0-4.731-1.059-5.65-3.177-1.011 2.118-3.495 3.177-7.45 3.177-1.788 0-3.26-.494-4.413-1.482C.577 17.83 0 16.254 0 14.088c0-2.4.836-4.978 2.507-7.732C4.202 3.6 6.214 1.483 8.545 0h2.507Z"})));export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e}from"../../../../../_virtual/_tslib.js";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useState as t,useEffect as a}from"react";import{iterateOnOptions as l}from"../../../../dropdown/OpenedDropdown/utils/iterationOnOptions.js";import i from"../../../components/AllowedListDropdown.js";import n from"../../../components/Connectors/Connector.js";import{ApiResponseHelper as d}from"../../../helpers/ApiResponse.helper.js";import{useQueryBuilder as u}from"../../../hooks/useQueryBuilder.js";import{useQueryBuilderCache as v}from"../../../hooks/useQueryBuilderCache.js";import{QueryBuilderConnectorType as p}from"../../../types/QueryBuilder.type.js";import{FREQUENCY_OPERATORS as s,DATE_OPERATORS as c}from"../../../types/QueryBuilderOperator.type.js";import y from"../../../components/DropdownWrapper.js";import{BaseQueryBuilderNode as m}from"../../../components/QueryBuilderNode/Base/BaseQueryBuilderNode.js";const f=new d,h=d=>{let{node:h,allowedNodes:T,apiHandler:_,mode:j,selectorKey:k}=d;var O,g,N,b,w,P,q,x,C,S,V,B,E,A,D,Q,M,L;const[$,J]=t([]),[K,R]=t(!1),{deleteProperty:W,createProperty:G,selectType:H,createMeta:z,updateMeta:F,updateProperty:I,selectPropertyJoinOperator:U,clearProperty:X}=u(k),{cacheWrap:Y}=v(),[Z,ee]=t(!0),oe=null===(O=null==h?void 0:h.metas)||void 0===O?void 0:O.find((e=>"date"===e.key)),re=null===(g=null==h?void 0:h.metas)||void 0===g?void 0:g.find((e=>"frequency"===e.key)),te=null===(N=null==h?void 0:h.metas)||void 0===N?void 0:N.find((e=>"eventName"===e.key)),[ae,le]=t(!1),[ie,ne]=t(!1),[de,ue]=t(!1);return a((()=>{Y((()=>_({})),"EVENT_NAMES").then((e=>{ee(!1);const o=f.convertToGroupOptions(e,(null==te?void 0:te.value)?[te.value]:void 0);if("create"!==j&&te)return J([...o]),void R(!0);J([...o]),R(!0)}))}),[]),o(m,Object.assign({selectPropertyJoinOperator:U,node:h,addPropertyBtnText:(null==te?void 0:te.value)&&"Add event property",deleteProperty:W,createProperty:G,propertySelectorText:"Select property",fetchPropertyData:function(){return e(this,void 0,void 0,(function*(){var e;return yield(e=null==te?void 0:te.value,Y((()=>_({query:{eventName:e}})),`EVENT_NAMES_${e}`))}))},onPropertyNameSelect:function(o,r){return e(this,void 0,void 0,(function*(){if(I(Object.assign(Object.assign({},r),{name:o.id,dataType:o.type,operator:void 0,value:void 0,error:{}}),h._id),!o.needValuesRetrieval)return[];const e=yield((e,o)=>Y((()=>_({query:{eventName:e,propertyName:o}})),`EVENT_NAMES_${e}_${o}`))(null==te?void 0:te.value,o.id);return null!=e?e:[]}))},onPropertyOperatorChange:function(e,o){I(Object.assign(Object.assign({},o),{operator:e,value:void 0,error:{}}),h._id)},onPropertyValueChange:function(e,o){I(Object.assign(Object.assign({},o),{value:e,error:{}}),h._id)},mode:j,onPropertyValueSearch:function(o,r){var t,a;return e(this,void 0,void 0,(function*(){const l=yield((o,r,t)=>e(void 0,void 0,void 0,(function*(){return yield _({query:{eventName:o,propertyName:r,searchKey:t}})})))(null==te?void 0:te.value,r.name,o);return null!==(a=null===(t=null==l?void 0:l.data)||void 0===t?void 0:t.map((e=>({label:e.name,value:e.id,selected:!1}))))&&void 0!==a?a:[]}))}},{children:r("div",Object.assign({style:{flexDirection:"column",display:"flex",gap:12}},{children:[r("div",Object.assign({style:{flexDirection:"row",display:"flex",gap:12}},{children:[o(i,{disabled:"view"===j,selectedType:h.type,allowedList:T,onSelect:function(e){le(!0),J((e=>[...l(e,{selected:!1})])),setTimeout((()=>{H(e.value,h._id),le(!1)}),1)}}),!ae&&o(y,{isSearchable:!0,isLoading:Z,disabled:"view"===j,width:"200px",dropdownLabel:"Select event name",options:$,selectedValues:(null==te?void 0:te.value)?[te.value]:void 0,onSelect:function(e){Array.isArray(e)||(X(h._id),te?F({key:"eventName",value:e.value,error:{}},h._id):z({key:"eventName",value:e.value},h._id),re?(ne(!0),setTimeout((()=>{F({key:"frequency",value:{dataType:p.frequency,operator:s.atleast,value:1},error:{}},h._id),ne(!1)}),1)):z({key:"frequency",value:{dataType:p.frequency,operator:s.atleast,value:1}},h._id),oe?(ue(!0),setTimeout((()=>{F({key:"date",value:{dataType:p.date,operator:c["last
|
|
1
|
+
import{__awaiter as e}from"../../../../../_virtual/_tslib.js";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useState as t,useEffect as a}from"react";import{iterateOnOptions as l}from"../../../../dropdown/OpenedDropdown/utils/iterationOnOptions.js";import i from"../../../components/AllowedListDropdown.js";import n from"../../../components/Connectors/Connector.js";import{ApiResponseHelper as d}from"../../../helpers/ApiResponse.helper.js";import{useQueryBuilder as u}from"../../../hooks/useQueryBuilder.js";import{useQueryBuilderCache as v}from"../../../hooks/useQueryBuilderCache.js";import{QueryBuilderConnectorType as p}from"../../../types/QueryBuilder.type.js";import{FREQUENCY_OPERATORS as s,DATE_OPERATORS as c}from"../../../types/QueryBuilderOperator.type.js";import y from"../../../components/DropdownWrapper.js";import{BaseQueryBuilderNode as m}from"../../../components/QueryBuilderNode/Base/BaseQueryBuilderNode.js";const f=new d,h=d=>{let{node:h,allowedNodes:T,apiHandler:_,mode:j,selectorKey:k}=d;var O,g,N,b,w,P,q,x,C,S,V,B,E,A,D,Q,M,L;const[$,J]=t([]),[K,R]=t(!1),{deleteProperty:W,createProperty:G,selectType:H,createMeta:z,updateMeta:F,updateProperty:I,selectPropertyJoinOperator:U,clearProperty:X}=u(k),{cacheWrap:Y}=v(),[Z,ee]=t(!0),oe=null===(O=null==h?void 0:h.metas)||void 0===O?void 0:O.find((e=>"date"===e.key)),re=null===(g=null==h?void 0:h.metas)||void 0===g?void 0:g.find((e=>"frequency"===e.key)),te=null===(N=null==h?void 0:h.metas)||void 0===N?void 0:N.find((e=>"eventName"===e.key)),[ae,le]=t(!1),[ie,ne]=t(!1),[de,ue]=t(!1);return a((()=>{Y((()=>_({})),"EVENT_NAMES").then((e=>{ee(!1);const o=f.convertToGroupOptions(e,(null==te?void 0:te.value)?[te.value]:void 0);if("create"!==j&&te)return J([...o]),void R(!0);J([...o]),R(!0)}))}),[]),o(m,Object.assign({selectPropertyJoinOperator:U,node:h,addPropertyBtnText:(null==te?void 0:te.value)&&"Add event property",deleteProperty:W,createProperty:G,propertySelectorText:"Select property",fetchPropertyData:function(){return e(this,void 0,void 0,(function*(){var e;return yield(e=null==te?void 0:te.value,Y((()=>_({query:{eventName:e}})),`EVENT_NAMES_${e}`))}))},onPropertyNameSelect:function(o,r){return e(this,void 0,void 0,(function*(){if(I(Object.assign(Object.assign({},r),{name:o.id,dataType:o.type,operator:void 0,value:void 0,error:{}}),h._id),!o.needValuesRetrieval)return[];const e=yield((e,o)=>Y((()=>_({query:{eventName:e,propertyName:o}})),`EVENT_NAMES_${e}_${o}`))(null==te?void 0:te.value,o.id);return null!=e?e:[]}))},onPropertyOperatorChange:function(e,o){I(Object.assign(Object.assign({},o),{operator:e,value:void 0,error:{}}),h._id)},onPropertyValueChange:function(e,o){I(Object.assign(Object.assign({},o),{value:e,error:{}}),h._id)},mode:j,onPropertyValueSearch:function(o,r){var t,a;return e(this,void 0,void 0,(function*(){const l=yield((o,r,t)=>e(void 0,void 0,void 0,(function*(){return yield _({query:{eventName:o,propertyName:r,searchKey:t}})})))(null==te?void 0:te.value,r.name,o);return null!==(a=null===(t=null==l?void 0:l.data)||void 0===t?void 0:t.map((e=>({label:e.name,value:e.id,selected:!1}))))&&void 0!==a?a:[]}))}},{children:r("div",Object.assign({style:{flexDirection:"column",display:"flex",gap:12}},{children:[r("div",Object.assign({style:{flexDirection:"row",display:"flex",gap:12}},{children:[o(i,{disabled:"view"===j,selectedType:h.type,allowedList:T,onSelect:function(e){le(!0),J((e=>[...l(e,{selected:!1})])),setTimeout((()=>{H(e.value,h._id),le(!1)}),1)}}),!ae&&o(y,{isSearchable:!0,isLoading:Z,disabled:"view"===j,width:"200px",dropdownLabel:"Select event name",options:$,selectedValues:(null==te?void 0:te.value)?[te.value]:void 0,onSelect:function(e){Array.isArray(e)||(X(h._id),te?F({key:"eventName",value:e.value,error:{}},h._id):z({key:"eventName",value:e.value},h._id),re?(ne(!0),setTimeout((()=>{F({key:"frequency",value:{dataType:p.frequency,operator:s.atleast,value:1},error:{}},h._id),ne(!1)}),1)):z({key:"frequency",value:{dataType:p.frequency,operator:s.atleast,value:1}},h._id),oe?(ue(!0),setTimeout((()=>{F({key:"date",value:{dataType:p.date,operator:c["last 30 days"]},error:{}},h._id),ue(!1)}),1)):z({key:"date",value:{dataType:p.date,operator:c["last 30 days"]}},h._id))},error:null!==(C=null!==(q=null===(P=null===(w=null===(b=h.metas)||void 0===b?void 0:b[0])||void 0===w?void 0:w.error)||void 0===P?void 0:P.key)&&void 0!==q?q:null===(x=null==te?void 0:te.error)||void 0===x?void 0:x.key)&&void 0!==C?C:null===(S=null==te?void 0:te.error)||void 0===S?void 0:S.value})]})),(null==re?void 0:re.key)&&!ie&&o(n,{disabled:"view"===j,extra:{},errors:{val:null===(B=null===(V=re.error)||void 0===V?void 0:V.value)||void 0===B?void 0:B.value,operator:null===(A=null===(E=re.error)||void 0===E?void 0:E.value)||void 0===A?void 0:A.operator},connectorVal:re.value.value,connectorType:re.value.dataType,defaultConnector:re.value.operator,onOperatorChange:function(e){F({key:"frequency",value:{dataType:p.frequency,operator:e,value:1},error:{}},h._id)},onValueChange:function(e){var o;K&&F({key:"frequency",value:{dataType:p.frequency,operator:null===(o=null==re?void 0:re.value)||void 0===o?void 0:o.operator,value:e},error:{}},h._id)}}),(null==oe?void 0:oe.key)&&!de&&o(n,{disabled:"view"===j,extra:{},errors:{val:null===(Q=null===(D=oe.error)||void 0===D?void 0:D.value)||void 0===Q?void 0:Q.value,operator:null===(L=null===(M=oe.error)||void 0===M?void 0:M.value)||void 0===L?void 0:L.operator},connectorVal:oe.value.value,connectorType:oe.value.dataType,defaultConnector:oe.value.operator,onOperatorChange:function(e){F({key:"date",value:{dataType:p.date,operator:e,value:void 0},error:{}},h._id)},onValueChange:function(e){var o;K&&F({key:"date",value:{dataType:p.date,operator:null===(o=null==oe?void 0:oe.value)||void 0===o?void 0:o.operator,value:e},error:{}},h._id)}})]}))}))};export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as o}from"react/jsx-runtime";import{useState as l,useEffect as r}from"react";import i from"../../../components/AllowedListDropdown.js";import{ApiResponseHelper as d}from"../../../helpers/ApiResponse.helper.js";import{useQueryBuilder as n}from"../../../hooks/useQueryBuilder.js";import{useQueryBuilderCache as s}from"../../../hooks/useQueryBuilderCache.js";import t from"../../../components/DropdownWrapper.js";import{BaseQueryBuilderNode as a}from"../../../components/QueryBuilderNode/Base/BaseQueryBuilderNode.js";const u=new d,v=d=>{let{node:v,allowedNodes:p,apiHandler:c,mode:m,selectorKey:y}=d;var f,h,w,g,j,k,A,b,
|
|
1
|
+
import{jsx as e,jsxs as o}from"react/jsx-runtime";import{useState as l,useEffect as r}from"react";import i from"../../../components/AllowedListDropdown.js";import{ApiResponseHelper as d}from"../../../helpers/ApiResponse.helper.js";import{useQueryBuilder as n}from"../../../hooks/useQueryBuilder.js";import{useQueryBuilderCache as s}from"../../../hooks/useQueryBuilderCache.js";import t from"../../../components/DropdownWrapper.js";import{BaseQueryBuilderNode as a}from"../../../components/QueryBuilderNode/Base/BaseQueryBuilderNode.js";const u=new d,v=d=>{let{node:v,allowedNodes:p,apiHandler:c,mode:m,selectorKey:y}=d;var f,h,w,g,j,k,A,b,D;const{updateMeta:B,selectType:x,createMeta:I}=n(y),{cacheWrap:L}=s(),[S,T]=l(!1),[_,N]=l([]),Q=v.metas.find((e=>"segmentID"===e.key));return r((()=>{I({key:"segmentID"},v._id),L((()=>c({})),"SEGMENT_FILTER").then((e=>{if(e&&Array.isArray(e))N([...e.map((e=>({label:e.name,value:e.id,description:e.description,selected:"create"!==m&&(!!(null==Q?void 0:Q.value)&&Q.value===e.id)})))]);else{const o=u.convertToGroupOptions(e,(null==Q?void 0:Q.value)?[Q.value]:void 0);N([...o])}T(!1)}))}),[]),e(a,Object.assign({node:v,mode:m},{children:o("div",Object.assign({style:{flexDirection:"row",display:"flex",gap:12}},{children:[e(i,{disabled:"view"===m,loading:S,selectedType:v.type,allowedList:p,onSelect:function(e){Array.isArray(e)||(T(!0),x(e.value,v._id),I({key:"segmentID"},v._id)),T(!1)}}),(null===(h=null===(f=null==v?void 0:v.metas)||void 0===f?void 0:f[0])||void 0===h?void 0:h.key)&&e(t,{selectedValues:(null==Q?void 0:Q.value)?[Q.value]:void 0,isSearchable:!0,isLoading:S,disabled:"view"===m,width:"200px",dropdownLabel:"Select segment",options:_,onSelect:function(e){Array.isArray(e)||B({key:"segmentID",value:e.value,error:{}},v._id)},error:null!==(b=null!==(k=null===(j=null===(g=null===(w=v.metas)||void 0===w?void 0:w[0])||void 0===g?void 0:g.error)||void 0===j?void 0:j.key)&&void 0!==k?k:null===(A=null==Q?void 0:Q.error)||void 0===A?void 0:A.key)&&void 0!==b?b:null===(D=null==Q?void 0:Q.error)||void 0===D?void 0:D.value})]}))}))};export{v as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r}from"react/jsx-runtime";import
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import o from"styled-components";import{BodySecondary as t}from"../../../../TypographyStyle.js";import n from"./IntegerPositiveSingle.js";const i=o.div`
|
|
2
2
|
flex-direction: row;
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
5
5
|
gap: 8px;
|
|
6
|
-
`,s=
|
|
6
|
+
`,s=o=>{let{val:s,onChange:a,errors:l,disabled:p,connectorType:c}=o;return r(i,{children:[e(n,{disabled:p,val:s,onChange:a,errors:l,connectorType:c}),e(t,{children:"time(s)"})]})};var a=r=>e(s,Object.assign({},r));export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import I from"@emotion/styled/base";import{jsx as g,jsxs as
|
|
1
|
+
import I from"@emotion/styled/base";import{jsx as g,jsxs as C}from"react/jsx-runtime";import{useState as l,useEffect as c}from"react";import"../../../../dropdown/DropdownPopover/index.js";import{Dropdown as o}from"../../../../dropdown/Dropdown.js";import"../../../../dropdown/ChipDropdown.js";import"../../../../zeroState/ZeroState.js";import"../../../../TypographyStyle.js";import"../../../../../constants/Theme.js";import"../../../../dropdown/OpenedDropdown/components/description/Description.styled.js";import"../../../../checkBox/CheckBox.styled.js";import"../../../../list-item/ListItem.js";import"../../../../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js";import"../../../../dropdown/OpenedDropdown/components/menu/MenuItem.js";import"../../../../dropdown/OpenedDropdown/components/menu/MenuList.styled.js";import"../../../../button/Button.js";import"../../../../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js";import"../../../../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js";import{Input as d}from"../../../../input/Input.js";import{InputStyleContext as e}from"../../../../input/context/InputStyleProvider.js";import"../../../../dropdown/MenuItem/MenuItem.js";import n from"../../InputLoader.js";const b=I("div","production"===process.env.NODE_ENV?{target:"e18hgh550"}:{target:"e18hgh550",label:"Container"})("production"===process.env.NODE_ENV?{name:"180p6fo",styles:"display:flex;flex-direction:row;gap:12px"}:{name:"180p6fo",styles:"display:flex;flex-direction:row;gap:12px",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkluVGhlTGFzdC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBTzZCIiwiZmlsZSI6IkluVGhlTGFzdC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBqc3ggYXMgX2pzeCwganN4cyBhcyBfanN4cyB9IGZyb20gXCJyZWFjdC9qc3gtcnVudGltZVwiO1xyXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XHJcbmltcG9ydCB7IHVzZUVmZmVjdCwgdXNlU3RhdGUgfSBmcm9tICdyZWFjdCc7XHJcbmltcG9ydCB7IERyb3Bkb3duIH0gZnJvbSBcIi4uLy4uLy4uLy4uL2Ryb3Bkb3duXCI7XHJcbmltcG9ydCB7IElucHV0IH0gZnJvbSBcIi4uLy4uLy4uLy4uL2lucHV0XCI7XHJcbmltcG9ydCB7IElucHV0U3R5bGVDb250ZXh0IH0gZnJvbSBcIi4uLy4uLy4uLy4uL2lucHV0L2NvbnRleHQvSW5wdXRTdHlsZVByb3ZpZGVyXCI7XHJcbmltcG9ydCBJbnB1dExvYWRlciBmcm9tICcuLi8uLi9JbnB1dExvYWRlcic7XHJcbmNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXYgYFxuXHRkaXNwbGF5OiBmbGV4O1xuXHRmbGV4LWRpcmVjdGlvbjogcm93O1xuXHRnYXA6IDEycHg7XG5gO1xyXG5jb25zdCB0aW1lT3B0aW9ucyA9IChjb25uZWN0b3JUeXBlKSA9PiB7XHJcbiAgICBpZiAoY29ubmVjdG9yVHlwZSA9PT0gJ2V4YWN0bHknKSB7XHJcbiAgICAgICAgcmV0dXJuIFtcclxuICAgICAgICAgICAge1xyXG4gICAgICAgICAgICAgICAgbGFiZWw6ICdkYXkocyknLFxyXG4gICAgICAgICAgICAgICAgdmFsdWU6ICdkYXlzJyxcclxuICAgICAgICAgICAgfSxcclxuICAgICAgICBdO1xyXG4gICAgfVxyXG4gICAgZWxzZSB7XHJcbiAgICAgICAgcmV0dXJuIFtcclxuICAgICAgICAgICAge1xyXG4gICAgICAgICAgICAgICAgbGFiZWw6ICdkYXkocyknLFxyXG4gICAgICAgICAgICAgICAgdmFsdWU6ICdkYXlzJyxcclxuICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgeyBsYWJlbDogJ21pbnV0ZShzKScsIHZhbHVlOiAnbWludXRlcycgfSxcclxuICAgICAgICAgICAgeyBsYWJlbDogJ2hvdXIocyknLCB2YWx1ZTogJ2hvdXJzJyB9LFxyXG4gICAgICAgIF07XHJcbiAgICB9XHJcbn07XHJcbmNvbnN0IEluVGhlTGFzdCA9ICh7IHZhbCwgb25DaGFuZ2UsIGVycm9ycywgaXNMb2FkaW5nLCBkaXNhYmxlZCwgY29ubmVjdG9yVHlwZSwgfSkgPT4ge1xyXG4gICAgdmFyIF9hLCBfYjtcclxuICAgIGNvbnN0IFtvcHRpb25zLCBzZXRPcHRpb25zXSA9IHVzZVN0YXRlKHRpbWVPcHRpb25zKGNvbm5lY3RvclR5cGUpKTtcclxuICAgIGNvbnN0IHRpbWUgPSAoX2EgPSB2YWwgPT09IG51bGwgfHwgdmFsID09PSB2b2lkIDAgPyB2b2lkIDAgOiB2YWxbMV0pICE9PSBudWxsICYmIF9hICE9PSB2b2lkIDAgPyBfYSA6ICdkYXlzJztcclxuICAgIGNvbnN0IG51bSA9IChfYiA9IHZhbCA9PT0gbnVsbCB8fCB2YWwgPT09IHZvaWQgMCA/IHZvaWQgMCA6IHZhbFswXSkgIT09IG51bGwgJiYgX2IgIT09IHZvaWQgMCA/IF9iIDogJzEnO1xyXG4gICAgdXNlRWZmZWN0KCgpID0+IHtcclxuICAgICAgICB2YXIgX2E7XHJcbiAgICAgICAgY29uc3QgdGltZSA9IChfYSA9IHZhbCA9PT0gbnVsbCB8fCB2YWwgPT09IHZvaWQgMCA/IHZvaWQgMCA6IHZhbFsxXSkgIT09IG51bGwgJiYgX2EgIT09IHZvaWQgMCA/IF9hIDogJ2RheXMnO1xyXG4gICAgICAgIHNldE9wdGlvbnMoKHByZXYpID0+IHByZXYubWFwKChvcCkgPT4gKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSwgb3ApLCB7IHNlbGVjdGVkOiB0aW1lID09PSBvcC52YWx1ZSB9KSkpKTtcclxuICAgIH0sIFt2YWxdKTtcclxuICAgIHVzZUVmZmVjdCgoKSA9PiB7XHJcbiAgICAgICAgdmFyIF9hO1xyXG4gICAgICAgIGlmICh0eXBlb2YgKHZhbCA9PT0gbnVsbCB8fCB2YWwgPT09IHZvaWQgMCA/IHZvaWQgMCA6IHZhbFswXSkgPT09ICd1bmRlZmluZWQnKSB7XHJcbiAgICAgICAgICAgIGNvbnN0IHRpbWUgPSAoX2EgPSB2YWwgPT09IG51bGwgfHwgdmFsID09PSB2b2lkIDAgPyB2b2lkIDAgOiB2YWxbMV0pICE9PSBudWxsICYmIF9hICE9PSB2b2lkIDAgPyBfYSA6ICdkYXlzJztcclxuICAgICAgICAgICAgb25DaGFuZ2UgPT09IG51bGwgfHwgb25DaGFuZ2UgPT09IHZvaWQgMCA/IHZvaWQgMCA6IG9uQ2hhbmdlKFsnMScsIHRpbWVdKTtcclxuICAgICAgICB9XHJcbiAgICB9LCBbXSk7XHJcbiAgICBpZiAoaXNMb2FkaW5nKSB7XHJcbiAgICAgICAgcmV0dXJuIChfanN4KFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyBzdHlsZTogeyB3aWR0aDogMjAwIH0gfSwgeyBjaGlsZHJlbjogX2pzeChJbnB1dExvYWRlciwgeyBjb250YWluZXJTdHlsZTogeyBwYWRkaW5nOiAnNXB4IDhweCcgfSB9KSB9KSkpO1xyXG4gICAgfVxyXG4gICAgcmV0dXJuIChfanN4KElucHV0U3R5bGVDb250ZXh0LlByb3ZpZGVyLCBPYmplY3QuYXNzaWduKHsgdmFsdWU6IHtcclxuICAgICAgICAgICAgSW5wdXRXcmFwcGVyOiB7XHJcbiAgICAgICAgICAgICAgICB3aWR0aDogMTA0LFxyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgIH0gfSwgeyBjaGlsZHJlbjogX2pzeHMoQ29udGFpbmVyLCB7IGNoaWxkcmVuOiBbX2pzeChJbnB1dCwgeyB0eXBlOiBcIm51bWJlclwiLCB2YXJpYW50OiBcInNtYWxsXCIsIHN0YXRlOiBkaXNhYmxlZCA/ICdkaXNhYmxlZCcgOiAnbm9uZScsIGVycm9yTWVzc2FnZTogZXJyb3JzID09PSBudWxsIHx8IGVycm9ycyA9PT0gdm9pZCAwID8gdm9pZCAwIDogZXJyb3JzLnZhbCwgdmFsdWU6IG51bSwgb25DaGFuZ2VUZXh0OiAodGV4dCkgPT4gb25DaGFuZ2UgPT09IG51bGwgfHwgb25DaGFuZ2UgPT09IHZvaWQgMCA/IHZvaWQgMCA6IG9uQ2hhbmdlKFt0ZXh0LCB0aW1lXSkgfSksIF9qc3goRHJvcGRvd24sIHsgZGlzYWJsZWQ6IGRpc2FibGVkLCBwbGFjZUhvbGRlcjogXCJUaW1lXCIsIHdpZHRoOiBcIjEwOHB4XCIsIHNpemU6IFwic21hbGxcIiwgb3B0aW9uczogb3B0aW9ucywgb25TZWxlY3Q6IChvcHRpb24pID0+IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgb25DaGFuZ2UgPT09IG51bGwgfHwgb25DaGFuZ2UgPT09IHZvaWQgMCA/IHZvaWQgMCA6IG9uQ2hhbmdlKFtudW0sIG9wdGlvbi52YWx1ZV0pO1xyXG4gICAgICAgICAgICAgICAgICAgIH0gfSldIH0pIH0pKSk7XHJcbn07XHJcbmNvbnN0IEluVGhlTGFzdFdyYXBwZXIgPSAocHJvcHMpID0+IChfanN4KEluVGhlTGFzdCwgT2JqZWN0LmFzc2lnbih7fSwgcHJvcHMpKSk7XHJcbmV4cG9ydCBkZWZhdWx0IEluVGhlTGFzdFdyYXBwZXI7XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPUluVGhlTGFzdC5qcy5tYXAiXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}),A=I=>{let{val:A,onChange:t,errors:i,isLoading:s,disabled:u,connectorType:p}=I;var a,X;const[m,y]=l((I=>"exactly"===I?[{label:"day(s)",value:"days"}]:[{label:"day(s)",value:"days"},{label:"minute(s)",value:"minutes"},{label:"hour(s)",value:"hours"}])(p)),r=null!==(a=null==A?void 0:A[1])&&void 0!==a?a:"days",B=null!==(X=null==A?void 0:A[0])&&void 0!==X?X:"1";return c((()=>{var I;const g=null!==(I=null==A?void 0:A[1])&&void 0!==I?I:"days";y((I=>I.map((I=>Object.assign(Object.assign({},I),{selected:g===I.value})))))}),[A]),c((()=>{var I;if(void 0===(null==A?void 0:A[0])){const g=null!==(I=null==A?void 0:A[1])&&void 0!==I?I:"days";null==t||t(["1",g])}}),[]),s?g("div",Object.assign({style:{width:200}},{children:g(n,{containerStyle:{padding:"5px 8px"}})})):g(e.Provider,Object.assign({value:{InputWrapper:{width:104}}},{children:C(b,{children:[g(d,{type:"number",variant:"small",state:u?"disabled":"none",errorMessage:null==i?void 0:i.val,value:B,onChangeText:I=>null==t?void 0:t([I,r])}),g(o,{disabled:u,placeHolder:"Time",width:"108px",size:"small",options:m,onSelect:I=>{null==t||t([B,I.value])}})]})}))},t=I=>g(A,Object.assign({},I));export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{BodySecondary as
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{BodySecondary as n}from"../../../../TypographyStyle.js";import t from"./IntegerPositiveSingle.js";const i=i=>{let{val:o,onChange:a,errors:l,nativeID:s,disabled:c,connectorType:d}=i;const p=parseInt(null==o?void 0:o.toString())>1?"days":"day";return r("div",Object.assign({style:{flexDirection:"row",display:"flex",gap:8,alignItems:"center"}},{children:[e(t,{connectorType:d,disabled:c,nativeID:s,val:null!=o?o:1,onChange:a,errors:l}),e("div",{children:e(n,{children:p})})]}))};var o=r=>e(i,Object.assign({},r));export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{useEffect as t}from"react";import
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{useEffect as t}from"react";import a from"../../../../datePicker/DatePickerWrapper.js";const r=r=>{let{val:i,onChange:n,nativeID:s,disabled:o}=r;const l=Array.isArray(i)?new Date(null==i?void 0:i[0]):i;return t((()=>{l||n(new Date((new Date).setHours(0,0,0,0)))}),[]),e("div",Object.assign({style:{position:"relative",width:200}},{children:e(a,{maxDate:new Date,pickerStyles:{zIndex:3},disabled:o,val:l,onChange:n})}))};var i=t=>e(r,Object.assign({},t));export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{useEffect as t}from"react";import a from"../../../../datePicker/DatePickerWrapper.js";const r=r=>{let{val:
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{useEffect as t}from"react";import a from"../../../../datePicker/DatePickerWrapper.js";const r=r=>{let{val:n,onChange:s,disabled:i}=r;return t((()=>{if(!n){const e=new Date((new Date).setHours(0,0,0,0)),t=new Date(new Date((new Date).setHours(23,59,59,999)).setDate((new Date).getDate()+1));t.setDate(e.getDate()+1),s([e,t])}}),[]),e("div",Object.assign({style:{position:"relative"}},{children:e(a,{maxDate:new Date,pickerStyles:{zIndex:3},disabled:i,val:n,onChange:s,calendarProps:{selectRange:!0}})}))};var n=t=>e(r,Object.assign({},t));export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useState as n,useEffect as t}from"react";import{disableOperatorDropdown as r}from"../../constants/connectorPosition.js";import{ConnectorHelper as i}from"../../helpers/Connector.helper.js";import{QueryBuilderConnectorType as s}from"../../types/QueryBuilder.type.js";import m from"../DropdownWrapper.js";import l from"./Components/EmojiPicker.js";import p from"./Components/FreeText.js";import a from"./Components/FrequencyIntegerPositiveSingle.js";import{PostIgPicker as
|
|
1
|
+
import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useState as n,useEffect as t}from"react";import{disableOperatorDropdown as r}from"../../constants/connectorPosition.js";import{ConnectorHelper as i}from"../../helpers/Connector.helper.js";import{QueryBuilderConnectorType as s}from"../../types/QueryBuilder.type.js";import m from"../DropdownWrapper.js";import l from"./Components/EmojiPicker.js";import p from"./Components/FreeText.js";import a from"./Components/FrequencyIntegerPositiveSingle.js";import{PostIgPicker as c,ReelIgPicker as u,StoryIgPicker as d}from"./Components/IgPicker.js";import g from"./Components/IntegerPositiveSingle.js";import f from"./Components/IntegerSingleValue.js";import j from"./Components/InTheLast.js";import C from"./Components/InTheLastAgo.js";import S from"./Components/InTwoLast.js";import v from"./Components/MultiselectDropdownFreeText.js";import I from"./Components/NoInput.js";import T from"./Components/NumberTime.js";import h from"./Components/SingleDate.js";import y from"./Components/SingleselectDropdownFreeText.js";import P from"./Components/StringSingleValue.js";import w from"./Components/TwoDate.js";import D from"./Components/TwoNumberInputsSeperatedByAnd.js";import{Container as x}from"./Connector.styled.js";const F={FreeText:p,IntegerPositiveSingle:g,IntegerSingleValue:f,StringSingleValue:P,MultiselectDropdownFreeText:v,SingleselectDropdownFreeText:y,NoInput:I,SingleDate:h,TwoNumberInputsSeperatedByAnd:D,FrequencyIntegerPositiveSingle:a,TwoDate:w,NumberTime:T,PostIgPicker:c,ReelIgPicker:u,StoryIgPicker:d,EmojiPicker:l,InTheLast:j,InTwoLast:S,InTheLastAgo:C},b=l=>{let{isLoading:p,noDefault:a,connectorType:c,defaultConnector:u,onOperatorChange:d,onValueChange:g,connectorVal:f,extra:j,errors:C,disabled:S,onSearch:v}=l;var I,T,h;const[y,P]=n(null),[w,D]=n(!1),b=i.getDropdownOptionFromDataType(c,u);function L(e){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];D(!0);const n=i.getConnectorComponent(c,e.value);void 0!==n?c===s.frequency&&"IntegerPositiveSingle"===n?P("FrequencyIntegerPositiveSingle"):P(n):P(null),o||d(e.value),setTimeout((()=>{D(!1)}),5)}return t((()=>{a||(u?L({value:u,label:u},!0):(null==b?void 0:b[0])&&L(b[0]))}),[u]),e(x,{children:[o("div",{children:!(null===(I=null==r?void 0:r[c])||void 0===I?void 0:I[u])&&o(m,{isSearchable:!0,disabled:S,width:"200px",isLoading:w,options:b,defaultOption:null===(T=b.filter((e=>e.selected)))||void 0===T?void 0:T[0],onSelect:L})}),null!==y&&!w&&(null===(h=F[y])||void 0===h?void 0:h.call(F,{disabled:S,val:f,onChange:g,extra:j,errors:C,isLoading:p,onSearch:v,connectorType:c}))]})};export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=[{label:"Commonly used",options:[{selected:!1,value:"today",label:"Today"},{selected:!1,value:"yesterday",label:"Yesterday"},{selected:!1,value:"last 7 days",label:"Last 7 days"},{selected:!
|
|
1
|
+
const e=[{label:"Commonly used",options:[{selected:!1,value:"today",label:"Today",description:"Events performed in the current day (starting at 00:00 hours)"},{selected:!1,value:"yesterday",label:"Yesterday",description:"Events performed in the previous day (starting at 00:00 hours)"},{selected:!1,value:"last 7 days",label:"Last 7 days",description:"Events performed in the previous 7 complete days along with the current day"},{selected:!0,value:"last 30 days",label:"Last 30 days",description:"Events performed in the previous 30 complete days along with the current day"},{selected:!1,value:"this week",label:"This week",description:"Events performed in the current calendar week (starting Monday), including the current day"},{selected:!1,value:"last week",label:"Last week",description:"Events performed in the previous calendar week (starting Monday)"},{selected:!1,value:"this month",label:"This month",description:"Events performed in the current calendar month, including the current day"},{selected:!1,value:"last month",label:"Last month",description:"Events performed in the current calendar month, including the current day"}]},{label:"Relative",options:[{selected:!1,value:"exactly",label:"Exactly",description:"Events performed precisely in a specific time frame (days, hours, or minutes) before the current time"},{selected:!1,value:"in the last",label:"In the last",description:"Events performed within the period between the current time and a specified time frame (days, hours, or minutes), relative to and before the current time"},{selected:!1,value:"in between last",label:"In between last",description:"Events performed within the range from one specific time frame to another specific time frame, both relative to and before the current time"}]},{label:"Absolute",options:[{selected:!1,value:"on",label:"On",description:"Events performed exactly on a particular date"},{selected:!1,value:"notOn",label:"Not On"},{selected:!1,value:"inBetween",label:"In Between",description:"Events performed between a specified date range"},{selected:!1,value:"notInBetween",label:"Not In Between"},{selected:!1,value:"before",label:"Before",description:"Events performed before a particular date (excluding that particular date)"},{selected:!1,value:"after",label:"After",description:"Events performed after a particular date (excluding that particular date)"}]}];export{e as DATE_OPERATORS_OPTIONS};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QueryBuilderConnectorType } from '../types/QueryBuilder.type';
|
|
2
|
-
import { AD_STRING_OPERATORS, ANY_AD_OPERATORS, ANY_IG_OPERATORS, BOOLEAN_OPERATORS, DATE_OPERATORS, FREQUENCY_OPERATORS, ICE_BREAKER_OPERATORS, IG_STRING_OPERATORS, INTEGER_OPERATORS, MAIL_SUBJECT_OPERATORS, REACTION_OPERATORS, SPECIFIC_IG_OPERATORS, STRING_OPERATORS, STRING_RESTRICTED_OPERATORS, STRING_RESTRICTED_OPERATORS_2, STRING_RESTRICTED_OPERATORS_3 } from '../types/QueryBuilderOperator.type';
|
|
3
|
-
type CONNECTOR_OPERATORS_TYPE = typeof BOOLEAN_OPERATORS | typeof STRING_OPERATORS | typeof STRING_RESTRICTED_OPERATORS | typeof STRING_RESTRICTED_OPERATORS_2 | typeof STRING_RESTRICTED_OPERATORS_3 | typeof INTEGER_OPERATORS | typeof FREQUENCY_OPERATORS | typeof DATE_OPERATORS | typeof SPECIFIC_IG_OPERATORS | typeof ANY_IG_OPERATORS | typeof REACTION_OPERATORS | typeof IG_STRING_OPERATORS | typeof ANY_AD_OPERATORS | typeof AD_STRING_OPERATORS | typeof ICE_BREAKER_OPERATORS | typeof MAIL_SUBJECT_OPERATORS;
|
|
2
|
+
import { AD_STRING_OPERATORS, ANY_AD_OPERATORS, ANY_IG_OPERATORS, BOOLEAN_OPERATORS, DATE_OPERATORS, EXACTLY_OPERATORS, FREQUENCY_OPERATORS, ICE_BREAKER_OPERATORS, IG_STRING_OPERATORS, INTEGER_OPERATORS, MAIL_SUBJECT_OPERATORS, REACTION_OPERATORS, SPECIFIC_IG_OPERATORS, STRING_OPERATORS, STRING_RESTRICTED_OPERATORS, STRING_RESTRICTED_OPERATORS_2, STRING_RESTRICTED_OPERATORS_3 } from '../types/QueryBuilderOperator.type';
|
|
3
|
+
type CONNECTOR_OPERATORS_TYPE = typeof BOOLEAN_OPERATORS | typeof STRING_OPERATORS | typeof STRING_RESTRICTED_OPERATORS | typeof STRING_RESTRICTED_OPERATORS_2 | typeof STRING_RESTRICTED_OPERATORS_3 | typeof INTEGER_OPERATORS | typeof FREQUENCY_OPERATORS | typeof DATE_OPERATORS | typeof SPECIFIC_IG_OPERATORS | typeof ANY_IG_OPERATORS | typeof REACTION_OPERATORS | typeof IG_STRING_OPERATORS | typeof ANY_AD_OPERATORS | typeof AD_STRING_OPERATORS | typeof ICE_BREAKER_OPERATORS | typeof EXACTLY_OPERATORS | typeof MAIL_SUBJECT_OPERATORS;
|
|
4
4
|
export declare const CONNECTOR_TYPE_TO_OPERATORS: {
|
|
5
5
|
[key in QueryBuilderConnectorType]: CONNECTOR_OPERATORS_TYPE;
|
|
6
6
|
};
|
|
@@ -96,6 +96,9 @@ export declare const DATE_OPERATORS_COMPONENT: {
|
|
|
96
96
|
after: CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
97
97
|
"last quarter": CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
98
98
|
};
|
|
99
|
+
export declare const EXACTLY_OPERATORS_COMPONENT: {
|
|
100
|
+
exactly: CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
101
|
+
};
|
|
99
102
|
export declare const SPECIFIC_IG_POST_OPERATORS_COMPONENT: {
|
|
100
103
|
in: CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
101
104
|
};
|
|
@@ -123,6 +126,6 @@ export declare const FREQUENCY_OPERATORS_COMPONENT: {
|
|
|
123
126
|
atMost: CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
124
127
|
};
|
|
125
128
|
export declare const CONNECTOR_TYPE_TO_COMPONENT_MAP: {
|
|
126
|
-
[x in QueryBuilderConnectorType]: typeof BOOLEAN_OPERATORS_COMPONENT | typeof STRING_OPERATORS_COMPONENT | typeof STRING_RESTRICTED_OPERATORS | typeof STRING_RESTRICTED_OPERATORS_2_COMPONENT | typeof STRING_RESTRICTED_OPERATORS_3_COMPONENT | typeof MAIL_SUBJECT_OPERATORS_COMPONENT | typeof INTEGER_OPERATORS_COMPONENT | typeof FREQUENCY_OPERATORS_COMPONENT | typeof DATE_OPERATORS_COMPONENT | typeof SPECIFIC_IG_POST_OPERATORS_COMPONENT | typeof SPECIFIC_IG_REEL_OPERATORS_COMPONENT | typeof SPECIFIC_IG_STORY_OPERATORS_COMPONENT | typeof ANY_IG_OPERATORS_COMPONENT | typeof REACTION_OPERATORS_COMPONENT | typeof IG_STRING_OPERATORS_COMPONENT | typeof ANY_AD_OPERATORS_COMPONENT | typeof AD_STRING_OPERATORS_COMPONENT | typeof ICE_BREAKER_OPERATORS_COMPONENT;
|
|
129
|
+
[x in QueryBuilderConnectorType]: typeof BOOLEAN_OPERATORS_COMPONENT | typeof STRING_OPERATORS_COMPONENT | typeof STRING_RESTRICTED_OPERATORS | typeof STRING_RESTRICTED_OPERATORS_2_COMPONENT | typeof STRING_RESTRICTED_OPERATORS_3_COMPONENT | typeof MAIL_SUBJECT_OPERATORS_COMPONENT | typeof INTEGER_OPERATORS_COMPONENT | typeof FREQUENCY_OPERATORS_COMPONENT | typeof DATE_OPERATORS_COMPONENT | typeof SPECIFIC_IG_POST_OPERATORS_COMPONENT | typeof SPECIFIC_IG_REEL_OPERATORS_COMPONENT | typeof SPECIFIC_IG_STORY_OPERATORS_COMPONENT | typeof ANY_IG_OPERATORS_COMPONENT | typeof REACTION_OPERATORS_COMPONENT | typeof IG_STRING_OPERATORS_COMPONENT | typeof ANY_AD_OPERATORS_COMPONENT | typeof AD_STRING_OPERATORS_COMPONENT | typeof EXACTLY_OPERATORS_COMPONENT | typeof ICE_BREAKER_OPERATORS_COMPONENT;
|
|
127
130
|
};
|
|
128
131
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{QueryBuilderConnectorType as e}from"../types/QueryBuilder.type.js";import{BOOLEAN_OPERATORS as t,STRING_OPERATORS as n,STRING_RESTRICTED_OPERATORS as i,STRING_RESTRICTED_OPERATORS_2 as r,STRING_RESTRICTED_OPERATORS_3 as s,INTEGER_OPERATORS as o,FREQUENCY_OPERATORS as a,DATE_OPERATORS as l,SPECIFIC_IG_OPERATORS as c,ANY_IG_OPERATORS as g,REACTION_OPERATORS as
|
|
1
|
+
import{QueryBuilderConnectorType as e}from"../types/QueryBuilder.type.js";import{BOOLEAN_OPERATORS as t,STRING_OPERATORS as n,STRING_RESTRICTED_OPERATORS as i,STRING_RESTRICTED_OPERATORS_2 as r,STRING_RESTRICTED_OPERATORS_3 as s,INTEGER_OPERATORS as o,FREQUENCY_OPERATORS as a,DATE_OPERATORS as l,SPECIFIC_IG_OPERATORS as c,ANY_IG_OPERATORS as g,REACTION_OPERATORS as I,IG_STRING_OPERATORS as u,ANY_AD_OPERATORS as p,AD_STRING_OPERATORS as T,ICE_BREAKER_OPERATORS as d,MAIL_SUBJECT_OPERATORS as x,EXACTLY_OPERATORS as N}from"../types/QueryBuilderOperator.type.js";const S={[e.boolean]:t,[e.string]:n,[e.string_restricted]:i,[e.string_restricted_2]:r,[e.string_restricted_3]:s,[e.integer]:o,[e.frequency]:a,[e.date]:l,[e.specificPost]:c,[e.specificReel]:c,[e.specificStory]:c,[e.anyIg]:g,[e.reaction]:I,[e.activityString]:u,[e.anyAd]:p,[e.specificAd]:T,[e.iceBreaker]:d,[e.mailSubject]:x,[e.exactly]:N};var y;!function(e){e.FreeText="FreeText",e.NoInput="NoInput",e.IntegerSingleValue="IntegerSingleValue",e.StringSingleValue="StringSingleValue",e.TwoNumberInputsSeperatedByAnd="TwoNumberInputsSeperatedByAnd",e.MultiselectDropdownFreeText="MultiselectDropdownFreeText",e.SingleselectDropdownFreeText="SingleselectDropdownFreeText",e.SingleDate="SingleDate",e.TwoDate="TwoDate",e.IntegerPositiveSingle="IntegerPositiveSingle",e.NumberTime="NumberTime",e.PostIgPicker="PostIgPicker",e.ReelIgPicker="ReelIgPicker",e.StoryIgPicker="StoryIgPicker",e.EmojiPicker="EmojiPicker",e.InTheLast="InTheLast",e.InTwoLast="InTwoLast",e.InTheLastAgo="InTheLastAgo"}(y||(y={}));const w={[o.is]:y.FreeText,[o.isNot]:y.FreeText,[o.exists]:y.NoInput,[o.doesntExist]:y.NoInput,[o.lessThan]:y.IntegerSingleValue,[o.lessThanOrEqualTo]:y.IntegerSingleValue,[o.greaterThan]:y.IntegerSingleValue,[o.greaterThanOrEqualTo]:y.IntegerSingleValue},F={[n.is]:y.MultiselectDropdownFreeText,[n.isNot]:y.MultiselectDropdownFreeText,[n.contains]:y.FreeText,[n.doesntContain]:y.FreeText,[n.startsWith]:y.FreeText,[n.endsWith]:y.FreeText,[n.exists]:y.NoInput,[n.doesntExist]:y.NoInput},h={[n.is]:y.MultiselectDropdownFreeText,[n.isNot]:y.MultiselectDropdownFreeText,[n.exists]:y.NoInput,[n.doesntExist]:y.NoInput},D={[n.is]:y.FreeText,[n.isNot]:y.FreeText},P={[n.is]:y.SingleselectDropdownFreeText},m={[n.contains]:y.FreeText},k={[u.any]:y.NoInput,[u.is]:y.MultiselectDropdownFreeText,[u.contains]:y.FreeText,[u.startsWith]:y.FreeText,[u.endsWith]:y.FreeText},f={[T.is]:y.SingleselectDropdownFreeText},L={[d.is]:y.MultiselectDropdownFreeText},b={[I.contains]:y.EmojiPicker},A={[l.today]:y.NoInput,[l.yesterday]:y.NoInput,[l["last 30 days"]]:y.NoInput,[l["last 7 days"]]:y.NoInput,[l["this month"]]:y.NoInput,[l["this week"]]:y.NoInput,[l["last month"]]:y.NoInput,[l["last week"]]:y.NoInput,[l.exactly]:y.InTheLastAgo,[l["in the last"]]:y.InTheLast,[l["in between last"]]:y.InTwoLast,[l.on]:y.SingleDate,[l.notOn]:y.SingleDate,[l.inBetween]:y.TwoDate,[l.notInBetween]:y.TwoDate,[l.before]:y.SingleDate,[l.after]:y.SingleDate,[l.today]:y.NoInput,[l.yesterday]:y.NoInput,[l["last week"]]:y.NoInput,[l["last month"]]:y.NoInput,[l["last quarter"]]:y.NoInput,[l["in the last"]]:y.InTheLast},_={[N.exactly]:y.InTheLastAgo},E={[c.in]:y.PostIgPicker},M={[c.in]:y.ReelIgPicker},v={[c.in]:y.StoryIgPicker},B={[g.in]:y.NoInput},V={[p.in]:y.NoInput},j={[t.isTrue]:y.NoInput,[t.isFalse]:y.NoInput,[t.exists]:y.NoInput,[t.doesntExist]:y.NoInput},q={[a.exactly]:y.IntegerPositiveSingle,[a.atleast]:y.IntegerPositiveSingle,[a.atMost]:y.IntegerPositiveSingle},R={[e.boolean]:j,[e.string]:F,[e.integer]:w,[e.frequency]:q,[e.date]:A,[e.specificPost]:E,[e.specificReel]:M,[e.specificStory]:v,[e.anyIg]:B,[e.reaction]:b,[e.activityString]:k,[e.anyAd]:V,[e.specificAd]:f,[e.iceBreaker]:L,[e.string_restricted]:h,[e.string_restricted_2]:D,[e.string_restricted_3]:P,[e.mailSubject]:m,[e.exactly]:_};export{f as AD_STRING_OPERATORS_COMPONENT,V as ANY_AD_OPERATORS_COMPONENT,B as ANY_IG_OPERATORS_COMPONENT,j as BOOLEAN_OPERATORS_COMPONENT,R as CONNECTOR_TYPE_TO_COMPONENT_MAP,S as CONNECTOR_TYPE_TO_OPERATORS,y as CONNECTOR_VALUE_COMPONENT_TYPES,A as DATE_OPERATORS_COMPONENT,_ as EXACTLY_OPERATORS_COMPONENT,q as FREQUENCY_OPERATORS_COMPONENT,L as ICE_BREAKER_OPERATORS_COMPONENT,k as IG_STRING_OPERATORS_COMPONENT,w as INTEGER_OPERATORS_COMPONENT,m as MAIL_SUBJECT_OPERATORS_COMPONENT,b as REACTION_OPERATORS_COMPONENT,E as SPECIFIC_IG_POST_OPERATORS_COMPONENT,M as SPECIFIC_IG_REEL_OPERATORS_COMPONENT,v as SPECIFIC_IG_STORY_OPERATORS_COMPONENT,F as STRING_OPERATORS_COMPONENT,D as STRING_RESTRICTED_OPERATORS_2_COMPONENT,P as STRING_RESTRICTED_OPERATORS_3_COMPONENT,h as STRING_RESTRICTED_OPERATORS_COMPONENT};
|
|
@@ -31,7 +31,8 @@ export declare enum QueryBuilderConnectorType {
|
|
|
31
31
|
'activityString' = "activityString",
|
|
32
32
|
'specificAd' = "specificAd",
|
|
33
33
|
'iceBreaker' = "iceBreaker",
|
|
34
|
-
'mailSubject' = "mailSubject"
|
|
34
|
+
'mailSubject' = "mailSubject",
|
|
35
|
+
'exactly' = "exactly"
|
|
35
36
|
}
|
|
36
37
|
export interface QueryBuilderConnector {
|
|
37
38
|
dataType: QueryBuilderConnectorType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,i,t;!function(e){e.SEGMENT_FILTER="SEGMENT_FILTER",e.EVENT_FILTER="EVENT_FILTER",e.NO_EVENT_FILTER="NO_EVENT_FILTER",e.USER_PROPERTY_FILTER="USER_PROPERTY_FILTER",e.IG_TRIGGER="IG_TRIGGER",e.CTWA_TRIGGER="CTWA_TRIGGER",e.EVENTS_TRIGGER="EVENTS_TRIGGER"}(e||(e={})),function(e){e.AND="AND",e.OR="OR"}(i||(i={})),function(e){e.string="string",e.string_restricted="string_restricted",e.string_restricted_2="string_restricted_2",e.string_restricted_3="string_restricted_3",e.integer="integer",e.boolean="boolean",e.date="date",e.frequency="frequency",e.anyIg="anyIg",e.anyAd="anyAd",e.specificPost="specificPost",e.specificReel="specificReel",e.specificStory="specificStory",e.reaction="reaction",e.activityString="activityString",e.specificAd="specificAd",e.iceBreaker="iceBreaker",e.mailSubject="mailSubject"}(t||(t={}));export{t as QueryBuilderConnectorType,i as QueryBuilderJoinOperators,e as QueryBuilderType};
|
|
1
|
+
var e,i,t;!function(e){e.SEGMENT_FILTER="SEGMENT_FILTER",e.EVENT_FILTER="EVENT_FILTER",e.NO_EVENT_FILTER="NO_EVENT_FILTER",e.USER_PROPERTY_FILTER="USER_PROPERTY_FILTER",e.IG_TRIGGER="IG_TRIGGER",e.CTWA_TRIGGER="CTWA_TRIGGER",e.EVENTS_TRIGGER="EVENTS_TRIGGER"}(e||(e={})),function(e){e.AND="AND",e.OR="OR"}(i||(i={})),function(e){e.string="string",e.string_restricted="string_restricted",e.string_restricted_2="string_restricted_2",e.string_restricted_3="string_restricted_3",e.integer="integer",e.boolean="boolean",e.date="date",e.frequency="frequency",e.anyIg="anyIg",e.anyAd="anyAd",e.specificPost="specificPost",e.specificReel="specificReel",e.specificStory="specificStory",e.reaction="reaction",e.activityString="activityString",e.specificAd="specificAd",e.iceBreaker="iceBreaker",e.mailSubject="mailSubject",e.exactly="exactly"}(t||(t={}));export{t as QueryBuilderConnectorType,i as QueryBuilderJoinOperators,e as QueryBuilderType};
|
|
@@ -92,12 +92,15 @@ export declare enum BOOLEAN_OPERATORS {
|
|
|
92
92
|
exists = "exists",
|
|
93
93
|
doesntExist = "doesntExist"
|
|
94
94
|
}
|
|
95
|
+
export declare enum EXACTLY_OPERATORS {
|
|
96
|
+
exactly = "exactly"
|
|
97
|
+
}
|
|
95
98
|
export declare enum FREQUENCY_OPERATORS {
|
|
96
99
|
exactly = "exactly",
|
|
97
100
|
atleast = "atleast",
|
|
98
101
|
atMost = "atMost"
|
|
99
102
|
}
|
|
100
|
-
export type CONNECTOR_OPERATORS = FREQUENCY_OPERATORS | BOOLEAN_OPERATORS | DATE_OPERATORS | STRING_OPERATORS | INTEGER_OPERATORS;
|
|
103
|
+
export type CONNECTOR_OPERATORS = FREQUENCY_OPERATORS | BOOLEAN_OPERATORS | DATE_OPERATORS | STRING_OPERATORS | EXACTLY_OPERATORS | INTEGER_OPERATORS;
|
|
101
104
|
export declare enum EVENT_VALUES {
|
|
102
105
|
FreeText = "FreeText",
|
|
103
106
|
NoInput = "NoInput",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t,e,n,s,i,o,
|
|
1
|
+
var t,e,n,s,i,a,o,l,r,u,c,x,d,h,T,f,y,g;!function(t){t.is="is",t.isNot="isNot",t.exists="exists",t.doesntExist="doesntExist",t.lessThan="lessThan",t.lessThanOrEqualTo="lessThanOrEqualTo",t.greaterThan="greaterThan",t.greaterThanOrEqualTo="greaterThanOrEqualTo"}(t||(t={})),function(t){t.is="is",t.isNot="isNot",t.contains="contains",t.doesntContain="doesntContain",t.startsWith="startsWith",t.endsWith="endsWith",t.exists="exists",t.doesntExist="doesntExist"}(e||(e={})),function(t){t.is="is",t.isNot="isNot",t.exists="exists",t.doesntExist="doesntExist"}(n||(n={})),function(t){t.is="is",t.isNot="isNot"}(s||(s={})),function(t){t.is="is"}(i||(i={})),function(t){t.any="any",t.is="is",t.contains="contains",t.startsWith="startsWith",t.endsWith="endsWith"}(a||(a={})),function(t){t.is="is"}(o||(o={})),function(t){t.in="in"}(l||(l={})),function(t){t.is="is"}(r||(r={})),function(t){t.in="in"}(u||(u={})),function(t){t.in="in"}(c||(c={})),function(t){t.contains="contains"}(x||(x={})),function(t){t.contains="contains"}(d||(d={})),function(t){t.today="today",t.yesterday="yesterday",t["last 7 days"]="last 7 days",t["last 30 days"]="last 30 days",t["this week"]="this week",t["last week"]="last week",t["this month"]="this month",t["last month"]="last month",t.exactly="exactly",t["not exactly"]="not exactly",t["in the last"]="in the last",t["not in the last"]="not in the last",t["in between last"]="in between last",t["not in between last"]="not in between last",t.on="on",t.notOn="notOn",t.inBetween="inBetween",t.notInBetween="notInBetween",t.before="before",t.after="after",t["last quarter"]="last quarter"}(h||(h={})),function(t){t.isTrue="isTrue",t.isFalse="isFalse",t.exists="exists",t.doesntExist="doesntExist"}(T||(T={})),function(t){t.exactly="exactly"}(f||(f={})),function(t){t.exactly="exactly",t.atleast="atleast",t.atMost="atMost"}(y||(y={})),function(t){t.FreeText="FreeText",t.NoInput="NoInput",t.IntegerSingleValue="IntegerSingleValue",t.StringSingleValue="StringSingleValue",t.TwoNumberInputsSeperatedByAnd="TwoNumberInputsSeperatedByAnd",t.MultiselectDropdownFreeText="MultiselectDropdownFreeText",t.SingleselectDropdownFreeText="SingleselectDropdownFreeText",t.SingleDate="SingleDate",t.TwoDate="TwoDate",t.IntegerPositiveSingle="IntegerPositiveSingle",t.NumberTime="NumberTime"}(g||(g={}));export{o as AD_STRING_OPERATORS,c as ANY_AD_OPERATORS,u as ANY_IG_OPERATORS,T as BOOLEAN_OPERATORS,h as DATE_OPERATORS,g as EVENT_VALUES,f as EXACTLY_OPERATORS,y as FREQUENCY_OPERATORS,r as ICE_BREAKER_OPERATORS,a as IG_STRING_OPERATORS,t as INTEGER_OPERATORS,d as MAIL_SUBJECT_OPERATORS,x as REACTION_OPERATORS,l as SPECIFIC_IG_OPERATORS,e as STRING_OPERATORS,n as STRING_RESTRICTED_OPERATORS,s as STRING_RESTRICTED_OPERATORS_2,i as STRING_RESTRICTED_OPERATORS_3};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputVariant } from "../../input";
|
|
3
|
+
import { FilterSchema } from '../types/SearchFilter.type';
|
|
4
|
+
export declare const DateRangeOnlyButton: React.FC<FilterSchema & {
|
|
5
|
+
onSelect: (value: Date[]) => void;
|
|
6
|
+
variant: InputVariant;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__rest as t}from"../../../_virtual/_tslib.js";import{jsxs as e,jsx as i}from"react/jsx-runtime";import{useState as o}from"react";import{DatePicker as n}from"../../datePicker/DatePicker.js";import{Input as r}from"../../input/Input.js";import{InputStyleContext as l}from"../../input/context/InputStyleProvider.js";import{Tag as a}from"../../tag/Tag.js";import{DEFAULT_THEME as s}from"../../../constants/Theme.js";import c from"../../../assets/icons/chevronDown.svg.js";import g from"../../../assets/icons/chevronDownOutline.svg.js";const d=d=>{var p,h,m,{text:u,onSelect:v,variant:f}=d,j=t(d,["text","onSelect","variant"]);const[x,S]=o(!1),[y,D]=o(null),b=(null===(p=j.width)||void 0===p?void 0:p.toString())?null===(h=j.width)||void 0===h?void 0:h.toString():y?12*(null===(m=y[0])||void 0===m?void 0:m.toDateString().length)*2+"px":12*u.length+"px";return e("div",Object.assign({style:{position:"relative"}},{children:[i("div",Object.assign({onClick:()=>S((t=>!t)),style:{cursor:"pointer",width:"100%",height:"100%"}},{children:"small"===f?i(a,{tagText:(null==y?void 0:y.length)?`${y[0].toDateString()} - ${y[1].toDateString()}`:null!=u?u:"",theme:"light",type:"neutral",variant:"regular",TrailingIcon:g}):i(l.Provider,Object.assign({value:{InputWrapper:{height:32,width:"100%",zIndex:1,cursor:"pointer",padding:"6px 8px",backgroundColor:"#fff"},RootContainer:{opacity:1},input:{minHeight:"100%"}}},{children:i(r,{state:"disabled",value:(null==y?void 0:y.length)?`${y[0].toDateString()} - ${y[1].toDateString()}`:null!=u?u:"",variant:"small",placeholder:null!=u?u:"Select a date",width:b,onChangeText:()=>{},rightIcon:{icon:()=>i(c,{style:{transform:x?"rotate(180deg)":"rotate(0deg)"},onClick:()=>{},width:20,height:20,color:s.colorsV2.content.primary})}})}))})),x&&i("div",Object.assign({style:{position:"absolute",top:"calc(100% + 8px)"}},{children:i(n,{selectRange:!0,onSelectRange:(t,e)=>{D([t,e]),S(!1),v([t,e])}})}))]}))};d.displayName="DateRangeOnlyButton";export{d as DateRangeOnlyButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import"@tippyjs/react";import"react";import"../../tooltips/TooltipInternal.js";import"../../../constants/Theme.js";import"../../TypographyStyle.js";import"../../analytics-chips-and-dropdowns/CommonStyles.js";import{AnalyticsDropdown as o}from"../../analytics-chips-and-dropdowns/AnalyticsDropdown.js";import"../../analytics-chips-and-dropdowns/AnalyticsMetric.js";import"../../tag/Tag.js";import"../../analytics-chips-and-dropdowns/chart/LineChart/LineChart.js";import"react-bootstrap";import"../../analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js";import"../../analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js";import"../../analytics-chips-and-dropdowns/chart/Pie/PieChart.js";import"../../analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js";import"../../analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js";import"../../analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js";import"../../analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js";import"../../analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js";import"../../dropdown/DropdownPopover/index.js";import{Dropdown as e}from"../../dropdown/Dropdown.js";import{ChipDropdown as n}from"../../dropdown/ChipDropdown.js";import"../../zeroState/ZeroState.js";import"../../dropdown/OpenedDropdown/components/description/Description.styled.js";import"../../checkBox/CheckBox.styled.js";import"../../list-item/ListItem.js";import"../../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js";import"../../dropdown/OpenedDropdown/components/menu/MenuItem.js";import"../../dropdown/OpenedDropdown/components/menu/MenuList.styled.js";import"../../button/Button.js";import"../../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js";import"../../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js";import"../../input/Input.js";import"../../dropdown/MenuItem/MenuItem.js";import{FilterType as
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import"@tippyjs/react";import"react";import"../../tooltips/TooltipInternal.js";import"../../../constants/Theme.js";import"../../TypographyStyle.js";import"../../analytics-chips-and-dropdowns/CommonStyles.js";import{AnalyticsDropdown as o}from"../../analytics-chips-and-dropdowns/AnalyticsDropdown.js";import"../../analytics-chips-and-dropdowns/AnalyticsMetric.js";import"../../tag/Tag.js";import"../../analytics-chips-and-dropdowns/chart/LineChart/LineChart.js";import"react-bootstrap";import"../../analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js";import"../../analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js";import"../../analytics-chips-and-dropdowns/chart/Pie/PieChart.js";import"../../analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js";import"../../analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js";import"../../analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js";import"../../analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js";import"../../analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js";import"../../dropdown/DropdownPopover/index.js";import{Dropdown as e}from"../../dropdown/Dropdown.js";import{ChipDropdown as n}from"../../dropdown/ChipDropdown.js";import"../../zeroState/ZeroState.js";import"../../dropdown/OpenedDropdown/components/description/Description.styled.js";import"../../checkBox/CheckBox.styled.js";import"../../list-item/ListItem.js";import"../../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js";import"../../dropdown/OpenedDropdown/components/menu/MenuItem.js";import"../../dropdown/OpenedDropdown/components/menu/MenuList.styled.js";import"../../button/Button.js";import"../../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js";import"../../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js";import"../../input/Input.js";import"../../dropdown/MenuItem/MenuItem.js";import{FilterType as a}from"../types/SearchFilter.type.js";import{DatePickerButton as r}from"./DatePickerButton.js";import{DateRangeOnlyButton as p}from"./DateRangeOnlyButton.js";const i=[{label:"Last 7 days",value:"7 days",key:7,noOfDays:7},{label:"Last 30 days",value:"30 days",key:30,noOfDays:30},{label:"Custom range",value:"calender",key:"custom",isCustom:!0,dateRangeSelectionOptions:{selectRange:!0}}],s=s=>{var d,l,c;return s.type===a.Date?t(r,Object.assign({},s,{variant:s.variant,onSelect:t=>s.onChange(t)})):s.type===a.DateRange?s.rangePickerDateOnly?t(p,Object.assign({},s,{variant:s.variant,onSelect:t=>s.onChange(t)})):t(o,{datePickerPlacement:s.datePickerPlacement,variant:s.variant,placeholder:s.text,options:s.preset?i:null!==(d=s.options)&&void 0!==d?d:[],onOptionSelected:function(t){var o,e;t.selectedRange&&s.onChange([null===(o=t.selectedRange)||void 0===o?void 0:o[0],null===(e=t.selectedRange)||void 0===e?void 0:e[1]])}},s.id):"small"===s.variant?t(n,{isMultiSelect:s.type===a.Multiple,options:null!==(l=s.options)&&void 0!==l?l:[],defaultOptions:s.defaultValue,onSelect:s.onChange,placeHolder:s.text}):t(e,{isMultiSelect:s.type===a.Multiple,size:"small",options:null!==(c=s.options)&&void 0!==c?c:[],defaultOptions:s.defaultValue,onSelect:s.onChange,placeHolder:s.text,width:10*s.text.length+"px"})};export{s as SearchFilterItem};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DropDirection } from 'react-bootstrap/esm/DropdownContext';
|
|
1
2
|
import { DropdownOptions } from "../../analytics-chips-and-dropdowns";
|
|
2
3
|
import { DropdownOption } from "../../dropdown/type";
|
|
3
4
|
import { InputVariant } from "../../input";
|
|
@@ -23,6 +24,9 @@ export type FilterSchema = {
|
|
|
23
24
|
preset?: boolean;
|
|
24
25
|
defaultValue?: FilterValueType;
|
|
25
26
|
width?: number | string;
|
|
27
|
+
datePickerPlacement?: DropDirection;
|
|
28
|
+
/** show oly the picker like date filter instead of dropdown */
|
|
29
|
+
rangePickerDateOnly?: boolean;
|
|
26
30
|
};
|
|
27
31
|
export type SearchFilterProps = {
|
|
28
32
|
variant: InputVariant;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useState as n,useRef as t,useEffect as o}from"react";import{TitleRegular as i,BodySecondary as c}from"../TypographyStyle.js";import a from"./Accordion.style.js";import s from"./AccordionArrow.js";const l=l=>{var d;const[h,u]=n(!1),v=t(null),g=t(null),m=(e,r)=>{g.current&&v.current&&("keydown"===r.type&&"Enter"!==r.key||(u(e),g.current.style.maxHeight?(g.current.style.maxHeight="",v.current.style.transform="rotate(0deg)",v.current.style.transition="transform 0.25s ease-in-out",g.current.style.transition="padding 0s"):(g.current.style.maxHeight=g.current.scrollHeight+"px",v.current.style.transform="rotate(180deg)",v.current.style.transition="transform 0.25s ease-in-out",g.current.style.transition="max-height 0.25s ease-in-out")))};return o((()=>{var e;h&&(null==l?void 0:l.refresh)&&(null===(e=null==g?void 0:g.current)||void 0===e?void 0:e.scrollHeight)&&setTimeout((()=>{g.current.style.maxHeight=g.current.scrollHeight+"px"}),100)}),[h,null==l?void 0:l.refresh,null===(d=null==g?void 0:g.current)||void 0===d?void 0:d.scrollHeight]),e(a,Object.assign({className:"accordion",isActive:h,width:null==l?void 0:l.width,contentMargin:null==l?void 0:l.contentMargin,headerPadding:l.headerPadding,skipHoverState:l.skipHoverHeader,showBorders:l.showBorders,backgroundColor:l.backgroundColor},{children:[e("div",Object.assign({className:"accordion__overview "+(h?"active":""),onClick:e=>m(!h,e),onKeyDown:e=>m(!h,e),role:"button",tabIndex:0},{children:[!l.rightActionComponent&&e("div",Object.assign({className:"accordion__overview__header"},{children:["string"==typeof l.header?r(i,{children:null==l?void 0:l.header}):l.header,r(s,{isNewIcon:!
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useState as n,useRef as t,useEffect as o}from"react";import{TitleRegular as i,BodySecondary as c}from"../TypographyStyle.js";import a from"./Accordion.style.js";import s from"./AccordionArrow.js";const l=l=>{var d;const[h,u]=n(!1),v=t(null),g=t(null);o((()=>{l.autoOpen&&m(l.autoOpen,{})}),[l.autoOpen]);const m=(e,r)=>{var n;g.current&&v.current&&("keydown"===r.type&&"Enter"!==r.key||(u(e),g.current.style.maxHeight?(g.current.style.maxHeight="",v.current.style.transform="rotate(0deg)",v.current.style.transition="transform 0.25s ease-in-out",g.current.style.transition="padding 0s"):(g.current.style.maxHeight=(null!==(n=l.childrenMaxHeight)&&void 0!==n?n:g.current.scrollHeight)+"px",v.current.style.transform="rotate(180deg)",v.current.style.transition="transform 0.25s ease-in-out",g.current.style.transition="max-height 0.25s ease-in-out")))};return o((()=>{var e;h&&(null==l?void 0:l.refresh)&&(null===(e=null==g?void 0:g.current)||void 0===e?void 0:e.scrollHeight)&&!l.childrenMaxHeight&&setTimeout((()=>{g.current.style.maxHeight=g.current.scrollHeight+"px"}),100)}),[h,null==l?void 0:l.refresh,null===(d=null==g?void 0:g.current)||void 0===d?void 0:d.scrollHeight]),e(a,Object.assign({className:"accordion",isActive:h,width:null==l?void 0:l.width,contentMargin:null==l?void 0:l.contentMargin,headerPadding:l.headerPadding,skipHoverState:l.skipHoverHeader,showBorders:l.showBorders,backgroundColor:l.backgroundColor},{children:[e("div",Object.assign({className:"accordion__overview "+(h?"active":""),onClick:e=>m(!h,e),onKeyDown:e=>m(!h,e),role:"button",tabIndex:0},{children:[!l.rightActionComponent&&e("div",Object.assign({className:"accordion__overview__header"},{children:["string"==typeof l.header?r(i,{children:null==l?void 0:l.header}):l.header,r(s,{isNewIcon:!0,ref:v})]})),l.rightActionComponent&&e("div",Object.assign({className:"accordion__overview__header"},{children:[e("div",Object.assign({className:"accordion__overview__title-wrapper"},{children:[r(s,{isNewIcon:!0,ref:v}),"string"==typeof l.header?r(i,{children:null==l?void 0:l.header}):l.header]})),r("div",Object.assign({onClick:e=>e.stopPropagation(),onKeyDown:e=>{"Enter"===e.key&&e.stopPropagation()},role:"button",tabIndex:0},{children:l.rightActionComponent}))]})),(null==l?void 0:l.caption)&&r("div",Object.assign({className:"accordion__overview__caption"},{children:r(c,{children:l.caption})}))]})),r("div",Object.assign({ref:g,className:"accordion__content"},{children:l.children}))]}))};export{l as BikAccordion};
|
|
@@ -6,5 +6,6 @@ declare const AccordionStyle: import("styled-components").StyledComponent<"div",
|
|
|
6
6
|
headerPadding?: string | undefined;
|
|
7
7
|
showBorders?: boolean | undefined;
|
|
8
8
|
backgroundColor?: string | undefined;
|
|
9
|
+
hasChildrenMaxHeight?: boolean | undefined;
|
|
9
10
|
}, never>;
|
|
10
11
|
export default AccordionStyle;
|
|
@@ -29,7 +29,7 @@ import e from"styled-components";import{COLORS as r}from"../../constants/Theme.j
|
|
|
29
29
|
}
|
|
30
30
|
&__content {
|
|
31
31
|
${e=>e.isActive?{margin:(null==e?void 0:e.contentMargin)||"0px"}:{}};
|
|
32
|
-
overflow: hidden;
|
|
32
|
+
overflow: ${e=>e.hasChildrenMaxHeight?"scroll":"hidden"};
|
|
33
33
|
max-height: 0;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{__awaiter as e}from"../../_virtual/_tslib.js";import{jsx as a,jsxs as i,Fragment as s}from"react/jsx-runtime";import l from"../../assets/icons/back_icon.svg.js";import t from"../../assets/icons/chevronRightAlt.svg.js";import n from"../../assets/icons/cross.svg.js";import r from"../../assets/icons/plus.svg.js";import c from"../../assets/icons/undo.svg.js";import{memo as o,useState as d,useEffect as b}from"react";import{AddVariableStyled as v}from"./AddVariableV2.styled.js";import{Button as m}from"../button/Button.js";import{IconButton as p}from"../icon-button/IconButton.js";import{SearchBar as u}from"../searchBar/searchBar.js";import{Tooltip as g}from"../tooltips/Tooltip.js";import{COLORS as h}from"../../constants/Theme.js";import{Switch as y}from"../switch/Switch.js";import{BodySecondary as f,TitleSmall as j,BodyCaption as O}from"../TypographyStyle.js";const N=o((o=>{const{data:N}=o,[V,_]=d(o.data),[w,T]=d({}),[S,k]=d(),[C,x]=d(""),[L,I]=d(""),[A,B]=d(!1),[F,E]=d(!0),H=/^[^.]*\.[^.]*$/;b((()=>{const e={};N.forEach((a=>{e[a.displayName]=[]})),k(e)}),[N]),b((()=>{z(!0)}),[]),b((()=>{if(L){M(o.data,F).length>0?B(!0):B(!1)}else B(!0)}),[L]);const M=function(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.flatMap((e=>Object.keys(e.variables).filter((i=>{var s;return(null===(s=e.variables[i].displayName)||void 0===s?void 0:s.toLowerCase().includes(L.toLowerCase()))&&(!a||e.variables[i].isAvailable===a)||$(e.variables[i])}))))},P=(e,a)=>{const i=N.find((e=>e.displayName===a));if(i){let s=i;e.forEach(((e,a)=>{s=s.variables[e]})),T((e=>Object.assign(Object.assign({},e),{[a]:s})))}},$=e=>{let a=!1;if(e.isSubHeader&&e.variables){const i=Object.keys(e.variables);for(let s=0;s<i.length;s++){const l=i[s];if(e.variables&&e.variables[l].displayName.toLowerCase().includes(L.toLowerCase())&&e.variables[l].isAvailable===F){a=!0;break}}}return a},z=e=>{if(E(e),e){let a=[];if(C){const e=w[C];a=o.data.filter((e=>e.displayName===C)).map((a=>W(a,e))).filter((e=>null!=e))}else a=o.data.map((e=>W(e))).filter((e=>null!==e));_(a),L&&(a=M(a,e)),a.length>0?B(!0):B(!1)}else if(_(o.data),L){M(o.data,e).length>0?B(!0):B(!1)}else B(!0)};function W(e,a){const i={};if(a){for(const s in e.variables)if(e.variables[s]===a)for(const a in e.variables[s].variables)e.variables[s].variables[a].isAvailable&&(i[a]=e.variables[s].variables[a])}else for(const a in e.variables)e.variables[a].isAvailable&&(i[a]=e.variables[a]);return 0===Object.keys(i).length?null:Object.assign(Object.assign({},e),{variables:i})}const R=e=>{const i=e.item.description;return a(s,{children:a(g,Object.assign({body:"",tooltipContent:a(O,Object.assign({color:h.content.primaryInverse,style:{whiteSpace:"pre-line",padding:8}},{children:e.item.isAvailable?i?`• ${i}\n• Recommended here`:"Recommended here":"Not recommended here"})),width:300,delay:300,placement:"bottom"},{children:a("div",{children:a(D,{item:e.item})})}))})},D=e=>a(m,{darkMode:o.enableVariable?o.enableVariable:e.item.isAvailable,size:"chip",LeadingIcon:e.item.isSubHeader?void 0:r,TrailingIcon:()=>e.item.isSubHeader?a("div",Object.assign({className:"icon-trailing",style:{display:"flex"}},{children:a(t,{})})):a(s,{}),buttonText:e.item.displayName}),q=(e,i)=>F&&!e.isAvailable?a(s,{}):a("div",Object.assign({onClick:e.isSubHeader?()=>{const e=[...S[C],i];P(e,C),k((a=>Object.assign(Object.assign({},a),{[C]:e})))}:()=>{o.customTrigger?(o.customTrigger(e),o.setShowVariable(!1)):o.isEvaluationList?J(e):o.setVariableValue(o.selectWithTypes?{actualValue:e.actualValue,variableType:e.variableType,needsFetching:e.needsFetching}:e.actualValue)}},{children:a(R,{item:e})})),G=(e,a)=>{const i=[...S[e.displayName],a];P(i,e.displayName),k((a=>Object.assign(Object.assign({},a),{[e.displayName]:i}))),x(e.displayName)},J=e=>{if(e.actualValue.match(H)){const a=e.actualValue.replace("{{","").replace("}}","").split("."),i=a[0]+`['${a[1]}']`;o.setVariableValue(o.selectWithTypes?{actualValue:i,variableType:e.variableType,needsFetching:e.needsFetching}:i)}else{const a=e.actualValueEval?e.actualValueEval:e.actualValue;o.setVariableValue(o.selectWithTypes?{actualValue:a,variableType:e.variableType,needsFetching:e.needsFetching}:a)}},K=(e,a)=>{if(o.customTrigger)o.customTrigger(e.variables[a]),o.setShowVariable(!1);else if(o.isEvaluationList){const i=e.variables[a];J(i)}else o.setVariableValue(o.selectWithTypes?{actualValue:e.variables[a].actualValue,variableType:e.variables[a].variableType,needsFetching:e.variables[a].needsFetching}:e.variables[a].actualValue)},Q=o.isModalState?void 0:{top:"small"===o.pickerSize?"300px":"60px",left:`${o.leftPosition?o.leftPosition+24:430}px`};return a("div",Object.assign({id:"varList",tabIndex:-1},{children:a(v,Object.assign({style:Q,onClick:e=>{e.stopPropagation()},pickerSize:o.pickerSize||"large",isModalState:o.isModalState},{children:o.showVariable&&i("div",Object.assign({className:"popup"},{children:[i("div",Object.assign({className:"sticky__bar"},{children:[i("div",Object.assign({className:"header__bar"},{children:[a("div",Object.assign({className:"add__variable"},{children:"Add a new variable"})),a("div",Object.assign({onClick:()=>{o.setShowVariable(!1)},style:{display:"flex",alignItems:"center",justifyContent:"center"}},{children:a(p,{iconButtonType:"default",Icon:n})}))]})),i("div",Object.assign({className:"search__bar",onBlur:e=>{o.onSearchBlur&&o.onSearchBlur(e)}},{children:[a(u,{width:"100%",isEnabled:!0,onChange:e=>{I(e)},onEnter:()=>{},placeholder:"Search...",variant:"default"}),i("div",Object.assign({style:{display:"flex",alignItems:"center",marginTop:8,justifyContent:"space-between"}},{children:[a(f,Object.assign({style:{color:h.content.secondary}},{children:"Show only recommended variables"})),a(y,{value:F,onValueChange:a=>e(void 0,void 0,void 0,(function*(){return yield z(a)}))})]}))]})),C&&S[C].length>0&&i("div",Object.assign({className:"nav__bar"},{children:[i("div",Object.assign({className:"left__nav"},{children:[a(p,{Icon:l,style:{color:"#919191",display:"flex"},onClick:()=>{const e=S[C].slice(0,-1);P(e,C),k((a=>Object.assign(Object.assign({},a),{[C]:e}))),e.length||x("")}}),i("div",Object.assign({className:"block"},{children:[a(j,{children:w[C].displayName}),w[C].description&&a(O,{children:w[C].description})]}))]})),i("div",Object.assign({className:"right__nav"},{children:[a(p,{Icon:c,style:{display:"flex"},onClick:()=>{P([],C),k((e=>Object.assign(Object.assign({},e),{[C]:[]}))),x("")}}),a("div",{children:"First page"})]}))]}))]})),!A&&i("div",Object.assign({style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",marginTop:16}},{children:[a(j,{children:"No results found!"}),a(O,F?{children:"Sorry we could not find any recommended variables"}:{children:`Sorry we could not find any results for "${L}"`})]})),a("div",Object.assign({className:"wrapper"},{children:a("div",Object.assign({className:"list__map"},{children:i("div",Object.assign({className:"items"},{children:[!C&&V.map((e=>{let l=[];return L&&(l=Object.keys(e.variables).filter((a=>{var i;return(null===(i=e.variables[a].displayName)||void 0===i?void 0:i.toLowerCase().includes(L.toLowerCase()))||$(e.variables[a])}))),i(s,{children:[L?l.length>0?i("div",Object.assign({className:"block"},{children:[a("div",Object.assign({className:"heading__font"},{children:null==e?void 0:e.displayName})),a(O,Object.assign({style:{marginBottom:8,color:"#616161"}},{children:null==e?void 0:e.description}))]})):a(s,{}):i("div",Object.assign({className:"block"},{children:[a("div",Object.assign({className:"heading__font"},{children:null==e?void 0:e.displayName})),a(O,Object.assign({style:{marginBottom:8,color:"#616161"}},{children:null==e?void 0:e.description}))]})),Object.keys(e.variables).map((i=>{var l;return L?(null===(l=e.variables[i].displayName)||void 0===l?void 0:l.toLowerCase().includes(L.toLowerCase()))||$(e.variables[i])?a("div",Object.assign({onClick:e.variables[i].isSubHeader?()=>G(e,i):()=>K(e,i)},{children:a(R,{item:e.variables[i]})})):a(s,{}):a("div",Object.assign({onClick:e.variables[i].isSubHeader?()=>G(e,i):()=>K(e,i)},{children:a(R,{item:e.variables[i]})}))}))]})})),C&&a("div",Object.assign({className:"list__map"},{children:a("div",Object.assign({className:"items",style:{marginTop:16}},{children:Object.keys(w[C].variables).map(((e,i)=>{var l;return L?(null===(l=w[C].variables[e].displayName)||void 0===l?void 0:l.toLowerCase().includes(L.toLowerCase()))||$(w[C].variables[e])?q(w[C].variables[e],e):a(s,{}):q(w[C].variables[e],e)}))}))}))]}))}))})),a("div",{className:"bottom__padding"})]}))}))}))}),((e,a)=>e.enableVariable===a.enableVariable&&e.leftPosition===a.leftPosition));export{N as AddVariableV2};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import a from"react-dom";import{AddVariableV2 as r}from"./AddVariableV2.js";import{SideModalStyle as t,SideModalContainer as l}from"../side-modal/SideModal.style.js";const o=o=>a.createPortal(e(t,Object.assign({zIndex:o.zIndex},{children:e(l,{children:e(r,{data:o.data,showVariable:o.showVariable,setShowVariable:o.setShowVariable,variableValue:o.variableValue,setVariableValue:o.setVariableValue,placeholder:"Add a variable",customTrigger:o.customTrigger,isModalState:!0,onSearchBlur:o.onSearchBlur,selectWithTypes:o.selectWithTypes})})})),document.body);export{o as AddVariableV2SideModal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as t,jsx as e}from"react/jsx-runtime";import{AlertStyle as r}from"./Alert.styled.js";import{COLOR_CONFIG_MAP as o}from"./AlertHelper.js";import{BodyCaption as i}from"../TypographyStyle.js";const l=l=>t(r,Object.assign({type:l.type},{children:[l.icon&&e("div",{children:e(l.icon,{color:o[l.type].textColor,height:20,width:20})}),e(i,Object.assign({style:{color:l.textColor||o[l.type].textColor,marginLeft:12}},{children:l.text}))]}));export{l as Alert};
|
|
1
|
+
import{jsxs as t,jsx as e}from"react/jsx-runtime";import{AlertStyle as r}from"./Alert.styled.js";import{COLOR_CONFIG_MAP as o}from"./AlertHelper.js";import{BodyCaption as i}from"../TypographyStyle.js";const l=l=>t(r,Object.assign({type:l.type},{children:[l.icon&&e("div",Object.assign({style:{display:"flex"}},{children:e(l.icon,{color:o[l.type].textColor,height:20,width:20})})),e(i,Object.assign({style:{color:l.textColor||o[l.type].textColor,marginLeft:12}},{children:l.text}))]}));export{l as Alert};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as o,jsxs as n}from"react/jsx-runtime";import{useState as t,useEffect as l}from"react";import{Dropdown as i}from"react-bootstrap";import{DEFAULT_THEME as s,BASE_COLORS as a}from"../../constants/Theme.js";import{DatePicker as d}from"../datePicker/DatePicker.js";import{BodySecondary as c,BodyCaption as r,Caption as g}from"../TypographyStyle.js";import{MainDropdown as p,ItemMenuContainer as u}from"./CommonStyles.js";const m=a=>{let{options:r,placeholder:u="Select an option",selected:m,onOptionSelected:b,resetDropdown:h,maxHeight:f,backgroundColor:y,calendarPopperConfig:k,variant:D="default",datePickerPlacement:j}=a;var S,R,C;const[w,x]=t(!1),[$,T]=t(m),[P,I]=t(),[N,A]=t(!1),E=()=>{!w&&A(!N)},[F,H]=t(m),M="small"===D?g:c;return l((()=>{h&&T(void 0)}),[h]),l((()=>{var e;(null==m?void 0:m.isCustom)&&(null===(e=m.dateRangeSelectionOptions)||void 0===e?void 0:e.selectedDates)?I(m.dateRangeSelectionOptions.selectedDates):
|
|
1
|
+
import{jsx as e,Fragment as o,jsxs as n}from"react/jsx-runtime";import{useState as t,useEffect as l}from"react";import{Dropdown as i}from"react-bootstrap";import{DEFAULT_THEME as s,BASE_COLORS as a}from"../../constants/Theme.js";import{DatePicker as d}from"../datePicker/DatePicker.js";import{BodySecondary as c,BodyCaption as r,Caption as g}from"../TypographyStyle.js";import{MainDropdown as p,ItemMenuContainer as u}from"./CommonStyles.js";const m=a=>{let{options:r,placeholder:u="Select an option",selected:m,onOptionSelected:b,resetDropdown:h,maxHeight:f,backgroundColor:y,calendarPopperConfig:k,variant:D="default",datePickerPlacement:j}=a;var S,R,C;const[w,x]=t(!1),[$,T]=t(m),[P,I]=t(),[N,A]=t(!1),E=()=>{!w&&A(!N)},[F,H]=t(m),M="small"===D?g:c;return l((()=>{h&&T(void 0)}),[h]),l((()=>{var e;(null==m?void 0:m.isCustom)&&(null===(e=m.dateRangeSelectionOptions)||void 0===e?void 0:e.selectedDates)?I(m.dateRangeSelectionOptions.selectedDates):I(void 0),T(m)}),[m]),e(o,{children:n(p,Object.assign({drop:"down",show:N,onToggle:E,backgroundColor:y},{children:[e(i.Toggle,Object.assign({id:"dropdown-autoclose-outside",className:"main--dropdown",style:"small"===D?{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",backgroundColor:"#FAFAFA",borderRadius:4,border:`1px solid ${s.colorsV2.stroke.primary}`}:void 0},{children:e(M,Object.assign({style:"small"===D?{color:s.colorsV2.content.secondary}:void 0},{children:(null==$?void 0:$.isCustom)?P?O(P[0])===O(P[1])?`${O(P[0])}`:`${O(P[0])} to ${O(P[1])}`:null==F?void 0:F.label:$?null==$?void 0:$.label:u}))})),e(i.Menu,Object.assign({className:"main--dropdown"},{children:n(p,Object.assign({drop:null!=j?j:"end",id:"sub--dropdown",show:w,onToggle:e=>{!e&&A(!1),x(!w)}},{children:[e("div",Object.assign({style:{maxHeight:f||"auto",overflowY:"scroll"}},{children:r.map((o=>{var n;return e("div",{children:(null==o?void 0:o.isCustom)?e(i.Toggle,Object.assign({className:"sub--dropdown"},{children:e(v,{eachOption:o,selectedOption:$,selectedDate:P,onClickingEachItem:e=>{T(e),x(!0)},rangeSelection:!!(null===(n=null==o?void 0:o.dateRangeSelectionOptions)||void 0===n?void 0:n.selectRange)})})):e(v,{eachOption:o,selectedOption:$,selectedDate:P,onClickingEachItem:e=>{if(I(void 0),T(e),H(e),E(),!e.noOfDays)return void b(e);const o=new Date,n=new Date;n.setDate(o.getDate()-e.noOfDays),b(Object.assign(Object.assign({},e),{selectedRange:[n,o]}))}})},null==o?void 0:o.key)}))})),e(i.Menu,Object.assign({className:"sub--dropdown",popperConfig:{modifiers:[{name:"offset",options:{offset:[(null==k?void 0:k.offsetSkid)||0,(null==k?void 0:k.offsetDistance)||0]}}]}},{children:e(d,{selectRange:(null===(S=null==$?void 0:$.dateRangeSelectionOptions)||void 0===S?void 0:S.selectRange)||!1,maxDate:null===(R=null==$?void 0:$.dateRangeSelectionOptions)||void 0===R?void 0:R.maxDate,minDate:null===(C=null==$?void 0:$.dateRangeSelectionOptions)||void 0===C?void 0:C.minDate,selectedDates:P,onSelectRange:(e,o)=>{const n=[e,o];(null==$?void 0:$.dateRangeSelectionOptions)&&($.dateRangeSelectionOptions.selectedDates=n,b(Object.assign(Object.assign({},$),{selectedRange:[e,o]}))),H($),x(!1),I(n),A(!N)},onSelectDate:e=>{(null==$?void 0:$.dateRangeSelectionOptions)&&($.dateRangeSelectionOptions.selectedDates=[e,e],b(Object.assign(Object.assign({},$),{selectedRange:[e,e]}))),H($),x(!1),I([e,e]),A(!N)}})}))]}))}))]}))})},v=o=>{let{eachOption:t,selectedOption:l,selectedDate:i,onClickingEachItem:s,rangeSelection:d}=o;return n(u,Object.assign({onClick:()=>s(t),isSelected:t.isCustom?t.key==(null==l?void 0:l.key)&&!!i:t.key==(null==l?void 0:l.key)},{children:[e(c,Object.assign({color:t.key==(null==l?void 0:l.key)?a.positive[900]:a.grayscale[900]},{children:t.label})),i&&(null==l?void 0:l.isCustom)&&t.key==(null==l?void 0:l.key)&&e(r,{children:d?`${O(i[0])} to ${O(i[1])}`:`${O(i[0])}`})]}),t.key)},O=e=>e.toLocaleString("default",{day:"numeric",month:"short",year:"numeric"});export{m as AnalyticsDropdown,v as EachItem,O as formatDate};
|
|
@@ -13,5 +13,8 @@ export interface AnalyticsTrendInterface {
|
|
|
13
13
|
size?: 'big' | 'small';
|
|
14
14
|
share?: boolean;
|
|
15
15
|
prefixSymbol?: string;
|
|
16
|
+
trailingIcon?: React.FunctionComponent<React.SVGAttributes<SVGElement>>;
|
|
17
|
+
onTrailIconClick?: () => void;
|
|
18
|
+
iconTooltipBody?: string;
|
|
16
19
|
}
|
|
17
20
|
export declare const AnalyticsTrend: React.FC<AnalyticsTrendInterface>;
|