@dereekb/util 9.11.10 → 9.11.12
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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/lib/array/array.indexed.d.ts +28 -0
- package/src/lib/array/array.indexed.js +89 -0
- package/src/lib/array/array.indexed.js.map +1 -0
- package/src/lib/array/index.d.ts +1 -0
- package/src/lib/array/index.js +1 -0
- package/src/lib/array/index.js.map +1 -1
- package/src/lib/filter/filter.d.ts +3 -0
- package/src/lib/filter/filter.js.map +1 -1
- package/src/lib/grouping.d.ts +2 -1
- package/src/lib/grouping.js.map +1 -1
- package/src/lib/value/decision.d.ts +8 -0
- package/src/lib/value/decision.js +13 -0
- package/src/lib/value/decision.js.map +1 -1
- package/src/lib/value/indexed.d.ts +30 -0
- package/src/lib/value/indexed.js +37 -1
- package/src/lib/value/indexed.js.map +1 -1
- package/test/CHANGELOG.md +8 -0
- package/test/package.json +2 -2
package/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
|
+
## [9.11.12](https://github.com/dereekb/dbx-components/compare/v9.11.11-dev...v9.11.12) (2022-11-04)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [9.11.11](https://github.com/dereekb/dbx-components/compare/v9.11.10-dev...v9.11.11) (2022-11-01)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [9.11.10](https://github.com/dereekb/dbx-components/compare/v9.11.9-dev...v9.11.10) (2022-10-28)
|
|
6
14
|
|
|
7
15
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IndexNumber, ReadIndexRangeFunction } from '../value/indexed';
|
|
2
|
+
import { Maybe } from '../value/maybe.type';
|
|
3
|
+
/**
|
|
4
|
+
* Returns a value given the input index if any value responds to the index.
|
|
5
|
+
*/
|
|
6
|
+
export declare type RangedIndexedValuesArrayAccessor<T> = (index: IndexNumber) => Maybe<T>;
|
|
7
|
+
export declare type RangedIndexedValuesArrayAccessorFactory<T> = (values: T[]) => RangedIndexedValuesArrayAccessor<T>;
|
|
8
|
+
export declare function rangedIndexedValuesArrayAccessorFactory<T>(readIndexRange: ReadIndexRangeFunction<T>): RangedIndexedValuesArrayAccessorFactory<T>;
|
|
9
|
+
/**
|
|
10
|
+
* Returns a value given the input index. Always returns a value.
|
|
11
|
+
*/
|
|
12
|
+
export declare type IndexedValuesArrayAccessor<T> = (index: IndexNumber) => T;
|
|
13
|
+
export declare type IndexedValuesArrayAccessorFactory<T> = (values: T[]) => IndexedValuesArrayAccessor<T>;
|
|
14
|
+
export declare function indexedValuesArrayAccessorFactory<T>(readIndexRange: ReadIndexRangeFunction<T>): IndexedValuesArrayAccessorFactory<T>;
|
|
15
|
+
export interface RangedIndexValuesArrayAccessorInfo<T> {
|
|
16
|
+
readonly prev?: Maybe<T>;
|
|
17
|
+
readonly match?: Maybe<T>;
|
|
18
|
+
readonly next?: Maybe<T>;
|
|
19
|
+
}
|
|
20
|
+
export declare type RangedIndexedValuesArrayInfoAccessor<T> = (index: IndexNumber) => RangedIndexValuesArrayAccessorInfo<T>;
|
|
21
|
+
export declare type RangedIndexedValuesArrayInfoAccessorFactory<T> = (values: T[]) => RangedIndexedValuesArrayInfoAccessor<T>;
|
|
22
|
+
export interface RangedIndexedValuesArrayInfoAccessorFactoryConfig<T> {
|
|
23
|
+
/**
|
|
24
|
+
* Reads the index range. The IndexRange is treated as exclusive.
|
|
25
|
+
*/
|
|
26
|
+
readonly readIndexRange: ReadIndexRangeFunction<T>;
|
|
27
|
+
}
|
|
28
|
+
export declare function rangedIndexedValuesArrayAccessorInfoFactory<T>(config: RangedIndexedValuesArrayInfoAccessorFactoryConfig<T>): RangedIndexedValuesArrayInfoAccessorFactory<T>;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.rangedIndexedValuesArrayAccessorInfoFactory = exports.indexedValuesArrayAccessorFactory = exports.rangedIndexedValuesArrayAccessorFactory = void 0;
|
|
4
|
+
const indexed_1 = require("../value/indexed");
|
|
5
|
+
function rangedIndexedValuesArrayAccessorFactory(readIndexRange) {
|
|
6
|
+
const readInfoFactory = rangedIndexedValuesArrayAccessorInfoFactory({
|
|
7
|
+
readIndexRange
|
|
8
|
+
});
|
|
9
|
+
return (values) => {
|
|
10
|
+
const readInfo = readInfoFactory(values);
|
|
11
|
+
return (index) => {
|
|
12
|
+
const result = readInfo(index);
|
|
13
|
+
return result.match; // only return matches
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
exports.rangedIndexedValuesArrayAccessorFactory = rangedIndexedValuesArrayAccessorFactory;
|
|
18
|
+
function indexedValuesArrayAccessorFactory(readIndexRange) {
|
|
19
|
+
const readInfoFactory = rangedIndexedValuesArrayAccessorInfoFactory({
|
|
20
|
+
readIndexRange
|
|
21
|
+
});
|
|
22
|
+
return (values) => {
|
|
23
|
+
if (values.length === 0) {
|
|
24
|
+
throw new Error('Requires atleast one value to be defined.');
|
|
25
|
+
}
|
|
26
|
+
const readInfo = readInfoFactory(values);
|
|
27
|
+
return (index) => {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
const result = readInfo(index);
|
|
30
|
+
// Return the exact match, otherwise return the previous value, otherwise return the next/final value.
|
|
31
|
+
return (_b = (_a = result.match) !== null && _a !== void 0 ? _a : result.prev) !== null && _b !== void 0 ? _b : result.next;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
exports.indexedValuesArrayAccessorFactory = indexedValuesArrayAccessorFactory;
|
|
36
|
+
function rangedIndexedValuesArrayAccessorInfoFactory(config) {
|
|
37
|
+
const pairFactory = (0, indexed_1.indexRangeReaderPairFactory)(config.readIndexRange);
|
|
38
|
+
return (values) => {
|
|
39
|
+
if (values.length === 0) {
|
|
40
|
+
return () => ({}); // no pairs to match on
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
// pairs sorted in ascending order
|
|
44
|
+
const pairs = values.map(pairFactory).sort((0, indexed_1.sortByIndexRangeAscendingCompareFunction)((x) => x.range));
|
|
45
|
+
return (index) => {
|
|
46
|
+
var _a, _b, _c, _d, _e;
|
|
47
|
+
// find the first item that fits the
|
|
48
|
+
let matchIndex = -1;
|
|
49
|
+
let i;
|
|
50
|
+
for (i = 0; i < pairs.length; i += 1) {
|
|
51
|
+
const comparison = pairs[i];
|
|
52
|
+
if (comparison.range.minIndex <= index) {
|
|
53
|
+
if (comparison.range.maxIndex > index) {
|
|
54
|
+
matchIndex = i;
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
// continue otherwise.
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
break; // outside the min index, is not within these values at all
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
let match;
|
|
64
|
+
let prev;
|
|
65
|
+
let next;
|
|
66
|
+
if (matchIndex === -1) {
|
|
67
|
+
// no match
|
|
68
|
+
match = undefined;
|
|
69
|
+
// use i otherwise
|
|
70
|
+
prev = (_a = pairs[i - 1]) === null || _a === void 0 ? void 0 : _a.value;
|
|
71
|
+
next = (_b = pairs[i]) === null || _b === void 0 ? void 0 : _b.value;
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
match = (_c = pairs[matchIndex]) === null || _c === void 0 ? void 0 : _c.value;
|
|
75
|
+
prev = (_d = pairs[matchIndex - 1]) === null || _d === void 0 ? void 0 : _d.value;
|
|
76
|
+
next = (_e = pairs[matchIndex + 1]) === null || _e === void 0 ? void 0 : _e.value;
|
|
77
|
+
}
|
|
78
|
+
const info = {
|
|
79
|
+
prev,
|
|
80
|
+
match,
|
|
81
|
+
next
|
|
82
|
+
};
|
|
83
|
+
return info;
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
exports.rangedIndexedValuesArrayAccessorInfoFactory = rangedIndexedValuesArrayAccessorInfoFactory;
|
|
89
|
+
//# sourceMappingURL=array.indexed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array.indexed.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/array/array.indexed.ts"],"names":[],"mappings":";;;AAAA,8CAA8I;AAU9I,SAAgB,uCAAuC,CAAI,cAAyC;IAClG,MAAM,eAAe,GAAG,2CAA2C,CAAC;QAClE,cAAc;KACf,CAAC,CAAC;IAEH,OAAO,CAAC,MAAM,EAAE,EAAE;QAChB,MAAM,QAAQ,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QAEzC,OAAO,CAAC,KAAK,EAAE,EAAE;YACf,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;YAC/B,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,sBAAsB;QAC7C,CAAC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAbD,0FAaC;AASD,SAAgB,iCAAiC,CAAI,cAAyC;IAC5F,MAAM,eAAe,GAAG,2CAA2C,CAAC;QAClE,cAAc;KACf,CAAC,CAAC;IAEH,OAAO,CAAC,MAAM,EAAE,EAAE;QAChB,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;YACvB,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;SAC9D;QAED,MAAM,QAAQ,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QAEzC,OAAO,CAAC,KAAK,EAAE,EAAE;;YACf,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;YAC/B,sGAAsG;YACtG,OAAO,MAAA,MAAA,MAAM,CAAC,KAAK,mCAAI,MAAM,CAAC,IAAI,mCAAK,MAAM,CAAC,IAAU,CAAC;QAC3D,CAAC,CAAC;IACJ,CAAC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C,GAAG,CAAC,CAAC,0CAAE,KAAK,CAAC;oBAC3B,IAAI,GAAG,MAAA,KAAK,CAAC,CAAC,CAAC,0CAAE,KAAK,CAAC;iBACxB;qBAAM;oBACL,KAAK,GAAG,MAAA,KAAK,CAAC,UAAU,CAAC,0CAAE,KAAK,CAAC;oBACjC,IAAI,GAAG,MAAA,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,0CAAE,KAAK,CAAC;oBACpC,IAAI,GAAG,MAAA,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,0CAAE,KAAK,CAAC;iBACrC;gBAED,MAAM,IAAI,GAA0C;oBAClD,IAAI;oBACJ,KAAK;oBACL,IAAI;iBACL,CAAC;gBAEF,OAAO,IAAI,CAAC;YACd,CAAC,CAAC;SACH;IACH,CAAC,CAAC;AACJ,CAAC;AAvDD,kGAuDC"}
|
package/src/lib/array/index.d.ts
CHANGED
package/src/lib/array/index.js
CHANGED
|
@@ -5,6 +5,7 @@ tslib_1.__exportStar(require("./array.boolean"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./array.filter"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./array.factory"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./array.index"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./array.indexed"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./array.limit"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./array.make"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./array.map"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/array/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,yDAA+B;AAC/B,0DAAgC;AAChC,wDAA8B;AAC9B,wDAA8B;AAC9B,uDAA6B;AAC7B,sDAA4B;AAC5B,yDAA+B;AAC/B,sDAA4B;AAC5B,yDAA+B;AAC/B,kDAAwB;AACxB,yDAA+B;AAC/B,wDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/array/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,yDAA+B;AAC/B,0DAAgC;AAChC,wDAA8B;AAC9B,0DAAgC;AAChC,wDAA8B;AAC9B,uDAA6B;AAC7B,sDAA4B;AAC5B,yDAA+B;AAC/B,sDAA4B;AAC5B,yDAA+B;AAC/B,kDAAwB;AACxB,yDAA+B;AAC/B,wDAA8B"}
|
|
@@ -6,6 +6,9 @@ export interface Filter<F> {
|
|
|
6
6
|
filter?: F;
|
|
7
7
|
}
|
|
8
8
|
export declare type OptionalFilter<F> = Partial<Filter<F>>;
|
|
9
|
+
/**
|
|
10
|
+
* Function used for filtering items that takes in a value and index.
|
|
11
|
+
*/
|
|
9
12
|
export declare type FilterFunction<T = unknown> = (value: T, index: number) => boolean;
|
|
10
13
|
/**
|
|
11
14
|
* Merges the input FilterFunction values into a single FilterFunction.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/filter/filter.ts"],"names":[],"mappings":";;;AAAA,sDAAyD;
|
|
1
|
+
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/filter/filter.ts"],"names":[],"mappings":";;;AAAA,sDAAyD;AAiBzD;;;;;GAKG;AACH,SAAgB,oBAAoB,CAAI,GAAG,YAAwC;IACjF,MAAM,OAAO,GAAG,IAAA,+BAAiB,EAAC,YAAY,CAAC,CAAC;IAChD,IAAI,MAAyB,CAAC;IAE9B,QAAQ,OAAO,CAAC,MAAM,EAAE;QACtB,KAAK,CAAC;YACJ,MAAM,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC;YACpB,MAAM;QACR,KAAK,CAAC;YACJ,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YACpB,MAAM;QACR;YACE,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YAC/E,MAAM;KACT;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAjBD,oDAiBC;AAED;;;;;;GAMG;AACH,SAAgB,YAAY,CAA+D,QAAW,EAAE,MAAM,GAAG,IAAI;IACnH,IAAI,MAAM,EAAE;QACV,OAAO,CAAC,CAAC,KAAQ,EAAE,KAAa,EAAE,EAAE;YAClC,MAAM,MAAM,GAAY,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;YAC1D,OAAO,CAAC,MAAM,CAAC;QACjB,CAAC,CAAM,CAAC;KACT;SAAM;QACL,OAAO,QAAQ,CAAC;KACjB;AACH,CAAC;AATD,oCASC"}
|
package/src/lib/grouping.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PrimativeKey, ReadKeyFunction } from './key';
|
|
2
|
+
import { DecisionFunction } from './value/decision';
|
|
2
3
|
import { Maybe } from './value/maybe.type';
|
|
3
4
|
export interface SeparateResult<T> {
|
|
4
5
|
included: T[];
|
|
@@ -108,7 +109,7 @@ export declare function makeKeyPairs<T, K extends string | number = string | num
|
|
|
108
109
|
* @param checkInclusion
|
|
109
110
|
* @returns
|
|
110
111
|
*/
|
|
111
|
-
export declare function separateValues<T>(values: T[], checkInclusion:
|
|
112
|
+
export declare function separateValues<T>(values: T[], checkInclusion: DecisionFunction<T>): SeparateResult<T>;
|
|
112
113
|
/**
|
|
113
114
|
* Convenience function for makeValuesGroupMap that returns a POJO instead of a Map.
|
|
114
115
|
*
|
package/src/lib/grouping.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grouping.js","sourceRoot":"","sources":["../../../../../packages/util/src/lib/grouping.ts"],"names":[],"mappings":";;;AACA,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,MAAW,EAAE,UAAiC;IACzH,MAAM,GAAG,GAAG,IAAI,GAAG,EAAiB,CAAC;IAErC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;QACnB,MAAM,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;QAC1B,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAE3B,IAAI,KAAK,IAAI,IAAI,EAAE;YACjB,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;SACf;aAAM;YACL,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;SACnB;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC;AACb,CAAC;AAfD,gDAeC"}
|
|
@@ -6,3 +6,11 @@ import { MapFunction, AsyncMapFunction } from './map';
|
|
|
6
6
|
export declare type DecisionFunction<I> = MapFunction<I, boolean>;
|
|
7
7
|
export declare type AsyncDecisionFunction<I> = AsyncMapFunction<DecisionFunction<I>>;
|
|
8
8
|
export declare type DecisionFunctionFactory<C, I> = FactoryWithRequiredInput<DecisionFunction<I>, C>;
|
|
9
|
+
/**
|
|
10
|
+
* Used to invert a decision function by returning the opposite of what it returns.
|
|
11
|
+
*
|
|
12
|
+
* @param filterFn
|
|
13
|
+
* @param invert whether or not to apply the inversion.
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export declare function invertDecision<T = unknown, F extends DecisionFunction<T> = DecisionFunction<T>>(decisionFn: F, invert?: boolean): F;
|
|
@@ -1,3 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.invertDecision = void 0;
|
|
4
|
+
const filter_1 = require("../filter/filter");
|
|
5
|
+
/**
|
|
6
|
+
* Used to invert a decision function by returning the opposite of what it returns.
|
|
7
|
+
*
|
|
8
|
+
* @param filterFn
|
|
9
|
+
* @param invert whether or not to apply the inversion.
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
function invertDecision(decisionFn, invert = true) {
|
|
13
|
+
return (0, filter_1.invertFilter)(decisionFn, invert);
|
|
14
|
+
}
|
|
15
|
+
exports.invertDecision = invertDecision;
|
|
3
16
|
//# sourceMappingURL=decision.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decision.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/value/decision.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"decision.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/value/decision.ts"],"names":[],"mappings":";;;AAAA,6CAAgE;AAYhE;;;;;;GAMG;AACH,SAAgB,cAAc,CAAmE,UAAa,EAAE,MAAM,GAAG,IAAI;IAC3H,OAAO,IAAA,qBAAY,EAAC,UAA4B,EAAE,MAAM,CAAM,CAAC;AACjE,CAAC;AAFD,wCAEC"}
|
|
@@ -2,6 +2,7 @@ import { FindValuesFromInput } from './../set/set';
|
|
|
2
2
|
import { ArrayOrValue } from './../array/array';
|
|
3
3
|
import { HashSet } from '../set/set.hashset';
|
|
4
4
|
import { SortCompareFunction } from '../sort';
|
|
5
|
+
import { FactoryWithRequiredInput } from '../getter';
|
|
5
6
|
/**
|
|
6
7
|
* A number that denotes which index an item is at.
|
|
7
8
|
*/
|
|
@@ -76,6 +77,35 @@ export interface IndexRange {
|
|
|
76
77
|
*/
|
|
77
78
|
maxIndex: IndexNumber;
|
|
78
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Returns the IndexRange for the input value.
|
|
82
|
+
*/
|
|
83
|
+
export declare type ReadIndexRangeFunction<T> = FactoryWithRequiredInput<IndexRange, T>;
|
|
84
|
+
/**
|
|
85
|
+
* Creates a SortCompareFunction<T> that sorts by the read index.
|
|
86
|
+
*
|
|
87
|
+
* @param input
|
|
88
|
+
* @returns
|
|
89
|
+
*/
|
|
90
|
+
export declare function sortByIndexRangeAscendingCompareFunction<T>(readIndexRange: ReadIndexRangeFunction<T>): SortCompareFunction<T>;
|
|
91
|
+
/**
|
|
92
|
+
* IndexRange and value pair.
|
|
93
|
+
*/
|
|
94
|
+
export interface IndexRangeReaderPair<T = unknown> {
|
|
95
|
+
range: IndexRange;
|
|
96
|
+
value: T;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Creates a IndexRangeReaderPair with the input value.
|
|
100
|
+
*/
|
|
101
|
+
export declare type IndexRangeReaderPairFactory<T> = FactoryWithRequiredInput<IndexRangeReaderPair<T>, T>;
|
|
102
|
+
/**
|
|
103
|
+
* Creates a new IndexRangeReaderPairFactory
|
|
104
|
+
*
|
|
105
|
+
* @param reader
|
|
106
|
+
* @returns
|
|
107
|
+
*/
|
|
108
|
+
export declare function indexRangeReaderPairFactory<T>(reader: ReadIndexRangeFunction<T>): IndexRangeReaderPairFactory<T>;
|
|
79
109
|
/**
|
|
80
110
|
* An IndexNumber that represenst a range of a single index, or an IndexRange.
|
|
81
111
|
*/
|
package/src/lib/value/indexed.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.indexRangeOverlapsIndexRangeFunction = exports.indexRangeOverlapsIndexRange = exports.isIndexRangeInIndexRangeFunction = exports.isIndexRangeInIndexRange = exports.isIndexNumberInIndexRangeFunction = exports.isIndexNumberInIndexRange = exports.indexRangeCheckFunction = exports.asIndexRangeCheckFunctionConfig = exports.indexRangeCheckReaderFunction = exports.indexRange = exports.findItemsByIndex = exports.hashSetForIndexed = exports.sortByIndexAscendingCompareFunction = exports.readIndexNumber = exports.sortAscendingIndexNumberRefFunction = void 0;
|
|
3
|
+
exports.indexRangeOverlapsIndexRangeFunction = exports.indexRangeOverlapsIndexRange = exports.isIndexRangeInIndexRangeFunction = exports.isIndexRangeInIndexRange = exports.isIndexNumberInIndexRangeFunction = exports.isIndexNumberInIndexRange = exports.indexRangeCheckFunction = exports.asIndexRangeCheckFunctionConfig = exports.indexRangeCheckReaderFunction = exports.indexRange = exports.indexRangeReaderPairFactory = exports.sortByIndexRangeAscendingCompareFunction = exports.findItemsByIndex = exports.hashSetForIndexed = exports.sortByIndexAscendingCompareFunction = exports.readIndexNumber = exports.sortAscendingIndexNumberRefFunction = void 0;
|
|
4
4
|
const set_1 = require("./../set/set");
|
|
5
5
|
const array_1 = require("./../array/array");
|
|
6
6
|
const object_1 = require("../object/object");
|
|
@@ -61,6 +61,42 @@ function findItemsByIndex(config) {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
exports.findItemsByIndex = findItemsByIndex;
|
|
64
|
+
/**
|
|
65
|
+
* Creates a SortCompareFunction<T> that sorts by the read index.
|
|
66
|
+
*
|
|
67
|
+
* @param input
|
|
68
|
+
* @returns
|
|
69
|
+
*/
|
|
70
|
+
function sortByIndexRangeAscendingCompareFunction(readIndexRange) {
|
|
71
|
+
return (a, b) => {
|
|
72
|
+
const ra = readIndexRange(a);
|
|
73
|
+
const rb = readIndexRange(b);
|
|
74
|
+
const comp = ra.minIndex - rb.minIndex; // sort by smaller minIndexes first
|
|
75
|
+
if (comp === 0) {
|
|
76
|
+
return ra.maxIndex - rb.maxIndex; // sort by larger maxIndexes first
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
return comp;
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
exports.sortByIndexRangeAscendingCompareFunction = sortByIndexRangeAscendingCompareFunction;
|
|
84
|
+
/**
|
|
85
|
+
* Creates a new IndexRangeReaderPairFactory
|
|
86
|
+
*
|
|
87
|
+
* @param reader
|
|
88
|
+
* @returns
|
|
89
|
+
*/
|
|
90
|
+
function indexRangeReaderPairFactory(reader) {
|
|
91
|
+
return (value) => {
|
|
92
|
+
const range = reader(value);
|
|
93
|
+
return {
|
|
94
|
+
range,
|
|
95
|
+
value
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
exports.indexRangeReaderPairFactory = indexRangeReaderPairFactory;
|
|
64
100
|
/**
|
|
65
101
|
* Creates an IndexRange from the input.
|
|
66
102
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexed.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/value/indexed.ts"],"names":[],"mappings":";;;AAAA,sCAAmE;AACnE,4CAAyD;AACzD,6CAAgD;AAChD,oDAA6C;
|
|
1
|
+
{"version":3,"file":"indexed.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/value/indexed.ts"],"names":[],"mappings":";;;AAAA,sCAAmE;AACnE,4CAAyD;AACzD,6CAAgD;AAChD,oDAA6C;AAwB7C;;;;;GAKG;AACH,SAAgB,mCAAmC;IACjD,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC7B,CAAC;AAFD,kFAEC;AAOD;;;;;GAKG;AACH,SAAgB,eAAe,CAAC,QAAkB;IAChD,OAAO,QAAQ,CAAC,CAAC,CAAC;AACpB,CAAC;AAFD,0CAEC;AAED;;;;;GAKG;AACH,SAAgB,mCAAmC,CAAI,SAA+B;IACpF,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAC/C,CAAC;AAFD,kFAEC;AAED;;;;;GAKG;AACH,SAAgB,iBAAiB,CAAqB,KAAuB;IAC3E,MAAM,MAAM,GAAG,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,IAAA,eAAO,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC1D,OAAO,IAAI,qBAAO,CAAiB,EAAE,OAAO,EAAE,eAAe,EAAE,EAAE,MAAM,CAAC,CAAC;AAC3E,CAAC;AAHD,8CAGC;AASD;;;;GAIG;AACH,SAAgB,gBAA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,QAAQ,CAAC;IAClE,CAAC,CAAC;AACJ,CAAC;AALD,oFAKC"}
|
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
|
+
## [9.11.12](https://github.com/dereekb/dbx-components/compare/v9.11.11-dev...v9.11.12) (2022-11-04)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [9.11.11](https://github.com/dereekb/dbx-components/compare/v9.11.10-dev...v9.11.11) (2022-11-01)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [9.11.10](https://github.com/dereekb/dbx-components/compare/v9.11.9-dev...v9.11.10) (2022-10-28)
|
|
6
14
|
|
|
7
15
|
|
package/test/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/util/test",
|
|
3
|
-
"version": "9.11.
|
|
3
|
+
"version": "9.11.12",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@dereekb/util": "9.11.
|
|
9
|
+
"@dereekb/util": "9.11.12",
|
|
10
10
|
"lodash.isequal": "^4.5.0",
|
|
11
11
|
"make-error": "^1.3.0",
|
|
12
12
|
"class-validator": "^0.13.2",
|