@dereekb/util 10.1.20 → 10.1.22
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 +176 -0
- package/index.esm.js +180 -1
- package/package.json +1 -1
- package/src/lib/string/index.d.ts +1 -0
- package/src/lib/string/tree.d.ts +132 -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.22](https://github.com/dereekb/dbx-components/compare/v10.1.21-dev...v10.1.22) (2024-07-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [10.1.21](https://github.com/dereekb/dbx-components/compare/v10.1.20-dev...v10.1.21) (2024-07-09)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [10.1.20](https://github.com/dereekb/dbx-components/compare/v10.1.19-dev...v10.1.20) (2024-06-12)
|
|
6
14
|
|
|
7
15
|
|
package/fetch/package.json
CHANGED
package/index.cjs.js
CHANGED
|
@@ -13708,6 +13708,174 @@ 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
|
+
function applySplitStringTreeWithMultipleValues(input) {
|
|
13746
|
+
const {
|
|
13747
|
+
entries,
|
|
13748
|
+
factory,
|
|
13749
|
+
existing
|
|
13750
|
+
} = input;
|
|
13751
|
+
let result = existing;
|
|
13752
|
+
entries.forEach(entry => {
|
|
13753
|
+
result = factory(entry, result);
|
|
13754
|
+
});
|
|
13755
|
+
if (!result) {
|
|
13756
|
+
result = factory({
|
|
13757
|
+
values: []
|
|
13758
|
+
});
|
|
13759
|
+
}
|
|
13760
|
+
return result;
|
|
13761
|
+
}
|
|
13762
|
+
/**
|
|
13763
|
+
* Adds a value to the target SplitStringTree.
|
|
13764
|
+
*
|
|
13765
|
+
* @param tree
|
|
13766
|
+
* @param value
|
|
13767
|
+
* @param separator
|
|
13768
|
+
* @returns
|
|
13769
|
+
*/
|
|
13770
|
+
function addToSplitStringTree(tree, inputValue, config) {
|
|
13771
|
+
const {
|
|
13772
|
+
separator,
|
|
13773
|
+
mergeMeta
|
|
13774
|
+
} = config;
|
|
13775
|
+
const {
|
|
13776
|
+
value,
|
|
13777
|
+
leafMeta,
|
|
13778
|
+
nodeMeta
|
|
13779
|
+
} = inputValue;
|
|
13780
|
+
function nextMeta(node, nextMeta) {
|
|
13781
|
+
if (mergeMeta && node.meta != null) {
|
|
13782
|
+
return mergeMeta(node.meta, nextMeta);
|
|
13783
|
+
} else {
|
|
13784
|
+
return nextMeta;
|
|
13785
|
+
}
|
|
13786
|
+
}
|
|
13787
|
+
const parts = value.split(separator);
|
|
13788
|
+
let currentNode = tree;
|
|
13789
|
+
parts.forEach(nodeValue => {
|
|
13790
|
+
const existingChildNode = currentNode.children[nodeValue];
|
|
13791
|
+
const childNode = existingChildNode !== null && existingChildNode !== void 0 ? existingChildNode : {
|
|
13792
|
+
nodeValue,
|
|
13793
|
+
children: {}
|
|
13794
|
+
}; // use the existing node or create a new node
|
|
13795
|
+
if (!existingChildNode) {
|
|
13796
|
+
childNode.fullValue = currentNode.fullValue ? currentNode.fullValue + separator + nodeValue : nodeValue;
|
|
13797
|
+
currentNode.children[nodeValue] = childNode;
|
|
13798
|
+
}
|
|
13799
|
+
// add the meta to the node
|
|
13800
|
+
if (nodeMeta != null) {
|
|
13801
|
+
childNode.meta = nextMeta(childNode, nodeMeta);
|
|
13802
|
+
}
|
|
13803
|
+
currentNode = childNode;
|
|
13804
|
+
});
|
|
13805
|
+
// add the meta to the leaf node
|
|
13806
|
+
if (leafMeta != null) {
|
|
13807
|
+
currentNode.meta = nextMeta(currentNode, leafMeta);
|
|
13808
|
+
}
|
|
13809
|
+
return tree;
|
|
13810
|
+
}
|
|
13811
|
+
// MARK: Search
|
|
13812
|
+
/**
|
|
13813
|
+
* Returns the best match for the value in the tree, including the input tree value.
|
|
13814
|
+
*
|
|
13815
|
+
* Only returns a result if there is match of any kind.
|
|
13816
|
+
*
|
|
13817
|
+
* @param tree
|
|
13818
|
+
* @param value
|
|
13819
|
+
* @returns
|
|
13820
|
+
*/
|
|
13821
|
+
function findBestSplitStringTreeMatch(tree, value) {
|
|
13822
|
+
return lastValue(findBestSplitStringTreeMatchPath(tree, value));
|
|
13823
|
+
}
|
|
13824
|
+
/**
|
|
13825
|
+
* Returns the best match for the value in the true, excluding the input tree value.
|
|
13826
|
+
*
|
|
13827
|
+
* Only returns a result if there is match of any kind.
|
|
13828
|
+
*
|
|
13829
|
+
* @param tree
|
|
13830
|
+
* @param value
|
|
13831
|
+
* @returns
|
|
13832
|
+
*/
|
|
13833
|
+
function findBestSplitStringTreeChildMatch(tree, value) {
|
|
13834
|
+
return lastValue(findBestSplitStringTreeChildMatchPath(tree, value));
|
|
13835
|
+
}
|
|
13836
|
+
/**
|
|
13837
|
+
* Returns the best match for the value in the tree, including the input tree value.
|
|
13838
|
+
*
|
|
13839
|
+
* Only returns a result if there is match of any kind.
|
|
13840
|
+
*
|
|
13841
|
+
* @param tree
|
|
13842
|
+
* @param value
|
|
13843
|
+
* @returns
|
|
13844
|
+
*/
|
|
13845
|
+
function findBestSplitStringTreeMatchPath(tree, value) {
|
|
13846
|
+
let bestResult = findBestSplitStringTreeChildMatchPath(tree, value);
|
|
13847
|
+
if (!bestResult && tree.fullValue && value.startsWith(tree.fullValue)) {
|
|
13848
|
+
bestResult = [tree];
|
|
13849
|
+
}
|
|
13850
|
+
return bestResult;
|
|
13851
|
+
}
|
|
13852
|
+
/**
|
|
13853
|
+
* Returns the best match for the value in the true, excluding the input tree value.
|
|
13854
|
+
*
|
|
13855
|
+
* Only returns a result if there is match of any kind.
|
|
13856
|
+
*
|
|
13857
|
+
* @param tree
|
|
13858
|
+
* @param value
|
|
13859
|
+
* @returns
|
|
13860
|
+
*/
|
|
13861
|
+
function findBestSplitStringTreeChildMatchPath(tree, value) {
|
|
13862
|
+
const {
|
|
13863
|
+
children
|
|
13864
|
+
} = tree;
|
|
13865
|
+
let bestMatchPath;
|
|
13866
|
+
Object.entries(children).find(([_, child]) => {
|
|
13867
|
+
var _a;
|
|
13868
|
+
let stopScan = false;
|
|
13869
|
+
if (value.startsWith(child.fullValue)) {
|
|
13870
|
+
const bestChildPath = (_a = findBestSplitStringTreeChildMatchPath(child, value)) !== null && _a !== void 0 ? _a : [];
|
|
13871
|
+
bestMatchPath = [child, ...bestChildPath];
|
|
13872
|
+
stopScan = true;
|
|
13873
|
+
}
|
|
13874
|
+
return stopScan;
|
|
13875
|
+
});
|
|
13876
|
+
return bestMatchPath;
|
|
13877
|
+
}
|
|
13878
|
+
|
|
13711
13879
|
/*eslint @typescript-eslint/no-explicit-any:"off"*/
|
|
13712
13880
|
// any is used with intent here, as the recursive TreeNode value requires its use to terminate.
|
|
13713
13881
|
function expandTreeFunction(config) {
|
|
@@ -14432,6 +14600,7 @@ exports.SLASH_PATH_SEPARATOR = SLASH_PATH_SEPARATOR;
|
|
|
14432
14600
|
exports.SORT_VALUE_EQUAL = SORT_VALUE_EQUAL;
|
|
14433
14601
|
exports.SORT_VALUE_GREATER_THAN = SORT_VALUE_GREATER_THAN;
|
|
14434
14602
|
exports.SORT_VALUE_LESS_THAN = SORT_VALUE_LESS_THAN;
|
|
14603
|
+
exports.SPLIT_STRING_TREE_NODE_ROOT_VALUE = SPLIT_STRING_TREE_NODE_ROOT_VALUE;
|
|
14435
14604
|
exports.ServerErrorResponse = ServerErrorResponse;
|
|
14436
14605
|
exports.SimpleStorageObject = SimpleStorageObject;
|
|
14437
14606
|
exports.StorageObject = StorageObject;
|
|
@@ -14464,6 +14633,7 @@ exports.addSuffix = addSuffix;
|
|
|
14464
14633
|
exports.addSuffixFunction = addSuffixFunction;
|
|
14465
14634
|
exports.addToSet = addToSet;
|
|
14466
14635
|
exports.addToSetCopy = addToSetCopy;
|
|
14636
|
+
exports.addToSplitStringTree = addToSplitStringTree;
|
|
14467
14637
|
exports.allFalsyOrEmptyKeys = allFalsyOrEmptyKeys;
|
|
14468
14638
|
exports.allIndexesInIndexRange = allIndexesInIndexRange;
|
|
14469
14639
|
exports.allKeyValueTuples = allKeyValueTuples;
|
|
@@ -14474,6 +14644,7 @@ exports.allValuesAreMaybeNot = allValuesAreMaybeNot;
|
|
|
14474
14644
|
exports.allValuesAreNotMaybe = allValuesAreNotMaybe;
|
|
14475
14645
|
exports.allowValueOnceFilter = allowValueOnceFilter;
|
|
14476
14646
|
exports.applyBestFit = applyBestFit;
|
|
14647
|
+
exports.applySplitStringTreeWithMultipleValues = applySplitStringTreeWithMultipleValues;
|
|
14477
14648
|
exports.applyToMultipleFields = applyToMultipleFields;
|
|
14478
14649
|
exports.approximateTimerEndDate = approximateTimerEndDate;
|
|
14479
14650
|
exports.areEqualContext = areEqualContext;
|
|
@@ -14631,6 +14802,10 @@ exports.findBest = findBest;
|
|
|
14631
14802
|
exports.findBestIndexMatch = findBestIndexMatch;
|
|
14632
14803
|
exports.findBestIndexMatchFunction = findBestIndexMatchFunction;
|
|
14633
14804
|
exports.findBestIndexSetPair = findBestIndexSetPair;
|
|
14805
|
+
exports.findBestSplitStringTreeChildMatch = findBestSplitStringTreeChildMatch;
|
|
14806
|
+
exports.findBestSplitStringTreeChildMatchPath = findBestSplitStringTreeChildMatchPath;
|
|
14807
|
+
exports.findBestSplitStringTreeMatch = findBestSplitStringTreeMatch;
|
|
14808
|
+
exports.findBestSplitStringTreeMatchPath = findBestSplitStringTreeMatchPath;
|
|
14634
14809
|
exports.findFirstCharacterOccurence = findFirstCharacterOccurence;
|
|
14635
14810
|
exports.findInIterable = findInIterable;
|
|
14636
14811
|
exports.findIndexOfFirstDuplicateValue = findIndexOfFirstDuplicateValue;
|
|
@@ -15084,6 +15259,7 @@ exports.splitJoinRemainder = splitJoinRemainder;
|
|
|
15084
15259
|
exports.splitStringAtFirstCharacterOccurence = splitStringAtFirstCharacterOccurence;
|
|
15085
15260
|
exports.splitStringAtFirstCharacterOccurenceFunction = splitStringAtFirstCharacterOccurenceFunction;
|
|
15086
15261
|
exports.splitStringAtIndex = splitStringAtIndex;
|
|
15262
|
+
exports.splitStringTreeFactory = splitStringTreeFactory;
|
|
15087
15263
|
exports.startOfDayForSystemDateInUTC = startOfDayForSystemDateInUTC;
|
|
15088
15264
|
exports.startOfDayForUTCDateInUTC = startOfDayForUTCDateInUTC;
|
|
15089
15265
|
exports.stepsFromIndex = stepsFromIndex;
|
package/index.esm.js
CHANGED
|
@@ -15902,6 +15902,185 @@ 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
|
+
function applySplitStringTreeWithMultipleValues(input) {
|
|
15944
|
+
const {
|
|
15945
|
+
entries,
|
|
15946
|
+
factory,
|
|
15947
|
+
existing
|
|
15948
|
+
} = input;
|
|
15949
|
+
let result = existing;
|
|
15950
|
+
entries.forEach(entry => {
|
|
15951
|
+
result = factory(entry, result);
|
|
15952
|
+
});
|
|
15953
|
+
if (!result) {
|
|
15954
|
+
result = factory({
|
|
15955
|
+
values: []
|
|
15956
|
+
});
|
|
15957
|
+
}
|
|
15958
|
+
return result;
|
|
15959
|
+
}
|
|
15960
|
+
/**
|
|
15961
|
+
* Adds a value to the target SplitStringTree.
|
|
15962
|
+
*
|
|
15963
|
+
* @param tree
|
|
15964
|
+
* @param value
|
|
15965
|
+
* @param separator
|
|
15966
|
+
* @returns
|
|
15967
|
+
*/
|
|
15968
|
+
function addToSplitStringTree(tree, inputValue, config) {
|
|
15969
|
+
const {
|
|
15970
|
+
separator,
|
|
15971
|
+
mergeMeta
|
|
15972
|
+
} = config;
|
|
15973
|
+
const {
|
|
15974
|
+
value,
|
|
15975
|
+
leafMeta,
|
|
15976
|
+
nodeMeta
|
|
15977
|
+
} = inputValue;
|
|
15978
|
+
function nextMeta(node, nextMeta) {
|
|
15979
|
+
if (mergeMeta && node.meta != null) {
|
|
15980
|
+
return mergeMeta(node.meta, nextMeta);
|
|
15981
|
+
} else {
|
|
15982
|
+
return nextMeta;
|
|
15983
|
+
}
|
|
15984
|
+
}
|
|
15985
|
+
const parts = value.split(separator);
|
|
15986
|
+
let currentNode = tree;
|
|
15987
|
+
parts.forEach(nodeValue => {
|
|
15988
|
+
const existingChildNode = currentNode.children[nodeValue];
|
|
15989
|
+
const childNode = existingChildNode != null ? existingChildNode : {
|
|
15990
|
+
nodeValue,
|
|
15991
|
+
children: {}
|
|
15992
|
+
}; // use the existing node or create a new node
|
|
15993
|
+
|
|
15994
|
+
if (!existingChildNode) {
|
|
15995
|
+
childNode.fullValue = currentNode.fullValue ? currentNode.fullValue + separator + nodeValue : nodeValue;
|
|
15996
|
+
currentNode.children[nodeValue] = childNode;
|
|
15997
|
+
}
|
|
15998
|
+
|
|
15999
|
+
// add the meta to the node
|
|
16000
|
+
if (nodeMeta != null) {
|
|
16001
|
+
childNode.meta = nextMeta(childNode, nodeMeta);
|
|
16002
|
+
}
|
|
16003
|
+
currentNode = childNode;
|
|
16004
|
+
});
|
|
16005
|
+
|
|
16006
|
+
// add the meta to the leaf node
|
|
16007
|
+
if (leafMeta != null) {
|
|
16008
|
+
currentNode.meta = nextMeta(currentNode, leafMeta);
|
|
16009
|
+
}
|
|
16010
|
+
return tree;
|
|
16011
|
+
}
|
|
16012
|
+
|
|
16013
|
+
// MARK: Search
|
|
16014
|
+
/**
|
|
16015
|
+
* Returns the best match for the value in the tree, including the input tree value.
|
|
16016
|
+
*
|
|
16017
|
+
* Only returns a result if there is match of any kind.
|
|
16018
|
+
*
|
|
16019
|
+
* @param tree
|
|
16020
|
+
* @param value
|
|
16021
|
+
* @returns
|
|
16022
|
+
*/
|
|
16023
|
+
function findBestSplitStringTreeMatch(tree, value) {
|
|
16024
|
+
return lastValue(findBestSplitStringTreeMatchPath(tree, value));
|
|
16025
|
+
}
|
|
16026
|
+
|
|
16027
|
+
/**
|
|
16028
|
+
* Returns the best match for the value in the true, excluding the input tree value.
|
|
16029
|
+
*
|
|
16030
|
+
* Only returns a result if there is match of any kind.
|
|
16031
|
+
*
|
|
16032
|
+
* @param tree
|
|
16033
|
+
* @param value
|
|
16034
|
+
* @returns
|
|
16035
|
+
*/
|
|
16036
|
+
function findBestSplitStringTreeChildMatch(tree, value) {
|
|
16037
|
+
return lastValue(findBestSplitStringTreeChildMatchPath(tree, value));
|
|
16038
|
+
}
|
|
16039
|
+
|
|
16040
|
+
/**
|
|
16041
|
+
* Returns the best match for the value in the tree, including 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 findBestSplitStringTreeMatchPath(tree, value) {
|
|
16050
|
+
let bestResult = findBestSplitStringTreeChildMatchPath(tree, value);
|
|
16051
|
+
if (!bestResult && tree.fullValue && value.startsWith(tree.fullValue)) {
|
|
16052
|
+
bestResult = [tree];
|
|
16053
|
+
}
|
|
16054
|
+
return bestResult;
|
|
16055
|
+
}
|
|
16056
|
+
|
|
16057
|
+
/**
|
|
16058
|
+
* Returns the best match for the value in the true, excluding the input tree value.
|
|
16059
|
+
*
|
|
16060
|
+
* Only returns a result if there is match of any kind.
|
|
16061
|
+
*
|
|
16062
|
+
* @param tree
|
|
16063
|
+
* @param value
|
|
16064
|
+
* @returns
|
|
16065
|
+
*/
|
|
16066
|
+
function findBestSplitStringTreeChildMatchPath(tree, value) {
|
|
16067
|
+
const {
|
|
16068
|
+
children
|
|
16069
|
+
} = tree;
|
|
16070
|
+
let bestMatchPath;
|
|
16071
|
+
Object.entries(children).find(([_, child]) => {
|
|
16072
|
+
let stopScan = false;
|
|
16073
|
+
if (value.startsWith(child.fullValue)) {
|
|
16074
|
+
var _findBestSplitStringT;
|
|
16075
|
+
const bestChildPath = (_findBestSplitStringT = findBestSplitStringTreeChildMatchPath(child, value)) != null ? _findBestSplitStringT : [];
|
|
16076
|
+
bestMatchPath = [child, ...bestChildPath];
|
|
16077
|
+
stopScan = true;
|
|
16078
|
+
}
|
|
16079
|
+
return stopScan;
|
|
16080
|
+
});
|
|
16081
|
+
return bestMatchPath;
|
|
16082
|
+
}
|
|
16083
|
+
|
|
15905
16084
|
/*eslint @typescript-eslint/no-explicit-any:"off"*/
|
|
15906
16085
|
// any is used with intent here, as the recursive TreeNode value requires its use to terminate.
|
|
15907
16086
|
|
|
@@ -16663,4 +16842,4 @@ async function iterateFilteredPages(inputPage, loadFn, iterFn) {
|
|
|
16663
16842
|
return count;
|
|
16664
16843
|
}
|
|
16665
16844
|
|
|
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 };
|
|
16845
|
+
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, applySplitStringTreeWithMultipleValues, 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,132 @@
|
|
|
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<M>, existing?: Maybe<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 ApplySplitStringTreeWithMultipleValuesInput<M = unknown> {
|
|
57
|
+
readonly entries: SplitStringTreeFactoryInput<M>[];
|
|
58
|
+
readonly factory: SplitStringTreeFactory<M>;
|
|
59
|
+
readonly existing?: SplitStringTree<M>;
|
|
60
|
+
}
|
|
61
|
+
export declare function applySplitStringTreeWithMultipleValues<M = unknown>(input: ApplySplitStringTreeWithMultipleValuesInput<M>): SplitStringTree<M>;
|
|
62
|
+
export interface AddToSplitStringTreeInputValueWithMeta<M = unknown> {
|
|
63
|
+
readonly value: SplitStringTreeNodeString;
|
|
64
|
+
/**
|
|
65
|
+
* The meta value to merge/attach to each node in the tree
|
|
66
|
+
*/
|
|
67
|
+
readonly nodeMeta?: M;
|
|
68
|
+
/**
|
|
69
|
+
* The meta value to merge/attach to each leaf node
|
|
70
|
+
*/
|
|
71
|
+
readonly leafMeta?: M;
|
|
72
|
+
}
|
|
73
|
+
export interface AddToSplitStringTreeInputConfig<M = unknown> {
|
|
74
|
+
readonly separator: string;
|
|
75
|
+
/**
|
|
76
|
+
* Used for merging the meta values of two nodes.
|
|
77
|
+
*
|
|
78
|
+
* @param current
|
|
79
|
+
* @param next
|
|
80
|
+
* @returns
|
|
81
|
+
*/
|
|
82
|
+
readonly mergeMeta?: (current: M, next: M) => M;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Adds a value to the target SplitStringTree.
|
|
86
|
+
*
|
|
87
|
+
* @param tree
|
|
88
|
+
* @param value
|
|
89
|
+
* @param separator
|
|
90
|
+
* @returns
|
|
91
|
+
*/
|
|
92
|
+
export declare function addToSplitStringTree<M = unknown>(tree: SplitStringTree<M>, inputValue: AddToSplitStringTreeInputValueWithMeta<M>, config: AddToSplitStringTreeInputConfig<M>): SplitStringTree<M>;
|
|
93
|
+
/**
|
|
94
|
+
* Returns the best match for the value in the tree, including the input tree value.
|
|
95
|
+
*
|
|
96
|
+
* Only returns a result if there is match of any kind.
|
|
97
|
+
*
|
|
98
|
+
* @param tree
|
|
99
|
+
* @param value
|
|
100
|
+
* @returns
|
|
101
|
+
*/
|
|
102
|
+
export declare function findBestSplitStringTreeMatch<M = unknown>(tree: SplitStringTree<M>, value: SplitStringTreeNodeString): Maybe<SplitStringTree<M>>;
|
|
103
|
+
/**
|
|
104
|
+
* Returns the best match for the value in the true, excluding the input tree value.
|
|
105
|
+
*
|
|
106
|
+
* Only returns a result if there is match of any kind.
|
|
107
|
+
*
|
|
108
|
+
* @param tree
|
|
109
|
+
* @param value
|
|
110
|
+
* @returns
|
|
111
|
+
*/
|
|
112
|
+
export declare function findBestSplitStringTreeChildMatch<M = unknown>(tree: SplitStringTree<M>, value: SplitStringTreeNodeString): Maybe<SplitStringTree<M>>;
|
|
113
|
+
/**
|
|
114
|
+
* Returns the best match for the value in the tree, including the input tree value.
|
|
115
|
+
*
|
|
116
|
+
* Only returns a result if there is match of any kind.
|
|
117
|
+
*
|
|
118
|
+
* @param tree
|
|
119
|
+
* @param value
|
|
120
|
+
* @returns
|
|
121
|
+
*/
|
|
122
|
+
export declare function findBestSplitStringTreeMatchPath<M = unknown>(tree: SplitStringTree<M>, value: SplitStringTreeNodeString): Maybe<SplitStringTree<M>[]>;
|
|
123
|
+
/**
|
|
124
|
+
* Returns the best match for the value in the true, excluding the input tree value.
|
|
125
|
+
*
|
|
126
|
+
* Only returns a result if there is match of any kind.
|
|
127
|
+
*
|
|
128
|
+
* @param tree
|
|
129
|
+
* @param value
|
|
130
|
+
* @returns
|
|
131
|
+
*/
|
|
132
|
+
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.22](https://github.com/dereekb/dbx-components/compare/v10.1.21-dev...v10.1.22) (2024-07-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [10.1.21](https://github.com/dereekb/dbx-components/compare/v10.1.20-dev...v10.1.21) (2024-07-09)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [10.1.20](https://github.com/dereekb/dbx-components/compare/v10.1.19-dev...v10.1.20) (2024-06-12)
|
|
6
14
|
|
|
7
15
|
|