@movvjs/svelte-schedule-view 0.0.11 → 0.0.12

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 (297) hide show
  1. package/.prettierrc +12 -12
  2. package/.svelte-kit/__package__/axios/index.js +1 -1
  3. package/.svelte-kit/__package__/index.d.ts +1 -1
  4. package/.svelte-kit/__package__/index.js +1 -1
  5. package/{dist/schedule → .svelte-kit/__package__/schedule-view}/BookingInfo.svelte +11 -11
  6. package/{dist/schedule → .svelte-kit/__package__/schedule-view}/CarSearch.svelte +3 -3
  7. package/{dist/schedule → .svelte-kit/__package__/schedule-view}/CarSearch.svelte.d.ts +1 -1
  8. package/.svelte-kit/__package__/{schedule → schedule-view}/FileUploader.svelte +7 -8
  9. package/{dist/schedule → .svelte-kit/__package__/schedule-view}/FileUploader.svelte.d.ts +1 -1
  10. package/.svelte-kit/__package__/{components → schedule-view}/Layout.svelte +5 -6
  11. package/{dist/components → .svelte-kit/__package__/schedule-view}/Layout.svelte.d.ts +1 -1
  12. package/.svelte-kit/__package__/{schedule → schedule-view}/Map.svelte +6 -6
  13. package/.svelte-kit/__package__/{schedule → schedule-view}/PhoneNumberInput.svelte +3 -3
  14. package/{dist/schedule → .svelte-kit/__package__/schedule-view}/PlaceSearch.svelte +5 -5
  15. package/{dist/schedule → .svelte-kit/__package__/schedule-view}/Plan.svelte +6 -6
  16. package/.svelte-kit/__package__/{schedule → schedule-view}/PlanItem.svelte +3 -3
  17. package/.svelte-kit/__package__/{schedule → schedule-view}/PlanItem.svelte.d.ts +1 -1
  18. package/{dist/schedule → .svelte-kit/__package__/schedule-view}/Schedule.svelte +21 -17
  19. package/{dist/schedule → .svelte-kit/__package__/schedule-view}/Schedule.svelte.d.ts +5 -1
  20. package/{dist/schedule → .svelte-kit/__package__/schedule-view}/ServiceZone.svelte +3 -3
  21. package/.svelte-kit/__package__/schedule-view/Test.svelte +2 -0
  22. package/.svelte-kit/__package__/schedule-view/Test.svelte.d.ts +14 -0
  23. package/.svelte-kit/__package__/{api → schedule-view/api}/booking/index.js +2 -2
  24. package/.svelte-kit/__package__/{api → schedule-view/api}/common/index.js +2 -2
  25. package/.svelte-kit/__package__/schedule-view/api/index.d.ts +3 -0
  26. package/.svelte-kit/__package__/schedule-view/api/index.js +3 -0
  27. package/.svelte-kit/__package__/{schedule → schedule-view/components/flight-search}/FlightSearch.svelte +5 -5
  28. package/{dist/schedule → .svelte-kit/__package__/schedule-view/components/flight-search}/FlightSearch.svelte.d.ts +1 -1
  29. package/.svelte-kit/__package__/{loaders/component.svelte → schedule-view/components/loader/Loader.svelte} +2 -2
  30. package/.svelte-kit/__package__/schedule-view/components/loader/Loader.svelte.d.ts +16 -0
  31. package/{dist/loaders → .svelte-kit/__package__/schedule-view/components/loader}/index.d.ts +1 -1
  32. package/{dist/loaders → .svelte-kit/__package__/schedule-view/components/loader}/index.js +1 -1
  33. package/.svelte-kit/__package__/{alert/component.svelte → schedule-view/components/notifications/alert/Alert.svelte} +2 -2
  34. package/.svelte-kit/__package__/schedule-view/components/notifications/alert/Alert.svelte.d.ts +14 -0
  35. package/.svelte-kit/__package__/{confirm/component.svelte → schedule-view/components/notifications/confirm/Confirm.svelte} +1 -1
  36. package/.svelte-kit/__package__/schedule-view/components/notifications/confirm/Confirm.svelte.d.ts +14 -0
  37. package/.svelte-kit/__package__/schedule-view/components/notifications/index.d.ts +5 -0
  38. package/.svelte-kit/__package__/schedule-view/components/notifications/index.js +5 -0
  39. package/{dist/schedule → .svelte-kit/__package__/schedule-view/components/pickup-point-view}/PickupPointView.svelte +8 -8
  40. package/.svelte-kit/__package__/{schedule → schedule-view/components/translation}/Translation.svelte +4 -4
  41. package/.svelte-kit/__package__/{schedule → schedule-view/stores}/booking.js +7 -7
  42. package/.svelte-kit/__package__/schedule-view/stores/environment.d.ts +0 -0
  43. package/.svelte-kit/__package__/schedule-view/stores/environment.js +18 -0
  44. package/.svelte-kit/__package__/store/env.d.ts +1 -7
  45. package/.svelte-kit/__package__/store/env.js +1 -25
  46. package/.svelte-kit/ambient.d.ts +2 -0
  47. package/.svelte-kit/generated/server/internal.js +1 -1
  48. package/.svelte-kit/output/client/.vite/manifest.json +59 -59
  49. package/.svelte-kit/output/client/_app/immutable/assets/3.BdHh-Q2R.css +1 -0
  50. package/.svelte-kit/output/client/_app/immutable/assets/Portal.O7-JvwdH.css +1 -0
  51. package/.svelte-kit/output/client/_app/immutable/assets/_page.BdHh-Q2R.css +1 -0
  52. package/.svelte-kit/output/client/_app/immutable/assets/index.O7-JvwdH.css +1 -0
  53. package/.svelte-kit/output/client/_app/immutable/chunks/{entry.oR3Lp6C0.js → entry.DjKqHYSP.js} +1 -1
  54. package/.svelte-kit/output/client/_app/immutable/chunks/{index.eEy6OynM.js → index.BGrZCuML.js} +1 -1
  55. package/.svelte-kit/output/client/_app/immutable/chunks/index.FOjzEhlA.js +27 -0
  56. package/.svelte-kit/output/client/_app/immutable/chunks/{index.BNL5nnr5.js → index.hA7qaEVm.js} +1 -1
  57. package/.svelte-kit/output/client/_app/immutable/chunks/{scheduler.C-Hz7q9o.js → scheduler.CcILbENq.js} +1 -1
  58. package/.svelte-kit/output/client/_app/immutable/chunks/{stores.9UUzeLxO.js → stores.CZDfo8ub.js} +1 -1
  59. package/.svelte-kit/output/client/_app/immutable/entry/{app.CE3uvk6O.js → app.uDBBDaZr.js} +2 -2
  60. package/.svelte-kit/output/client/_app/immutable/entry/start.CMK9sH2f.js +1 -0
  61. package/.svelte-kit/output/client/_app/immutable/nodes/{0.iVXXVb5o.js → 0.CzVVhlgi.js} +1 -1
  62. package/.svelte-kit/output/client/_app/immutable/nodes/{1.DOIV9pgz.js → 1.B7dfh3UY.js} +1 -1
  63. package/.svelte-kit/output/client/_app/immutable/nodes/2.BCJwop-e.js +1 -0
  64. package/.svelte-kit/output/client/_app/immutable/nodes/3._ADF1RD-.js +7 -0
  65. package/.svelte-kit/output/client/_app/immutable/nodes/4.BhT6wP8T.js +7 -0
  66. package/.svelte-kit/output/client/_app/version.json +1 -1
  67. package/.svelte-kit/output/server/.vite/manifest.json +10 -10
  68. package/.svelte-kit/output/server/_app/immutable/assets/Portal.O7-JvwdH.css +1 -0
  69. package/.svelte-kit/output/server/_app/immutable/assets/_page.BdHh-Q2R.css +1 -0
  70. package/.svelte-kit/output/server/chunks/{Toaster.js → Portal.js} +916 -916
  71. package/.svelte-kit/output/server/chunks/internal.js +1 -1
  72. package/.svelte-kit/output/server/entries/pages/development/_page.svelte.js +226 -237
  73. package/.svelte-kit/output/server/entries/pages/package/_page.svelte.js +208 -233
  74. package/.svelte-kit/output/server/manifest-full.js +1 -1
  75. package/.svelte-kit/output/server/manifest.js +1 -1
  76. package/.svelte-kit/output/server/nodes/0.js +1 -1
  77. package/.svelte-kit/output/server/nodes/1.js +1 -1
  78. package/.svelte-kit/output/server/nodes/2.js +1 -1
  79. package/.svelte-kit/output/server/nodes/3.js +2 -2
  80. package/.svelte-kit/output/server/nodes/4.js +2 -2
  81. package/.svelte-kit/tsconfig.json +6 -0
  82. package/dist/axios/index.js +1 -1
  83. package/dist/index.d.ts +1 -1
  84. package/dist/index.js +1 -1
  85. package/{.svelte-kit/__package__/schedule → dist/schedule-view}/BookingInfo.svelte +11 -11
  86. package/{.svelte-kit/__package__/schedule → dist/schedule-view}/CarSearch.svelte +3 -3
  87. package/{.svelte-kit/__package__/schedule → dist/schedule-view}/CarSearch.svelte.d.ts +1 -1
  88. package/dist/{schedule → schedule-view}/FileUploader.svelte +7 -8
  89. package/{.svelte-kit/__package__/schedule → dist/schedule-view}/FileUploader.svelte.d.ts +1 -1
  90. package/dist/{components → schedule-view}/Layout.svelte +5 -6
  91. package/{.svelte-kit/__package__/components → dist/schedule-view}/Layout.svelte.d.ts +1 -1
  92. package/dist/{schedule → schedule-view}/Map.svelte +6 -6
  93. package/dist/{schedule → schedule-view}/PhoneNumberInput.svelte +3 -3
  94. package/{.svelte-kit/__package__/schedule → dist/schedule-view}/PlaceSearch.svelte +5 -5
  95. package/{.svelte-kit/__package__/schedule → dist/schedule-view}/Plan.svelte +6 -6
  96. package/dist/{schedule → schedule-view}/PlanItem.svelte +3 -3
  97. package/dist/{schedule → schedule-view}/PlanItem.svelte.d.ts +1 -1
  98. package/{.svelte-kit/__package__/schedule → dist/schedule-view}/Schedule.svelte +21 -17
  99. package/{.svelte-kit/__package__/schedule → dist/schedule-view}/Schedule.svelte.d.ts +5 -1
  100. package/{.svelte-kit/__package__/schedule → dist/schedule-view}/ServiceZone.svelte +3 -3
  101. package/dist/schedule-view/Test.svelte +2 -0
  102. package/dist/schedule-view/Test.svelte.d.ts +14 -0
  103. package/dist/{api → schedule-view/api}/booking/index.js +2 -2
  104. package/dist/{api → schedule-view/api}/common/index.js +2 -2
  105. package/dist/schedule-view/api/index.d.ts +3 -0
  106. package/dist/schedule-view/api/index.js +3 -0
  107. package/dist/{schedule → schedule-view/components/flight-search}/FlightSearch.svelte +5 -5
  108. package/{.svelte-kit/__package__/schedule → dist/schedule-view/components/flight-search}/FlightSearch.svelte.d.ts +1 -1
  109. package/dist/{loaders/component.svelte → schedule-view/components/loader/Loader.svelte} +2 -2
  110. package/dist/schedule-view/components/loader/Loader.svelte.d.ts +16 -0
  111. package/{.svelte-kit/__package__/loaders → dist/schedule-view/components/loader}/index.d.ts +1 -1
  112. package/{.svelte-kit/__package__/loaders → dist/schedule-view/components/loader}/index.js +1 -1
  113. package/dist/{alert/component.svelte → schedule-view/components/notifications/alert/Alert.svelte} +2 -2
  114. package/dist/schedule-view/components/notifications/alert/Alert.svelte.d.ts +14 -0
  115. package/dist/{confirm/component.svelte → schedule-view/components/notifications/confirm/Confirm.svelte} +1 -1
  116. package/dist/schedule-view/components/notifications/confirm/Confirm.svelte.d.ts +14 -0
  117. package/dist/schedule-view/components/notifications/index.d.ts +5 -0
  118. package/dist/schedule-view/components/notifications/index.js +5 -0
  119. package/{.svelte-kit/__package__/schedule → dist/schedule-view/components/pickup-point-view}/PickupPointView.svelte +8 -8
  120. package/dist/{schedule → schedule-view/components/translation}/Translation.svelte +4 -4
  121. package/dist/{schedule → schedule-view/stores}/booking.js +7 -7
  122. package/dist/schedule-view/stores/environment.d.ts +0 -0
  123. package/dist/schedule-view/stores/environment.js +18 -0
  124. package/dist/store/env.d.ts +1 -7
  125. package/dist/store/env.js +1 -25
  126. package/package.json +2 -1
  127. package/src/lib/axios/index.ts +1 -1
  128. package/src/lib/index.ts +1 -1
  129. package/src/lib/{schedule → schedule-view}/BookingInfo.svelte +16 -13
  130. package/src/lib/{schedule → schedule-view}/CarSearch.svelte +5 -3
  131. package/src/lib/{schedule → schedule-view}/FileUploader.svelte +11 -8
  132. package/src/lib/{components → schedule-view}/Layout.svelte +9 -6
  133. package/src/lib/{schedule → schedule-view}/Map.svelte +10 -7
  134. package/src/lib/{schedule → schedule-view}/PhoneNumberInput.svelte +4 -2
  135. package/src/lib/{schedule → schedule-view}/PlaceSearch.svelte +5 -5
  136. package/src/lib/{schedule → schedule-view}/Plan.svelte +8 -5
  137. package/src/lib/{schedule → schedule-view}/PlanItem.svelte +6 -5
  138. package/src/lib/{schedule → schedule-view}/Schedule.svelte +41 -21
  139. package/src/lib/{schedule → schedule-view}/ServiceZone.svelte +6 -4
  140. package/src/lib/schedule-view/Test.svelte +3 -0
  141. package/src/lib/{api → schedule-view/api}/booking/dto.ts +1 -1
  142. package/src/lib/{api → schedule-view/api}/booking/index.ts +1 -1
  143. package/src/lib/{api → schedule-view/api}/common/dto.ts +1 -1
  144. package/src/lib/{api → schedule-view/api}/common/index.ts +1 -1
  145. package/src/lib/schedule-view/api/index.ts +4 -0
  146. package/src/lib/{schedule → schedule-view/components/flight-search}/FlightSearch.svelte +8 -5
  147. package/src/lib/{loaders/component.svelte → schedule-view/components/loader/Loader.svelte} +2 -2
  148. package/src/lib/{loaders → schedule-view/components/loader}/index.ts +1 -1
  149. package/src/lib/{confirm/component.svelte → schedule-view/components/notifications/confirm/Confirm.svelte} +1 -1
  150. package/src/lib/schedule-view/components/notifications/index.ts +6 -0
  151. package/src/lib/{schedule → schedule-view/components/pickup-point-view}/PickupPointView.svelte +9 -7
  152. package/src/lib/{schedule → schedule-view/components/translation}/Translation.svelte +5 -3
  153. package/src/lib/{schedule → schedule-view/stores}/booking.ts +9 -7
  154. package/src/lib/schedule-view/stores/environment.ts +23 -0
  155. package/src/lib/store/env.ts +2 -23
  156. package/src/routes/development/+page.svelte +36 -59
  157. package/src/routes/package/+page.svelte +3 -3
  158. package/svelte.config.js +8 -5
  159. package/yarn.lock +215 -2
  160. package/.svelte-kit/__package__/alert/component.svelte.d.ts +0 -14
  161. package/.svelte-kit/__package__/confirm/component.svelte.d.ts +0 -14
  162. package/.svelte-kit/__package__/loaders/component.svelte.d.ts +0 -16
  163. package/.svelte-kit/output/client/_app/immutable/assets/3.CS00v9nd.css +0 -1
  164. package/.svelte-kit/output/client/_app/immutable/assets/Toaster.CLpmFrbv.css +0 -1
  165. package/.svelte-kit/output/client/_app/immutable/assets/_page.CS00v9nd.css +0 -1
  166. package/.svelte-kit/output/client/_app/immutable/chunks/Toaster.D4fsqLWn.js +0 -27
  167. package/.svelte-kit/output/client/_app/immutable/entry/start.DIZTVMhk.js +0 -1
  168. package/.svelte-kit/output/client/_app/immutable/nodes/2.BYyVAaql.js +0 -1
  169. package/.svelte-kit/output/client/_app/immutable/nodes/3.CPWaz4ng.js +0 -7
  170. package/.svelte-kit/output/client/_app/immutable/nodes/4.DhKR0smz.js +0 -7
  171. package/.svelte-kit/output/server/_app/immutable/assets/Toaster.CLpmFrbv.css +0 -1
  172. package/.svelte-kit/output/server/_app/immutable/assets/_page.CS00v9nd.css +0 -1
  173. package/dist/alert/component.svelte.d.ts +0 -14
  174. package/dist/confirm/component.svelte.d.ts +0 -14
  175. package/dist/loaders/component.svelte.d.ts +0 -16
  176. package/.svelte-kit/__package__/{constant/index.d.ts → axios/constant.d.ts} +0 -0
  177. package/.svelte-kit/__package__/{constant/index.js → axios/constant.js} +0 -0
  178. package/.svelte-kit/__package__/{components → schedule-view}/BaseSearchInput.svelte +0 -0
  179. package/.svelte-kit/__package__/{components → schedule-view}/BaseSearchInput.svelte.d.ts +0 -0
  180. package/.svelte-kit/__package__/{schedule → schedule-view}/BookingInfo.svelte.d.ts +0 -0
  181. package/.svelte-kit/__package__/{schedule → schedule-view}/Map.svelte.d.ts +0 -0
  182. package/.svelte-kit/__package__/{schedule → schedule-view}/PhoneNumberInput.svelte.d.ts +0 -0
  183. package/.svelte-kit/__package__/{schedule → schedule-view}/PlaceSearch.svelte.d.ts +0 -0
  184. package/.svelte-kit/__package__/{schedule → schedule-view}/Plan.svelte.d.ts +0 -0
  185. package/.svelte-kit/__package__/{schedule → schedule-view}/ServiceZone.svelte.d.ts +0 -0
  186. package/.svelte-kit/__package__/{schedule → schedule-view}/ServiceZoneItem.svelte +0 -0
  187. package/.svelte-kit/__package__/{schedule → schedule-view}/ServiceZoneItem.svelte.d.ts +0 -0
  188. package/.svelte-kit/__package__/{api → schedule-view/api}/booking/dto.d.ts +0 -0
  189. package/.svelte-kit/__package__/{api → schedule-view/api}/booking/dto.js +0 -0
  190. package/.svelte-kit/__package__/{api → schedule-view/api}/booking/index.d.ts +0 -0
  191. package/.svelte-kit/__package__/{api → schedule-view/api}/common/dto.d.ts +0 -0
  192. package/.svelte-kit/__package__/{api → schedule-view/api}/common/dto.js +0 -0
  193. package/.svelte-kit/__package__/{api → schedule-view/api}/common/index.d.ts +0 -0
  194. package/.svelte-kit/__package__/{assets → schedule-view/assets}/icon/dest.png +0 -0
  195. package/.svelte-kit/__package__/{assets → schedule-view/assets}/icon/place.png +0 -0
  196. package/.svelte-kit/__package__/{assets → schedule-view/assets}/icon/position_marker_black.png +0 -0
  197. package/.svelte-kit/__package__/{assets → schedule-view/assets}/icon/start.png +0 -0
  198. package/.svelte-kit/__package__/{assets → schedule-view/assets}/icon/transparent.png +0 -0
  199. package/.svelte-kit/__package__/{assets → schedule-view/assets}/scss/indie_booking.scss +0 -0
  200. package/.svelte-kit/__package__/{alert → schedule-view/components/notifications/alert}/index.d.ts +0 -0
  201. package/.svelte-kit/__package__/{alert → schedule-view/components/notifications/alert}/index.js +0 -0
  202. package/.svelte-kit/__package__/{alert → schedule-view/components/notifications/alert}/types.d.ts +0 -0
  203. package/.svelte-kit/__package__/{alert → schedule-view/components/notifications/alert}/types.js +0 -0
  204. package/.svelte-kit/__package__/{confirm → schedule-view/components/notifications/confirm}/index.d.ts +0 -0
  205. package/.svelte-kit/__package__/{confirm → schedule-view/components/notifications/confirm}/index.js +0 -0
  206. package/.svelte-kit/__package__/{confirm → schedule-view/components/notifications/confirm}/types.d.ts +0 -0
  207. package/.svelte-kit/__package__/{confirm → schedule-view/components/notifications/confirm}/types.js +0 -0
  208. package/.svelte-kit/__package__/{schedule → schedule-view/components/pickup-point-view}/PickupPointView.svelte.d.ts +0 -0
  209. package/.svelte-kit/__package__/{schedule → schedule-view/components/translation}/Translation.svelte.d.ts +0 -0
  210. package/.svelte-kit/__package__/{contents → schedule-view/contents}/telCodes.json +0 -0
  211. package/.svelte-kit/__package__/{schedule → schedule-view/stores}/booking.d.ts +0 -0
  212. package/.svelte-kit/__package__/{types → schedule-view/types}/booking.d.ts +0 -0
  213. package/.svelte-kit/__package__/{types → schedule-view/types}/booking.js +0 -0
  214. package/.svelte-kit/__package__/{types → schedule-view/types}/common.d.ts +0 -0
  215. package/.svelte-kit/__package__/{types → schedule-view/types}/common.js +0 -0
  216. package/.svelte-kit/__package__/{types → schedule-view/types}/file.d.ts +0 -0
  217. package/.svelte-kit/__package__/{types → schedule-view/types}/file.js +0 -0
  218. package/.svelte-kit/__package__/{types → schedule-view/types}/flight.d.ts +0 -0
  219. package/.svelte-kit/__package__/{types → schedule-view/types}/flight.js +0 -0
  220. package/.svelte-kit/__package__/{types → schedule-view/types}/index.d.ts +0 -0
  221. package/.svelte-kit/__package__/{types → schedule-view/types}/index.js +0 -0
  222. package/.svelte-kit/__package__/{types → schedule-view/types}/price.d.ts +0 -0
  223. package/.svelte-kit/__package__/{types → schedule-view/types}/price.js +0 -0
  224. package/.svelte-kit/__package__/{utils → schedule-view/utils}/index.d.ts +0 -0
  225. package/.svelte-kit/__package__/{utils → schedule-view/utils}/index.js +0 -0
  226. package/dist/{constant/index.d.ts → axios/constant.d.ts} +0 -0
  227. package/dist/{constant/index.js → axios/constant.js} +0 -0
  228. package/dist/{components → schedule-view}/BaseSearchInput.svelte +0 -0
  229. package/dist/{components → schedule-view}/BaseSearchInput.svelte.d.ts +0 -0
  230. package/dist/{schedule → schedule-view}/BookingInfo.svelte.d.ts +0 -0
  231. package/dist/{schedule → schedule-view}/Map.svelte.d.ts +0 -0
  232. package/dist/{schedule → schedule-view}/PhoneNumberInput.svelte.d.ts +0 -0
  233. package/dist/{schedule → schedule-view}/PlaceSearch.svelte.d.ts +0 -0
  234. package/dist/{schedule → schedule-view}/Plan.svelte.d.ts +0 -0
  235. package/dist/{schedule → schedule-view}/ServiceZone.svelte.d.ts +0 -0
  236. package/dist/{schedule → schedule-view}/ServiceZoneItem.svelte +0 -0
  237. package/dist/{schedule → schedule-view}/ServiceZoneItem.svelte.d.ts +0 -0
  238. package/dist/{api → schedule-view/api}/booking/dto.d.ts +0 -0
  239. package/dist/{api → schedule-view/api}/booking/dto.js +0 -0
  240. package/dist/{api → schedule-view/api}/booking/index.d.ts +0 -0
  241. package/dist/{api → schedule-view/api}/common/dto.d.ts +0 -0
  242. package/dist/{api → schedule-view/api}/common/dto.js +0 -0
  243. package/dist/{api → schedule-view/api}/common/index.d.ts +0 -0
  244. package/dist/{assets → schedule-view/assets}/icon/dest.png +0 -0
  245. package/dist/{assets → schedule-view/assets}/icon/place.png +0 -0
  246. package/dist/{assets → schedule-view/assets}/icon/position_marker_black.png +0 -0
  247. package/dist/{assets → schedule-view/assets}/icon/start.png +0 -0
  248. package/dist/{assets → schedule-view/assets}/icon/transparent.png +0 -0
  249. package/dist/{assets → schedule-view/assets}/scss/indie_booking.scss +0 -0
  250. package/dist/{alert → schedule-view/components/notifications/alert}/index.d.ts +0 -0
  251. package/dist/{alert → schedule-view/components/notifications/alert}/index.js +0 -0
  252. package/dist/{alert → schedule-view/components/notifications/alert}/types.d.ts +0 -0
  253. package/dist/{alert → schedule-view/components/notifications/alert}/types.js +0 -0
  254. package/dist/{confirm → schedule-view/components/notifications/confirm}/index.d.ts +0 -0
  255. package/dist/{confirm → schedule-view/components/notifications/confirm}/index.js +0 -0
  256. package/dist/{confirm → schedule-view/components/notifications/confirm}/types.d.ts +0 -0
  257. package/dist/{confirm → schedule-view/components/notifications/confirm}/types.js +0 -0
  258. package/dist/{schedule → schedule-view/components/pickup-point-view}/PickupPointView.svelte.d.ts +0 -0
  259. package/dist/{schedule → schedule-view/components/translation}/Translation.svelte.d.ts +0 -0
  260. package/dist/{contents → schedule-view/contents}/telCodes.json +0 -0
  261. package/dist/{schedule → schedule-view/stores}/booking.d.ts +0 -0
  262. package/dist/{types → schedule-view/types}/booking.d.ts +0 -0
  263. package/dist/{types → schedule-view/types}/booking.js +0 -0
  264. package/dist/{types → schedule-view/types}/common.d.ts +0 -0
  265. package/dist/{types → schedule-view/types}/common.js +0 -0
  266. package/dist/{types → schedule-view/types}/file.d.ts +0 -0
  267. package/dist/{types → schedule-view/types}/file.js +0 -0
  268. package/dist/{types → schedule-view/types}/flight.d.ts +0 -0
  269. package/dist/{types → schedule-view/types}/flight.js +0 -0
  270. package/dist/{types → schedule-view/types}/index.d.ts +0 -0
  271. package/dist/{types → schedule-view/types}/index.js +0 -0
  272. package/dist/{types → schedule-view/types}/price.d.ts +0 -0
  273. package/dist/{types → schedule-view/types}/price.js +0 -0
  274. package/dist/{utils → schedule-view/utils}/index.d.ts +0 -0
  275. package/dist/{utils → schedule-view/utils}/index.js +0 -0
  276. package/src/lib/{constant/index.ts → axios/constant.ts} +0 -0
  277. package/src/lib/{components → schedule-view}/BaseSearchInput.svelte +0 -0
  278. package/src/lib/{schedule → schedule-view}/ServiceZoneItem.svelte +0 -0
  279. package/src/lib/{assets → schedule-view/assets}/icon/dest.png +0 -0
  280. package/src/lib/{assets → schedule-view/assets}/icon/place.png +0 -0
  281. package/src/lib/{assets → schedule-view/assets}/icon/position_marker_black.png +0 -0
  282. package/src/lib/{assets → schedule-view/assets}/icon/start.png +0 -0
  283. package/src/lib/{assets → schedule-view/assets}/icon/transparent.png +0 -0
  284. package/src/lib/{assets → schedule-view/assets}/scss/indie_booking.scss +0 -0
  285. package/src/lib/{alert/component.svelte → schedule-view/components/notifications/alert/Alert.svelte} +1 -1
  286. /package/src/lib/{alert → schedule-view/components/notifications/alert}/index.ts +0 -0
  287. /package/src/lib/{alert → schedule-view/components/notifications/alert}/types.ts +0 -0
  288. /package/src/lib/{confirm → schedule-view/components/notifications/confirm}/index.ts +0 -0
  289. /package/src/lib/{confirm → schedule-view/components/notifications/confirm}/types.ts +0 -0
  290. /package/src/lib/{contents → schedule-view/contents}/telCodes.json +0 -0
  291. /package/src/lib/{types → schedule-view/types}/booking.ts +0 -0
  292. /package/src/lib/{types → schedule-view/types}/common.ts +0 -0
  293. /package/src/lib/{types → schedule-view/types}/file.ts +0 -0
  294. /package/src/lib/{types → schedule-view/types}/flight.ts +0 -0
  295. /package/src/lib/{types → schedule-view/types}/index.ts +0 -0
  296. /package/src/lib/{types → schedule-view/types}/price.ts +0 -0
  297. /package/src/lib/{utils → schedule-view/utils}/index.ts +0 -0
