accomadesc 0.1.3 → 0.1.5
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.d.ts +1 -1
- package/dist/types.d.ts +18 -3
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,6 @@ import Section from './Section.svelte';
|
|
|
23
23
|
import Text from './Text.svelte';
|
|
24
24
|
import Weather from './Weather.svelte';
|
|
25
25
|
import Page from './Page.svelte';
|
|
26
|
-
export type { GridPhoto, LeafletMap as LeafletMapI, LeafletMapContent, Calendar as CalendarI, CalendarContent, CalendarAvailable as CalendarAvailableI, CalendarAvailableContent, CalendarGrid as CalendarGridI, CalendarGridContent, CalendarRows as CalendarRowsI, CalendarRowsContent, Text as TextI, TextContent, Weather as WeatherI, WeatherContent, Photo as PhotoI, PhotoContent, PhotoGallery as PhotoGalleryI, PhotoGalleryContent, Pricing as PricingI, PricingContent, PricingShort as PricingShortI, PricingShortContent, PricingEntry, PricingRange, PricingColumn, StaticRangeDate, StaticPricingRange, AmenitiesCore as AmenitiesCoreI, AmenitiesCoreContent, AccoCard as AccoCardI, AccoCardContent, ContactForm as ContactFormI, ContactFormContent, BookingRequest as BookingRequestI, BookingRequestContent, CardContent, AccoDescription as AccoDescriptionI, AccoDescriptionContent, Section as SectionI, I18nFacade, Block, Page as PageI, } from './types.js';
|
|
26
|
+
export type { GridPhoto, LeafletMap as LeafletMapI, LeafletMapContent, Calendar as CalendarI, CalendarContent, CalendarAvailable as CalendarAvailableI, CalendarAvailableContent, CalendarGrid as CalendarGridI, CalendarGridContent, CalendarRows as CalendarRowsI, CalendarRowsContent, Text as TextI, TextContent, Weather as WeatherI, WeatherContent, Photo as PhotoI, PhotoContent, PhotoGallery as PhotoGalleryI, PhotoGalleryContent, Pricing as PricingI, PricingContent, PricingShort as PricingShortI, PricingShortContent, PricingEntry, PricingRange, PricingColumn, StaticRangeDate, StaticPricingRange, AmenitiesCore as AmenitiesCoreI, AmenitiesCoreContent, AccoCard as AccoCardI, AccoCardContent, ContactForm as ContactFormI, ContactFormContent, BookingRequest as BookingRequestI, BookingRequestContent, CardContent, AccoDescription as AccoDescriptionI, AccoDescriptionContent, Section as SectionI, I18nFacade, Block, Page as PageI, Nav as NavI, } from './types.js';
|
|
27
27
|
export { PRICING_COLUMNS, isAccoCard, isText, isPhoto, isGallery, isLeafletMap, isWeather, isAmenitiesCore, isCalendarAvailable, isCalendar, isCalendarGrid, isCalendarRows, isPricing, isPricingShort, isAccoDescription, isBookingRequest, isContactForm, } from './types.js';
|
|
28
28
|
export { randomID, randomName, Avatar, Button, Icon, Spinner, TextInput, AccoCard, AccoDescription, AmenitiesCore, Calendar, CalendarAvailable, LeafletMap, Photo, PhotoGallery, Pricing, PricingShort, Section, Text, Weather, BookingRequest, ContactForm, CalendarRows, CalendarGrid, Notes, Page, };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import { type Dinero, type DineroSnapshot } from 'dinero.js';
|
|
2
|
-
import type { DateTime } from 'luxon';
|
|
3
|
-
import type { I18n } from 'occuplan';
|
|
4
2
|
import type { FirstMonth } from './occuplan/state.svelte.ts';
|
|
3
|
+
import type { DateTime, MonthNumbers, WeekdayNumbers } from 'luxon';
|
|
4
|
+
export type WeekdayLabels = {
|
|
5
|
+
[key in WeekdayNumbers]: string;
|
|
6
|
+
};
|
|
7
|
+
export type MonthLabels = {
|
|
8
|
+
[key in MonthNumbers]: string;
|
|
9
|
+
};
|
|
10
|
+
export interface OccuplanTranslation {
|
|
11
|
+
weekendLabel?: string;
|
|
12
|
+
weekdayLabels?: WeekdayLabels;
|
|
13
|
+
monthLabels?: MonthLabels;
|
|
14
|
+
monthHeaderFormat?: string;
|
|
15
|
+
typeNames?: {
|
|
16
|
+
defaultOccupationTypeName: string;
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
5
20
|
export interface GridPhoto {
|
|
6
21
|
photo: Photo;
|
|
7
22
|
zoomed: boolean;
|
|
@@ -313,7 +328,7 @@ export interface Section {
|
|
|
313
328
|
export interface I18nFacade {
|
|
314
329
|
currentLang?: string;
|
|
315
330
|
supportedLangs?: string[];
|
|
316
|
-
calendarTranslation?:
|
|
331
|
+
calendarTranslation?: OccuplanTranslation;
|
|
317
332
|
translateFunc?: (ref: string) => string;
|
|
318
333
|
formatFunc?: (formatter: string, props: Record<string, any>) => string;
|
|
319
334
|
formatMoneyFunc?: (d: Dinero<number> | DineroSnapshot<number>) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "accomadesc",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "vite build && npm run package",
|
|
@@ -59,7 +59,6 @@
|
|
|
59
59
|
"dinero.js": "2.0.0-alpha.14",
|
|
60
60
|
"leaflet": "^1.9.4",
|
|
61
61
|
"luxon": "^3.5.0",
|
|
62
|
-
"occuplan": "^0.3.17",
|
|
63
62
|
"squirrelly": "^9.1.0"
|
|
64
63
|
}
|
|
65
64
|
}
|