@bikdotai/bik-component-library 1.1.1-beta.44 → 1.1.1-beta.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/StringSingleValue.d.ts +4 -0
  2. package/dist/cjs/components/QueryBuilder/components/Connectors/Components/StringSingleValue.js +1 -0
  3. package/dist/cjs/components/QueryBuilder/components/Connectors/Connector.js +1 -1
  4. package/dist/cjs/components/QueryBuilder/constants/connector.d.ts +1 -0
  5. package/dist/cjs/components/QueryBuilder/constants/connector.js +1 -1
  6. package/dist/cjs/components/QueryBuilder/helpers/Connector.helper.d.ts +1 -1
  7. package/dist/cjs/components/QueryBuilder/types/QueryBuilderOperator.type.d.ts +2 -0
  8. package/dist/cjs/components/QueryBuilder/types/QueryBuilderOperator.type.js +1 -1
  9. package/dist/cjs/components/searchBar/searchBar.d.ts +0 -1
  10. package/dist/cjs/components/stepper/WorkingStepper.d.ts +0 -1
  11. package/dist/esm/components/QueryBuilder/components/Connectors/Components/StringSingleValue.d.ts +4 -0
  12. package/dist/esm/components/QueryBuilder/components/Connectors/Components/StringSingleValue.js +1 -0
  13. package/dist/esm/components/QueryBuilder/components/Connectors/Connector.js +1 -1
  14. package/dist/esm/components/QueryBuilder/constants/connector.d.ts +1 -0
  15. package/dist/esm/components/QueryBuilder/constants/connector.js +1 -1
  16. package/dist/esm/components/QueryBuilder/helpers/Connector.helper.d.ts +1 -1
  17. package/dist/esm/components/QueryBuilder/types/QueryBuilderOperator.type.d.ts +2 -0
  18. package/dist/esm/components/QueryBuilder/types/QueryBuilderOperator.type.js +1 -1
  19. package/dist/esm/components/searchBar/searchBar.d.ts +0 -1
  20. package/dist/esm/components/stepper/WorkingStepper.d.ts +0 -1
  21. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ConnectorComponentProps } from "../../../types/QueryBuilderConnector.type";
