dce-reactkit 3.7.2-beta.1 → 3.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +161 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Modal.d.ts +1 -0
- package/dist/cjs/types/components/Shimmer.d.ts +13 -0
- package/dist/cjs/types/helpers/asyncArrayFunctions/everyAsync.d.ts +13 -0
- package/dist/cjs/types/helpers/asyncArrayFunctions/everyAsync.test.d.ts +1 -0
- package/dist/cjs/types/helpers/asyncArrayFunctions/filterAsync.d.ts +13 -0
- package/dist/cjs/types/helpers/asyncArrayFunctions/filterAsync.test.d.ts +1 -0
- package/dist/cjs/types/helpers/asyncArrayFunctions/forEachAsync.d.ts +10 -0
- package/dist/cjs/types/helpers/asyncArrayFunctions/forEachAsync.test.d.ts +1 -0
- package/dist/cjs/types/helpers/asyncArrayFunctions/mapAsync.d.ts +11 -0
- package/dist/cjs/types/helpers/asyncArrayFunctions/mapAsync.test.d.ts +1 -0
- package/dist/cjs/types/helpers/asyncArrayFunctions/someAsync.d.ts +13 -0
- package/dist/cjs/types/helpers/asyncArrayFunctions/someAsync.test.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +7 -1
- package/dist/esm/index.js +157 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Modal.d.ts +1 -0
- package/dist/esm/types/components/Shimmer.d.ts +13 -0
- package/dist/esm/types/helpers/asyncArrayFunctions/everyAsync.d.ts +13 -0
- package/dist/esm/types/helpers/asyncArrayFunctions/everyAsync.test.d.ts +1 -0
- package/dist/esm/types/helpers/asyncArrayFunctions/filterAsync.d.ts +13 -0
- package/dist/esm/types/helpers/asyncArrayFunctions/filterAsync.test.d.ts +1 -0
- package/dist/esm/types/helpers/asyncArrayFunctions/forEachAsync.d.ts +10 -0
- package/dist/esm/types/helpers/asyncArrayFunctions/forEachAsync.test.d.ts +1 -0
- package/dist/esm/types/helpers/asyncArrayFunctions/mapAsync.d.ts +11 -0
- package/dist/esm/types/helpers/asyncArrayFunctions/mapAsync.test.d.ts +1 -0
- package/dist/esm/types/helpers/asyncArrayFunctions/someAsync.d.ts +13 -0
- package/dist/esm/types/helpers/asyncArrayFunctions/someAsync.test.d.ts +1 -0
- package/dist/esm/types/index.d.ts +7 -1
- package/dist/index.d.ts +62 -1
- package/package.json +1 -1
- package/src/components/Modal.tsx +4 -1
- package/src/components/Shimmer.tsx +153 -0
- package/src/helpers/asyncArrayFunctions/everyAsync.test.ts +114 -0
- package/src/helpers/asyncArrayFunctions/everyAsync.ts +51 -0
- package/src/helpers/asyncArrayFunctions/filterAsync.test.ts +126 -0
- package/src/helpers/asyncArrayFunctions/filterAsync.ts +50 -0
- package/src/helpers/asyncArrayFunctions/forEachAsync.test.ts +136 -0
- package/src/helpers/asyncArrayFunctions/forEachAsync.ts +40 -0
- package/src/helpers/asyncArrayFunctions/mapAsync.test.ts +125 -0
- package/src/helpers/asyncArrayFunctions/mapAsync.ts +46 -0
- package/src/helpers/asyncArrayFunctions/someAsync.test.ts +92 -0
- package/src/helpers/asyncArrayFunctions/someAsync.ts +49 -0
- package/src/helpers/canReviewLogs.ts +1 -1
- package/src/helpers/getTimeInfoInET.ts +3 -3
- package/src/index.ts +12 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A shimmer effect to add to the background of an element. The parent of this element
|
|
3
|
+
* will automatically have its overflow hidden
|
|
4
|
+
* @author Alessandra De Lucas
|
|
5
|
+
* @author Gabe Abrams
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
type Props = {
|
|
9
|
+
durationSec?: number;
|
|
10
|
+
numShimmers?: number;
|
|
11
|
+
};
|
|
12
|
+
declare const Shimmer: React.FC<Props>;
|
|
13
|
+
export default Shimmer;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Run the operator function on each item in the array, returning true if
|
|
3
|
+
* the operator function returns true for every item in the array
|
|
4
|
+
* @author Gabe Abrams
|
|
5
|
+
* @param operatorFunction the operator function to apply. If it returns true
|
|
6
|
+
* for every item, this function will return true
|
|
7
|
+
* @returns true if the operator function returns true for every item in the array
|
|
8
|
+
*/
|
|
9
|
+
declare const everyAsync: <T>(array: T[], operatorFunction: (item: T, index: number, opts: {
|
|
10
|
+
breakNow: () => void;
|
|
11
|
+
array: T[];
|
|
12
|
+
}) => Promise<any>) => Promise<boolean>;
|
|
13
|
+
export default everyAsync;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Run the operator function on each item in the array, returning a new array
|
|
3
|
+
* that only contains the items that pass the filter
|
|
4
|
+
* @author Gabe Abrams
|
|
5
|
+
* @param operatorFunction the operator function to apply. If it returns true
|
|
6
|
+
* for an item, the item will be included in the returned array
|
|
7
|
+
* @returns the filtered array
|
|
8
|
+
*/
|
|
9
|
+
declare const filterAsync: <T>(array: T[], operatorFunction: (item: T, index: number, opts: {
|
|
10
|
+
breakNow: () => void;
|
|
11
|
+
array: T[];
|
|
12
|
+
}) => Promise<any>) => Promise<T[]>;
|
|
13
|
+
export default filterAsync;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Run the operator function on each item in the array
|
|
3
|
+
* @author Gabe Abrams
|
|
4
|
+
* @param operatorFunction the operator function to apply
|
|
5
|
+
*/
|
|
6
|
+
declare const forEachAsync: <T>(array: T[], operatorFunction: (item: T, index: number, opts: {
|
|
7
|
+
breakNow: () => void;
|
|
8
|
+
array: T[];
|
|
9
|
+
}) => void) => Promise<void>;
|
|
10
|
+
export default forEachAsync;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Run the operator function on each item in the array, collecting all results
|
|
3
|
+
* @author Gabe Abrams
|
|
4
|
+
* @param operatorFunction the operator function to apply
|
|
5
|
+
* @returns the array of results
|
|
6
|
+
*/
|
|
7
|
+
declare const mapAsync: <T, U>(array: T[], operatorFunction: (item: T, index: number, opts: {
|
|
8
|
+
breakNow: () => void;
|
|
9
|
+
array: T[];
|
|
10
|
+
}) => Promise<U>) => Promise<U[]>;
|
|
11
|
+
export default mapAsync;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Run the operator function on each item in the array, returning true if
|
|
3
|
+
* the operator function returns true for any item in the array
|
|
4
|
+
* @author Gabe Abrams
|
|
5
|
+
* @param operatorFunction the operator function to apply. If it returns true
|
|
6
|
+
* for any item, this function will return true
|
|
7
|
+
* @returns true if the operator function returns true for any item in the array
|
|
8
|
+
*/
|
|
9
|
+
declare const someAsync: <T>(array: T[], operatorFunction: (item: T, index: number, opts: {
|
|
10
|
+
breakNow: () => void;
|
|
11
|
+
array: T[];
|
|
12
|
+
}) => Promise<any>) => Promise<boolean>;
|
|
13
|
+
export default someAsync;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -70,6 +70,11 @@ import makeLinksClickable from './helpers/makeLinksClickable';
|
|
|
70
70
|
import combineClassNames from './helpers/combineClassNames';
|
|
71
71
|
import prefixWithAOrAn from './helpers/prefixWithAOrAn';
|
|
72
72
|
import useForceRender from './helpers/useForceRender';
|
|
73
|
+
import everyAsync from './helpers/asyncArrayFunctions/everyAsync';
|
|
74
|
+
import filterAsync from './helpers/asyncArrayFunctions/filterAsync';
|
|
75
|
+
import forEachAsync from './helpers/asyncArrayFunctions/forEachAsync';
|
|
76
|
+
import mapAsync from './helpers/asyncArrayFunctions/mapAsync';
|
|
77
|
+
import someAsync from './helpers/asyncArrayFunctions/someAsync';
|
|
73
78
|
import ModalButtonType from './types/ModalButtonType';
|
|
74
79
|
import ModalSize from './types/ModalSize';
|
|
75
80
|
import ModalType from './types/ModalType';
|
|
@@ -83,9 +88,10 @@ import LogSource from './types/LogSource';
|
|
|
83
88
|
import LogAction from './types/LogAction';
|
|
84
89
|
import LogBuiltInMetadata from './types/LogBuiltInMetadata';
|
|
85
90
|
import LogMetadataType from './types/LogMetadataType';
|
|
91
|
+
import LogFunction from './types/LogFunction';
|
|
86
92
|
import IntelliTableColumn from './types/IntelliTableColumn';
|
|
87
93
|
import PickableItem from './components/ItemPicker/types/PickableItem';
|
|
88
94
|
import DBEntry from './components/DBEntryManagerPanel/types/DBEntry';
|
|
89
95
|
import DBEntryField from './components/DBEntryManagerPanel/types/DBEntryField';
|
|
90
96
|
import DBEntryFieldType from './components/DBEntryManagerPanel/types/DBEntryFieldType';
|
|
91
|
-
export { AppWrapper, LoadingSpinner, ErrorBox, Modal, TabBox, RadioButton, CheckboxButton, ButtonInputGroup, SimpleDateChooser, Drawer, PopSuccessMark, PopFailureMark, PopPendingMark, CopiableBox, ItemPicker, LogReviewer, IntelliTable, CSVDownloadButton, DBEntryManagerPanel, Tooltip, ToggleSwitch, AutoscrollToBottomContainer, MultiSwitch, alert, confirm, showFatalError, ErrorWithCode, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, DynamicWord, abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, stubServerEndpoint, startMinWait, getHumanReadableDate, getPartOfDay, stringsToHumanReadableList, onlyKeepLetters, parallelLimit, getMonthName, genCSV, canReviewLogs, isMobileOrTablet, extractProp, compareArraysByProp, genCommaList, validateEmail, validatePhoneNumber, validateString, getLocalTimeInfo, idify, makeLinksClickable, prefixWithAOrAn, initClient, visitServerEndpoint, logClientEvent, addFatalErrorHandler, leaveToURL, combineClassNames, useForceRender, setClientEventMetadataPopulator, initServer, genRouteHandler, handleError, handleSuccess, initLogCollection, addDBEditorEndpoints, ModalButtonType, ModalSize, ModalType, ReactKitErrorCode, Variant, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, IntelliTableColumn, PickableItem, DBEntry, DBEntryField, DBEntryFieldType, ParamType, };
|
|
97
|
+
export { AppWrapper, LoadingSpinner, ErrorBox, Modal, TabBox, RadioButton, CheckboxButton, ButtonInputGroup, SimpleDateChooser, Drawer, PopSuccessMark, PopFailureMark, PopPendingMark, CopiableBox, ItemPicker, LogReviewer, IntelliTable, CSVDownloadButton, DBEntryManagerPanel, Tooltip, ToggleSwitch, AutoscrollToBottomContainer, MultiSwitch, alert, confirm, showFatalError, ErrorWithCode, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, DynamicWord, abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, stubServerEndpoint, startMinWait, getHumanReadableDate, getPartOfDay, stringsToHumanReadableList, onlyKeepLetters, parallelLimit, getMonthName, genCSV, canReviewLogs, isMobileOrTablet, extractProp, compareArraysByProp, genCommaList, validateEmail, validatePhoneNumber, validateString, getLocalTimeInfo, idify, makeLinksClickable, prefixWithAOrAn, everyAsync, filterAsync, forEachAsync, mapAsync, someAsync, initClient, visitServerEndpoint, logClientEvent, addFatalErrorHandler, leaveToURL, combineClassNames, useForceRender, setClientEventMetadataPopulator, initServer, genRouteHandler, handleError, handleSuccess, initLogCollection, addDBEditorEndpoints, ModalButtonType, ModalSize, ModalType, ReactKitErrorCode, Variant, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, LogFunction, IntelliTableColumn, PickableItem, DBEntry, DBEntryField, DBEntryFieldType, ParamType, };
|
package/dist/esm/index.js
CHANGED
|
@@ -458,7 +458,7 @@ const Modal = (props) => {
|
|
|
458
458
|
/*------------------------------------------------------------------------*/
|
|
459
459
|
var _a;
|
|
460
460
|
/* -------------- Props ------------- */
|
|
461
|
-
const { type = ModalType$1.NoButtons, size = ModalSize$1.Large, title, children, onClose, dontAllowBackdropExit, onTopOfOtherModals, } = props;
|
|
461
|
+
const { type = ModalType$1.NoButtons, size = ModalSize$1.Large, title, children, onClose, dontAllowBackdropExit, dontShowXButton, onTopOfOtherModals, } = props;
|
|
462
462
|
/* -------------- State ------------- */
|
|
463
463
|
// True if animation is in use
|
|
464
464
|
const [animatingIn, setAnimatingIn] = useState(true);
|
|
@@ -595,7 +595,7 @@ const Modal = (props) => {
|
|
|
595
595
|
React__default.createElement("h5", { className: "modal-title", style: {
|
|
596
596
|
fontWeight: 'bold',
|
|
597
597
|
} }, title),
|
|
598
|
-
onClose && (React__default.createElement("button", { type: "button", className: "Modal-x-button btn-close", "aria-label": "Close", style: {
|
|
598
|
+
(onClose && !dontShowXButton) && (React__default.createElement("button", { type: "button", className: "Modal-x-button btn-close", "aria-label": "Close", style: {
|
|
599
599
|
backgroundColor: (isDarkModeOn()
|
|
600
600
|
? 'white'
|
|
601
601
|
: undefined),
|
|
@@ -1585,8 +1585,7 @@ const getTimeInfoInET = (dateOrTimestamp) => {
|
|
|
1585
1585
|
d = dateOrTimestamp;
|
|
1586
1586
|
}
|
|
1587
1587
|
const str = d.toLocaleString('en-US', // Using US encoding (it's the only one installed on containers)
|
|
1588
|
-
{ timeZone: 'America/New_York' }
|
|
1589
|
-
);
|
|
1588
|
+
{ timeZone: 'America/New_York' });
|
|
1590
1589
|
// Parse the string for the date/time info
|
|
1591
1590
|
const [dateStr, timeStr] = str.split(', '); // Format: MM/DD/YYYY, HH:MM:SS AM
|
|
1592
1591
|
const [monthStr, dayStr, yearStr] = dateStr.split('/'); // Format: MM/DD/YYYY
|
|
@@ -1597,7 +1596,7 @@ const getTimeInfoInET = (dateOrTimestamp) => {
|
|
|
1597
1596
|
const month = Number.parseInt(monthStr, 10);
|
|
1598
1597
|
const day = Number.parseInt(dayStr, 10);
|
|
1599
1598
|
const minute = Number.parseInt(minStr, 10);
|
|
1600
|
-
|
|
1599
|
+
const hour12 = Number.parseInt(hourStr, 10);
|
|
1601
1600
|
// Convert from am/pm to 24hr
|
|
1602
1601
|
const isAM = ending.toLowerCase().includes('am');
|
|
1603
1602
|
const isPM = !isAM;
|
|
@@ -42696,7 +42695,7 @@ const initLogCollection = (Collection) => {
|
|
|
42696
42695
|
/* -------------------------------- Cache ------------------------------- */
|
|
42697
42696
|
/*------------------------------------------------------------------------*/
|
|
42698
42697
|
// Cache user's ability
|
|
42699
|
-
let canReview
|
|
42698
|
+
let canReview;
|
|
42700
42699
|
/*------------------------------------------------------------------------*/
|
|
42701
42700
|
/* -------------------------------- Main -------------------------------- */
|
|
42702
42701
|
/*------------------------------------------------------------------------*/
|
|
@@ -43249,6 +43248,157 @@ const useForceRender = (useReducer) => {
|
|
|
43249
43248
|
};
|
|
43250
43249
|
};
|
|
43251
43250
|
|
|
43251
|
+
/**
|
|
43252
|
+
* Run the operator function on each item in the array, returning true if
|
|
43253
|
+
* the operator function returns true for every item in the array
|
|
43254
|
+
* @author Gabe Abrams
|
|
43255
|
+
* @param operatorFunction the operator function to apply. If it returns true
|
|
43256
|
+
* for every item, this function will return true
|
|
43257
|
+
* @returns true if the operator function returns true for every item in the array
|
|
43258
|
+
*/
|
|
43259
|
+
const everyAsync = (array, operatorFunction) => __awaiter(void 0, void 0, void 0, function* () {
|
|
43260
|
+
// Create break logic
|
|
43261
|
+
let done = false;
|
|
43262
|
+
/**
|
|
43263
|
+
* Break the loop (checking stops here)
|
|
43264
|
+
* @author Gabe Abrams
|
|
43265
|
+
*/
|
|
43266
|
+
const breakNow = () => {
|
|
43267
|
+
done = true;
|
|
43268
|
+
};
|
|
43269
|
+
// Loop through each item, checking
|
|
43270
|
+
for (let i = 0; i < array.length && !done; i++) {
|
|
43271
|
+
const passed = yield operatorFunction(array[i], i, {
|
|
43272
|
+
breakNow,
|
|
43273
|
+
array,
|
|
43274
|
+
});
|
|
43275
|
+
// Check if this one failed or if loop was broken
|
|
43276
|
+
if (!passed || done) {
|
|
43277
|
+
return false;
|
|
43278
|
+
}
|
|
43279
|
+
}
|
|
43280
|
+
// Return true because none returned false
|
|
43281
|
+
return true;
|
|
43282
|
+
});
|
|
43283
|
+
|
|
43284
|
+
/**
|
|
43285
|
+
* Run the operator function on each item in the array, returning a new array
|
|
43286
|
+
* that only contains the items that pass the filter
|
|
43287
|
+
* @author Gabe Abrams
|
|
43288
|
+
* @param operatorFunction the operator function to apply. If it returns true
|
|
43289
|
+
* for an item, the item will be included in the returned array
|
|
43290
|
+
* @returns the filtered array
|
|
43291
|
+
*/
|
|
43292
|
+
const filterAsync = (array, operatorFunction) => __awaiter(void 0, void 0, void 0, function* () {
|
|
43293
|
+
// Create break logic
|
|
43294
|
+
let done = false;
|
|
43295
|
+
/**
|
|
43296
|
+
* Break the loop (filtering stops here)
|
|
43297
|
+
* @author Gabe Abrams
|
|
43298
|
+
*/
|
|
43299
|
+
const breakNow = () => {
|
|
43300
|
+
done = true;
|
|
43301
|
+
};
|
|
43302
|
+
// Loop through each item, filtering
|
|
43303
|
+
const output = [];
|
|
43304
|
+
for (let i = 0; i < array.length && !done; i++) {
|
|
43305
|
+
const included = yield operatorFunction(array[i], i, {
|
|
43306
|
+
breakNow,
|
|
43307
|
+
array,
|
|
43308
|
+
});
|
|
43309
|
+
if (included && !done) {
|
|
43310
|
+
output.push(array[i]);
|
|
43311
|
+
}
|
|
43312
|
+
}
|
|
43313
|
+
// Return results
|
|
43314
|
+
return output;
|
|
43315
|
+
});
|
|
43316
|
+
|
|
43317
|
+
/**
|
|
43318
|
+
* Run the operator function on each item in the array
|
|
43319
|
+
* @author Gabe Abrams
|
|
43320
|
+
* @param operatorFunction the operator function to apply
|
|
43321
|
+
*/
|
|
43322
|
+
const forEachAsync = (array, operatorFunction) => __awaiter(void 0, void 0, void 0, function* () {
|
|
43323
|
+
// Create break logic
|
|
43324
|
+
let done = false;
|
|
43325
|
+
/**
|
|
43326
|
+
* Break the loop
|
|
43327
|
+
* @author Gabe Abrams
|
|
43328
|
+
*/
|
|
43329
|
+
const breakNow = () => {
|
|
43330
|
+
done = true;
|
|
43331
|
+
};
|
|
43332
|
+
// Loop through each item
|
|
43333
|
+
for (let i = 0; i < array.length && !done; i++) {
|
|
43334
|
+
yield operatorFunction(array[i], i, {
|
|
43335
|
+
breakNow,
|
|
43336
|
+
array,
|
|
43337
|
+
});
|
|
43338
|
+
}
|
|
43339
|
+
});
|
|
43340
|
+
|
|
43341
|
+
/**
|
|
43342
|
+
* Run the operator function on each item in the array, collecting all results
|
|
43343
|
+
* @author Gabe Abrams
|
|
43344
|
+
* @param operatorFunction the operator function to apply
|
|
43345
|
+
* @returns the array of results
|
|
43346
|
+
*/
|
|
43347
|
+
const mapAsync = (array, operatorFunction) => __awaiter(void 0, void 0, void 0, function* () {
|
|
43348
|
+
// Create break logic
|
|
43349
|
+
let done = false;
|
|
43350
|
+
/**
|
|
43351
|
+
* Break the loop
|
|
43352
|
+
* @author Gabe Abrams
|
|
43353
|
+
*/
|
|
43354
|
+
const breakNow = () => {
|
|
43355
|
+
done = true;
|
|
43356
|
+
};
|
|
43357
|
+
// Loop through each item, collecting results
|
|
43358
|
+
const results = [];
|
|
43359
|
+
for (let i = 0; i < array.length && !done; i++) {
|
|
43360
|
+
const result = yield operatorFunction(array[i], i, {
|
|
43361
|
+
breakNow,
|
|
43362
|
+
array,
|
|
43363
|
+
});
|
|
43364
|
+
results.push(result);
|
|
43365
|
+
}
|
|
43366
|
+
// Return results
|
|
43367
|
+
return results;
|
|
43368
|
+
});
|
|
43369
|
+
|
|
43370
|
+
/**
|
|
43371
|
+
* Run the operator function on each item in the array, returning true if
|
|
43372
|
+
* the operator function returns true for any item in the array
|
|
43373
|
+
* @author Gabe Abrams
|
|
43374
|
+
* @param operatorFunction the operator function to apply. If it returns true
|
|
43375
|
+
* for any item, this function will return true
|
|
43376
|
+
* @returns true if the operator function returns true for any item in the array
|
|
43377
|
+
*/
|
|
43378
|
+
const someAsync = (array, operatorFunction) => __awaiter(void 0, void 0, void 0, function* () {
|
|
43379
|
+
// Create break logic
|
|
43380
|
+
let done = false;
|
|
43381
|
+
/**
|
|
43382
|
+
* Break the loop (checking stops here)
|
|
43383
|
+
* @author Gabe Abrams
|
|
43384
|
+
*/
|
|
43385
|
+
const breakNow = () => {
|
|
43386
|
+
done = true;
|
|
43387
|
+
};
|
|
43388
|
+
// Loop through each item, checking
|
|
43389
|
+
for (let i = 0; i < array.length && !done; i++) {
|
|
43390
|
+
const passed = yield operatorFunction(array[i], i, {
|
|
43391
|
+
breakNow,
|
|
43392
|
+
array,
|
|
43393
|
+
});
|
|
43394
|
+
if (passed && !done) {
|
|
43395
|
+
return true;
|
|
43396
|
+
}
|
|
43397
|
+
}
|
|
43398
|
+
// Return false because none returned true
|
|
43399
|
+
return false;
|
|
43400
|
+
});
|
|
43401
|
+
|
|
43252
43402
|
/**
|
|
43253
43403
|
* Days of the week
|
|
43254
43404
|
* @author Gabe Abrams
|
|
@@ -43265,5 +43415,5 @@ var DayOfWeek;
|
|
|
43265
43415
|
})(DayOfWeek || (DayOfWeek = {}));
|
|
43266
43416
|
var DayOfWeek$1 = DayOfWeek;
|
|
43267
43417
|
|
|
43268
|
-
export { AppWrapper, AutoscrollToBottomContainer, ButtonInputGroup, CSVDownloadButton, CheckboxButton, CopiableBox, DAY_IN_MS, DBEntryFieldType$1 as DBEntryFieldType, DBEntryManagerPanel, DayOfWeek$1 as DayOfWeek, Drawer, DynamicWord, ErrorBox, ErrorWithCode, HOUR_IN_MS, IntelliTable, ItemPicker, LoadingSpinner, LogAction$1 as LogAction, LogBuiltInMetadata, LogReviewer, LogSource$1 as LogSource, LogType$1 as LogType, MINUTE_IN_MS, Modal, ModalButtonType$1 as ModalButtonType, ModalSize$1 as ModalSize, ModalType$1 as ModalType, MultiSwitch, ParamType$1 as ParamType, PopFailureMark, PopPendingMark, PopSuccessMark, RadioButton, ReactKitErrorCode$1 as ReactKitErrorCode, SimpleDateChooser, TabBox, ToggleSwitch, Tooltip, Variant$1 as Variant, abbreviate, addDBEditorEndpoints, addFatalErrorHandler, alert, avg, canReviewLogs, ceilToNumDecimals, combineClassNames, compareArraysByProp, confirm, extractProp, floorToNumDecimals, forceNumIntoBounds, genCSV, genCommaList, genRouteHandler, getHumanReadableDate, getLocalTimeInfo, getMonthName, getOrdinal, getPartOfDay, getTimeInfoInET, handleError, handleSuccess, idify, initClient, initLogCollection, initServer, isMobileOrTablet, leaveToURL, logClientEvent, makeLinksClickable, onlyKeepLetters, padDecimalZeros, padZerosLeft, parallelLimit, prefixWithAOrAn, roundToNumDecimals, setClientEventMetadataPopulator, showFatalError, startMinWait, stringsToHumanReadableList, stubServerEndpoint, sum, useForceRender, validateEmail, validatePhoneNumber, validateString, visitServerEndpoint, waitMs };
|
|
43418
|
+
export { AppWrapper, AutoscrollToBottomContainer, ButtonInputGroup, CSVDownloadButton, CheckboxButton, CopiableBox, DAY_IN_MS, DBEntryFieldType$1 as DBEntryFieldType, DBEntryManagerPanel, DayOfWeek$1 as DayOfWeek, Drawer, DynamicWord, ErrorBox, ErrorWithCode, HOUR_IN_MS, IntelliTable, ItemPicker, LoadingSpinner, LogAction$1 as LogAction, LogBuiltInMetadata, LogReviewer, LogSource$1 as LogSource, LogType$1 as LogType, MINUTE_IN_MS, Modal, ModalButtonType$1 as ModalButtonType, ModalSize$1 as ModalSize, ModalType$1 as ModalType, MultiSwitch, ParamType$1 as ParamType, PopFailureMark, PopPendingMark, PopSuccessMark, RadioButton, ReactKitErrorCode$1 as ReactKitErrorCode, SimpleDateChooser, TabBox, ToggleSwitch, Tooltip, Variant$1 as Variant, abbreviate, addDBEditorEndpoints, addFatalErrorHandler, alert, avg, canReviewLogs, ceilToNumDecimals, combineClassNames, compareArraysByProp, confirm, everyAsync, extractProp, filterAsync, floorToNumDecimals, forEachAsync, forceNumIntoBounds, genCSV, genCommaList, genRouteHandler, getHumanReadableDate, getLocalTimeInfo, getMonthName, getOrdinal, getPartOfDay, getTimeInfoInET, handleError, handleSuccess, idify, initClient, initLogCollection, initServer, isMobileOrTablet, leaveToURL, logClientEvent, makeLinksClickable, mapAsync, onlyKeepLetters, padDecimalZeros, padZerosLeft, parallelLimit, prefixWithAOrAn, roundToNumDecimals, setClientEventMetadataPopulator, showFatalError, someAsync, startMinWait, stringsToHumanReadableList, stubServerEndpoint, sum, useForceRender, validateEmail, validatePhoneNumber, validateString, visitServerEndpoint, waitMs };
|
|
43269
43419
|
//# sourceMappingURL=index.js.map
|