package/.prettierrc CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
- "semi": false,
3
- "singleQuote": true,
4
- "tabWidth": 2,
5
- "printWidth": 170,
6
- "useTabs": true,
7
- "proseWrap": "preserve",
8
- "arrowParens": "avoid",
9
- "htmlWhitespaceSensitivity": "css",
10
- "trailingComma": "none",
11
- "endOfLine": "auto",
12
- "jsxBracketSameLine": true,
13
- "bracketSameLine": true
2
+ "semi": false,
3
+ "singleQuote": true,
4
+ "tabWidth": 2,
5
+ "printWidth": 170,
6
+ "useTabs": true,
7
+ "proseWrap": "preserve",
8
+ "arrowParens": "avoid",
9
+ "htmlWhitespaceSensitivity": "css",
10
+ "trailingComma": "none",
11
+ "endOfLine": "auto",
12
+ "jsxBracketSameLine": true,
13
+ "bracketSameLine": true
14
14
  }
@@ -1,4 +1,4 @@
1
- import { API_URL } from '../constant';
1
+ import { API_URL } from './constant';
2
2
  import { env } from '../store/env';
3
3
  import Axios from 'axios';
4
4
  import consola from 'consola';
@@ -1,2 +1,2 @@
1
- import Schedule from './schedule/Schedule.svelte';
1
+ import Schedule from './schedule-view/Schedule.svelte';
2
2
  export { Schedule };