3
+ declare const _default: (props: ConnectorComponentProps) => JSX.Element;
4
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../../../input/Input.js"),r=require("../../../../input/context/InputStyleProvider.js"),n=require("../../InputLoader.js");const i=i=>{let{val:s,onChange:a,errors:d,nativeID:l,isLoading:u,disabled:o}=i;return u?e.jsx("div",Object.assign({style:{width:200}},{children:e.jsx(n.default,{containerStyle:{padding:"5px 8px"}})})):e.jsx(r.InputStyleContext.Provider,Object.assign({value:{InputWrapper:{width:104}}},{children:e.jsx("div",{children:e.jsx("div",{children:e.jsx(t.Input,{state:o?"disabled":"none",type:"text",variant:"small",errorMessage:null==d?void 0:d.val,value:null==s?void 0:s.toString(),onChangeText:a})})})}))};exports.default=t=>e.jsx(i,Object.assign({},t));
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("../../../../utils/unCamelCase.js"),n=require("../../constants/connectorPosition.js"),o=require("../../helpers/Connector.helper.js"),i=require("../../types/QueryBuilder.type.js"),l=require("../DropdownWrapper.js"),s=require("./Components/EmojiPicker.js"),u=require("./Components/FreeText.js"),a=require("./Components/FrequencyIntegerPositiveSingle.js"),d=require("./Components/IgPicker.js"),p=require("./Components/IntegerPositiveSingle.js"),c=require("./Components/IntegerSingleValue.js"),g=require("./Components/MultiselectDropdownFreeText.js"),C=require("./Components/NoInput.js"),m=require("./Components/NumberTime.js"),v=require("./Components/SingleDate.js"),j=require("./Components/TwoDate.js"),q=require("./Components/TwoNumberInputsSeperatedByAnd.js"),f=require("./Connector.styled.js");const I={FreeText:u.default,IntegerPositiveSingle:p.default,IntegerSingleValue:c.default,MultiselectDropdownFreeText:g.default,NoInput:C.default,SingleDate:v.default,TwoNumberInputsSeperatedByAnd:q.default,FrequencyIntegerPositiveSingle:a.default,TwoDate:j.default,NumberTime:m.default,PostIgPicker:d.PostIgPicker,ReelIgPicker:d.ReelIgPicker,StoryIgPicker:d.StoryIgPicker,EmojiPicker:s.default};exports.default=s=>{let{isLoading:u,noDefault:a,connectorType:d,defaultConnector:p,onOperatorChange:c,onValueChange:g,connectorVal:C,extra:m,errors:v,disabled:j}=s;var q,P,y;const[S,T]=r.useState(null),[b,x]=r.useState(!1),w=o.ConnectorHelper.getConnectorType(d).map((e=>({selected:e===p,value:e,label:t.unCamelCaseWithFirstUppercase(e)})));function D(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];x(!0);const t=o.ConnectorHelper.getConnectorComponent(d,e.value);void 0!==t?d===i.QueryBuilderConnectorType.frequency&&"IntegerPositiveSingle"===t?T("FrequencyIntegerPositiveSingle"):T(t):T(null),r||c(e.value),setTimeout((()=>{x(!1)}),5)}return r.useEffect((()=>{a||(p?D({value:p,label:p},!0):(null==w?void 0:w[0])&&D(w[0]))}),[p]),e.jsxs(f.Container,{children:[e.jsx("div",{children:!(null===(q=null===n.disableOperatorDropdown||void 0===n.disableOperatorDropdown?void 0:n.disableOperatorDropdown[d])||void 0===q?void 0:q[p])&&e.jsx(l.default,{disabled:j,width:"200px",isLoading:b,options:w,defaultOption:null===(P=w.filter((e=>e.selected)))||void 0===P?void 0:P[0],onSelect:D})}),null!==S&&!b&&(null===(y=I[S])||void 0===y?void 0:y.call(I,{disabled:j,val:C,onChange:g,extra:m,errors:v,isLoading:u}))]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("../../../../utils/unCamelCase.js"),n=require("../../constants/connectorPosition.js"),o=require("../../helpers/Connector.helper.js"),i=require("../../types/QueryBuilder.type.js"),l=require("../DropdownWrapper.js"),s=require("./Components/EmojiPicker.js"),u=require("./Components/FreeText.js"),a=require("./Components/FrequencyIntegerPositiveSingle.js"),d=require("./Components/IgPicker.js"),p=require("./Components/IntegerPositiveSingle.js"),c=require("./Components/IntegerSingleValue.js"),g=require("./Components/MultiselectDropdownFreeText.js"),C=require("./Components/NoInput.js"),m=require("./Components/NumberTime.js"),j=require("./Components/SingleDate.js"),v=require("./Components/StringSingleValue.js"),q=require("./Components/TwoDate.js"),f=require("./Components/TwoNumberInputsSeperatedByAnd.js"),S=require("./Connector.styled.js");const I={FreeText:u.default,IntegerPositiveSingle:p.default,IntegerSingleValue:c.default,StringSingleValue:v.default,MultiselectDropdownFreeText:g.default,NoInput:C.default,SingleDate:j.default,TwoNumberInputsSeperatedByAnd:f.default,FrequencyIntegerPositiveSingle:a.default,TwoDate:q.default,NumberTime:m.default,PostIgPicker:d.PostIgPicker,ReelIgPicker:d.ReelIgPicker,StoryIgPicker:d.StoryIgPicker,EmojiPicker:s.default};exports.default=s=>{let{isLoading:u,noDefault:a,connectorType:d,defaultConnector:p,onOperatorChange:c,onValueChange:g,connectorVal:C,extra:m,errors:j,disabled:v}=s;var q,f,P;const[y,T]=r.useState(null),[b,x]=r.useState(!1),w=o.ConnectorHelper.getConnectorType(d).map((e=>({selected:e===p,value:e,label:t.unCamelCaseWithFirstUppercase(e)})));function D(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];x(!0);const t=o.ConnectorHelper.getConnectorComponent(d,e.value);void 0!==t?d===i.QueryBuilderConnectorType.frequency&&"IntegerPositiveSingle"===t?T("FrequencyIntegerPositiveSingle"):T(t):T(null),r||c(e.value),setTimeout((()=>{x(!1)}),5)}return r.useEffect((()=>{a||(p?D({value:p,label:p},!0):(null==w?void 0:w[0])&&D(w[0]))}),[p]),e.jsxs(S.Container,{children:[e.jsx("div",{children:!(null===(q=null===n.disableOperatorDropdown||void 0===n.disableOperatorDropdown?void 0:n.disableOperatorDropdown[d])||void 0===q?void 0:q[p])&&e.jsx(l.default,{disabled:v,width:"200px",isLoading:b,options:w,defaultOption:null===(f=w.filter((e=>e.selected)))||void 0===f?void 0:f[0],onSelect:D})}),null!==y&&!b&&(null===(P=I[y])||void 0===P?void 0:P.call(I,{disabled:v,val:C,onChange:g,extra:m,errors:j,isLoading:u}))]})};
@@ -8,6 +8,7 @@ export declare enum CONNECTOR_VALUE_COMPONENT_TYPES {
8
8
  FreeText = "FreeText",
9
9
  NoInput = "NoInput",
10
10
  IntegerSingleValue = "IntegerSingleValue",
11
+ StringSingleValue = "StringSingleValue",
11
12
  TwoNumberInputsSeperatedByAnd = "TwoNumberInputsSeperatedByAnd",
12
13
  MultiselectDropdownFreeText = "MultiselectDropdownFreeText",
13
14
  SingleDate = "SingleDate",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../types/QueryBuilder.type.js"),O=require("../types/QueryBuilderOperator.type.js");const E={[e.QueryBuilderConnectorType.boolean]:O.BOOLEAN_OPERATORS,[e.QueryBuilderConnectorType.string]:O.STRING_OPERATORS,[e.QueryBuilderConnectorType.integer]:O.INTEGER_OPERATORS,[e.QueryBuilderConnectorType.frequency]:O.FREQUENCY_OPERATORS,[e.QueryBuilderConnectorType.date]:O.DATE_OPERATORS,[e.QueryBuilderConnectorType.specificPost]:O.SPECIFIC_IG_OPERATORS,[e.QueryBuilderConnectorType.specificReel]:O.SPECIFIC_IG_OPERATORS,[e.QueryBuilderConnectorType.specificStory]:O.SPECIFIC_IG_OPERATORS,[e.QueryBuilderConnectorType.anyIg]:O.ANY_IG_OPERATORS,[e.QueryBuilderConnectorType.reaction]:O.REACTION_OPERATORS,[e.QueryBuilderConnectorType.activityString]:O.IG_STRING_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.TwoNumberInputsSeperatedByAnd="TwoNumberInputsSeperatedByAnd",T.MultiselectDropdownFreeText="MultiselectDropdownFreeText",T.SingleDate="SingleDate",T.TwoDate="TwoDate",T.IntegerPositiveSingle="IntegerPositiveSingle",T.NumberTime="NumberTime",T.PostIgPicker="PostIgPicker",T.ReelIgPicker="ReelIgPicker",T.StoryIgPicker="StoryIgPicker",T.EmojiPicker="EmojiPicker";const N={[O.INTEGER_OPERATORS.is]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[O.INTEGER_OPERATORS.isNot]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[O.INTEGER_OPERATORS.exists]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.INTEGER_OPERATORS.doesntExist]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.INTEGER_OPERATORS.lessThan]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerSingleValue,[O.INTEGER_OPERATORS.lessThanOrEqualTo]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerSingleValue,[O.INTEGER_OPERATORS.greaterThan]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerSingleValue,[O.INTEGER_OPERATORS.greaterThanOrEqualTo]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerSingleValue},_={[O.STRING_OPERATORS.is]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.MultiselectDropdownFreeText,[O.STRING_OPERATORS.isNot]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.MultiselectDropdownFreeText,[O.STRING_OPERATORS.contains]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[O.STRING_OPERATORS.doesntContain]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[O.STRING_OPERATORS.startsWith]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[O.STRING_OPERATORS.endsWith]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[O.STRING_OPERATORS.exists]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.STRING_OPERATORS.doesntExist]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput},t={[O.IG_STRING_OPERATORS.is]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.MultiselectDropdownFreeText,[O.IG_STRING_OPERATORS.contains]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[O.IG_STRING_OPERATORS.startsWith]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[O.IG_STRING_OPERATORS.endsWith]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText},R={[O.REACTION_OPERATORS.contains]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.EmojiPicker},r={[O.DATE_OPERATORS.on]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.SingleDate,[O.DATE_OPERATORS.notOn]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.SingleDate,[O.DATE_OPERATORS.inBetween]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.TwoDate,[O.DATE_OPERATORS.notInBetween]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.TwoDate,[O.DATE_OPERATORS.before]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.SingleDate,[O.DATE_OPERATORS.after]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.SingleDate,[O.DATE_OPERATORS.today]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.DATE_OPERATORS.yesterday]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.DATE_OPERATORS["last week"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.DATE_OPERATORS["last month"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.DATE_OPERATORS["last quarter"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.DATE_OPERATORS["in the last"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NumberTime},P={[O.SPECIFIC_IG_OPERATORS.in]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.PostIgPicker},C={[O.SPECIFIC_IG_OPERATORS.in]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.ReelIgPicker},o={[O.SPECIFIC_IG_OPERATORS.in]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.StoryIgPicker},S={[O.ANY_IG_OPERATORS.in]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput},n={[O.BOOLEAN_OPERATORS.isTrue]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.BOOLEAN_OPERATORS.isFalse]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.BOOLEAN_OPERATORS.exists]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.BOOLEAN_OPERATORS.doesntExist]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput},A={[O.FREQUENCY_OPERATORS.exactly]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerPositiveSingle,[O.FREQUENCY_OPERATORS.atleast]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerPositiveSingle,[O.FREQUENCY_OPERATORS.atMost]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerPositiveSingle},s={[e.QueryBuilderConnectorType.boolean]:n,[e.QueryBuilderConnectorType.string]:_,[e.QueryBuilderConnectorType.integer]:N,[e.QueryBuilderConnectorType.frequency]:A,[e.QueryBuilderConnectorType.date]:r,[e.QueryBuilderConnectorType.specificPost]:P,[e.QueryBuilderConnectorType.specificReel]:C,[e.QueryBuilderConnectorType.specificStory]:o,[e.QueryBuilderConnectorType.anyIg]:S,[e.QueryBuilderConnectorType.reaction]:R,[e.QueryBuilderConnectorType.activityString]:t};exports.ANY_IG_OPERATORS_COMPONENT=S,exports.BOOLEAN_OPERATORS_COMPONENT=n,exports.CONNECTOR_TYPE_TO_COMPONENT_MAP=s,exports.CONNECTOR_TYPE_TO_OPERATORS=E,exports.DATE_OPERATORS_COMPONENT=r,exports.FREQUENCY_OPERATORS_COMPONENT=A,exports.IG_STRING_OPERATORS_COMPONENT=t,exports.INTEGER_OPERATORS_COMPONENT=N,exports.REACTION_OPERATORS_COMPONENT=R,exports.SPECIFIC_IG_POST_OPERATORS_COMPONENT=P,exports.SPECIFIC_IG_REEL_OPERATORS_COMPONENT=C,exports.SPECIFIC_IG_STORY_OPERATORS_COMPONENT=o,exports.STRING_OPERATORS_COMPONENT=_;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../types/QueryBuilder.type.js"),O=require("../types/QueryBuilderOperator.type.js");const E={[e.QueryBuilderConnectorType.boolean]:O.BOOLEAN_OPERATORS,[e.QueryBuilderConnectorType.string]:O.STRING_OPERATORS,[e.QueryBuilderConnectorType.integer]:O.INTEGER_OPERATORS,[e.QueryBuilderConnectorType.frequency]:O.FREQUENCY_OPERATORS,[e.QueryBuilderConnectorType.date]:O.DATE_OPERATORS,[e.QueryBuilderConnectorType.specificPost]:O.SPECIFIC_IG_OPERATORS,[e.QueryBuilderConnectorType.specificReel]:O.SPECIFIC_IG_OPERATORS,[e.QueryBuilderConnectorType.specificStory]:O.SPECIFIC_IG_OPERATORS,[e.QueryBuilderConnectorType.anyIg]:O.ANY_IG_OPERATORS,[e.QueryBuilderConnectorType.reaction]:O.REACTION_OPERATORS,[e.QueryBuilderConnectorType.activityString]:O.IG_STRING_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.SingleDate="SingleDate",T.TwoDate="TwoDate",T.IntegerPositiveSingle="IntegerPositiveSingle",T.NumberTime="NumberTime",T.PostIgPicker="PostIgPicker",T.ReelIgPicker="ReelIgPicker",T.StoryIgPicker="StoryIgPicker",T.EmojiPicker="EmojiPicker";const N={[O.INTEGER_OPERATORS.is]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[O.INTEGER_OPERATORS.isNot]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[O.INTEGER_OPERATORS.exists]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.INTEGER_OPERATORS.doesntExist]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.INTEGER_OPERATORS.lessThan]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerSingleValue,[O.INTEGER_OPERATORS.lessThanOrEqualTo]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerSingleValue,[O.INTEGER_OPERATORS.greaterThan]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerSingleValue,[O.INTEGER_OPERATORS.greaterThanOrEqualTo]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerSingleValue},_={[O.STRING_OPERATORS.is]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.MultiselectDropdownFreeText,[O.STRING_OPERATORS.isNot]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.MultiselectDropdownFreeText,[O.STRING_OPERATORS.contains]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[O.STRING_OPERATORS.doesntContain]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[O.STRING_OPERATORS.startsWith]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[O.STRING_OPERATORS.endsWith]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[O.STRING_OPERATORS.exists]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.STRING_OPERATORS.doesntExist]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput},t={[O.IG_STRING_OPERATORS.is]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.StringSingleValue,[O.IG_STRING_OPERATORS.contains]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[O.IG_STRING_OPERATORS.startsWith]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText,[O.IG_STRING_OPERATORS.endsWith]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.FreeText},R={[O.REACTION_OPERATORS.contains]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.EmojiPicker},r={[O.DATE_OPERATORS.on]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.SingleDate,[O.DATE_OPERATORS.notOn]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.SingleDate,[O.DATE_OPERATORS.inBetween]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.TwoDate,[O.DATE_OPERATORS.notInBetween]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.TwoDate,[O.DATE_OPERATORS.before]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.SingleDate,[O.DATE_OPERATORS.after]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.SingleDate,[O.DATE_OPERATORS.today]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.DATE_OPERATORS.yesterday]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.DATE_OPERATORS["last week"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.DATE_OPERATORS["last month"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.DATE_OPERATORS["last quarter"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.DATE_OPERATORS["in the last"]]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NumberTime},P={[O.SPECIFIC_IG_OPERATORS.in]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.PostIgPicker},C={[O.SPECIFIC_IG_OPERATORS.in]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.ReelIgPicker},o={[O.SPECIFIC_IG_OPERATORS.in]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.StoryIgPicker},S={[O.ANY_IG_OPERATORS.in]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput},n={[O.BOOLEAN_OPERATORS.isTrue]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.BOOLEAN_OPERATORS.isFalse]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.BOOLEAN_OPERATORS.exists]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput,[O.BOOLEAN_OPERATORS.doesntExist]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.NoInput},A={[O.FREQUENCY_OPERATORS.exactly]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerPositiveSingle,[O.FREQUENCY_OPERATORS.atleast]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerPositiveSingle,[O.FREQUENCY_OPERATORS.atMost]:exports.CONNECTOR_VALUE_COMPONENT_TYPES.IntegerPositiveSingle},i={[e.QueryBuilderConnectorType.boolean]:n,[e.QueryBuilderConnectorType.string]:_,[e.QueryBuilderConnectorType.integer]:N,[e.QueryBuilderConnectorType.frequency]:A,[e.QueryBuilderConnectorType.date]:r,[e.QueryBuilderConnectorType.specificPost]:P,[e.QueryBuilderConnectorType.specificReel]:C,[e.QueryBuilderConnectorType.specificStory]:o,[e.QueryBuilderConnectorType.anyIg]:S,[e.QueryBuilderConnectorType.reaction]:R,[e.QueryBuilderConnectorType.activityString]:t};exports.ANY_IG_OPERATORS_COMPONENT=S,exports.BOOLEAN_OPERATORS_COMPONENT=n,exports.CONNECTOR_TYPE_TO_COMPONENT_MAP=i,exports.CONNECTOR_TYPE_TO_OPERATORS=E,exports.DATE_OPERATORS_COMPONENT=r,exports.FREQUENCY_OPERATORS_COMPONENT=A,exports.IG_STRING_OPERATORS_COMPONENT=t,exports.INTEGER_OPERATORS_COMPONENT=N,exports.REACTION_OPERATORS_COMPONENT=R,exports.SPECIFIC_IG_POST_OPERATORS_COMPONENT=P,exports.SPECIFIC_IG_REEL_OPERATORS_COMPONENT=C,exports.SPECIFIC_IG_STORY_OPERATORS_COMPONENT=o,exports.STRING_OPERATORS_COMPONENT=_;
