datastake-daf 0.6.419 → 0.6.420
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/index.js
CHANGED
|
@@ -13276,7 +13276,6 @@ DAFFooter.propTypes = {
|
|
|
13276
13276
|
};
|
|
13277
13277
|
|
|
13278
13278
|
const PAGE_HEIGHT = 1587;
|
|
13279
|
-
// margin-top: 20, bottom: 20;
|
|
13280
13279
|
const FOOTER_HEIGHT = 70;
|
|
13281
13280
|
const HEADER_HEIGHT = 100;
|
|
13282
13281
|
const Row = _ref => {
|
|
@@ -13293,7 +13292,7 @@ const Row = _ref => {
|
|
|
13293
13292
|
setHeight(entry.contentRect.height);
|
|
13294
13293
|
}
|
|
13295
13294
|
});
|
|
13296
|
-
observer.observe(ref.current);
|
|
13295
|
+
if (ref.current) observer.observe(ref.current);
|
|
13297
13296
|
return () => observer.disconnect();
|
|
13298
13297
|
}, []);
|
|
13299
13298
|
React.useEffect(() => {
|
|
@@ -13303,23 +13302,23 @@ const Row = _ref => {
|
|
|
13303
13302
|
ref
|
|
13304
13303
|
});
|
|
13305
13304
|
}
|
|
13306
|
-
}, [height]);
|
|
13305
|
+
}, [height, i, onChangeHeight]);
|
|
13307
13306
|
return /*#__PURE__*/jsxRuntime.jsx("section", {
|
|
13308
13307
|
ref: ref,
|
|
13309
13308
|
style: widgets.style,
|
|
13310
|
-
children: typeof widgets.render ===
|
|
13309
|
+
children: typeof widgets.render === "function" ? widgets.render() : null
|
|
13311
13310
|
});
|
|
13312
13311
|
};
|
|
13313
13312
|
function PdfView(_ref2) {
|
|
13314
13313
|
let {
|
|
13315
13314
|
config = [],
|
|
13316
13315
|
customClassName,
|
|
13317
|
-
title =
|
|
13318
|
-
imgSrc =
|
|
13319
|
-
userId =
|
|
13320
|
-
accountId =
|
|
13321
|
-
documentId =
|
|
13322
|
-
downloadId =
|
|
13316
|
+
title = "Title",
|
|
13317
|
+
imgSrc = "",
|
|
13318
|
+
userId = "IDD-0000000",
|
|
13319
|
+
accountId = "IDD-0000000",
|
|
13320
|
+
documentId = "IDD-0000000",
|
|
13321
|
+
downloadId = "DWL-00000123"
|
|
13323
13322
|
} = _ref2;
|
|
13324
13323
|
const [sectionsConfig, setSectionsConfig] = React.useState({});
|
|
13325
13324
|
const [pages, setPages] = React.useState([1]);
|
|
@@ -13333,8 +13332,7 @@ function PdfView(_ref2) {
|
|
|
13333
13332
|
const {
|
|
13334
13333
|
ref
|
|
13335
13334
|
} = sectionsConfig[k];
|
|
13336
|
-
ref.current.style.marginBottom =
|
|
13337
|
-
// ref.current.style.marginTop = '15px';
|
|
13335
|
+
ref.current.style.marginBottom = "0px";
|
|
13338
13336
|
});
|
|
13339
13337
|
keys.forEach((k, i) => {
|
|
13340
13338
|
const {
|
|
@@ -13347,11 +13345,11 @@ function PdfView(_ref2) {
|
|
|
13347
13345
|
}
|
|
13348
13346
|
const newHeight = incrHeight + height;
|
|
13349
13347
|
if (i === keys.length - 1) {
|
|
13350
|
-
ref.current.style.paddingBottom =
|
|
13348
|
+
ref.current.style.paddingBottom = "30px";
|
|
13351
13349
|
}
|
|
13352
13350
|
if (newHeight > PAGE_HEIGHT - 30 - FOOTER_HEIGHT - HEADER_HEIGHT) {
|
|
13353
13351
|
const dif = Math.abs(PAGE_HEIGHT - incrHeight);
|
|
13354
|
-
ref.current.style.marginTop =
|
|
13352
|
+
ref.current.style.marginTop = "30px";
|
|
13355
13353
|
_page += 1;
|
|
13356
13354
|
_pages.push(_page);
|
|
13357
13355
|
if (sectionsConfig[keys[i - 1]]) {
|
|
@@ -13360,16 +13358,14 @@ function PdfView(_ref2) {
|
|
|
13360
13358
|
} = sectionsConfig[keys[i - 1]];
|
|
13361
13359
|
topRef.current.style.marginBottom = "".concat(dif + HEADER_HEIGHT - 24, "px");
|
|
13362
13360
|
incrHeight = height + 24 + HEADER_HEIGHT;
|
|
13363
|
-
// console.log('margin', dif);
|
|
13364
13361
|
}
|
|
13365
13362
|
} else {
|
|
13366
13363
|
incrHeight = newHeight + 24;
|
|
13367
13364
|
}
|
|
13368
|
-
// console.groupEnd();
|
|
13369
13365
|
});
|
|
13370
13366
|
setPages(_pages);
|
|
13371
13367
|
}
|
|
13372
|
-
}, [sectionsConfig]);
|
|
13368
|
+
}, [sectionsConfig, config.length]);
|
|
13373
13369
|
React.useEffect(() => {
|
|
13374
13370
|
doSizing();
|
|
13375
13371
|
}, [doSizing]);
|
|
@@ -13378,7 +13374,7 @@ function PdfView(_ref2) {
|
|
|
13378
13374
|
[index]: conf
|
|
13379
13375
|
}));
|
|
13380
13376
|
}, []);
|
|
13381
|
-
const contClassName = formatClassname([
|
|
13377
|
+
const contClassName = formatClassname(["daf-analysis daf-pdf-view", customClassName]);
|
|
13382
13378
|
const renderDashboard = React.useCallback(() => {
|
|
13383
13379
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
13384
13380
|
className: "view-content",
|
|
@@ -13395,22 +13391,12 @@ function PdfView(_ref2) {
|
|
|
13395
13391
|
})
|
|
13396
13392
|
});
|
|
13397
13393
|
}, [config, onChangeHeight]);
|
|
13398
|
-
|
|
13399
|
-
// <div className="daf-analysis">
|
|
13400
|
-
// <Header title={t('Dashboard Title')} />
|
|
13401
|
-
|
|
13402
|
-
// <div className="content">
|
|
13403
|
-
// <div className="view-content">
|
|
13404
|
-
// <div className="daf-analysis-layout">
|
|
13405
|
-
// <div className='sections-cont w-pt'>
|
|
13406
|
-
// <section>
|
|
13407
|
-
|
|
13408
13394
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
13409
13395
|
className: contClassName,
|
|
13410
13396
|
style: {
|
|
13411
|
-
position:
|
|
13397
|
+
position: "relative"
|
|
13412
13398
|
},
|
|
13413
|
-
children: [renderDashboard(), pages.map(page => /*#__PURE__*/jsxRuntime.jsxs(
|
|
13399
|
+
children: [renderDashboard(), pages.map(page => /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
13414
13400
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
13415
13401
|
style: {
|
|
13416
13402
|
top: (page - 1) * PAGE_HEIGHT,
|
|
@@ -13446,26 +13432,26 @@ function PdfView(_ref2) {
|
|
|
13446
13432
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
13447
13433
|
className: "flex flex-column justify-center",
|
|
13448
13434
|
children: /*#__PURE__*/jsxRuntime.jsx("h5", {
|
|
13449
|
-
children: moment__default["default"]().format(
|
|
13435
|
+
children: moment__default["default"]().format("DD MMM YYYY")
|
|
13450
13436
|
})
|
|
13451
13437
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
13452
13438
|
className: "flex flex-column justify-center",
|
|
13453
13439
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
13454
13440
|
className: "flex gap-2",
|
|
13455
13441
|
children: [/*#__PURE__*/jsxRuntime.jsxs("h5", {
|
|
13456
|
-
children: ["User ID:",
|
|
13442
|
+
children: ["User ID: ", /*#__PURE__*/jsxRuntime.jsx("strong", {
|
|
13457
13443
|
children: userId
|
|
13458
13444
|
})]
|
|
13459
13445
|
}), /*#__PURE__*/jsxRuntime.jsxs("h5", {
|
|
13460
|
-
children: ["Account ID:",
|
|
13446
|
+
children: ["Account ID: ", /*#__PURE__*/jsxRuntime.jsx("strong", {
|
|
13461
13447
|
children: accountId
|
|
13462
13448
|
})]
|
|
13463
13449
|
}), /*#__PURE__*/jsxRuntime.jsxs("h5", {
|
|
13464
|
-
children: ["Document ID:",
|
|
13450
|
+
children: ["Document ID: ", /*#__PURE__*/jsxRuntime.jsx("strong", {
|
|
13465
13451
|
children: documentId
|
|
13466
13452
|
})]
|
|
13467
13453
|
}), /*#__PURE__*/jsxRuntime.jsxs("h5", {
|
|
13468
|
-
children: ["Download ID:",
|
|
13454
|
+
children: ["Download ID: ", /*#__PURE__*/jsxRuntime.jsx("strong", {
|
|
13469
13455
|
children: downloadId
|
|
13470
13456
|
})]
|
|
13471
13457
|
})]
|
|
@@ -13477,7 +13463,7 @@ function PdfView(_ref2) {
|
|
|
13477
13463
|
})
|
|
13478
13464
|
})]
|
|
13479
13465
|
}, "footers-".concat(page))]
|
|
13480
|
-
}))]
|
|
13466
|
+
}, page))]
|
|
13481
13467
|
});
|
|
13482
13468
|
}
|
|
13483
13469
|
PdfView.propTypes = {
|
|
@@ -13487,7 +13473,8 @@ PdfView.propTypes = {
|
|
|
13487
13473
|
imgSrc: PropTypes__default["default"].string,
|
|
13488
13474
|
userId: PropTypes__default["default"].string,
|
|
13489
13475
|
accountId: PropTypes__default["default"].string,
|
|
13490
|
-
documentId: PropTypes__default["default"].string
|
|
13476
|
+
documentId: PropTypes__default["default"].string,
|
|
13477
|
+
downloadId: PropTypes__default["default"].string
|
|
13491
13478
|
};
|
|
13492
13479
|
|
|
13493
13480
|
const ajaxSelectFieldData = async (value, config, getApiBaseUrl = () => {}, getAppHeader = () => {}, app, formValues = {}) => {
|
package/package.json
CHANGED
|
@@ -189,5 +189,15 @@ export const Primary = {
|
|
|
189
189
|
},
|
|
190
190
|
],
|
|
191
191
|
},
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
render: (args) => (
|
|
193
|
+
<div style={{
|
|
194
|
+
height: '100vh',
|
|
195
|
+
overflowY: 'auto',
|
|
196
|
+
background: "#f8f8f8",
|
|
197
|
+
padding: "20px",
|
|
198
|
+
}}
|
|
199
|
+
>
|
|
200
|
+
<PdfView {...args} />
|
|
201
|
+
</div>
|
|
202
|
+
),
|
|
203
|
+
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import moment from "moment";
|
|
2
|
-
import PropTypes from
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
3
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
4
|
import { formatClassname } from "../../../../../helpers/ClassesHelper";
|
|
5
5
|
|
|
6
6
|
const PAGE_HEIGHT = 1587;
|
|
7
|
-
// margin-top: 20, bottom: 20;
|
|
8
7
|
const FOOTER_HEIGHT = 70;
|
|
9
8
|
const HEADER_HEIGHT = 100;
|
|
10
9
|
|
|
11
|
-
const Row = ({ widgets, i, onChangeHeight = () => {
|
|
10
|
+
const Row = ({ widgets, i, onChangeHeight = () => {} }) => {
|
|
12
11
|
const ref = useRef();
|
|
13
12
|
const [height, setHeight] = useState(0);
|
|
14
13
|
|
|
@@ -19,8 +18,7 @@ const Row = ({ widgets, i, onChangeHeight = () => { } }) => {
|
|
|
19
18
|
}
|
|
20
19
|
});
|
|
21
20
|
|
|
22
|
-
observer.observe(ref.current);
|
|
23
|
-
|
|
21
|
+
if (ref.current) observer.observe(ref.current);
|
|
24
22
|
return () => observer.disconnect();
|
|
25
23
|
}, []);
|
|
26
24
|
|
|
@@ -28,24 +26,24 @@ const Row = ({ widgets, i, onChangeHeight = () => { } }) => {
|
|
|
28
26
|
if (height) {
|
|
29
27
|
onChangeHeight(i, { height, ref });
|
|
30
28
|
}
|
|
31
|
-
}, [height])
|
|
29
|
+
}, [height, i, onChangeHeight]);
|
|
32
30
|
|
|
33
31
|
return (
|
|
34
32
|
<section ref={ref} style={widgets.style}>
|
|
35
|
-
{typeof widgets.render ===
|
|
33
|
+
{typeof widgets.render === "function" ? widgets.render() : null}
|
|
36
34
|
</section>
|
|
37
|
-
)
|
|
35
|
+
);
|
|
38
36
|
};
|
|
39
37
|
|
|
40
38
|
export default function PdfView({
|
|
41
39
|
config = [],
|
|
42
40
|
customClassName,
|
|
43
|
-
title =
|
|
44
|
-
imgSrc =
|
|
45
|
-
userId =
|
|
46
|
-
accountId =
|
|
47
|
-
documentId =
|
|
48
|
-
downloadId =
|
|
41
|
+
title = "Title",
|
|
42
|
+
imgSrc = "",
|
|
43
|
+
userId = "IDD-0000000",
|
|
44
|
+
accountId = "IDD-0000000",
|
|
45
|
+
documentId = "IDD-0000000",
|
|
46
|
+
downloadId = "DWL-00000123",
|
|
49
47
|
}) {
|
|
50
48
|
const [sectionsConfig, setSectionsConfig] = useState({});
|
|
51
49
|
const [pages, setPages] = useState([1]);
|
|
@@ -58,11 +56,10 @@ export default function PdfView({
|
|
|
58
56
|
if (keys.length === config.length) {
|
|
59
57
|
let incrHeight = 0;
|
|
60
58
|
|
|
61
|
-
keys.forEach(k => {
|
|
59
|
+
keys.forEach((k) => {
|
|
62
60
|
const { ref } = sectionsConfig[k];
|
|
63
|
-
ref.current.style.marginBottom =
|
|
64
|
-
|
|
65
|
-
})
|
|
61
|
+
ref.current.style.marginBottom = "0px";
|
|
62
|
+
});
|
|
66
63
|
|
|
67
64
|
keys.forEach((k, i) => {
|
|
68
65
|
const { height, ref } = sectionsConfig[k];
|
|
@@ -75,45 +72,48 @@ export default function PdfView({
|
|
|
75
72
|
const newHeight = incrHeight + height;
|
|
76
73
|
|
|
77
74
|
if (i === keys.length - 1) {
|
|
78
|
-
ref.current.style.paddingBottom =
|
|
75
|
+
ref.current.style.paddingBottom = "30px";
|
|
79
76
|
}
|
|
80
77
|
|
|
81
78
|
if (newHeight > PAGE_HEIGHT - 30 - FOOTER_HEIGHT - HEADER_HEIGHT) {
|
|
82
79
|
const dif = Math.abs(PAGE_HEIGHT - incrHeight);
|
|
83
|
-
ref.current.style.marginTop =
|
|
80
|
+
ref.current.style.marginTop = "30px";
|
|
84
81
|
_page += 1;
|
|
85
82
|
_pages.push(_page);
|
|
86
83
|
|
|
87
84
|
if (sectionsConfig[keys[i - 1]]) {
|
|
88
85
|
const { ref: topRef } = sectionsConfig[keys[i - 1]];
|
|
89
|
-
topRef.current.style.marginBottom = `${
|
|
86
|
+
topRef.current.style.marginBottom = `${
|
|
87
|
+
dif + HEADER_HEIGHT - 24
|
|
88
|
+
}px`;
|
|
90
89
|
incrHeight = height + 24 + HEADER_HEIGHT;
|
|
91
|
-
// console.log('margin', dif);
|
|
92
90
|
}
|
|
93
91
|
} else {
|
|
94
92
|
incrHeight = newHeight + 24;
|
|
95
93
|
}
|
|
96
|
-
|
|
97
|
-
})
|
|
94
|
+
});
|
|
98
95
|
setPages(_pages);
|
|
99
96
|
}
|
|
100
|
-
}, [sectionsConfig]);
|
|
97
|
+
}, [sectionsConfig, config.length]);
|
|
101
98
|
|
|
102
99
|
useEffect(() => {
|
|
103
100
|
doSizing();
|
|
104
101
|
}, [doSizing]);
|
|
105
102
|
|
|
106
103
|
const onChangeHeight = useCallback((index, conf) => {
|
|
107
|
-
setSectionsConfig((prev) => ({ ...prev, [index]: conf }))
|
|
104
|
+
setSectionsConfig((prev) => ({ ...prev, [index]: conf }));
|
|
108
105
|
}, []);
|
|
109
106
|
|
|
110
|
-
const contClassName = formatClassname([
|
|
107
|
+
const contClassName = formatClassname([
|
|
108
|
+
"daf-analysis daf-pdf-view",
|
|
109
|
+
customClassName,
|
|
110
|
+
]);
|
|
111
111
|
|
|
112
112
|
const renderDashboard = useCallback(() => {
|
|
113
113
|
return (
|
|
114
114
|
<div className="view-content">
|
|
115
115
|
<div className="daf-analysis-layout">
|
|
116
|
-
<div className=
|
|
116
|
+
<div className="sections-cont">
|
|
117
117
|
{config.map((widgets, i) => (
|
|
118
118
|
<Row
|
|
119
119
|
widgets={widgets}
|
|
@@ -128,20 +128,19 @@ export default function PdfView({
|
|
|
128
128
|
);
|
|
129
129
|
}, [config, onChangeHeight]);
|
|
130
130
|
|
|
131
|
-
// <div className="daf-analysis">
|
|
132
|
-
// <Header title={t('Dashboard Title')} />
|
|
133
|
-
|
|
134
|
-
// <div className="content">
|
|
135
|
-
// <div className="view-content">
|
|
136
|
-
// <div className="daf-analysis-layout">
|
|
137
|
-
// <div className='sections-cont w-pt'>
|
|
138
|
-
// <section>
|
|
139
131
|
|
|
140
132
|
return (
|
|
141
|
-
<div
|
|
133
|
+
<div
|
|
134
|
+
className={contClassName}
|
|
135
|
+
style={{
|
|
136
|
+
position: "relative",
|
|
137
|
+
}}
|
|
138
|
+
>
|
|
142
139
|
{renderDashboard()}
|
|
140
|
+
|
|
143
141
|
{pages.map((page) => (
|
|
144
|
-
|
|
142
|
+
<div key={page}>
|
|
143
|
+
{/* Header */}
|
|
145
144
|
<div
|
|
146
145
|
style={{ top: ((page - 1) * PAGE_HEIGHT), width: '100%', height: HEADER_HEIGHT - 24, position: 'absolute', left: 0, zIndex: 1000000 }}
|
|
147
146
|
key={`headers-${page}`}
|
|
@@ -154,35 +153,29 @@ export default function PdfView({
|
|
|
154
153
|
<img src={imgSrc} alt="logo" />
|
|
155
154
|
</div>
|
|
156
155
|
</div>
|
|
156
|
+
|
|
157
|
+
{/* Footer */}
|
|
157
158
|
<div
|
|
158
159
|
style={{ top: (page * PAGE_HEIGHT) - FOOTER_HEIGHT, width: '100%', height: FOOTER_HEIGHT, position: 'absolute', left: 0, zIndex: 1000000 }}
|
|
159
160
|
key={`footers-${page}`}
|
|
160
161
|
className="dashboard-footer flex-row"
|
|
161
162
|
>
|
|
162
163
|
<div className="flex flex-column justify-center">
|
|
163
|
-
<h5>{moment().format(
|
|
164
|
+
<h5>{moment().format("DD MMM YYYY")}</h5>
|
|
164
165
|
</div>
|
|
165
166
|
<div className="flex flex-column justify-center">
|
|
166
167
|
<div className="flex gap-2">
|
|
167
168
|
<h5>
|
|
168
|
-
User ID:
|
|
169
|
-
{' '}
|
|
170
|
-
<strong>{userId}</strong>
|
|
169
|
+
User ID: <strong>{userId}</strong>
|
|
171
170
|
</h5>
|
|
172
171
|
<h5>
|
|
173
|
-
Account ID:
|
|
174
|
-
{' '}
|
|
175
|
-
<strong>{accountId}</strong>
|
|
172
|
+
Account ID: <strong>{accountId}</strong>
|
|
176
173
|
</h5>
|
|
177
174
|
<h5>
|
|
178
|
-
Document ID:
|
|
179
|
-
{' '}
|
|
180
|
-
<strong>{documentId}</strong>
|
|
175
|
+
Document ID: <strong>{documentId}</strong>
|
|
181
176
|
</h5>
|
|
182
177
|
<h5>
|
|
183
|
-
Download ID:
|
|
184
|
-
{' '}
|
|
185
|
-
<strong>{downloadId}</strong>
|
|
178
|
+
Download ID: <strong>{downloadId}</strong>
|
|
186
179
|
</h5>
|
|
187
180
|
</div>
|
|
188
181
|
</div>
|
|
@@ -190,7 +183,7 @@ export default function PdfView({
|
|
|
190
183
|
<h5>{page}</h5>
|
|
191
184
|
</div>
|
|
192
185
|
</div>
|
|
193
|
-
|
|
186
|
+
</div>
|
|
194
187
|
))}
|
|
195
188
|
</div>
|
|
196
189
|
);
|
|
@@ -204,4 +197,5 @@ PdfView.propTypes = {
|
|
|
204
197
|
userId: PropTypes.string,
|
|
205
198
|
accountId: PropTypes.string,
|
|
206
199
|
documentId: PropTypes.string,
|
|
207
|
-
|
|
200
|
+
downloadId: PropTypes.string,
|
|
201
|
+
};
|
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
/* Isolated Mapbox GL CSS - Scoped to prevent Leaflet conflicts */
|
|
2
|
-
|
|
3
|
-
/* Mapbox GL Core Styles - Scoped with .mapbox-gl-scope */
|
|
4
|
-
.mapbox-gl-scope .mapboxgl-map {
|
|
5
|
-
font: 12px/20px Helvetica Neue, Arial, Helvetica, sans-serif;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
position: relative;
|
|
8
|
-
-webkit-tap-highlight-color: rgb(0 0 0/0);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.mapbox-gl-scope .mapboxgl-canvas {
|
|
12
|
-
left: 0;
|
|
13
|
-
position: absolute;
|
|
14
|
-
top: 0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.mapbox-gl-scope .mapboxgl-map:-webkit-full-screen {
|
|
18
|
-
height: 100%;
|
|
19
|
-
width: 100%;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.mapbox-gl-scope .mapboxgl-canary {
|
|
23
|
-
background-color: salmon;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-interactive,
|
|
27
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group button.mapboxgl-ctrl-compass {
|
|
28
|
-
cursor: grab;
|
|
29
|
-
-webkit-user-select: none;
|
|
30
|
-
user-select: none;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer {
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-interactive:active,
|
|
38
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active {
|
|
39
|
-
cursor: grabbing;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,
|
|
43
|
-
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas {
|
|
44
|
-
touch-action: pan-x pan-y;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-touch-drag-pan,
|
|
48
|
-
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas {
|
|
49
|
-
touch-action: pinch-zoom;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,
|
|
53
|
-
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas {
|
|
54
|
-
touch-action: none;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/* Control positioning */
|
|
58
|
-
.mapbox-gl-scope .mapboxgl-ctrl-bottom,
|
|
59
|
-
.mapbox-gl-scope .mapboxgl-ctrl-bottom-left,
|
|
60
|
-
.mapbox-gl-scope .mapboxgl-ctrl-bottom-right,
|
|
61
|
-
.mapbox-gl-scope .mapboxgl-ctrl-left,
|
|
62
|
-
.mapbox-gl-scope .mapboxgl-ctrl-right,
|
|
63
|
-
.mapbox-gl-scope .mapboxgl-ctrl-top,
|
|
64
|
-
.mapbox-gl-scope .mapboxgl-ctrl-top-left,
|
|
65
|
-
.mapbox-gl-scope .mapboxgl-ctrl-top-right {
|
|
66
|
-
pointer-events: none;
|
|
67
|
-
position: absolute;
|
|
68
|
-
z-index: 2;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.mapbox-gl-scope .mapboxgl-ctrl-top-left {
|
|
72
|
-
left: 0;
|
|
73
|
-
top: 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.mapbox-gl-scope .mapboxgl-ctrl-top {
|
|
77
|
-
left: 50%;
|
|
78
|
-
top: 0;
|
|
79
|
-
transform: translateX(-50%);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.mapbox-gl-scope .mapboxgl-ctrl-top-right {
|
|
83
|
-
right: 0;
|
|
84
|
-
top: 0;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.mapbox-gl-scope .mapboxgl-ctrl-right {
|
|
88
|
-
right: 0;
|
|
89
|
-
top: 50%;
|
|
90
|
-
transform: translateY(-50%);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.mapbox-gl-scope .mapboxgl-ctrl-bottom-right {
|
|
94
|
-
bottom: 0;
|
|
95
|
-
right: 0;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.mapbox-gl-scope .mapboxgl-ctrl-bottom {
|
|
99
|
-
bottom: 0;
|
|
100
|
-
left: 50%;
|
|
101
|
-
transform: translateX(-50%);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.mapbox-gl-scope .mapboxgl-ctrl-bottom-left {
|
|
105
|
-
bottom: 0;
|
|
106
|
-
left: 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.mapbox-gl-scope .mapboxgl-ctrl-left {
|
|
110
|
-
left: 0;
|
|
111
|
-
top: 50%;
|
|
112
|
-
transform: translateY(-50%);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.mapbox-gl-scope .mapboxgl-ctrl {
|
|
116
|
-
clear: both;
|
|
117
|
-
pointer-events: auto;
|
|
118
|
-
transform: translate(0);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.mapbox-gl-scope .mapboxgl-ctrl-top-left .mapboxgl-ctrl {
|
|
122
|
-
float: left;
|
|
123
|
-
margin: 10px 0 0 10px;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.mapbox-gl-scope .mapboxgl-ctrl-top .mapboxgl-ctrl {
|
|
127
|
-
float: left;
|
|
128
|
-
margin: 10px 0;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.mapbox-gl-scope .mapboxgl-ctrl-top-right .mapboxgl-ctrl {
|
|
132
|
-
float: right;
|
|
133
|
-
margin: 10px 10px 0 0;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.mapbox-gl-scope .mapboxgl-ctrl-bottom-right .mapboxgl-ctrl,
|
|
137
|
-
.mapbox-gl-scope .mapboxgl-ctrl-right .mapboxgl-ctrl {
|
|
138
|
-
float: right;
|
|
139
|
-
margin: 0 10px 10px 0;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.mapbox-gl-scope .mapboxgl-ctrl-bottom .mapboxgl-ctrl {
|
|
143
|
-
float: left;
|
|
144
|
-
margin: 10px 0;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.mapbox-gl-scope .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl,
|
|
148
|
-
.mapbox-gl-scope .mapboxgl-ctrl-left .mapboxgl-ctrl {
|
|
149
|
-
float: left;
|
|
150
|
-
margin: 0 0 10px 10px;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/* Control group styling */
|
|
154
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group {
|
|
155
|
-
background: #fff;
|
|
156
|
-
border-radius: 4px;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group:not(:empty) {
|
|
160
|
-
box-shadow: 0 0 0 2px #0000001a;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group button {
|
|
164
|
-
background-color: initial;
|
|
165
|
-
border: 0;
|
|
166
|
-
box-sizing: border-box;
|
|
167
|
-
cursor: pointer;
|
|
168
|
-
display: block;
|
|
169
|
-
height: 29px;
|
|
170
|
-
outline: none;
|
|
171
|
-
overflow: hidden;
|
|
172
|
-
padding: 0;
|
|
173
|
-
width: 29px;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group button+button {
|
|
177
|
-
border-top: 1px solid #ddd;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.mapbox-gl-scope .mapboxgl-ctrl button .mapboxgl-ctrl-icon {
|
|
181
|
-
background-position: 50%;
|
|
182
|
-
background-repeat: no-repeat;
|
|
183
|
-
display: block;
|
|
184
|
-
height: 100%;
|
|
185
|
-
width: 100%;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.mapbox-gl-scope .mapboxgl-ctrl-attrib-button:focus,
|
|
189
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group button:focus {
|
|
190
|
-
box-shadow: 0 0 2px 2px #0096ff;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.mapbox-gl-scope .mapboxgl-ctrl button:disabled {
|
|
194
|
-
cursor: not-allowed;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.mapbox-gl-scope .mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon {
|
|
198
|
-
opacity: .25;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group button:first-child {
|
|
202
|
-
border-radius: 4px 4px 0 0;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group button:last-child {
|
|
206
|
-
border-radius: 0 0 4px 4px;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group button:only-child {
|
|
210
|
-
border-radius: inherit;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.mapbox-gl-scope .mapboxgl-ctrl button:not(:disabled):hover {
|
|
214
|
-
background-color: #0000000d;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/* Marker styles */
|
|
218
|
-
.mapbox-gl-scope .mapboxgl-marker {
|
|
219
|
-
position: absolute;
|
|
220
|
-
z-index: 1;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.mapbox-gl-scope .mapboxgl-marker svg {
|
|
224
|
-
display: block;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/* Popup styles */
|
|
228
|
-
.mapbox-gl-scope .mapboxgl-popup {
|
|
229
|
-
position: absolute;
|
|
230
|
-
text-align: center;
|
|
231
|
-
margin-bottom: 20px;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.mapbox-gl-scope .mapboxgl-popup-content-wrapper {
|
|
235
|
-
padding: 1px;
|
|
236
|
-
text-align: left;
|
|
237
|
-
border-radius: 12px;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.mapbox-gl-scope .mapboxgl-popup-content {
|
|
241
|
-
margin: 13px 24px 13px 20px;
|
|
242
|
-
line-height: 1.3;
|
|
243
|
-
font-size: 13px;
|
|
244
|
-
min-height: 1px;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.mapbox-gl-scope .mapboxgl-popup-content p {
|
|
248
|
-
margin: 17px 0;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.mapbox-gl-scope .mapboxgl-popup-tip-container {
|
|
252
|
-
width: 40px;
|
|
253
|
-
height: 20px;
|
|
254
|
-
position: absolute;
|
|
255
|
-
left: 50%;
|
|
256
|
-
margin-top: -1px;
|
|
257
|
-
margin-left: -20px;
|
|
258
|
-
overflow: hidden;
|
|
259
|
-
pointer-events: none;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.mapbox-gl-scope .mapboxgl-popup-tip {
|
|
263
|
-
width: 17px;
|
|
264
|
-
height: 17px;
|
|
265
|
-
padding: 1px;
|
|
266
|
-
margin: -10px auto 0;
|
|
267
|
-
pointer-events: auto;
|
|
268
|
-
-webkit-transform: rotate(45deg);
|
|
269
|
-
-moz-transform: rotate(45deg);
|
|
270
|
-
-ms-transform: rotate(45deg);
|
|
271
|
-
transform: rotate(45deg);
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.mapbox-gl-scope .mapboxgl-popup-content-wrapper,
|
|
275
|
-
.mapbox-gl-scope .mapboxgl-popup-tip {
|
|
276
|
-
background: white;
|
|
277
|
-
color: #333;
|
|
278
|
-
box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.mapbox-gl-scope .mapboxgl-popup-close-button {
|
|
282
|
-
position: absolute;
|
|
283
|
-
top: 0;
|
|
284
|
-
right: 0;
|
|
285
|
-
border: none;
|
|
286
|
-
text-align: center;
|
|
287
|
-
width: 24px;
|
|
288
|
-
height: 24px;
|
|
289
|
-
font: 16px/24px Tahoma, Verdana, sans-serif;
|
|
290
|
-
color: #757575;
|
|
291
|
-
text-decoration: none;
|
|
292
|
-
background: transparent;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.mapbox-gl-scope .mapboxgl-popup-close-button:hover,
|
|
296
|
-
.mapbox-gl-scope .mapboxgl-popup-close-button:focus {
|
|
297
|
-
color: #585858;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
/* Attribution */
|
|
301
|
-
.mapbox-gl-scope .mapboxgl-ctrl-attribution {
|
|
302
|
-
background: #fff;
|
|
303
|
-
background: rgba(255, 255, 255, 0.8);
|
|
304
|
-
margin: 0;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.mapbox-gl-scope .mapboxgl-ctrl-attribution,
|
|
308
|
-
.mapbox-gl-scope .mapboxgl-ctrl-scale-line {
|
|
309
|
-
padding: 0 5px;
|
|
310
|
-
color: #333;
|
|
311
|
-
line-height: 1.4;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
.mapbox-gl-scope .mapboxgl-ctrl-attribution a {
|
|
315
|
-
text-decoration: none;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
.mapbox-gl-scope .mapboxgl-ctrl-attribution a:hover,
|
|
319
|
-
.mapbox-gl-scope .mapboxgl-ctrl-attribution a:focus {
|
|
320
|
-
text-decoration: underline;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
/* Hide attribution by default */
|
|
324
|
-
.mapbox-gl-scope .mapboxgl-ctrl-attribution {
|
|
325
|
-
display: none !important;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
.mapbox-gl-scope .mapboxgl-ctrl-logo {
|
|
329
|
-
display: none !important;
|
|
330
|
-
}
|