@dartcom/ui-kit 10.0.8 → 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.
Files changed (54) hide show
  1. package/dist/components/buttons/button/index.d.ts +1 -0
  2. package/dist/components/buttons/button/index.d.ts.map +1 -1
  3. package/dist/components/buttons/index.d.ts +1 -0
  4. package/dist/components/buttons/index.d.ts.map +1 -1
  5. package/dist/components/buttons/upload/index.d.ts +2 -0
  6. package/dist/components/buttons/upload/index.d.ts.map +1 -0
  7. package/dist/components/buttons/upload/styles.d.ts +2 -0
  8. package/dist/components/buttons/upload/styles.d.ts.map +1 -0
  9. package/dist/components/buttons/upload/upload.d.ts +15 -0
  10. package/dist/components/buttons/upload/upload.d.ts.map +1 -0
  11. package/dist/components/index.d.ts +1 -0
  12. package/dist/components/index.d.ts.map +1 -1
  13. package/dist/components/layers/leaflet/constants.d.ts.map +1 -1
  14. package/dist/components/layers/leaflet/layers/traffic-sign/constants.d.ts +6 -29
  15. package/dist/components/layers/leaflet/layers/traffic-sign/constants.d.ts.map +1 -1
  16. package/dist/components/layers/leaflet/layers/traffic-sign/types.d.ts +24 -10
  17. package/dist/components/layers/leaflet/layers/traffic-sign/types.d.ts.map +1 -1
  18. package/dist/components/layers/leaflet/layers/traffic-sign/utils.d.ts +4 -3
  19. package/dist/components/layers/leaflet/layers/traffic-sign/utils.d.ts.map +1 -1
  20. package/dist/components/upload/excel/excel.d.ts +8 -0
  21. package/dist/components/upload/excel/excel.d.ts.map +1 -0
  22. package/dist/components/upload/excel/excel.stories.d.ts +7 -0
  23. package/dist/components/upload/excel/excel.stories.d.ts.map +1 -0
  24. package/dist/components/upload/excel/index.d.ts +2 -0
  25. package/dist/components/upload/excel/index.d.ts.map +1 -0
  26. package/dist/components/upload/excel/styles.d.ts +2 -0
  27. package/dist/components/upload/excel/styles.d.ts.map +1 -0
  28. package/dist/components/upload/index.d.ts +2 -0
  29. package/dist/components/upload/index.d.ts.map +1 -0
  30. package/dist/components/uploader/csv/csv.d.ts +46 -0
  31. package/dist/components/uploader/csv/csv.d.ts.map +1 -0
  32. package/dist/components/uploader/csv/csv.stories.d.ts +8 -0
  33. package/dist/components/uploader/csv/csv.stories.d.ts.map +1 -0
  34. package/dist/components/uploader/csv/index.d.ts +2 -0
  35. package/dist/components/uploader/csv/index.d.ts.map +1 -0
  36. package/dist/components/uploader/excel/excel.d.ts +8 -0
  37. package/dist/components/uploader/excel/excel.d.ts.map +1 -0
  38. package/dist/components/uploader/excel/excel.stories.d.ts +7 -0
  39. package/dist/components/uploader/excel/excel.stories.d.ts.map +1 -0
  40. package/dist/components/uploader/excel/index.d.ts +2 -0
  41. package/dist/components/uploader/excel/index.d.ts.map +1 -0
  42. package/dist/components/uploader/excel/styles.d.ts +2 -0
  43. package/dist/components/uploader/excel/styles.d.ts.map +1 -0
  44. package/dist/components/uploader/index.d.ts +3 -0
  45. package/dist/components/uploader/index.d.ts.map +1 -0
  46. package/dist/index.cjs +10911 -7471
  47. package/dist/index.cjs.map +1 -1
  48. package/dist/index.esm.js +8 -2
  49. package/dist/index.esm.js.map +1 -1
  50. package/dist/lib/types.d.ts +4 -0
  51. package/dist/lib/types.d.ts.map +1 -1
  52. package/dist/lib/utils.d.ts +1 -0
  53. package/dist/lib/utils.d.ts.map +1 -1
  54. package/package.json +160 -149
@@ -1,2 +1,3 @@
1
1
  export { default as Button } from './button';
2
+ export * from './types';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -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,4 +1,5 @@
1
1
  export * from './delete';
2
2
  export * from './edit';
3
3
  export * from './button';
4
+ export * from './upload';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -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,2 @@
1
+ export { default as UploadButton } from './upload';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -12,4 +12,5 @@ export * from './loader';
12
12
  export * from './error-boundary';
13
13
  export * from './modal';
14
14
  export * from './date-field';
15
+ export * from './uploader';
15
16
  //# sourceMappingURL=index.d.ts.map
