dce-reactkit 3.7.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.
@@ -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
@@ -3,7 +3,6 @@ import React__default, { useState, useRef, useEffect, useReducer, forwardRef, us
3
3
  import { faExclamationTriangle, faHourglassEnd, faCircle, faDotCircle, faCheckSquare, faHourglass, faClipboard, faChevronDown, faChevronRight, faCloudDownloadAlt, faMinus, faCheckCircle, faXmarkCircle, faSort, faSortDown, faSortUp, faCalendar, faTag, faHammer, faList, faTimes, faSave, faTrash, faCog, faPlus } from '@fortawesome/free-solid-svg-icons';
4
4
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
5
5
  import { faCircle as faCircle$1, faSquareMinus, faSquare } from '@fortawesome/free-regular-svg-icons';
6
- import { Tooltip as Tooltip$1 } from 'bootstrap';
7
6
 
8
7
  /******************************************************************************
9
8
  Copyright (c) Microsoft Corporation.
@@ -1586,8 +1585,7 @@ const getTimeInfoInET = (dateOrTimestamp) => {
1586
1585
  d = dateOrTimestamp;
1587
1586
  }
1588
1587
  const str = d.toLocaleString('en-US', // Using US encoding (it's the only one installed on containers)
1589
- { timeZone: 'America/New_York' } // Force EST timezone
1590
- );
1588
+ { timeZone: 'America/New_York' });
1591
1589
  // Parse the string for the date/time info
1592
1590
  const [dateStr, timeStr] = str.split(', '); // Format: MM/DD/YYYY, HH:MM:SS AM
1593
1591
  const [monthStr, dayStr, yearStr] = dateStr.split('/'); // Format: MM/DD/YYYY
@@ -1598,7 +1596,7 @@ const getTimeInfoInET = (dateOrTimestamp) => {
1598
1596
  const month = Number.parseInt(monthStr, 10);
1599
1597
  const day = Number.parseInt(dayStr, 10);
1600
1598
  const minute = Number.parseInt(minStr, 10);
1601
- let hour12 = Number.parseInt(hourStr, 10);
1599
+ const hour12 = Number.parseInt(hourStr, 10);
1602
1600
  // Convert from am/pm to 24hr
1603
1601
  const isAM = ending.toLowerCase().includes('am');
1604
1602
  const isPM = !isAM;
@@ -40574,15 +40572,24 @@ const Tooltip = (props) => {
40574
40572
  if (!childRef.current) {
40575
40573
  return;
40576
40574
  }
40575
+ // Store copy of tooltip
40576
+ let t;
40577
40577
  // Initialize tooltip
40578
- const t = new Tooltip$1(childRef.current, {
40579
- title: text,
40580
- placement: 'top',
40581
- trigger: 'hover',
40582
- });
40578
+ (() => __awaiter(void 0, void 0, void 0, function* () {
40579
+ // Import bootstrap tooltip
40580
+ const BSTooltip = (yield import('bootstrap')).Tooltip;
40581
+ // Initialize
40582
+ t = new BSTooltip(childRef.current, {
40583
+ title: text,
40584
+ placement: 'top',
40585
+ trigger: 'hover',
40586
+ });
40587
+ }))();
40583
40588
  // Clean up tooltip
40584
40589
  return () => {
40585
- t.dispose();
40590
+ if (t) {
40591
+ t.dispose();
40592
+ }
40586
40593
  };
40587
40594
  }, [text]);
40588
40595
  /*------------------------------------------------------------------------*/
@@ -42688,7 +42695,7 @@ const initLogCollection = (Collection) => {
42688
42695
  /* -------------------------------- Cache ------------------------------- */
42689
42696
  /*------------------------------------------------------------------------*/
42690
42697
  // Cache user's ability
42691
- let canReview = undefined;
42698
+ let canReview;
42692
42699
  /*------------------------------------------------------------------------*/
42693
42700
  /* -------------------------------- Main -------------------------------- */
42694
42701
  /*------------------------------------------------------------------------*/