dce-reactkit 3.7.2-beta.1 → 3.7.3
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 +3 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/index.d.ts +2 -1
- package/dist/esm/index.js +3 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/index.d.ts +2 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/helpers/canReviewLogs.ts +1 -1
- package/src/helpers/getTimeInfoInET.ts +3 -3
- package/src/index.ts +2 -0
|
@@ -83,9 +83,10 @@ import LogSource from './types/LogSource';
|
|
|
83
83
|
import LogAction from './types/LogAction';
|
|
84
84
|
import LogBuiltInMetadata from './types/LogBuiltInMetadata';
|
|
85
85
|
import LogMetadataType from './types/LogMetadataType';
|
|
86
|
+
import LogFunction from './types/LogFunction';
|
|
86
87
|
import IntelliTableColumn from './types/IntelliTableColumn';
|
|
87
88
|
import PickableItem from './components/ItemPicker/types/PickableItem';
|
|
88
89
|
import DBEntry from './components/DBEntryManagerPanel/types/DBEntry';
|
|
89
90
|
import DBEntryField from './components/DBEntryManagerPanel/types/DBEntryField';
|
|
90
91
|
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, };
|
|
92
|
+
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, LogFunction, IntelliTableColumn, PickableItem, DBEntry, DBEntryField, DBEntryFieldType, ParamType, };
|
package/dist/esm/index.js
CHANGED
|
@@ -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
|
/*------------------------------------------------------------------------*/
|