@@ -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;AAElE,eAAO,MAAM,SAAS,EAAE;KACrB,CAAC,IAAI,kBAAkB,GAAG,MAAM;CAMlC,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
+ {"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,42 +1,19 @@
1
1
  import { SelectOptionItem } from '../../../../../components/select';
2
- import { TrafficSign } from './types';
3
- export declare const trafficSignNumbersInformation: {
4
- [K: string]: {
5
- title: string;
6
- height: number;
7
- };
2
+ import { TrafficSign, TrafficSignData, TrafficSignDatesFields, TrafficSignTypes } from './types';
3
+ export declare const trafficSigns: {
4
+ [K: string]: TrafficSignData;
8
5
  };
9
- export declare const trafficSignNumbers: string[];
6
+ export declare const defaultTrafficSignTypes: TrafficSignTypes;
10
7
  export declare const trafficSignWidths: {
11
8
  map: number;
12
9
  preview: number;
13
10
  };
14
11
  export declare const trafficSignLayerName = "traffic-sign";
15
12
  export declare const trafficSignExtension = "svg";
16
- export declare const trafficSignNumbersSizes: Map<string, {
17
- width: number;
18
- height: number;
19
- }>;
20
- export declare const trafficSignHeights: {
21
- 20: string[];
22
- 25: string[];
23
- 30: string[];
24
- 40: string[];
25
- 68: string[];
26
- };
27
- export declare const trafficSignTypes: {
28
- "\u041F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0430\u044E\u0449\u0438\u0435 \u0437\u043D\u0430\u043A\u0438": string[];
29
- "\u0417\u043D\u0430\u043A\u0438 \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442\u0430": string[];
30
- "\u0417\u0430\u043F\u0440\u0435\u0449\u0430\u044E\u0449\u0438\u0435 \u0437\u043D\u0430\u043A\u0438": string[];
31
- "\u041F\u0440\u0435\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E\u0449\u0438\u0435 \u0437\u043D\u0430\u043A\u0438": string[];
32
- "\u0417\u043D\u0430\u043A\u0438 \u043E\u0441\u043E\u0431\u044B\u0445 \u043F\u0440\u0435\u0434\u043F\u0438\u0441\u0430\u043D\u0438\u0439": string[];
33
- "\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0435 \u0437\u043D\u0430\u043A\u0438": string[];
34
- "\u0417\u043D\u0430\u043A\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430": string[];
35
- "\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[];
36
- };
37
- export declare const trafficSignTypesOptions: SelectOptionItem[];
38
13
  export declare const trafficSignStatusOptions: SelectOptionItem[];
39
14
  export declare const trafficSignFieldsTitles: {
40
15
  [K in keyof TrafficSign]: string;
41
16
  };
17
+ export declare const trafficSignDateFields: Array<keyof TrafficSignDatesFields>;
18
+ export declare const trafficSignNumbersOptions: SelectOptionItem[];
42
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,E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BAAoB,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,35 +1,49 @@
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 TrafficSign = {
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;
45
+ };
46
+ export type TrafficSignTypes = {
47
+ [K in TrafficSignType]: TrafficSign['traffic_sign_number'][];
34
48
  };
35
49
  //# sourceMappingURL=types.d.ts.map
@@ -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,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,oBAAY,iBAAiB;IAC3B,MAAM,uEAAgB;IACtB,QAAQ,mFAAkB;IAC1B,SAAS,2DAAc;CACxB;AAED,MAAM,MAAM,eAAe,GACvB,uBAAuB,GACvB,kBAAkB,GAClB,mBAAmB,GACnB,sBAAsB,GACtB,0BAA0B,GAC1B,sBAAsB,GACtB,eAAe,GACf,iCAAiC,CAAC;AAEtC,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,WAAW,EACT,iBAAiB,GACjB,QAAQ,GACR,gBAAgB,GAChB,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,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,13 +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';
4
+ import { FrontendTrafficSign, TrafficSign } from './types';
5
+ export declare const getTrafficSignTypesOptions: () => SelectOptionItem[];
6
6
  export declare const getTrafficSignLayers: (source: TangramSourceNames) => TangramCustomLayer[];
7
7
  export declare const getTrafficSignImgSrc: ({ type, number, }: {
8
8
  type: keyof typeof trafficSignWidths;
9
9
  number: TrafficSign["traffic_sign_number"];
10
10
  }) => string;
11
- export declare const getTrafficSignTypeByNumber: (number: TrafficSign["traffic_sign_number"]) => Nullable<TrafficSign["traffic_sign_type"]>;
12
11
  export declare const getTrafficSignTitlesOptions: () => SelectOptionItem[];
12
+ export declare const getFrontendTrafficSign: (trafficSign: TrafficSign) => FrontendTrafficSign;
13
+ export declare const parseTrafficSignCSVFile: (data: object) => void;
13
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;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGnC,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EAML,iBAAiB,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,oBAAoB,GAAI,QAAQ,kBAAkB,yBAkE9D,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,0BAA0B,GACrC,QAAQ,WAAW,CAAC,qBAAqB,CAAC,KACzC,QAAQ,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAwC3C,CAAC;AAEF,eAAO,MAAM,2BAA2B,0BAiBvC,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,2 @@
1
+ export { default as ExcelUploader } from './excel';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,2 @@
1
+ export * from './excel';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,2 @@
1
+ export { default as CSVUploader } from './csv';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,2 @@
1
+ export { default as ExcelUploader } from './excel';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ export * from './excel';
2
+ export * from './csv';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}