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.
package/dist/cjs/index.js CHANGED
@@ -6,7 +6,6 @@ var React = require('react');
6
6
  var freeSolidSvgIcons = require('@fortawesome/free-solid-svg-icons');
7
7
  var reactFontawesome = require('@fortawesome/react-fontawesome');
8
8
  var freeRegularSvgIcons = require('@fortawesome/free-regular-svg-icons');
9
- var bootstrap = require('bootstrap');
10
9
 
11
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
11
 
@@ -1612,8 +1611,7 @@ const getTimeInfoInET = (dateOrTimestamp) => {
1612
1611
  d = dateOrTimestamp;
1613
1612
  }
1614
1613
  const str = d.toLocaleString('en-US', // Using US encoding (it's the only one installed on containers)
1615
- { timeZone: 'America/New_York' } // Force EST timezone
1616
- );
1614
+ { timeZone: 'America/New_York' });
1617
1615
  // Parse the string for the date/time info
1618
1616
  const [dateStr, timeStr] = str.split(', '); // Format: MM/DD/YYYY, HH:MM:SS AM
1619
1617
  const [monthStr, dayStr, yearStr] = dateStr.split('/'); // Format: MM/DD/YYYY
@@ -1624,7 +1622,7 @@ const getTimeInfoInET = (dateOrTimestamp) => {
1624
1622
  const month = Number.parseInt(monthStr, 10);
1625
1623
  const day = Number.parseInt(dayStr, 10);
1626
1624
  const minute = Number.parseInt(minStr, 10);
1627
- let hour12 = Number.parseInt(hourStr, 10);
1625
+ const hour12 = Number.parseInt(hourStr, 10);
1628
1626
  // Convert from am/pm to 24hr
1629
1627
  const isAM = ending.toLowerCase().includes('am');
1630
1628
  const isPM = !isAM;
@@ -40600,15 +40598,24 @@ const Tooltip = (props) => {
40600
40598
  if (!childRef.current) {
40601
40599
  return;
40602
40600
  }
40601
+ // Store copy of tooltip
40602
+ let t;
40603
40603
  // Initialize tooltip
40604
- const t = new bootstrap.Tooltip(childRef.current, {
40605
- title: text,
40606
- placement: 'top',
40607
- trigger: 'hover',
40608
- });
40604
+ (() => __awaiter(void 0, void 0, void 0, function* () {
40605
+ // Import bootstrap tooltip
40606
+ const BSTooltip = (yield Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('bootstrap')); })).Tooltip;
40607
+ // Initialize
40608
+ t = new BSTooltip(childRef.current, {
40609
+ title: text,
40610
+ placement: 'top',
40611
+ trigger: 'hover',
40612
+ });
40613
+ }))();
40609
40614
  // Clean up tooltip
40610
40615
  return () => {
40611
- t.dispose();
40616
+ if (t) {
40617
+ t.dispose();
40618
+ }
40612
40619
  };
40613
40620
  }, [text]);
40614
40621
  /*------------------------------------------------------------------------*/
@@ -42714,7 +42721,7 @@ const initLogCollection = (Collection) => {
42714
42721
  /* -------------------------------- Cache ------------------------------- */
42715
42722
  /*------------------------------------------------------------------------*/
42716
42723
  // Cache user's ability
42717
- let canReview = undefined;
42724
+ let canReview;
42718
42725
  /*------------------------------------------------------------------------*/
42719
42726
  /* -------------------------------- Main -------------------------------- */
42720
42727
  /*------------------------------------------------------------------------*/