@dartcom/ui-kit 10.0.9 → 10.0.10
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/components/buttons/button/index.d.ts +1 -0
- package/dist/components/buttons/button/index.d.ts.map +1 -1
- package/dist/components/buttons/index.d.ts +1 -0
- package/dist/components/buttons/index.d.ts.map +1 -1
- package/dist/components/buttons/upload/index.d.ts +2 -0
- package/dist/components/buttons/upload/index.d.ts.map +1 -0
- package/dist/components/buttons/upload/styles.d.ts +2 -0
- package/dist/components/buttons/upload/styles.d.ts.map +1 -0
- package/dist/components/buttons/upload/upload.d.ts +15 -0
- package/dist/components/buttons/upload/upload.d.ts.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/layers/leaflet/constants.d.ts.map +1 -1
- package/dist/components/layers/leaflet/layers/traffic-sign/constants.d.ts +6 -15
- package/dist/components/layers/leaflet/layers/traffic-sign/constants.d.ts.map +1 -1
- package/dist/components/layers/leaflet/layers/traffic-sign/types.d.ts +21 -10
- package/dist/components/layers/leaflet/layers/traffic-sign/types.d.ts.map +1 -1
- package/dist/components/layers/leaflet/layers/traffic-sign/utils.d.ts +3 -17
- package/dist/components/layers/leaflet/layers/traffic-sign/utils.d.ts.map +1 -1
- package/dist/components/upload/excel/excel.d.ts +8 -0
- package/dist/components/upload/excel/excel.d.ts.map +1 -0
- package/dist/components/upload/excel/excel.stories.d.ts +7 -0
- package/dist/components/upload/excel/excel.stories.d.ts.map +1 -0
- package/dist/components/upload/excel/index.d.ts +2 -0
- package/dist/components/upload/excel/index.d.ts.map +1 -0
- package/dist/components/upload/excel/styles.d.ts +2 -0
- package/dist/components/upload/excel/styles.d.ts.map +1 -0
- package/dist/components/upload/index.d.ts +2 -0
- package/dist/components/upload/index.d.ts.map +1 -0
- package/dist/components/uploader/csv/csv.d.ts +46 -0
- package/dist/components/uploader/csv/csv.d.ts.map +1 -0
- package/dist/components/uploader/csv/csv.stories.d.ts +8 -0
- package/dist/components/uploader/csv/csv.stories.d.ts.map +1 -0
- package/dist/components/uploader/csv/index.d.ts +2 -0
- package/dist/components/uploader/csv/index.d.ts.map +1 -0
- package/dist/components/uploader/excel/excel.d.ts +8 -0
- package/dist/components/uploader/excel/excel.d.ts.map +1 -0
- package/dist/components/uploader/excel/excel.stories.d.ts +7 -0
- package/dist/components/uploader/excel/excel.stories.d.ts.map +1 -0
- package/dist/components/uploader/excel/index.d.ts +2 -0
- package/dist/components/uploader/excel/index.d.ts.map +1 -0
- package/dist/components/uploader/excel/styles.d.ts +2 -0
- package/dist/components/uploader/excel/styles.d.ts.map +1 -0
- package/dist/components/uploader/index.d.ts +3 -0
- package/dist/components/uploader/index.d.ts.map +1 -0
- package/dist/index.cjs +10912 -7487
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +8 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/types.d.ts +4 -0
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib/utils.d.ts +1 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/package.json +160 -149
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,cAAc,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/upload/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const VisuallyHiddenInput: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
2
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/upload/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,sOAU9B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Nullable } from '../../../types';
|
|
3
|
+
import { ButtonProps } from '../button';
|
|
4
|
+
import { VisuallyHiddenInput } from './styles';
|
|
5
|
+
export type UploadButtonProps = ButtonProps & {
|
|
6
|
+
accept: React.ComponentProps<typeof VisuallyHiddenInput>['accept'];
|
|
7
|
+
onFilesLoad: (props: {
|
|
8
|
+
event: React.ChangeEvent<HTMLInputElement>;
|
|
9
|
+
files: FileList;
|
|
10
|
+
}) => void;
|
|
11
|
+
error?: Nullable<string>;
|
|
12
|
+
};
|
|
13
|
+
declare const UploadButton: React.FC<React.PropsWithChildren<UploadButtonProps>>;
|
|
14
|
+
export default UploadButton;
|
|
15
|
+
//# sourceMappingURL=upload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/upload/upload.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAU,WAAW,EAAE,MAAM,WAAW,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG;IAC5C,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,CAAC,QAAQ,CAAC,CAAC;IACnE,WAAW,EAAE,CAAC,KAAK,EAAE;QACnB,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;QAC3C,KAAK,EAAE,QAAQ,CAAC;KACjB,KAAK,IAAI,CAAC;IACX,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAgCtE,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/leaflet/constants.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,SAAS,MAAM,CAAC;AAE7B,eAAO,MAAM,UAAU,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/leaflet/constants.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,SAAS,MAAM,CAAC;AAE7B,eAAO,MAAM,UAAU,0CAA0C,CAAC;AAIlE,eAAO,MAAM,SAAS,EAAE;KACrB,CAAC,IAAI,kBAAkB,GAAG,MAAM;CAKlC,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,QAAQ,kBAAkB,yBA2F3D,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,QAAQ,kBAAkB,yBAyDlE,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,QAAQ,kBAAkB,yBA4XlE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,QAAQ,kBAAkB,yBAwB9D,CAAC"}
|
|
@@ -1,28 +1,19 @@
|
|
|
1
1
|
import { SelectOptionItem } from '../../../../../components/select';
|
|
2
|
-
import { TrafficSign, TrafficSignTypes } from './types';
|
|
3
|
-
export declare const
|
|
4
|
-
|
|
5
|
-
[K: string]: {
|
|
6
|
-
title: string;
|
|
7
|
-
height: number;
|
|
8
|
-
};
|
|
2
|
+
import { TrafficSign, TrafficSignData, TrafficSignDatesFields, TrafficSignTypes } from './types';
|
|
3
|
+
export declare const trafficSigns: {
|
|
4
|
+
[K: string]: TrafficSignData;
|
|
9
5
|
};
|
|
10
|
-
export declare const
|
|
6
|
+
export declare const defaultTrafficSignTypes: TrafficSignTypes;
|
|
11
7
|
export declare const trafficSignWidths: {
|
|
12
8
|
map: number;
|
|
13
9
|
preview: number;
|
|
14
10
|
};
|
|
15
11
|
export declare const trafficSignLayerName = "traffic-sign";
|
|
16
12
|
export declare const trafficSignExtension = "svg";
|
|
17
|
-
export declare const trafficSignHeights: {
|
|
18
|
-
20: string[];
|
|
19
|
-
25: string[];
|
|
20
|
-
30: string[];
|
|
21
|
-
40: string[];
|
|
22
|
-
68: string[];
|
|
23
|
-
};
|
|
24
13
|
export declare const trafficSignStatusOptions: SelectOptionItem[];
|
|
25
14
|
export declare const trafficSignFieldsTitles: {
|
|
26
15
|
[K in keyof TrafficSign]: string;
|
|
27
16
|
};
|
|
17
|
+
export declare const trafficSignDateFields: Array<keyof TrafficSignDatesFields>;
|
|
18
|
+
export declare const trafficSignNumbersOptions: SelectOptionItem[];
|
|
28
19
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/traffic-sign/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/traffic-sign/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EACL,WAAW,EACX,eAAe,EACf,sBAAsB,EAEtB,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,YAAY,EAAE;IACzB,CAAC,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC;CA8vD9B,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,gBAgBrC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;CAG7B,CAAC;AAEF,eAAO,MAAM,oBAAoB,iBAAiB,CAAC;AAEnD,eAAO,MAAM,oBAAoB,QAAQ,CAAC;AAE1C,eAAO,MAAM,wBAAwB,oBAKlC,CAAC;AAEJ,eAAO,MAAM,uBAAuB,EAAE;KACnC,CAAC,IAAI,MAAM,WAAW,GAAG,MAAM;CAsBjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,MAAM,sBAAsB,CAMrE,CAAC;AAEF,eAAO,MAAM,yBAAyB,oBAKnC,CAAC"}
|
|
@@ -1,36 +1,47 @@
|
|
|
1
|
+
import { CoordinateFields } from '../../../../../lib';
|
|
1
2
|
import { Nullable } from '../../../../../types';
|
|
3
|
+
export type TrafficSignType = 'Предупреждающие знаки' | 'Знаки приоритета' | 'Запрещающие знаки' | 'Предписывающие знаки' | 'Знаки особых предписаний' | 'Информационные знаки' | 'Знаки сервиса' | 'Знаки дополнительной информации';
|
|
4
|
+
export type TrafficSignData = {
|
|
5
|
+
height: number;
|
|
6
|
+
title: string;
|
|
7
|
+
type: TrafficSignType;
|
|
8
|
+
};
|
|
2
9
|
export declare enum TrafficSignStatus {
|
|
3
10
|
ACTIVE = "\u0414\u0435\u0439\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0439",
|
|
4
11
|
INACTIVE = "\u041D\u0435\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0439",
|
|
5
12
|
TEMPORARY = "\u0412\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0439"
|
|
6
13
|
}
|
|
7
|
-
export type TrafficSignType = 'Предупреждающие знаки' | 'Знаки приоритета' | 'Запрещающие знаки' | 'Предписывающие знаки' | 'Знаки особых предписаний' | 'Информационные знаки' | 'Знаки сервиса' | 'Знаки дополнительной информации';
|
|
8
14
|
export type TrafficSignDop = Pick<TrafficSign, 'traffic_sign_id' | 'status' | 'placement_date' | 'verification_date' | 'future_maintanance_date' | 'rapair_performed_date' | 'warranty_expr_date' | 'comment'> & {
|
|
9
15
|
readonly dop_id: string;
|
|
10
16
|
dop_sign_number: string;
|
|
11
17
|
dop_sign_title: string;
|
|
12
18
|
dop_sign_text: string;
|
|
13
19
|
};
|
|
14
|
-
export type
|
|
20
|
+
export type TrafficSignDatesFields = {
|
|
21
|
+
future_maintanance_date: string;
|
|
22
|
+
placement_date: string;
|
|
23
|
+
rapair_performed_date: string;
|
|
24
|
+
verification_date: string;
|
|
25
|
+
warranty_expr_date: string;
|
|
26
|
+
};
|
|
27
|
+
export type TrafficSignIdsFields = {
|
|
15
28
|
readonly traffic_sign_id: string;
|
|
16
29
|
readonly dit_id: number;
|
|
17
30
|
readonly tsodd_id: number;
|
|
18
31
|
readonly pillar_id: Nullable<string>;
|
|
32
|
+
};
|
|
33
|
+
export type TrafficSign = TrafficSignDatesFields & TrafficSignIdsFields & CoordinateFields & {
|
|
19
34
|
comment: Nullable<string>;
|
|
20
35
|
direction: Nullable<number>;
|
|
21
36
|
traffic_sign_number: string;
|
|
22
37
|
traffic_sign_title: string;
|
|
23
38
|
traffic_sign_value: Nullable<string>;
|
|
24
39
|
traffic_sign_type: TrafficSignType;
|
|
25
|
-
dops: TrafficSignDop[];
|
|
26
|
-
lat: number;
|
|
27
|
-
lon: number;
|
|
28
|
-
future_maintanance_date: string;
|
|
29
|
-
placement_date: string;
|
|
30
|
-
rapair_performed_date: string;
|
|
31
|
-
verification_date: string;
|
|
32
|
-
warranty_expr_date: string;
|
|
33
40
|
status: TrafficSignStatus;
|
|
41
|
+
dops: TrafficSignDop[];
|
|
42
|
+
};
|
|
43
|
+
export type FrontendTrafficSign = Omit<TrafficSign, keyof TrafficSignDatesFields> & {
|
|
44
|
+
[K in keyof TrafficSignDatesFields]: Date;
|
|
34
45
|
};
|
|
35
46
|
export type TrafficSignTypes = {
|
|
36
47
|
[K in TrafficSignType]: TrafficSign['traffic_sign_number'][];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/traffic-sign/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/traffic-sign/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,MAAM,MAAM,eAAe,GACvB,uBAAuB,GACvB,kBAAkB,GAClB,mBAAmB,GACnB,sBAAsB,GACtB,0BAA0B,GAC1B,sBAAsB,GACtB,eAAe,GACf,iCAAiC,CAAC;AAEtC,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,eAAe,CAAC;CACvB,CAAC;AAEF,oBAAY,iBAAiB;IAC3B,MAAM,uEAAgB;IACtB,QAAQ,mFAAkB;IAC1B,SAAS,2DAAc;CACxB;AAED,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,WAAW,EACT,iBAAiB,GACjB,QAAQ,GACR,gBAAgB,GAChB,mBAAmB,GACnB,yBAAyB,GACzB,uBAAuB,GACvB,oBAAoB,GACpB,SAAS,CACZ,GAAG;IACF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,uBAAuB,EAAE,MAAM,CAAC;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,sBAAsB,GAC9C,oBAAoB,GACpB,gBAAgB,GAAG;IACjB,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC1B,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAE5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACrC,iBAAiB,EAAE,eAAe,CAAC;IACnC,MAAM,EAAE,iBAAiB,CAAC;IAE1B,IAAI,EAAE,cAAc,EAAE,CAAC;CACxB,CAAC;AAEJ,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,WAAW,EACX,MAAM,sBAAsB,CAC7B,GAAG;KACD,CAAC,IAAI,MAAM,sBAAsB,GAAG,IAAI;CAC1C,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;KAC5B,CAAC,IAAI,eAAe,GAAG,WAAW,CAAC,qBAAqB,CAAC,EAAE;CAC7D,CAAC"}
|
|
@@ -1,28 +1,14 @@
|
|
|
1
1
|
import { SelectOptionItem } from '../../../../../components/select';
|
|
2
|
-
import { Nullable } from '../../../../../types';
|
|
3
2
|
import { TangramCustomLayer, TangramSourceNames } from '../../types';
|
|
4
3
|
import { trafficSignWidths } from './constants';
|
|
5
|
-
import { TrafficSign } from './types';
|
|
6
|
-
export declare const getTrafficSignTypes: () => {
|
|
7
|
-
"\u041F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0430\u044E\u0449\u0438\u0435 \u0437\u043D\u0430\u043A\u0438": string[];
|
|
8
|
-
"\u0417\u043D\u0430\u043A\u0438 \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442\u0430": string[];
|
|
9
|
-
"\u0417\u0430\u043F\u0440\u0435\u0449\u0430\u044E\u0449\u0438\u0435 \u0437\u043D\u0430\u043A\u0438": string[];
|
|
10
|
-
"\u041F\u0440\u0435\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E\u0449\u0438\u0435 \u0437\u043D\u0430\u043A\u0438": string[];
|
|
11
|
-
"\u0417\u043D\u0430\u043A\u0438 \u043E\u0441\u043E\u0431\u044B\u0445 \u043F\u0440\u0435\u0434\u043F\u0438\u0441\u0430\u043D\u0438\u0439": string[];
|
|
12
|
-
"\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0435 \u0437\u043D\u0430\u043A\u0438": string[];
|
|
13
|
-
"\u0417\u043D\u0430\u043A\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430": string[];
|
|
14
|
-
"\u0417\u043D\u0430\u043A\u0438 \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438": string[];
|
|
15
|
-
};
|
|
4
|
+
import { FrontendTrafficSign, TrafficSign } from './types';
|
|
16
5
|
export declare const getTrafficSignTypesOptions: () => SelectOptionItem[];
|
|
17
|
-
export declare const getTrafficSignNumbersSizes: () => Map<string, {
|
|
18
|
-
width: number;
|
|
19
|
-
height: number;
|
|
20
|
-
}>;
|
|
21
6
|
export declare const getTrafficSignLayers: (source: TangramSourceNames) => TangramCustomLayer[];
|
|
22
7
|
export declare const getTrafficSignImgSrc: ({ type, number, }: {
|
|
23
8
|
type: keyof typeof trafficSignWidths;
|
|
24
9
|
number: TrafficSign["traffic_sign_number"];
|
|
25
10
|
}) => string;
|
|
26
|
-
export declare const getTrafficSignTypeByNumber: (number: TrafficSign["traffic_sign_number"]) => Nullable<TrafficSign["traffic_sign_type"]>;
|
|
27
11
|
export declare const getTrafficSignTitlesOptions: () => SelectOptionItem[];
|
|
12
|
+
export declare const getFrontendTrafficSign: (trafficSign: TrafficSign) => FrontendTrafficSign;
|
|
13
|
+
export declare const parseTrafficSignCSVFile: (data: object) => void;
|
|
28
14
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/traffic-sign/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/traffic-sign/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAKvD,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EAML,iBAAiB,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,mBAAmB,EACnB,WAAW,EAIZ,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,0BAA0B,0BAatC,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,QAAQ,kBAAkB,yBA8D9D,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,mBAGlC;IACD,IAAI,EAAE,MAAM,OAAO,iBAAiB,CAAC;IACrC,MAAM,EAAE,WAAW,CAAC,qBAAqB,CAAC,CAAC;CAC5C,WAMA,CAAC;AAEF,eAAO,MAAM,2BAA2B,0BAiBvC,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,aAAa,WAAW,wBAkB9D,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,MAAM,MAAM,SA4BnD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Row } from 'read-excel-file';
|
|
3
|
+
interface ExcelUploaderProps {
|
|
4
|
+
onParsed: (data: Row[]) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const ExcelUploader: React.FC<ExcelUploaderProps>;
|
|
7
|
+
export default ExcelUploader;
|
|
8
|
+
//# sourceMappingURL=excel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"excel.d.ts","sourceRoot":"","sources":["../../../../src/components/upload/excel/excel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAqB,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAMpD,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;CACjC;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAoD/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ExcelUploader } from '.';
|
|
3
|
+
declare const meta: Meta<typeof ExcelUploader>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
//# sourceMappingURL=excel.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"excel.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/upload/excel/excel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAOvD,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAkBpC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,IAAI,EAAE,KAsBlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/upload/excel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const VisuallyHiddenInput: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
2
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/upload/excel/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,sOAU9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/upload/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
|
+
export interface CSVUploaderProps {
|
|
4
|
+
/**
|
|
5
|
+
* Callback срабатывает когда CSV успешно распарсен
|
|
6
|
+
* @param data Массив объектов с данными CSV
|
|
7
|
+
* @param headers Массив заголовков колонок
|
|
8
|
+
*/
|
|
9
|
+
onDataParsed?: (data: object[], headers: string[]) => void;
|
|
10
|
+
/**
|
|
11
|
+
* Callback при ошибке парсинга
|
|
12
|
+
*/
|
|
13
|
+
onError?: (error: Error) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Разделитель (запятая, точка с запятой и т.д.)
|
|
16
|
+
* @default ','
|
|
17
|
+
*/
|
|
18
|
+
delimiter?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Использовать первую строку как заголовки
|
|
21
|
+
* @default true
|
|
22
|
+
*/
|
|
23
|
+
header?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Преобразовывать числа и булевы значения в их типы
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
dynamicTyping?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Пропускать пустые строки
|
|
31
|
+
* @default true
|
|
32
|
+
*/
|
|
33
|
+
skipEmptyLines?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Использовать worker для обработки больших файлов
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
worker?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* CSS класс для input
|
|
41
|
+
*/
|
|
42
|
+
sx?: SxProps;
|
|
43
|
+
}
|
|
44
|
+
export declare const CSVUploader: React.FC<CSVUploaderProps>;
|
|
45
|
+
export default CSVUploader;
|
|
46
|
+
//# sourceMappingURL=csv.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csv.d.ts","sourceRoot":"","sources":["../../../../src/components/uploader/csv/csv.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAMxC,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAE3D;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEjC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;CACd;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0ElD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { CSVUploader } from '.';
|
|
3
|
+
declare const meta: Meta<typeof CSVUploader>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const WithError: Story;
|
|
8
|
+
//# sourceMappingURL=csv.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csv.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/uploader/csv/csv.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAOvD,OAAO,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AAEhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAoBlC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,KAAK,EAAE,KASnB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/uploader/csv/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,OAAO,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Row } from 'read-excel-file';
|
|
3
|
+
interface ExcelUploaderProps {
|
|
4
|
+
onParsed: (data: Row[]) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const ExcelUploader: React.FC<ExcelUploaderProps>;
|
|
7
|
+
export default ExcelUploader;
|
|
8
|
+
//# sourceMappingURL=excel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"excel.d.ts","sourceRoot":"","sources":["../../../../src/components/uploader/excel/excel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAqB,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAIpD,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;CACjC;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAuB/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ExcelUploader } from '.';
|
|
3
|
+
declare const meta: Meta<typeof ExcelUploader>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
//# sourceMappingURL=excel.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"excel.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/uploader/excel/excel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAOvD,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAoBpC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,IAAI,EAAE,KAsBlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/uploader/excel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const VisuallyHiddenInput: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
2
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/uploader/excel/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,sOAU9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/uploader/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC"}
|