@@ -1,2 +1,2 @@
1
- import Schedule from './schedule/Schedule.svelte';
1
+ import Schedule from './schedule-view/Schedule.svelte';
2
2
  export { Schedule };
@@ -1,19 +1,19 @@
1
- <script>import { dayjs } from "../dayjs";
2
- import { padStart, range } from "lodash-es";
3
- import { BookingServiceType, ExtraServiceType, FileType } from "../types";
4
- import { copiedBooking, originalBooking } from "./booking";
5
- import { isEdit } from "./Schedule.svelte";
1
+ <script>import { padStart, range } from "lodash-es";
2
+ import toast from "svelte-french-toast";
3
+ import { dayjs } from "../dayjs";
6
4
  import { axios } from "../axios";
7
- import { alert } from "../alert";
8
5
  import { t } from "../i18n";
9
- import { getCarName } from "../utils";
10
- import Translation from "./Translation.svelte";
11
- import FlightSearch from "./FlightSearch.svelte";
6
+ import { env } from "../store/env";
7
+ import { BookingServiceType, ExtraServiceType, FileType } from "./types";
8
+ import { isEdit } from "./Schedule.svelte";
9
+ import { getCarName } from "./utils";
10
+ import { copiedBooking, originalBooking } from "./stores/booking";
11
+ import { alert } from "./components/notifications";
12
+ import Translation from "./components/translation/Translation.svelte";
13
+ import FlightSearch from "./components/flight-search/FlightSearch.svelte";
12
14
  import PhoneNumberInput from "./PhoneNumberInput.svelte";
