@heycar/heycars-map 2.12.0-color6 → 2.12.0-color8

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/README.md CHANGED
@@ -607,6 +607,7 @@ export default defineComponent({
607
607
  driverStatus={"driverArrived"}
608
608
  bookDispatchingTitle="2月14日 11:00 用车"
609
609
  dispatchingTitle="正在为您搜索附近司机"
610
+ bookDispatchedTitle="*6月12日 11:00* 用车"
610
611
  driverArrivedTitle="司机已等待 00:35"
611
612
  renderStartSerivceTitle={({ distance, duration }) =>
612
613
  `距你*${distance}*公里, *${duration}*分钟`
@@ -96,6 +96,7 @@ const DemoBusinessTaxiService = defineComponent({
96
96
  "to": to,
97
97
  "driverStatus": status,
98
98
  "bookDispatchingTitle": "2月14日 11:00 用车",
99
+ "bookDispatchedTitle": "*6月12日 11:00* 用车",
99
100
  "dispatchingTitle": "正在为您搜索附近司机",
100
101
  "driverArrivedTitle": "司机已等待 00:35",
101
102
  "renderStartSerivceTitle": ({
@@ -8,6 +8,7 @@ export type BusinessTaxiServiceMapProps = CoordinatifyProps<Omit<HeycarMapProps,
8
8
  log?: boolean;
9
9
  dispatchingTitle: string;
10
10
  bookDispatchingTitle: string;
11
+ bookDispatchedTitle?: string;
11
12
  driverArrivedTitle: string;
12
13
  driverStatus: DriverStatus;
13
14
  interval: number;
@@ -91,6 +91,7 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
91
91
  to: inputTo,
92
92
  dispatchingTitle,
93
93
  bookDispatchingTitle,
94
+ bookDispatchedTitle,
94
95
  driverArrivedTitle
95
96
  } = props;
96
97
  const from = unCoordinatifyPlace(toCoordinatePlaceType(inputFrom));
@@ -163,6 +164,7 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
163
164
  "attrs": {
164
165
  "from": from,
165
166
  "to": to,
167
+ "title": bookDispatchedTitle,
166
168
  "passengerPosition": passengerPosition,
167
169
  "passengerAngle": orientation == null ? void 0 : orientation.cssRotationVariableName,
168
170
  "registerOverlay": registerOverlay
@@ -241,7 +243,7 @@ const BusinessTaxiServiceMap = defineLagecySetup("BusinessTaxiServiceMap", funct
241
243
  attrs: props,
242
244
  key: `${payload.supplier}${instanceNo}`
243
245
  });
244
- }).props(["bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPositionTrack", "interval", "disablePassenger", "loading", "mapContext", "renderInServiceTitle", "renderStartSerivceTitle", "to"]);
246
+ }).props(["bookDispatchingTitle", "bookDispatchedTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPositionTrack", "interval", "disablePassenger", "loading", "mapContext", "renderInServiceTitle", "renderStartSerivceTitle", "to"]);
245
247
  export {
246
248
  BusinessTaxiServiceMap,
247
249
  BusinessTaxiServiceMapInner
@@ -28,6 +28,7 @@ type SectionBookDispatchedProps = Required<MROP> & {
28
28
  passengerAngle?: string;
29
29
  from: Place;
30
30
  to: Place;
31
+ title?: string;
31
32
  };
32
33
  export declare const SectionBookDispatched: import("vue").DefineComponent<import("vue3").ComponentObjectPropsOptions<SectionBookDispatchedProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionBookDispatchedProps, Required<SectionBookDispatchedProps>>, never, SectionBookDispatchedProps>;
33
34
  type SectionDriverArrivedProps = Required<MROP> & {
@@ -279,6 +279,7 @@ const SectionBookDispatched = defineSetup("SectionBookDispatched", function(prop
279
279
  const {
280
280
  from: fromPlace,
281
281
  to: toPlace,
282
+ title,
282
283
  passengerPosition,
283
284
  passengerAngle,
284
285
  registerOverlay
@@ -324,6 +325,7 @@ const SectionBookDispatched = defineSetup("SectionBookDispatched", function(prop
324
325
  "type": "start",
325
326
  "registerOverlay": registerOverlay,
326
327
  "position": from,
328
+ "title": title,
327
329
  "language": language
328
330
  }
329
331
  }), h(StartEndPoint, {
@@ -26,6 +26,7 @@ const AStartEndPoint = defineSetup("AStartEndPoint", function(props, {
26
26
  language
27
27
  } = props;
28
28
  const icon = type === "start" ? language === "zh" || language === "zh-TW" ? imgStartPoint : ICON_START_POINT_EN_URL : language === "zh" ? imgEndPoint : language === "zh-TW" ? ICON_END_POINT_ZH_TW_URL : ICON_END_POINT_EN_URL;
29
+ const titleRow = !title ? "" : decodeAsterisk(title).map((item) => item.type === "normal" ? item.value : `<span class="${pointInfoBoxEmphasize}">${item.value}</span>`).join("");
29
30
  const descriptionRow = !description ? "" : decodeAsterisk(description).map((item) => item.type === "normal" ? item.value : `<span class="${pointInfoBoxEmphasize}">${item.value}</span>`).join("");
30
31
  if (!description && !title)
31
32
  return `<${SvgInlineWebComponentTag} class="AStartEndPoint ${pointIcon({
@@ -37,7 +38,7 @@ const AStartEndPoint = defineSetup("AStartEndPoint", function(props, {
37
38
  <div class="${pointSingleInfoBox}">
38
39
  <div class="${pointInfoBoxTitle} ${textLayout({
39
40
  withArrow
40
- })}">${title}</div>
41
+ })}">${titleRow}</div>
41
42
  <${SvgInlineWebComponentTag} class="${arrowRight({
42
43
  withArrow
43
44
  })}" src="${imgArrowRight}" ></${SvgInlineWebComponentTag}>
@@ -53,7 +54,7 @@ const AStartEndPoint = defineSetup("AStartEndPoint", function(props, {
53
54
  <div class="${textLayout({
54
55
  withArrow
55
56
  })}">
56
- <div class="${pointInfoBoxTitle}">${title != null ? title : ""}</div>
57
+ <div class="${pointInfoBoxTitle}">${titleRow}</div>
57
58
  <div class="${pointInfoBoxDescription}">${descriptionRow}</div>
58
59
  </div>
59
60
  <${SvgInlineWebComponentTag} class="${arrowRight({
@@ -94,6 +95,7 @@ const GStartEndPoint = defineSetup("GStartEndPoint", function(props, {
94
95
  language = "zh"
95
96
  } = props;
96
97
  const icon = type === "start" ? language === "zh" || language === "zh-TW" ? imgStartPoint : ICON_START_POINT_EN_URL : language === "zh" || language === "zh-TW" ? imgEndPoint : ICON_END_POINT_EN_URL;
98
+ const titleRow = !title ? "" : decodeAsterisk(title).map((item) => item.type === "normal" ? item.value : `<span class="${pointInfoBoxEmphasize}">${item.value}</span>`).join("");
97
99
  const descriptionRow = !description ? "" : decodeAsterisk(description).map((item) => item.type === "normal" ? item.value : `<span class="${pointInfoBoxEmphasize}">${item.value}</span>`).join("");
98
100
  if (!description && !title)
99
101
  return createDom(SvgInlineWebComponentTag, {
@@ -109,7 +111,7 @@ const GStartEndPoint = defineSetup("GStartEndPoint", function(props, {
109
111
  <div class="${pointSingleInfoBox}">
110
112
  <div class="${pointInfoBoxTitle} ${textLayout({
111
113
  withArrow
112
- })}">${title}</div>
114
+ })}">${titleRow}</div>
113
115
  <${SvgInlineWebComponentTag} class="${arrowRight({
114
116
  withArrow
115
117
  })}" src="${imgArrowRight}" ></${SvgInlineWebComponentTag}>
@@ -125,7 +127,7 @@ const GStartEndPoint = defineSetup("GStartEndPoint", function(props, {
125
127
  <div class="${textLayout({
126
128
  withArrow
127
129
  })}">
128
- <div class="${pointInfoBoxTitle}">${title != null ? title : ""}</div>
130
+ <div class="${pointInfoBoxTitle}">${titleRow}</div>
129
131
  <div class="${pointInfoBoxDescription}">${descriptionRow}</div>
130
132
  </div>
131
133
  <${SvgInlineWebComponentTag} class="${arrowRight({
@@ -13,7 +13,7 @@ const useADrivingRoute = (props) => {
13
13
  steps: [],
14
14
  trafficJams: void 0
15
15
  });
16
- const amapDriving = new AMap.Driving({});
16
+ const amapDriving = new AMap.Driving({ ferry: 1 });
17
17
  const apiMapDrivingRoute = (from, to) => {
18
18
  return googleRoutesProxyUrl && inTaiwan(from) ? googleServiceApiDrivingRoute(from, to, googleRoutesProxyUrl) : amapJsApiDrivingRoute(from, to, amapDriving);
19
19
  };
@@ -1,6 +1,6 @@
1
1
  const availableLogKeys = /* @__PURE__ */ new Set();
2
2
  const pkgName = "@heycar/heycars-map";
3
- const pkgVersion = "2.12.0-color6";
3
+ const pkgVersion = "2.12.0-color8";
4
4
  const isEnableLog = (name) => {
5
5
  const searchParam = new URLSearchParams(location.search);
6
6
  return searchParam.has(`log-${name}`);
@@ -95,6 +95,7 @@ const DemoBusinessTaxiService = /* @__PURE__ */ defineComponent({
95
95
  "to": to,
96
96
  "driverStatus": status,
97
97
  "bookDispatchingTitle": "2月14日 11:00 用车",
98
+ "bookDispatchedTitle": "*6月12日 11:00* 用车",
98
99
  "dispatchingTitle": "正在为您搜索附近司机",
99
100
  "driverArrivedTitle": "司机已等待 00:35",
100
101
  "renderStartSerivceTitle": ({
@@ -8,6 +8,7 @@ export type BusinessTaxiServiceMapProps = CoordinatifyProps<Omit<HeycarMapProps,
8
8
  log?: boolean;
9
9
  dispatchingTitle: string;
10
10
  bookDispatchingTitle: string;
11
+ bookDispatchedTitle?: string;
11
12
  driverArrivedTitle: string;
12
13
  driverStatus: DriverStatus;
13
14
  interval: number;
@@ -91,6 +91,7 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
91
91
  to: inputTo,
92
92
  dispatchingTitle,
93
93
  bookDispatchingTitle,
94
+ bookDispatchedTitle,
94
95
  driverArrivedTitle
95
96
  } = props;
96
97
  const from = unCoordinatifyPlace(toCoordinatePlaceType(inputFrom));
@@ -146,6 +147,7 @@ const BusinessTaxiServiceMapInner = defineSetup("BusinessTaxiServiceMapInner", f
146
147
  "render": (orientation) => createVNode(SectionBookDispatched, {
147
148
  "from": from,
148
149
  "to": to,
150
+ "title": bookDispatchedTitle,
149
151
  "passengerPosition": passengerPosition,
150
152
  "passengerAngle": orientation == null ? void 0 : orientation.cssRotationVariableName,
151
153
  "registerOverlay": registerOverlay
@@ -209,7 +211,7 @@ const BusinessTaxiServiceMap = defineLagecySetup("BusinessTaxiServiceMap", funct
209
211
  attrs: props,
210
212
  key: `${payload.supplier}${instanceNo}`
211
213
  });
212
- }).props(["bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPositionTrack", "interval", "disablePassenger", "loading", "mapContext", "renderInServiceTitle", "renderStartSerivceTitle", "to"]);
214
+ }).props(["bookDispatchingTitle", "bookDispatchedTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPositionTrack", "interval", "disablePassenger", "loading", "mapContext", "renderInServiceTitle", "renderStartSerivceTitle", "to"]);
213
215
  export {
214
216
  BusinessTaxiServiceMap,
215
217
  BusinessTaxiServiceMapInner
@@ -36,6 +36,7 @@ type SectionBookDispatchedProps = Required<MROP> & {
36
36
  passengerAngle?: string;
37
37
  from: Place;
38
38
  to: Place;
39
+ title?: string;
39
40
  };
40
41
  export declare const SectionBookDispatched: import("vue").DefineComponent<import("vue").ComponentObjectPropsOptions<SectionBookDispatchedProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<SectionBookDispatchedProps, Required<SectionBookDispatchedProps>>, never, import("vue").PublicProps, SectionBookDispatchedProps, SectionBookDispatchedProps, import("vue").SlotsType<{} & {
41
42
  default?: import("../../demi-polyfill").Slot | undefined;
@@ -227,6 +227,7 @@ const SectionBookDispatched = defineSetup("SectionBookDispatched", function(prop
227
227
  const {
228
228
  from: fromPlace,
229
229
  to: toPlace,
230
+ title,
230
231
  passengerPosition,
231
232
  passengerAngle,
232
233
  registerOverlay
@@ -261,6 +262,7 @@ const SectionBookDispatched = defineSetup("SectionBookDispatched", function(prop
261
262
  "type": "start",
262
263
  "registerOverlay": registerOverlay,
263
264
  "position": from,
265
+ "title": title,
264
266
  "language": language
265
267
  }, null), createVNode(StartEndPoint, {
266
268
  "type": "end",
@@ -26,6 +26,7 @@ const AStartEndPoint = defineSetup("AStartEndPoint", function(props, {
26
26
  language
27
27
  } = props;
28
28
  const icon = type === "start" ? language === "zh" || language === "zh-TW" ? imgStartPoint : ICON_START_POINT_EN_URL : language === "zh" ? imgEndPoint : language === "zh-TW" ? ICON_END_POINT_ZH_TW_URL : ICON_END_POINT_EN_URL;
29
+ const titleRow = !title ? "" : decodeAsterisk(title).map((item) => item.type === "normal" ? item.value : `<span class="${pointInfoBoxEmphasize}">${item.value}</span>`).join("");
29
30
  const descriptionRow = !description ? "" : decodeAsterisk(description).map((item) => item.type === "normal" ? item.value : `<span class="${pointInfoBoxEmphasize}">${item.value}</span>`).join("");
30
31
  if (!description && !title)
31
32
  return `<${SvgInlineWebComponentTag} class="AStartEndPoint ${pointIcon({
@@ -37,7 +38,7 @@ const AStartEndPoint = defineSetup("AStartEndPoint", function(props, {
37
38
  <div class="${pointSingleInfoBox}">
38
39
  <div class="${pointInfoBoxTitle} ${textLayout({
39
40
  withArrow
40
- })}">${title}</div>
41
+ })}">${titleRow}</div>
41
42
  <${SvgInlineWebComponentTag} class="${arrowRight({
42
43
  withArrow
43
44
  })}" src="${imgArrowRight}" ></${SvgInlineWebComponentTag}>
@@ -53,7 +54,7 @@ const AStartEndPoint = defineSetup("AStartEndPoint", function(props, {
53
54
  <div class="${textLayout({
54
55
  withArrow
55
56
  })}">
56
- <div class="${pointInfoBoxTitle}">${title != null ? title : ""}</div>
57
+ <div class="${pointInfoBoxTitle}">${titleRow}</div>
57
58
  <div class="${pointInfoBoxDescription}">${descriptionRow}</div>
58
59
  </div>
59
60
  <${SvgInlineWebComponentTag} class="${arrowRight({
@@ -90,6 +91,7 @@ const GStartEndPoint = defineSetup("GStartEndPoint", function(props, {
90
91
  language = "zh"
91
92
  } = props;
92
93
  const icon = type === "start" ? language === "zh" || language === "zh-TW" ? imgStartPoint : ICON_START_POINT_EN_URL : language === "zh" || language === "zh-TW" ? imgEndPoint : ICON_END_POINT_EN_URL;
94
+ const titleRow = !title ? "" : decodeAsterisk(title).map((item) => item.type === "normal" ? item.value : `<span class="${pointInfoBoxEmphasize}">${item.value}</span>`).join("");
93
95
  const descriptionRow = !description ? "" : decodeAsterisk(description).map((item) => item.type === "normal" ? item.value : `<span class="${pointInfoBoxEmphasize}">${item.value}</span>`).join("");
94
96
  if (!description && !title)
95
97
  return createDom(SvgInlineWebComponentTag, {
@@ -105,7 +107,7 @@ const GStartEndPoint = defineSetup("GStartEndPoint", function(props, {
105
107
  <div class="${pointSingleInfoBox}">
106
108
  <div class="${pointInfoBoxTitle} ${textLayout({
107
109
  withArrow
108
- })}">${title}</div>
110
+ })}">${titleRow}</div>
109
111
  <${SvgInlineWebComponentTag} class="${arrowRight({
110
112
  withArrow
111
113
  })}" src="${imgArrowRight}" ></${SvgInlineWebComponentTag}>
@@ -121,7 +123,7 @@ const GStartEndPoint = defineSetup("GStartEndPoint", function(props, {
121
123
  <div class="${textLayout({
122
124
  withArrow
123
125
  })}">
124
- <div class="${pointInfoBoxTitle}">${title != null ? title : ""}</div>
126
+ <div class="${pointInfoBoxTitle}">${titleRow}</div>
125
127
  <div class="${pointInfoBoxDescription}">${descriptionRow}</div>
126
128
  </div>
127
129
  <${SvgInlineWebComponentTag} class="${arrowRight({
@@ -13,7 +13,7 @@ const useADrivingRoute = (props) => {
13
13
  steps: [],
14
14
  trafficJams: void 0
15
15
  });
16
- const amapDriving = new AMap.Driving({});
16
+ const amapDriving = new AMap.Driving({ ferry: 1 });
17
17
  const apiMapDrivingRoute = (from, to) => {
18
18
  return googleRoutesProxyUrl && inTaiwan(from) ? googleServiceApiDrivingRoute(from, to, googleRoutesProxyUrl) : amapJsApiDrivingRoute(from, to, amapDriving);
19
19
  };
@@ -1,6 +1,6 @@
1
1
  const availableLogKeys = /* @__PURE__ */ new Set();
2
2
  const pkgName = "@heycar/heycars-map";
3
- const pkgVersion = "2.12.0-color6";
3
+ const pkgVersion = "2.12.0-color8";
4
4
  const isEnableLog = (name) => {
5
5
  const searchParam = new URLSearchParams(location.search);
6
6
  return searchParam.has(`log-${name}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycar/heycars-map",
3
- "version": "2.12.0-color6",
3
+ "version": "2.12.0-color8",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "checkVersion": "./bin/checkVersion.js",