@react-querybuilder/core 8.24.0 → 8.24.2
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/react-querybuilder_core.cjs.development.d.ts +9 -7
- package/dist/cjs/react-querybuilder_core.cjs.production.d.ts +9 -7
- package/dist/cjs/react-querybuilder_core.cjs.production.js +74 -1
- package/dist/cjs/react-querybuilder_core.cjs.production.js.map +1 -1
- package/dist/derivations.d.mts +3 -3
- package/dist/derivations.d.ts +3 -3
- package/dist/formatQuery.d.mts +1 -1
- package/dist/formatQuery.d.ts +1 -1
- package/dist/{import-BfZTwhp2.d.ts → import-BCkipOTY.d.ts} +2 -2
- package/dist/{import-BdKPtLzo.d.mts → import-C9el4B_K.d.mts} +2 -2
- package/dist/{index-DOIE2pwx.d.ts → index-BExDPYEG.d.mts} +10 -8
- package/dist/{index-DOIE2pwx.d.mts → index-BExDPYEG.d.ts} +10 -8
- package/dist/{index-94yESPHr.d.mts → index-icv8DBhg.d.mts} +2 -2
- package/dist/{index-D41_Ba4j.d.ts → index-yXGVO31H.d.ts} +2 -2
- package/dist/parseCEL.d.mts +2 -2
- package/dist/parseCEL.d.ts +2 -2
- package/dist/parseCypher.d.mts +1 -1
- package/dist/parseCypher.d.ts +1 -1
- package/dist/parseGremlin.d.mts +1 -1
- package/dist/parseGremlin.d.ts +1 -1
- package/dist/parseJSONata.d.mts +2 -2
- package/dist/parseJSONata.d.ts +2 -2
- package/dist/parseJsonLogic.d.mts +2 -2
- package/dist/parseJsonLogic.d.ts +2 -2
- package/dist/parseMongoDB.d.mts +2 -2
- package/dist/parseMongoDB.d.ts +2 -2
- package/dist/parseSPARQL.d.mts +1 -1
- package/dist/parseSPARQL.d.ts +1 -1
- package/dist/parseSQL.d.mts +2 -2
- package/dist/parseSQL.d.ts +2 -2
- package/dist/parseSpEL.d.mts +2 -2
- package/dist/parseSpEL.d.ts +2 -2
- package/dist/react-querybuilder_core.d.mts +9 -7
- package/dist/react-querybuilder_core.legacy-esm.d.ts +9 -7
- package/dist/react-querybuilder_core.legacy-esm.js +7 -7
- package/dist/react-querybuilder_core.production.d.mts +9 -7
- package/dist/react-querybuilder_core.production.mjs +74 -1
- package/dist/react-querybuilder_core.production.mjs.map +1 -1
- package/dist/{transformQuery-B7d9AWUf.d.mts → transformQuery-B6PRLRkS.d.mts} +2 -2
- package/dist/{transformQuery-BXDiUBGB.d.ts → transformQuery-DVjJZXnB.d.ts} +2 -2
- package/dist/transformQuery.d.mts +1 -1
- package/dist/transformQuery.d.ts +1 -1
- package/package.json +12 -12
package/dist/derivations.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as ValueProcessorOptions, $t as DefaultRuleGroupType, A as FormatQueryFinalOptions, An as SetRequired, At as ValidationMap, B as RQBJsonLogicStartsWith, Bt as RuleGroupTypeAny, C as DiagnosticEntry, Cn as OptionList, Ct as ValueSource, D as ExportFormat, Dn as ToFullOption, Dt as WithRequired, E as DiagnosticsStats, En as ToFlexibleOption, Et as ValueSources, F as NLTranslations, Fn as IsNever, Ft as DefaultRuleOrGroupArray, G as RuleGroupICDiagnosticsArray, Gt as CommonRuleAndGroupProperties, H as RuleDiagnosticsResult, Ht as RuleOrGroupArray, I as ParameterizedNamedSQL, In as IsAny, It as GenericizeRuleGroupType, J as RuleProcessor, Jt as DefaultCombinatorName, K as RuleGroupICDiagnosticsResult, Kt as DefaultCombinator, L as ParameterizedSQL, Lt as GetRuleGroupType, M as FormatQueryValidateRule, Mt as DefaultRuleGroupICArray, N as GroupVariantCondition, Nn as Simplify, Nt as DefaultRuleGroupTypeAny, O as ExportObjectFormats, On as ValueOption, Ot as QueryValidator, P as NLTranslationKey, Pn as If, Pt as DefaultRuleGroupTypeIC, Q as ValueProcessorLegacy, Qt as DefaultRuleGroupArray, R as RQBJsonLogic, Rt as GetRuleTypeFromGroupWithFieldAndOperator, S as ConstituentWordOrderString, Sn as OptionGroup, St as ValueEditorType, T as DiagnosticsResult, Tn as StringUnionToFullOptionArray, Tt as ValueSourceFullOptions, U as RuleGroupDiagnosticsArray, Ut as ToRuleGroupType, V as RQBJsonLogicVar, Vt as RuleGroupTypeIC, W as RuleGroupDiagnosticsResult, Wt as ToRuleGroupTypeIC, X as ValueProcessor, Xt as DefaultOperator, Y as SQLPreset, Yt as DefaultCombinatorNameExtended, Z as ValueProcessorByRule, Zt as DefaultOperatorName, _ as JsonLogicSome, _n as FullOptionRecord, _t as ParseNumberMethod, a as JsonLogicGreaterThan, an as UpdateableProperties, at as CombinatorByValue, b as JsonLogicVar, bn as NameLabelPair, bt as RemoveNullability, c as JsonLogicInString, cn as BaseOption, ct as FullCombinator, d as JsonLogicNegation, dn as FlexibleOptionGroup, dt as InputType, en as DefaultRuleType, et as AccessibleDescriptionGenerator, f as JsonLogicNone, fn as FlexibleOptionList, ft as MatchConfig, g as JsonLogicRulesLogic, gn as FullOptionMap, gt as OperatorByValue, h as JsonLogicReservedOperations, hn as FullOptionList, ht as Operator, i as JsonLogicEqual, in as UpdateValueMap, it as Combinator, j as FormatQueryOptions, jn as Except, jt as ValidationResult, k as ExportOperatorMap, kn as WithUnknownIndex, kt as RuleValidator, l as JsonLogicLessThan, ln as BaseOptionMap, lt as FullField, m as JsonLogicOr, mn as FullOption, mt as MatchModeOptions, n as JsonLogicAnd, nn as RuleGroupType, nt as Arity, o as JsonLogicGreaterThanOrEqual, on as ExpressionNode, ot as Field, p as JsonLogicNotEqual, pn as FlexibleOptionListProp, pt as MatchMode, q as RuleGroupProcessor, qt as DefaultCombinatorExtended, r as JsonLogicDoubleNegation, rn as RuleType, rt as Classname, s as JsonLogicInArray, sn as BaseFullOption, st as FieldByValue, t as JsonLogicAll, tn as RuleGroupArray, tt as ActionElementEventHandler, u as JsonLogicLessThanOrEqual, un as FlexibleOption, ut as FullOperator, v as JsonLogicStrictEqual, vn as GetOptionIdentifierType, vt as ParseNumbersPropConfig, w as DiagnosticsFieldSummaryEntry, wn as StringUnionToFlexibleOptionArray, wt as ValueSourceFlexibleOptions, x as ConstituentWordOrder, xn as Option, xt as ValueChangeEventHandler, y as JsonLogicStrictNotEqual, yn as GetOptionType, yt as Path, z as RQBJsonLogicEndsWith, zt as RuleGroupICArray } from "./index-
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as transformQuery, t as TransformQueryOptions } from "./transformQuery-
|
|
1
|
+
import { $ as ValueProcessorOptions, $t as DefaultRuleGroupType, A as FormatQueryFinalOptions, An as SetRequired, At as ValidationMap, B as RQBJsonLogicStartsWith, Bt as RuleGroupTypeAny, C as DiagnosticEntry, Cn as OptionList, Ct as ValueSource, D as ExportFormat, Dn as ToFullOption, Dt as WithRequired, E as DiagnosticsStats, En as ToFlexibleOption, Et as ValueSources, F as NLTranslations, Fn as IsNever, Ft as DefaultRuleOrGroupArray, G as RuleGroupICDiagnosticsArray, Gt as CommonRuleAndGroupProperties, H as RuleDiagnosticsResult, Ht as RuleOrGroupArray, I as ParameterizedNamedSQL, In as IsAny, It as GenericizeRuleGroupType, J as RuleProcessor, Jt as DefaultCombinatorName, K as RuleGroupICDiagnosticsResult, Kt as DefaultCombinator, L as ParameterizedSQL, Lt as GetRuleGroupType, M as FormatQueryValidateRule, Mt as DefaultRuleGroupICArray, N as GroupVariantCondition, Nn as Simplify, Nt as DefaultRuleGroupTypeAny, O as ExportObjectFormats, On as ValueOption, Ot as QueryValidator, P as NLTranslationKey, Pn as If, Pt as DefaultRuleGroupTypeIC, Q as ValueProcessorLegacy, Qt as DefaultRuleGroupArray, R as RQBJsonLogic, Rt as GetRuleTypeFromGroupWithFieldAndOperator, S as ConstituentWordOrderString, Sn as OptionGroup, St as ValueEditorType, T as DiagnosticsResult, Tn as StringUnionToFullOptionArray, Tt as ValueSourceFullOptions, U as RuleGroupDiagnosticsArray, Ut as ToRuleGroupType, V as RQBJsonLogicVar, Vt as RuleGroupTypeIC, W as RuleGroupDiagnosticsResult, Wt as ToRuleGroupTypeIC, X as ValueProcessor, Xt as DefaultOperator, Y as SQLPreset, Yt as DefaultCombinatorNameExtended, Z as ValueProcessorByRule, Zt as DefaultOperatorName, _ as JsonLogicSome, _n as FullOptionRecord, _t as ParseNumberMethod, a as JsonLogicGreaterThan, an as UpdateableProperties, at as CombinatorByValue, b as JsonLogicVar, bn as NameLabelPair, bt as RemoveNullability, c as JsonLogicInString, cn as BaseOption, ct as FullCombinator, d as JsonLogicNegation, dn as FlexibleOptionGroup, dt as InputType, en as DefaultRuleType, et as AccessibleDescriptionGenerator, f as JsonLogicNone, fn as FlexibleOptionList, ft as MatchConfig, g as JsonLogicRulesLogic, gn as FullOptionMap, gt as OperatorByValue, h as JsonLogicReservedOperations, hn as FullOptionList, ht as Operator, i as JsonLogicEqual, in as UpdateValueMap, it as Combinator, j as FormatQueryOptions, jn as Except, jt as ValidationResult, k as ExportOperatorMap, kn as WithUnknownIndex, kt as RuleValidator, l as JsonLogicLessThan, ln as BaseOptionMap, lt as FullField, m as JsonLogicOr, mn as FullOption, mt as MatchModeOptions, n as JsonLogicAnd, nn as RuleGroupType, nt as Arity, o as JsonLogicGreaterThanOrEqual, on as ExpressionNode, ot as Field, p as JsonLogicNotEqual, pn as FlexibleOptionListProp, pt as MatchMode, q as RuleGroupProcessor, qt as DefaultCombinatorExtended, r as JsonLogicDoubleNegation, rn as RuleType, rt as Classname, s as JsonLogicInArray, sn as BaseFullOption, st as FieldByValue, t as JsonLogicAll, tn as RuleGroupArray, tt as ActionElementEventHandler, u as JsonLogicLessThanOrEqual, un as FlexibleOption, ut as FullOperator, v as JsonLogicStrictEqual, vn as GetOptionIdentifierType, vt as ParseNumbersPropConfig, w as DiagnosticsFieldSummaryEntry, wn as StringUnionToFlexibleOptionArray, wt as ValueSourceFlexibleOptions, x as ConstituentWordOrder, xn as Option, xt as ValueChangeEventHandler, y as JsonLogicStrictNotEqual, yn as GetOptionType, yt as Path, z as RQBJsonLogicEndsWith, zt as RuleGroupICArray } from "./index-BExDPYEG.mjs";
|
|
2
|
+
import "./index-icv8DBhg.mjs";
|
|
3
|
+
import { n as transformQuery, t as TransformQueryOptions } from "./transformQuery-B6PRLRkS.mjs";
|
|
4
4
|
import { produce } from "immer";
|
|
5
5
|
//#region src/controlPropKeys.d.ts
|
|
6
6
|
/**
|
package/dist/derivations.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as ValueProcessorOptions, $t as DefaultRuleGroupType, A as FormatQueryFinalOptions, An as SetRequired, At as ValidationMap, B as RQBJsonLogicStartsWith, Bt as RuleGroupTypeAny, C as DiagnosticEntry, Cn as OptionList, Ct as ValueSource, D as ExportFormat, Dn as ToFullOption, Dt as WithRequired, E as DiagnosticsStats, En as ToFlexibleOption, Et as ValueSources, F as NLTranslations, Fn as IsNever, Ft as DefaultRuleOrGroupArray, G as RuleGroupICDiagnosticsArray, Gt as CommonRuleAndGroupProperties, H as RuleDiagnosticsResult, Ht as RuleOrGroupArray, I as ParameterizedNamedSQL, In as IsAny, It as GenericizeRuleGroupType, J as RuleProcessor, Jt as DefaultCombinatorName, K as RuleGroupICDiagnosticsResult, Kt as DefaultCombinator, L as ParameterizedSQL, Lt as GetRuleGroupType, M as FormatQueryValidateRule, Mt as DefaultRuleGroupICArray, N as GroupVariantCondition, Nn as Simplify, Nt as DefaultRuleGroupTypeAny, O as ExportObjectFormats, On as ValueOption, Ot as QueryValidator, P as NLTranslationKey, Pn as If, Pt as DefaultRuleGroupTypeIC, Q as ValueProcessorLegacy, Qt as DefaultRuleGroupArray, R as RQBJsonLogic, Rt as GetRuleTypeFromGroupWithFieldAndOperator, S as ConstituentWordOrderString, Sn as OptionGroup, St as ValueEditorType, T as DiagnosticsResult, Tn as StringUnionToFullOptionArray, Tt as ValueSourceFullOptions, U as RuleGroupDiagnosticsArray, Ut as ToRuleGroupType, V as RQBJsonLogicVar, Vt as RuleGroupTypeIC, W as RuleGroupDiagnosticsResult, Wt as ToRuleGroupTypeIC, X as ValueProcessor, Xt as DefaultOperator, Y as SQLPreset, Yt as DefaultCombinatorNameExtended, Z as ValueProcessorByRule, Zt as DefaultOperatorName, _ as JsonLogicSome, _n as FullOptionRecord, _t as ParseNumberMethod, a as JsonLogicGreaterThan, an as UpdateableProperties, at as CombinatorByValue, b as JsonLogicVar, bn as NameLabelPair, bt as RemoveNullability, c as JsonLogicInString, cn as BaseOption, ct as FullCombinator, d as JsonLogicNegation, dn as FlexibleOptionGroup, dt as InputType, en as DefaultRuleType, et as AccessibleDescriptionGenerator, f as JsonLogicNone, fn as FlexibleOptionList, ft as MatchConfig, g as JsonLogicRulesLogic, gn as FullOptionMap, gt as OperatorByValue, h as JsonLogicReservedOperations, hn as FullOptionList, ht as Operator, i as JsonLogicEqual, in as UpdateValueMap, it as Combinator, j as FormatQueryOptions, jn as Except, jt as ValidationResult, k as ExportOperatorMap, kn as WithUnknownIndex, kt as RuleValidator, l as JsonLogicLessThan, ln as BaseOptionMap, lt as FullField, m as JsonLogicOr, mn as FullOption, mt as MatchModeOptions, n as JsonLogicAnd, nn as RuleGroupType, nt as Arity, o as JsonLogicGreaterThanOrEqual, on as ExpressionNode, ot as Field, p as JsonLogicNotEqual, pn as FlexibleOptionListProp, pt as MatchMode, q as RuleGroupProcessor, qt as DefaultCombinatorExtended, r as JsonLogicDoubleNegation, rn as RuleType, rt as Classname, s as JsonLogicInArray, sn as BaseFullOption, st as FieldByValue, t as JsonLogicAll, tn as RuleGroupArray, tt as ActionElementEventHandler, u as JsonLogicLessThanOrEqual, un as FlexibleOption, ut as FullOperator, v as JsonLogicStrictEqual, vn as GetOptionIdentifierType, vt as ParseNumbersPropConfig, w as DiagnosticsFieldSummaryEntry, wn as StringUnionToFlexibleOptionArray, wt as ValueSourceFlexibleOptions, x as ConstituentWordOrder, xn as Option, xt as ValueChangeEventHandler, y as JsonLogicStrictNotEqual, yn as GetOptionType, yt as Path, z as RQBJsonLogicEndsWith, zt as RuleGroupICArray } from "./index-
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as transformQuery, t as TransformQueryOptions } from "./transformQuery-
|
|
1
|
+
import { $ as ValueProcessorOptions, $t as DefaultRuleGroupType, A as FormatQueryFinalOptions, An as SetRequired, At as ValidationMap, B as RQBJsonLogicStartsWith, Bt as RuleGroupTypeAny, C as DiagnosticEntry, Cn as OptionList, Ct as ValueSource, D as ExportFormat, Dn as ToFullOption, Dt as WithRequired, E as DiagnosticsStats, En as ToFlexibleOption, Et as ValueSources, F as NLTranslations, Fn as IsNever, Ft as DefaultRuleOrGroupArray, G as RuleGroupICDiagnosticsArray, Gt as CommonRuleAndGroupProperties, H as RuleDiagnosticsResult, Ht as RuleOrGroupArray, I as ParameterizedNamedSQL, In as IsAny, It as GenericizeRuleGroupType, J as RuleProcessor, Jt as DefaultCombinatorName, K as RuleGroupICDiagnosticsResult, Kt as DefaultCombinator, L as ParameterizedSQL, Lt as GetRuleGroupType, M as FormatQueryValidateRule, Mt as DefaultRuleGroupICArray, N as GroupVariantCondition, Nn as Simplify, Nt as DefaultRuleGroupTypeAny, O as ExportObjectFormats, On as ValueOption, Ot as QueryValidator, P as NLTranslationKey, Pn as If, Pt as DefaultRuleGroupTypeIC, Q as ValueProcessorLegacy, Qt as DefaultRuleGroupArray, R as RQBJsonLogic, Rt as GetRuleTypeFromGroupWithFieldAndOperator, S as ConstituentWordOrderString, Sn as OptionGroup, St as ValueEditorType, T as DiagnosticsResult, Tn as StringUnionToFullOptionArray, Tt as ValueSourceFullOptions, U as RuleGroupDiagnosticsArray, Ut as ToRuleGroupType, V as RQBJsonLogicVar, Vt as RuleGroupTypeIC, W as RuleGroupDiagnosticsResult, Wt as ToRuleGroupTypeIC, X as ValueProcessor, Xt as DefaultOperator, Y as SQLPreset, Yt as DefaultCombinatorNameExtended, Z as ValueProcessorByRule, Zt as DefaultOperatorName, _ as JsonLogicSome, _n as FullOptionRecord, _t as ParseNumberMethod, a as JsonLogicGreaterThan, an as UpdateableProperties, at as CombinatorByValue, b as JsonLogicVar, bn as NameLabelPair, bt as RemoveNullability, c as JsonLogicInString, cn as BaseOption, ct as FullCombinator, d as JsonLogicNegation, dn as FlexibleOptionGroup, dt as InputType, en as DefaultRuleType, et as AccessibleDescriptionGenerator, f as JsonLogicNone, fn as FlexibleOptionList, ft as MatchConfig, g as JsonLogicRulesLogic, gn as FullOptionMap, gt as OperatorByValue, h as JsonLogicReservedOperations, hn as FullOptionList, ht as Operator, i as JsonLogicEqual, in as UpdateValueMap, it as Combinator, j as FormatQueryOptions, jn as Except, jt as ValidationResult, k as ExportOperatorMap, kn as WithUnknownIndex, kt as RuleValidator, l as JsonLogicLessThan, ln as BaseOptionMap, lt as FullField, m as JsonLogicOr, mn as FullOption, mt as MatchModeOptions, n as JsonLogicAnd, nn as RuleGroupType, nt as Arity, o as JsonLogicGreaterThanOrEqual, on as ExpressionNode, ot as Field, p as JsonLogicNotEqual, pn as FlexibleOptionListProp, pt as MatchMode, q as RuleGroupProcessor, qt as DefaultCombinatorExtended, r as JsonLogicDoubleNegation, rn as RuleType, rt as Classname, s as JsonLogicInArray, sn as BaseFullOption, st as FieldByValue, t as JsonLogicAll, tn as RuleGroupArray, tt as ActionElementEventHandler, u as JsonLogicLessThanOrEqual, un as FlexibleOption, ut as FullOperator, v as JsonLogicStrictEqual, vn as GetOptionIdentifierType, vt as ParseNumbersPropConfig, w as DiagnosticsFieldSummaryEntry, wn as StringUnionToFlexibleOptionArray, wt as ValueSourceFlexibleOptions, x as ConstituentWordOrder, xn as Option, xt as ValueChangeEventHandler, y as JsonLogicStrictNotEqual, yn as GetOptionType, yt as Path, z as RQBJsonLogicEndsWith, zt as RuleGroupICArray } from "./index-BExDPYEG.js";
|
|
2
|
+
import "./index-yXGVO31H.js";
|
|
3
|
+
import { n as transformQuery, t as TransformQueryOptions } from "./transformQuery-DVjJZXnB.js";
|
|
4
4
|
import "immer";
|
|
5
5
|
//#region src/controlPropKeys.d.ts
|
|
6
6
|
/**
|
package/dist/formatQuery.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as defaultRuleProcessorDrizzle, A as withParamPrefix, B as sparqlVar, C as normalizeConstituentWordOrder, Ct as cypherCombinatorMap, D as shouldRenderAsNumber, Dt as defaultRuleProcessorSpEL, E as processMatchMode, Et as defaultValueProcessorByRule, F as defaultValueProcessorNL, G as defaultOperatorProcessorNL, H as defaultRuleProcessorPrisma, I as defaultRuleProcessorTanStackDB, J as defaultRuleProcessorLDAP, K as defaultRuleProcessorNL, L as defaultOperatorProcessorSQL, M as formatQuery, N as formatQueryOptionPresets, O as stripParamPrefix, Ot as defaultRuleProcessorMongoDB, P as sqlDialectPresets, Q as defaultRuleProcessorElasticSearch, R as defaultRuleProcessorSQL, S as mongoOperators, St as defaultRuleGroupProcessorDrizzle, T as prismaOperators, Tt as defaultRuleGroupProcessorCEL, U as defaultRuleProcessorParameterized, V as defaultRuleProcessorSequelize, W as defaultExportOperatorMap, X as defaultRuleProcessorJSONata, Y as defaultRuleProcessorJsonLogic, Z as defaultRuleProcessorGremlin, _ as getSubqueryElementAlias, _t as defaultRuleGroupProcessorJSONata, a as defaultValueProcessorCELByRule, at as defaultRuleGroupProcessorSPARQL, b as jsonLogicAdditionalOperators, bt as DrizzleOperatorsLike, c as bigIntJsonParseReviver, ct as defaultRuleGroupProcessorPrisma, d as defaultNLTranslations, dt as defaultRuleGroupProcessorNL, et as defaultRuleProcessorCypher, f as getLikeWildcards, ft as defaultRuleGroupProcessorMongoDBQuery, g as getSQLConcat, gt as defaultRuleGroupProcessorJsonLogic, h as getQuotedFieldName, ht as defaultRuleGroupProcessorLDAP, i as defaultValueProcessor, it as defaultRuleGroupProcessorSpEL, j as wrapLikeFragment, k as subqueryElementAliasBase, kt as defaultRuleProcessorCEL, l as bigIntJsonStringifyReplacer, lt as prismaFallback, m as getQuoteFieldNamesWithArray, mt as defaultRuleGroupProcessorMongoDB, n as defaultMongoDBValueProcessor, nt as defaultRuleGroupProcessorTanStackDB, o as defaultValueProcessorMongoDBByRule, ot as SequelizeWhereOptionsLike, p as getNLTranslataion, pt as mongoDbFallback, q as defaultRuleProcessorMongoDBQuery, r as defaultSpELValueProcessor, rt as defaultRuleGroupProcessorSQL, s as defaultValueProcessorSpELByRule, st as defaultRuleGroupProcessorSequelize, t as defaultCELValueProcessor, tt as defaultRuleGroupProcessorDiagnostics, u as celCombinatorMap, ut as defaultRuleGroupProcessorParameterized, v as isValidValue, vt as defaultRuleGroupProcessorGremlin, w as numerifyValues, wt as defaultRuleGroupProcessorCypher, x as mapSQLOperator, xt as DrizzleWhereCallback, y as isValueProcessorLegacy, yt as defaultRuleGroupProcessorElasticSearch, z as defaultRuleProcessorSPARQL } from "./index-
|
|
1
|
+
import { $ as defaultRuleProcessorDrizzle, A as withParamPrefix, B as sparqlVar, C as normalizeConstituentWordOrder, Ct as cypherCombinatorMap, D as shouldRenderAsNumber, Dt as defaultRuleProcessorSpEL, E as processMatchMode, Et as defaultValueProcessorByRule, F as defaultValueProcessorNL, G as defaultOperatorProcessorNL, H as defaultRuleProcessorPrisma, I as defaultRuleProcessorTanStackDB, J as defaultRuleProcessorLDAP, K as defaultRuleProcessorNL, L as defaultOperatorProcessorSQL, M as formatQuery, N as formatQueryOptionPresets, O as stripParamPrefix, Ot as defaultRuleProcessorMongoDB, P as sqlDialectPresets, Q as defaultRuleProcessorElasticSearch, R as defaultRuleProcessorSQL, S as mongoOperators, St as defaultRuleGroupProcessorDrizzle, T as prismaOperators, Tt as defaultRuleGroupProcessorCEL, U as defaultRuleProcessorParameterized, V as defaultRuleProcessorSequelize, W as defaultExportOperatorMap, X as defaultRuleProcessorJSONata, Y as defaultRuleProcessorJsonLogic, Z as defaultRuleProcessorGremlin, _ as getSubqueryElementAlias, _t as defaultRuleGroupProcessorJSONata, a as defaultValueProcessorCELByRule, at as defaultRuleGroupProcessorSPARQL, b as jsonLogicAdditionalOperators, bt as DrizzleOperatorsLike, c as bigIntJsonParseReviver, ct as defaultRuleGroupProcessorPrisma, d as defaultNLTranslations, dt as defaultRuleGroupProcessorNL, et as defaultRuleProcessorCypher, f as getLikeWildcards, ft as defaultRuleGroupProcessorMongoDBQuery, g as getSQLConcat, gt as defaultRuleGroupProcessorJsonLogic, h as getQuotedFieldName, ht as defaultRuleGroupProcessorLDAP, i as defaultValueProcessor, it as defaultRuleGroupProcessorSpEL, j as wrapLikeFragment, k as subqueryElementAliasBase, kt as defaultRuleProcessorCEL, l as bigIntJsonStringifyReplacer, lt as prismaFallback, m as getQuoteFieldNamesWithArray, mt as defaultRuleGroupProcessorMongoDB, n as defaultMongoDBValueProcessor, nt as defaultRuleGroupProcessorTanStackDB, o as defaultValueProcessorMongoDBByRule, ot as SequelizeWhereOptionsLike, p as getNLTranslataion, pt as mongoDbFallback, q as defaultRuleProcessorMongoDBQuery, r as defaultSpELValueProcessor, rt as defaultRuleGroupProcessorSQL, s as defaultValueProcessorSpELByRule, st as defaultRuleGroupProcessorSequelize, t as defaultCELValueProcessor, tt as defaultRuleGroupProcessorDiagnostics, u as celCombinatorMap, ut as defaultRuleGroupProcessorParameterized, v as isValidValue, vt as defaultRuleGroupProcessorGremlin, w as numerifyValues, wt as defaultRuleGroupProcessorCypher, x as mapSQLOperator, xt as DrizzleWhereCallback, y as isValueProcessorLegacy, yt as defaultRuleGroupProcessorElasticSearch, z as defaultRuleProcessorSPARQL } from "./index-icv8DBhg.mjs";
|
|
2
2
|
export { DrizzleOperatorsLike, DrizzleWhereCallback, SequelizeWhereOptionsLike, bigIntJsonParseReviver, bigIntJsonStringifyReplacer, celCombinatorMap, cypherCombinatorMap, defaultCELValueProcessor, defaultExportOperatorMap, defaultMongoDBValueProcessor, defaultNLTranslations, defaultOperatorProcessorNL, defaultOperatorProcessorSQL, defaultRuleGroupProcessorCEL, defaultRuleGroupProcessorCypher, defaultRuleGroupProcessorDiagnostics, defaultRuleGroupProcessorDrizzle, defaultRuleGroupProcessorElasticSearch, defaultRuleGroupProcessorGremlin, defaultRuleGroupProcessorJSONata, defaultRuleGroupProcessorJsonLogic, defaultRuleGroupProcessorLDAP, defaultRuleGroupProcessorMongoDB, defaultRuleGroupProcessorMongoDBQuery, defaultRuleGroupProcessorNL, defaultRuleGroupProcessorParameterized, defaultRuleGroupProcessorPrisma, defaultRuleGroupProcessorSPARQL, defaultRuleGroupProcessorSQL, defaultRuleGroupProcessorSequelize, defaultRuleGroupProcessorSpEL, defaultRuleGroupProcessorTanStackDB, defaultRuleProcessorCEL, defaultRuleProcessorCypher, defaultRuleProcessorDrizzle, defaultRuleProcessorElasticSearch, defaultRuleProcessorGremlin, defaultRuleProcessorJSONata, defaultRuleProcessorJsonLogic, defaultRuleProcessorLDAP, defaultRuleProcessorMongoDB, defaultRuleProcessorMongoDBQuery, defaultRuleProcessorNL, defaultRuleProcessorParameterized, defaultRuleProcessorPrisma, defaultRuleProcessorSPARQL, defaultRuleProcessorSQL, defaultRuleProcessorSequelize, defaultRuleProcessorSpEL, defaultRuleProcessorTanStackDB, defaultSpELValueProcessor, defaultValueProcessor, defaultValueProcessorByRule, defaultValueProcessorCELByRule, defaultValueProcessorMongoDBByRule, defaultValueProcessorNL, defaultValueProcessorSpELByRule, formatQuery, formatQueryOptionPresets, getLikeWildcards, getNLTranslataion, getQuoteFieldNamesWithArray, getQuotedFieldName, getSQLConcat, getSubqueryElementAlias, isValidValue, isValueProcessorLegacy, jsonLogicAdditionalOperators, mapSQLOperator, mongoDbFallback, mongoOperators, normalizeConstituentWordOrder, numerifyValues, prismaFallback, prismaOperators, processMatchMode, shouldRenderAsNumber, sparqlVar, sqlDialectPresets, stripParamPrefix, subqueryElementAliasBase, withParamPrefix, wrapLikeFragment };
|
package/dist/formatQuery.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as defaultRuleProcessorDrizzle, A as withParamPrefix, B as sparqlVar, C as normalizeConstituentWordOrder, Ct as cypherCombinatorMap, D as shouldRenderAsNumber, Dt as defaultRuleProcessorSpEL, E as processMatchMode, Et as defaultValueProcessorByRule, F as defaultValueProcessorNL, G as defaultOperatorProcessorNL, H as defaultRuleProcessorPrisma, I as defaultRuleProcessorTanStackDB, J as defaultRuleProcessorLDAP, K as defaultRuleProcessorNL, L as defaultOperatorProcessorSQL, M as formatQuery, N as formatQueryOptionPresets, O as stripParamPrefix, Ot as defaultRuleProcessorMongoDB, P as sqlDialectPresets, Q as defaultRuleProcessorElasticSearch, R as defaultRuleProcessorSQL, S as mongoOperators, St as defaultRuleGroupProcessorDrizzle, T as prismaOperators, Tt as defaultRuleGroupProcessorCEL, U as defaultRuleProcessorParameterized, V as defaultRuleProcessorSequelize, W as defaultExportOperatorMap, X as defaultRuleProcessorJSONata, Y as defaultRuleProcessorJsonLogic, Z as defaultRuleProcessorGremlin, _ as getSubqueryElementAlias, _t as defaultRuleGroupProcessorJSONata, a as defaultValueProcessorCELByRule, at as defaultRuleGroupProcessorSPARQL, b as jsonLogicAdditionalOperators, bt as DrizzleOperatorsLike, c as bigIntJsonParseReviver, ct as defaultRuleGroupProcessorPrisma, d as defaultNLTranslations, dt as defaultRuleGroupProcessorNL, et as defaultRuleProcessorCypher, f as getLikeWildcards, ft as defaultRuleGroupProcessorMongoDBQuery, g as getSQLConcat, gt as defaultRuleGroupProcessorJsonLogic, h as getQuotedFieldName, ht as defaultRuleGroupProcessorLDAP, i as defaultValueProcessor, it as defaultRuleGroupProcessorSpEL, j as wrapLikeFragment, k as subqueryElementAliasBase, kt as defaultRuleProcessorCEL, l as bigIntJsonStringifyReplacer, lt as prismaFallback, m as getQuoteFieldNamesWithArray, mt as defaultRuleGroupProcessorMongoDB, n as defaultMongoDBValueProcessor, nt as defaultRuleGroupProcessorTanStackDB, o as defaultValueProcessorMongoDBByRule, ot as SequelizeWhereOptionsLike, p as getNLTranslataion, pt as mongoDbFallback, q as defaultRuleProcessorMongoDBQuery, r as defaultSpELValueProcessor, rt as defaultRuleGroupProcessorSQL, s as defaultValueProcessorSpELByRule, st as defaultRuleGroupProcessorSequelize, t as defaultCELValueProcessor, tt as defaultRuleGroupProcessorDiagnostics, u as celCombinatorMap, ut as defaultRuleGroupProcessorParameterized, v as isValidValue, vt as defaultRuleGroupProcessorGremlin, w as numerifyValues, wt as defaultRuleGroupProcessorCypher, x as mapSQLOperator, xt as DrizzleWhereCallback, y as isValueProcessorLegacy, yt as defaultRuleGroupProcessorElasticSearch, z as defaultRuleProcessorSPARQL } from "./index-
|
|
1
|
+
import { $ as defaultRuleProcessorDrizzle, A as withParamPrefix, B as sparqlVar, C as normalizeConstituentWordOrder, Ct as cypherCombinatorMap, D as shouldRenderAsNumber, Dt as defaultRuleProcessorSpEL, E as processMatchMode, Et as defaultValueProcessorByRule, F as defaultValueProcessorNL, G as defaultOperatorProcessorNL, H as defaultRuleProcessorPrisma, I as defaultRuleProcessorTanStackDB, J as defaultRuleProcessorLDAP, K as defaultRuleProcessorNL, L as defaultOperatorProcessorSQL, M as formatQuery, N as formatQueryOptionPresets, O as stripParamPrefix, Ot as defaultRuleProcessorMongoDB, P as sqlDialectPresets, Q as defaultRuleProcessorElasticSearch, R as defaultRuleProcessorSQL, S as mongoOperators, St as defaultRuleGroupProcessorDrizzle, T as prismaOperators, Tt as defaultRuleGroupProcessorCEL, U as defaultRuleProcessorParameterized, V as defaultRuleProcessorSequelize, W as defaultExportOperatorMap, X as defaultRuleProcessorJSONata, Y as defaultRuleProcessorJsonLogic, Z as defaultRuleProcessorGremlin, _ as getSubqueryElementAlias, _t as defaultRuleGroupProcessorJSONata, a as defaultValueProcessorCELByRule, at as defaultRuleGroupProcessorSPARQL, b as jsonLogicAdditionalOperators, bt as DrizzleOperatorsLike, c as bigIntJsonParseReviver, ct as defaultRuleGroupProcessorPrisma, d as defaultNLTranslations, dt as defaultRuleGroupProcessorNL, et as defaultRuleProcessorCypher, f as getLikeWildcards, ft as defaultRuleGroupProcessorMongoDBQuery, g as getSQLConcat, gt as defaultRuleGroupProcessorJsonLogic, h as getQuotedFieldName, ht as defaultRuleGroupProcessorLDAP, i as defaultValueProcessor, it as defaultRuleGroupProcessorSpEL, j as wrapLikeFragment, k as subqueryElementAliasBase, kt as defaultRuleProcessorCEL, l as bigIntJsonStringifyReplacer, lt as prismaFallback, m as getQuoteFieldNamesWithArray, mt as defaultRuleGroupProcessorMongoDB, n as defaultMongoDBValueProcessor, nt as defaultRuleGroupProcessorTanStackDB, o as defaultValueProcessorMongoDBByRule, ot as SequelizeWhereOptionsLike, p as getNLTranslataion, pt as mongoDbFallback, q as defaultRuleProcessorMongoDBQuery, r as defaultSpELValueProcessor, rt as defaultRuleGroupProcessorSQL, s as defaultValueProcessorSpELByRule, st as defaultRuleGroupProcessorSequelize, t as defaultCELValueProcessor, tt as defaultRuleGroupProcessorDiagnostics, u as celCombinatorMap, ut as defaultRuleGroupProcessorParameterized, v as isValidValue, vt as defaultRuleGroupProcessorGremlin, w as numerifyValues, wt as defaultRuleGroupProcessorCypher, x as mapSQLOperator, xt as DrizzleWhereCallback, y as isValueProcessorLegacy, yt as defaultRuleGroupProcessorElasticSearch, z as defaultRuleProcessorSPARQL } from "./index-yXGVO31H.js";
|
|
2
2
|
export { DrizzleOperatorsLike, DrizzleWhereCallback, SequelizeWhereOptionsLike, bigIntJsonParseReviver, bigIntJsonStringifyReplacer, celCombinatorMap, cypherCombinatorMap, defaultCELValueProcessor, defaultExportOperatorMap, defaultMongoDBValueProcessor, defaultNLTranslations, defaultOperatorProcessorNL, defaultOperatorProcessorSQL, defaultRuleGroupProcessorCEL, defaultRuleGroupProcessorCypher, defaultRuleGroupProcessorDiagnostics, defaultRuleGroupProcessorDrizzle, defaultRuleGroupProcessorElasticSearch, defaultRuleGroupProcessorGremlin, defaultRuleGroupProcessorJSONata, defaultRuleGroupProcessorJsonLogic, defaultRuleGroupProcessorLDAP, defaultRuleGroupProcessorMongoDB, defaultRuleGroupProcessorMongoDBQuery, defaultRuleGroupProcessorNL, defaultRuleGroupProcessorParameterized, defaultRuleGroupProcessorPrisma, defaultRuleGroupProcessorSPARQL, defaultRuleGroupProcessorSQL, defaultRuleGroupProcessorSequelize, defaultRuleGroupProcessorSpEL, defaultRuleGroupProcessorTanStackDB, defaultRuleProcessorCEL, defaultRuleProcessorCypher, defaultRuleProcessorDrizzle, defaultRuleProcessorElasticSearch, defaultRuleProcessorGremlin, defaultRuleProcessorJSONata, defaultRuleProcessorJsonLogic, defaultRuleProcessorLDAP, defaultRuleProcessorMongoDB, defaultRuleProcessorMongoDBQuery, defaultRuleProcessorNL, defaultRuleProcessorParameterized, defaultRuleProcessorPrisma, defaultRuleProcessorSPARQL, defaultRuleProcessorSQL, defaultRuleProcessorSequelize, defaultRuleProcessorSpEL, defaultRuleProcessorTanStackDB, defaultSpELValueProcessor, defaultValueProcessor, defaultValueProcessorByRule, defaultValueProcessorCELByRule, defaultValueProcessorMongoDBByRule, defaultValueProcessorNL, defaultValueProcessorSpELByRule, formatQuery, formatQueryOptionPresets, getLikeWildcards, getNLTranslataion, getQuoteFieldNamesWithArray, getQuotedFieldName, getSQLConcat, getSubqueryElementAlias, isValidValue, isValueProcessorLegacy, jsonLogicAdditionalOperators, mapSQLOperator, mongoDbFallback, mongoOperators, normalizeConstituentWordOrder, numerifyValues, prismaFallback, prismaOperators, processMatchMode, shouldRenderAsNumber, sparqlVar, sqlDialectPresets, stripParamPrefix, subqueryElementAliasBase, withParamPrefix, wrapLikeFragment };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cn as OptionList, Et as ValueSources, lt as FullField } from "./index-
|
|
1
|
+
import { Cn as OptionList, Et as ValueSources, lt as FullField } from "./index-BExDPYEG.js";
|
|
2
2
|
//#region src/types/import.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Options common to all parsers.
|
|
@@ -23,4 +23,4 @@ interface ParserCommonOptions {
|
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
25
|
export { ParserCommonOptions as t };
|
|
26
|
-
//# sourceMappingURL=import-
|
|
26
|
+
//# sourceMappingURL=import-BCkipOTY.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cn as OptionList, Et as ValueSources, lt as FullField } from "./index-
|
|
1
|
+
import { Cn as OptionList, Et as ValueSources, lt as FullField } from "./index-BExDPYEG.mjs";
|
|
2
2
|
//#region src/types/import.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Options common to all parsers.
|
|
@@ -23,4 +23,4 @@ interface ParserCommonOptions {
|
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
25
|
export { ParserCommonOptions as t };
|
|
26
|
-
//# sourceMappingURL=import-
|
|
26
|
+
//# sourceMappingURL=import-C9el4B_K.d.mts.map
|
|
@@ -971,16 +971,18 @@ Required<HomomorphicPick<BaseType, Keys>>>;
|
|
|
971
971
|
Remove the optional modifier from the specified keys in an array.
|
|
972
972
|
*/
|
|
973
973
|
type SetArrayRequired<TArray extends UnknownArray, Keys, Counter extends any[] = [], Accumulator extends UnknownArray = []> = TArray extends unknown // For distributing `TArray` when it's a union
|
|
974
|
-
? keyof TArray
|
|
975
|
-
//
|
|
976
|
-
// `
|
|
977
|
-
[
|
|
978
|
-
? `${Counter['length']}` extends `${Keys & (string | number)}` // If the current index needs to be required
|
|
974
|
+
? '0' extends keyof TArray ? TArray extends readonly [(infer First)?, ...infer Rest] ?
|
|
975
|
+
// A tuple allows fewer than one element only when its first element is optional. Written in exactly this shape because equivalent ones, such as `[] extends TArray`, are several times slower.
|
|
976
|
+
// Unlike the other array loops, this one has no `any` guard above it, so the check is wrapped in tuples to stop `any` from matching both branches.
|
|
977
|
+
[TArray] extends [readonly [unknown, ...unknown[]]] ? SetArrayRequired<Rest, Keys, [...Counter, any], [...Accumulator, First]> : `${Counter['length']}` extends `${Keys & (string | number)}` // If the current index needs to be required
|
|
979
978
|
? SetArrayRequired<Rest, Keys, [...Counter, any], [...Accumulator, First]> :
|
|
980
979
|
// If the current element is optional, but it doesn't need to be required,
|
|
981
980
|
// then we can exit early, since no further elements can now be made required.
|
|
982
|
-
[...Accumulator, ...TArray] :
|
|
983
|
-
:
|
|
981
|
+
[...Accumulator, ...TArray] : never // Should never happen, since `[(infer F)?, ...infer R]` is a top-type for arrays.
|
|
982
|
+
:
|
|
983
|
+
// Exit if `TArray` is empty (e.g., []), or
|
|
984
|
+
// `TArray` contains no non-rest elements preceding the rest element (e.g., `[...string[]]` or `[...string[], string]`).
|
|
985
|
+
[...Accumulator, ...TArray] : never; // Should never happen
|
|
984
986
|
//#endregion
|
|
985
987
|
//#region src/types/options.d.ts
|
|
986
988
|
type RequireAtLeastOne<O, K extends keyof O> = { [P in K]-?: Required<Pick<O, P>> & Partial<Pick<O, Exclude<K, P>>>; }[K] & Except<O, K>;
|
|
@@ -2258,4 +2260,4 @@ type NLTranslationKey = "and" | "or" | "true" | "false" | "ruleSeparator" | "bet
|
|
|
2258
2260
|
type NLTranslations = Partial<Record<NLTranslationKey, string>>;
|
|
2259
2261
|
//#endregion
|
|
2260
2262
|
export { ValueProcessorOptions as $, DefaultRuleGroupType as $t, FormatQueryFinalOptions as A, SetRequired as An, ValidationMap as At, RQBJsonLogicStartsWith as B, RuleGroupTypeAny as Bt, DiagnosticEntry as C, OptionList as Cn, ValueSource as Ct, ExportFormat as D, ToFullOption as Dn, WithRequired as Dt, DiagnosticsStats as E, ToFlexibleOption as En, ValueSources as Et, NLTranslations as F, IsNever as Fn, DefaultRuleOrGroupArray as Ft, RuleGroupICDiagnosticsArray as G, CommonRuleAndGroupProperties as Gt, RuleDiagnosticsResult as H, RuleOrGroupArray as Ht, ParameterizedNamedSQL as I, IsAny as In, GenericizeRuleGroupType as It, RuleProcessor as J, DefaultCombinatorName as Jt, RuleGroupICDiagnosticsResult as K, DefaultCombinator as Kt, ParameterizedSQL as L, GetRuleGroupType as Lt, FormatQueryValidateRule as M, Merge as Mn, DefaultRuleGroupICArray as Mt, GroupVariantCondition as N, Simplify as Nn, DefaultRuleGroupTypeAny as Nt, ExportObjectFormats as O, ValueOption as On, QueryValidator as Ot, NLTranslationKey as P, If as Pn, DefaultRuleGroupTypeIC as Pt, ValueProcessorLegacy as Q, DefaultRuleGroupArray as Qt, RQBJsonLogic as R, GetRuleTypeFromGroupWithFieldAndOperator as Rt, ConstituentWordOrderString as S, OptionGroup as Sn, ValueEditorType as St, DiagnosticsResult as T, StringUnionToFullOptionArray as Tn, ValueSourceFullOptions as Tt, RuleGroupDiagnosticsArray as U, ToRuleGroupType as Ut, RQBJsonLogicVar as V, RuleGroupTypeIC as Vt, RuleGroupDiagnosticsResult as W, ToRuleGroupTypeIC as Wt, ValueProcessor as X, DefaultOperator as Xt, SQLPreset as Y, DefaultCombinatorNameExtended as Yt, ValueProcessorByRule as Z, DefaultOperatorName as Zt, JsonLogicSome as _, FullOptionRecord as _n, ParseNumberMethod as _t, JsonLogicGreaterThan as a, UpdateableProperties as an, CombinatorByValue as at, JsonLogicVar as b, NameLabelPair as bn, RemoveNullability as bt, JsonLogicInString as c, BaseOption as cn, FullCombinator as ct, JsonLogicNegation as d, FlexibleOptionGroup as dn, InputType as dt, DefaultRuleType as en, AccessibleDescriptionGenerator as et, JsonLogicNone as f, FlexibleOptionList as fn, MatchConfig as ft, JsonLogicRulesLogic as g, FullOptionMap as gn, OperatorByValue as gt, JsonLogicReservedOperations as h, FullOptionList as hn, Operator as ht, JsonLogicEqual as i, UpdateValueMap as in, Combinator as it, FormatQueryOptions as j, Except as jn, ValidationResult as jt, ExportOperatorMap as k, WithUnknownIndex as kn, RuleValidator as kt, JsonLogicLessThan as l, BaseOptionMap as ln, FullField as lt, JsonLogicOr as m, FullOption as mn, MatchModeOptions as mt, JsonLogicAnd as n, RuleGroupType as nn, Arity as nt, JsonLogicGreaterThanOrEqual as o, ExpressionNode as on, Field as ot, JsonLogicNotEqual as p, FlexibleOptionListProp as pn, MatchMode as pt, RuleGroupProcessor as q, DefaultCombinatorExtended as qt, JsonLogicDoubleNegation as r, RuleType as rn, Classname as rt, JsonLogicInArray as s, BaseFullOption as sn, FieldByValue as st, JsonLogicAll as t, RuleGroupArray as tn, ActionElementEventHandler as tt, JsonLogicLessThanOrEqual as u, FlexibleOption as un, FullOperator as ut, JsonLogicStrictEqual as v, GetOptionIdentifierType as vn, ParseNumbersPropConfig as vt, DiagnosticsFieldSummaryEntry as w, StringUnionToFlexibleOptionArray as wn, ValueSourceFlexibleOptions as wt, ConstituentWordOrder as x, Option as xn, ValueChangeEventHandler as xt, JsonLogicStrictNotEqual as y, GetOptionType as yn, Path as yt, RQBJsonLogicEndsWith as z, RuleGroupICArray as zt };
|
|
2261
|
-
//# sourceMappingURL=index-
|
|
2263
|
+
//# sourceMappingURL=index-BExDPYEG.d.mts.map
|
|
@@ -971,16 +971,18 @@ Required<HomomorphicPick<BaseType, Keys>>>;
|
|
|
971
971
|
Remove the optional modifier from the specified keys in an array.
|
|
972
972
|
*/
|
|
973
973
|
type SetArrayRequired<TArray extends UnknownArray, Keys, Counter extends any[] = [], Accumulator extends UnknownArray = []> = TArray extends unknown // For distributing `TArray` when it's a union
|
|
974
|
-
? keyof TArray
|
|
975
|
-
//
|
|
976
|
-
// `
|
|
977
|
-
[
|
|
978
|
-
? `${Counter['length']}` extends `${Keys & (string | number)}` // If the current index needs to be required
|
|
974
|
+
? '0' extends keyof TArray ? TArray extends readonly [(infer First)?, ...infer Rest] ?
|
|
975
|
+
// A tuple allows fewer than one element only when its first element is optional. Written in exactly this shape because equivalent ones, such as `[] extends TArray`, are several times slower.
|
|
976
|
+
// Unlike the other array loops, this one has no `any` guard above it, so the check is wrapped in tuples to stop `any` from matching both branches.
|
|
977
|
+
[TArray] extends [readonly [unknown, ...unknown[]]] ? SetArrayRequired<Rest, Keys, [...Counter, any], [...Accumulator, First]> : `${Counter['length']}` extends `${Keys & (string | number)}` // If the current index needs to be required
|
|
979
978
|
? SetArrayRequired<Rest, Keys, [...Counter, any], [...Accumulator, First]> :
|
|
980
979
|
// If the current element is optional, but it doesn't need to be required,
|
|
981
980
|
// then we can exit early, since no further elements can now be made required.
|
|
982
|
-
[...Accumulator, ...TArray] :
|
|
983
|
-
:
|
|
981
|
+
[...Accumulator, ...TArray] : never // Should never happen, since `[(infer F)?, ...infer R]` is a top-type for arrays.
|
|
982
|
+
:
|
|
983
|
+
// Exit if `TArray` is empty (e.g., []), or
|
|
984
|
+
// `TArray` contains no non-rest elements preceding the rest element (e.g., `[...string[]]` or `[...string[], string]`).
|
|
985
|
+
[...Accumulator, ...TArray] : never; // Should never happen
|
|
984
986
|
//#endregion
|
|
985
987
|
//#region src/types/options.d.ts
|
|
986
988
|
type RequireAtLeastOne<O, K extends keyof O> = { [P in K]-?: Required<Pick<O, P>> & Partial<Pick<O, Exclude<K, P>>>; }[K] & Except<O, K>;
|
|
@@ -2258,4 +2260,4 @@ type NLTranslationKey = "and" | "or" | "true" | "false" | "ruleSeparator" | "bet
|
|
|
2258
2260
|
type NLTranslations = Partial<Record<NLTranslationKey, string>>;
|
|
2259
2261
|
//#endregion
|
|
2260
2262
|
export { ValueProcessorOptions as $, DefaultRuleGroupType as $t, FormatQueryFinalOptions as A, SetRequired as An, ValidationMap as At, RQBJsonLogicStartsWith as B, RuleGroupTypeAny as Bt, DiagnosticEntry as C, OptionList as Cn, ValueSource as Ct, ExportFormat as D, ToFullOption as Dn, WithRequired as Dt, DiagnosticsStats as E, ToFlexibleOption as En, ValueSources as Et, NLTranslations as F, IsNever as Fn, DefaultRuleOrGroupArray as Ft, RuleGroupICDiagnosticsArray as G, CommonRuleAndGroupProperties as Gt, RuleDiagnosticsResult as H, RuleOrGroupArray as Ht, ParameterizedNamedSQL as I, IsAny as In, GenericizeRuleGroupType as It, RuleProcessor as J, DefaultCombinatorName as Jt, RuleGroupICDiagnosticsResult as K, DefaultCombinator as Kt, ParameterizedSQL as L, GetRuleGroupType as Lt, FormatQueryValidateRule as M, Merge as Mn, DefaultRuleGroupICArray as Mt, GroupVariantCondition as N, Simplify as Nn, DefaultRuleGroupTypeAny as Nt, ExportObjectFormats as O, ValueOption as On, QueryValidator as Ot, NLTranslationKey as P, If as Pn, DefaultRuleGroupTypeIC as Pt, ValueProcessorLegacy as Q, DefaultRuleGroupArray as Qt, RQBJsonLogic as R, GetRuleTypeFromGroupWithFieldAndOperator as Rt, ConstituentWordOrderString as S, OptionGroup as Sn, ValueEditorType as St, DiagnosticsResult as T, StringUnionToFullOptionArray as Tn, ValueSourceFullOptions as Tt, RuleGroupDiagnosticsArray as U, ToRuleGroupType as Ut, RQBJsonLogicVar as V, RuleGroupTypeIC as Vt, RuleGroupDiagnosticsResult as W, ToRuleGroupTypeIC as Wt, ValueProcessor as X, DefaultOperator as Xt, SQLPreset as Y, DefaultCombinatorNameExtended as Yt, ValueProcessorByRule as Z, DefaultOperatorName as Zt, JsonLogicSome as _, FullOptionRecord as _n, ParseNumberMethod as _t, JsonLogicGreaterThan as a, UpdateableProperties as an, CombinatorByValue as at, JsonLogicVar as b, NameLabelPair as bn, RemoveNullability as bt, JsonLogicInString as c, BaseOption as cn, FullCombinator as ct, JsonLogicNegation as d, FlexibleOptionGroup as dn, InputType as dt, DefaultRuleType as en, AccessibleDescriptionGenerator as et, JsonLogicNone as f, FlexibleOptionList as fn, MatchConfig as ft, JsonLogicRulesLogic as g, FullOptionMap as gn, OperatorByValue as gt, JsonLogicReservedOperations as h, FullOptionList as hn, Operator as ht, JsonLogicEqual as i, UpdateValueMap as in, Combinator as it, FormatQueryOptions as j, Except as jn, ValidationResult as jt, ExportOperatorMap as k, WithUnknownIndex as kn, RuleValidator as kt, JsonLogicLessThan as l, BaseOptionMap as ln, FullField as lt, JsonLogicOr as m, FullOption as mn, MatchModeOptions as mt, JsonLogicAnd as n, RuleGroupType as nn, Arity as nt, JsonLogicGreaterThanOrEqual as o, ExpressionNode as on, Field as ot, JsonLogicNotEqual as p, FlexibleOptionListProp as pn, MatchMode as pt, RuleGroupProcessor as q, DefaultCombinatorExtended as qt, JsonLogicDoubleNegation as r, RuleType as rn, Classname as rt, JsonLogicInArray as s, BaseFullOption as sn, FieldByValue as st, JsonLogicAll as t, RuleGroupArray as tn, ActionElementEventHandler as tt, JsonLogicLessThanOrEqual as u, FlexibleOption as un, FullOperator as ut, JsonLogicStrictEqual as v, GetOptionIdentifierType as vn, ParseNumbersPropConfig as vt, DiagnosticsFieldSummaryEntry as w, StringUnionToFlexibleOptionArray as wn, ValueSourceFlexibleOptions as wt, ConstituentWordOrder as x, Option as xn, ValueChangeEventHandler as xt, JsonLogicStrictNotEqual as y, GetOptionType as yn, Path as yt, RQBJsonLogicEndsWith as z, RuleGroupICArray as zt };
|
|
2261
|
-
//# sourceMappingURL=index-
|
|
2263
|
+
//# sourceMappingURL=index-BExDPYEG.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ValueProcessorOptions, An as SetRequired, Bt as RuleGroupTypeAny, D as ExportFormat, F as NLTranslations, I as ParameterizedNamedSQL, J as RuleProcessor, L as ParameterizedSQL, N as GroupVariantCondition, O as ExportObjectFormats, P as NLTranslationKey, Q as ValueProcessorLegacy, R as RQBJsonLogic, T as DiagnosticsResult, Y as SQLPreset, Z as ValueProcessorByRule, j as FormatQueryOptions, k as ExportOperatorMap, q as RuleGroupProcessor, rn as RuleType, x as ConstituentWordOrder } from "./index-
|
|
1
|
+
import { $ as ValueProcessorOptions, An as SetRequired, Bt as RuleGroupTypeAny, D as ExportFormat, F as NLTranslations, I as ParameterizedNamedSQL, J as RuleProcessor, L as ParameterizedSQL, N as GroupVariantCondition, O as ExportObjectFormats, P as NLTranslationKey, Q as ValueProcessorLegacy, R as RQBJsonLogic, T as DiagnosticsResult, Y as SQLPreset, Z as ValueProcessorByRule, j as FormatQueryOptions, k as ExportOperatorMap, q as RuleGroupProcessor, rn as RuleType, x as ConstituentWordOrder } from "./index-BExDPYEG.mjs";
|
|
2
2
|
//#region src/utils/formatQuery/defaultRuleProcessorCEL.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Default rule processor used by {@link formatQuery} for "cel" format.
|
|
@@ -894,4 +894,4 @@ declare const defaultValueProcessorMongoDBByRule: RuleProcessor;
|
|
|
894
894
|
declare const defaultValueProcessorSpELByRule: RuleProcessor;
|
|
895
895
|
//#endregion
|
|
896
896
|
export { defaultRuleProcessorDrizzle as $, withParamPrefix as A, sparqlVar as B, normalizeConstituentWordOrder as C, cypherCombinatorMap as Ct, shouldRenderAsNumber as D, defaultRuleProcessorSpEL as Dt, processMatchMode as E, defaultValueProcessorByRule as Et, defaultValueProcessorNL as F, defaultOperatorProcessorNL as G, defaultRuleProcessorPrisma as H, defaultRuleProcessorTanStackDB as I, defaultRuleProcessorLDAP as J, defaultRuleProcessorNL as K, defaultOperatorProcessorSQL as L, formatQuery as M, formatQueryOptionPresets as N, stripParamPrefix as O, defaultRuleProcessorMongoDB as Ot, sqlDialectPresets as P, defaultRuleProcessorElasticSearch as Q, defaultRuleProcessorSQL as R, mongoOperators as S, defaultRuleGroupProcessorDrizzle as St, prismaOperators as T, defaultRuleGroupProcessorCEL as Tt, defaultRuleProcessorParameterized as U, defaultRuleProcessorSequelize as V, defaultExportOperatorMap as W, defaultRuleProcessorJSONata as X, defaultRuleProcessorJsonLogic as Y, defaultRuleProcessorGremlin as Z, getSubqueryElementAlias as _, defaultRuleGroupProcessorJSONata as _t, defaultValueProcessorCELByRule as a, defaultRuleGroupProcessorSPARQL as at, jsonLogicAdditionalOperators as b, DrizzleOperatorsLike as bt, bigIntJsonParseReviver as c, defaultRuleGroupProcessorPrisma as ct, defaultNLTranslations as d, defaultRuleGroupProcessorNL as dt, defaultRuleProcessorCypher as et, getLikeWildcards as f, defaultRuleGroupProcessorMongoDBQuery as ft, getSQLConcat as g, defaultRuleGroupProcessorJsonLogic as gt, getQuotedFieldName as h, defaultRuleGroupProcessorLDAP as ht, defaultValueProcessor as i, defaultRuleGroupProcessorSpEL as it, wrapLikeFragment as j, subqueryElementAliasBase as k, defaultRuleProcessorCEL as kt, bigIntJsonStringifyReplacer as l, prismaFallback as lt, getQuoteFieldNamesWithArray as m, defaultRuleGroupProcessorMongoDB as mt, defaultMongoDBValueProcessor as n, defaultRuleGroupProcessorTanStackDB as nt, defaultValueProcessorMongoDBByRule as o, SequelizeWhereOptionsLike as ot, getNLTranslataion as p, mongoDbFallback as pt, defaultRuleProcessorMongoDBQuery as q, defaultSpELValueProcessor as r, defaultRuleGroupProcessorSQL as rt, defaultValueProcessorSpELByRule as s, defaultRuleGroupProcessorSequelize as st, defaultCELValueProcessor as t, defaultRuleGroupProcessorDiagnostics as tt, celCombinatorMap as u, defaultRuleGroupProcessorParameterized as ut, isValidValue as v, defaultRuleGroupProcessorGremlin as vt, numerifyValues as w, defaultRuleGroupProcessorCypher as wt, mapSQLOperator as x, DrizzleWhereCallback as xt, isValueProcessorLegacy as y, defaultRuleGroupProcessorElasticSearch as yt, defaultRuleProcessorSPARQL as z };
|
|
897
|
-
//# sourceMappingURL=index-
|
|
897
|
+
//# sourceMappingURL=index-icv8DBhg.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ValueProcessorOptions, An as SetRequired, Bt as RuleGroupTypeAny, D as ExportFormat, F as NLTranslations, I as ParameterizedNamedSQL, J as RuleProcessor, L as ParameterizedSQL, N as GroupVariantCondition, O as ExportObjectFormats, P as NLTranslationKey, Q as ValueProcessorLegacy, R as RQBJsonLogic, T as DiagnosticsResult, Y as SQLPreset, Z as ValueProcessorByRule, j as FormatQueryOptions, k as ExportOperatorMap, q as RuleGroupProcessor, rn as RuleType, x as ConstituentWordOrder } from "./index-
|
|
1
|
+
import { $ as ValueProcessorOptions, An as SetRequired, Bt as RuleGroupTypeAny, D as ExportFormat, F as NLTranslations, I as ParameterizedNamedSQL, J as RuleProcessor, L as ParameterizedSQL, N as GroupVariantCondition, O as ExportObjectFormats, P as NLTranslationKey, Q as ValueProcessorLegacy, R as RQBJsonLogic, T as DiagnosticsResult, Y as SQLPreset, Z as ValueProcessorByRule, j as FormatQueryOptions, k as ExportOperatorMap, q as RuleGroupProcessor, rn as RuleType, x as ConstituentWordOrder } from "./index-BExDPYEG.js";
|
|
2
2
|
//#region src/utils/formatQuery/defaultRuleProcessorCEL.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Default rule processor used by {@link formatQuery} for "cel" format.
|
|
@@ -894,4 +894,4 @@ declare const defaultValueProcessorMongoDBByRule: RuleProcessor;
|
|
|
894
894
|
declare const defaultValueProcessorSpELByRule: RuleProcessor;
|
|
895
895
|
//#endregion
|
|
896
896
|
export { defaultRuleProcessorDrizzle as $, withParamPrefix as A, sparqlVar as B, normalizeConstituentWordOrder as C, cypherCombinatorMap as Ct, shouldRenderAsNumber as D, defaultRuleProcessorSpEL as Dt, processMatchMode as E, defaultValueProcessorByRule as Et, defaultValueProcessorNL as F, defaultOperatorProcessorNL as G, defaultRuleProcessorPrisma as H, defaultRuleProcessorTanStackDB as I, defaultRuleProcessorLDAP as J, defaultRuleProcessorNL as K, defaultOperatorProcessorSQL as L, formatQuery as M, formatQueryOptionPresets as N, stripParamPrefix as O, defaultRuleProcessorMongoDB as Ot, sqlDialectPresets as P, defaultRuleProcessorElasticSearch as Q, defaultRuleProcessorSQL as R, mongoOperators as S, defaultRuleGroupProcessorDrizzle as St, prismaOperators as T, defaultRuleGroupProcessorCEL as Tt, defaultRuleProcessorParameterized as U, defaultRuleProcessorSequelize as V, defaultExportOperatorMap as W, defaultRuleProcessorJSONata as X, defaultRuleProcessorJsonLogic as Y, defaultRuleProcessorGremlin as Z, getSubqueryElementAlias as _, defaultRuleGroupProcessorJSONata as _t, defaultValueProcessorCELByRule as a, defaultRuleGroupProcessorSPARQL as at, jsonLogicAdditionalOperators as b, DrizzleOperatorsLike as bt, bigIntJsonParseReviver as c, defaultRuleGroupProcessorPrisma as ct, defaultNLTranslations as d, defaultRuleGroupProcessorNL as dt, defaultRuleProcessorCypher as et, getLikeWildcards as f, defaultRuleGroupProcessorMongoDBQuery as ft, getSQLConcat as g, defaultRuleGroupProcessorJsonLogic as gt, getQuotedFieldName as h, defaultRuleGroupProcessorLDAP as ht, defaultValueProcessor as i, defaultRuleGroupProcessorSpEL as it, wrapLikeFragment as j, subqueryElementAliasBase as k, defaultRuleProcessorCEL as kt, bigIntJsonStringifyReplacer as l, prismaFallback as lt, getQuoteFieldNamesWithArray as m, defaultRuleGroupProcessorMongoDB as mt, defaultMongoDBValueProcessor as n, defaultRuleGroupProcessorTanStackDB as nt, defaultValueProcessorMongoDBByRule as o, SequelizeWhereOptionsLike as ot, getNLTranslataion as p, mongoDbFallback as pt, defaultRuleProcessorMongoDBQuery as q, defaultSpELValueProcessor as r, defaultRuleGroupProcessorSQL as rt, defaultValueProcessorSpELByRule as s, defaultRuleGroupProcessorSequelize as st, defaultCELValueProcessor as t, defaultRuleGroupProcessorDiagnostics as tt, celCombinatorMap as u, defaultRuleGroupProcessorParameterized as ut, isValidValue as v, defaultRuleGroupProcessorGremlin as vt, numerifyValues as w, defaultRuleGroupProcessorCypher as wt, mapSQLOperator as x, DrizzleWhereCallback as xt, isValueProcessorLegacy as y, defaultRuleGroupProcessorElasticSearch as yt, defaultRuleProcessorSPARQL as z };
|
|
897
|
-
//# sourceMappingURL=index-
|
|
897
|
+
//# sourceMappingURL=index-yXGVO31H.d.ts.map
|
package/dist/parseCEL.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as DefaultRuleGroupType, Jt as DefaultCombinatorName, Pt as DefaultRuleGroupTypeIC, Vt as RuleGroupTypeIC, Zt as DefaultOperatorName, jn as Except, nn as RuleGroupType, on as ExpressionNode, rn as RuleType } from "./index-
|
|
2
|
-
import { t as ParserCommonOptions } from "./import-
|
|
1
|
+
import { $t as DefaultRuleGroupType, Jt as DefaultCombinatorName, Pt as DefaultRuleGroupTypeIC, Vt as RuleGroupTypeIC, Zt as DefaultOperatorName, jn as Except, nn as RuleGroupType, on as ExpressionNode, rn as RuleType } from "./index-BExDPYEG.mjs";
|
|
2
|
+
import { t as ParserCommonOptions } from "./import-C9el4B_K.mjs";
|
|
3
3
|
//#region src/utils/parseCEL/types.d.ts
|
|
4
4
|
export type CELExpressionType = "Addition" | "BooleanLiteral" | "BytesLiteral" | "ConditionalAnd" | "ConditionalExpr" | "ConditionalOr" | "Division" | "DynamicPropertyAccessor" | "ExpressionGroup" | "ExpressionList" | "FieldInit" | "FieldInits" | "MessageInit" | "FloatLiteral" | "FunctionCall" | "Identifier" | "IntegerLiteral" | "List" | "Map" | "MapInit" | "MapInits" | "Member" | "Modulo" | "Multiplication" | "Negation" | "Negative" | "NullLiteral" | "Property" | "Relation" | "StringLiteral" | "Subtraction" | "Unary" | "UnsignedIntegerLiteral" | "LikeExpression" | "SubqueryExpression";
|
|
5
5
|
export type CELRelop = "==" | ">=" | ">" | "<=" | "<" | "!=" | "in";
|
package/dist/parseCEL.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as DefaultRuleGroupType, Jt as DefaultCombinatorName, Pt as DefaultRuleGroupTypeIC, Vt as RuleGroupTypeIC, Zt as DefaultOperatorName, jn as Except, nn as RuleGroupType, on as ExpressionNode, rn as RuleType } from "./index-
|
|
2
|
-
import { t as ParserCommonOptions } from "./import-
|
|
1
|
+
import { $t as DefaultRuleGroupType, Jt as DefaultCombinatorName, Pt as DefaultRuleGroupTypeIC, Vt as RuleGroupTypeIC, Zt as DefaultOperatorName, jn as Except, nn as RuleGroupType, on as ExpressionNode, rn as RuleType } from "./index-BExDPYEG.js";
|
|
2
|
+
import { t as ParserCommonOptions } from "./import-BCkipOTY.js";
|
|
3
3
|
//#region src/utils/parseCEL/types.d.ts
|
|
4
4
|
export type CELExpressionType = "Addition" | "BooleanLiteral" | "BytesLiteral" | "ConditionalAnd" | "ConditionalExpr" | "ConditionalOr" | "Division" | "DynamicPropertyAccessor" | "ExpressionGroup" | "ExpressionList" | "FieldInit" | "FieldInits" | "MessageInit" | "FloatLiteral" | "FunctionCall" | "Identifier" | "IntegerLiteral" | "List" | "Map" | "MapInit" | "MapInits" | "Member" | "Modulo" | "Multiplication" | "Negation" | "Negative" | "NullLiteral" | "Property" | "Relation" | "StringLiteral" | "Subtraction" | "Unary" | "UnsignedIntegerLiteral" | "LikeExpression" | "SubqueryExpression";
|
|
5
5
|
export type CELRelop = "==" | ">=" | ">" | "<=" | "<" | "!=" | "in";
|
package/dist/parseCypher.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC } from "./index-
|
|
1
|
+
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC } from "./index-BExDPYEG.mjs";
|
|
2
2
|
//#region src/utils/parseCypher/parseCypher.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Options for {@link parseCypher}.
|
package/dist/parseCypher.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC } from "./index-
|
|
1
|
+
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC } from "./index-BExDPYEG.js";
|
|
2
2
|
//#region src/utils/parseCypher/parseCypher.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Options for {@link parseCypher}.
|
package/dist/parseGremlin.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC } from "./index-
|
|
1
|
+
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC } from "./index-BExDPYEG.mjs";
|
|
2
2
|
//#region src/utils/parseGremlin/parseGremlin.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Options for {@link parseGremlin}.
|
package/dist/parseGremlin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC } from "./index-
|
|
1
|
+
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC } from "./index-BExDPYEG.js";
|
|
2
2
|
//#region src/utils/parseGremlin/parseGremlin.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Options for {@link parseGremlin}.
|
package/dist/parseJSONata.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as DefaultRuleGroupType, Mn as Merge, Pt as DefaultRuleGroupTypeIC, jn as Except, on as ExpressionNode } from "./index-
|
|
2
|
-
import { t as ParserCommonOptions } from "./import-
|
|
1
|
+
import { $t as DefaultRuleGroupType, Mn as Merge, Pt as DefaultRuleGroupTypeIC, jn as Except, on as ExpressionNode } from "./index-BExDPYEG.mjs";
|
|
2
|
+
import { t as ParserCommonOptions } from "./import-C9el4B_K.mjs";
|
|
3
3
|
//#region ../../node_modules/type-fest/source/override-properties.d.ts
|
|
4
4
|
/**
|
|
5
5
|
Override existing properties of the given type. Similar to `Merge`, but enforces that the original type has the properties you want to override.
|
package/dist/parseJSONata.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as DefaultRuleGroupType, Mn as Merge, Pt as DefaultRuleGroupTypeIC, jn as Except, on as ExpressionNode } from "./index-
|
|
2
|
-
import { t as ParserCommonOptions } from "./import-
|
|
1
|
+
import { $t as DefaultRuleGroupType, Mn as Merge, Pt as DefaultRuleGroupTypeIC, jn as Except, on as ExpressionNode } from "./index-BExDPYEG.js";
|
|
2
|
+
import { t as ParserCommonOptions } from "./import-BCkipOTY.js";
|
|
3
3
|
//#region ../../node_modules/type-fest/source/override-properties.d.ts
|
|
4
4
|
/**
|
|
5
5
|
Override existing properties of the given type. Similar to `Merge`, but enforces that the original type has the properties you want to override.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as DefaultRuleGroupType, Bt as RuleGroupTypeAny, Pt as DefaultRuleGroupTypeIC, R as RQBJsonLogic, V as RQBJsonLogicVar, g as JsonLogicRulesLogic, jn as Except, l as JsonLogicLessThan, on as ExpressionNode, rn as RuleType, u as JsonLogicLessThanOrEqual } from "./index-
|
|
2
|
-
import { t as ParserCommonOptions } from "./import-
|
|
1
|
+
import { $t as DefaultRuleGroupType, Bt as RuleGroupTypeAny, Pt as DefaultRuleGroupTypeIC, R as RQBJsonLogic, V as RQBJsonLogicVar, g as JsonLogicRulesLogic, jn as Except, l as JsonLogicLessThan, on as ExpressionNode, rn as RuleType, u as JsonLogicLessThanOrEqual } from "./index-BExDPYEG.mjs";
|
|
2
|
+
import { t as ParserCommonOptions } from "./import-C9el4B_K.mjs";
|
|
3
3
|
//#region src/utils/parseJsonLogic/types.d.ts
|
|
4
4
|
export interface JsonLogicBetweenExclusive extends JsonLogicLessThan {
|
|
5
5
|
"<": [JsonLogicRulesLogic, JsonLogicRulesLogic, JsonLogicRulesLogic];
|
package/dist/parseJsonLogic.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as DefaultRuleGroupType, Bt as RuleGroupTypeAny, Pt as DefaultRuleGroupTypeIC, R as RQBJsonLogic, V as RQBJsonLogicVar, g as JsonLogicRulesLogic, jn as Except, l as JsonLogicLessThan, on as ExpressionNode, rn as RuleType, u as JsonLogicLessThanOrEqual } from "./index-
|
|
2
|
-
import { t as ParserCommonOptions } from "./import-
|
|
1
|
+
import { $t as DefaultRuleGroupType, Bt as RuleGroupTypeAny, Pt as DefaultRuleGroupTypeIC, R as RQBJsonLogic, V as RQBJsonLogicVar, g as JsonLogicRulesLogic, jn as Except, l as JsonLogicLessThan, on as ExpressionNode, rn as RuleType, u as JsonLogicLessThanOrEqual } from "./index-BExDPYEG.js";
|
|
2
|
+
import { t as ParserCommonOptions } from "./import-BCkipOTY.js";
|
|
3
3
|
//#region src/utils/parseJsonLogic/types.d.ts
|
|
4
4
|
export interface JsonLogicBetweenExclusive extends JsonLogicLessThan {
|
|
5
5
|
"<": [JsonLogicRulesLogic, JsonLogicRulesLogic, JsonLogicRulesLogic];
|
package/dist/parseMongoDB.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC, jn as Except, nn as RuleGroupType, on as ExpressionNode, rn as RuleType } from "./index-
|
|
2
|
-
import { t as ParserCommonOptions } from "./import-
|
|
1
|
+
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC, jn as Except, nn as RuleGroupType, on as ExpressionNode, rn as RuleType } from "./index-BExDPYEG.mjs";
|
|
2
|
+
import { t as ParserCommonOptions } from "./import-C9el4B_K.mjs";
|
|
3
3
|
//#region src/utils/parseMongoDB/types.d.ts
|
|
4
4
|
export type MongoDbSupportedOperators = "$and" | "$or" | "$not" | "$eq" | "$gt" | "$gte" | "$in" | "$lt" | "$lte" | "$ne" | "$nin" | "$regex" | "$expr";
|
|
5
5
|
/**
|
package/dist/parseMongoDB.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC, jn as Except, nn as RuleGroupType, on as ExpressionNode, rn as RuleType } from "./index-
|
|
2
|
-
import { t as ParserCommonOptions } from "./import-
|
|
1
|
+
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC, jn as Except, nn as RuleGroupType, on as ExpressionNode, rn as RuleType } from "./index-BExDPYEG.js";
|
|
2
|
+
import { t as ParserCommonOptions } from "./import-BCkipOTY.js";
|
|
3
3
|
//#region src/utils/parseMongoDB/types.d.ts
|
|
4
4
|
export type MongoDbSupportedOperators = "$and" | "$or" | "$not" | "$eq" | "$gt" | "$gte" | "$in" | "$lt" | "$lte" | "$ne" | "$nin" | "$regex" | "$expr";
|
|
5
5
|
/**
|
package/dist/parseSPARQL.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC } from "./index-
|
|
1
|
+
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC } from "./index-BExDPYEG.mjs";
|
|
2
2
|
//#region src/utils/parseSPARQL/parseSPARQL.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Options for {@link parseSPARQL}.
|
package/dist/parseSPARQL.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC } from "./index-
|
|
1
|
+
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC } from "./index-BExDPYEG.js";
|
|
2
2
|
//#region src/utils/parseSPARQL/parseSPARQL.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Options for {@link parseSPARQL}.
|
package/dist/parseSQL.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC, Yt as DefaultCombinatorNameExtended, Zt as DefaultOperatorName, jn as Except, on as ExpressionNode } from "./index-
|
|
2
|
-
import { t as ParserCommonOptions } from "./import-
|
|
1
|
+
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC, Yt as DefaultCombinatorNameExtended, Zt as DefaultOperatorName, jn as Except, on as ExpressionNode } from "./index-BExDPYEG.mjs";
|
|
2
|
+
import { t as ParserCommonOptions } from "./import-C9el4B_K.mjs";
|
|
3
3
|
//#region src/utils/parseSQL/types.d.ts
|
|
4
4
|
type AnyCase<T extends string> = string extends T ? string : T extends `${infer F1}${infer F2}${infer R}` ? `${Uppercase<F1> | Lowercase<F1>}${Uppercase<F2> | Lowercase<F2>}${AnyCase<R>}` : T extends `${infer F}${infer R}` ? `${Uppercase<F> | Lowercase<F>}${AnyCase<R>}` : "";
|
|
5
5
|
type TokenType = "AndExpression" | "BetweenPredicate" | "BitExpression" | "Boolean" | "BooleanExtra" | "CaseWhen" | "ComparisonBooleanPrimary" | "ComparisonSubQueryBooleanPrimary" | "ContainsExpr" | "EndsWithExpr" | "ExpressionList" | "ForceIndexHint" | "ForOptIndexHint" | "FunctionCall" | "FunctionCallParam" | "GroupBy" | "GroupByOrderByItem" | "Identifier" | "IdentifierExpr" | "IdentifierList" | "IgnoreIndexHint" | "IndexHintList" | "InExpressionListPredicate" | "InnerCrossJoinTable" | "InSubQueryPredicate" | "IsExpression" | "IsNullBooleanPrimary" | "LeftRightJoinTable" | "LikePredicate" | "Limit" | "Main" | "NaturalJoinTable" | "NotExpression" | "Null" | "Number" | "OnJoinCondition" | "OrderBy" | "OrExpression" | "Partitions" | "PlaceHolder" | "Prefix" | "RegexpPredicate" | "Select" | "SelectExpr" | "SelectParenthesized" | "SimpleExprParentheses" | "SoundsLikePredicate" | "StartsWithExpr" | "StraightJoinTable" | "String" | "SubQuery" | "TableFactor" | "TableReference" | "TableReferences" | "Union" | "UseIndexHint" | "UsingJoinCondition" | "WhenThenList" | "XorExpression";
|
package/dist/parseSQL.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC, Yt as DefaultCombinatorNameExtended, Zt as DefaultOperatorName, jn as Except, on as ExpressionNode } from "./index-
|
|
2
|
-
import { t as ParserCommonOptions } from "./import-
|
|
1
|
+
import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC, Yt as DefaultCombinatorNameExtended, Zt as DefaultOperatorName, jn as Except, on as ExpressionNode } from "./index-BExDPYEG.js";
|
|
2
|
+
import { t as ParserCommonOptions } from "./import-BCkipOTY.js";
|
|
3
3
|
//#region src/utils/parseSQL/types.d.ts
|
|
4
4
|
type AnyCase<T extends string> = string extends T ? string : T extends `${infer F1}${infer F2}${infer R}` ? `${Uppercase<F1> | Lowercase<F1>}${Uppercase<F2> | Lowercase<F2>}${AnyCase<R>}` : T extends `${infer F}${infer R}` ? `${Uppercase<F> | Lowercase<F>}${AnyCase<R>}` : "";
|
|
5
5
|
type TokenType = "AndExpression" | "BetweenPredicate" | "BitExpression" | "Boolean" | "BooleanExtra" | "CaseWhen" | "ComparisonBooleanPrimary" | "ComparisonSubQueryBooleanPrimary" | "ContainsExpr" | "EndsWithExpr" | "ExpressionList" | "ForceIndexHint" | "ForOptIndexHint" | "FunctionCall" | "FunctionCallParam" | "GroupBy" | "GroupByOrderByItem" | "Identifier" | "IdentifierExpr" | "IdentifierList" | "IgnoreIndexHint" | "IndexHintList" | "InExpressionListPredicate" | "InnerCrossJoinTable" | "InSubQueryPredicate" | "IsExpression" | "IsNullBooleanPrimary" | "LeftRightJoinTable" | "LikePredicate" | "Limit" | "Main" | "NaturalJoinTable" | "NotExpression" | "Null" | "Number" | "OnJoinCondition" | "OrderBy" | "OrExpression" | "Partitions" | "PlaceHolder" | "Prefix" | "RegexpPredicate" | "Select" | "SelectExpr" | "SelectParenthesized" | "SimpleExprParentheses" | "SoundsLikePredicate" | "StartsWithExpr" | "StraightJoinTable" | "String" | "SubQuery" | "TableFactor" | "TableReference" | "TableReferences" | "Union" | "UseIndexHint" | "UsingJoinCondition" | "WhenThenList" | "XorExpression";
|
package/dist/parseSpEL.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as DefaultRuleGroupType, Jt as DefaultCombinatorName, Pt as DefaultRuleGroupTypeIC, Zt as DefaultOperatorName, jn as Except, on as ExpressionNode } from "./index-
|
|
2
|
-
import { t as ParserCommonOptions } from "./import-
|
|
1
|
+
import { $t as DefaultRuleGroupType, Jt as DefaultCombinatorName, Pt as DefaultRuleGroupTypeIC, Zt as DefaultOperatorName, jn as Except, on as ExpressionNode } from "./index-BExDPYEG.mjs";
|
|
2
|
+
import { t as ParserCommonOptions } from "./import-C9el4B_K.mjs";
|
|
3
3
|
//#region src/utils/parseSpEL/types.d.ts
|
|
4
4
|
export type SpELNodeType = "invalid" | SpELOperationType | SpELPrimitiveType | SpELRelOp | SpELIdentifierType | "assign" | "beanref" | "constructorref" | "elvis" | "function" | "identifier" | "indexer" | "list" | "map" | "method" | "between" | "instanceof" | "matches" | "projection" | "qualifiedidentifier" | "selection" | "ternary" | "typeref";
|
|
5
5
|
type SpELOperationType = "op-and" | "op-dec" | "op-divide" | "op-eq" | "op-ge" | "op-gt" | "op-inc" | "op-le" | "op-lt" | "op-minus" | "op-modulus" | "op-multiply" | "op-ne" | "op-not" | "op-or" | "op-plus" | "op-power";
|
package/dist/parseSpEL.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as DefaultRuleGroupType, Jt as DefaultCombinatorName, Pt as DefaultRuleGroupTypeIC, Zt as DefaultOperatorName, jn as Except, on as ExpressionNode } from "./index-
|
|
2
|
-
import { t as ParserCommonOptions } from "./import-
|
|
1
|
+
import { $t as DefaultRuleGroupType, Jt as DefaultCombinatorName, Pt as DefaultRuleGroupTypeIC, Zt as DefaultOperatorName, jn as Except, on as ExpressionNode } from "./index-BExDPYEG.js";
|
|
2
|
+
import { t as ParserCommonOptions } from "./import-BCkipOTY.js";
|
|
3
3
|
//#region src/utils/parseSpEL/types.d.ts
|
|
4
4
|
export type SpELNodeType = "invalid" | SpELOperationType | SpELPrimitiveType | SpELRelOp | SpELIdentifierType | "assign" | "beanref" | "constructorref" | "elvis" | "function" | "identifier" | "indexer" | "list" | "map" | "method" | "between" | "instanceof" | "matches" | "projection" | "qualifiedidentifier" | "selection" | "ternary" | "typeref";
|
|
5
5
|
type SpELOperationType = "op-and" | "op-dec" | "op-divide" | "op-eq" | "op-ge" | "op-gt" | "op-inc" | "op-le" | "op-lt" | "op-minus" | "op-modulus" | "op-multiply" | "op-ne" | "op-not" | "op-or" | "op-plus" | "op-power";
|
|
@@ -1239,16 +1239,18 @@ Required<HomomorphicPick<BaseType, Keys>>>;
|
|
|
1239
1239
|
Remove the optional modifier from the specified keys in an array.
|
|
1240
1240
|
*/
|
|
1241
1241
|
type SetArrayRequired<TArray extends UnknownArray, Keys, Counter extends any[] = [], Accumulator extends UnknownArray = []> = TArray extends unknown // For distributing `TArray` when it's a union
|
|
1242
|
-
? keyof TArray
|
|
1243
|
-
//
|
|
1244
|
-
// `
|
|
1245
|
-
[
|
|
1246
|
-
? `${Counter['length']}` extends `${Keys & (string | number)}` // If the current index needs to be required
|
|
1242
|
+
? '0' extends keyof TArray ? TArray extends readonly [(infer First)?, ...infer Rest] ?
|
|
1243
|
+
// A tuple allows fewer than one element only when its first element is optional. Written in exactly this shape because equivalent ones, such as `[] extends TArray`, are several times slower.
|
|
1244
|
+
// Unlike the other array loops, this one has no `any` guard above it, so the check is wrapped in tuples to stop `any` from matching both branches.
|
|
1245
|
+
[TArray] extends [readonly [unknown, ...unknown[]]] ? SetArrayRequired<Rest, Keys, [...Counter, any], [...Accumulator, First]> : `${Counter['length']}` extends `${Keys & (string | number)}` // If the current index needs to be required
|
|
1247
1246
|
? SetArrayRequired<Rest, Keys, [...Counter, any], [...Accumulator, First]> :
|
|
1248
1247
|
// If the current element is optional, but it doesn't need to be required,
|
|
1249
1248
|
// then we can exit early, since no further elements can now be made required.
|
|
1250
|
-
[...Accumulator, ...TArray] :
|
|
1251
|
-
:
|
|
1249
|
+
[...Accumulator, ...TArray] : never // Should never happen, since `[(infer F)?, ...infer R]` is a top-type for arrays.
|
|
1250
|
+
:
|
|
1251
|
+
// Exit if `TArray` is empty (e.g., []), or
|
|
1252
|
+
// `TArray` contains no non-rest elements preceding the rest element (e.g., `[...string[]]` or `[...string[], string]`).
|
|
1253
|
+
[...Accumulator, ...TArray] : never; // Should never happen
|
|
1252
1254
|
//#endregion
|
|
1253
1255
|
//#region src/types/options.d.ts
|
|
1254
1256
|
type RequireAtLeastOne<O, K extends keyof O> = { [P in K]-?: Required<Pick<O, P>> & Partial<Pick<O, Exclude<K, P>>>; }[K] & Except<O, K>;
|
|
@@ -1239,16 +1239,18 @@ Required<HomomorphicPick<BaseType, Keys>>>;
|
|
|
1239
1239
|
Remove the optional modifier from the specified keys in an array.
|
|
1240
1240
|
*/
|
|
1241
1241
|
type SetArrayRequired<TArray extends UnknownArray, Keys, Counter extends any[] = [], Accumulator extends UnknownArray = []> = TArray extends unknown // For distributing `TArray` when it's a union
|
|
1242
|
-
? keyof TArray
|
|
1243
|
-
//
|
|
1244
|
-
// `
|
|
1245
|
-
[
|
|
1246
|
-
? `${Counter['length']}` extends `${Keys & (string | number)}` // If the current index needs to be required
|
|
1242
|
+
? '0' extends keyof TArray ? TArray extends readonly [(infer First)?, ...infer Rest] ?
|
|
1243
|
+
// A tuple allows fewer than one element only when its first element is optional. Written in exactly this shape because equivalent ones, such as `[] extends TArray`, are several times slower.
|
|
1244
|
+
// Unlike the other array loops, this one has no `any` guard above it, so the check is wrapped in tuples to stop `any` from matching both branches.
|
|
1245
|
+
[TArray] extends [readonly [unknown, ...unknown[]]] ? SetArrayRequired<Rest, Keys, [...Counter, any], [...Accumulator, First]> : `${Counter['length']}` extends `${Keys & (string | number)}` // If the current index needs to be required
|
|
1247
1246
|
? SetArrayRequired<Rest, Keys, [...Counter, any], [...Accumulator, First]> :
|
|
1248
1247
|
// If the current element is optional, but it doesn't need to be required,
|
|
1249
1248
|
// then we can exit early, since no further elements can now be made required.
|
|
1250
|
-
[...Accumulator, ...TArray] :
|
|
1251
|
-
:
|
|
1249
|
+
[...Accumulator, ...TArray] : never // Should never happen, since `[(infer F)?, ...infer R]` is a top-type for arrays.
|
|
1250
|
+
:
|
|
1251
|
+
// Exit if `TArray` is empty (e.g., []), or
|
|
1252
|
+
// `TArray` contains no non-rest elements preceding the rest element (e.g., `[...string[]]` or `[...string[], string]`).
|
|
1253
|
+
[...Accumulator, ...TArray] : never; // Should never happen
|
|
1252
1254
|
//#endregion
|
|
1253
1255
|
//#region src/types/options.d.ts
|
|
1254
1256
|
type RequireAtLeastOne<O, K extends keyof O> = { [P in K]-?: Required<Pick<O, P>> & Partial<Pick<O, Exclude<K, P>>>; }[K] & Except<O, K>;
|
|
@@ -1540,7 +1540,7 @@ const signatureOf = (prev, next) => signatureOfNode(prev, next, "", -1);
|
|
|
1540
1540
|
*/
|
|
1541
1541
|
const shouldCoalesce = (prevSig, nextSig, prevAt, now, coalesceMs = 500) => nextSig !== "~structural" && nextSig === prevSig && now >= prevAt && now - prevAt < coalesceMs;
|
|
1542
1542
|
//#endregion
|
|
1543
|
-
//#region \0@oxc-project+runtime@0.
|
|
1543
|
+
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/typeof.js
|
|
1544
1544
|
function _typeof(o) {
|
|
1545
1545
|
"@babel/helpers - typeof";
|
|
1546
1546
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -1550,7 +1550,7 @@ function _typeof(o) {
|
|
|
1550
1550
|
}, _typeof(o);
|
|
1551
1551
|
}
|
|
1552
1552
|
//#endregion
|
|
1553
|
-
//#region \0@oxc-project+runtime@0.
|
|
1553
|
+
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/toPrimitive.js
|
|
1554
1554
|
function toPrimitive(t, r) {
|
|
1555
1555
|
if ("object" != _typeof(t) || !t) return t;
|
|
1556
1556
|
var e = t[Symbol.toPrimitive];
|
|
@@ -1562,13 +1562,13 @@ function toPrimitive(t, r) {
|
|
|
1562
1562
|
return ("string" === r ? String : Number)(t);
|
|
1563
1563
|
}
|
|
1564
1564
|
//#endregion
|
|
1565
|
-
//#region \0@oxc-project+runtime@0.
|
|
1565
|
+
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/toPropertyKey.js
|
|
1566
1566
|
function toPropertyKey(t) {
|
|
1567
1567
|
var i = toPrimitive(t, "string");
|
|
1568
1568
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
1569
1569
|
}
|
|
1570
1570
|
//#endregion
|
|
1571
|
-
//#region \0@oxc-project+runtime@0.
|
|
1571
|
+
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/defineProperty.js
|
|
1572
1572
|
function _defineProperty(e, r, t) {
|
|
1573
1573
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
1574
1574
|
value: t,
|
|
@@ -1578,7 +1578,7 @@ function _defineProperty(e, r, t) {
|
|
|
1578
1578
|
}) : e[r] = t, e;
|
|
1579
1579
|
}
|
|
1580
1580
|
//#endregion
|
|
1581
|
-
//#region \0@oxc-project+runtime@0.
|
|
1581
|
+
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/objectSpread2.js
|
|
1582
1582
|
function ownKeys(e, r) {
|
|
1583
1583
|
var t = Object.keys(e);
|
|
1584
1584
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1601,7 +1601,7 @@ function _objectSpread2(e) {
|
|
|
1601
1601
|
return e;
|
|
1602
1602
|
}
|
|
1603
1603
|
//#endregion
|
|
1604
|
-
//#region \0@oxc-project+runtime@0.
|
|
1604
|
+
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/objectWithoutPropertiesLoose.js
|
|
1605
1605
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
1606
1606
|
if (null == r) return {};
|
|
1607
1607
|
var t = {};
|
|
@@ -1612,7 +1612,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
1612
1612
|
return t;
|
|
1613
1613
|
}
|
|
1614
1614
|
//#endregion
|
|
1615
|
-
//#region \0@oxc-project+runtime@0.
|
|
1615
|
+
//#region \0@oxc-project+runtime@0.151.0/helpers/esm/objectWithoutProperties.js
|
|
1616
1616
|
function _objectWithoutProperties(e, t) {
|
|
1617
1617
|
if (null == e) return {};
|
|
1618
1618
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -1239,16 +1239,18 @@ Required<HomomorphicPick<BaseType, Keys>>>;
|
|
|
1239
1239
|
Remove the optional modifier from the specified keys in an array.
|
|
1240
1240
|
*/
|
|
1241
1241
|
type SetArrayRequired<TArray extends UnknownArray, Keys, Counter extends any[] = [], Accumulator extends UnknownArray = []> = TArray extends unknown // For distributing `TArray` when it's a union
|
|
1242
|
-
? keyof TArray
|
|
1243
|
-
//
|
|
1244
|
-
// `
|
|
1245
|
-
[
|
|
1246
|
-
? `${Counter['length']}` extends `${Keys & (string | number)}` // If the current index needs to be required
|
|
1242
|
+
? '0' extends keyof TArray ? TArray extends readonly [(infer First)?, ...infer Rest] ?
|
|
1243
|
+
// A tuple allows fewer than one element only when its first element is optional. Written in exactly this shape because equivalent ones, such as `[] extends TArray`, are several times slower.
|
|
1244
|
+
// Unlike the other array loops, this one has no `any` guard above it, so the check is wrapped in tuples to stop `any` from matching both branches.
|
|
1245
|
+
[TArray] extends [readonly [unknown, ...unknown[]]] ? SetArrayRequired<Rest, Keys, [...Counter, any], [...Accumulator, First]> : `${Counter['length']}` extends `${Keys & (string | number)}` // If the current index needs to be required
|
|
1247
1246
|
? SetArrayRequired<Rest, Keys, [...Counter, any], [...Accumulator, First]> :
|
|
1248
1247
|
// If the current element is optional, but it doesn't need to be required,
|
|
1249
1248
|
// then we can exit early, since no further elements can now be made required.
|
|
1250
|
-
[...Accumulator, ...TArray] :
|
|
1251
|
-
:
|
|
1249
|
+
[...Accumulator, ...TArray] : never // Should never happen, since `[(infer F)?, ...infer R]` is a top-type for arrays.
|
|
1250
|
+
:
|
|
1251
|
+
// Exit if `TArray` is empty (e.g., []), or
|
|
1252
|
+
// `TArray` contains no non-rest elements preceding the rest element (e.g., `[...string[]]` or `[...string[], string]`).
|
|
1253
|
+
[...Accumulator, ...TArray] : never; // Should never happen
|
|
1252
1254
|
//#endregion
|
|
1253
1255
|
//#region src/types/options.d.ts
|
|
1254
1256
|
type RequireAtLeastOne<O, K extends keyof O> = { [P in K]-?: Required<Pick<O, P>> & Partial<Pick<O, Exclude<K, P>>>; }[K] & Except<O, K>;
|