13
15
  import FileUploader from "./FileUploader.svelte";
14
16
  import CarSearch from "./CarSearch.svelte";
15
- import { env } from "../store/env";
16
- import toast from "svelte-french-toast";
17
17
  const { stdt, fullName, pax, extraServices, files, plans } = originalBooking;
18
18
  const {
19
19
  withPreserveAndPreview,
@@ -1,6 +1,6 @@
1
- <script>import BaseSearchInput, {} from "../components/BaseSearchInput.svelte";
2
- import { t } from "../i18n";
3
- import { getCarName } from "../utils";
1
+ <script>import { t } from "../i18n";
2
+ import { getCarName } from "./utils";
3
+ import BaseSearchInput, {} from "./BaseSearchInput.svelte";
4
4
  export let placeholder = $t("booking.carInfo");
5
5
  export let inputId;
6
6
  export let title;
@@ -1,5 +1,5 @@
1
1
  import { SvelteComponent } from "svelte";
2
- import type { SearchPriceV2 } from '../types';
2
+ import type { SearchPriceV2 } from './types';
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  placeholder?: string;
@@ -1,10 +1,9 @@
1
- <script>import { alert } from "../alert";
2
- import { CommonAPI } from "../api/common";
3
- import { axios } from "../axios";
4
- import { t } from "../i18n";
5
- import { loaders } from "../loaders";
6
- import { map } from "lodash-es";
1
+ <script>import { map } from "lodash-es";
7
2
  import { createEventDispatcher } from "svelte";
3
+ import { t } from "../i18n";
4
+ import { CommonAPI } from "./api";
5
+ import { alert } from "./components/notifications";
6
+ import { loader } from "./components/loader";
8
7
  const dispatch = createEventDispatcher();
9
8
  export let single = false;
10
9
  export let title = $t("booking.fileUpload");
@@ -30,7 +29,7 @@ async function uploadFile() {
30
29
  return CommonAPI.upload(data);
31
30
  });
