nntc-ui 0.0.73 → 0.0.75
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/index.d.ts +1 -1
- package/index.js +3 -5
- package/package.json +3 -2
package/index.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ interface DayjsInstance {
|
|
|
78
78
|
day(): number;
|
|
79
79
|
add(value: number, unit?: string): DayjsInstance;
|
|
80
80
|
}
|
|
81
|
-
type DayjsConfigType = string | number | Date |
|
|
81
|
+
type DayjsConfigType = string | number | Date | null | undefined;
|
|
82
82
|
type DayjsFactory = (date?: DayjsConfigType) => DayjsInstance;
|
|
83
83
|
|
|
84
84
|
type Variant$6 = 'filled' | 'outlined';
|
package/index.js
CHANGED
|
@@ -3223,7 +3223,6 @@ function HeaderDropdown(props) {
|
|
|
3223
3223
|
filterBy,
|
|
3224
3224
|
setFilterBy,
|
|
3225
3225
|
headerName,
|
|
3226
|
-
items: items2,
|
|
3227
3226
|
containerRef,
|
|
3228
3227
|
showUniqueValuesCount,
|
|
3229
3228
|
additionalContent,
|
|
@@ -3232,7 +3231,7 @@ function HeaderDropdown(props) {
|
|
|
3232
3231
|
} = props;
|
|
3233
3232
|
const headerResultName = sortAnotherName ?? headerName;
|
|
3234
3233
|
const filterItems2 = useMemo7(() => {
|
|
3235
|
-
const checklistItems =
|
|
3234
|
+
const checklistItems = rows.map(
|
|
3236
3235
|
(i) => ({
|
|
3237
3236
|
name: i[headerResultName] ? valueFormat ? valueFormat(i[headerResultName].value?.toString() || "") : toFixed !== void 0 && !Number.isNaN(parseFloat(i[headerResultName].value)) ? parseFloat(Number(i[headerResultName].value).toFixed(toFixed)).toString() : i[headerResultName].value?.toString() || "< \u043D\u0435\u0442 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F >" : "< \u043D\u0435\u0442 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F >",
|
|
3238
3237
|
value: i[headerResultName]?.value?.toString() || ""
|
|
@@ -3254,11 +3253,11 @@ function HeaderDropdown(props) {
|
|
|
3254
3253
|
}, /* @__PURE__ */ new Map()).values()
|
|
3255
3254
|
];
|
|
3256
3255
|
return uniqueChecklistItems;
|
|
3257
|
-
}, [
|
|
3256
|
+
}, [rows, headerResultName, valueFormat, toFixed]);
|
|
3258
3257
|
const uniqueRows = useMemo7(
|
|
3259
3258
|
() => Array.from(
|
|
3260
3259
|
new Set(
|
|
3261
|
-
rows.filter((
|
|
3260
|
+
rows.filter((row) => !!row?.[headerResultName]).map((row) => row[headerResultName].payload?.id ?? row[headerResultName].value)
|
|
3262
3261
|
)
|
|
3263
3262
|
),
|
|
3264
3263
|
[rows, headerResultName]
|
|
@@ -3764,7 +3763,6 @@ var VirtualTable = forwardRef8((props, ref) => {
|
|
|
3764
3763
|
setSortBy,
|
|
3765
3764
|
filterBy,
|
|
3766
3765
|
setFilterBy,
|
|
3767
|
-
items: rows,
|
|
3768
3766
|
rows: memoizedData,
|
|
3769
3767
|
headerName: header2.column.columnDef.id ?? header2.id,
|
|
3770
3768
|
containerRef: useTableContainerAsRootForPopup ? tableContainerRef : void 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nntc-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.75",
|
|
4
4
|
"author": "NNTC",
|
|
5
5
|
"description": "React UI-kit for NNTC",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
"lint": "eslint \"./**/*.{ts,tsx,mjs}\"",
|
|
28
28
|
"lint:fix": "eslint \"./**/*.{ts,tsx,mjs}\" --fix",
|
|
29
29
|
"lint:styles": "stylelint \"**/*.css\"",
|
|
30
|
-
"lint:styles:fix": "stylelint \"**/*.css\" --fix"
|
|
30
|
+
"lint:styles:fix": "stylelint \"**/*.css\" --fix",
|
|
31
|
+
"check-code:all": "yarn run check-type && yarn run prettify:all && yarn run lint:fix && yarn run lint:styles:fix"
|
|
31
32
|
},
|
|
32
33
|
"keywords": [
|
|
33
34
|
"react",
|