@@ -2,5 +2,5 @@ import { QueryBuilderConnectorType } from '../types/QueryBuilder.type';
2
2
  import { CONNECTOR_OPERATORS } from '../types/QueryBuilderOperator.type';
3
3
  export declare class ConnectorHelper {
4
4
  static getConnectorType(datatype: QueryBuilderConnectorType): string[];
5
- static getConnectorComponent(dataType: QueryBuilderConnectorType, connectorType: CONNECTOR_OPERATORS): "FreeText" | "NoInput" | "IntegerSingleValue" | "TwoNumberInputsSeperatedByAnd" | "MultiselectDropdownFreeText" | "SingleDate" | "TwoDate" | "IntegerPositiveSingle" | "NumberTime" | null;
5
+ static getConnectorComponent(dataType: QueryBuilderConnectorType, connectorType: CONNECTOR_OPERATORS): "FreeText" | "NoInput" | "IntegerSingleValue" | "StringSingleValue" | "TwoNumberInputsSeperatedByAnd" | "MultiselectDropdownFreeText" | "SingleDate" | "TwoDate" | "IntegerPositiveSingle" | "NumberTime" | null;
6
6
  }
@@ -68,6 +68,7 @@ export declare enum EVENT_VALUES {
68
68
  FreeText = "FreeText",
69
69
  NoInput = "NoInput",
70
70
  IntegerSingleValue = "IntegerSingleValue",
71
+ StringSingleValue = "StringSingleValue",
71
72
  TwoNumberInputsSeperatedByAnd = "TwoNumberInputsSeperatedByAnd",
72
73
  MultiselectDropdownFreeText = "MultiselectDropdownFreeText",
73
74
  SingleDate = "SingleDate",
@@ -78,6 +79,7 @@ export declare enum EVENT_VALUES {
78
79
  export type EVENT_RESPONSE_VALUE = {
79
80
  FreeText: string[];
80
81
  IntegerSingleValue: number;
82
+ StringSingleValue: string;
81
83
  TwoNumberInputsSeperatedByAnd: number[];
82
84
  MultiselectDropdownFreeText: string[];
83
85
  SingleDate: Date;
@@ -1 +1 @@
1
- "use strict";var e,t,s,o,n,r,i,E;Object.defineProperty(exports,"__esModule",{value:!0}),exports.INTEGER_OPERATORS=void 0,(e=exports.INTEGER_OPERATORS||(exports.INTEGER_OPERATORS={})).is="is",e.isNot="isNot",e.exists="exists",e.doesntExist="doesntExist",e.lessThan="lessThan",e.lessThanOrEqualTo="lessThanOrEqualTo",e.greaterThan="greaterThan",e.greaterThanOrEqualTo="greaterThanOrEqualTo",exports.STRING_OPERATORS=void 0,(t=exports.STRING_OPERATORS||(exports.STRING_OPERATORS={})).is="is",t.isNot="isNot",t.contains="contains",t.doesntContain="doesntContain",t.startsWith="startsWith",t.endsWith="endsWith",t.exists="exists",t.doesntExist="doesntExist",exports.IG_STRING_OPERATORS=void 0,(s=exports.IG_STRING_OPERATORS||(exports.IG_STRING_OPERATORS={})).is="is",s.contains="contains",s.startsWith="startsWith",s.endsWith="endsWith",exports.SPECIFIC_IG_OPERATORS=void 0,(exports.SPECIFIC_IG_OPERATORS||(exports.SPECIFIC_IG_OPERATORS={})).in="in",exports.ANY_IG_OPERATORS=void 0,(exports.ANY_IG_OPERATORS||(exports.ANY_IG_OPERATORS={})).in="in",exports.REACTION_OPERATORS=void 0,(o=exports.REACTION_OPERATORS||(exports.REACTION_OPERATORS={})).contains="contains",o.doesntContain="doesntContain",exports.DATE_OPERATORS=void 0,(n=exports.DATE_OPERATORS||(exports.DATE_OPERATORS={})).on="on",n.notOn="notOn",n.inBetween="inBetween",n.notInBetween="notInBetween",n.before="before",n.after="after",n.today="today",n.yesterday="yesterday",n["last week"]="last week",n["last month"]="last month",n["last quarter"]="last quarter",n["in the last"]="in the last",exports.BOOLEAN_OPERATORS=void 0,(r=exports.BOOLEAN_OPERATORS||(exports.BOOLEAN_OPERATORS={})).isTrue="isTrue",r.isFalse="isFalse",r.exists="exists",r.doesntExist="doesntExist",exports.FREQUENCY_OPERATORS=void 0,(i=exports.FREQUENCY_OPERATORS||(exports.FREQUENCY_OPERATORS={})).exactly="exactly",i.atleast="atleast",i.atMost="atMost",exports.EVENT_VALUES=void 0,(E=exports.EVENT_VALUES||(exports.EVENT_VALUES={})).FreeText="FreeText",E.NoInput="NoInput",E.IntegerSingleValue="IntegerSingleValue",E.TwoNumberInputsSeperatedByAnd="TwoNumberInputsSeperatedByAnd",E.MultiselectDropdownFreeText="MultiselectDropdownFreeText",E.SingleDate="SingleDate",E.TwoDate="TwoDate",E.IntegerPositiveSingle="IntegerPositiveSingle",E.NumberTime="NumberTime";
1
+ "use strict";var e,t,s,o,n,i,r,E;Object.defineProperty(exports,"__esModule",{value:!0}),exports.INTEGER_OPERATORS=void 0,(e=exports.INTEGER_OPERATORS||(exports.INTEGER_OPERATORS={})).is="is",e.isNot="isNot",e.exists="exists",e.doesntExist="doesntExist",e.lessThan="lessThan",e.lessThanOrEqualTo="lessThanOrEqualTo",e.greaterThan="greaterThan",e.greaterThanOrEqualTo="greaterThanOrEqualTo",exports.STRING_OPERATORS=void 0,(t=exports.STRING_OPERATORS||(exports.STRING_OPERATORS={})).is="is",t.isNot="isNot",t.contains="contains",t.doesntContain="doesntContain",t.startsWith="startsWith",t.endsWith="endsWith",t.exists="exists",t.doesntExist="doesntExist",exports.IG_STRING_OPERATORS=void 0,(s=exports.IG_STRING_OPERATORS||(exports.IG_STRING_OPERATORS={})).is="is",s.contains="contains",s.startsWith="startsWith",s.endsWith="endsWith",exports.SPECIFIC_IG_OPERATORS=void 0,(exports.SPECIFIC_IG_OPERATORS||(exports.SPECIFIC_IG_OPERATORS={})).in="in",exports.ANY_IG_OPERATORS=void 0,(exports.ANY_IG_OPERATORS||(exports.ANY_IG_OPERATORS={})).in="in",exports.REACTION_OPERATORS=void 0,(o=exports.REACTION_OPERATORS||(exports.REACTION_OPERATORS={})).contains="contains",o.doesntContain="doesntContain",exports.DATE_OPERATORS=void 0,(n=exports.DATE_OPERATORS||(exports.DATE_OPERATORS={})).on="on",n.notOn="notOn",n.inBetween="inBetween",n.notInBetween="notInBetween",n.before="before",n.after="after",n.today="today",n.yesterday="yesterday",n["last week"]="last week",n["last month"]="last month",n["last quarter"]="last quarter",n["in the last"]="in the last",exports.BOOLEAN_OPERATORS=void 0,(i=exports.BOOLEAN_OPERATORS||(exports.BOOLEAN_OPERATORS={})).isTrue="isTrue",i.isFalse="isFalse",i.exists="exists",i.doesntExist="doesntExist",exports.FREQUENCY_OPERATORS=void 0,(r=exports.FREQUENCY_OPERATORS||(exports.FREQUENCY_OPERATORS={})).exactly="exactly",r.atleast="atleast",r.atMost="atMost",exports.EVENT_VALUES=void 0,(E=exports.EVENT_VALUES||(exports.EVENT_VALUES={})).FreeText="FreeText",E.NoInput="NoInput",E.IntegerSingleValue="IntegerSingleValue",E.StringSingleValue="StringSingleValue",E.TwoNumberInputsSeperatedByAnd="TwoNumberInputsSeperatedByAnd",E.MultiselectDropdownFreeText="MultiselectDropdownFreeText",E.SingleDate="SingleDate",E.TwoDate="TwoDate",E.IntegerPositiveSingle="IntegerPositiveSingle",E.NumberTime="NumberTime";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputVariant } from '../input/Input';
3
2
  export interface SearchBarProps {
4
3
  width: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const WorkingStepper: () => JSX.Element;
3
2
  export declare enum STEPENUM {
4
3
  STEP1 = "STEP1",
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ConnectorComponentProps } from "../../../types/QueryBuilderConnector.type";
3
+ declare const _default: (props: ConnectorComponentProps) => JSX.Element;
4
+ export default _default;
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{Input as t}from"../../../../input/Input.js";import{InputStyleContext as r}from"../../../../input/context/InputStyleProvider.js";import i from"../../InputLoader.js";const n=n=>{let{val:a,onChange:o,errors:d,nativeID:l,isLoading:s,disabled:p}=n;return s?e("div",Object.assign({style:{width:200}},{children:e(i,{containerStyle:{padding:"5px 8px"}})})):e(r.Provider,Object.assign({value:{InputWrapper:{width:104}}},{children:e("div",{children:e("div",{children:e(t,{state:p?"disabled":"none",type:"text",variant:"small",errorMessage:null==d?void 0:d.val,value:null==a?void 0:a.toString(),onChangeText:o})})})}))};var a=t=>e(n,Object.assign({},t));export{a as default};
@@ -1 +1 @@
1
- import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useState as t,useEffect as n}from"react";import{unCamelCaseWithFirstUppercase as r}from"../../../../utils/unCamelCase.js";import{disableOperatorDropdown as i}from"../../constants/connectorPosition.js";import{ConnectorHelper as l}from"../../helpers/Connector.helper.js";import{QueryBuilderConnectorType as s}from"../../types/QueryBuilder.type.js";import m from"../DropdownWrapper.js";import p from"./Components/EmojiPicker.js";import a from"./Components/FreeText.js";import u from"./Components/FrequencyIntegerPositiveSingle.js";import{PostIgPicker as d,ReelIgPicker as c,StoryIgPicker as g}from"./Components/IgPicker.js";import f from"./Components/IntegerPositiveSingle.js";import v from"./Components/IntegerSingleValue.js";import C from"./Components/MultiselectDropdownFreeText.js";import j from"./Components/NoInput.js";import I from"./Components/NumberTime.js";import P from"./Components/SingleDate.js";import S from"./Components/TwoDate.js";import y from"./Components/TwoNumberInputsSeperatedByAnd.js";import{Container as T}from"./Connector.styled.js";const b={FreeText:a,IntegerPositiveSingle:f,IntegerSingleValue:v,MultiselectDropdownFreeText:C,NoInput:j,SingleDate:P,TwoNumberInputsSeperatedByAnd:y,FrequencyIntegerPositiveSingle:u,TwoDate:S,NumberTime:I,PostIgPicker:d,ReelIgPicker:c,StoryIgPicker:g,EmojiPicker:p},h=p=>{let{isLoading:a,noDefault:u,connectorType:d,defaultConnector:c,onOperatorChange:g,onValueChange:f,connectorVal:v,extra:C,errors:j,disabled:I}=p;var P,S,y;const[h,x]=t(null),[w,D]=t(!1),F=l.getConnectorType(d).map((e=>({selected:e===c,value:e,label:r(e)})));function k(e){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];D(!0);const t=l.getConnectorComponent(d,e.value);void 0!==t?d===s.frequency&&"IntegerPositiveSingle"===t?x("FrequencyIntegerPositiveSingle"):x(t):x(null),o||g(e.value),setTimeout((()=>{D(!1)}),5)}return n((()=>{u||(c?k({value:c,label:c},!0):(null==F?void 0:F[0])&&k(F[0]))}),[c]),e(T,{children:[o("div",{children:!(null===(P=null==i?void 0:i[d])||void 0===P?void 0:P[c])&&o(m,{disabled:I,width:"200px",isLoading:w,options:F,defaultOption:null===(S=F.filter((e=>e.selected)))||void 0===S?void 0:S[0],onSelect:k})}),null!==h&&!w&&(null===(y=b[h])||void 0===y?void 0:y.call(b,{disabled:I,val:v,onChange:f,extra:C,errors:j,isLoading:a}))]})};export{h as default};
1
+ import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useState as t,useEffect as n}from"react";import{unCamelCaseWithFirstUppercase as r}from"../../../../utils/unCamelCase.js";import{disableOperatorDropdown as i}from"../../constants/connectorPosition.js";import{ConnectorHelper as l}from"../../helpers/Connector.helper.js";import{QueryBuilderConnectorType as m}from"../../types/QueryBuilder.type.js";import s from"../DropdownWrapper.js";import p from"./Components/EmojiPicker.js";import a from"./Components/FreeText.js";import u from"./Components/FrequencyIntegerPositiveSingle.js";import{PostIgPicker as d,ReelIgPicker as c,StoryIgPicker as g}from"./Components/IgPicker.js";import f from"./Components/IntegerPositiveSingle.js";import C from"./Components/IntegerSingleValue.js";import v from"./Components/MultiselectDropdownFreeText.js";import j from"./Components/NoInput.js";import S from"./Components/NumberTime.js";import I from"./Components/SingleDate.js";import P from"./Components/StringSingleValue.js";import y from"./Components/TwoDate.js";import T from"./Components/TwoNumberInputsSeperatedByAnd.js";import{Container as b}from"./Connector.styled.js";const h={FreeText:a,IntegerPositiveSingle:f,IntegerSingleValue:C,StringSingleValue:P,MultiselectDropdownFreeText:v,NoInput:j,SingleDate:I,TwoNumberInputsSeperatedByAnd:T,FrequencyIntegerPositiveSingle:u,TwoDate:y,NumberTime:S,PostIgPicker:d,ReelIgPicker:c,StoryIgPicker:g,EmojiPicker:p},x=p=>{let{isLoading:a,noDefault:u,connectorType:d,defaultConnector:c,onOperatorChange:g,onValueChange:f,connectorVal:C,extra:v,errors:j,disabled:S}=p;var I,P,y;const[T,x]=t(null),[w,D]=t(!1),F=l.getConnectorType(d).map((e=>({selected:e===c,value:e,label:r(e)})));function k(e){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];D(!0);const t=l.getConnectorComponent(d,e.value);void 0!==t?d===m.frequency&&"IntegerPositiveSingle"===t?x("FrequencyIntegerPositiveSingle"):x(t):x(null),o||g(e.value),setTimeout((()=>{D(!1)}),5)}return n((()=>{u||(c?k({value:c,label:c},!0):(null==F?void 0:F[0])&&k(F[0]))}),[c]),e(b,{children:[o("div",{children:!(null===(I=null==i?void 0:i[d])||void 0===I?void 0:I[c])&&o(s,{disabled:S,width:"200px",isLoading:w,options:F,defaultOption:null===(P=F.filter((e=>e.selected)))||void 0===P?void 0:P[0],onSelect:k})}),null!==T&&!w&&(null===(y=h[T])||void 0===y?void 0:y.call(h,{disabled:S,val:C,onChange:f,extra:v,errors:j,isLoading:a}))]})};export{x as default};
@@ -8,6 +8,7 @@ export declare enum CONNECTOR_VALUE_COMPONENT_TYPES {
8
8
  FreeText = "FreeText",
9
9
  NoInput = "NoInput",
10
10
  IntegerSingleValue = "IntegerSingleValue",
11
+ StringSingleValue = "StringSingleValue",
11
12
  TwoNumberInputsSeperatedByAnd = "TwoNumberInputsSeperatedByAnd",
12
13
  MultiselectDropdownFreeText = "MultiselectDropdownFreeText",
13
14
  SingleDate = "SingleDate",
@@ -1 +1 @@
1
- import{QueryBuilderConnectorType as e}from"../types/QueryBuilder.type.js";import{BOOLEAN_OPERATORS as t,STRING_OPERATORS as i,INTEGER_OPERATORS as n,FREQUENCY_OPERATORS as r,DATE_OPERATORS as o,SPECIFIC_IG_OPERATORS as s,ANY_IG_OPERATORS as a,REACTION_OPERATORS as l,IG_STRING_OPERATORS as g}from"../types/QueryBuilderOperator.type.js";const u={[e.boolean]:t,[e.string]:i,[e.integer]:n,[e.frequency]:r,[e.date]:o,[e.specificPost]:s,[e.specificReel]:s,[e.specificStory]:s,[e.anyIg]:a,[e.reaction]:l,[e.activityString]:g};var c;!function(e){e.FreeText="FreeText",e.NoInput="NoInput",e.IntegerSingleValue="IntegerSingleValue",e.TwoNumberInputsSeperatedByAnd="TwoNumberInputsSeperatedByAnd",e.MultiselectDropdownFreeText="MultiselectDropdownFreeText",e.SingleDate="SingleDate",e.TwoDate="TwoDate",e.IntegerPositiveSingle="IntegerPositiveSingle",e.NumberTime="NumberTime",e.PostIgPicker="PostIgPicker",e.ReelIgPicker="ReelIgPicker",e.StoryIgPicker="StoryIgPicker",e.EmojiPicker="EmojiPicker"}(c||(c={}));const I={[n.is]:c.FreeText,[n.isNot]:c.FreeText,[n.exists]:c.NoInput,[n.doesntExist]:c.NoInput,[n.lessThan]:c.IntegerSingleValue,[n.lessThanOrEqualTo]:c.IntegerSingleValue,[n.greaterThan]:c.IntegerSingleValue,[n.greaterThanOrEqualTo]:c.IntegerSingleValue},p={[i.is]:c.MultiselectDropdownFreeText,[i.isNot]:c.MultiselectDropdownFreeText,[i.contains]:c.FreeText,[i.doesntContain]:c.FreeText,[i.startsWith]:c.FreeText,[i.endsWith]:c.FreeText,[i.exists]:c.NoInput,[i.doesntExist]:c.NoInput},T={[g.is]:c.MultiselectDropdownFreeText,[g.contains]:c.FreeText,[g.startsWith]:c.FreeText,[g.endsWith]:c.FreeText},S={[l.contains]:c.EmojiPicker},x={[o.on]:c.SingleDate,[o.notOn]:c.SingleDate,[o.inBetween]:c.TwoDate,[o.notInBetween]:c.TwoDate,[o.before]:c.SingleDate,[o.after]:c.SingleDate,[o.today]:c.NoInput,[o.yesterday]:c.NoInput,[o["last week"]]:c.NoInput,[o["last month"]]:c.NoInput,[o["last quarter"]]:c.NoInput,[o["in the last"]]:c.NumberTime},y={[s.in]:c.PostIgPicker},N={[s.in]:c.ReelIgPicker},P={[s.in]:c.StoryIgPicker},d={[a.in]:c.NoInput},F={[t.isTrue]:c.NoInput,[t.isFalse]:c.NoInput,[t.exists]:c.NoInput,[t.doesntExist]:c.NoInput},m={[r.exactly]:c.IntegerPositiveSingle,[r.atleast]:c.IntegerPositiveSingle,[r.atMost]:c.IntegerPositiveSingle},D={[e.boolean]:F,[e.string]:p,[e.integer]:I,[e.frequency]:m,[e.date]:x,[e.specificPost]:y,[e.specificReel]:N,[e.specificStory]:P,[e.anyIg]:d,[e.reaction]:S,[e.activityString]:T};export{d as ANY_IG_OPERATORS_COMPONENT,F as BOOLEAN_OPERATORS_COMPONENT,D as CONNECTOR_TYPE_TO_COMPONENT_MAP,u as CONNECTOR_TYPE_TO_OPERATORS,c as CONNECTOR_VALUE_COMPONENT_TYPES,x as DATE_OPERATORS_COMPONENT,m as FREQUENCY_OPERATORS_COMPONENT,T as IG_STRING_OPERATORS_COMPONENT,I as INTEGER_OPERATORS_COMPONENT,S as REACTION_OPERATORS_COMPONENT,y as SPECIFIC_IG_POST_OPERATORS_COMPONENT,N as SPECIFIC_IG_REEL_OPERATORS_COMPONENT,P as SPECIFIC_IG_STORY_OPERATORS_COMPONENT,p as STRING_OPERATORS_COMPONENT};
1
+ import{QueryBuilderConnectorType as e}from"../types/QueryBuilder.type.js";import{BOOLEAN_OPERATORS as t,STRING_OPERATORS as i,INTEGER_OPERATORS as n,FREQUENCY_OPERATORS as r,DATE_OPERATORS as o,SPECIFIC_IG_OPERATORS as s,ANY_IG_OPERATORS as a,REACTION_OPERATORS as l,IG_STRING_OPERATORS as g}from"../types/QueryBuilderOperator.type.js";const u={[e.boolean]:t,[e.string]:i,[e.integer]:n,[e.frequency]:r,[e.date]:o,[e.specificPost]:s,[e.specificReel]:s,[e.specificStory]:s,[e.anyIg]:a,[e.reaction]:l,[e.activityString]:g};var c;!function(e){e.FreeText="FreeText",e.NoInput="NoInput",e.IntegerSingleValue="IntegerSingleValue",e.StringSingleValue="StringSingleValue",e.TwoNumberInputsSeperatedByAnd="TwoNumberInputsSeperatedByAnd",e.MultiselectDropdownFreeText="MultiselectDropdownFreeText",e.SingleDate="SingleDate",e.TwoDate="TwoDate",e.IntegerPositiveSingle="IntegerPositiveSingle",e.NumberTime="NumberTime",e.PostIgPicker="PostIgPicker",e.ReelIgPicker="ReelIgPicker",e.StoryIgPicker="StoryIgPicker",e.EmojiPicker="EmojiPicker"}(c||(c={}));const I={[n.is]:c.FreeText,[n.isNot]:c.FreeText,[n.exists]:c.NoInput,[n.doesntExist]:c.NoInput,[n.lessThan]:c.IntegerSingleValue,[n.lessThanOrEqualTo]:c.IntegerSingleValue,[n.greaterThan]:c.IntegerSingleValue,[n.greaterThanOrEqualTo]:c.IntegerSingleValue},p={[i.is]:c.MultiselectDropdownFreeText,[i.isNot]:c.MultiselectDropdownFreeText,[i.contains]:c.FreeText,[i.doesntContain]:c.FreeText,[i.startsWith]:c.FreeText,[i.endsWith]:c.FreeText,[i.exists]:c.NoInput,[i.doesntExist]:c.NoInput},S={[g.is]:c.StringSingleValue,[g.contains]:c.FreeText,[g.startsWith]:c.FreeText,[g.endsWith]:c.FreeText},T={[l.contains]:c.EmojiPicker},x={[o.on]:c.SingleDate,[o.notOn]:c.SingleDate,[o.inBetween]:c.TwoDate,[o.notInBetween]:c.TwoDate,[o.before]:c.SingleDate,[o.after]:c.SingleDate,[o.today]:c.NoInput,[o.yesterday]:c.NoInput,[o["last week"]]:c.NoInput,[o["last month"]]:c.NoInput,[o["last quarter"]]:c.NoInput,[o["in the last"]]:c.NumberTime},y={[s.in]:c.PostIgPicker},N={[s.in]:c.ReelIgPicker},P={[s.in]:c.StoryIgPicker},d={[a.in]:c.NoInput},m={[t.isTrue]:c.NoInput,[t.isFalse]:c.NoInput,[t.exists]:c.NoInput,[t.doesntExist]:c.NoInput},F={[r.exactly]:c.IntegerPositiveSingle,[r.atleast]:c.IntegerPositiveSingle,[r.atMost]:c.IntegerPositiveSingle},D={[e.boolean]:m,[e.string]:p,[e.integer]:I,[e.frequency]:F,[e.date]:x,[e.specificPost]:y,[e.specificReel]:N,[e.specificStory]:P,[e.anyIg]:d,[e.reaction]:T,[e.activityString]:S};export{d as ANY_IG_OPERATORS_COMPONENT,m as BOOLEAN_OPERATORS_COMPONENT,D as CONNECTOR_TYPE_TO_COMPONENT_MAP,u as CONNECTOR_TYPE_TO_OPERATORS,c as CONNECTOR_VALUE_COMPONENT_TYPES,x as DATE_OPERATORS_COMPONENT,F as FREQUENCY_OPERATORS_COMPONENT,S as IG_STRING_OPERATORS_COMPONENT,I as INTEGER_OPERATORS_COMPONENT,T as REACTION_OPERATORS_COMPONENT,y as SPECIFIC_IG_POST_OPERATORS_COMPONENT,N as SPECIFIC_IG_REEL_OPERATORS_COMPONENT,P as SPECIFIC_IG_STORY_OPERATORS_COMPONENT,p as STRING_OPERATORS_COMPONENT};
@@ -2,5 +2,5 @@ import { QueryBuilderConnectorType } from '../types/QueryBuilder.type';
2
2
  import { CONNECTOR_OPERATORS } from '../types/QueryBuilderOperator.type';
3
3
  export declare class ConnectorHelper {
4
4
  static getConnectorType(datatype: QueryBuilderConnectorType): string[];
5
- static getConnectorComponent(dataType: QueryBuilderConnectorType, connectorType: CONNECTOR_OPERATORS): "FreeText" | "NoInput" | "IntegerSingleValue" | "TwoNumberInputsSeperatedByAnd" | "MultiselectDropdownFreeText" | "SingleDate" | "TwoDate" | "IntegerPositiveSingle" | "NumberTime" | null;
5
+ static getConnectorComponent(dataType: QueryBuilderConnectorType, connectorType: CONNECTOR_OPERATORS): "FreeText" | "NoInput" | "IntegerSingleValue" | "StringSingleValue" | "TwoNumberInputsSeperatedByAnd" | "MultiselectDropdownFreeText" | "SingleDate" | "TwoDate" | "IntegerPositiveSingle" | "NumberTime" | null;
6
6
  }
@@ -68,6 +68,7 @@ export declare enum EVENT_VALUES {
68
68
  FreeText = "FreeText",
69
69
  NoInput = "NoInput",
70
70
  IntegerSingleValue = "IntegerSingleValue",
71
+ StringSingleValue = "StringSingleValue",
71
72
  TwoNumberInputsSeperatedByAnd = "TwoNumberInputsSeperatedByAnd",
72
73
  MultiselectDropdownFreeText = "MultiselectDropdownFreeText",
73
74
  SingleDate = "SingleDate",
@@ -78,6 +79,7 @@ export declare enum EVENT_VALUES {
78
79
  export type EVENT_RESPONSE_VALUE = {
79
80
  FreeText: string[];
80
81
  IntegerSingleValue: number;
82
+ StringSingleValue: string;
81
83
  TwoNumberInputsSeperatedByAnd: number[];
82
84
  MultiselectDropdownFreeText: string[];
83
85
  SingleDate: Date;
@@ -1 +1 @@
1
- var t,e,n,s,i,a,o,r,l,u;!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.contains="contains",t.startsWith="startsWith",t.endsWith="endsWith"}(n||(n={})),function(t){t.in="in"}(s||(s={})),function(t){t.in="in"}(i||(i={})),function(t){t.contains="contains",t.doesntContain="doesntContain"}(a||(a={})),function(t){t.on="on",t.notOn="notOn",t.inBetween="inBetween",t.notInBetween="notInBetween",t.before="before",t.after="after",t.today="today",t.yesterday="yesterday",t["last week"]="last week",t["last month"]="last month",t["last quarter"]="last quarter",t["in the last"]="in the last"}(o||(o={})),function(t){t.isTrue="isTrue",t.isFalse="isFalse",t.exists="exists",t.doesntExist="doesntExist"}(r||(r={})),function(t){t.exactly="exactly",t.atleast="atleast",t.atMost="atMost"}(l||(l={})),function(t){t.FreeText="FreeText",t.NoInput="NoInput",t.IntegerSingleValue="IntegerSingleValue",t.TwoNumberInputsSeperatedByAnd="TwoNumberInputsSeperatedByAnd",t.MultiselectDropdownFreeText="MultiselectDropdownFreeText",t.SingleDate="SingleDate",t.TwoDate="TwoDate",t.IntegerPositiveSingle="IntegerPositiveSingle",t.NumberTime="NumberTime"}(u||(u={}));export{i as ANY_IG_OPERATORS,r as BOOLEAN_OPERATORS,o as DATE_OPERATORS,u as EVENT_VALUES,l as FREQUENCY_OPERATORS,n as IG_STRING_OPERATORS,t as INTEGER_OPERATORS,a as REACTION_OPERATORS,s as SPECIFIC_IG_OPERATORS,e as STRING_OPERATORS};
1
+ var t,e,n,s,i,a,o,r,l,u;!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.contains="contains",t.startsWith="startsWith",t.endsWith="endsWith"}(n||(n={})),function(t){t.in="in"}(s||(s={})),function(t){t.in="in"}(i||(i={})),function(t){t.contains="contains",t.doesntContain="doesntContain"}(a||(a={})),function(t){t.on="on",t.notOn="notOn",t.inBetween="inBetween",t.notInBetween="notInBetween",t.before="before",t.after="after",t.today="today",t.yesterday="yesterday",t["last week"]="last week",t["last month"]="last month",t["last quarter"]="last quarter",t["in the last"]="in the last"}(o||(o={})),function(t){t.isTrue="isTrue",t.isFalse="isFalse",t.exists="exists",t.doesntExist="doesntExist"}(r||(r={})),function(t){t.exactly="exactly",t.atleast="atleast",t.atMost="atMost"}(l||(l={})),function(t){t.FreeText="FreeText",t.NoInput="NoInput",t.IntegerSingleValue="IntegerSingleValue",t.StringSingleValue="StringSingleValue",t.TwoNumberInputsSeperatedByAnd="TwoNumberInputsSeperatedByAnd",t.MultiselectDropdownFreeText="MultiselectDropdownFreeText",t.SingleDate="SingleDate",t.TwoDate="TwoDate",t.IntegerPositiveSingle="IntegerPositiveSingle",t.NumberTime="NumberTime"}(u||(u={}));export{i as ANY_IG_OPERATORS,r as BOOLEAN_OPERATORS,o as DATE_OPERATORS,u as EVENT_VALUES,l as FREQUENCY_OPERATORS,n as IG_STRING_OPERATORS,t as INTEGER_OPERATORS,a as REACTION_OPERATORS,s as SPECIFIC_IG_OPERATORS,e as STRING_OPERATORS};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputVariant } from '../input/Input';
3
2
  export interface SearchBarProps {
4
3
  width: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const WorkingStepper: () => JSX.Element;
3
2
  export declare enum STEPENUM {
4
3
  STEP1 = "STEP1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikdotai/bik-component-library",
3
- "version": "1.1.1-beta.44",
3
+ "version": "1.1.1-beta.45",
4
4
  "description": "Bik Component Library",
5
5
  "repository": {
6
6
  "type": "git",