32
31
  try {
33
- loaders.show();
32
+ loader.show();
34
33
  const results = await Promise.all(uploadPromises);
35
34
  const files2 = results.map(({ name, url }) => ({ name, url }));
36
35
  success(files2);
@@ -38,7 +37,7 @@ async function uploadFile() {
38
37
  alert.open({ text: $t("alert.failedToUploadFile") });
39
38
  } finally {
40
39
  files = null;
41
- loaders.hide();
40
+ loader.hide();
42
41
  }
43
42
  }
44
43
  function success(files2) {
@@ -1,5 +1,5 @@
1
1
  import { SvelteComponent } from "svelte";
2
- import type { FileType, UploadFile } from '../types';
2
+ import type { FileType, UploadFile } from './types';
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  single?: boolean;
@@ -1,13 +1,12 @@
1
1
  <script context="module"></script>
2
2
 
3
- <script>import "../assets/scss/indie_booking.scss";
4
- import { isLoading, init, locale } from "svelte-i18n";
3
+ <script>import "$scheduleView/assets/scss/indie_booking.scss";
5
4
  import dayjs from "dayjs";
6
- import Loader from "../loaders/component.svelte";
7
- import Alert from "../alert/component.svelte";
8
- import Confirm from "../confirm/component.svelte";
9
- import { env } from "../store/env";
5
+ import { isLoading, init, locale } from "svelte-i18n";
10
6
  import Portal from "svelte-portal";
7
+ import { env } from "../store/env";
8
+ import { Alert, Confirm } from "./components/notifications";
9
+ import Loader from "./components/loader/Loader.svelte";
11
10
  init({
12
11
  fallbackLocale: "en",
13
12
  initialLocale: "en"
@@ -1,5 +1,5 @@
1
1
  import { SvelteComponent } from "svelte";
2
- import '../assets/scss/indie_booking.scss';
2
+ import '$scheduleView/assets/scss/indie_booking.scss';
3
3
  declare const __propDef: {
4
4
  props: Record<string, never>;
5
5
  events: {
@@ -1,11 +1,11 @@
1
- <script>import { randomize } from "../utils";
2
- import { isEqual } from "lodash-es";
1
+ <script>import { isEqual } from "lodash-es";
3
2
  import { onMount, tick } from "svelte";
3
+ import startIcon from "./assets/icon/start.png";
4
+ import destIcon from "./assets/icon/dest.png";
5
+ import placeIcon from "./assets/icon/place.png";
6
+ import { randomize } from "./utils";
7
+ import { copiedBooking, originalBooking } from "./stores/booking";
4
8
  import { isEdit } from "./Schedule.svelte";
5
- import startIcon from "../assets/icon/start.png";
6
- import destIcon from "../assets/icon/dest.png";
7
- import placeIcon from "../assets/icon/place.png";
8
- import { copiedBooking, originalBooking } from "./booking";
9
9
  let container$;
10
10
  let map;
11
11
  const { coordinates: originalCoordinates } = originalBooking;
@@ -1,7 +1,7 @@
1
- <script>import { t } from "../i18n";
2
- import telCodes from "../contents/telCodes.json";
3
- import { sortBy } from "lodash-es";
1
+ <script>import { sortBy } from "lodash-es";
4
2
  import { tick } from "svelte";
3
+ import { t } from "../i18n";
4
+ import telCodes from "./contents/telCodes.json";
5
5
  export let telCountryCode;
6
6
  export let telNumber;
7
7
  let show = false;
@@ -1,6 +1,6 @@
1
- <script>import { CommonAPI } from "../api/common";
2
- import { loaders } from "../loaders";
3
- import BaseSearchInput, {} from "../components/BaseSearchInput.svelte";
1
+ <script>import { CommonAPI } from "./api";
2
+ import { loader } from "./components/loader";
3
+ import BaseSearchInput, {} from "./BaseSearchInput.svelte";
4
4
  export let placeholder = "Title / Detailed address";
5
5
  export let inputId;
6
6
  export let title;
@@ -9,7 +9,7 @@ async function search(keyword) {
9
9
  if (!keyword?.trim())
10
10
  return;
11
11
  try {
12
- loaders.show();
12
+ loader.show();
13
13
  const data = await CommonAPI.searchPlace(keyword);
14
14
  list = data.map((item) => ({
15
15
  title: item.title,
@@ -19,7 +19,7 @@ async function search(keyword) {
19
19
  } catch (e) {
20
20
  list = [];
21
21
  } finally {
22
- loaders.hide();
22
+ loader.hide();
23
23
  }
24
24
  }
25
25
  </script>
@@ -1,12 +1,12 @@
1
- <script>import { isEdit } from "./Schedule.svelte";
2
- import PlanItem from "./PlanItem.svelte";
3
- import PickupPointView from "./PickupPointView.svelte";
4
- import { BookingServiceType } from "../types";
5
- import { copiedBooking, originalBooking } from "./booking";
6
- import Sortable from "sortablejs";
1
+ <script>import Sortable from "sortablejs";
7
2
  import { cloneDeep } from "lodash-es";
8
3
  import { onMount } from "svelte";
9
4
  import { t } from "../i18n";
5
+ import { BookingServiceType } from "./types";
6
+ import { copiedBooking, originalBooking } from "./stores/booking";
7
+ import PickupPointView from "./components/pickup-point-view/PickupPointView.svelte";
8
+ import { isEdit } from "./Schedule.svelte";
9
+ import PlanItem from "./PlanItem.svelte";
10
10
  const { plans, isPickupPoint, pickupService, dropOffService, isWaypointService } = originalBooking;
11
11
  const {
12
12
  plans: editPlans,
@@ -1,7 +1,7 @@
1
- <script>import { createEventDispatcher, onMount } from "svelte";
2
- import PlaceSearch from "./PlaceSearch.svelte";
3
- import { randomize } from "../utils";
1
+ <script>import { createEventDispatcher } from "svelte";
4
2
  import { t } from "../i18n";
3
+ import { randomize } from "./utils";
4
+ import PlaceSearch from "./PlaceSearch.svelte";
5
5
  const dispatch = createEventDispatcher();
6
6
  export let title = "";
7
7
  export let address = "";
@@ -1,5 +1,5 @@
1
1
  import { SvelteComponent } from "svelte";
2
- import type { ExtraPoi } from '../types';
2
+ import type { ExtraPoi } from './types';
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  title?: string;
@@ -1,23 +1,23 @@
1
1
  <script context="module">export const isEdit = writable(false);
2
2
  </script>
3
3
 
4
- <script>import { writable } from "svelte/store";
4
+ <script>import { Toaster } from "svelte-french-toast";
5
+ import { writable } from "svelte/store";
5
6
  import { cloneDeep } from "lodash-es";
7
+ import consola from "consola";
6
8
  import { dayjs } from "../dayjs";
7
- import { BookingAPI } from "../api/booking";
8
- import { copiedBooking, originalBooking } from "./booking";
9
- import { comma } from "../utils";
10
- import { loaders } from "../loaders";
11
- import { alert } from "../alert";
12
9
  import { t } from "../i18n";
13
10
  import { env } from "../store/env";
14
- import Layout from "../components/Layout.svelte";
11
+ import { BookingAPI } from "./api";
12
+ import { copiedBooking, originalBooking } from "./stores/booking";
13
+ import { comma } from "./utils";
14
+ import { loader } from "./components/loader";
15
+ import { alert } from "./components/notifications";
16
+ import Layout from "./Layout.svelte";
15
17
  import Map from "./Map.svelte";
16
18
  import ServiceZone from "./ServiceZone.svelte";
17
19
  import Plan from "./Plan.svelte";
18
20
  import BookingInfo from "./BookingInfo.svelte";
19
- import { Toaster } from "svelte-french-toast";
20
- import consola from "consola";
21
21
  const { stdt, price, isModifiable } = originalBooking;
22
22
  const { price: editPrice, availableDestZones, availableWaypointZones, fullName, selectedPrice } = copiedBooking;
23
23
  let on = false;
@@ -49,7 +49,7 @@ function open({ code }) {
49
49
  $copiedBooking = null;
50
50
  return new Promise(async (resolve, reject) => {
51
51
  try {
52
- loaders.show();
52
+ loader.show();
53
53
  const data = await BookingAPI.getBooking(code);
54
54
  $originalBooking = data;
55
55
  on = true;
@@ -57,18 +57,22 @@ function open({ code }) {
57
57
  alert.open({ text: e.message });
58
58
  reject(e);
59
59
  } finally {
60
- loaders.hide();
60
+ loader.hide();
61
61
  }
62
62
  resolver = resolve;
63
63
  });
64
64
  }
65
- function close() {
65
+ export function isOpened() {
66
+ return on;
67
+ }
68
+ export function close() {
66
69
  on = false;
67
- resolver("USER_CLOSE");
70
+ if (resolver)
71
+ resolver("USER_CLOSE");
68
72
  }
69
73
  async function edit() {
70
74
  try {
71
- loaders.show();
75
+ loader.show();
72
76
  $copiedBooking = await BookingAPI.modifyPreview($originalBooking);
73
77
  $originalBooking = cloneDeep($copiedBooking);
74
78
  $availableWaypointZones = await BookingAPI.searchWaypoints({ type: $copiedBooking.serviceType, coordinate: $copiedBooking.origin, keyword: "" });
@@ -77,7 +81,7 @@ async function edit() {
77
81
  } catch (e) {
78
82
  alert.open({ text: e.message });
79
83
  } finally {
80
- loaders.hide();
84
+ loader.hide();
81
85
  }
82
86
  }
83
87
  function detailPrice(price2) {
@@ -107,7 +111,7 @@ async function save() {
107
111
  if (!$copiedBooking.tel) {
108
112
  throw new Error($t("error.pleaseEnterTelNumber"));
109
113
  }
110
- loaders.show();
114
+ loader.show();
111
115
  const modifiedBooking = await BookingAPI.modify({
112
116
  ...$copiedBooking,
113
117
  name: $fullName,
@@ -121,7 +125,7 @@ async function save() {
121
125
  } catch (e) {
122
126
  alert.open({ text: e.message });
123
127
  } finally {
124
- loaders.hide();
128
+ loader.hide();
125
129
  }
126
130
  }
127
131
  </script>
@@ -1,6 +1,6 @@
1
1
  import { SvelteComponent } from "svelte";
2
2
  export declare const isEdit: import("svelte/store").Writable<boolean>;
3
- import type { Locale, Target } from '../types';
3
+ import type { Locale, Target } from './types';
4
4
  declare const __propDef: {
5
5
  props: {
6
6
  init?: (options: {
@@ -17,6 +17,8 @@ declare const __propDef: {
17
17
  code: string;
18
18
  }) => Promise<"USER_CLOSE">;
19
19
  };
20
+ isOpened?: () => boolean;
21
+ close?: () => void;
20
22
  };
21
23
  events: {
22
24
  [evt: string]: CustomEvent<any>;
@@ -41,5 +43,7 @@ export default class Schedule extends SvelteComponent<ScheduleProps, ScheduleEve
41
43
  code: string;
42
44
  }) => Promise<"USER_CLOSE">;
43
45
  };
46
+ get isOpened(): () => boolean;
47
+ get close(): () => void;
44
48
  }
45
49
  export {};
@@ -1,8 +1,8 @@
1
1
  <script>import { t } from "../i18n";
2
- import { BookingServiceType } from "../types";
3
- import { isEdit } from "./Schedule.svelte";
2
+ import { BookingServiceType } from "./types";
3
+ import { copiedBooking, originalBooking } from "./stores/booking";
4
4
  import ServiceZoneItem from "./ServiceZoneItem.svelte";
5
- import { copiedBooking, originalBooking } from "./booking";
5
+ import { isEdit } from "./Schedule.svelte";
6
6
  const { isWaypointService, serviceZone } = originalBooking;
7
7
  const { serviceZone: editServiceZone, availableDestZones, availableWaypointZones, withPreserveAndPreview } = copiedBooking;
8
8
  function addServiceZoneWaypoint(code) {
@@ -0,0 +1,2 @@
1
+ <script>const a = 1;
2
+ </script>
@@ -0,0 +1,14 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: Record<string, never>;
4
+ events: {
5
+ [evt: string]: CustomEvent<any>;
6
+ };
7
+ slots: {};
8
+ };
9
+ export type TestProps = typeof __propDef.props;
10
+ export type TestEvents = typeof __propDef.events;
11
+ export type TestSlots = typeof __propDef.slots;
12
+ export default class Test extends SvelteComponent<TestProps, TestEvents, TestSlots> {
13
+ }
14
+ export {};
@@ -1,7 +1,7 @@
1
- import { axios } from '../../axios';
1
+ import { axios } from '../../../axios';
2
2
  import QS from 'qs';
3
3
  import { get } from 'svelte/store';
4
- import { env } from '../../store/env';
4
+ import { env } from '../../../store/env';
5
5
  export class BookingAPI {
6
6
  static async getBooking(code) {
7
7
  const { target } = get(env);
@@ -1,6 +1,6 @@
1
- import { axios } from '../../axios';
1
+ import { axios } from '../../../axios';
2
2
  import { get } from 'svelte/store';
3
- import { env } from '../../store/env';
3
+ import { env } from '../../../store/env';
4
4
  export class CommonAPI {
5
5
  static async getPickupPoint(ppno) {
6
6
  const { target } = get(env);
@@ -0,0 +1,3 @@
1
+ import { CommonAPI } from './common';
2
+ import { BookingAPI } from './booking';
3
+ export { CommonAPI, BookingAPI };
@@ -0,0 +1,3 @@
1
+ import { CommonAPI } from './common';
2
+ import { BookingAPI } from './booking';
3
+ export { CommonAPI, BookingAPI };
@@ -1,10 +1,10 @@
1
- <script>import { dayjs } from "../dayjs";
1
+ <script>import Portal from "svelte-portal";
2
2
  import { padStart, range } from "lodash-es";
3
- import Portal from "svelte-portal";
4
3
  import { fade } from "svelte/transition";
5
- import { t } from "../i18n";
6
- import { alert } from "../alert";
7
- import { BookingAPI } from "../api/booking";
4
+ import { t } from "../../../i18n";
5
+ import { dayjs } from "../../../dayjs";
6
+ import { BookingAPI } from "../../api";
7
+ import { alert } from "../notifications";
8
8
  let on = false;
9
9
  let type = "AUTO";
10
10
  let dateTime;
@@ -1,5 +1,5 @@
1
1
  import { SvelteComponent } from "svelte";
2
- import type { Flight } from '../types';
2
+ import type { Flight } from '../../types';
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  open?: (options: {
@@ -1,7 +1,7 @@
1
- <script>import { loaders } from "./index";
1
+ <script>import { loader } from "./index";
2
2
  export let isShow = false;
3
3
  </script>
4
4
 
5
- <section class="indie_loader-wrapper transparent" class:on={$loaders || isShow}>
5
+ <section class="indie_loader-wrapper transparent" class:on={$loader || isShow}>
6
6
  <div class="indie_loader" />
7
7
  </section>
@@ -0,0 +1,16 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ isShow?: boolean;
5
+ };
6
+ events: {
7
+ [evt: string]: CustomEvent<any>;
8
+ };
9
+ slots: {};
10
+ };
11
+ export type LoaderProps = typeof __propDef.props;
12
+ export type LoaderEvents = typeof __propDef.events;
13
+ export type LoaderSlots = typeof __propDef.slots;
14
+ export default class Loader extends SvelteComponent<LoaderProps, LoaderEvents, LoaderSlots> {
15
+ }
16
+ export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="svelte" />
2
- export declare const loaders: {
2
+ export declare const loader: {
3
3
  subscribe: (this: void, run: import("svelte/store").Subscriber<any>, invalidate?: import("svelte/store").Invalidator<any>) => import("svelte/store").Unsubscriber;
4
4
  show: () => void;
5
5
  hide: () => void;
@@ -13,4 +13,4 @@ function createLoadersStore() {
13
13
  hide
14
14
  };
15
15
  }
16
- export const loaders = createLoadersStore();
16
+ export const loader = createLoadersStore();
@@ -1,5 +1,5 @@
1
- <script>import { alert } from "./index";
2
- import { t } from "../i18n";
1
+ <script>import { t } from "../../../../i18n";
2
+ import { alert } from "./index";
3
3
  const success = () => {
4
4
  $alert?.success();
5
5
  close();
@@ -0,0 +1,14 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: Record<string, never>;
4
+ events: {
5
+ [evt: string]: CustomEvent<any>;
6
+ };
7
+ slots: {};
8
+ };
9
+ export type AlertProps = typeof __propDef.props;
10
+ export type AlertEvents = typeof __propDef.events;
11
+ export type AlertSlots = typeof __propDef.slots;
12
+ export default class Alert extends SvelteComponent<AlertProps, AlertEvents, AlertSlots> {
13
+ }
14
+ export {};
@@ -1,4 +1,4 @@
1
- <script>import { t } from "../i18n";
1
+ <script>import { t } from "../../../../i18n";
2
2
  import { confirm } from "./index";
3
3
  const success = () => {
4
4
  $confirm?.success();
@@ -0,0 +1,14 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: Record<string, never>;
4
+ events: {
5
+ [evt: string]: CustomEvent<any>;
6
+ };
7
+ slots: {};
8
+ };
9
+ export type ConfirmProps = typeof __propDef.props;
10
+ export type ConfirmEvents = typeof __propDef.events;
11
+ export type ConfirmSlots = typeof __propDef.slots;
12
+ export default class Confirm extends SvelteComponent<ConfirmProps, ConfirmEvents, ConfirmSlots> {
13
+ }
14
+ export {};
@@ -0,0 +1,5 @@
1
+ import { alert } from './alert';
2
+ import Alert from './alert/Alert.svelte';
3
+ import { confirm } from './confirm';
4
+ import Confirm from './confirm/Confirm.svelte';
5
+ export { alert, confirm, Alert, Confirm };
@@ -0,0 +1,5 @@
1
+ import { alert } from './alert';
2
+ import Alert from './alert/Alert.svelte';
3
+ import { confirm } from './confirm';
4
+ import Confirm from './confirm/Confirm.svelte';
5
+ export { alert, confirm, Alert, Confirm };
@@ -1,9 +1,9 @@
1
- <script>import blackMarker from "../assets/icon/position_marker_black.png";
2
- import { randomize } from "../utils";
3
- import { tick } from "svelte";
4
- import { CommonAPI } from "../api/common";
5
- import { loaders } from "../loaders";
6
- import { alert } from "../alert";
1
+ <script>import { tick } from "svelte";
2
+ import blackMarker from "../../assets/icon/position_marker_black.png";
3
+ import { randomize } from "../../utils";
4
+ import { CommonAPI } from "../../api";
5
+ import { loader } from "../loader";
6
+ import { alert } from "../notifications";
7
7
  let on = false;
8
8
  let pickupPoint;
9
9
  let map;
@@ -11,14 +11,14 @@ $:
11
11
  id = `${randomize(10)}_map`;
12
12
  export async function open(ppno) {
13
13
  try {
14
- loaders.show();
14
+ loader.show();
15
15
  pickupPoint = await CommonAPI.getPickupPoint(ppno);
16
16
  on = true;
17
17
  tick().then(() => initMap());
18
18
  } catch (e) {
19
19
  alert.open({ text: e.message });
20
20
  } finally {
21
- loaders.hide();
21
+ loader.hide();
22
22
  }
23
23
  }
24
24
  function close() {
@@ -1,8 +1,8 @@
1
- <script>import { alert } from "../alert";
2
- import { CommonAPI } from "../api/common";
3
- import { t } from "../i18n";
4
- import { TranslateLanguage } from "../types";
1
+ <script>import { t } from "../../../i18n";
5
2
  import { sortBy } from "lodash-es";
3
+ import { TranslateLanguage } from "../../types";
4
+ import { CommonAPI } from "../../api";
5
+ import { alert } from "../notifications";
6
6
  let text = "";
7
7
  let on = false;
8
8
  let sourceLanguage = null;