@redocly/theme 0.18.3-patch.6 → 0.18.3-patch.8
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/lib/components/Filter/Filter.js +1 -1
- package/lib/config.d.ts +28 -0
- package/lib/config.js +8 -0
- package/package.json +1 -1
- package/src/components/Filter/Filter.tsx +1 -1
- package/src/config.ts +8 -0
|
@@ -41,7 +41,7 @@ function Filter({ filter, filterValuesCasing, }) {
|
|
|
41
41
|
react_1.default.createElement(FilterTitle, null,
|
|
42
42
|
translate(filter.titleTranslationKey, filter.title),
|
|
43
43
|
" "),
|
|
44
|
-
filter.type === 'select' ? (react_1.default.createElement(StyledSelect, { value: (_a = filter.selectedOptions.values().next()) === null || _a === void 0 ? void 0 : _a.value, onChange: (value) => filter.selectOption(value), options: selectOptions })) : filter.type === 'date-range' ? (react_1.default.createElement(react_1.default.Fragment, null,
|
|
44
|
+
filter.type === 'select' ? (react_1.default.createElement(StyledSelect, { value: ((_a = filter.selectedOptions.values().next()) === null || _a === void 0 ? void 0 : _a.value) || '', onChange: (value) => filter.selectOption(value), options: selectOptions })) : filter.type === 'date-range' ? (react_1.default.createElement(react_1.default.Fragment, null,
|
|
45
45
|
react_1.default.createElement(DatePickerWrapper, null,
|
|
46
46
|
react_1.default.createElement("span", null, "From:"),
|
|
47
47
|
react_1.default.createElement(react_date_picker_1.DatePicker, { closeCalendar: true, format: "y-MM-dd", dayPlaceholder: "DD", monthPlaceholder: "MM", yearPlaceholder: "YYYY", value: filter.selectedOptions.from ? new Date(filter.selectedOptions.from) : null, minDetail: "decade", maxDate: new Date(), onChange: (from) => {
|
package/lib/config.d.ts
CHANGED
|
@@ -356,6 +356,20 @@ declare const scorecardConfigSchema: {
|
|
|
356
356
|
readonly type: "boolean";
|
|
357
357
|
readonly default: false;
|
|
358
358
|
};
|
|
359
|
+
readonly teamMetadataProperty: {
|
|
360
|
+
readonly type: "object";
|
|
361
|
+
readonly properties: {
|
|
362
|
+
readonly property: {
|
|
363
|
+
readonly type: "string";
|
|
364
|
+
};
|
|
365
|
+
readonly label: {
|
|
366
|
+
readonly type: "string";
|
|
367
|
+
};
|
|
368
|
+
readonly default: {
|
|
369
|
+
readonly type: "string";
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
};
|
|
359
373
|
readonly levels: {
|
|
360
374
|
readonly type: "array";
|
|
361
375
|
readonly items: {
|
|
@@ -1905,6 +1919,20 @@ export declare const themeConfigSchema: {
|
|
|
1905
1919
|
readonly type: "boolean";
|
|
1906
1920
|
readonly default: false;
|
|
1907
1921
|
};
|
|
1922
|
+
readonly teamMetadataProperty: {
|
|
1923
|
+
readonly type: "object";
|
|
1924
|
+
readonly properties: {
|
|
1925
|
+
readonly property: {
|
|
1926
|
+
readonly type: "string";
|
|
1927
|
+
};
|
|
1928
|
+
readonly label: {
|
|
1929
|
+
readonly type: "string";
|
|
1930
|
+
};
|
|
1931
|
+
readonly default: {
|
|
1932
|
+
readonly type: "string";
|
|
1933
|
+
};
|
|
1934
|
+
};
|
|
1935
|
+
};
|
|
1908
1936
|
readonly levels: {
|
|
1909
1937
|
readonly type: "array";
|
|
1910
1938
|
readonly items: {
|
package/lib/config.js
CHANGED
|
@@ -285,6 +285,14 @@ const scorecardConfigSchema = {
|
|
|
285
285
|
required: ['levels'],
|
|
286
286
|
properties: {
|
|
287
287
|
failBuildIfBelowMinimum: { type: 'boolean', default: false },
|
|
288
|
+
teamMetadataProperty: {
|
|
289
|
+
type: 'object',
|
|
290
|
+
properties: {
|
|
291
|
+
property: { type: 'string' },
|
|
292
|
+
label: { type: 'string' },
|
|
293
|
+
default: { type: 'string' },
|
|
294
|
+
},
|
|
295
|
+
},
|
|
288
296
|
levels: {
|
|
289
297
|
type: 'array',
|
|
290
298
|
items: {
|
package/package.json
CHANGED
|
@@ -62,7 +62,7 @@ export function Filter({
|
|
|
62
62
|
<FilterTitle>{translate(filter.titleTranslationKey, filter.title)} </FilterTitle>
|
|
63
63
|
{filter.type === 'select' ? (
|
|
64
64
|
<StyledSelect
|
|
65
|
-
value={(filter.selectedOptions as Set<any>).values().next()?.value}
|
|
65
|
+
value={(filter.selectedOptions as Set<any>).values().next()?.value || ''}
|
|
66
66
|
onChange={(value) => filter.selectOption(value)}
|
|
67
67
|
options={selectOptions}
|
|
68
68
|
/>
|
package/src/config.ts
CHANGED
|
@@ -325,6 +325,14 @@ const scorecardConfigSchema = {
|
|
|
325
325
|
required: ['levels'],
|
|
326
326
|
properties: {
|
|
327
327
|
failBuildIfBelowMinimum: { type: 'boolean', default: false },
|
|
328
|
+
teamMetadataProperty: {
|
|
329
|
+
type: 'object',
|
|
330
|
+
properties: {
|
|
331
|
+
property: { type: 'string' },
|
|
332
|
+
label: { type: 'string' },
|
|
333
|
+
default: { type: 'string' },
|
|
334
|
+
},
|
|
335
|
+
},
|
|
328
336
|
levels: {
|
|
329
337
|
type: 'array',
|
|
330
338
|
items: {
|