dce-reactkit 3.2.2-beta.53 → 3.2.2-beta.54
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 +6 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +6 -12
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/LogReviewer.tsx +3 -10
package/dist/esm/index.js
CHANGED
|
@@ -3111,7 +3111,7 @@ const LogReviewer = (props) => {
|
|
|
3111
3111
|
/*------------------------------------------------------------------------*/
|
|
3112
3112
|
/* Setup */
|
|
3113
3113
|
/*------------------------------------------------------------------------*/
|
|
3114
|
-
var _a, _b, _c, _d
|
|
3114
|
+
var _a, _b, _c, _d;
|
|
3115
3115
|
/* -------------- Props ------------- */
|
|
3116
3116
|
// Destructure props
|
|
3117
3117
|
const { LogMetadata, onClose, } = props;
|
|
@@ -3159,7 +3159,7 @@ const LogReviewer = (props) => {
|
|
|
3159
3159
|
};
|
|
3160
3160
|
// Create initial context filter state
|
|
3161
3161
|
const initContextFilterState = {};
|
|
3162
|
-
Object.keys(
|
|
3162
|
+
Object.keys(contextMap).forEach((context) => {
|
|
3163
3163
|
var _a, _b;
|
|
3164
3164
|
const contextValue = ((_a = LogMetadata.Context) !== null && _a !== void 0 ? _a : {})[context];
|
|
3165
3165
|
if (typeof contextValue === 'string') {
|
|
@@ -3181,7 +3181,7 @@ const LogReviewer = (props) => {
|
|
|
3181
3181
|
});
|
|
3182
3182
|
// Create initial tag filter state
|
|
3183
3183
|
const initTagFilterState = {};
|
|
3184
|
-
Object.keys((
|
|
3184
|
+
Object.keys((_c = LogMetadata.Tag) !== null && _c !== void 0 ? _c : {}).forEach((tag) => {
|
|
3185
3185
|
initTagFilterState[tag] = false;
|
|
3186
3186
|
});
|
|
3187
3187
|
// Create advanced filter state
|
|
@@ -3208,16 +3208,12 @@ const LogReviewer = (props) => {
|
|
|
3208
3208
|
target: {},
|
|
3209
3209
|
action: {},
|
|
3210
3210
|
};
|
|
3211
|
-
Object.values(
|
|
3211
|
+
Object.values(targetMap).forEach((target) => {
|
|
3212
3212
|
initActionErrorFilterState.target[target] = true;
|
|
3213
3213
|
});
|
|
3214
3214
|
Object.values(LogAction$1).forEach((action) => {
|
|
3215
3215
|
initActionErrorFilterState.action[action] = true;
|
|
3216
3216
|
});
|
|
3217
|
-
// Add built-in targets
|
|
3218
|
-
Object.values(LogBuiltInMetadata.Target).forEach((target) => {
|
|
3219
|
-
initActionErrorFilterState.target[target] = true;
|
|
3220
|
-
});
|
|
3221
3217
|
// Initial state
|
|
3222
3218
|
const initialState = {
|
|
3223
3219
|
loading: true,
|
|
@@ -3442,7 +3438,7 @@ const LogReviewer = (props) => {
|
|
|
3442
3438
|
const pickableItems = [];
|
|
3443
3439
|
Object.keys(contextMap)
|
|
3444
3440
|
.forEach((context) => {
|
|
3445
|
-
const value =
|
|
3441
|
+
const value = contextMap[context];
|
|
3446
3442
|
if (typeof value === 'string') {
|
|
3447
3443
|
// No subcategories
|
|
3448
3444
|
const item = {
|
|
@@ -3526,7 +3522,7 @@ const LogReviewer = (props) => {
|
|
|
3526
3522
|
// Create filter UI
|
|
3527
3523
|
filterDrawer = (React.createElement(TabBox, { title: "Tags" },
|
|
3528
3524
|
React.createElement("div", null, "If any tags are selected, logs must contain at least one (but not necessarily all) of the selected tags."),
|
|
3529
|
-
React.createElement("div", { className: "d-flex gap-1 flex-wrap" }, Object.keys((
|
|
3525
|
+
React.createElement("div", { className: "d-flex gap-1 flex-wrap" }, Object.keys((_d = LogMetadata.Tag) !== null && _d !== void 0 ? _d : {})
|
|
3530
3526
|
.map((tag) => {
|
|
3531
3527
|
const description = genHumanReadableName(tag);
|
|
3532
3528
|
return (React.createElement(CheckboxButton, { key: tag, id: `LogReviewer-tag-${tag}-checkbox`, text: description, ariaLabel: `require that logs be tagged with "${description}" or any other selected tag`, checked: tagFilterState[tag], onChanged: (checked) => {
|
|
@@ -3572,7 +3568,6 @@ const LogReviewer = (props) => {
|
|
|
3572
3568
|
const description = genHumanReadableName(action);
|
|
3573
3569
|
return (React.createElement(CheckboxButton, { key: action, id: `LogReviewer-action-${action}-checkbox`, text: description, ariaLabel: `include logs with action type "${description}" in results`, noMarginOnRight: true, checked: actionErrorFilterState.action[action], onChanged: (checked) => {
|
|
3574
3570
|
actionErrorFilterState.action[action] = checked;
|
|
3575
|
-
console.log(actionErrorFilterState, action, checked);
|
|
3576
3571
|
dispatch({
|
|
3577
3572
|
type: ActionType.UpdateActionErrorFilterState,
|
|
3578
3573
|
actionErrorFilterState,
|
|
@@ -3585,7 +3580,6 @@ const LogReviewer = (props) => {
|
|
|
3585
3580
|
const description = genHumanReadableName(target);
|
|
3586
3581
|
return (React.createElement(CheckboxButton, { key: target, id: `LogReviewer-target-${target}-checkbox`, text: description, ariaLabel: `include logs with target "${description}" in results`, checked: actionErrorFilterState.target[target], noMarginOnRight: true, onChanged: (checked) => {
|
|
3587
3582
|
actionErrorFilterState.target[target] = checked;
|
|
3588
|
-
console.log(actionErrorFilterState, target, checked);
|
|
3589
3583
|
dispatch({
|
|
3590
3584
|
type: ActionType.UpdateActionErrorFilterState,
|
|
3591
3585
|
actionErrorFilterState,
|