dce-reactkit 4.1.5 → 4.2.0-beta-select-admin-check.1
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 +10 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/constants/SELECT_ADMIN_CHECK_ROUTE.d.ts +6 -0
- package/dist/cjs/types/index.d.ts +2 -1
- package/dist/esm/index.js +10 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/constants/SELECT_ADMIN_CHECK_ROUTE.d.ts +6 -0
- package/dist/esm/types/index.d.ts +2 -1
- package/dist/index.d.ts +7 -1
- package/package.json +1 -1
- package/src/components/SimpleDateChooser.tsx +2 -2
- package/src/components/SimpleTimeChooser.tsx +1 -1
- package/src/constants/SELECT_ADMIN_CHECK_ROUTE.ts +9 -0
- package/src/index.ts +2 -0
|
@@ -31,6 +31,7 @@ import LOG_REVIEW_ROUTE_PATH_PREFIX from './constants/LOG_REVIEW_ROUTE_PATH_PREF
|
|
|
31
31
|
import LOG_ROUTE_PATH from './constants/LOG_ROUTE_PATH';
|
|
32
32
|
import LOG_REVIEW_STATUS_ROUTE from './constants/LOG_REVIEW_STATUS_ROUTE';
|
|
33
33
|
import LOG_REVIEW_GET_LOGS_ROUTE from './constants/LOG_REVIEW_GET_LOGS_ROUTE';
|
|
34
|
+
import SELECT_ADMIN_CHECK_ROUTE from './constants/SELECT_ADMIN_CHECK_ROUTE';
|
|
34
35
|
import DynamicWord from './dynamicConstants/DynamicWord';
|
|
35
36
|
import initClient from './helpers/initClient';
|
|
36
37
|
import abbreviate from './helpers/abbreviate';
|
|
@@ -105,4 +106,4 @@ import PickableItem from './components/ItemPicker/types/PickableItem';
|
|
|
105
106
|
import DBEntry from './components/DBEntryManagerPanel/types/DBEntry';
|
|
106
107
|
import DBEntryField from './components/DBEntryManagerPanel/types/DBEntryField';
|
|
107
108
|
import DBEntryFieldType from './components/DBEntryManagerPanel/types/DBEntryFieldType';
|
|
108
|
-
export { AppWrapper, LoadingSpinner, ErrorBox, Modal, TabBox, RadioButton, CheckboxButton, ButtonInputGroup, SimpleDateChooser, SimpleTimeChooser, Drawer, PopSuccessMark, PopFailureMark, PopPendingMark, CopiableBox, ItemPicker, LogReviewer, IntelliTable, CSVDownloadButton, DBEntryManagerPanel, Tooltip, ToggleSwitch, AutoscrollToBottomContainer, MultiSwitch, Dropdown, alert, prompt, confirm, showFatalError, ErrorWithCode, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, LOG_REVIEW_ROUTE_PATH_PREFIX, LOG_ROUTE_PATH, LOG_REVIEW_STATUS_ROUTE, LOG_REVIEW_GET_LOGS_ROUTE, 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, capitalize, shuffleArray, getWordCount, cloneDeep, getTimestampFromTimeInfoInET, initClient, visitServerEndpoint, logClientEvent, addFatalErrorHandler, leaveToURL, combineClassNames, useForceRender, setClientEventMetadataPopulator, ParamType, ModalButtonType, ModalSize, ModalType, ReactKitErrorCode, Variant, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, LogFunction, LogTypeSpecificInfo, LogMainInfo, LogSourceSpecificInfo, LogLevel, IntelliTableColumn, DropdownItemType, LogReviewerFilterState, PickableItem, DBEntry, DBEntryField, DBEntryFieldType, };
|
|
109
|
+
export { AppWrapper, LoadingSpinner, ErrorBox, Modal, TabBox, RadioButton, CheckboxButton, ButtonInputGroup, SimpleDateChooser, SimpleTimeChooser, Drawer, PopSuccessMark, PopFailureMark, PopPendingMark, CopiableBox, ItemPicker, LogReviewer, IntelliTable, CSVDownloadButton, DBEntryManagerPanel, Tooltip, ToggleSwitch, AutoscrollToBottomContainer, MultiSwitch, Dropdown, alert, prompt, confirm, showFatalError, ErrorWithCode, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, LOG_REVIEW_ROUTE_PATH_PREFIX, LOG_ROUTE_PATH, LOG_REVIEW_STATUS_ROUTE, LOG_REVIEW_GET_LOGS_ROUTE, SELECT_ADMIN_CHECK_ROUTE, 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, capitalize, shuffleArray, getWordCount, cloneDeep, getTimestampFromTimeInfoInET, initClient, visitServerEndpoint, logClientEvent, addFatalErrorHandler, leaveToURL, combineClassNames, useForceRender, setClientEventMetadataPopulator, ParamType, ModalButtonType, ModalSize, ModalType, ReactKitErrorCode, Variant, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, LogFunction, LogTypeSpecificInfo, LogMainInfo, LogSourceSpecificInfo, LogLevel, IntelliTableColumn, DropdownItemType, LogReviewerFilterState, PickableItem, DBEntry, DBEntryField, DBEntryFieldType, };
|
package/dist/index.d.ts
CHANGED
|
@@ -822,6 +822,12 @@ declare const LOG_REVIEW_STATUS_ROUTE: string;
|
|
|
822
822
|
*/
|
|
823
823
|
declare const LOG_REVIEW_GET_LOGS_ROUTE: string;
|
|
824
824
|
|
|
825
|
+
/**
|
|
826
|
+
* Route for checking if the current user is a select admin
|
|
827
|
+
* @author Gabe Abrams
|
|
828
|
+
*/
|
|
829
|
+
declare const SELECT_ADMIN_CHECK_ROUTE: string;
|
|
830
|
+
|
|
825
831
|
/**
|
|
826
832
|
* Dynamic words determined by the user's platform
|
|
827
833
|
* @author Gabe Abrams
|
|
@@ -1701,4 +1707,4 @@ type LogReviewerFilterState = {
|
|
|
1701
1707
|
advancedFilterState: AdvancedFilterState;
|
|
1702
1708
|
};
|
|
1703
1709
|
|
|
1704
|
-
export { AppWrapper, AutoscrollToBottomContainer, ButtonInputGroup, CSVDownloadButton, CheckboxButton, CopiableBox, DAY_IN_MS, DBEntry, DBEntryField, DBEntryFieldType, DBEntryManagerPanel, DayOfWeek, Drawer, Dropdown, DropdownItemType, DynamicWord, ErrorBox, ErrorWithCode, HOUR_IN_MS, IntelliTable, IntelliTableColumn, ItemPicker, LOG_REVIEW_GET_LOGS_ROUTE, LOG_REVIEW_ROUTE_PATH_PREFIX, LOG_REVIEW_STATUS_ROUTE, LOG_ROUTE_PATH, LoadingSpinner, Log, LogAction, LogBuiltInMetadata, LogFunction, LogLevel, LogMainInfo, LogMetadataType, LogReviewer, LogReviewerFilterState, LogSource, LogSourceSpecificInfo, LogType, LogTypeSpecificInfo, MINUTE_IN_MS, Modal, ModalButtonType, ModalSize, ModalType, MultiSwitch, ParamType, PickableItem, PopFailureMark, PopPendingMark, PopSuccessMark, RadioButton, ReactKitErrorCode, SimpleDateChooser, SimpleTimeChooser, TabBox, ToggleSwitch, Tooltip, Variant, abbreviate, addFatalErrorHandler, alert, avg, canReviewLogs, capitalize, ceilToNumDecimals, cloneDeep, combineClassNames, compareArraysByProp, confirm, everyAsync, extractProp, filterAsync, floorToNumDecimals, forEachAsync, forceNumIntoBounds, genCSV, genCommaList, getHumanReadableDate, getLocalTimeInfo, getMonthName, getOrdinal, getPartOfDay, getTimeInfoInET, getTimestampFromTimeInfoInET, getWordCount, idify, initClient, isMobileOrTablet, leaveToURL, logClientEvent, makeLinksClickable, mapAsync, onlyKeepLetters, padDecimalZeros, padZerosLeft, parallelLimit, prefixWithAOrAn, prompt, roundToNumDecimals, setClientEventMetadataPopulator, showFatalError, shuffleArray, someAsync, startMinWait, stringsToHumanReadableList, stubServerEndpoint, sum, useForceRender, validateEmail, validatePhoneNumber, validateString, visitServerEndpoint, waitMs };
|
|
1710
|
+
export { AppWrapper, AutoscrollToBottomContainer, ButtonInputGroup, CSVDownloadButton, CheckboxButton, CopiableBox, DAY_IN_MS, DBEntry, DBEntryField, DBEntryFieldType, DBEntryManagerPanel, DayOfWeek, Drawer, Dropdown, DropdownItemType, DynamicWord, ErrorBox, ErrorWithCode, HOUR_IN_MS, IntelliTable, IntelliTableColumn, ItemPicker, LOG_REVIEW_GET_LOGS_ROUTE, LOG_REVIEW_ROUTE_PATH_PREFIX, LOG_REVIEW_STATUS_ROUTE, LOG_ROUTE_PATH, LoadingSpinner, Log, LogAction, LogBuiltInMetadata, LogFunction, LogLevel, LogMainInfo, LogMetadataType, LogReviewer, LogReviewerFilterState, LogSource, LogSourceSpecificInfo, LogType, LogTypeSpecificInfo, MINUTE_IN_MS, Modal, ModalButtonType, ModalSize, ModalType, MultiSwitch, ParamType, PickableItem, PopFailureMark, PopPendingMark, PopSuccessMark, RadioButton, ReactKitErrorCode, SELECT_ADMIN_CHECK_ROUTE, SimpleDateChooser, SimpleTimeChooser, TabBox, ToggleSwitch, Tooltip, Variant, abbreviate, addFatalErrorHandler, alert, avg, canReviewLogs, capitalize, ceilToNumDecimals, cloneDeep, combineClassNames, compareArraysByProp, confirm, everyAsync, extractProp, filterAsync, floorToNumDecimals, forEachAsync, forceNumIntoBounds, genCSV, genCommaList, getHumanReadableDate, getLocalTimeInfo, getMonthName, getOrdinal, getPartOfDay, getTimeInfoInET, getTimestampFromTimeInfoInET, getWordCount, idify, initClient, isMobileOrTablet, leaveToURL, logClientEvent, makeLinksClickable, mapAsync, onlyKeepLetters, padDecimalZeros, padZerosLeft, parallelLimit, prefixWithAOrAn, prompt, roundToNumDecimals, setClientEventMetadataPopulator, showFatalError, shuffleArray, someAsync, startMinWait, stringsToHumanReadableList, stubServerEndpoint, sum, useForceRender, validateEmail, validatePhoneNumber, validateString, visitServerEndpoint, waitMs };
|
package/package.json
CHANGED
|
@@ -421,7 +421,7 @@ const SimpleDateChooser: React.FC<Props> = (props) => {
|
|
|
421
421
|
{/* Month Chooser */}
|
|
422
422
|
<select
|
|
423
423
|
aria-label={`month for ${ariaLabel}`}
|
|
424
|
-
className="custom-select d-inline-block mr-1"
|
|
424
|
+
className="custom-select form-select d-inline-block mr-1"
|
|
425
425
|
style={{ width: 'auto' }}
|
|
426
426
|
id={`SimpleDateChooser-${name}-month`}
|
|
427
427
|
value={`${month}-${year}`}
|
|
@@ -442,7 +442,7 @@ const SimpleDateChooser: React.FC<Props> = (props) => {
|
|
|
442
442
|
{/* Day Chooser */}
|
|
443
443
|
<select
|
|
444
444
|
aria-label={`day for ${ariaLabel}`}
|
|
445
|
-
className="custom-select d-inline-block"
|
|
445
|
+
className="custom-select form-select d-inline-block"
|
|
446
446
|
style={{ width: 'auto' }}
|
|
447
447
|
id={`SimpleDateChooser-${name}-day`}
|
|
448
448
|
value={day}
|
|
@@ -167,7 +167,7 @@ const SimpleTimeChooser: React.FC<Props> = (props) => {
|
|
|
167
167
|
{/* Time Chooser */}
|
|
168
168
|
<select
|
|
169
169
|
aria-label={`time for ${ariaLabel}`}
|
|
170
|
-
className="custom-select d-inline-block"
|
|
170
|
+
className="custom-select form-select d-inline-block"
|
|
171
171
|
style={{ width: 'auto' }}
|
|
172
172
|
id={`SimpleTimeChooser-${name}-time`}
|
|
173
173
|
value={selectedTimeMin}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import ROUTE_PATH_PREFIX from './ROUTE_PATH_PREFIX';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Route for checking if the current user is a select admin
|
|
5
|
+
* @author Gabe Abrams
|
|
6
|
+
*/
|
|
7
|
+
const SELECT_ADMIN_CHECK_ROUTE = `${ROUTE_PATH_PREFIX}/select-admin/is-select-admin`;
|
|
8
|
+
|
|
9
|
+
export default SELECT_ADMIN_CHECK_ROUTE;
|
package/src/index.ts
CHANGED
|
@@ -43,6 +43,7 @@ import LOG_REVIEW_ROUTE_PATH_PREFIX from './constants/LOG_REVIEW_ROUTE_PATH_PREF
|
|
|
43
43
|
import LOG_ROUTE_PATH from './constants/LOG_ROUTE_PATH';
|
|
44
44
|
import LOG_REVIEW_STATUS_ROUTE from './constants/LOG_REVIEW_STATUS_ROUTE';
|
|
45
45
|
import LOG_REVIEW_GET_LOGS_ROUTE from './constants/LOG_REVIEW_GET_LOGS_ROUTE';
|
|
46
|
+
import SELECT_ADMIN_CHECK_ROUTE from './constants/SELECT_ADMIN_CHECK_ROUTE';
|
|
46
47
|
|
|
47
48
|
// Import dynamic constants
|
|
48
49
|
import DynamicWord from './dynamicConstants/DynamicWord';
|
|
@@ -169,6 +170,7 @@ export {
|
|
|
169
170
|
LOG_ROUTE_PATH,
|
|
170
171
|
LOG_REVIEW_STATUS_ROUTE,
|
|
171
172
|
LOG_REVIEW_GET_LOGS_ROUTE,
|
|
173
|
+
SELECT_ADMIN_CHECK_ROUTE,
|
|
172
174
|
// Dynamic Constants
|
|
173
175
|
DynamicWord,
|
|
174
176
|
// Helpers
|