@mapxus/mapxus-map-jp 10.1.0 → 10.2.0
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/index.umd.js +2 -2
- package/dist/{mapxus-map-10.1.0-jp.css → mapxus-map-10.2.0-jp.css} +0 -0
- package/dist/mapxus-map-10.2.0-jp.js +0 -0
- package/dist/utils.cjs +1 -1
- package/es/index.d.ts +5 -2
- package/es/index.mjs +675 -675
- package/es/{languages-D139G_8L.mjs → languages-CigHNOt-.mjs} +33 -25
- package/es/utils/index.d.ts +3 -1
- package/es/utils/index.mjs +3 -3
- package/package.json +1 -1
- package/dist/mapxus-map-10.1.0-jp.js +0 -0
package/dist/utils.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("d3-dispatch"),n=require("@mapxus/mapxus-auth-jp"),T="10.2.0",p={version:T},S=p.version,N="https://map-api.mapxus.co.jp/bms",l=10,I=1;class e{static instance;_globalDispatcher;_httpSession;_theme=null;_isSDKInitialized=!1;constructor(){}static getInstance(){return e.instance||(e.instance=new e),e.instance}setGlobalDispatcher(i){this._globalDispatcher=i}getGlobalDispatcher(){return this._globalDispatcher}async getHttpSession(){return this._httpSession||(this.registerSDK(),this._httpSession=await n.HTTPSession.create(n.SDKName.MapSDK,n.base64Encode(`version-${S}`)),this._httpSession.setBaseURL(N),this._httpSession.setRetryConfig(3)),this._httpSession}registerSDK(){this._isSDKInitialized||(this._isSDKInitialized=!0,n.reportLog(`${n.SDKName.MapSDK} initialized`))}get theme(){return this._theme}setTheme(i){this._theme=i}clear(){this._httpSession.destroy(),this._globalDispatcher=null,e.instance=null}}const c=["unauthorized","initError"],r=globalThis,o=f.dispatch(...c);e.getInstance().setGlobalDispatcher(o);r.MapxusMapEvents=r.MapxusMapEvents||{};r.MapxusMapEvents.on=function(t,i){return o.on(t,i),{off:()=>o.on(t,null)}};var s=(t=>(t.ENGLISH="en",t.CHINESE_SIMPLIFIED="zh-Hans",t.CHINESE_TRADITIONAL="zh-Hant",t.CHINESE_TRADITIONAL_TW="zh-Hant-TW",t.JAPANESE="ja",t.KOREAN="ko",t.FILIPINO="fil",t.INDONESIAN="id",t.PORTUGUESE="pt",t.THAI="th",t.VIETNAMESE="vi",t.ARABIC="ar",t.FRENCH="fr",t.ITALIAN="it",t))(s||{});function E(t){let i=null;return a(t)?i=s.ENGLISH:u(t)?i=s.CHINESE_SIMPLIFIED:R(t)?i=s.CHINESE_TRADITIONAL:_(t)?i=s.CHINESE_TRADITIONAL_TW:O(t)?i=s.JAPANESE:D(t)?i=s.KOREAN:H(t)?i=s.FILIPINO:d(t)?i=s.INDONESIAN:M(t)?i=s.PORTUGUESE:m(t)?i=s.THAI:v(t)?i=s.VIETNAMESE:F(t)?i=s.ARABIC:K(t)?i=s.FRENCH:L(t)&&(i=s.ITALIAN),i}function a(t){return/^en(-(US|GB|AU))?$/.test(t)}function u(t){return/^zh(-(Hans|CN))?$/.test(t)}function R(t){return/^zh-(Hant|HK|MO)$/.test(t)}function _(t){return t==="zh-TW"}function O(t){return/^ja(-JP)?$/.test(t)}function D(t){return/^ko(-KR)?$/.test(t)}function H(t){return/^(fil|tl)(-PH)?$/.test(t)}function d(t){return/^id(-ID)?$/.test(t)}function M(t){return/^pt(-(BR|PT))?$/.test(t)}function m(t){return/^th(-TH)?$/.test(t)}function v(t){return/^vi(-VN)?$/.test(t)}function F(t){return/^ar(-(DZ|BH|EG|IQ|JO|KW|LB|LY|MA|OM|QA|SA|SY|TN|AE|YE))?$/.test(t)}function K(t){return/^fr(-(FR|CA|CH))?$/.test(t)}function L(t){return/^it(-(IT|CH))?$/.test(t)}const h="reserve_mapxus-level-fill",A="reserve_mapxus-shared-level-fill",b={convertBrowserLangToPresetLang:E,VERSION:S,OFFSET:l,PAGE:I,ERRORS:c,ASSISTANT_LAYER_INDOOR_FLOORS:h,ASSISTANT_LAYER_SHARED_FLOORS:A};exports.ASSISTANT_LAYER_INDOOR_FLOORS=h;exports.ASSISTANT_LAYER_SHARED_FLOORS=A;exports.ERRORS=c;exports.OFFSET=l;exports.PAGE=I;exports.VERSION=S;exports.convertBrowserLangToPresetLang=E;exports.default=b;
|
package/es/index.d.ts
CHANGED
|
@@ -21,7 +21,9 @@ export declare enum PresetLanguage {
|
|
|
21
21
|
PORTUGUESE = "pt",
|
|
22
22
|
THAI = "th",
|
|
23
23
|
VIETNAMESE = "vi",
|
|
24
|
-
ARABIC = "ar"
|
|
24
|
+
ARABIC = "ar",
|
|
25
|
+
FRENCH = "fr",
|
|
26
|
+
ITALIAN = "it"
|
|
25
27
|
}
|
|
26
28
|
export type TMultilingualString = Partial<Record<PresetLanguage, string>>;
|
|
27
29
|
export interface IMultilingualName extends TMultilingualString {
|
|
@@ -1062,7 +1064,8 @@ export declare enum VehicleType {
|
|
|
1062
1064
|
FOOT = "foot",
|
|
1063
1065
|
WHEELCHAIR = "wheelchair",
|
|
1064
1066
|
ESCALATOR = "escalator",
|
|
1065
|
-
EMERGENCY = "emergency"
|
|
1067
|
+
EMERGENCY = "emergency",
|
|
1068
|
+
ELEVATOR = "elevator"
|
|
1066
1069
|
}
|
|
1067
1070
|
export interface IRouteInfo {
|
|
1068
1071
|
copyrights: string[];
|