@dartcom/ui-kit 10.0.6 → 10.0.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/dist/components/date-field/date-field.d.ts +4 -0
- package/dist/components/date-field/date-field.d.ts.map +1 -0
- package/dist/components/date-field/date-field.stories.d.ts +7 -0
- package/dist/components/date-field/date-field.stories.d.ts.map +1 -0
- package/dist/components/date-field/index.d.ts +2 -0
- package/dist/components/date-field/index.d.ts.map +1 -0
- package/dist/components/date-field/types.d.ts +6 -0
- package/dist/components/date-field/types.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/layers/traffic-sign/constants.d.ts +23 -0
- 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 +8 -11
- 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 +4 -0
- package/dist/components/layers/leaflet/layers/traffic-sign/utils.d.ts.map +1 -1
- package/dist/components/select/types.d.ts +1 -1
- package/dist/components/select/types.d.ts.map +1 -1
- package/dist/components/text-field/text-field.d.ts +2 -2
- package/dist/components/text-field/text-field.d.ts.map +1 -1
- package/dist/index.cjs +280 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-field.d.ts","sourceRoot":"","sources":["../../../src/components/date-field/date-field.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,iBAAS,SAAS,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,cAAc,CAAC,CAAC,CAAC,2CAyBvD;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { DateField } from '.';
|
|
3
|
+
declare const meta: Meta<typeof DateField>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
//# sourceMappingURL=date-field.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-field.stories.d.ts","sourceRoot":"","sources":["../../../src/components/date-field/date-field.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAS5D,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC;AAQ9B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAmDhC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/date-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/date-field/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEvC,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI;IAC9B,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;CACf,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"}
|
|
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,3 +1,11 @@
|
|
|
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
|
+
};
|
|
8
|
+
};
|
|
1
9
|
export declare const trafficSignNumbers: string[];
|
|
2
10
|
export declare const trafficSignWidths: {
|
|
3
11
|
map: number;
|
|
@@ -16,4 +24,19 @@ export declare const trafficSignHeights: {
|
|
|
16
24
|
40: string[];
|
|
17
25
|
68: string[];
|
|
18
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
|
+
export declare const trafficSignStatusOptions: SelectOptionItem[];
|
|
39
|
+
export declare const trafficSignFieldsTitles: {
|
|
40
|
+
[K in keyof TrafficSign]: string;
|
|
41
|
+
};
|
|
19
42
|
//# 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,eAAO,MAAM,kBAAkB,
|
|
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,EAAE,WAAW,EAAsC,MAAM,SAAS,CAAC;AAG1E,eAAO,MAAM,6BAA6B,EAAE;IAC1C,CAAC,CAAC,EAAE,MAAM,GAAG;QACX,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CA8HH,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAsV9B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;CAG7B,CAAC;AAEF,eAAO,MAAM,oBAAoB,iBAAiB,CAAC;AAEnD,eAAO,MAAM,oBAAoB,QAAQ,CAAC;AAE1C,eAAO,MAAM,uBAAuB;WAGzB,MAAM;YACL,MAAM;EAEf,CAAC;AAEJ,eAAO,MAAM,kBAAkB;;;;;;CAoX9B,CAAC;AAWF,eAAO,MAAM,gBAAgB;;;;;;;;;CA8B5B,CAAC;AAEF,eAAO,MAAM,uBAAuB,oBAQjC,CAAC;AAEJ,eAAO,MAAM,wBAAwB,oBAKlC,CAAC;AAEJ,eAAO,MAAM,uBAAuB,EAAE;KACnC,CAAC,IAAI,MAAM,WAAW,GAAG,MAAM;CAsBjC,CAAC"}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { Nullable } from '../../../../../types';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare enum TrafficSignStatus {
|
|
3
|
+
ACTIVE = "\u0414\u0435\u0439\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0439",
|
|
4
|
+
INACTIVE = "\u041D\u0435\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0439",
|
|
5
|
+
TEMPORARY = "\u0412\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0439"
|
|
6
|
+
}
|
|
7
|
+
export type TrafficSignType = 'Предупреждающие знаки' | 'Знаки приоритета' | 'Запрещающие знаки' | 'Предписывающие знаки' | 'Знаки особых предписаний' | 'Информационные знаки' | 'Знаки сервиса' | 'Знаки дополнительной информации';
|
|
8
|
+
export type TrafficSignDop = Pick<TrafficSign, 'traffic_sign_id' | 'status' | 'placement_date' | 'verification_date' | 'future_maintanance_date' | 'rapair_performed_date' | 'warranty_expr_date' | 'comment'> & {
|
|
5
9
|
readonly dop_id: string;
|
|
6
10
|
dop_sign_number: string;
|
|
7
11
|
dop_sign_title: string;
|
|
8
12
|
dop_sign_text: string;
|
|
9
|
-
status: string;
|
|
10
|
-
placement_date: string;
|
|
11
|
-
verification_date: string;
|
|
12
|
-
future_maintanance_date: string;
|
|
13
|
-
rapair_performed_date: string;
|
|
14
|
-
warranty_expr_date: string;
|
|
15
|
-
comment: string;
|
|
16
13
|
};
|
|
17
14
|
export type TrafficSign = {
|
|
18
15
|
readonly traffic_sign_id: string;
|
|
@@ -24,7 +21,7 @@ export type TrafficSign = {
|
|
|
24
21
|
traffic_sign_number: string;
|
|
25
22
|
traffic_sign_title: string;
|
|
26
23
|
traffic_sign_value: Nullable<string>;
|
|
27
|
-
traffic_sign_type:
|
|
24
|
+
traffic_sign_type: TrafficSignType;
|
|
28
25
|
dops: TrafficSignDop[];
|
|
29
26
|
lat: number;
|
|
30
27
|
lon: 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,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,
|
|
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,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B,kBAAkB,EAAE,MAAM,CAAC;IAE3B,MAAM,EAAE,iBAAiB,CAAC;CAC3B,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { SelectOptionItem } from '../../../../../components/select';
|
|
2
|
+
import { Nullable } from '../../../../../types';
|
|
1
3
|
import { TangramCustomLayer, TangramSourceNames } from '../../types';
|
|
2
4
|
import { trafficSignWidths } from './constants';
|
|
3
5
|
import { TrafficSign } from './types';
|
|
@@ -6,4 +8,6 @@ export declare const getTrafficSignImgSrc: ({ type, number, }: {
|
|
|
6
8
|
type: keyof typeof trafficSignWidths;
|
|
7
9
|
number: TrafficSign["traffic_sign_number"];
|
|
8
10
|
}) => string;
|
|
11
|
+
export declare const getTrafficSignTypeByNumber: (number: TrafficSign["traffic_sign_number"]) => Nullable<TrafficSign["traffic_sign_type"]>;
|
|
12
|
+
export declare const getTrafficSignTitlesOptions: () => SelectOptionItem[];
|
|
9
13
|
//# 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":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/select/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,cAAc,IAAI;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/select/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,cAAc,GAAG,MAAM,IAAI;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,CAAC;CACV,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { CustomTextFieldProps } from './types';
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const TextField: React.FC<CustomTextFieldProps>;
|
|
4
|
+
export default TextField;
|
|
5
5
|
//# sourceMappingURL=text-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../../src/components/text-field/text-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE/C,QAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../../src/components/text-field/text-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE/C,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAE7C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|