@dereekb/util 10.1.19 → 10.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fetch/CHANGELOG.md +8 -0
- package/fetch/package.json +1 -1
- package/index.cjs.js +158 -0
- package/index.esm.js +163 -1
- package/package.json +1 -1
- package/src/lib/string/index.d.ts +1 -0
- package/src/lib/string/tree.d.ts +126 -0
- package/test/CHANGELOG.md +8 -0
- package/test/package.json +1 -1
package/fetch/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [10.1.21](https://github.com/dereekb/dbx-components/compare/v10.1.20-dev...v10.1.21) (2024-07-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [10.1.20](https://github.com/dereekb/dbx-components/compare/v10.1.19-dev...v10.1.20) (2024-06-12)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [10.1.19](https://github.com/dereekb/dbx-components/compare/v10.1.18-dev...v10.1.19) (2024-05-24)
|
|
6
14
|
|
|
7
15
|
|
package/fetch/package.json
CHANGED
package/index.cjs.js
CHANGED
|
@@ -13708,6 +13708,157 @@ const caseInsensitiveFilterByIndexOfDecisionFactory = filterText => {
|
|
|
13708
13708
|
return string => string.toLocaleLowerCase().indexOf(searchString) !== -1;
|
|
13709
13709
|
};
|
|
13710
13710
|
|
|
13711
|
+
const SPLIT_STRING_TREE_NODE_ROOT_VALUE = '';
|
|
13712
|
+
/**
|
|
13713
|
+
* Creates a SplitStringTreeFactory with the configured splitter.
|
|
13714
|
+
*
|
|
13715
|
+
* @param config
|
|
13716
|
+
* @returns
|
|
13717
|
+
*/
|
|
13718
|
+
function splitStringTreeFactory(config) {
|
|
13719
|
+
const {
|
|
13720
|
+
separator
|
|
13721
|
+
} = config;
|
|
13722
|
+
const fn = (input, existing) => {
|
|
13723
|
+
const {
|
|
13724
|
+
leafMeta,
|
|
13725
|
+
nodeMeta,
|
|
13726
|
+
values
|
|
13727
|
+
} = input;
|
|
13728
|
+
const result = existing !== null && existing !== void 0 ? existing : {
|
|
13729
|
+
fullValue: SPLIT_STRING_TREE_NODE_ROOT_VALUE,
|
|
13730
|
+
nodeValue: SPLIT_STRING_TREE_NODE_ROOT_VALUE,
|
|
13731
|
+
children: {}
|
|
13732
|
+
};
|
|
13733
|
+
asArray(values).forEach(value => {
|
|
13734
|
+
addToSplitStringTree(result, {
|
|
13735
|
+
value,
|
|
13736
|
+
leafMeta,
|
|
13737
|
+
nodeMeta
|
|
13738
|
+
}, config);
|
|
13739
|
+
});
|
|
13740
|
+
return result;
|
|
13741
|
+
};
|
|
13742
|
+
fn._separator = separator;
|
|
13743
|
+
return fn;
|
|
13744
|
+
}
|
|
13745
|
+
/**
|
|
13746
|
+
* Adds a value to the target SplitStringTree.
|
|
13747
|
+
*
|
|
13748
|
+
* @param tree
|
|
13749
|
+
* @param value
|
|
13750
|
+
* @param separator
|
|
13751
|
+
* @returns
|
|
13752
|
+
*/
|
|
13753
|
+
function addToSplitStringTree(tree, inputValue, config) {
|
|
13754
|
+
const {
|
|
13755
|
+
separator,
|
|
13756
|
+
mergeMeta
|
|
13757
|
+
} = config;
|
|
13758
|
+
const {
|
|
13759
|
+
value,
|
|
13760
|
+
leafMeta,
|
|
13761
|
+
nodeMeta
|
|
13762
|
+
} = inputValue;
|
|
13763
|
+
function nextMeta(node, nextMeta) {
|
|
13764
|
+
if (mergeMeta && node.meta != null) {
|
|
13765
|
+
return mergeMeta(node.meta, nextMeta);
|
|
13766
|
+
} else {
|
|
13767
|
+
return nextMeta;
|
|
13768
|
+
}
|
|
13769
|
+
}
|
|
13770
|
+
const parts = value.split(separator);
|
|
13771
|
+
let currentNode = tree;
|
|
13772
|
+
parts.forEach(nodeValue => {
|
|
13773
|
+
const existingChildNode = currentNode.children[nodeValue];
|
|
13774
|
+
const childNode = existingChildNode !== null && existingChildNode !== void 0 ? existingChildNode : {
|
|
13775
|
+
nodeValue,
|
|
13776
|
+
children: {}
|
|
13777
|
+
}; // use the existing node or create a new node
|
|
13778
|
+
if (!existingChildNode) {
|
|
13779
|
+
childNode.fullValue = currentNode.fullValue ? currentNode.fullValue + separator + nodeValue : nodeValue;
|
|
13780
|
+
currentNode.children[nodeValue] = childNode;
|
|
13781
|
+
}
|
|
13782
|
+
// add the meta to the node
|
|
13783
|
+
if (nodeMeta != null) {
|
|
13784
|
+
childNode.meta = nextMeta(childNode, nodeMeta);
|
|
13785
|
+
}
|
|
13786
|
+
currentNode = childNode;
|
|
13787
|
+
});
|
|
13788
|
+
// add the meta to the leaf node
|
|
13789
|
+
if (leafMeta != null) {
|
|
13790
|
+
currentNode.meta = nextMeta(currentNode, leafMeta);
|
|
13791
|
+
}
|
|
13792
|
+
return tree;
|
|
13793
|
+
}
|
|
13794
|
+
// MARK: Search
|
|
13795
|
+
/**
|
|
13796
|
+
* Returns the best match for the value in the tree, including the input tree value.
|
|
13797
|
+
*
|
|
13798
|
+
* Only returns a result if there is match of any kind.
|
|
13799
|
+
*
|
|
13800
|
+
* @param tree
|
|
13801
|
+
* @param value
|
|
13802
|
+
* @returns
|
|
13803
|
+
*/
|
|
13804
|
+
function findBestSplitStringTreeMatch(tree, value) {
|
|
13805
|
+
return lastValue(findBestSplitStringTreeMatchPath(tree, value));
|
|
13806
|
+
}
|
|
13807
|
+
/**
|
|
13808
|
+
* Returns the best match for the value in the true, excluding the input tree value.
|
|
13809
|
+
*
|
|
13810
|
+
* Only returns a result if there is match of any kind.
|
|
13811
|
+
*
|
|
13812
|
+
* @param tree
|
|
13813
|
+
* @param value
|
|
13814
|
+
* @returns
|
|
13815
|
+
*/
|
|
13816
|
+
function findBestSplitStringTreeChildMatch(tree, value) {
|
|
13817
|
+
return lastValue(findBestSplitStringTreeChildMatchPath(tree, value));
|
|
13818
|
+
}
|
|
13819
|
+
/**
|
|
13820
|
+
* Returns the best match for the value in the tree, including the input tree value.
|
|
13821
|
+
*
|
|
13822
|
+
* Only returns a result if there is match of any kind.
|
|
13823
|
+
*
|
|
13824
|
+
* @param tree
|
|
13825
|
+
* @param value
|
|
13826
|
+
* @returns
|
|
13827
|
+
*/
|
|
13828
|
+
function findBestSplitStringTreeMatchPath(tree, value) {
|
|
13829
|
+
let bestResult = findBestSplitStringTreeChildMatchPath(tree, value);
|
|
13830
|
+
if (!bestResult && tree.fullValue && value.startsWith(tree.fullValue)) {
|
|
13831
|
+
bestResult = [tree];
|
|
13832
|
+
}
|
|
13833
|
+
return bestResult;
|
|
13834
|
+
}
|
|
13835
|
+
/**
|
|
13836
|
+
* Returns the best match for the value in the true, excluding the input tree value.
|
|
13837
|
+
*
|
|
13838
|
+
* Only returns a result if there is match of any kind.
|
|
13839
|
+
*
|
|
13840
|
+
* @param tree
|
|
13841
|
+
* @param value
|
|
13842
|
+
* @returns
|
|
13843
|
+
*/
|
|
13844
|
+
function findBestSplitStringTreeChildMatchPath(tree, value) {
|
|
13845
|
+
const {
|
|
13846
|
+
children
|
|
13847
|
+
} = tree;
|
|
13848
|
+
let bestMatchPath;
|
|
13849
|
+
Object.entries(children).find(([_, child]) => {
|
|
13850
|
+
var _a;
|
|
13851
|
+
let stopScan = false;
|
|
13852
|
+
if (value.startsWith(child.fullValue)) {
|
|
13853
|
+
const bestChildPath = (_a = findBestSplitStringTreeChildMatchPath(child, value)) !== null && _a !== void 0 ? _a : [];
|
|
13854
|
+
bestMatchPath = [child, ...bestChildPath];
|
|
13855
|
+
stopScan = true;
|
|
13856
|
+
}
|
|
13857
|
+
return stopScan;
|
|
13858
|
+
});
|
|
13859
|
+
return bestMatchPath;
|
|
13860
|
+
}
|
|
13861
|
+
|
|
13711
13862
|
/*eslint @typescript-eslint/no-explicit-any:"off"*/
|
|
13712
13863
|
// any is used with intent here, as the recursive TreeNode value requires its use to terminate.
|
|
13713
13864
|
function expandTreeFunction(config) {
|
|
@@ -14432,6 +14583,7 @@ exports.SLASH_PATH_SEPARATOR = SLASH_PATH_SEPARATOR;
|
|
|
14432
14583
|
exports.SORT_VALUE_EQUAL = SORT_VALUE_EQUAL;
|
|
14433
14584
|
exports.SORT_VALUE_GREATER_THAN = SORT_VALUE_GREATER_THAN;
|
|
14434
14585
|
exports.SORT_VALUE_LESS_THAN = SORT_VALUE_LESS_THAN;
|
|
14586
|
+
exports.SPLIT_STRING_TREE_NODE_ROOT_VALUE = SPLIT_STRING_TREE_NODE_ROOT_VALUE;
|
|
14435
14587
|
exports.ServerErrorResponse = ServerErrorResponse;
|
|
14436
14588
|
exports.SimpleStorageObject = SimpleStorageObject;
|
|
14437
14589
|
exports.StorageObject = StorageObject;
|
|
@@ -14464,6 +14616,7 @@ exports.addSuffix = addSuffix;
|
|
|
14464
14616
|
exports.addSuffixFunction = addSuffixFunction;
|
|
14465
14617
|
exports.addToSet = addToSet;
|
|
14466
14618
|
exports.addToSetCopy = addToSetCopy;
|
|
14619
|
+
exports.addToSplitStringTree = addToSplitStringTree;
|
|
14467
14620
|
exports.allFalsyOrEmptyKeys = allFalsyOrEmptyKeys;
|
|
14468
14621
|
exports.allIndexesInIndexRange = allIndexesInIndexRange;
|
|
14469
14622
|
exports.allKeyValueTuples = allKeyValueTuples;
|
|
@@ -14631,6 +14784,10 @@ exports.findBest = findBest;
|
|
|
14631
14784
|
exports.findBestIndexMatch = findBestIndexMatch;
|
|
14632
14785
|
exports.findBestIndexMatchFunction = findBestIndexMatchFunction;
|
|
14633
14786
|
exports.findBestIndexSetPair = findBestIndexSetPair;
|
|
14787
|
+
exports.findBestSplitStringTreeChildMatch = findBestSplitStringTreeChildMatch;
|
|
14788
|
+
exports.findBestSplitStringTreeChildMatchPath = findBestSplitStringTreeChildMatchPath;
|
|
14789
|
+
exports.findBestSplitStringTreeMatch = findBestSplitStringTreeMatch;
|
|
14790
|
+
exports.findBestSplitStringTreeMatchPath = findBestSplitStringTreeMatchPath;
|
|
14634
14791
|
exports.findFirstCharacterOccurence = findFirstCharacterOccurence;
|
|
14635
14792
|
exports.findInIterable = findInIterable;
|
|
14636
14793
|
exports.findIndexOfFirstDuplicateValue = findIndexOfFirstDuplicateValue;
|
|
@@ -15084,6 +15241,7 @@ exports.splitJoinRemainder = splitJoinRemainder;
|
|
|
15084
15241
|
exports.splitStringAtFirstCharacterOccurence = splitStringAtFirstCharacterOccurence;
|
|
15085
15242
|
exports.splitStringAtFirstCharacterOccurenceFunction = splitStringAtFirstCharacterOccurenceFunction;
|
|
15086
15243
|
exports.splitStringAtIndex = splitStringAtIndex;
|
|
15244
|
+
exports.splitStringTreeFactory = splitStringTreeFactory;
|
|
15087
15245
|
exports.startOfDayForSystemDateInUTC = startOfDayForSystemDateInUTC;
|
|
15088
15246
|
exports.startOfDayForUTCDateInUTC = startOfDayForUTCDateInUTC;
|
|
15089
15247
|
exports.stepsFromIndex = stepsFromIndex;
|
package/index.esm.js
CHANGED
|
@@ -15902,6 +15902,168 @@ const caseInsensitiveFilterByIndexOfDecisionFactory = filterText => {
|
|
|
15902
15902
|
return string => string.toLocaleLowerCase().indexOf(searchString) !== -1;
|
|
15903
15903
|
};
|
|
15904
15904
|
|
|
15905
|
+
/**
|
|
15906
|
+
* A tree node
|
|
15907
|
+
*/
|
|
15908
|
+
|
|
15909
|
+
const SPLIT_STRING_TREE_NODE_ROOT_VALUE = '';
|
|
15910
|
+
/**
|
|
15911
|
+
* Creates a SplitStringTreeFactory with the configured splitter.
|
|
15912
|
+
*
|
|
15913
|
+
* @param config
|
|
15914
|
+
* @returns
|
|
15915
|
+
*/
|
|
15916
|
+
function splitStringTreeFactory(config) {
|
|
15917
|
+
const {
|
|
15918
|
+
separator
|
|
15919
|
+
} = config;
|
|
15920
|
+
const fn = (input, existing) => {
|
|
15921
|
+
const {
|
|
15922
|
+
leafMeta,
|
|
15923
|
+
nodeMeta,
|
|
15924
|
+
values
|
|
15925
|
+
} = input;
|
|
15926
|
+
const result = existing != null ? existing : {
|
|
15927
|
+
fullValue: SPLIT_STRING_TREE_NODE_ROOT_VALUE,
|
|
15928
|
+
nodeValue: SPLIT_STRING_TREE_NODE_ROOT_VALUE,
|
|
15929
|
+
children: {}
|
|
15930
|
+
};
|
|
15931
|
+
asArray(values).forEach(value => {
|
|
15932
|
+
addToSplitStringTree(result, {
|
|
15933
|
+
value,
|
|
15934
|
+
leafMeta,
|
|
15935
|
+
nodeMeta
|
|
15936
|
+
}, config);
|
|
15937
|
+
});
|
|
15938
|
+
return result;
|
|
15939
|
+
};
|
|
15940
|
+
fn._separator = separator;
|
|
15941
|
+
return fn;
|
|
15942
|
+
}
|
|
15943
|
+
/**
|
|
15944
|
+
* Adds a value to the target SplitStringTree.
|
|
15945
|
+
*
|
|
15946
|
+
* @param tree
|
|
15947
|
+
* @param value
|
|
15948
|
+
* @param separator
|
|
15949
|
+
* @returns
|
|
15950
|
+
*/
|
|
15951
|
+
function addToSplitStringTree(tree, inputValue, config) {
|
|
15952
|
+
const {
|
|
15953
|
+
separator,
|
|
15954
|
+
mergeMeta
|
|
15955
|
+
} = config;
|
|
15956
|
+
const {
|
|
15957
|
+
value,
|
|
15958
|
+
leafMeta,
|
|
15959
|
+
nodeMeta
|
|
15960
|
+
} = inputValue;
|
|
15961
|
+
function nextMeta(node, nextMeta) {
|
|
15962
|
+
if (mergeMeta && node.meta != null) {
|
|
15963
|
+
return mergeMeta(node.meta, nextMeta);
|
|
15964
|
+
} else {
|
|
15965
|
+
return nextMeta;
|
|
15966
|
+
}
|
|
15967
|
+
}
|
|
15968
|
+
const parts = value.split(separator);
|
|
15969
|
+
let currentNode = tree;
|
|
15970
|
+
parts.forEach(nodeValue => {
|
|
15971
|
+
const existingChildNode = currentNode.children[nodeValue];
|
|
15972
|
+
const childNode = existingChildNode != null ? existingChildNode : {
|
|
15973
|
+
nodeValue,
|
|
15974
|
+
children: {}
|
|
15975
|
+
}; // use the existing node or create a new node
|
|
15976
|
+
|
|
15977
|
+
if (!existingChildNode) {
|
|
15978
|
+
childNode.fullValue = currentNode.fullValue ? currentNode.fullValue + separator + nodeValue : nodeValue;
|
|
15979
|
+
currentNode.children[nodeValue] = childNode;
|
|
15980
|
+
}
|
|
15981
|
+
|
|
15982
|
+
// add the meta to the node
|
|
15983
|
+
if (nodeMeta != null) {
|
|
15984
|
+
childNode.meta = nextMeta(childNode, nodeMeta);
|
|
15985
|
+
}
|
|
15986
|
+
currentNode = childNode;
|
|
15987
|
+
});
|
|
15988
|
+
|
|
15989
|
+
// add the meta to the leaf node
|
|
15990
|
+
if (leafMeta != null) {
|
|
15991
|
+
currentNode.meta = nextMeta(currentNode, leafMeta);
|
|
15992
|
+
}
|
|
15993
|
+
return tree;
|
|
15994
|
+
}
|
|
15995
|
+
|
|
15996
|
+
// MARK: Search
|
|
15997
|
+
/**
|
|
15998
|
+
* Returns the best match for the value in the tree, including the input tree value.
|
|
15999
|
+
*
|
|
16000
|
+
* Only returns a result if there is match of any kind.
|
|
16001
|
+
*
|
|
16002
|
+
* @param tree
|
|
16003
|
+
* @param value
|
|
16004
|
+
* @returns
|
|
16005
|
+
*/
|
|
16006
|
+
function findBestSplitStringTreeMatch(tree, value) {
|
|
16007
|
+
return lastValue(findBestSplitStringTreeMatchPath(tree, value));
|
|
16008
|
+
}
|
|
16009
|
+
|
|
16010
|
+
/**
|
|
16011
|
+
* Returns the best match for the value in the true, excluding the input tree value.
|
|
16012
|
+
*
|
|
16013
|
+
* Only returns a result if there is match of any kind.
|
|
16014
|
+
*
|
|
16015
|
+
* @param tree
|
|
16016
|
+
* @param value
|
|
16017
|
+
* @returns
|
|
16018
|
+
*/
|
|
16019
|
+
function findBestSplitStringTreeChildMatch(tree, value) {
|
|
16020
|
+
return lastValue(findBestSplitStringTreeChildMatchPath(tree, value));
|
|
16021
|
+
}
|
|
16022
|
+
|
|
16023
|
+
/**
|
|
16024
|
+
* Returns the best match for the value in the tree, including the input tree value.
|
|
16025
|
+
*
|
|
16026
|
+
* Only returns a result if there is match of any kind.
|
|
16027
|
+
*
|
|
16028
|
+
* @param tree
|
|
16029
|
+
* @param value
|
|
16030
|
+
* @returns
|
|
16031
|
+
*/
|
|
16032
|
+
function findBestSplitStringTreeMatchPath(tree, value) {
|
|
16033
|
+
let bestResult = findBestSplitStringTreeChildMatchPath(tree, value);
|
|
16034
|
+
if (!bestResult && tree.fullValue && value.startsWith(tree.fullValue)) {
|
|
16035
|
+
bestResult = [tree];
|
|
16036
|
+
}
|
|
16037
|
+
return bestResult;
|
|
16038
|
+
}
|
|
16039
|
+
|
|
16040
|
+
/**
|
|
16041
|
+
* Returns the best match for the value in the true, excluding the input tree value.
|
|
16042
|
+
*
|
|
16043
|
+
* Only returns a result if there is match of any kind.
|
|
16044
|
+
*
|
|
16045
|
+
* @param tree
|
|
16046
|
+
* @param value
|
|
16047
|
+
* @returns
|
|
16048
|
+
*/
|
|
16049
|
+
function findBestSplitStringTreeChildMatchPath(tree, value) {
|
|
16050
|
+
const {
|
|
16051
|
+
children
|
|
16052
|
+
} = tree;
|
|
16053
|
+
let bestMatchPath;
|
|
16054
|
+
Object.entries(children).find(([_, child]) => {
|
|
16055
|
+
let stopScan = false;
|
|
16056
|
+
if (value.startsWith(child.fullValue)) {
|
|
16057
|
+
var _findBestSplitStringT;
|
|
16058
|
+
const bestChildPath = (_findBestSplitStringT = findBestSplitStringTreeChildMatchPath(child, value)) != null ? _findBestSplitStringT : [];
|
|
16059
|
+
bestMatchPath = [child, ...bestChildPath];
|
|
16060
|
+
stopScan = true;
|
|
16061
|
+
}
|
|
16062
|
+
return stopScan;
|
|
16063
|
+
});
|
|
16064
|
+
return bestMatchPath;
|
|
16065
|
+
}
|
|
16066
|
+
|
|
15905
16067
|
/*eslint @typescript-eslint/no-explicit-any:"off"*/
|
|
15906
16068
|
// any is used with intent here, as the recursive TreeNode value requires its use to terminate.
|
|
15907
16069
|
|
|
@@ -16663,4 +16825,4 @@ async function iterateFilteredPages(inputPage, loadFn, iterFn) {
|
|
|
16663
16825
|
return count;
|
|
16664
16826
|
}
|
|
16665
16827
|
|
|
16666
|
-
export { ALL_DOUBLE_SLASHES_REGEX, ALL_SLASHES_REGEX, ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX, ASSERTION_ERROR_CODE, ASSERTION_HANDLER, AUTH_ADMIN_ROLE, AUTH_ONBOARDED_ROLE, AUTH_ROLE_CLAIMS_DEFAULT_CLAIM_VALUE, AUTH_ROLE_CLAIMS_DEFAULT_EMPTY_VALUE, AUTH_TOS_SIGNED_ROLE, AUTH_USER_ROLE, AbstractUniqueModel, Assert, AssertMax, AssertMin, AssertionError, AssertionIssueHandler, BooleanKeyArrayUtilityInstance, BooleanStringKeyArrayUtilityInstance, CATCH_ALL_HANDLE_RESULT_KEY, CUT_VALUE_TO_ZERO_PRECISION, DATE_NOW_VALUE, DEFAULT_LAT_LNG_STRING_VALUE, DEFAULT_RANDOM_EMAIL_FACTORY_CONFIG, DEFAULT_RANDOM_PHONE_NUMBER_FACTORY_CONFIG, DEFAULT_READABLE_ERROR_CODE, DEFAULT_SLASH_PATH_ILLEGAL_CHARACTERS, DEFAULT_SLASH_PATH_ILLEGAL_CHARACTER_REPLACEMENT, DEFAULT_UNKNOWN_MODEL_TYPE_STRING, DOLLAR_AMOUNT_PRECISION, DOLLAR_AMOUNT_STRING_REGEX, DataDoesNotExistError, DataIsExpiredError, Day, DestroyFunctionObject, E164PHONE_NUMBER_REGEX, E164PHONE_NUMBER_WITH_EXTENSION_REGEX, E164PHONE_NUMBER_WITH_OPTIONAL_EXTENSION_REGEX, FINAL_PAGE, FIRST_PAGE, FRACTIONAL_HOURS_PRECISION_FUNCTION, FullStorageObject, HAS_WEBSITE_DOMAIN_NAME_REGEX, HOURS_IN_DAY, HTTP_OR_HTTPS_REGEX, HashSet, ISO8601_DAY_STRING_REGEX, ISO8601_DAY_STRING_START_REGEX, ISO_8601_DATE_STRING_REGEX, KeyValueTypleValueFilter, LAT_LNG_PATTERN, LAT_LNG_PATTERN_MAX_PRECISION, LAT_LONG_100KM_PRECISION, LAT_LONG_100M_PRECISION, LAT_LONG_10CM_PRECISION, LAT_LONG_10KM_PRECISION, LAT_LONG_10M_PRECISION, LAT_LONG_1CM_PRECISION, LAT_LONG_1KM_PRECISION, LAT_LONG_1MM_PRECISION, LAT_LONG_1M_PRECISION, LAT_LONG_GRAINS_OF_SAND_PRECISION, LEADING_SLASHES_REGEX, MAP_IDENTITY, MAX_BITWISE_SET_SIZE, MAX_LATITUDE_VALUE, MAX_LONGITUDE_VALUE, MINUTES_IN_DAY, MINUTES_IN_HOUR, MINUTE_OF_DAY_MAXMIMUM, MINUTE_OF_DAY_MINIUMUM, MIN_LATITUDE_VALUE, MIN_LONGITUDE_VALUE, MONTH_DAY_SLASH_DATE_STRING_REGEX, MS_IN_DAY, MS_IN_HOUR, MS_IN_MINUTE, MS_IN_SECOND, MemoryStorageInstance, ModelRelationUtility, NOOP_MODIFIER, NUMBER_STRING_DENCODER_64, NUMBER_STRING_DENCODER_64_DEFAULT_NEGATIVE_PREFIX, NUMBER_STRING_DENCODER_64_DIGITS, PHONE_EXTENSION_NUMBER_REGEX, PRIMATIVE_KEY_DENCODER_VALUE, PageCalculator, PropertyDescriptorUtility, REGEX_SPECIAL_CHARACTERS, REGEX_SPECIAL_CHARACTERS_SET, RelationChange, SECONDS_IN_MINUTE, SHARED_MEMORY_STORAGE, SLASH_PATH_FILE_TYPE_SEPARATOR, SLASH_PATH_SEPARATOR, SORT_VALUE_EQUAL, SORT_VALUE_GREATER_THAN, SORT_VALUE_LESS_THAN, ServerErrorResponse, SetDeltaChange, SimpleStorageObject, StorageObject, StorageObjectUtility, StoredDataError, SyncState, TOTAL_LATITUDE_RANGE, TOTAL_LONGITUDE_RANGE, TOTAL_SPAN_OF_LONGITUDE, TRAILING_FILE_TYPE_SEPARATORS_REGEX, TRAILING_SLASHES_REGEX, TimeAM, TimerCancelledError, TimerInstance, TypedServiceRegistryInstance, UNLOADED_PAGE, US_STATE_CODE_STRING_REGEX, UTC_DATE_STRING_REGEX, UTC_TIMEZONE_STRING, UTF_8_START_CHARACTER, UTF_PRIVATE_USAGE_AREA_START, UnauthorizedServerErrorResponse, WEB_PROTOCOL_PREFIX_REGEX, ZIP_CODE_STRING_REGEX, addHttpToUrl, addLatLngPoints, addModifiers, addPlusPrefixToNumber, addPrefix, addPrefixFunction, addSuffix, addSuffixFunction, addToSet, addToSetCopy, allFalsyOrEmptyKeys, allIndexesInIndexRange, allKeyValueTuples, allMaybeSoKeys, allNonUndefinedKeys, allObjectsAreEqual, allValuesAreMaybeNot, allValuesAreNotMaybe, allowValueOnceFilter, applyBestFit, applyToMultipleFields, approximateTimerEndDate, areEqualContext, areEqualPOJOValues, arrayContainsDuplicateValue, arrayContentsDiffer, arrayDecision, arrayDecisionFunction, arrayFactory, arrayInputFactory, arrayToLowercase, arrayToMap, arrayToObject, arrayToUppercase, asArray, asDecisionFunction, asGetter, asIndexRangeCheckFunctionConfig, asIterable, asMinuteOfDay, asNumber, asObjectCopyFactory, asPromise, asSet, assignValuesToPOJO, assignValuesToPOJOFunction, authClaims, authRoleClaimsService, authRolesSetHasRoles, baseWebsiteUrl, batch, batchCalc, bitwiseObjectDencoder, bitwiseObjectEncoder, bitwiseObjectdecoder, bitwiseSetDecoder, bitwiseSetDencoder, booleanFactory, boundNumber, boundNumberFunction, boundToRectangle, build, cachedGetter, capLatValue, capitalizeFirstLetter, caseInsensitiveFilterByIndexOfDecisionFactory, caseInsensitiveString, catchAllHandlerKey, chainMapFunction, chainMapSameFunctions, coerceToEmailParticipants, combineMaps, compareEqualityWithValueFromItemsFunction, compareEqualityWithValueFromItemsFunctionFactory, compareFnOrder, compareWithMappedValuesFunction, computeNextFractionalHour, computeNextFreeIndexFunction, concatArrays, concatArraysUnique, containsAllStringsAnyCase, containsAllValues, containsAnyStringAnyCase, containsAnyValue, containsAnyValueFromSet, containsNoValueFromSet, containsNoneOfValue, containsStringAnyCase, convertEmailParticipantStringToParticipant, convertMaybeToArray, convertParticipantToEmailParticipantString, convertToArray, copyArray, copyField, copyLatLngBound, copyLatLngPoint, copyObject, copySetAndDo, countAllInNestedArray, countPOJOKeys, countPOJOKeysFunction, cronExpressionRepeatingEveryNMinutes, cssClassesSet, cutToPrecision, cutValueToInteger, cutValueToPrecision, cutValueToPrecisionFunction, dateFromLogicalDate, dateFromMinuteOfDay, dateToHoursAndMinutes, dateToMinuteOfDay, dayOfWeek, daysOfWeekArray, daysOfWeekFromEnabledDays, daysOfWeekNameFunction, daysOfWeekNameMap, decisionFunction, decodeHashedValues, decodeHashedValuesWithDecodeMap, decodeModelKeyTypePair, defaultFilterFromPOJOFunctionNoCopy, defaultForwardFunctionFactory, defaultLatLngPoint, defaultLatLngString, dencodeBitwiseSet, diffLatLngBoundPoints, diffLatLngPoints, dollarAmountString, e164PhoneNumberExtensionPair, e164PhoneNumberFromE164PhoneNumberExtensionPair, enabledDaysFromDaysOfWeek, encodeBitwiseSet, encodeModelKeyTypePair, errorMessageContainsString, errorMessageContainsStringFunction, escapeStringForRegex, excludeValues, excludeValuesFromArray, excludeValuesFromSet, existsInIterable, expandArrayMapTuples, expandArrayValueTuples, expandFlattenTreeFunction, expandIndexSet, expandTreeFunction, expandTrees, extendLatLngBound, filterAndMapFunction, filterEmptyValues, filterFalsyAndEmptyValues, filterFromIterable, filterFromPOJO, filterFromPOJOFunction, filterKeyValueTupleFunction, filterKeyValueTuples, filterKeyValueTuplesFunction, filterKeyValueTuplesInputToFilter, filterMaybeValues, filterNullAndUndefinedValues, filterOnlyUndefinedValues, filterUndefinedValues, filterUniqueByIndex, filterUniqueCaseInsensitiveStrings, filterUniqueFunction, filterUniqueTransform, filterUniqueValues, filterValuesByDistance, filterValuesByDistanceNoOrder, filterValuesToSet, filterValuesUsingSet, filteredPage, findAllCharacterOccurences, findAllCharacterOccurencesFunction, findBest, findBestIndexMatch, findBestIndexMatchFunction, findBestIndexSetPair, findFirstCharacterOccurence, findInIterable, findIndexOfFirstDuplicateValue, findItemsByIndex, findNext, findPOJOKeys, findPOJOKeysFunction, findStringsRegexString, findToIndexSet, findValuesFrom, firstAndLastCharacterOccurrence, firstAndLastValue, firstValue, firstValueFromIterable, fitToIndexRangeFunction, fixExtraQueryParameters, fixMultiSlashesInSlashPath, flattenArray, flattenArrayOrValueArray, flattenArrayToSet, flattenArrayUnique, flattenArrayUniqueCaseInsensitiveStrings, flattenTree, flattenTreeToArray, flattenTreeToArrayFunction, flattenTrees, forEachInIterable, forEachKeyValue, forEachKeyValueOnPOJOFunction, forEachWithArray, forwardFunction, fractionalHoursToMinutes, generateIfDoesNotExist, getArrayNextIndex, getDayOffset, getDayTomorrow, getDayYesterday, getDaysOfWeekNames, getFunctionType, getNextDay, getNextPageNumber, getOverlappingRectangle, getPageNumber, getPreviousDay, getValueFromGetter, groupValues, handlerBindAccessor, handlerConfigurerFactory, handlerFactory, handlerMappedSetFunction, handlerMappedSetFunctionFactory, handlerSetFunction, hasDifferentStringsNoCase, hasDifferentValues, hasHttpPrefix, hasNonNullValue, hasSameTimezone, hasSameValues, hasValueFunction, hasValueOrNotEmpty, hasValueOrNotEmptyObject, hasWebsiteDomain, hashSetForIndexed, hourToFractionalHour, idBatchFactory, incrementingNumberFactory, indexDeltaGroup, indexDeltaGroupFunction, indexRange, indexRangeCheckFunction, indexRangeCheckReaderFunction, indexRangeForArray, indexRangeOverlapsIndexRange, indexRangeOverlapsIndexRangeFunction, indexRangeReaderPairFactory, indexRefMap, indexedValuesArrayAccessorFactory, insertIntoBooleanKeyArray, invertBooleanReturnFunction, invertDecision, invertFilter, isAllowed, isClassLikeType, isCompleteUnitedStatesAddress, isConsideredUtcTimezoneString, isDate, isDefaultLatLngPoint, isDefaultLatLngPointValue, isDefaultReadableError, isDefinedAndNotFalse, isDollarAmountString, isE164PhoneNumber, isE164PhoneNumberWithExtension, isEmptyIterable, isEqualContext, isEqualToValueDecisionFunction, isEvenNumber, isFalseBooleanKeyArray, isFinalPage, isGetter, isISO8601DateString, isISO8601DayString, isISO8601DayStringStart, isInAllowedDaysOfWeekSet, isInNumberBoundFunction, isInSetDecisionFunction, isIndexNumberInIndexRange, isIndexNumberInIndexRangeFunction, isIndexRangeInIndexRange, isIndexRangeInIndexRangeFunction, isIterable, isLatLngBound, isLatLngBoundWithinLatLngBound, isLatLngPoint, isLatLngPointWithinLatLngBound, isLatLngString, isLogicalDateStringCode, isMapIdentityFunction, isMaybeNot, isMaybeNotOrTrue, isMaybeSo, isMinuteOfDay, isModelKey, isMonthDaySlashDate, isNonClassFunction, isNotNullOrEmptyString, isNumberDivisibleBy, isObjectWithConstructor, isOddNumber, isPromise, isPromiseLike, isSameLatLngBound, isSameLatLngPoint, isSameNonNullValue, isSameVector, isSelectedDecisionFunctionFactory, isSelectedIndexDecisionFunction, isServerError, isSlashPathFile, isSlashPathFolder, isSlashPathTypedFile, isStringOrTrue, isTrueBooleanKeyArray, isUTCDateString, isUsStateCodeString, isValidLatLngPoint, isValidLatitude, isValidLongitude, isValidNumberBound, isValidPhoneExtensionNumber, isValidSlashPath, isWebsiteUrl, isWebsiteUrlWithPrefix, isWithinLatLngBoundFunction, isolateSlashPath, isolateSlashPathFunction, isolateWebsitePathFunction, itemCountForBatchIndex, iterableToArray, iterableToMap, iterableToSet, iterablesAreSetEquivalent, iterate, iterateFilteredPages, joinHostAndPort, joinStringsWithSpaces, keepCharactersAfterFirstCharacterOccurence, keepCharactersAfterFirstCharacterOccurenceFunction, keepFromSetCopy, keepValuesFromArray, keepValuesFromSet, keyValueMapFactory, labeledValueMap, lastValue, latLngBound, latLngBoundCenterPoint, latLngBoundEastBound, latLngBoundFromInput, latLngBoundFullyWrapsMap, latLngBoundFunction, latLngBoundNorthBound, latLngBoundNorthEastPoint, latLngBoundNorthWestPoint, latLngBoundOverlapsLatLngBound, latLngBoundSouthBound, latLngBoundSouthEastPoint, latLngBoundSouthWestPoint, latLngBoundStrictlyWrapsMap, latLngBoundTuple, latLngBoundTupleFunction, latLngBoundWestBound, latLngBoundWrapsMap, latLngDataPointFunction, latLngPoint, latLngPointFromString, latLngPointFunction, latLngPointPrecisionFunction, latLngString, latLngStringFunction, latLngTuple, latLngTupleFunction, limitArray, lonLatTuple, lowercaseFirstLetter, mailToUrlString, makeBestFit, makeCopyModelFieldFunction, makeDateMonthForMonthOfYear, makeGetter, makeHandler, makeHashDecodeMap, makeKeyPairs, makeModelConversionFieldValuesFunction, makeModelMap, makeModelMapFunctions, makeMultiModelKeyMap, makeValuesGroupMap, makeWithFactory, makeWithFactoryInput, mapArrayFunction, mapFunctionOutput, mapFunctionOutputPair, mapGetter, mapGetterFactory, mapIdentityFunction, mapIterable, mapKeysIntersectionObjectToArray, mapMaybeFunction, mapObjectMap, mapObjectMapFunction, mapObjectToTargetObject, mapPromiseOrValue, mapToObject, mapToTuples, mapValuesToSet, mappedUseAsyncFunction, mappedUseFunction, mapsHaveSameKeys, maybeMergeModelModifiers, maybeMergeModifiers, maybeModifierMapToFunction, maybeSet, mergeArrayIntoArray, mergeArrayOrValueIntoArray, mergeArrays, mergeArraysIntoArray, mergeFilterFunctions, mergeIntoArray, mergeModifiers, mergeObjects, mergeObjectsFunction, mergeSlashPaths, messageFromError, minAndMaxFunction, minAndMaxIndex, minAndMaxIndexFunction, minAndMaxIndexItemsFunction, minAndMaxNumber, minutesToFractionalHours, minutesToHoursAndMinutes, modelFieldConversions, modelFieldMapFunction, modelFieldMapFunctions, modelTypeDataPairFactory, modifier, modifierMapToFunction, modifyModelMapFunction, modifyModelMapFunctions, monthDaySlashDateToDateString, monthOfYearFromDate, monthOfYearFromDateMonth, multiKeyValueMapFactory, multiValueMapBuilder, neMostLatLngPoint, nearestDivisibleValues, numberStringDencoder, numberStringDencoderDecodedNumberValueFunction, numberStringDencoderEncodedStringValueFunction, numberStringDencoderFunction, objectCopyFactory, objectDeltaArrayCompressor, objectFieldEqualityChecker, objectFlatMergeMatrix, objectHasKey, objectHasKeys, objectHasNoKeys, objectIsEmpty, objectKeyEqualityComparatorFunction, objectKeysEqualityComparatorFunction, objectMergeMatrix, objectToMap, objectToTuples, overlapsLatLngBoundFunction, overrideInObject, overrideInObjectFunctionFactory, padStartFunction, pairGroupValues, parseISO8601DayStringToUTCDate, partialServerError, passThrough, percentNumberFromDecimal, percentNumberToDecimal, performAsyncTask, performAsyncTasks, performBatchLoop, performMakeLoop, performTaskCountLoop, performTaskLoop, performTasksFromFactoryInParallelFunction, performTasksInParallel, performTasksInParallelFunction, pickOneRandomly, poll, primativeKeyDencoder, primativeKeyDencoderMap, primativeKeyStringDencoder, primativeValuesDelta, promiseReference, protectedFactory, pushArrayItemsIntoArray, pushElementOntoArray, pushItemOrArrayItemsIntoArray, randomArrayFactory, randomArrayIndex, randomBoolean, randomEmailFactory, randomFromArrayFactory, randomLatLngFactory, randomLatLngFromCenterFactory, randomNumber, randomNumberFactory, randomPhoneNumberFactory, randomPickFactory, range, rangedIndexedValuesArrayAccessorFactory, rangedIndexedValuesArrayAccessorInfoFactory, readBooleanKeySafetyWrap, readDomainFromEmailAddress, readDomainsFromEmailAddresses, readEmailDomainFromUrlOrEmailAddress, readIndexNumber, readKeysFrom, readKeysFromFilterUniqueFunctionAdditionalKeys, readKeysFromFilterUniqueFunctionAdditionalKeysInput, readKeysFunction, readKeysSetFrom, readKeysSetFunction, readKeysToMap, readModelKey, readModelKeyFromObject, readModelKeys, readModelKeysFromObjects, readMultipleKeysToMap, readUniqueModelKey, readableError, readableStreamToBase64, readableStreamToBuffer, readableStreamToStringFunction, rectangleOverlapsRectangle, reduceBooleansFn, reduceBooleansWithAnd, reduceBooleansWithAndFn, reduceBooleansWithOr, reduceBooleansWithOrFn, reduceNumbers, reduceNumbersFn, reduceNumbersWithAdd, reduceNumbersWithAddFn, reduceNumbersWithMax, reduceNumbersWithMaxFn, reduceNumbersWithMin, reduceNumbersWithMinFn, removeByKeyFromBooleanKeyArray, removeCharactersAfterFirstCharacterOccurence, removeCharactersAfterFirstCharacterOccurenceFunction, removeExtensionFromPhoneNumber, removeFromBooleanKeyArray, removeFromSet, removeFromSetCopy, removeHttpFromUrl, removeModelsWithKey, removeModelsWithSameKey, removeModifiers, removeTrailingFileTypeSeparators, removeTrailingSlashes, removeWebProtocolPrefix, repeatString, replaceCharacterAtIndexIf, replaceCharacterAtIndexWith, replaceInvalidFilePathTypeSeparatorsInSlashPath, replaceInvalidFilePathTypeSeparatorsInSlashPathFunction, replaceLastCharacterIf, replaceLastCharacterIfIsFunction, replaceMultipleFilePathsInSlashPath, replaceStringsFunction, requireModelKey, restoreOrder, restoreOrderWithValues, reverseCompareFn, roundNumberToStepFunction, roundNumberUpToStep, roundToPrecision, roundToPrecisionFunction, roundingFunction, runAsyncTaskForValue, runAsyncTasksForValues, safeCompareEquality, safeEqualityComparatorFunction, safeFindBestIndexMatch, searchStringFilterFunction, separateValues, separateValuesToSets, sequentialIncrementingNumberStringModelIdFactory, serverError, setContainsAllValues, setContainsAnyValue, setContainsNoneOfValue, setDeltaChangeKeys, setDeltaFunction, setHasValueFunction, setIncludes, setIncludesFunction, setKeysOnMap, setWebProtocolPrefix, setsAreEquivalent, simpleSortValuesFunctionWithSortRef, slashPathFactory, slashPathInvalidError, slashPathName, slashPathParts, slashPathStartTypeFactory, slashPathType, slashPathValidationFactory, sliceIndexRangeFunction, sortAscendingIndexNumberRefFunction, sortByIndexAscendingCompareFunction, sortByIndexRangeAscendingCompareFunction, sortByLabelFunction, sortByNumberFunction, sortByStringFunction, sortCompareNumberFunction, sortNumbersAscendingFunction, sortValues, sortValuesFunctionOrMapIdentityWithSortRef, sortValuesFunctionWithSortRef, spaceSeparatedCssClasses, splitCommaSeparatedString, splitCommaSeparatedStringToSet, splitJoinNameString, splitJoinRemainder, splitStringAtFirstCharacterOccurence, splitStringAtFirstCharacterOccurenceFunction, splitStringAtIndex, startOfDayForSystemDateInUTC, startOfDayForUTCDateInUTC, stepsFromIndex, stepsFromIndexFunction, stringCharactersToIndexRecord, stringFactoryFromFactory, stringToLowercaseFunction, stringToUppercaseFunction, stringTrimFunction, sumOfIntegersBetween, swMostLatLngPoint, symmetricDifferenceArray, symmetricDifferenceArrayBetweenSets, symmetricDifferenceWithModels, takeFront, takeLast, takeValuesFromIterable, telUrlString, telUrlStringForE164PhoneNumberPair, terminatingFactoryFromArray, throwKeyIsRequired, timePeriodCounter, timer, toAbsoluteSlashPathStartType, toCaseInsensitiveStringArray, toMinuteOfDay, toModelFieldConversions, toModelMapFunctions, toReadableError, toRelativeSlashPathStartType, toggleInSet, toggleInSetCopy, toggleTimerRunning, transformNumberFunction, transformNumberFunctionConfig, transformStringFunction, transformStringFunctionConfig, transformStrings, trimArray, typedServiceRegistry, unique, uniqueCaseInsensitiveStrings, uniqueCaseInsensitiveStringsSet, uniqueKeys, uniqueModels, unitedStatesAddressString, urlWithoutParameters, useAsync, useCallback, useContextFunction, useIterableOrValue, useModelOrKey, usePromise, useValue, validLatLngPoint, validLatLngPointFunction, valueAtIndex, valuesAreBothNullishOrEquivalent, valuesFromPOJO, valuesFromPOJOFunction, vectorMinimumSizeResizeFunction, vectorsAreEqual, waitForMs, websiteDomainAndPathPair, websiteDomainAndPathPairFromWebsiteUrl, websitePathAndQueryPair, websitePathFromWebsiteDomainAndPath, websitePathFromWebsiteUrl, websiteUrlFromPaths, wrapIndexRangeFunction, wrapLatLngPoint, wrapLngValue, wrapMapFunctionOutput, wrapNumberFunction, wrapTuples, wrapUseAsyncFunction, wrapUseFunction };
|
|
16828
|
+
export { ALL_DOUBLE_SLASHES_REGEX, ALL_SLASHES_REGEX, ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX, ASSERTION_ERROR_CODE, ASSERTION_HANDLER, AUTH_ADMIN_ROLE, AUTH_ONBOARDED_ROLE, AUTH_ROLE_CLAIMS_DEFAULT_CLAIM_VALUE, AUTH_ROLE_CLAIMS_DEFAULT_EMPTY_VALUE, AUTH_TOS_SIGNED_ROLE, AUTH_USER_ROLE, AbstractUniqueModel, Assert, AssertMax, AssertMin, AssertionError, AssertionIssueHandler, BooleanKeyArrayUtilityInstance, BooleanStringKeyArrayUtilityInstance, CATCH_ALL_HANDLE_RESULT_KEY, CUT_VALUE_TO_ZERO_PRECISION, DATE_NOW_VALUE, DEFAULT_LAT_LNG_STRING_VALUE, DEFAULT_RANDOM_EMAIL_FACTORY_CONFIG, DEFAULT_RANDOM_PHONE_NUMBER_FACTORY_CONFIG, DEFAULT_READABLE_ERROR_CODE, DEFAULT_SLASH_PATH_ILLEGAL_CHARACTERS, DEFAULT_SLASH_PATH_ILLEGAL_CHARACTER_REPLACEMENT, DEFAULT_UNKNOWN_MODEL_TYPE_STRING, DOLLAR_AMOUNT_PRECISION, DOLLAR_AMOUNT_STRING_REGEX, DataDoesNotExistError, DataIsExpiredError, Day, DestroyFunctionObject, E164PHONE_NUMBER_REGEX, E164PHONE_NUMBER_WITH_EXTENSION_REGEX, E164PHONE_NUMBER_WITH_OPTIONAL_EXTENSION_REGEX, FINAL_PAGE, FIRST_PAGE, FRACTIONAL_HOURS_PRECISION_FUNCTION, FullStorageObject, HAS_WEBSITE_DOMAIN_NAME_REGEX, HOURS_IN_DAY, HTTP_OR_HTTPS_REGEX, HashSet, ISO8601_DAY_STRING_REGEX, ISO8601_DAY_STRING_START_REGEX, ISO_8601_DATE_STRING_REGEX, KeyValueTypleValueFilter, LAT_LNG_PATTERN, LAT_LNG_PATTERN_MAX_PRECISION, LAT_LONG_100KM_PRECISION, LAT_LONG_100M_PRECISION, LAT_LONG_10CM_PRECISION, LAT_LONG_10KM_PRECISION, LAT_LONG_10M_PRECISION, LAT_LONG_1CM_PRECISION, LAT_LONG_1KM_PRECISION, LAT_LONG_1MM_PRECISION, LAT_LONG_1M_PRECISION, LAT_LONG_GRAINS_OF_SAND_PRECISION, LEADING_SLASHES_REGEX, MAP_IDENTITY, MAX_BITWISE_SET_SIZE, MAX_LATITUDE_VALUE, MAX_LONGITUDE_VALUE, MINUTES_IN_DAY, MINUTES_IN_HOUR, MINUTE_OF_DAY_MAXMIMUM, MINUTE_OF_DAY_MINIUMUM, MIN_LATITUDE_VALUE, MIN_LONGITUDE_VALUE, MONTH_DAY_SLASH_DATE_STRING_REGEX, MS_IN_DAY, MS_IN_HOUR, MS_IN_MINUTE, MS_IN_SECOND, MemoryStorageInstance, ModelRelationUtility, NOOP_MODIFIER, NUMBER_STRING_DENCODER_64, NUMBER_STRING_DENCODER_64_DEFAULT_NEGATIVE_PREFIX, NUMBER_STRING_DENCODER_64_DIGITS, PHONE_EXTENSION_NUMBER_REGEX, PRIMATIVE_KEY_DENCODER_VALUE, PageCalculator, PropertyDescriptorUtility, REGEX_SPECIAL_CHARACTERS, REGEX_SPECIAL_CHARACTERS_SET, RelationChange, SECONDS_IN_MINUTE, SHARED_MEMORY_STORAGE, SLASH_PATH_FILE_TYPE_SEPARATOR, SLASH_PATH_SEPARATOR, SORT_VALUE_EQUAL, SORT_VALUE_GREATER_THAN, SORT_VALUE_LESS_THAN, SPLIT_STRING_TREE_NODE_ROOT_VALUE, ServerErrorResponse, SetDeltaChange, SimpleStorageObject, StorageObject, StorageObjectUtility, StoredDataError, SyncState, TOTAL_LATITUDE_RANGE, TOTAL_LONGITUDE_RANGE, TOTAL_SPAN_OF_LONGITUDE, TRAILING_FILE_TYPE_SEPARATORS_REGEX, TRAILING_SLASHES_REGEX, TimeAM, TimerCancelledError, TimerInstance, TypedServiceRegistryInstance, UNLOADED_PAGE, US_STATE_CODE_STRING_REGEX, UTC_DATE_STRING_REGEX, UTC_TIMEZONE_STRING, UTF_8_START_CHARACTER, UTF_PRIVATE_USAGE_AREA_START, UnauthorizedServerErrorResponse, WEB_PROTOCOL_PREFIX_REGEX, ZIP_CODE_STRING_REGEX, addHttpToUrl, addLatLngPoints, addModifiers, addPlusPrefixToNumber, addPrefix, addPrefixFunction, addSuffix, addSuffixFunction, addToSet, addToSetCopy, addToSplitStringTree, allFalsyOrEmptyKeys, allIndexesInIndexRange, allKeyValueTuples, allMaybeSoKeys, allNonUndefinedKeys, allObjectsAreEqual, allValuesAreMaybeNot, allValuesAreNotMaybe, allowValueOnceFilter, applyBestFit, applyToMultipleFields, approximateTimerEndDate, areEqualContext, areEqualPOJOValues, arrayContainsDuplicateValue, arrayContentsDiffer, arrayDecision, arrayDecisionFunction, arrayFactory, arrayInputFactory, arrayToLowercase, arrayToMap, arrayToObject, arrayToUppercase, asArray, asDecisionFunction, asGetter, asIndexRangeCheckFunctionConfig, asIterable, asMinuteOfDay, asNumber, asObjectCopyFactory, asPromise, asSet, assignValuesToPOJO, assignValuesToPOJOFunction, authClaims, authRoleClaimsService, authRolesSetHasRoles, baseWebsiteUrl, batch, batchCalc, bitwiseObjectDencoder, bitwiseObjectEncoder, bitwiseObjectdecoder, bitwiseSetDecoder, bitwiseSetDencoder, booleanFactory, boundNumber, boundNumberFunction, boundToRectangle, build, cachedGetter, capLatValue, capitalizeFirstLetter, caseInsensitiveFilterByIndexOfDecisionFactory, caseInsensitiveString, catchAllHandlerKey, chainMapFunction, chainMapSameFunctions, coerceToEmailParticipants, combineMaps, compareEqualityWithValueFromItemsFunction, compareEqualityWithValueFromItemsFunctionFactory, compareFnOrder, compareWithMappedValuesFunction, computeNextFractionalHour, computeNextFreeIndexFunction, concatArrays, concatArraysUnique, containsAllStringsAnyCase, containsAllValues, containsAnyStringAnyCase, containsAnyValue, containsAnyValueFromSet, containsNoValueFromSet, containsNoneOfValue, containsStringAnyCase, convertEmailParticipantStringToParticipant, convertMaybeToArray, convertParticipantToEmailParticipantString, convertToArray, copyArray, copyField, copyLatLngBound, copyLatLngPoint, copyObject, copySetAndDo, countAllInNestedArray, countPOJOKeys, countPOJOKeysFunction, cronExpressionRepeatingEveryNMinutes, cssClassesSet, cutToPrecision, cutValueToInteger, cutValueToPrecision, cutValueToPrecisionFunction, dateFromLogicalDate, dateFromMinuteOfDay, dateToHoursAndMinutes, dateToMinuteOfDay, dayOfWeek, daysOfWeekArray, daysOfWeekFromEnabledDays, daysOfWeekNameFunction, daysOfWeekNameMap, decisionFunction, decodeHashedValues, decodeHashedValuesWithDecodeMap, decodeModelKeyTypePair, defaultFilterFromPOJOFunctionNoCopy, defaultForwardFunctionFactory, defaultLatLngPoint, defaultLatLngString, dencodeBitwiseSet, diffLatLngBoundPoints, diffLatLngPoints, dollarAmountString, e164PhoneNumberExtensionPair, e164PhoneNumberFromE164PhoneNumberExtensionPair, enabledDaysFromDaysOfWeek, encodeBitwiseSet, encodeModelKeyTypePair, errorMessageContainsString, errorMessageContainsStringFunction, escapeStringForRegex, excludeValues, excludeValuesFromArray, excludeValuesFromSet, existsInIterable, expandArrayMapTuples, expandArrayValueTuples, expandFlattenTreeFunction, expandIndexSet, expandTreeFunction, expandTrees, extendLatLngBound, filterAndMapFunction, filterEmptyValues, filterFalsyAndEmptyValues, filterFromIterable, filterFromPOJO, filterFromPOJOFunction, filterKeyValueTupleFunction, filterKeyValueTuples, filterKeyValueTuplesFunction, filterKeyValueTuplesInputToFilter, filterMaybeValues, filterNullAndUndefinedValues, filterOnlyUndefinedValues, filterUndefinedValues, filterUniqueByIndex, filterUniqueCaseInsensitiveStrings, filterUniqueFunction, filterUniqueTransform, filterUniqueValues, filterValuesByDistance, filterValuesByDistanceNoOrder, filterValuesToSet, filterValuesUsingSet, filteredPage, findAllCharacterOccurences, findAllCharacterOccurencesFunction, findBest, findBestIndexMatch, findBestIndexMatchFunction, findBestIndexSetPair, findBestSplitStringTreeChildMatch, findBestSplitStringTreeChildMatchPath, findBestSplitStringTreeMatch, findBestSplitStringTreeMatchPath, findFirstCharacterOccurence, findInIterable, findIndexOfFirstDuplicateValue, findItemsByIndex, findNext, findPOJOKeys, findPOJOKeysFunction, findStringsRegexString, findToIndexSet, findValuesFrom, firstAndLastCharacterOccurrence, firstAndLastValue, firstValue, firstValueFromIterable, fitToIndexRangeFunction, fixExtraQueryParameters, fixMultiSlashesInSlashPath, flattenArray, flattenArrayOrValueArray, flattenArrayToSet, flattenArrayUnique, flattenArrayUniqueCaseInsensitiveStrings, flattenTree, flattenTreeToArray, flattenTreeToArrayFunction, flattenTrees, forEachInIterable, forEachKeyValue, forEachKeyValueOnPOJOFunction, forEachWithArray, forwardFunction, fractionalHoursToMinutes, generateIfDoesNotExist, getArrayNextIndex, getDayOffset, getDayTomorrow, getDayYesterday, getDaysOfWeekNames, getFunctionType, getNextDay, getNextPageNumber, getOverlappingRectangle, getPageNumber, getPreviousDay, getValueFromGetter, groupValues, handlerBindAccessor, handlerConfigurerFactory, handlerFactory, handlerMappedSetFunction, handlerMappedSetFunctionFactory, handlerSetFunction, hasDifferentStringsNoCase, hasDifferentValues, hasHttpPrefix, hasNonNullValue, hasSameTimezone, hasSameValues, hasValueFunction, hasValueOrNotEmpty, hasValueOrNotEmptyObject, hasWebsiteDomain, hashSetForIndexed, hourToFractionalHour, idBatchFactory, incrementingNumberFactory, indexDeltaGroup, indexDeltaGroupFunction, indexRange, indexRangeCheckFunction, indexRangeCheckReaderFunction, indexRangeForArray, indexRangeOverlapsIndexRange, indexRangeOverlapsIndexRangeFunction, indexRangeReaderPairFactory, indexRefMap, indexedValuesArrayAccessorFactory, insertIntoBooleanKeyArray, invertBooleanReturnFunction, invertDecision, invertFilter, isAllowed, isClassLikeType, isCompleteUnitedStatesAddress, isConsideredUtcTimezoneString, isDate, isDefaultLatLngPoint, isDefaultLatLngPointValue, isDefaultReadableError, isDefinedAndNotFalse, isDollarAmountString, isE164PhoneNumber, isE164PhoneNumberWithExtension, isEmptyIterable, isEqualContext, isEqualToValueDecisionFunction, isEvenNumber, isFalseBooleanKeyArray, isFinalPage, isGetter, isISO8601DateString, isISO8601DayString, isISO8601DayStringStart, isInAllowedDaysOfWeekSet, isInNumberBoundFunction, isInSetDecisionFunction, isIndexNumberInIndexRange, isIndexNumberInIndexRangeFunction, isIndexRangeInIndexRange, isIndexRangeInIndexRangeFunction, isIterable, isLatLngBound, isLatLngBoundWithinLatLngBound, isLatLngPoint, isLatLngPointWithinLatLngBound, isLatLngString, isLogicalDateStringCode, isMapIdentityFunction, isMaybeNot, isMaybeNotOrTrue, isMaybeSo, isMinuteOfDay, isModelKey, isMonthDaySlashDate, isNonClassFunction, isNotNullOrEmptyString, isNumberDivisibleBy, isObjectWithConstructor, isOddNumber, isPromise, isPromiseLike, isSameLatLngBound, isSameLatLngPoint, isSameNonNullValue, isSameVector, isSelectedDecisionFunctionFactory, isSelectedIndexDecisionFunction, isServerError, isSlashPathFile, isSlashPathFolder, isSlashPathTypedFile, isStringOrTrue, isTrueBooleanKeyArray, isUTCDateString, isUsStateCodeString, isValidLatLngPoint, isValidLatitude, isValidLongitude, isValidNumberBound, isValidPhoneExtensionNumber, isValidSlashPath, isWebsiteUrl, isWebsiteUrlWithPrefix, isWithinLatLngBoundFunction, isolateSlashPath, isolateSlashPathFunction, isolateWebsitePathFunction, itemCountForBatchIndex, iterableToArray, iterableToMap, iterableToSet, iterablesAreSetEquivalent, iterate, iterateFilteredPages, joinHostAndPort, joinStringsWithSpaces, keepCharactersAfterFirstCharacterOccurence, keepCharactersAfterFirstCharacterOccurenceFunction, keepFromSetCopy, keepValuesFromArray, keepValuesFromSet, keyValueMapFactory, labeledValueMap, lastValue, latLngBound, latLngBoundCenterPoint, latLngBoundEastBound, latLngBoundFromInput, latLngBoundFullyWrapsMap, latLngBoundFunction, latLngBoundNorthBound, latLngBoundNorthEastPoint, latLngBoundNorthWestPoint, latLngBoundOverlapsLatLngBound, latLngBoundSouthBound, latLngBoundSouthEastPoint, latLngBoundSouthWestPoint, latLngBoundStrictlyWrapsMap, latLngBoundTuple, latLngBoundTupleFunction, latLngBoundWestBound, latLngBoundWrapsMap, latLngDataPointFunction, latLngPoint, latLngPointFromString, latLngPointFunction, latLngPointPrecisionFunction, latLngString, latLngStringFunction, latLngTuple, latLngTupleFunction, limitArray, lonLatTuple, lowercaseFirstLetter, mailToUrlString, makeBestFit, makeCopyModelFieldFunction, makeDateMonthForMonthOfYear, makeGetter, makeHandler, makeHashDecodeMap, makeKeyPairs, makeModelConversionFieldValuesFunction, makeModelMap, makeModelMapFunctions, makeMultiModelKeyMap, makeValuesGroupMap, makeWithFactory, makeWithFactoryInput, mapArrayFunction, mapFunctionOutput, mapFunctionOutputPair, mapGetter, mapGetterFactory, mapIdentityFunction, mapIterable, mapKeysIntersectionObjectToArray, mapMaybeFunction, mapObjectMap, mapObjectMapFunction, mapObjectToTargetObject, mapPromiseOrValue, mapToObject, mapToTuples, mapValuesToSet, mappedUseAsyncFunction, mappedUseFunction, mapsHaveSameKeys, maybeMergeModelModifiers, maybeMergeModifiers, maybeModifierMapToFunction, maybeSet, mergeArrayIntoArray, mergeArrayOrValueIntoArray, mergeArrays, mergeArraysIntoArray, mergeFilterFunctions, mergeIntoArray, mergeModifiers, mergeObjects, mergeObjectsFunction, mergeSlashPaths, messageFromError, minAndMaxFunction, minAndMaxIndex, minAndMaxIndexFunction, minAndMaxIndexItemsFunction, minAndMaxNumber, minutesToFractionalHours, minutesToHoursAndMinutes, modelFieldConversions, modelFieldMapFunction, modelFieldMapFunctions, modelTypeDataPairFactory, modifier, modifierMapToFunction, modifyModelMapFunction, modifyModelMapFunctions, monthDaySlashDateToDateString, monthOfYearFromDate, monthOfYearFromDateMonth, multiKeyValueMapFactory, multiValueMapBuilder, neMostLatLngPoint, nearestDivisibleValues, numberStringDencoder, numberStringDencoderDecodedNumberValueFunction, numberStringDencoderEncodedStringValueFunction, numberStringDencoderFunction, objectCopyFactory, objectDeltaArrayCompressor, objectFieldEqualityChecker, objectFlatMergeMatrix, objectHasKey, objectHasKeys, objectHasNoKeys, objectIsEmpty, objectKeyEqualityComparatorFunction, objectKeysEqualityComparatorFunction, objectMergeMatrix, objectToMap, objectToTuples, overlapsLatLngBoundFunction, overrideInObject, overrideInObjectFunctionFactory, padStartFunction, pairGroupValues, parseISO8601DayStringToUTCDate, partialServerError, passThrough, percentNumberFromDecimal, percentNumberToDecimal, performAsyncTask, performAsyncTasks, performBatchLoop, performMakeLoop, performTaskCountLoop, performTaskLoop, performTasksFromFactoryInParallelFunction, performTasksInParallel, performTasksInParallelFunction, pickOneRandomly, poll, primativeKeyDencoder, primativeKeyDencoderMap, primativeKeyStringDencoder, primativeValuesDelta, promiseReference, protectedFactory, pushArrayItemsIntoArray, pushElementOntoArray, pushItemOrArrayItemsIntoArray, randomArrayFactory, randomArrayIndex, randomBoolean, randomEmailFactory, randomFromArrayFactory, randomLatLngFactory, randomLatLngFromCenterFactory, randomNumber, randomNumberFactory, randomPhoneNumberFactory, randomPickFactory, range, rangedIndexedValuesArrayAccessorFactory, rangedIndexedValuesArrayAccessorInfoFactory, readBooleanKeySafetyWrap, readDomainFromEmailAddress, readDomainsFromEmailAddresses, readEmailDomainFromUrlOrEmailAddress, readIndexNumber, readKeysFrom, readKeysFromFilterUniqueFunctionAdditionalKeys, readKeysFromFilterUniqueFunctionAdditionalKeysInput, readKeysFunction, readKeysSetFrom, readKeysSetFunction, readKeysToMap, readModelKey, readModelKeyFromObject, readModelKeys, readModelKeysFromObjects, readMultipleKeysToMap, readUniqueModelKey, readableError, readableStreamToBase64, readableStreamToBuffer, readableStreamToStringFunction, rectangleOverlapsRectangle, reduceBooleansFn, reduceBooleansWithAnd, reduceBooleansWithAndFn, reduceBooleansWithOr, reduceBooleansWithOrFn, reduceNumbers, reduceNumbersFn, reduceNumbersWithAdd, reduceNumbersWithAddFn, reduceNumbersWithMax, reduceNumbersWithMaxFn, reduceNumbersWithMin, reduceNumbersWithMinFn, removeByKeyFromBooleanKeyArray, removeCharactersAfterFirstCharacterOccurence, removeCharactersAfterFirstCharacterOccurenceFunction, removeExtensionFromPhoneNumber, removeFromBooleanKeyArray, removeFromSet, removeFromSetCopy, removeHttpFromUrl, removeModelsWithKey, removeModelsWithSameKey, removeModifiers, removeTrailingFileTypeSeparators, removeTrailingSlashes, removeWebProtocolPrefix, repeatString, replaceCharacterAtIndexIf, replaceCharacterAtIndexWith, replaceInvalidFilePathTypeSeparatorsInSlashPath, replaceInvalidFilePathTypeSeparatorsInSlashPathFunction, replaceLastCharacterIf, replaceLastCharacterIfIsFunction, replaceMultipleFilePathsInSlashPath, replaceStringsFunction, requireModelKey, restoreOrder, restoreOrderWithValues, reverseCompareFn, roundNumberToStepFunction, roundNumberUpToStep, roundToPrecision, roundToPrecisionFunction, roundingFunction, runAsyncTaskForValue, runAsyncTasksForValues, safeCompareEquality, safeEqualityComparatorFunction, safeFindBestIndexMatch, searchStringFilterFunction, separateValues, separateValuesToSets, sequentialIncrementingNumberStringModelIdFactory, serverError, setContainsAllValues, setContainsAnyValue, setContainsNoneOfValue, setDeltaChangeKeys, setDeltaFunction, setHasValueFunction, setIncludes, setIncludesFunction, setKeysOnMap, setWebProtocolPrefix, setsAreEquivalent, simpleSortValuesFunctionWithSortRef, slashPathFactory, slashPathInvalidError, slashPathName, slashPathParts, slashPathStartTypeFactory, slashPathType, slashPathValidationFactory, sliceIndexRangeFunction, sortAscendingIndexNumberRefFunction, sortByIndexAscendingCompareFunction, sortByIndexRangeAscendingCompareFunction, sortByLabelFunction, sortByNumberFunction, sortByStringFunction, sortCompareNumberFunction, sortNumbersAscendingFunction, sortValues, sortValuesFunctionOrMapIdentityWithSortRef, sortValuesFunctionWithSortRef, spaceSeparatedCssClasses, splitCommaSeparatedString, splitCommaSeparatedStringToSet, splitJoinNameString, splitJoinRemainder, splitStringAtFirstCharacterOccurence, splitStringAtFirstCharacterOccurenceFunction, splitStringAtIndex, splitStringTreeFactory, startOfDayForSystemDateInUTC, startOfDayForUTCDateInUTC, stepsFromIndex, stepsFromIndexFunction, stringCharactersToIndexRecord, stringFactoryFromFactory, stringToLowercaseFunction, stringToUppercaseFunction, stringTrimFunction, sumOfIntegersBetween, swMostLatLngPoint, symmetricDifferenceArray, symmetricDifferenceArrayBetweenSets, symmetricDifferenceWithModels, takeFront, takeLast, takeValuesFromIterable, telUrlString, telUrlStringForE164PhoneNumberPair, terminatingFactoryFromArray, throwKeyIsRequired, timePeriodCounter, timer, toAbsoluteSlashPathStartType, toCaseInsensitiveStringArray, toMinuteOfDay, toModelFieldConversions, toModelMapFunctions, toReadableError, toRelativeSlashPathStartType, toggleInSet, toggleInSetCopy, toggleTimerRunning, transformNumberFunction, transformNumberFunctionConfig, transformStringFunction, transformStringFunctionConfig, transformStrings, trimArray, typedServiceRegistry, unique, uniqueCaseInsensitiveStrings, uniqueCaseInsensitiveStringsSet, uniqueKeys, uniqueModels, unitedStatesAddressString, urlWithoutParameters, useAsync, useCallback, useContextFunction, useIterableOrValue, useModelOrKey, usePromise, useValue, validLatLngPoint, validLatLngPointFunction, valueAtIndex, valuesAreBothNullishOrEquivalent, valuesFromPOJO, valuesFromPOJOFunction, vectorMinimumSizeResizeFunction, vectorsAreEqual, waitForMs, websiteDomainAndPathPair, websiteDomainAndPathPairFromWebsiteUrl, websitePathAndQueryPair, websitePathFromWebsiteDomainAndPath, websitePathFromWebsiteUrl, websiteUrlFromPaths, wrapIndexRangeFunction, wrapLatLngPoint, wrapLngValue, wrapMapFunctionOutput, wrapNumberFunction, wrapTuples, wrapUseAsyncFunction, wrapUseFunction };
|
package/package.json
CHANGED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { type ArrayOrValue } from '../array/array';
|
|
2
|
+
import { type Maybe } from '../value/maybe.type';
|
|
3
|
+
/**
|
|
4
|
+
* A tree node
|
|
5
|
+
*/
|
|
6
|
+
export type SplitStringTreeNodeString = string;
|
|
7
|
+
export declare const SPLIT_STRING_TREE_NODE_ROOT_VALUE = "";
|
|
8
|
+
export type SplitStringTreeChildren<M = unknown> = {
|
|
9
|
+
[key: string]: SplitStringTree<M>;
|
|
10
|
+
};
|
|
11
|
+
export interface SplitStringTree<M = unknown> {
|
|
12
|
+
/**
|
|
13
|
+
* The full string value.
|
|
14
|
+
*
|
|
15
|
+
* I.E.
|
|
16
|
+
*
|
|
17
|
+
* a/b/c
|
|
18
|
+
*/
|
|
19
|
+
readonly fullValue: SplitStringTreeNodeString;
|
|
20
|
+
/**
|
|
21
|
+
* The specific node value. Equal to the "last" "element" of the fullValue.
|
|
22
|
+
*
|
|
23
|
+
* I.E.
|
|
24
|
+
*
|
|
25
|
+
* "c" for the fullValue of "a/b/c"
|
|
26
|
+
*/
|
|
27
|
+
readonly nodeValue: string;
|
|
28
|
+
/**
|
|
29
|
+
* Child nodes, keyed by their node value.
|
|
30
|
+
*
|
|
31
|
+
* I.E.
|
|
32
|
+
*
|
|
33
|
+
* { a: { b: { c: {} }} }
|
|
34
|
+
*/
|
|
35
|
+
readonly children: SplitStringTreeChildren<M>;
|
|
36
|
+
/**
|
|
37
|
+
* Meta value for the node.
|
|
38
|
+
*/
|
|
39
|
+
readonly meta?: M;
|
|
40
|
+
}
|
|
41
|
+
export type SplitStringTreeRoot<M = unknown> = Pick<SplitStringTree<M>, 'children'>;
|
|
42
|
+
export interface SplitStringTreeFactoryInput<M = unknown> extends Pick<AddToSplitStringTreeInputValueWithMeta<M>, 'leafMeta' | 'nodeMeta'> {
|
|
43
|
+
readonly values: ArrayOrValue<SplitStringTreeNodeString>;
|
|
44
|
+
}
|
|
45
|
+
export type SplitStringTreeFactory<M = unknown> = ((input: SplitStringTreeFactoryInput, existing?: SplitStringTree<M>) => SplitStringTree<M>) & {
|
|
46
|
+
readonly _separator: string;
|
|
47
|
+
};
|
|
48
|
+
export type SplitStringTreeFactoryConfig<M = unknown> = AddToSplitStringTreeInputConfig<M>;
|
|
49
|
+
/**
|
|
50
|
+
* Creates a SplitStringTreeFactory with the configured splitter.
|
|
51
|
+
*
|
|
52
|
+
* @param config
|
|
53
|
+
* @returns
|
|
54
|
+
*/
|
|
55
|
+
export declare function splitStringTreeFactory<M = unknown>(config: SplitStringTreeFactoryConfig<M>): SplitStringTreeFactory<M>;
|
|
56
|
+
export interface AddToSplitStringTreeInputValueWithMeta<M = unknown> {
|
|
57
|
+
readonly value: SplitStringTreeNodeString;
|
|
58
|
+
/**
|
|
59
|
+
* The meta value to merge/attach to each node in the tree
|
|
60
|
+
*/
|
|
61
|
+
readonly nodeMeta?: M;
|
|
62
|
+
/**
|
|
63
|
+
* The meta value to merge/attach to each leaf node
|
|
64
|
+
*/
|
|
65
|
+
readonly leafMeta?: M;
|
|
66
|
+
}
|
|
67
|
+
export interface AddToSplitStringTreeInputConfig<M = unknown> {
|
|
68
|
+
readonly separator: string;
|
|
69
|
+
/**
|
|
70
|
+
* Used for merging the meta values of two nodes.
|
|
71
|
+
*
|
|
72
|
+
* @param current
|
|
73
|
+
* @param next
|
|
74
|
+
* @returns
|
|
75
|
+
*/
|
|
76
|
+
readonly mergeMeta?: (current: M, next: M) => M;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Adds a value to the target SplitStringTree.
|
|
80
|
+
*
|
|
81
|
+
* @param tree
|
|
82
|
+
* @param value
|
|
83
|
+
* @param separator
|
|
84
|
+
* @returns
|
|
85
|
+
*/
|
|
86
|
+
export declare function addToSplitStringTree<M = unknown>(tree: SplitStringTree<M>, inputValue: AddToSplitStringTreeInputValueWithMeta<M>, config: AddToSplitStringTreeInputConfig<M>): SplitStringTree<M>;
|
|
87
|
+
/**
|
|
88
|
+
* Returns the best match for the value in the tree, including the input tree value.
|
|
89
|
+
*
|
|
90
|
+
* Only returns a result if there is match of any kind.
|
|
91
|
+
*
|
|
92
|
+
* @param tree
|
|
93
|
+
* @param value
|
|
94
|
+
* @returns
|
|
95
|
+
*/
|
|
96
|
+
export declare function findBestSplitStringTreeMatch(tree: SplitStringTree, value: SplitStringTreeNodeString): Maybe<SplitStringTree>;
|
|
97
|
+
/**
|
|
98
|
+
* Returns the best match for the value in the true, excluding the input tree value.
|
|
99
|
+
*
|
|
100
|
+
* Only returns a result if there is match of any kind.
|
|
101
|
+
*
|
|
102
|
+
* @param tree
|
|
103
|
+
* @param value
|
|
104
|
+
* @returns
|
|
105
|
+
*/
|
|
106
|
+
export declare function findBestSplitStringTreeChildMatch<M = unknown>(tree: SplitStringTree<M>, value: SplitStringTreeNodeString): Maybe<SplitStringTree<M>>;
|
|
107
|
+
/**
|
|
108
|
+
* Returns the best match for the value in the tree, including the input tree value.
|
|
109
|
+
*
|
|
110
|
+
* Only returns a result if there is match of any kind.
|
|
111
|
+
*
|
|
112
|
+
* @param tree
|
|
113
|
+
* @param value
|
|
114
|
+
* @returns
|
|
115
|
+
*/
|
|
116
|
+
export declare function findBestSplitStringTreeMatchPath<M = unknown>(tree: SplitStringTree<M>, value: SplitStringTreeNodeString): Maybe<SplitStringTree<M>[]>;
|
|
117
|
+
/**
|
|
118
|
+
* Returns the best match for the value in the true, excluding the input tree value.
|
|
119
|
+
*
|
|
120
|
+
* Only returns a result if there is match of any kind.
|
|
121
|
+
*
|
|
122
|
+
* @param tree
|
|
123
|
+
* @param value
|
|
124
|
+
* @returns
|
|
125
|
+
*/
|
|
126
|
+
export declare function findBestSplitStringTreeChildMatchPath<M = unknown>(tree: SplitStringTree<M>, value: SplitStringTreeNodeString): Maybe<SplitStringTree<M>[]>;
|
package/test/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [10.1.21](https://github.com/dereekb/dbx-components/compare/v10.1.20-dev...v10.1.21) (2024-07-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [10.1.20](https://github.com/dereekb/dbx-components/compare/v10.1.19-dev...v10.1.20) (2024-06-12)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [10.1.19](https://github.com/dereekb/dbx-components/compare/v10.1.18-dev...v10.1.19) (2024-05-24)
|
|
6
14
|
|
|
7
15
|
|