@bikdotai/bik-component-library 0.0.239-beta.1 → 0.0.239
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/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLast.d.ts +2 -2
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLastAgo.d.ts +4 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLastAgo.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTwoLast.d.ts +4 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/MultiselectDropdownFreeText.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Connector.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/DropdownWrapper.d.ts +1 -0
- package/dist/cjs/components/QueryBuilder/components/DropdownWrapper.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.d.ts +5 -1
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js +1 -1
- package/dist/cjs/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.d.ts +2 -0
- package/dist/cjs/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -0
- package/dist/cjs/components/QueryBuilder/constants/connector.d.ts +14 -6
- package/dist/cjs/components/QueryBuilder/constants/connector.js +1 -1
- package/dist/cjs/components/QueryBuilder/helpers/Connector.helper.d.ts +2 -0
- package/dist/cjs/components/QueryBuilder/helpers/Connector.helper.js +1 -1
- package/dist/cjs/components/QueryBuilder/helpers/MetaCustomProcessor.d.ts +79 -0
- package/dist/cjs/components/QueryBuilder/helpers/OperatorHelperV2.d.ts +7 -0
- package/dist/cjs/components/QueryBuilder/helpers/PropertyCustomProcessor.d.ts +28 -0
- package/dist/cjs/components/QueryBuilder/helpers/SegmentHelperV2.d.ts +140 -0
- package/dist/cjs/components/QueryBuilder/helpers/SegmentValidator.d.ts +75 -0
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +3 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderOperator.type.d.ts +15 -6
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderOperator.type.js +1 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderPropertyProps.d.ts +1 -0
- package/dist/cjs/components/accordion/Accordion.d.ts +3 -0
- package/dist/cjs/components/accordion/Accordion.js +1 -1
- package/dist/cjs/components/accordion/Accordion.style.d.ts +2 -0
- package/dist/cjs/components/accordion/Accordion.style.js +8 -4
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.d.ts +1 -2
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMetric.d.ts +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMetric.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/CommonStyles.d.ts +1 -0
- 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/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.d.ts +2 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.js +1 -1
- package/dist/cjs/components/bik-layout/BikHeader.d.ts +1 -0
- package/dist/cjs/components/bik-layout/BikHeader.js +1 -1
- package/dist/cjs/components/bik-layout/CommonStyles.d.ts +4 -0
- package/dist/cjs/components/bik-layout/CommonStyles.js +1 -1
- package/dist/cjs/components/button/Button.js +1 -1
- package/dist/cjs/components/button/Button.styled.d.ts +1 -0
- package/dist/cjs/components/button/Button.styled.js +1 -1
- package/dist/cjs/components/button/model.d.ts +1 -0
- package/dist/cjs/components/button/themes.d.ts +1 -1
- package/dist/cjs/components/button/themes.js +1 -1
- package/dist/cjs/components/checkBox/CheckBox.js +1 -1
- package/dist/cjs/components/country-code-picker/CountryCodePicker.js +1 -1
- package/dist/cjs/components/custom-date-time/CustomDateTime.js +1 -1
- package/dist/cjs/components/discount-modal/DiscountModal.js +1 -1
- package/dist/cjs/components/discount-modal/DiscountUtils.js +1 -1
- 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/dropdown/Dropdown.js +1 -1
- package/dist/cjs/components/dropdown/MenuItem/MenuItem.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/OpennedDropdown.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/searchbox/SearchBox.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/utils/iterationOnOptions.d.ts +1 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/utils/iterationOnOptions.js +1 -1
- package/dist/cjs/components/dropdown/hooks/useDropdown.d.ts +41 -0
- package/dist/cjs/components/dropdown/hooks/useDropdown.js +1 -0
- package/dist/cjs/components/dropdown/index.d.ts +2 -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/dynamic-tabs/DynamicTabs.d.ts +19 -0
- package/dist/cjs/components/dynamic-tabs/DynamicTabs.js +1 -0
- package/dist/cjs/components/dynamic-tabs/index.d.ts +1 -0
- package/dist/cjs/components/input/Input.d.ts +2 -0
- package/dist/cjs/components/input/Input.js +1 -1
- package/dist/cjs/components/input/Input.styled.d.ts +1 -0
- package/dist/cjs/components/input/Input.styled.js +1 -1
- package/dist/cjs/components/product-picker-v2/modal.js +1 -1
- package/dist/cjs/components/searchBar/searchBar.d.ts +1 -0
- package/dist/cjs/components/searchBar/searchBar.js +1 -1
- package/dist/cjs/components/shimmer/ShimmerComponent/BikShimmer.d.ts +6 -4
- package/dist/cjs/components/shimmer/ShimmerComponent/BikShimmer.js +1 -1
- package/dist/cjs/components/shimmer/ShimmerComponent/ShimmerStyled.d.ts +2 -0
- package/dist/cjs/components/shimmer/ShimmerComponent/ShimmerStyled.js +2 -2
- package/dist/cjs/components/side-modal/SideModal.d.ts +14 -0
- package/dist/cjs/components/side-modal/SideModal.js +1 -0
- package/dist/cjs/components/side-modal/SideModal.style.d.ts +12 -0
- package/dist/cjs/components/side-modal/SideModal.style.js +54 -0
- package/dist/cjs/components/side-modal/index.d.ts +1 -0
- package/dist/cjs/components/stepper/Stepper.d.ts +1 -0
- package/dist/cjs/components/stepper/Stepper.js +1 -1
- package/dist/cjs/components/stepper/Stepper.styled.d.ts +1 -0
- package/dist/cjs/components/stepper/Stepper.styled.js +5 -5
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +1 -1
- package/dist/esm/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLast.d.ts +2 -2
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLastAgo.d.ts +4 -0
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLastAgo.js +1 -0
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTwoLast.d.ts +4 -0
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +1 -0
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/MultiselectDropdownFreeText.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Connector.js +1 -1
- package/dist/esm/components/QueryBuilder/components/DropdownWrapper.d.ts +1 -0
- package/dist/esm/components/QueryBuilder/components/DropdownWrapper.js +1 -1
- package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.d.ts +5 -1
- package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js +1 -1
- package/dist/esm/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.d.ts +2 -0
- package/dist/esm/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -0
- package/dist/esm/components/QueryBuilder/constants/connector.d.ts +14 -6
- package/dist/esm/components/QueryBuilder/constants/connector.js +1 -1
- package/dist/esm/components/QueryBuilder/helpers/Connector.helper.d.ts +2 -0
- package/dist/esm/components/QueryBuilder/helpers/Connector.helper.js +1 -1
- package/dist/esm/components/QueryBuilder/helpers/MetaCustomProcessor.d.ts +79 -0
- package/dist/esm/components/QueryBuilder/helpers/OperatorHelperV2.d.ts +7 -0
- package/dist/esm/components/QueryBuilder/helpers/PropertyCustomProcessor.d.ts +28 -0
- package/dist/esm/components/QueryBuilder/helpers/SegmentHelperV2.d.ts +140 -0
- package/dist/esm/components/QueryBuilder/helpers/SegmentValidator.d.ts +75 -0
- package/dist/esm/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +3 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilderOperator.type.d.ts +15 -6
- package/dist/esm/components/QueryBuilder/types/QueryBuilderOperator.type.js +1 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilderPropertyProps.d.ts +1 -0
- package/dist/esm/components/accordion/Accordion.d.ts +3 -0
- package/dist/esm/components/accordion/Accordion.js +1 -1
- package/dist/esm/components/accordion/Accordion.style.d.ts +2 -0
- package/dist/esm/components/accordion/Accordion.style.js +8 -4
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.d.ts +1 -2
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMetric.d.ts +1 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMetric.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/CommonStyles.d.ts +1 -0
- 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/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.d.ts +2 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.js +1 -1
- package/dist/esm/components/bik-layout/BikHeader.d.ts +1 -0
- package/dist/esm/components/bik-layout/BikHeader.js +1 -1
- package/dist/esm/components/bik-layout/CommonStyles.d.ts +4 -0
- package/dist/esm/components/bik-layout/CommonStyles.js +1 -1
- package/dist/esm/components/button/Button.js +1 -1
- package/dist/esm/components/button/Button.styled.d.ts +1 -0
- package/dist/esm/components/button/Button.styled.js +1 -1
- package/dist/esm/components/button/model.d.ts +1 -0
- package/dist/esm/components/button/themes.d.ts +1 -1
- package/dist/esm/components/button/themes.js +1 -1
- package/dist/esm/components/checkBox/CheckBox.js +1 -1
- package/dist/esm/components/country-code-picker/CountryCodePicker.js +1 -1
- package/dist/esm/components/custom-date-time/CustomDateTime.js +1 -1
- package/dist/esm/components/discount-modal/DiscountModal.js +1 -1
- package/dist/esm/components/discount-modal/DiscountUtils.js +1 -1
- 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/dropdown/Dropdown.js +1 -1
- package/dist/esm/components/dropdown/MenuItem/MenuItem.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/OpennedDropdown.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +2 -2
- package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/searchbox/SearchBox.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/utils/iterationOnOptions.d.ts +1 -0
- package/dist/esm/components/dropdown/OpenedDropdown/utils/iterationOnOptions.js +1 -1
- package/dist/esm/components/dropdown/hooks/useDropdown.d.ts +41 -0
- package/dist/esm/components/dropdown/hooks/useDropdown.js +1 -0
- package/dist/esm/components/dropdown/index.d.ts +2 -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/dynamic-tabs/DynamicTabs.d.ts +19 -0
- package/dist/esm/components/dynamic-tabs/DynamicTabs.js +1 -0
- package/dist/esm/components/dynamic-tabs/index.d.ts +1 -0
- package/dist/esm/components/input/Input.d.ts +2 -0
- package/dist/esm/components/input/Input.js +1 -1
- package/dist/esm/components/input/Input.styled.d.ts +1 -0
- package/dist/esm/components/input/Input.styled.js +1 -1
- package/dist/esm/components/product-picker-v2/modal.js +1 -1
- package/dist/esm/components/searchBar/searchBar.d.ts +1 -0
- package/dist/esm/components/searchBar/searchBar.js +1 -1
- package/dist/esm/components/shimmer/ShimmerComponent/BikShimmer.d.ts +6 -4
- package/dist/esm/components/shimmer/ShimmerComponent/BikShimmer.js +1 -1
- package/dist/esm/components/shimmer/ShimmerComponent/ShimmerStyled.d.ts +2 -0
- package/dist/esm/components/shimmer/ShimmerComponent/ShimmerStyled.js +2 -2
- package/dist/esm/components/side-modal/SideModal.d.ts +14 -0
- package/dist/esm/components/side-modal/SideModal.js +1 -0
- package/dist/esm/components/side-modal/SideModal.style.d.ts +12 -0
- package/dist/esm/components/side-modal/SideModal.style.js +54 -0
- package/dist/esm/components/side-modal/index.d.ts +1 -0
- package/dist/esm/components/stepper/Stepper.d.ts +1 -0
- package/dist/esm/components/stepper/Stepper.js +1 -1
- package/dist/esm/components/stepper/Stepper.styled.d.ts +1 -0
- package/dist/esm/components/stepper/Stepper.styled.js +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../_virtual/_tslib.js"),r=require("react/jsx-runtime"),o=require("react"),t=require("../../../components/AllowedListDropdown.js"),a=require("../../../components/Connectors/Connector.js"),l=require("../../../helpers/ApiResponse.helper.js"),u=require("../../../hooks/useQueryBuilder.js"),i=require("../../../hooks/useQueryBuilderCache.js"),n=require("../../../types/QueryBuilder.type.js"),d=require("../../../types/QueryBuilderOperator.type.js"),v=require("../../../components/DropdownWrapper.js"),s=require("../../../components/QueryBuilderNode/Base/BaseQueryBuilderNode.js");const p=new l.ApiResponseHelper;exports.default=l=>{let{node:y,allowedNodes:c,apiHandler:f,mode:T,selectorKey:_}=l;var j,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../_virtual/_tslib.js"),r=require("react/jsx-runtime"),o=require("react"),t=require("../../../components/AllowedListDropdown.js"),a=require("../../../components/Connectors/Connector.js"),l=require("../../../helpers/ApiResponse.helper.js"),u=require("../../../hooks/useQueryBuilder.js"),i=require("../../../hooks/useQueryBuilderCache.js"),n=require("../../../types/QueryBuilder.type.js"),d=require("../../../types/QueryBuilderOperator.type.js"),v=require("../../../components/DropdownWrapper.js"),s=require("../../../components/QueryBuilderNode/Base/BaseQueryBuilderNode.js");const p=new l.ApiResponseHelper;exports.default=l=>{let{node:y,allowedNodes:c,apiHandler:f,mode:T,selectorKey:_}=l;var m,j,h,O,q,C,B,N,S,E,k,x,P,Q,b,g,w,A;const[R,V]=o.useState([]),[D,M]=o.useState(!1),{deleteProperty:L,createProperty:$,selectType:F,createMeta:H,updateMeta:J,updateProperty:K,selectPropertyJoinOperator:U,clearProperty:W}=u.useQueryBuilder(_),{cacheWrap:Y}=i.useQueryBuilderCache(),[G,z]=o.useState(!0),I=null===(m=null==y?void 0:y.metas)||void 0===m?void 0:m.find((e=>"date"===e.key)),X=null===(j=null==y?void 0:y.metas)||void 0===j?void 0:j.find((e=>"frequency"===e.key)),Z=null===(h=null==y?void 0:y.metas)||void 0===h?void 0:h.find((e=>"eventName"===e.key)),[ee,re]=o.useState(!1),[oe,te]=o.useState(!1),[ae,le]=o.useState(!1),ue=e=>Y((()=>f({query:{eventName:e}})),`EVENT_NAMES_${e}`),ie=(e,r)=>Y((()=>f({query:{eventName:e,propertyName:r}})),`EVENT_NAMES_${e}_${r}`),ne=(r,o,t)=>e.__awaiter(void 0,void 0,void 0,(function*(){return yield f({query:{eventName:r,propertyName:o,searchKey:t}})}));return o.useEffect((()=>{Y((()=>f({})),"EVENT_NAMES").then((e=>{z(!1);const r=p.convertToGroupOptions(e,(null==Z?void 0:Z.value)?[Z.value]:void 0);if("create"!==T&&Z)return V([...r]),void M(!0);V([...r]),M(!0)}))}),[]),r.jsx(s.BaseQueryBuilderNode,Object.assign({selectPropertyJoinOperator:U,node:y,addPropertyBtnText:(null==Z?void 0:Z.value)&&"Add event property",deleteProperty:L,createProperty:$,propertySelectorText:"Select property",fetchPropertyData:function(){return e.__awaiter(this,void 0,void 0,(function*(){return yield ue(null==Z?void 0:Z.value)}))},onPropertyNameSelect:function(r,o){return e.__awaiter(this,void 0,void 0,(function*(){K(Object.assign(Object.assign({},o),{name:r.id,dataType:r.type,operator:void 0,value:void 0,error:{}}),y._id);const e=yield ie(null==Z?void 0:Z.value,r.id);return null!=e?e:[]}))},onPropertyOperatorChange:function(e,r){K(Object.assign(Object.assign({},r),{operator:e,value:void 0,error:{}}),y._id)},onPropertyValueChange:function(e,r){K(Object.assign(Object.assign({},r),{value:e,error:{}}),y._id)},mode:T,onPropertyValueSearch:function(r,o){var t,a;return e.__awaiter(this,void 0,void 0,(function*(){const e=yield ne(null==Z?void 0:Z.value,o.name,r);return null!==(a=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.map((e=>({label:e.name,value:e.id,selected:!1}))))&&void 0!==a?a:[]}))}},{children:r.jsxs("div",Object.assign({style:{flexDirection:"column",display:"flex",gap:12}},{children:[r.jsxs("div",Object.assign({style:{flexDirection:"row",display:"flex",gap:12}},{children:[r.jsx(t.default,{disabled:"view"===T,selectedType:y.type,allowedList:c,onSelect:function(e){re(!0),setTimeout((()=>{F(e.value,y._id),re(!1)}),1)}}),!ee&&r.jsx(v.default,{isSearchable:!0,isLoading:G,disabled:"view"===T,width:"200px",dropdownLabel:"Select event name",options:R,selectedValues:(null==Z?void 0:Z.value)?[Z.value]:void 0,onSelect:function(e){Array.isArray(e)||(W(y._id),Z?J({key:"eventName",value:e.value,error:{}},y._id):H({key:"eventName",value:e.value},y._id),X?(te(!0),setTimeout((()=>{J({key:"frequency",value:{dataType:n.QueryBuilderConnectorType.frequency,operator:d.FREQUENCY_OPERATORS.atleast,value:1},error:{}},y._id),te(!1)}),1)):H({key:"frequency",value:{dataType:n.QueryBuilderConnectorType.frequency,operator:d.FREQUENCY_OPERATORS.atleast,value:1}},y._id),I?(le(!0),setTimeout((()=>{J({key:"date",value:{dataType:n.QueryBuilderConnectorType.date,operator:d.DATE_OPERATORS["last month"]},error:{}},y._id),le(!1)}),1)):H({key:"date",value:{dataType:n.QueryBuilderConnectorType.date,operator:d.DATE_OPERATORS["last month"]}},y._id))},error:null!==(S=null!==(B=null===(C=null===(q=null===(O=y.metas)||void 0===O?void 0:O[0])||void 0===q?void 0:q.error)||void 0===C?void 0:C.key)&&void 0!==B?B:null===(N=null==Z?void 0:Z.error)||void 0===N?void 0:N.key)&&void 0!==S?S:null===(E=null==Z?void 0:Z.error)||void 0===E?void 0:E.value})]})),(null==X?void 0:X.key)&&!oe&&r.jsx(a.default,{disabled:"view"===T,extra:{},errors:{val:null===(x=null===(k=X.error)||void 0===k?void 0:k.value)||void 0===x?void 0:x.value,operator:null===(Q=null===(P=X.error)||void 0===P?void 0:P.value)||void 0===Q?void 0:Q.operator},connectorVal:X.value.value,connectorType:X.value.dataType,defaultConnector:X.value.operator,onOperatorChange:function(e){J({key:"frequency",value:{dataType:n.QueryBuilderConnectorType.frequency,operator:e,value:1},error:{}},y._id)},onValueChange:function(e){var r;D&&J({key:"frequency",value:{dataType:n.QueryBuilderConnectorType.frequency,operator:null===(r=null==X?void 0:X.value)||void 0===r?void 0:r.operator,value:e},error:{}},y._id)}}),(null==I?void 0:I.key)&&!ae&&r.jsx(a.default,{disabled:"view"===T,extra:{},errors:{val:null===(g=null===(b=I.error)||void 0===b?void 0:b.value)||void 0===g?void 0:g.value,operator:null===(A=null===(w=I.error)||void 0===w?void 0:w.value)||void 0===A?void 0:A.operator},connectorVal:I.value.value,connectorType:I.value.dataType,defaultConnector:I.value.operator,onOperatorChange:function(e){J({key:"date",value:{dataType:n.QueryBuilderConnectorType.date,operator:e,value:void 0},error:{}},y._id)},onValueChange:function(e){var r;D&&J({key:"date",value:{dataType:n.QueryBuilderConnectorType.date,operator:null===(r=null==I?void 0:I.value)||void 0===r?void 0:r.operator,value:e},error:{}},y._id)}})]}))}))};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ConnectorComponentProps } from "../../../types/QueryBuilderConnector.type";
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const InTheLastWrapper: (props: ConnectorComponentProps) => JSX.Element;
|
|
4
|
+
export default InTheLastWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@emotion/styled/base"),I=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@emotion/styled/base"),I=require("react/jsx-runtime"),g=require("react");require("../../../../dropdown/DropdownPopover/index.js");var d=require("../../../../dropdown/Dropdown.js");require("../../../../zeroState/ZeroState.js"),require("../../../../TypographyStyle.js"),require("../../../../../constants/Theme.js"),require("../../../../dropdown/OpenedDropdown/components/description/Description.styled.js"),require("../../../../checkBox/CheckBox.styled.js"),require("../../../../list-item/ListItem.js"),require("../../../../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js"),require("../../../../dropdown/OpenedDropdown/components/menu/MenuItem.js"),require("../../../../dropdown/OpenedDropdown/components/menu/MenuList.styled.js"),require("../../../../button/Button.js"),require("../../../../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js"),require("../../../../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js");var l=require("../../../../input/Input.js"),c=require("../../../../input/context/InputStyleProvider.js");require("../../../../dropdown/MenuItem/MenuItem.js");var n=require("../../InputLoader.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const s=o(e).default("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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkluVGhlTGFzdC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBTzZCIiwiZmlsZSI6IkluVGhlTGFzdC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBqc3ggYXMgX2pzeCwganN4cyBhcyBfanN4cyB9IGZyb20gXCJyZWFjdC9qc3gtcnVudGltZVwiO1xyXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XHJcbmltcG9ydCB7IHVzZUVmZmVjdCwgdXNlU3RhdGUgfSBmcm9tICdyZWFjdCc7XHJcbmltcG9ydCB7IERyb3Bkb3duIH0gZnJvbSBcIi4uLy4uLy4uLy4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clxuICAgICAgICAgICAgICAgICAgICB9IH0pXSB9KSB9KSkpO1xyXG59O1xyXG5jb25zdCBJblRoZUxhc3RXcmFwcGVyID0gKHByb3BzKSA9PiAoX2pzeChJblRoZUxhc3QsIE9iamVjdC5hc3NpZ24oe30sIHByb3BzKSkpO1xyXG5leHBvcnQgZGVmYXVsdCBJblRoZUxhc3RXcmFwcGVyO1xyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1JblRoZUxhc3QuanMubWFwIl19 */",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)."}}),u=[{label:"day(s)",value:"days"},{label:"minute(s)",value:"minutes"},{label:"hour(s)",value:"hours"}],i=e=>{let{val:o,onChange:i,errors:t,isLoading:C,disabled:b}=e;var r,A;const[B,p]=g.useState(u),a=null!==(r=null==o?void 0:o[1])&&void 0!==r?r:"days",y=null!==(A=null==o?void 0:o[0])&&void 0!==A?A:"1";return g.useEffect((()=>{var e;const I=null!==(e=null==o?void 0:o[1])&&void 0!==e?e:"days";p((e=>e.map((e=>Object.assign(Object.assign({},e),{selected:I===e.value})))))}),[o]),g.useEffect((()=>{var e;if(void 0===(null==o?void 0:o[0])){const I=null!==(e=null==o?void 0:o[1])&&void 0!==e?e:"days";null==i||i(["1",I])}}),[]),C?I.jsx("div",Object.assign({style:{width:200}},{children:I.jsx(n.default,{containerStyle:{padding:"5px 8px"}})})):I.jsx(c.InputStyleContext.Provider,Object.assign({value:{InputWrapper:{width:104}}},{children:I.jsxs(s,{children:[I.jsx(l.Input,{type:"number",variant:"small",state:b?"disabled":"none",errorMessage:null==t?void 0:t.val,value:y,onChangeText:e=>null==i?void 0:i([e,a])}),I.jsx(d.Dropdown,{disabled:b,placeHolder:"Time",width:"108px",size:"small",options:B,onSelect:e=>{null==i||i([y,e.value])}})]})}))};exports.default=e=>I.jsx(i,Object.assign({},e));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../../../TypographyStyle.js"),r=require("./InTheLast.js");const t=t=>e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:12,alignItems:"center"}},{children:[e.jsx(r.default,Object.assign({},t)),e.jsx(s.BodySecondary,{children:"Ago"})]}));exports.default=s=>e.jsx(t,Object.assign({},s));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var I=require("@emotion/styled/base"),g=require("react/jsx-runtime"),C=require("react");require("../../../../dropdown/DropdownPopover/index.js");var e=require("../../../../dropdown/Dropdown.js");require("../../../../zeroState/ZeroState.js");var d=require("../../../../TypographyStyle.js");require("../../../../../constants/Theme.js"),require("../../../../dropdown/OpenedDropdown/components/description/Description.styled.js"),require("../../../../checkBox/CheckBox.styled.js"),require("../../../../list-item/ListItem.js"),require("../../../../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js"),require("../../../../dropdown/OpenedDropdown/components/menu/MenuItem.js"),require("../../../../dropdown/OpenedDropdown/components/menu/MenuList.styled.js"),require("../../../../button/Button.js"),require("../../../../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js"),require("../../../../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js");var A=require("../../../../input/Input.js"),l=require("../../../../input/context/InputStyleProvider.js");require("../../../../dropdown/MenuItem/MenuItem.js");var c=require("../../InputLoader.js");function n(I){return I&&"object"==typeof I&&"default"in I?I:{default:I}}const i=n(I).default("div","production"===process.env.NODE_ENV?{target:"eqv4pu00"}:{target:"eqv4pu00",label:"Container"})("production"===process.env.NODE_ENV?{name:"1d5jh9x",styles:"display:flex;flex-direction:row;gap:12px;align-items:center"}:{name:"1d5jh9x",styles:"display:flex;flex-direction:row;gap:12px;align-items:center",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2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XCIgfSkgfSksIF9qc3goSW5wdXQsIHsgdHlwZTogXCJudW1iZXJcIiwgdmFyaWFudDogXCJzbWFsbFwiLCBzdGF0ZTogZGlzYWJsZWQgPyAnZGlzYWJsZWQnIDogJ25vbmUnLCBlcnJvck1lc3NhZ2U6IGVycm9ycyA9PT0gbnVsbCB8fCBlcnJvcnMgPT09IHZvaWQgMCA/IHZvaWQgMCA6IGVycm9ycy52YWwsIHZhbHVlOiBzdGFydC50b1N0cmluZygpLCBvbkNoYW5nZVRleHQ6ICh0ZXh0KSA9PiBvbkNoYW5nZSA9PT0gbnVsbCB8fCBvbkNoYW5nZSA9PT0gdm9pZCAwID8gdm9pZCAwIDogb25DaGFuZ2Uoe1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB0eXBlLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBzdGFydDogdGV4dCxcclxuICAgICAgICAgICAgICAgICAgICAgICAgb2Zmc2V0LFxyXG4gICAgICAgICAgICAgICAgICAgIH0pIH0pLCBfanN4KERyb3Bkb3duLCB7IGRpc2FibGVkOiBkaXNhYmxlZCwgcGxhY2VIb2xkZXI6IFwiVGltZVwiLCB3aWR0aDogXCIxMDhweFwiLCBzaXplOiBcInNtYWxsXCIsIG9wdGlvbnM6IG9wdGlvbnMsIG9uU2VsZWN0OiAob3B0aW9uKSA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIG9uQ2hhbmdlID09PSBudWxsIHx8IG9uQ2hhbmdlID09PSB2b2lkIDAgPyB2b2lkIDAgOiBvbkNoYW5nZSh7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0eXBlOiBvcHRpb24udmFsdWUsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGFydCxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9mZnNldCxcclxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgICAgICAgICAgfSB9KV0gfSkgfSkpKTtcclxufTtcclxuLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9iYW4tdHMtY29tbWVudFxyXG4vLyBAdHMtaWdub3JlXHJcbi8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSByZWFjdC9kaXNwbGF5LW5hbWVcclxuZXhwb3J0IGRlZmF1bHQgKHByb3BzKSA9PiBfanN4KEluVHdvTGFzdCwgT2JqZWN0LmFzc2lnbih7fSwgcHJvcHMpKTtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9SW5Ud29MYXN0LmpzLm1hcCJdfQ== */",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)."}}),t=[{label:"day(s)",value:"days"},{label:"minute(s)",value:"minutes"},{label:"hour(s)",value:"hours"}],b=I=>{let{val:n,onChange:b,errors:s,isLoading:o,disabled:u}=I;var B,a,r;const[y,X]=C.useState(t),m=null!==(B=null==n?void 0:n.type)&&void 0!==B?B:"days",p=null!==(a=null==n?void 0:n.start)&&void 0!==a?a:"1",Z=null!==(r=null==n?void 0:n.offset)&&void 0!==r?r:"2";return C.useEffect((()=>{var I;const g=null!==(I=null==n?void 0:n.type)&&void 0!==I?I:"days";X((I=>I.map((I=>Object.assign(Object.assign({},I),{selected:g===I.value})))))}),[n]),C.useEffect((()=>{var I,g,C;if(void 0===(null==n?void 0:n.start)){const e=null!==(I=null==n?void 0:n.type)&&void 0!==I?I:"days",d=null!==(g=null==n?void 0:n.start)&&void 0!==g?g:"1",A=null!==(C=null==n?void 0:n.offset)&&void 0!==C?C:"2";null==b||b({type:e,start:d,offset:A})}}),[]),o?g.jsx("div",Object.assign({style:{width:200}},{children:g.jsx(c.default,{containerStyle:{padding:"5px 8px"}})})):g.jsx(l.InputStyleContext.Provider,Object.assign({value:{InputWrapper:{width:104}}},{children:g.jsxs(i,{children:[g.jsx(A.Input,{type:"number",variant:"small",state:u?"disabled":"none",errorMessage:null==s?void 0:s.val,value:Z.toString(),onChangeText:I=>null==b?void 0:b({type:m,start:p,offset:I})}),g.jsx("div",{children:g.jsx(d.BodySecondary,{children:"to"})}),g.jsx(A.Input,{type:"number",variant:"small",state:u?"disabled":"none",errorMessage:null==s?void 0:s.val,value:p.toString(),onChangeText:I=>null==b?void 0:b({type:m,start:I,offset:Z})}),g.jsx(e.Dropdown,{disabled:u,placeHolder:"Time",width:"108px",size:"small",options:y,onSelect:I=>{null==b||b({type:I.value,start:p,offset:Z})}})]})}))};exports.default=I=>g.jsx(b,Object.assign({},I));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("react"),a=require("../../DropdownWrapper.js");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("react"),a=require("../../DropdownWrapper.js");const r=r=>{let{onChange:i,extra:n,val:o,isLoading:t,errors:s,disabled:d,onSearch:u}=r;var c;const[v,p]=l.useState([]),f=o;return l.useEffect((()=>{var e;const l=(null==n?void 0:n.options)&&Array.isArray(n.options)?n.options.filter((e=>!!Object.keys(e).length)).map((e=>({selected:!!(null==f?void 0:f.find((l=>l.id===e.id))),label:e.name,value:e.id}))):[],a=null!==(e=null==f?void 0:f.map((e=>e.id)))&&void 0!==e?e:[],r=[...l.filter((e=>!a.includes(e.value)))].concat((null!=f?f:[]).map((e=>({value:e.id,label:e.name}))));null==f||f.forEach((e=>{let{name:l,id:a}=e;const i=r.findIndex((e=>e.value===a&&e.label===l));-1!==i&&(r[i].selected=!0)})),p([...r])}),[n,f]),e.jsx("div",{children:e.jsx(a.default,{onSearch:u,disabled:d,allowFreeForm:null===(c=null==n?void 0:n.freeForm)||void 0===c||c,isSearchable:!0,isLoading:t,error:null==s?void 0:s.val,isMultiSelect:!0,options:v,onSelect:function(e){if(Array.isArray(e)){const l=[];e.forEach((e=>{var a,r;e.options?null===(a=e.options)||void 0===a||a.forEach((e=>{l.push({name:e.label,id:e.value})})):l.push({name:null!==(r=e.label)&&void 0!==r?r:"",id:e.value})})),null==i||i(l)}}})})};exports.default=l=>e.jsx(r,Object.assign({},l));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),n=require("../../constants/connectorPosition.js"),t=require("../../helpers/Connector.helper.js"),o=require("../../types/QueryBuilder.type.js"),i=require("../DropdownWrapper.js"),l=require("./Components/EmojiPicker.js"),s=require("./Components/FreeText.js"),u=require("./Components/FrequencyIntegerPositiveSingle.js"),a=require("./Components/IgPicker.js"),d=require("./Components/IntegerPositiveSingle.js"),p=require("./Components/IntegerSingleValue.js"),c=require("./Components/InTheLast.js"),g=require("./Components/InTheLastAgo.js"),j=require("./Components/InTwoLast.js"),m=require("./Components/MultiselectDropdownFreeText.js"),C=require("./Components/NoInput.js"),q=require("./Components/NumberTime.js"),f=require("./Components/SingleDate.js"),S=require("./Components/SingleselectDropdownFreeText.js"),v=require("./Components/StringSingleValue.js"),I=require("./Components/TwoDate.js"),T=require("./Components/TwoNumberInputsSeperatedByAnd.js"),P=require("./Connector.styled.js");const y={FreeText:s.default,IntegerPositiveSingle:d.default,IntegerSingleValue:p.default,StringSingleValue:v.default,MultiselectDropdownFreeText:m.default,SingleselectDropdownFreeText:S.default,NoInput:C.default,SingleDate:f.default,TwoNumberInputsSeperatedByAnd:T.default,FrequencyIntegerPositiveSingle:u.default,TwoDate:I.default,NumberTime:q.default,PostIgPicker:a.PostIgPicker,ReelIgPicker:a.ReelIgPicker,StoryIgPicker:a.StoryIgPicker,EmojiPicker:l.default,InTheLast:c.default,InTwoLast:j.default,InTheLastAgo:g.default};exports.default=l=>{let{isLoading:s,noDefault:u,connectorType:a,defaultConnector:d,onOperatorChange:p,onValueChange:c,connectorVal:g,extra:j,errors:m,disabled:C,onSearch:q}=l;var f,S,v;const[I,T]=r.useState(null),[h,w]=r.useState(!1),x=t.ConnectorHelper.getDropdownOptionFromDataType(a,d);function D(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];w(!0);const n=t.ConnectorHelper.getConnectorComponent(a,e.value);void 0!==n?a===o.QueryBuilderConnectorType.frequency&&"IntegerPositiveSingle"===n?T("FrequencyIntegerPositiveSingle"):T(n):T(null),r||p(e.value),setTimeout((()=>{w(!1)}),5)}return r.useEffect((()=>{u||(d?D({value:d,label:d},!0):(null==x?void 0:x[0])&&D(x[0]))}),[d]),e.jsxs(P.Container,{children:[e.jsx("div",{children:!(null===(f=null===n.disableOperatorDropdown||void 0===n.disableOperatorDropdown?void 0:n.disableOperatorDropdown[a])||void 0===f?void 0:f[d])&&e.jsx(i.default,{isSearchable:!0,disabled:C,width:"200px",isLoading:h,options:x,defaultOption:null===(S=x.filter((e=>e.selected)))||void 0===S?void 0:S[0],onSelect:D})}),null!==I&&!h&&(null===(v=y[I])||void 0===v?void 0:v.call(y,{disabled:C,val:g,onChange:c,extra:j,errors:m,isLoading:s,onSearch:q}))]})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../dropdown/Dropdown.js"),i=require("./InputLoader.js");exports.default=t=>{let{options:l,onSelect:r,defaultOption:o,isSearchable:a,isLoading:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../dropdown/Dropdown.js"),i=require("./InputLoader.js");exports.default=t=>{let{options:l,onSelect:r,defaultOption:o,isSearchable:a,isLoading:n,error:d,nativeID:c,dropdownLabel:u,isMultiSelect:p,allowFreeForm:j,width:b,disabled:h,selectedValues:g,onSearch:O}=t;return n?e.jsx(i.default,{}):e.jsx("div",Object.assign({style:{maxWidth:200,width:200},id:c},{children:e.jsx(s.Dropdown,{onSearch:O,height:(null==l?void 0:l.length)?void 0:208,disabled:h,allowFreeForm:null!=j&&j,isMultiSelect:p,width:b,size:"small",placeHolder:u,error:d,isSearchable:null!=a&&a,defaultOptions:o?Array.isArray(o)?o:[o]:void 0,options:g?l.map((e=>e.options?Object.assign(Object.assign({},e),{options:e.options.map((e=>Object.assign(Object.assign({},e),{selected:g.includes(e.value)})))}):Object.assign(Object.assign({},e),{selected:g.includes(e.value)}))):l,onSelect:r})}))};
|
package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { DropdownOption } from "../../../../dropdown/type";
|
|
2
3
|
import { BaseQueryBuilderNode as BaseQueryBuilderNodeType, QueryBuilderProperty } from "../../../types/QueryBuilder.type";
|
|
3
4
|
import { QueryBuilderPropertyProps } from "../../../types/QueryBuilderPropertyProps";
|
|
4
5
|
type BaseQueryBuilderNodeProps = Omit<QueryBuilderPropertyProps, 'property'> & {
|
|
@@ -8,6 +9,7 @@ type BaseQueryBuilderNodeProps = Omit<QueryBuilderPropertyProps, 'property'> & {
|
|
|
8
9
|
addPropertyBtnText?: string;
|
|
9
10
|
node: BaseQueryBuilderNodeType;
|
|
10
11
|
children: React.ReactNode;
|
|
12
|
+
onPropertyValueSearch?: (searchKey: string, property: QueryBuilderProperty) => Promise<DropdownOption[]>;
|
|
11
13
|
};
|
|
12
14
|
/**
|
|
13
15
|
* @exported
|
|
@@ -15,5 +17,7 @@ type BaseQueryBuilderNodeProps = Omit<QueryBuilderPropertyProps, 'property'> & {
|
|
|
15
17
|
* @param param0
|
|
16
18
|
* @returns
|
|
17
19
|
*/
|
|
18
|
-
export declare const BaseQueryBuilderNode: React.FC<BaseQueryBuilderNodeProps
|
|
20
|
+
export declare const BaseQueryBuilderNode: React.FC<BaseQueryBuilderNodeProps & {
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
}>;
|
|
19
23
|
export {};
|
package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),o=require("../../../constants/connectorPosition.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),o=require("../../../constants/connectorPosition.js"),a=require("../../../helpers/ApiResponse.helper.js"),n=require("../../Connectors/Connector.js"),i=require("../../DropdownWrapper.js"),t=require("./PropertyNode.styled.js"),l=require("./PropertyNodeUIWrapper.js");const s=new a.ApiResponseHelper,d=a=>{let{propertySelectorText:l,fetchPropertyData:d,onPropertyNameSelect:u,onPropertyOperatorChange:c,onPropertyValueChange:p,property:v,mode:y,onPropertyValueSearch:j}=a;var g,m,b,f,h,O,x;const[A,C]=r.useState([]),[P,S]=r.useState({}),[T,w]=r.useState(!0),[q,L]=r.useState("create"===y),N=Array.isArray(A)?A.map((e=>Object.assign(Object.assign({},e),{label:e.name,value:e.id,description:e.description,selected:(null==v?void 0:v.name)===e.id}))):s.convertToGroupOptions(A,(null==v?void 0:v.name)?[v.name.toString()]:void 0);function V(e){if(!Array.isArray(e)){L(!0);let r=null;Array.isArray(A)?r=A.find((r=>{let{id:o}=r;return o===e.value})):Object.keys(A).forEach((o=>{const a=A[o].find((r=>{let{id:o}=r;return o===e.value}));a&&(r=a)})),S({}),r?null==u||u(r,v).then((e=>{const r=e;r.normalized&&r.originalData?S((e=>Object.assign(Object.assign({},e),{options:Array.isArray(r.normalized)?[...r.normalized]:Object.assign({},r.normalized),originalData:r.originalData}))):S((r=>Object.assign(Object.assign({},r),{options:Array.isArray(e)?[...e]:Object.assign({},e)}))),L(!1)})):L(!1)}}return r.useEffect((()=>{d?d().then((e=>{e&&(Array.isArray(e)?C([...e]):C(Object.assign({},e))),w(!1),L(!1)})):(w(!1),L(!1))}),[]),r.useEffect((()=>{if("create"!==y&&A&&(null==v?void 0:v.name)){const e=v,r=Array.isArray(A)?A.find((e=>e.id===(null==v?void 0:v.name))):s.findInGroupedApiResponse(A,null==v?void 0:v.name);r&&V({value:r.id,label:r.name}),null==p||p(null==e?void 0:e.value,v)}}),[A]),r.useEffect((()=>{"iceBreaker"===(null==v?void 0:v.dataType)&&S((e=>Object.assign(Object.assign({},e),{freeForm:!1})))}),[null==v?void 0:v.dataType]),e.jsxs(e.Fragment,{children:[e.jsxs(t.Container,{children:[e.jsx(i.default,{isSearchable:!0,disabled:"view"===y,width:"200px",isLoading:T,dropdownLabel:null!=l?l:"Select property",options:N,onSelect:V,selectedValues:(null==v?void 0:v.name)?[v.name]:void 0,error:null===(g=null==v?void 0:v.error)||void 0===g?void 0:g.name}),(null==v?void 0:v.name)&&!(null===(m=o.isNewLineConnectorPosition[v.dataType])||void 0===m?void 0:m[v.operator])&&e.jsx(n.default,{onSearch:j?e=>j(e,v):void 0,isLoading:q,disabled:"view"===y,extra:P,errors:{val:null===(b=v.error)||void 0===b?void 0:b.value,operator:null===(f=v.error)||void 0===f?void 0:f.operator},connectorVal:v.value,connectorType:v.dataType,defaultConnector:v.operator,onOperatorChange:e=>{null==c||c(e,v)},onValueChange:e=>null==p?void 0:p(e,v)})]}),(null==v?void 0:v.name)&&(null===(h=o.isNewLineConnectorPosition[v.dataType])||void 0===h?void 0:h[v.operator])&&e.jsx(n.default,{onSearch:j?e=>j(e,v):void 0,isLoading:q,disabled:"view"===y,extra:P,errors:{val:null===(O=v.error)||void 0===O?void 0:O.value,operator:null===(x=v.error)||void 0===x?void 0:x.operator},connectorVal:v.value,connectorType:v.dataType,defaultConnector:v.operator,onOperatorChange:e=>null==c?void 0:c(e,v),onValueChange:e=>null==p?void 0:p(e,v)})]})};exports.PropertyNode=r=>e.jsx(l.default,Object.assign({isLast:r.isLast,mode:r.mode},{children:e.jsx("div",Object.assign({style:{padding:12,maxWidth:"calc(100% - 78px)"}},{children:e.jsx(d,Object.assign({},r))}))})),exports.PropertyNodeHeadless=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.DATE_OPERATORS_OPTIONS=[{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,value:"last 30 days",label:"Last 30 days"},{selected:!1,value:"this week",label:"This week"},{selected:!1,value:"last week",label:"Last week"},{selected:!1,value:"this month",label:"This month"},{selected:!0,value:"last month",label:"Last month"}]},{label:"Relative",options:[{selected:!1,value:"exactly",label:"Exactly"},{selected:!1,value:"in the last",label:"In the last"},{selected:!1,value:"in between last",label:"In between last"}]},{label:"Absolute",options:[{selected:!1,value:"on",label:"On"},{selected:!1,value:"notOn",label:"Not On"},{selected:!1,value:"inBetween",label:"In Between"},{selected:!1,value:"notInBetween",label:"Not In Between"},{selected:!1,value:"before",label:"Before"},{selected:!1,value:"after",label:"After"}]}];
|
|
@@ -20,7 +20,9 @@ export declare enum CONNECTOR_VALUE_COMPONENT_TYPES {
|
|
|
20
20
|
ReelIgPicker = "ReelIgPicker",
|
|
21
21
|
StoryIgPicker = "StoryIgPicker",
|
|
22
22
|
EmojiPicker = "EmojiPicker",
|
|
23
|
-
InTheLast = "InTheLast"
|
|
23
|
+
InTheLast = "InTheLast",
|
|
24
|
+
InTwoLast = "InTwoLast",
|
|
25
|
+
InTheLastAgo = "InTheLastAgo"
|
|
24
26
|
}
|
|
25
27
|
export declare const INTEGER_OPERATORS_COMPONENT: {
|
|
26
28
|
is: CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
@@ -59,18 +61,24 @@ export declare const REACTION_OPERATORS_COMPONENT: {
|
|
|
59
61
|
contains: CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
60
62
|
};
|
|
61
63
|
export declare const DATE_OPERATORS_COMPONENT: {
|
|
64
|
+
today: CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
65
|
+
yesterday: CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
66
|
+
"last 30 days": CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
67
|
+
"last 7 days": CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
68
|
+
"this month": CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
69
|
+
"this week": CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
70
|
+
"last month": CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
71
|
+
"last week": CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
72
|
+
exactly: CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
73
|
+
"in the last": CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
74
|
+
"in between last": CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
62
75
|
on: CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
63
76
|
notOn: CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
64
77
|
inBetween: CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
65
78
|
notInBetween: CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
66
79
|
before: CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
67
80
|
after: CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
68
|
-
today: CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
69
|
-
yesterday: CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
70
|
-
"last week": CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
71
|
-
"last month": CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
72
81
|
"last quarter": CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
73
|
-
"in the last": CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
74
82
|
};
|
|
75
83
|
export declare const SPECIFIC_IG_POST_OPERATORS_COMPONENT: {
|
|
76
84
|
in: CONNECTOR_VALUE_COMPONENT_TYPES;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var O=require("../types/QueryBuilder.type.js"),e=require("../types/QueryBuilderOperator.type.js");const E={[O.QueryBuilderConnectorType.boolean]:e.BOOLEAN_OPERATORS,[O.QueryBuilderConnectorType.string]:e.STRING_OPERATORS,[O.QueryBuilderConnectorType.integer]:e.INTEGER_OPERATORS,[O.QueryBuilderConnectorType.frequency]:e.FREQUENCY_OPERATORS,[O.QueryBuilderConnectorType.date]:e.DATE_OPERATORS,[O.QueryBuilderConnectorType.specificPost]:e.SPECIFIC_IG_OPERATORS,[O.QueryBuilderConnectorType.specificReel]:e.SPECIFIC_IG_OPERATORS,[O.QueryBuilderConnectorType.specificStory]:e.SPECIFIC_IG_OPERATORS,[O.QueryBuilderConnectorType.anyIg]:e.ANY_IG_OPERATORS,[O.QueryBuilderConnectorType.reaction]:e.REACTION_OPERATORS,[O.QueryBuilderConnectorType.activityString]:e.IG_STRING_OPERATORS,[O.QueryBuilderConnectorType.anyAd]:e.ANY_AD_OPERATORS,[O.QueryBuilderConnectorType.specificAd]:e.AD_STRING_OPERATORS,[O.QueryBuilderConnectorType.iceBreaker]:e.ICE_BREAKER_OPERATORS};var T;exports.CONNECTOR_VALUE_COMPONENT_TYPES=void 0,(T=exports.CONNECTOR_VALUE_COMPONENT_TYPES||(exports.CONNECTOR_VALUE_COMPONENT_TYPES={})).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",T.PostIgPicker="PostIgPicker",T.ReelIgPicker="ReelIgPicker",T.StoryIgPicker="StoryIgPicker",T.EmojiPicker="EmojiPicker",T.InTheLast="InTheLast",T.InTwoLast="InTwoLast",T.InTheLastAgo="InTheLastAgo";const N={[e.INTEGER_OPERATORS.is]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[e.INTEGER_OPERATORS.isNot]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[e.INTEGER_OPERATORS.exists]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.INTEGER_OPERATORS.doesntExist]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.INTEGER_OPERATORS.lessThan]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerSingleValue,[e.INTEGER_OPERATORS.lessThanOrEqualTo]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerSingleValue,[e.INTEGER_OPERATORS.greaterThan]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerSingleValue,[e.INTEGER_OPERATORS.greaterThanOrEqualTo]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerSingleValue},_={[e.STRING_OPERATORS.is]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.MultiselectDropdownFreeText,[e.STRING_OPERATORS.isNot]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.MultiselectDropdownFreeText,[e.STRING_OPERATORS.contains]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[e.STRING_OPERATORS.doesntContain]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[e.STRING_OPERATORS.startsWith]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[e.STRING_OPERATORS.endsWith]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[e.STRING_OPERATORS.exists]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.STRING_OPERATORS.doesntExist]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput},t={[e.IG_STRING_OPERATORS.any]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.IG_STRING_OPERATORS.is]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.MultiselectDropdownFreeText,[e.IG_STRING_OPERATORS.contains]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[e.IG_STRING_OPERATORS.startsWith]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[e.IG_STRING_OPERATORS.endsWith]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText},R={[e.AD_STRING_OPERATORS.is]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.SingleselectDropdownFreeText},r={[e.ICE_BREAKER_OPERATORS.is]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.MultiselectDropdownFreeText},C={[e.REACTION_OPERATORS.contains]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.EmojiPicker},P={[e.DATE_OPERATORS.today]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.DATE_OPERATORS.yesterday]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.DATE_OPERATORS["last 30 days"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.DATE_OPERATORS["last 7 days"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.DATE_OPERATORS["this month"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.DATE_OPERATORS["this week"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.DATE_OPERATORS["last month"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.DATE_OPERATORS["last week"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.DATE_OPERATORS.exactly]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.InTheLastAgo,[e.DATE_OPERATORS["in the last"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.InTheLast,[e.DATE_OPERATORS["in between last"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.InTwoLast,[e.DATE_OPERATORS.on]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.SingleDate,[e.DATE_OPERATORS.notOn]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.SingleDate,[e.DATE_OPERATORS.inBetween]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.TwoDate,[e.DATE_OPERATORS.notInBetween]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.TwoDate,[e.DATE_OPERATORS.before]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.SingleDate,[e.DATE_OPERATORS.after]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.SingleDate,[e.DATE_OPERATORS.today]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.DATE_OPERATORS.yesterday]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.DATE_OPERATORS["last week"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.DATE_OPERATORS["last month"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.DATE_OPERATORS["last quarter"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.DATE_OPERATORS["in the last"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.InTheLast},o={[e.SPECIFIC_IG_OPERATORS.in]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.PostIgPicker},S={[e.SPECIFIC_IG_OPERATORS.in]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.ReelIgPicker},A={[e.SPECIFIC_IG_OPERATORS.in]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.StoryIgPicker},n={[e.ANY_IG_OPERATORS.in]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput},s={[e.ANY_AD_OPERATORS.in]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput},p={[e.BOOLEAN_OPERATORS.isTrue]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.BOOLEAN_OPERATORS.isFalse]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.BOOLEAN_OPERATORS.exists]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[e.BOOLEAN_OPERATORS.doesntExist]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput},i={[e.FREQUENCY_OPERATORS.exactly]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerPositiveSingle,[e.FREQUENCY_OPERATORS.atleast]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerPositiveSingle,[e.FREQUENCY_OPERATORS.atMost]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerPositiveSingle},I={[O.QueryBuilderConnectorType.boolean]:p,[O.QueryBuilderConnectorType.string]:_,[O.QueryBuilderConnectorType.integer]:N,[O.QueryBuilderConnectorType.frequency]:i,[O.QueryBuilderConnectorType.date]:P,[O.QueryBuilderConnectorType.specificPost]:o,[O.QueryBuilderConnectorType.specificReel]:S,[O.QueryBuilderConnectorType.specificStory]:A,[O.QueryBuilderConnectorType.anyIg]:n,[O.QueryBuilderConnectorType.reaction]:C,[O.QueryBuilderConnectorType.activityString]:t,[O.QueryBuilderConnectorType.anyAd]:s,[O.QueryBuilderConnectorType.specificAd]:R,[O.QueryBuilderConnectorType.iceBreaker]:r};exports.AD_STRING_OPERATORS_COMPONENT=R,exports.ANY_AD_OPERATORS_COMPONENT=s,exports.ANY_IG_OPERATORS_COMPONENT=n,exports.BOOLEAN_OPERATORS_COMPONENT=p,exports.CONNECTOR_TYPE_TO_COMPONENT_MAP=I,exports.CONNECTOR_TYPE_TO_OPERATORS=E,exports.DATE_OPERATORS_COMPONENT=P,exports.FREQUENCY_OPERATORS_COMPONENT=i,exports.ICE_BREAKER_OPERATORS_COMPONENT=r,exports.IG_STRING_OPERATORS_COMPONENT=t,exports.INTEGER_OPERATORS_COMPONENT=N,exports.REACTION_OPERATORS_COMPONENT=C,exports.SPECIFIC_IG_POST_OPERATORS_COMPONENT=o,exports.SPECIFIC_IG_REEL_OPERATORS_COMPONENT=S,exports.SPECIFIC_IG_STORY_OPERATORS_COMPONENT=A,exports.STRING_OPERATORS_COMPONENT=_;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { DropdownOption } from "../../dropdown/type";
|
|
1
2
|
import { QueryBuilderConnectorType } from '../types/QueryBuilder.type';
|
|
2
3
|
import { CONNECTOR_OPERATORS } from '../types/QueryBuilderOperator.type';
|
|
3
4
|
export declare class ConnectorHelper {
|
|
4
5
|
static getConnectorType(datatype: QueryBuilderConnectorType): string[];
|
|
5
6
|
static getConnectorComponent(dataType: QueryBuilderConnectorType, connectorType: CONNECTOR_OPERATORS): "FreeText" | "NoInput" | "IntegerSingleValue" | "StringSingleValue" | "TwoNumberInputsSeperatedByAnd" | "MultiselectDropdownFreeText" | "SingleselectDropdownFreeText" | "SingleDate" | "TwoDate" | "IntegerPositiveSingle" | "NumberTime" | null;
|
|
7
|
+
static getDropdownOptionFromDataType(datatype: QueryBuilderConnectorType, defaultConnector: CONNECTOR_OPERATORS | undefined): DropdownOption[];
|
|
6
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../constants/connector.js");exports.ConnectorHelper=class{static getConnectorType(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../utils/unCamelCase.js"),t=require("../constants/connector.js"),s=require("../constants/DATE_OPERATORS_OPTIONS.js"),r=require("../types/QueryBuilder.type.js");exports.ConnectorHelper=class{static getConnectorType(e){const s=t.CONNECTOR_TYPE_TO_OPERATORS[e];return s?Object.keys(s):[]}static getConnectorComponent(e,s){if(t.CONNECTOR_TYPE_TO_OPERATORS[e]){return t.CONNECTOR_TYPE_TO_COMPONENT_MAP[e][s]}return null}static getDropdownOptionFromDataType(t,n){const o=this.getConnectorType(t);return t===r.QueryBuilderConnectorType.date?s.DATE_OPERATORS_OPTIONS.map((e=>Object.assign(Object.assign({},e),{options:e.options.map((e=>Object.assign(Object.assign({},e),{selected:e.value===n})))}))):o.map((t=>({selected:t===n,value:t,label:e.unCamelCaseWithFirstUppercase(t)})))}};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { DATE_OPERATORS } from '../types';
|
|
2
|
+
import { QueryBuilderMeta } from '../types/QueryBuilder.type';
|
|
3
|
+
export declare const lastDaysRegexPattern: RegExp;
|
|
4
|
+
export declare const notLastDaysRegexPattern: RegExp;
|
|
5
|
+
export declare const inBetweenLast: RegExp;
|
|
6
|
+
export declare const notInBetweenLast: RegExp;
|
|
7
|
+
export declare const exactly: RegExp;
|
|
8
|
+
export declare const notExactly: RegExp;
|
|
9
|
+
export declare class MetaCustomProcessor {
|
|
10
|
+
prepareDateMeta(meta: QueryBuilderMeta): QueryBuilderMeta | {
|
|
11
|
+
value: {
|
|
12
|
+
operator: string;
|
|
13
|
+
value: any[];
|
|
14
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
15
|
+
};
|
|
16
|
+
key: string;
|
|
17
|
+
refresh?: boolean | undefined;
|
|
18
|
+
error: {
|
|
19
|
+
key?: string | undefined;
|
|
20
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
21
|
+
};
|
|
22
|
+
} | {
|
|
23
|
+
value: {
|
|
24
|
+
operator: string;
|
|
25
|
+
value: any[];
|
|
26
|
+
offset: any[];
|
|
27
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
28
|
+
};
|
|
29
|
+
key: string;
|
|
30
|
+
refresh?: boolean | undefined;
|
|
31
|
+
error: {
|
|
32
|
+
key?: string | undefined;
|
|
33
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
34
|
+
};
|
|
35
|
+
} | {
|
|
36
|
+
value: {
|
|
37
|
+
operator: string;
|
|
38
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
39
|
+
value?: string | number | string[] | number[] | Date | Date[] | undefined;
|
|
40
|
+
};
|
|
41
|
+
key: string;
|
|
42
|
+
refresh?: boolean | undefined;
|
|
43
|
+
error: {
|
|
44
|
+
key?: string | undefined;
|
|
45
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
/** @edit */
|
|
49
|
+
normalizeDateMeta(meta: QueryBuilderMeta): QueryBuilderMeta | {
|
|
50
|
+
value: {
|
|
51
|
+
operator: DATE_OPERATORS;
|
|
52
|
+
value: {
|
|
53
|
+
type: string | undefined;
|
|
54
|
+
start: any;
|
|
55
|
+
/** @ts-ignore offset-start is BE only type, happens in type-less way */
|
|
56
|
+
offset: any;
|
|
57
|
+
};
|
|
58
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
59
|
+
};
|
|
60
|
+
key: string;
|
|
61
|
+
refresh?: boolean | undefined;
|
|
62
|
+
error: {
|
|
63
|
+
key?: string | undefined;
|
|
64
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
65
|
+
};
|
|
66
|
+
} | {
|
|
67
|
+
value: {
|
|
68
|
+
value: any[];
|
|
69
|
+
operator: DATE_OPERATORS;
|
|
70
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
71
|
+
};
|
|
72
|
+
key: string;
|
|
73
|
+
refresh?: boolean | undefined;
|
|
74
|
+
error: {
|
|
75
|
+
key?: string | undefined;
|
|
76
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseQueryBuilderNode, QueryBuilderProperty } from '../types/QueryBuilder.type';
|
|
2
|
+
export declare class OperatorHelperV2 {
|
|
3
|
+
convertBetweenOperator(property: QueryBuilderProperty): QueryBuilderProperty | QueryBuilderProperty[];
|
|
4
|
+
convertNotBetweenOperator(property: QueryBuilderProperty): QueryBuilderProperty | QueryBuilderProperty[];
|
|
5
|
+
/** @unused */
|
|
6
|
+
breakUserPropertyNodeBasedOperator(userPropertyNode: BaseQueryBuilderNode): BaseQueryBuilderNode | BaseQueryBuilderNode[];
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { QueryBuilderProperty } from '../types/QueryBuilder.type';
|
|
2
|
+
export declare class PropertyCustomProcessor {
|
|
3
|
+
/** @unused */
|
|
4
|
+
prepareBetween(property: QueryBuilderProperty): QueryBuilderProperty | QueryBuilderProperty[];
|
|
5
|
+
prepareBoolean(property: QueryBuilderProperty): QueryBuilderProperty;
|
|
6
|
+
prepareDate(property: QueryBuilderProperty): QueryBuilderProperty;
|
|
7
|
+
prepareInteger(property: QueryBuilderProperty): {
|
|
8
|
+
_id: string;
|
|
9
|
+
name?: string | number | undefined;
|
|
10
|
+
dataType?: import("../types/QueryBuilder.type").QueryBuilderConnectorType | undefined;
|
|
11
|
+
operator?: import("..").CONNECTOR_OPERATORS | undefined;
|
|
12
|
+
value?: import("..").CONNECTOR_VALUE_TYPE;
|
|
13
|
+
_refresh?: boolean | undefined;
|
|
14
|
+
error: {
|
|
15
|
+
name?: string | undefined;
|
|
16
|
+
dataType?: string | undefined;
|
|
17
|
+
operator?: string | undefined;
|
|
18
|
+
value?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
prepareIsAndIsNot(property: QueryBuilderProperty): QueryBuilderProperty;
|
|
22
|
+
/** @edit */
|
|
23
|
+
normalizeIsAndIsNotOperator(property: QueryBuilderProperty): QueryBuilderProperty;
|
|
24
|
+
/** @edit */
|
|
25
|
+
normalizeBoolean(property: QueryBuilderProperty): QueryBuilderProperty;
|
|
26
|
+
/** @edit */
|
|
27
|
+
normalizeInteger(property: QueryBuilderProperty): QueryBuilderProperty;
|
|
28
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { QueryBuilderMeta, QueryBuilderRoot } from '../types';
|
|
2
|
+
import { QueryBuilderType } from '../types/QueryBuilder.type';
|
|
3
|
+
type SegmentBuilder = {
|
|
4
|
+
exclude?: QueryBuilderRoot;
|
|
5
|
+
include: QueryBuilderRoot;
|
|
6
|
+
name?: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @frontend
|
|
10
|
+
*/
|
|
11
|
+
export declare class SegmentHelperV2 {
|
|
12
|
+
private prepareNode;
|
|
13
|
+
prepare(v2: SegmentBuilder): SegmentBuilder;
|
|
14
|
+
private editNode;
|
|
15
|
+
edit(v2: SegmentBuilder): {
|
|
16
|
+
name: string | undefined;
|
|
17
|
+
include: {
|
|
18
|
+
nodes: {
|
|
19
|
+
metas: (QueryBuilderMeta | {
|
|
20
|
+
value: {
|
|
21
|
+
operator: import("../types").DATE_OPERATORS;
|
|
22
|
+
value: {
|
|
23
|
+
type: string | undefined;
|
|
24
|
+
start: any;
|
|
25
|
+
offset: any;
|
|
26
|
+
};
|
|
27
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
28
|
+
};
|
|
29
|
+
key: string;
|
|
30
|
+
refresh?: boolean | undefined;
|
|
31
|
+
error: {
|
|
32
|
+
key?: string | undefined;
|
|
33
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
34
|
+
};
|
|
35
|
+
} | {
|
|
36
|
+
value: {
|
|
37
|
+
value: any[];
|
|
38
|
+
operator: import("../types").DATE_OPERATORS;
|
|
39
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
40
|
+
};
|
|
41
|
+
key: string;
|
|
42
|
+
refresh?: boolean | undefined;
|
|
43
|
+
error: {
|
|
44
|
+
key?: string | undefined;
|
|
45
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
46
|
+
};
|
|
47
|
+
})[];
|
|
48
|
+
properties: import("../types").QueryBuilderPropertyType[];
|
|
49
|
+
_id: string;
|
|
50
|
+
type: QueryBuilderType;
|
|
51
|
+
isExclude?: boolean | undefined;
|
|
52
|
+
PropertyOperator?: import("../types").QueryBuilderJoinOperators | undefined;
|
|
53
|
+
}[];
|
|
54
|
+
operator: import("../types").QueryBuilderJoinOperators | undefined;
|
|
55
|
+
};
|
|
56
|
+
exclude: {
|
|
57
|
+
nodes: {
|
|
58
|
+
metas: (QueryBuilderMeta | {
|
|
59
|
+
value: {
|
|
60
|
+
operator: import("../types").DATE_OPERATORS;
|
|
61
|
+
value: {
|
|
62
|
+
type: string | undefined;
|
|
63
|
+
start: any;
|
|
64
|
+
offset: any;
|
|
65
|
+
};
|
|
66
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
67
|
+
};
|
|
68
|
+
key: string;
|
|
69
|
+
refresh?: boolean | undefined;
|
|
70
|
+
error: {
|
|
71
|
+
key?: string | undefined;
|
|
72
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
73
|
+
};
|
|
74
|
+
} | {
|
|
75
|
+
value: {
|
|
76
|
+
value: any[];
|
|
77
|
+
operator: import("../types").DATE_OPERATORS;
|
|
78
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
79
|
+
};
|
|
80
|
+
key: string;
|
|
81
|
+
refresh?: boolean | undefined;
|
|
82
|
+
error: {
|
|
83
|
+
key?: string | undefined;
|
|
84
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
85
|
+
};
|
|
86
|
+
})[];
|
|
87
|
+
properties: import("../types").QueryBuilderPropertyType[];
|
|
88
|
+
_id: string;
|
|
89
|
+
type: QueryBuilderType;
|
|
90
|
+
isExclude?: boolean | undefined;
|
|
91
|
+
PropertyOperator?: import("../types").QueryBuilderJoinOperators | undefined;
|
|
92
|
+
}[];
|
|
93
|
+
operator: import("../types").QueryBuilderJoinOperators | undefined;
|
|
94
|
+
};
|
|
95
|
+
} | {
|
|
96
|
+
name: string | undefined;
|
|
97
|
+
include: {
|
|
98
|
+
nodes: {
|
|
99
|
+
metas: (QueryBuilderMeta | {
|
|
100
|
+
value: {
|
|
101
|
+
operator: import("../types").DATE_OPERATORS;
|
|
102
|
+
value: {
|
|
103
|
+
type: string | undefined;
|
|
104
|
+
start: any;
|
|
105
|
+
offset: any;
|
|
106
|
+
};
|
|
107
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
108
|
+
};
|
|
109
|
+
key: string;
|
|
110
|
+
refresh?: boolean | undefined;
|
|
111
|
+
error: {
|
|
112
|
+
key?: string | undefined;
|
|
113
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
114
|
+
};
|
|
115
|
+
} | {
|
|
116
|
+
value: {
|
|
117
|
+
value: any[];
|
|
118
|
+
operator: import("../types").DATE_OPERATORS;
|
|
119
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
120
|
+
};
|
|
121
|
+
key: string;
|
|
122
|
+
refresh?: boolean | undefined;
|
|
123
|
+
error: {
|
|
124
|
+
key?: string | undefined;
|
|
125
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
126
|
+
};
|
|
127
|
+
})[];
|
|
128
|
+
properties: import("../types").QueryBuilderPropertyType[];
|
|
129
|
+
_id: string;
|
|
130
|
+
type: QueryBuilderType;
|
|
131
|
+
isExclude?: boolean | undefined;
|
|
132
|
+
PropertyOperator?: import("../types").QueryBuilderJoinOperators | undefined;
|
|
133
|
+
}[];
|
|
134
|
+
operator: import("../types").QueryBuilderJoinOperators | undefined;
|
|
135
|
+
};
|
|
136
|
+
exclude?: undefined;
|
|
137
|
+
};
|
|
138
|
+
containsError(v2: SegmentBuilder): string | undefined;
|
|
139
|
+
}
|
|
140
|
+
export {};
|