@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.
- package/.prettierrc +12 -12
- package/.svelte-kit/__package__/axios/index.js +1 -1
- package/.svelte-kit/__package__/index.d.ts +1 -1
- package/.svelte-kit/__package__/index.js +1 -1
- package/{dist/schedule → .svelte-kit/__package__/schedule-view}/BookingInfo.svelte +11 -11
- package/{dist/schedule → .svelte-kit/__package__/schedule-view}/CarSearch.svelte +3 -3
- package/{dist/schedule → .svelte-kit/__package__/schedule-view}/CarSearch.svelte.d.ts +1 -1
- package/.svelte-kit/__package__/{schedule → schedule-view}/FileUploader.svelte +7 -8
- package/{dist/schedule → .svelte-kit/__package__/schedule-view}/FileUploader.svelte.d.ts +1 -1
- package/.svelte-kit/__package__/{components → schedule-view}/Layout.svelte +5 -6
- package/{dist/components → .svelte-kit/__package__/schedule-view}/Layout.svelte.d.ts +1 -1
- package/.svelte-kit/__package__/{schedule → schedule-view}/Map.svelte +6 -6
- package/.svelte-kit/__package__/{schedule → schedule-view}/PhoneNumberInput.svelte +3 -3
- package/{dist/schedule → .svelte-kit/__package__/schedule-view}/PlaceSearch.svelte +5 -5
- package/{dist/schedule → .svelte-kit/__package__/schedule-view}/Plan.svelte +6 -6
- package/.svelte-kit/__package__/{schedule → schedule-view}/PlanItem.svelte +3 -3
- package/.svelte-kit/__package__/{schedule → schedule-view}/PlanItem.svelte.d.ts +1 -1
- package/{dist/schedule → .svelte-kit/__package__/schedule-view}/Schedule.svelte +21 -17
- package/{dist/schedule → .svelte-kit/__package__/schedule-view}/Schedule.svelte.d.ts +5 -1
- package/{dist/schedule → .svelte-kit/__package__/schedule-view}/ServiceZone.svelte +3 -3
- package/.svelte-kit/__package__/schedule-view/Test.svelte +2 -0
- package/.svelte-kit/__package__/schedule-view/Test.svelte.d.ts +14 -0
- package/.svelte-kit/__package__/{api → schedule-view/api}/booking/index.js +2 -2
- package/.svelte-kit/__package__/{api → schedule-view/api}/common/index.js +2 -2
- package/.svelte-kit/__package__/schedule-view/api/index.d.ts +3 -0
- package/.svelte-kit/__package__/schedule-view/api/index.js +3 -0
- package/.svelte-kit/__package__/{schedule → schedule-view/components/flight-search}/FlightSearch.svelte +5 -5
- package/{dist/schedule → .svelte-kit/__package__/schedule-view/components/flight-search}/FlightSearch.svelte.d.ts +1 -1
- package/.svelte-kit/__package__/{loaders/component.svelte → schedule-view/components/loader/Loader.svelte} +2 -2
- package/.svelte-kit/__package__/schedule-view/components/loader/Loader.svelte.d.ts +16 -0
- package/{dist/loaders → .svelte-kit/__package__/schedule-view/components/loader}/index.d.ts +1 -1
- package/{dist/loaders → .svelte-kit/__package__/schedule-view/components/loader}/index.js +1 -1
- package/.svelte-kit/__package__/{alert/component.svelte → schedule-view/components/notifications/alert/Alert.svelte} +2 -2
- package/.svelte-kit/__package__/schedule-view/components/notifications/alert/Alert.svelte.d.ts +14 -0
- package/.svelte-kit/__package__/{confirm/component.svelte → schedule-view/components/notifications/confirm/Confirm.svelte} +1 -1
- package/.svelte-kit/__package__/schedule-view/components/notifications/confirm/Confirm.svelte.d.ts +14 -0
- package/.svelte-kit/__package__/schedule-view/components/notifications/index.d.ts +5 -0
- package/.svelte-kit/__package__/schedule-view/components/notifications/index.js +5 -0
- package/{dist/schedule → .svelte-kit/__package__/schedule-view/components/pickup-point-view}/PickupPointView.svelte +8 -8
- package/.svelte-kit/__package__/{schedule → schedule-view/components/translation}/Translation.svelte +4 -4
- package/.svelte-kit/__package__/{schedule → schedule-view/stores}/booking.js +7 -7
- package/.svelte-kit/__package__/schedule-view/stores/environment.d.ts +0 -0
- package/.svelte-kit/__package__/schedule-view/stores/environment.js +18 -0
- package/.svelte-kit/__package__/store/env.d.ts +1 -7
- package/.svelte-kit/__package__/store/env.js +1 -25
- package/.svelte-kit/ambient.d.ts +2 -0
- package/.svelte-kit/generated/server/internal.js +1 -1
- package/.svelte-kit/output/client/.vite/manifest.json +59 -59
- package/.svelte-kit/output/client/_app/immutable/assets/3.BdHh-Q2R.css +1 -0
- package/.svelte-kit/output/client/_app/immutable/assets/Portal.O7-JvwdH.css +1 -0
- package/.svelte-kit/output/client/_app/immutable/assets/_page.BdHh-Q2R.css +1 -0
- package/.svelte-kit/output/client/_app/immutable/assets/index.O7-JvwdH.css +1 -0
- package/.svelte-kit/output/client/_app/immutable/chunks/{entry.oR3Lp6C0.js → entry.DjKqHYSP.js} +1 -1
- package/.svelte-kit/output/client/_app/immutable/chunks/{index.eEy6OynM.js → index.BGrZCuML.js} +1 -1
- package/.svelte-kit/output/client/_app/immutable/chunks/index.FOjzEhlA.js +27 -0
- package/.svelte-kit/output/client/_app/immutable/chunks/{index.BNL5nnr5.js → index.hA7qaEVm.js} +1 -1
- package/.svelte-kit/output/client/_app/immutable/chunks/{scheduler.C-Hz7q9o.js → scheduler.CcILbENq.js} +1 -1
- package/.svelte-kit/output/client/_app/immutable/chunks/{stores.9UUzeLxO.js → stores.CZDfo8ub.js} +1 -1
- package/.svelte-kit/output/client/_app/immutable/entry/{app.CE3uvk6O.js → app.uDBBDaZr.js} +2 -2
- package/.svelte-kit/output/client/_app/immutable/entry/start.CMK9sH2f.js +1 -0
- package/.svelte-kit/output/client/_app/immutable/nodes/{0.iVXXVb5o.js → 0.CzVVhlgi.js} +1 -1
- package/.svelte-kit/output/client/_app/immutable/nodes/{1.DOIV9pgz.js → 1.B7dfh3UY.js} +1 -1
- package/.svelte-kit/output/client/_app/immutable/nodes/2.BCJwop-e.js +1 -0
- package/.svelte-kit/output/client/_app/immutable/nodes/3._ADF1RD-.js +7 -0
- package/.svelte-kit/output/client/_app/immutable/nodes/4.BhT6wP8T.js +7 -0
- package/.svelte-kit/output/client/_app/version.json +1 -1
- package/.svelte-kit/output/server/.vite/manifest.json +10 -10
- package/.svelte-kit/output/server/_app/immutable/assets/Portal.O7-JvwdH.css +1 -0
- package/.svelte-kit/output/server/_app/immutable/assets/_page.BdHh-Q2R.css +1 -0
- package/.svelte-kit/output/server/chunks/{Toaster.js → Portal.js} +916 -916
- package/.svelte-kit/output/server/chunks/internal.js +1 -1
- package/.svelte-kit/output/server/entries/pages/development/_page.svelte.js +226 -237
- package/.svelte-kit/output/server/entries/pages/package/_page.svelte.js +208 -233
- package/.svelte-kit/output/server/manifest-full.js +1 -1
- package/.svelte-kit/output/server/manifest.js +1 -1
- package/.svelte-kit/output/server/nodes/0.js +1 -1
- package/.svelte-kit/output/server/nodes/1.js +1 -1
- package/.svelte-kit/output/server/nodes/2.js +1 -1
- package/.svelte-kit/output/server/nodes/3.js +2 -2
- package/.svelte-kit/output/server/nodes/4.js +2 -2
- package/.svelte-kit/tsconfig.json +6 -0
- package/dist/axios/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/{.svelte-kit/__package__/schedule → dist/schedule-view}/BookingInfo.svelte +11 -11
- package/{.svelte-kit/__package__/schedule → dist/schedule-view}/CarSearch.svelte +3 -3
- package/{.svelte-kit/__package__/schedule → dist/schedule-view}/CarSearch.svelte.d.ts +1 -1
- package/dist/{schedule → schedule-view}/FileUploader.svelte +7 -8
- package/{.svelte-kit/__package__/schedule → dist/schedule-view}/FileUploader.svelte.d.ts +1 -1
- package/dist/{components → schedule-view}/Layout.svelte +5 -6
- package/{.svelte-kit/__package__/components → dist/schedule-view}/Layout.svelte.d.ts +1 -1
- package/dist/{schedule → schedule-view}/Map.svelte +6 -6
- package/dist/{schedule → schedule-view}/PhoneNumberInput.svelte +3 -3
- package/{.svelte-kit/__package__/schedule → dist/schedule-view}/PlaceSearch.svelte +5 -5
- package/{.svelte-kit/__package__/schedule → dist/schedule-view}/Plan.svelte +6 -6
- package/dist/{schedule → schedule-view}/PlanItem.svelte +3 -3
- package/dist/{schedule → schedule-view}/PlanItem.svelte.d.ts +1 -1
- package/{.svelte-kit/__package__/schedule → dist/schedule-view}/Schedule.svelte +21 -17
- package/{.svelte-kit/__package__/schedule → dist/schedule-view}/Schedule.svelte.d.ts +5 -1
- package/{.svelte-kit/__package__/schedule → dist/schedule-view}/ServiceZone.svelte +3 -3
- package/dist/schedule-view/Test.svelte +2 -0
- package/dist/schedule-view/Test.svelte.d.ts +14 -0
- package/dist/{api → schedule-view/api}/booking/index.js +2 -2
- package/dist/{api → schedule-view/api}/common/index.js +2 -2
- package/dist/schedule-view/api/index.d.ts +3 -0
- package/dist/schedule-view/api/index.js +3 -0
- package/dist/{schedule → schedule-view/components/flight-search}/FlightSearch.svelte +5 -5
- package/{.svelte-kit/__package__/schedule → dist/schedule-view/components/flight-search}/FlightSearch.svelte.d.ts +1 -1
- package/dist/{loaders/component.svelte → schedule-view/components/loader/Loader.svelte} +2 -2
- package/dist/schedule-view/components/loader/Loader.svelte.d.ts +16 -0
- package/{.svelte-kit/__package__/loaders → dist/schedule-view/components/loader}/index.d.ts +1 -1
- package/{.svelte-kit/__package__/loaders → dist/schedule-view/components/loader}/index.js +1 -1
- package/dist/{alert/component.svelte → schedule-view/components/notifications/alert/Alert.svelte} +2 -2
- package/dist/schedule-view/components/notifications/alert/Alert.svelte.d.ts +14 -0
- package/dist/{confirm/component.svelte → schedule-view/components/notifications/confirm/Confirm.svelte} +1 -1
- package/dist/schedule-view/components/notifications/confirm/Confirm.svelte.d.ts +14 -0
- package/dist/schedule-view/components/notifications/index.d.ts +5 -0
- package/dist/schedule-view/components/notifications/index.js +5 -0
- package/{.svelte-kit/__package__/schedule → dist/schedule-view/components/pickup-point-view}/PickupPointView.svelte +8 -8
- package/dist/{schedule → schedule-view/components/translation}/Translation.svelte +4 -4
- package/dist/{schedule → schedule-view/stores}/booking.js +7 -7
- package/dist/schedule-view/stores/environment.d.ts +0 -0
- package/dist/schedule-view/stores/environment.js +18 -0
- package/dist/store/env.d.ts +1 -7
- package/dist/store/env.js +1 -25
- package/package.json +2 -1
- package/src/lib/axios/index.ts +1 -1
- package/src/lib/index.ts +1 -1
- package/src/lib/{schedule → schedule-view}/BookingInfo.svelte +16 -13
- package/src/lib/{schedule → schedule-view}/CarSearch.svelte +5 -3
- package/src/lib/{schedule → schedule-view}/FileUploader.svelte +11 -8
- package/src/lib/{components → schedule-view}/Layout.svelte +9 -6
- package/src/lib/{schedule → schedule-view}/Map.svelte +10 -7
- package/src/lib/{schedule → schedule-view}/PhoneNumberInput.svelte +4 -2
- package/src/lib/{schedule → schedule-view}/PlaceSearch.svelte +5 -5
- package/src/lib/{schedule → schedule-view}/Plan.svelte +8 -5
- package/src/lib/{schedule → schedule-view}/PlanItem.svelte +6 -5
- package/src/lib/{schedule → schedule-view}/Schedule.svelte +41 -21
- package/src/lib/{schedule → schedule-view}/ServiceZone.svelte +6 -4
- package/src/lib/schedule-view/Test.svelte +3 -0
- package/src/lib/{api → schedule-view/api}/booking/dto.ts +1 -1
- package/src/lib/{api → schedule-view/api}/booking/index.ts +1 -1
- package/src/lib/{api → schedule-view/api}/common/dto.ts +1 -1
- package/src/lib/{api → schedule-view/api}/common/index.ts +1 -1
- package/src/lib/schedule-view/api/index.ts +4 -0
- package/src/lib/{schedule → schedule-view/components/flight-search}/FlightSearch.svelte +8 -5
- package/src/lib/{loaders/component.svelte → schedule-view/components/loader/Loader.svelte} +2 -2
- package/src/lib/{loaders → schedule-view/components/loader}/index.ts +1 -1
- package/src/lib/{confirm/component.svelte → schedule-view/components/notifications/confirm/Confirm.svelte} +1 -1
- package/src/lib/schedule-view/components/notifications/index.ts +6 -0
- package/src/lib/{schedule → schedule-view/components/pickup-point-view}/PickupPointView.svelte +9 -7
- package/src/lib/{schedule → schedule-view/components/translation}/Translation.svelte +5 -3
- package/src/lib/{schedule → schedule-view/stores}/booking.ts +9 -7
- package/src/lib/schedule-view/stores/environment.ts +23 -0
- package/src/lib/store/env.ts +2 -23
- package/src/routes/development/+page.svelte +36 -59
- package/src/routes/package/+page.svelte +3 -3
- package/svelte.config.js +8 -5
- package/yarn.lock +215 -2
- package/.svelte-kit/__package__/alert/component.svelte.d.ts +0 -14
- package/.svelte-kit/__package__/confirm/component.svelte.d.ts +0 -14
- package/.svelte-kit/__package__/loaders/component.svelte.d.ts +0 -16
- package/.svelte-kit/output/client/_app/immutable/assets/3.CS00v9nd.css +0 -1
- package/.svelte-kit/output/client/_app/immutable/assets/Toaster.CLpmFrbv.css +0 -1
- package/.svelte-kit/output/client/_app/immutable/assets/_page.CS00v9nd.css +0 -1
- package/.svelte-kit/output/client/_app/immutable/chunks/Toaster.D4fsqLWn.js +0 -27
- package/.svelte-kit/output/client/_app/immutable/entry/start.DIZTVMhk.js +0 -1
- package/.svelte-kit/output/client/_app/immutable/nodes/2.BYyVAaql.js +0 -1
- package/.svelte-kit/output/client/_app/immutable/nodes/3.CPWaz4ng.js +0 -7
- package/.svelte-kit/output/client/_app/immutable/nodes/4.DhKR0smz.js +0 -7
- package/.svelte-kit/output/server/_app/immutable/assets/Toaster.CLpmFrbv.css +0 -1
- package/.svelte-kit/output/server/_app/immutable/assets/_page.CS00v9nd.css +0 -1
- package/dist/alert/component.svelte.d.ts +0 -14
- package/dist/confirm/component.svelte.d.ts +0 -14
- package/dist/loaders/component.svelte.d.ts +0 -16
- package/.svelte-kit/__package__/{constant/index.d.ts → axios/constant.d.ts} +0 -0
- package/.svelte-kit/__package__/{constant/index.js → axios/constant.js} +0 -0
- package/.svelte-kit/__package__/{components → schedule-view}/BaseSearchInput.svelte +0 -0
- package/.svelte-kit/__package__/{components → schedule-view}/BaseSearchInput.svelte.d.ts +0 -0
- package/.svelte-kit/__package__/{schedule → schedule-view}/BookingInfo.svelte.d.ts +0 -0
- package/.svelte-kit/__package__/{schedule → schedule-view}/Map.svelte.d.ts +0 -0
- package/.svelte-kit/__package__/{schedule → schedule-view}/PhoneNumberInput.svelte.d.ts +0 -0
- package/.svelte-kit/__package__/{schedule → schedule-view}/PlaceSearch.svelte.d.ts +0 -0
- package/.svelte-kit/__package__/{schedule → schedule-view}/Plan.svelte.d.ts +0 -0
- package/.svelte-kit/__package__/{schedule → schedule-view}/ServiceZone.svelte.d.ts +0 -0
- package/.svelte-kit/__package__/{schedule → schedule-view}/ServiceZoneItem.svelte +0 -0
- package/.svelte-kit/__package__/{schedule → schedule-view}/ServiceZoneItem.svelte.d.ts +0 -0
- package/.svelte-kit/__package__/{api → schedule-view/api}/booking/dto.d.ts +0 -0
- package/.svelte-kit/__package__/{api → schedule-view/api}/booking/dto.js +0 -0
- package/.svelte-kit/__package__/{api → schedule-view/api}/booking/index.d.ts +0 -0
- package/.svelte-kit/__package__/{api → schedule-view/api}/common/dto.d.ts +0 -0
- package/.svelte-kit/__package__/{api → schedule-view/api}/common/dto.js +0 -0
- package/.svelte-kit/__package__/{api → schedule-view/api}/common/index.d.ts +0 -0
- package/.svelte-kit/__package__/{assets → schedule-view/assets}/icon/dest.png +0 -0
- package/.svelte-kit/__package__/{assets → schedule-view/assets}/icon/place.png +0 -0
- package/.svelte-kit/__package__/{assets → schedule-view/assets}/icon/position_marker_black.png +0 -0
- package/.svelte-kit/__package__/{assets → schedule-view/assets}/icon/start.png +0 -0
- package/.svelte-kit/__package__/{assets → schedule-view/assets}/icon/transparent.png +0 -0
- package/.svelte-kit/__package__/{assets → schedule-view/assets}/scss/indie_booking.scss +0 -0
- package/.svelte-kit/__package__/{alert → schedule-view/components/notifications/alert}/index.d.ts +0 -0
- package/.svelte-kit/__package__/{alert → schedule-view/components/notifications/alert}/index.js +0 -0
- package/.svelte-kit/__package__/{alert → schedule-view/components/notifications/alert}/types.d.ts +0 -0
- package/.svelte-kit/__package__/{alert → schedule-view/components/notifications/alert}/types.js +0 -0
- package/.svelte-kit/__package__/{confirm → schedule-view/components/notifications/confirm}/index.d.ts +0 -0
- package/.svelte-kit/__package__/{confirm → schedule-view/components/notifications/confirm}/index.js +0 -0
- package/.svelte-kit/__package__/{confirm → schedule-view/components/notifications/confirm}/types.d.ts +0 -0
- package/.svelte-kit/__package__/{confirm → schedule-view/components/notifications/confirm}/types.js +0 -0
- package/.svelte-kit/__package__/{schedule → schedule-view/components/pickup-point-view}/PickupPointView.svelte.d.ts +0 -0
- package/.svelte-kit/__package__/{schedule → schedule-view/components/translation}/Translation.svelte.d.ts +0 -0
- package/.svelte-kit/__package__/{contents → schedule-view/contents}/telCodes.json +0 -0
- package/.svelte-kit/__package__/{schedule → schedule-view/stores}/booking.d.ts +0 -0
- package/.svelte-kit/__package__/{types → schedule-view/types}/booking.d.ts +0 -0
- package/.svelte-kit/__package__/{types → schedule-view/types}/booking.js +0 -0
- package/.svelte-kit/__package__/{types → schedule-view/types}/common.d.ts +0 -0
- package/.svelte-kit/__package__/{types → schedule-view/types}/common.js +0 -0
- package/.svelte-kit/__package__/{types → schedule-view/types}/file.d.ts +0 -0
- package/.svelte-kit/__package__/{types → schedule-view/types}/file.js +0 -0
- package/.svelte-kit/__package__/{types → schedule-view/types}/flight.d.ts +0 -0
- package/.svelte-kit/__package__/{types → schedule-view/types}/flight.js +0 -0
- package/.svelte-kit/__package__/{types → schedule-view/types}/index.d.ts +0 -0
- package/.svelte-kit/__package__/{types → schedule-view/types}/index.js +0 -0
- package/.svelte-kit/__package__/{types → schedule-view/types}/price.d.ts +0 -0
- package/.svelte-kit/__package__/{types → schedule-view/types}/price.js +0 -0
- package/.svelte-kit/__package__/{utils → schedule-view/utils}/index.d.ts +0 -0
- package/.svelte-kit/__package__/{utils → schedule-view/utils}/index.js +0 -0
- package/dist/{constant/index.d.ts → axios/constant.d.ts} +0 -0
- package/dist/{constant/index.js → axios/constant.js} +0 -0
- package/dist/{components → schedule-view}/BaseSearchInput.svelte +0 -0
- package/dist/{components → schedule-view}/BaseSearchInput.svelte.d.ts +0 -0
- package/dist/{schedule → schedule-view}/BookingInfo.svelte.d.ts +0 -0
- package/dist/{schedule → schedule-view}/Map.svelte.d.ts +0 -0
- package/dist/{schedule → schedule-view}/PhoneNumberInput.svelte.d.ts +0 -0
- package/dist/{schedule → schedule-view}/PlaceSearch.svelte.d.ts +0 -0
- package/dist/{schedule → schedule-view}/Plan.svelte.d.ts +0 -0
- package/dist/{schedule → schedule-view}/ServiceZone.svelte.d.ts +0 -0
- package/dist/{schedule → schedule-view}/ServiceZoneItem.svelte +0 -0
- package/dist/{schedule → schedule-view}/ServiceZoneItem.svelte.d.ts +0 -0
- package/dist/{api → schedule-view/api}/booking/dto.d.ts +0 -0
- package/dist/{api → schedule-view/api}/booking/dto.js +0 -0
- package/dist/{api → schedule-view/api}/booking/index.d.ts +0 -0
- package/dist/{api → schedule-view/api}/common/dto.d.ts +0 -0
- package/dist/{api → schedule-view/api}/common/dto.js +0 -0
- package/dist/{api → schedule-view/api}/common/index.d.ts +0 -0
- package/dist/{assets → schedule-view/assets}/icon/dest.png +0 -0
- package/dist/{assets → schedule-view/assets}/icon/place.png +0 -0
- package/dist/{assets → schedule-view/assets}/icon/position_marker_black.png +0 -0
- package/dist/{assets → schedule-view/assets}/icon/start.png +0 -0
- package/dist/{assets → schedule-view/assets}/icon/transparent.png +0 -0
- package/dist/{assets → schedule-view/assets}/scss/indie_booking.scss +0 -0
- package/dist/{alert → schedule-view/components/notifications/alert}/index.d.ts +0 -0
- package/dist/{alert → schedule-view/components/notifications/alert}/index.js +0 -0
- package/dist/{alert → schedule-view/components/notifications/alert}/types.d.ts +0 -0
- package/dist/{alert → schedule-view/components/notifications/alert}/types.js +0 -0
- package/dist/{confirm → schedule-view/components/notifications/confirm}/index.d.ts +0 -0
- package/dist/{confirm → schedule-view/components/notifications/confirm}/index.js +0 -0
- package/dist/{confirm → schedule-view/components/notifications/confirm}/types.d.ts +0 -0
- package/dist/{confirm → schedule-view/components/notifications/confirm}/types.js +0 -0
- package/dist/{schedule → schedule-view/components/pickup-point-view}/PickupPointView.svelte.d.ts +0 -0
- package/dist/{schedule → schedule-view/components/translation}/Translation.svelte.d.ts +0 -0
- package/dist/{contents → schedule-view/contents}/telCodes.json +0 -0
- package/dist/{schedule → schedule-view/stores}/booking.d.ts +0 -0
- package/dist/{types → schedule-view/types}/booking.d.ts +0 -0
- package/dist/{types → schedule-view/types}/booking.js +0 -0
- package/dist/{types → schedule-view/types}/common.d.ts +0 -0
- package/dist/{types → schedule-view/types}/common.js +0 -0
- package/dist/{types → schedule-view/types}/file.d.ts +0 -0
- package/dist/{types → schedule-view/types}/file.js +0 -0
- package/dist/{types → schedule-view/types}/flight.d.ts +0 -0
- package/dist/{types → schedule-view/types}/flight.js +0 -0
- package/dist/{types → schedule-view/types}/index.d.ts +0 -0
- package/dist/{types → schedule-view/types}/index.js +0 -0
- package/dist/{types → schedule-view/types}/price.d.ts +0 -0
- package/dist/{types → schedule-view/types}/price.js +0 -0
- package/dist/{utils → schedule-view/utils}/index.d.ts +0 -0
- package/dist/{utils → schedule-view/utils}/index.js +0 -0
- package/src/lib/{constant/index.ts → axios/constant.ts} +0 -0
- package/src/lib/{components → schedule-view}/BaseSearchInput.svelte +0 -0
- package/src/lib/{schedule → schedule-view}/ServiceZoneItem.svelte +0 -0
- package/src/lib/{assets → schedule-view/assets}/icon/dest.png +0 -0
- package/src/lib/{assets → schedule-view/assets}/icon/place.png +0 -0
- package/src/lib/{assets → schedule-view/assets}/icon/position_marker_black.png +0 -0
- package/src/lib/{assets → schedule-view/assets}/icon/start.png +0 -0
- package/src/lib/{assets → schedule-view/assets}/icon/transparent.png +0 -0
- package/src/lib/{assets → schedule-view/assets}/scss/indie_booking.scss +0 -0
- package/src/lib/{alert/component.svelte → schedule-view/components/notifications/alert/Alert.svelte} +1 -1
- /package/src/lib/{alert → schedule-view/components/notifications/alert}/index.ts +0 -0
- /package/src/lib/{alert → schedule-view/components/notifications/alert}/types.ts +0 -0
- /package/src/lib/{confirm → schedule-view/components/notifications/confirm}/index.ts +0 -0
- /package/src/lib/{confirm → schedule-view/components/notifications/confirm}/types.ts +0 -0
- /package/src/lib/{contents → schedule-view/contents}/telCodes.json +0 -0
- /package/src/lib/{types → schedule-view/types}/booking.ts +0 -0
- /package/src/lib/{types → schedule-view/types}/common.ts +0 -0
- /package/src/lib/{types → schedule-view/types}/file.ts +0 -0
- /package/src/lib/{types → schedule-view/types}/flight.ts +0 -0
- /package/src/lib/{types → schedule-view/types}/index.ts +0 -0
- /package/src/lib/{types → schedule-view/types}/price.ts +0 -0
- /package/src/lib/{utils → schedule-view/utils}/index.ts +0 -0
package/.prettierrc
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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,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 {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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 {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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,10 +1,9 @@
|
|
|
1
|
-
<script>import {
|
|
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
|
-
|
|
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
|
-
|
|
40
|
+
loader.hide();
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
43
|
function success(files2) {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
<script context="module"></script>
|
|
2
2
|
|
|
3
|
-
<script>import "
|
|
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
|
|
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,11 +1,11 @@
|
|
|
1
|
-
<script>import {
|
|
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 {
|
|
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 "
|
|
2
|
-
import {
|
|
3
|
-
import BaseSearchInput, {} from "
|
|
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
|
-
|
|
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
|
-
|
|
22
|
+
loader.hide();
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
</script>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<script>import
|
|
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
|
|
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,23 +1,23 @@
|
|
|
1
1
|
<script context="module">export const isEdit = writable(false);
|
|
2
2
|
</script>
|
|
3
3
|
|
|
4
|
-
<script>import {
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
60
|
+
loader.hide();
|
|
61
61
|
}
|
|
62
62
|
resolver = resolve;
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
export function isOpened() {
|
|
66
|
+
return on;
|
|
67
|
+
}
|
|
68
|
+
export function close() {
|
|
66
69
|
on = false;
|
|
67
|
-
resolver
|
|
70
|
+
if (resolver)
|
|
71
|
+
resolver("USER_CLOSE");
|
|
68
72
|
}
|
|
69
73
|
async function edit() {
|
|
70
74
|
try {
|
|
71
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 '
|
|
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 "
|
|
3
|
-
import {
|
|
2
|
+
import { BookingServiceType } from "./types";
|
|
3
|
+
import { copiedBooking, originalBooking } from "./stores/booking";
|
|
4
4
|
import ServiceZoneItem from "./ServiceZoneItem.svelte";
|
|
5
|
-
import {
|
|
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,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 '
|
|
1
|
+
import { axios } from '../../../axios';
|
|
2
2
|
import QS from 'qs';
|
|
3
3
|
import { get } from 'svelte/store';
|
|
4
|
-
import { env } from '
|
|
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 '
|
|
1
|
+
import { axios } from '../../../axios';
|
|
2
2
|
import { get } from 'svelte/store';
|
|
3
|
-
import { env } from '
|
|
3
|
+
import { env } from '../../../store/env';
|
|
4
4
|
export class CommonAPI {
|
|
5
5
|
static async getPickupPoint(ppno) {
|
|
6
6
|
const { target } = get(env);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<script>import
|
|
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 "
|
|
6
|
-
import {
|
|
7
|
-
import { BookingAPI } from "
|
|
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,7 +1,7 @@
|
|
|
1
|
-
<script>import {
|
|
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={$
|
|
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
|
|
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;
|
package/.svelte-kit/__package__/schedule-view/components/notifications/alert/Alert.svelte.d.ts
ADDED
|
@@ -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 {};
|
package/.svelte-kit/__package__/schedule-view/components/notifications/confirm/Confirm.svelte.d.ts
ADDED
|
@@ -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 {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<script>import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { CommonAPI } from "
|
|
5
|
-
import {
|
|
6
|
-
import { alert } from "../
|
|
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
|
-
|
|
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
|
-
|
|
21
|
+
loader.hide();
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
function close() {
|
package/.svelte-kit/__package__/{schedule → schedule-view/components/translation}/Translation.svelte
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<script>import {
|
|
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;
|