dce-reactkit 3.7.34 → 3.7.35
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 +18 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/helpers/capitalize.d.ts +7 -0
- package/dist/cjs/types/index.d.ts +2 -1
- package/dist/esm/index.js +18 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/helpers/capitalize.d.ts +7 -0
- package/dist/esm/types/index.d.ts +2 -1
- package/dist/index.d.ts +8 -1
- package/package.json +1 -1
- package/src/helpers/capitalize.ts +20 -0
- package/src/index.ts +2 -0
|
@@ -75,6 +75,7 @@ import filterAsync from './helpers/asyncArrayFunctions/filterAsync';
|
|
|
75
75
|
import forEachAsync from './helpers/asyncArrayFunctions/forEachAsync';
|
|
76
76
|
import mapAsync from './helpers/asyncArrayFunctions/mapAsync';
|
|
77
77
|
import someAsync from './helpers/asyncArrayFunctions/someAsync';
|
|
78
|
+
import capitalize from './helpers/capitalize';
|
|
78
79
|
import ModalButtonType from './types/ModalButtonType';
|
|
79
80
|
import ModalSize from './types/ModalSize';
|
|
80
81
|
import ModalType from './types/ModalType';
|
|
@@ -94,4 +95,4 @@ import PickableItem from './components/ItemPicker/types/PickableItem';
|
|
|
94
95
|
import DBEntry from './components/DBEntryManagerPanel/types/DBEntry';
|
|
95
96
|
import DBEntryField from './components/DBEntryManagerPanel/types/DBEntryField';
|
|
96
97
|
import DBEntryFieldType from './components/DBEntryManagerPanel/types/DBEntryFieldType';
|
|
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, };
|
|
98
|
+
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, capitalize, 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/index.d.ts
CHANGED
|
@@ -1552,6 +1552,13 @@ declare const someAsync: <T>(array: T[], operatorFunction: (item: T, index: numb
|
|
|
1552
1552
|
array: T[];
|
|
1553
1553
|
}) => Promise<any>) => Promise<boolean>;
|
|
1554
1554
|
|
|
1555
|
+
/**
|
|
1556
|
+
* Capitalize every word in a string (just the first letter)
|
|
1557
|
+
* @param str string to capitalize
|
|
1558
|
+
* @returns string with every word capitalized
|
|
1559
|
+
*/
|
|
1560
|
+
declare const capitalize: (str: string) => string;
|
|
1561
|
+
|
|
1555
1562
|
/**
|
|
1556
1563
|
* List of error codes built into the react kit
|
|
1557
1564
|
* @author Gabe Abrams
|
|
@@ -1602,4 +1609,4 @@ declare const LogBuiltInMetadata: {
|
|
|
1602
1609
|
};
|
|
1603
1610
|
};
|
|
1604
1611
|
|
|
1605
|
-
export { AppWrapper, AutoscrollToBottomContainer, ButtonInputGroup, CSVDownloadButton, CheckboxButton, CopiableBox, DAY_IN_MS, DBEntry, DBEntryField, DBEntryFieldType, DBEntryManagerPanel, DayOfWeek, Drawer, DynamicWord, ErrorBox, ErrorWithCode, HOUR_IN_MS, IntelliTable, IntelliTableColumn, ItemPicker, LoadingSpinner, Log, LogAction, LogBuiltInMetadata, LogFunction, LogMetadataType, LogReviewer, LogSource, LogType, MINUTE_IN_MS, Modal, ModalButtonType, ModalSize, ModalType, MultiSwitch, ParamType, PickableItem, PopFailureMark, PopPendingMark, PopSuccessMark, RadioButton, ReactKitErrorCode, SimpleDateChooser, TabBox, ToggleSwitch, Tooltip, 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 };
|
|
1612
|
+
export { AppWrapper, AutoscrollToBottomContainer, ButtonInputGroup, CSVDownloadButton, CheckboxButton, CopiableBox, DAY_IN_MS, DBEntry, DBEntryField, DBEntryFieldType, DBEntryManagerPanel, DayOfWeek, Drawer, DynamicWord, ErrorBox, ErrorWithCode, HOUR_IN_MS, IntelliTable, IntelliTableColumn, ItemPicker, LoadingSpinner, Log, LogAction, LogBuiltInMetadata, LogFunction, LogMetadataType, LogReviewer, LogSource, LogType, MINUTE_IN_MS, Modal, ModalButtonType, ModalSize, ModalType, MultiSwitch, ParamType, PickableItem, PopFailureMark, PopPendingMark, PopSuccessMark, RadioButton, ReactKitErrorCode, SimpleDateChooser, TabBox, ToggleSwitch, Tooltip, Variant, abbreviate, addDBEditorEndpoints, addFatalErrorHandler, alert, avg, canReviewLogs, capitalize, 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 };
|
package/package.json
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capitalize every word in a string (just the first letter)
|
|
3
|
+
* @param str string to capitalize
|
|
4
|
+
* @returns string with every word capitalized
|
|
5
|
+
*/
|
|
6
|
+
const capitalize = (str: string): string => {
|
|
7
|
+
return (
|
|
8
|
+
str
|
|
9
|
+
// Split into words
|
|
10
|
+
.split(' ')
|
|
11
|
+
// Capitalize first letter of each word
|
|
12
|
+
.map((word) => {
|
|
13
|
+
return word.charAt(0).toUpperCase() + word.substring(1);
|
|
14
|
+
})
|
|
15
|
+
// Join back together
|
|
16
|
+
.join(' ')
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default capitalize;
|
package/src/index.ts
CHANGED
|
@@ -90,6 +90,7 @@ import filterAsync from './helpers/asyncArrayFunctions/filterAsync';
|
|
|
90
90
|
import forEachAsync from './helpers/asyncArrayFunctions/forEachAsync';
|
|
91
91
|
import mapAsync from './helpers/asyncArrayFunctions/mapAsync';
|
|
92
92
|
import someAsync from './helpers/asyncArrayFunctions/someAsync';
|
|
93
|
+
import capitalize from './helpers/capitalize';
|
|
93
94
|
|
|
94
95
|
// Import types
|
|
95
96
|
import ModalButtonType from './types/ModalButtonType';
|
|
@@ -191,6 +192,7 @@ export {
|
|
|
191
192
|
forEachAsync,
|
|
192
193
|
mapAsync,
|
|
193
194
|
someAsync,
|
|
195
|
+
capitalize,
|
|
194
196
|
// Client helpers
|
|
195
197
|
initClient,
|
|
196
198
|
visitServerEndpoint,
|