@nanas-home/hub-common 0.35.782 → 0.36.844
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/chunk/{MDKLAW43.js → T65WNCAX.js} +50 -18
- package/dist/node-utils/index.d.ts +2 -2
- package/dist/node-utils/index.js +2 -2
- package/dist/{textValidation-C9qNxxFi.d.ts → textValidation-CgQNvQsc.d.ts} +49 -25
- package/dist/web/index.d.ts +3 -2
- package/dist/web/index.js +5 -4
- package/dist/web/index.jsx +49 -12
- package/package.json +17 -17
|
@@ -23,6 +23,24 @@ var webAppTypes = [
|
|
|
23
23
|
];
|
|
24
24
|
var isWebApp = (appType) => webAppTypes.includes(appType);
|
|
25
25
|
|
|
26
|
+
// src/contracts/generated/enum/bookingStatus.ts
|
|
27
|
+
var BookingStatusType = /* @__PURE__ */ ((BookingStatusType2) => {
|
|
28
|
+
BookingStatusType2[BookingStatusType2["Pending"] = 0] = "Pending";
|
|
29
|
+
BookingStatusType2[BookingStatusType2["Cancelled"] = 1] = "Cancelled";
|
|
30
|
+
BookingStatusType2[BookingStatusType2["IntakeCall"] = 2] = "IntakeCall";
|
|
31
|
+
BookingStatusType2[BookingStatusType2["RequestMatchFee"] = 3] = "RequestMatchFee";
|
|
32
|
+
BookingStatusType2[BookingStatusType2["FindPlacement"] = 4] = "FindPlacement";
|
|
33
|
+
BookingStatusType2[BookingStatusType2["Matched"] = 5] = "Matched";
|
|
34
|
+
BookingStatusType2[BookingStatusType2["MeetAndGreet"] = 6] = "MeetAndGreet";
|
|
35
|
+
BookingStatusType2[BookingStatusType2["RequestPayment"] = 7] = "RequestPayment";
|
|
36
|
+
BookingStatusType2[BookingStatusType2["PaymentRequested"] = 8] = "PaymentRequested";
|
|
37
|
+
BookingStatusType2[BookingStatusType2["Paid"] = 9] = "Paid";
|
|
38
|
+
BookingStatusType2[BookingStatusType2["WaitList"] = 10] = "WaitList";
|
|
39
|
+
BookingStatusType2[BookingStatusType2["Complete"] = 11] = "Complete";
|
|
40
|
+
BookingStatusType2[BookingStatusType2["CompleteWithHostFeedback"] = 12] = "CompleteWithHostFeedback";
|
|
41
|
+
return BookingStatusType2;
|
|
42
|
+
})(BookingStatusType || {});
|
|
43
|
+
|
|
26
44
|
// src/constants/calendar.constants.ts
|
|
27
45
|
var weekdayTranslationKeyOrder = [
|
|
28
46
|
"sun",
|
|
@@ -47,6 +65,21 @@ var monthTranslationKeyOrder = [
|
|
|
47
65
|
"nov",
|
|
48
66
|
"dec"
|
|
49
67
|
];
|
|
68
|
+
var bookingColourLookup = {
|
|
69
|
+
[0 /* Pending */]: "#D50000",
|
|
70
|
+
[2 /* IntakeCall */]: "#D50000",
|
|
71
|
+
[3 /* RequestMatchFee */]: "#F4511E",
|
|
72
|
+
[4 /* FindPlacement */]: "#7986CB",
|
|
73
|
+
[5 /* Matched */]: "#E67C73",
|
|
74
|
+
[6 /* MeetAndGreet */]: "#F6BF26",
|
|
75
|
+
[7 /* RequestPayment */]: "#F4511E",
|
|
76
|
+
[8 /* PaymentRequested */]: "#33B679",
|
|
77
|
+
[9 /* Paid */]: "#0B8043",
|
|
78
|
+
[1 /* Cancelled */]: "#616161",
|
|
79
|
+
[10 /* WaitList */]: "#039BE5",
|
|
80
|
+
[11 /* Complete */]: "#0B8043",
|
|
81
|
+
[12 /* CompleteWithHostFeedback */]: "#0B8043"
|
|
82
|
+
};
|
|
50
83
|
|
|
51
84
|
// src/constants/font.ts
|
|
52
85
|
var nanasFonts = {
|
|
@@ -282,18 +315,6 @@ var BookingAddonType = /* @__PURE__ */ ((BookingAddonType2) => {
|
|
|
282
315
|
return BookingAddonType2;
|
|
283
316
|
})(BookingAddonType || {});
|
|
284
317
|
|
|
285
|
-
// src/contracts/generated/enum/bookingStatus.ts
|
|
286
|
-
var BookingStatusType = /* @__PURE__ */ ((BookingStatusType2) => {
|
|
287
|
-
BookingStatusType2[BookingStatusType2["Pending"] = 0] = "Pending";
|
|
288
|
-
BookingStatusType2[BookingStatusType2["Cancelled"] = 1] = "Cancelled";
|
|
289
|
-
BookingStatusType2[BookingStatusType2["FindPlacement"] = 2] = "FindPlacement";
|
|
290
|
-
BookingStatusType2[BookingStatusType2["Request"] = 3] = "Request";
|
|
291
|
-
BookingStatusType2[BookingStatusType2["PaidWithHostMatch"] = 4] = "PaidWithHostMatch";
|
|
292
|
-
BookingStatusType2[BookingStatusType2["Complete"] = 5] = "Complete";
|
|
293
|
-
BookingStatusType2[BookingStatusType2["CompleteWithHostFeedback"] = 6] = "CompleteWithHostFeedback";
|
|
294
|
-
return BookingStatusType2;
|
|
295
|
-
})(BookingStatusType || {});
|
|
296
|
-
|
|
297
318
|
// src/contracts/generated/enum/commentLinkType.ts
|
|
298
319
|
var CommentLinkType = /* @__PURE__ */ ((CommentLinkType2) => {
|
|
299
320
|
CommentLinkType2[CommentLinkType2["Unknown"] = 0] = "Unknown";
|
|
@@ -571,13 +592,13 @@ var UserRestriction = {
|
|
|
571
592
|
|
|
572
593
|
// src/contracts/generated/searchColumns.ts
|
|
573
594
|
var searchColumns = {
|
|
574
|
-
membership: [{ "property": "monthlyFee", "type": 2 }, { "property": "perNightStay", "type": 2 }, { "property": "additionalPetPerNightStay", "type": 2 }, { "property": "transportFee", "type": 2 }, { "property": "perKm", "type": 2 }, { "property": "matchFee", "type": 2 }, { "property": "freeCancellationWithinDays", "type": 2 }, { "property": "bookingAdvanceDays", "type": 2 }, { "property": "bookingCalenderMonthsOpenInAdvance", "type": 2 }, { "property": "seasonalDiscounts", "type": 2 }],
|
|
575
595
|
address: [{ "property": "name", "type": 2 }, { "property": "street", "type": 2 }, { "property": "city", "type": 2 }, { "property": "postalCode", "type": 2 }, { "property": "country", "type": 2 }],
|
|
596
|
+
booking: [{ "property": "startDate", "type": 5 }, { "property": "endDate", "type": 5 }, { "property": "status", "type": 2 }, { "property": "notes", "type": 2 }],
|
|
597
|
+
membership: [{ "property": "monthlyFee", "type": 2 }, { "property": "perNightStay", "type": 2 }, { "property": "additionalPetPerNightStay", "type": 2 }, { "property": "transportFee", "type": 2 }, { "property": "perKm", "type": 2 }, { "property": "matchFee", "type": 2 }, { "property": "freeCancellationWithinDays", "type": 2 }, { "property": "bookingAdvanceDays", "type": 2 }, { "property": "bookingCalenderMonthsOpenInAdvance", "type": 2 }, { "property": "seasonalDiscounts", "type": 2 }],
|
|
576
598
|
pet: [{ "property": "type", "type": 1 }, { "property": "sex", "type": 2 }, { "property": "breed", "type": 2 }, { "property": "neutered", "type": 2 }, { "property": "name", "type": 2 }, { "property": "notes", "type": 2 }, { "property": "dateOfBirth", "type": 5 }],
|
|
577
|
-
|
|
599
|
+
question: [{ "property": "forTypes", "type": 1 }, { "property": "transKey", "type": 2 }, { "property": "fallback", "type": 2 }, { "property": "category", "type": 2 }, { "property": "type", "type": 0 }, { "property": "sortOrder", "type": 3 }, { "property": "visible", "type": 4 }, { "property": "notes", "type": 2 }],
|
|
578
600
|
upload: [{ "property": "linkUuid", "type": 2 }, { "property": "linkType", "type": 2 }, { "property": "type", "type": 2 }, { "property": "fileName", "type": 2 }, { "property": "blobType", "type": 2 }, { "property": "sizeInKb", "type": 2 }, { "property": "dateCreated", "type": 5 }],
|
|
579
|
-
|
|
580
|
-
question: [{ "property": "forTypes", "type": 1 }, { "property": "transKey", "type": 2 }, { "property": "fallback", "type": 2 }, { "property": "category", "type": 2 }, { "property": "type", "type": 0 }, { "property": "sortOrder", "type": 3 }, { "property": "visible", "type": 4 }, { "property": "notes", "type": 2 }]
|
|
601
|
+
user: [{ "property": "types", "type": 1 }, { "property": "firstName", "type": 2 }, { "property": "lastName", "type": 2 }, { "property": "email", "type": 2 }, { "property": "hubspotId", "type": 2 }, { "property": "flags", "type": 1 }, { "property": "dateCreated", "type": 5 }]
|
|
581
602
|
};
|
|
582
603
|
|
|
583
604
|
// src/helpers/arrayHelper.ts
|
|
@@ -709,6 +730,7 @@ var LogService = class {
|
|
|
709
730
|
console.info("Log Levels: ", this._logLevels.join());
|
|
710
731
|
}
|
|
711
732
|
logs = [];
|
|
733
|
+
_loggers = {};
|
|
712
734
|
_logLevels;
|
|
713
735
|
_latestLogDate;
|
|
714
736
|
_logMessageToConsole = (log) => {
|
|
@@ -756,7 +778,17 @@ ${(log.optionalParams ?? []).join("\n\r")}`;
|
|
|
756
778
|
clearLogs = () => {
|
|
757
779
|
this.logs = [];
|
|
758
780
|
};
|
|
759
|
-
getLogger = (...groups) =>
|
|
781
|
+
getLogger = (...groups) => {
|
|
782
|
+
const grpLength = groups?.length ?? 0;
|
|
783
|
+
if (grpLength < 0 || grpLength > 1 || groups[0] == null) return this._createNewLogger(groups);
|
|
784
|
+
const groupKey = groups[0];
|
|
785
|
+
const existingLogger = this._loggers[groupKey];
|
|
786
|
+
if (existingLogger != null) return existingLogger;
|
|
787
|
+
const newLogger = this._createNewLogger(groups);
|
|
788
|
+
this._loggers[groupKey] = newLogger;
|
|
789
|
+
return newLogger;
|
|
790
|
+
};
|
|
791
|
+
_createNewLogger = (groups) => ({
|
|
760
792
|
d: this._track("debug", groups),
|
|
761
793
|
i: this._track("info", groups),
|
|
762
794
|
w: this._track("warn", groups),
|
|
@@ -1528,4 +1560,4 @@ var shouldBeYoutubeUrl = (value) => {
|
|
|
1528
1560
|
};
|
|
1529
1561
|
};
|
|
1530
1562
|
|
|
1531
|
-
export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, LogService, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, TranslationService, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, fakePromise, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, isBefore, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, portalGlyphLength, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder };
|
|
1563
|
+
export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, LogService, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, TranslationService, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, bookingColourLookup, capitalizeFirstLetter, changeMonth, colourPalette, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, fakePromise, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, isBefore, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, portalGlyphLength, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as ILogger, R as ResultWithValue, a as Result, L as LogService, C as CommonConfigService, b as IDependencyInjectionSetupProps } from '../textValidation-
|
|
2
|
-
export {
|
|
1
|
+
import { I as ILogger, R as ResultWithValue, a as Result, L as LogService, C as CommonConfigService, b as IDependencyInjectionSetupProps } from '../textValidation-CgQNvQsc.js';
|
|
2
|
+
export { ch as APP_TYPE_TOKEN, a6 as ActivityDto, aY as ActivityRestriction, y as ActivityType, a7 as AddressCreateDto, a8 as AddressDto, z as AddressLinkType, a9 as AddressLookupDto, aZ as AddressRestriction, aa as AddressUpdateDto, ab as AnswerCreateDto, ac as AnswerDto, B as AnswerLinkType, a_ as AnswerRestriction, A as AppType, ad as AuthLoginDto, ae as AuthPatDto, af as AuthSignupDto, ag as AuthSuccessDto, cf as BOT_PATH_TOKEN, ah as BookingAddonDto, b0 as BookingAddonRestriction, F as BookingAddonType, ai as BookingCreateDto, aj as BookingDto, ak as BookingHostCreateDto, al as BookingHostDto, am as BookingHostUpdateDto, a$ as BookingRestriction, an as BookingRestrictionsDto, ao as BookingRestrictionsEnabledDaysDto, ap as BookingRestrictionsPremiumEnabledDaysDto, G as BookingStatusType, aq as BookingUpdateDto, ar as BookingWithRelationshipsDto, g as CachedValue, t as ClickEvent, as as CommentCreateDto, at as CommentDto, J as CommentLinkType, b1 as CommentRestriction, au as CommentUpdateDto, cd as DependencyInjectionContainer, k as DependencyInjectionFactory, j as DependencyInjectionIdentifier, D as DependencyInjectionToken, b2 as DrivingRouteRestriction, E as EnvKey, H as HtmlElementEvent, q as HtmlFilesEvent, r as HtmlImageReadEvent, o as HtmlKeyEvent, bb as ICaptchaResponse, l as IDependencyInjectionSetupWebProps, bO as IImageParams, bd as ILogMessage, be as IMediaUpload, cc as ISite, c9 as ISiteColour, aX as JwtPayloadDto, K as KeyEvent, bc as LogMethod, N as LogType, av as MembershipCreateDto, aw as MembershipDto, b3 as MembershipRestriction, O as MembershipStatus, P as MembershipType, ax as MembershipUpdateDto, M as MonthTranslationKey, e as MouseButton, Q as NetworkState, bg as NominatimAddressResponse, bf as NominatimResponse, c6 as ObjectWithPropsOfValue, S as OrderDirectionType, ay as PaginationRequestDto, az as PaginationResponseDto, b4 as PermissionRestriction, T as PermissionType, aA as PetCreateUpdateDto, aB as PetDto, b5 as PetRestriction, U as PetSexType, V as PetStatusType, X as PetType, c7 as Prettify, aC as ProfileDto, aD as ProfileQuestionAndAnswersItemDto, aE as ProfileQuestionRequestDto, aF as ProfileUpdateDto, aG as QuestionCreateDto, aH as QuestionDto, Z as QuestionForType, b6 as QuestionRestriction, Y as QuestionType, bq as RenderCellType, cj as SITE_CONFIG_TOKEN, aI as SearchObjDatePropRequestDto, aJ as SearchObjRequestDto, aK as SearchObjTextPropRequestDto, a0 as SearchableColumnInfo, $ as SearchableColumnType, cs as TranslationService, b7 as UnavailabilityRestriction, aL as UploadCreateDto, aM as UploadDto, aN as UploadImageWithLinkDto, a1 as UploadLinkType, b8 as UploadRestriction, a2 as UploadType, aO as UploadUpdateDto, a4 as UserAccountFlagType, aP as UserCreateDto, aQ as UserDto, aR as UserMembershipCreateDto, aS as UserMembershipDto, aT as UserMembershipUpdateDto, aU as UserPermissionDto, b9 as UserRestriction, a5 as UserType, aV as UserUpdateDto, bh as ValidationResult, aW as VersionDto, W as WeekdayTranslationKey, bC as addDays, bB as addMinutes, bD as addMonths, bA as addSeconds, c2 as addSpacesForEnum, bn as addToParallelTasks, c4 as anyObject, x as apiRoute, u as apiRouteParam, bl as arrayContains, bk as arrayOfNLength, d as bookingColourLookup, c0 as capitalizeFirstLetter, ca as colourPalette, h as createToken, bN as cyrb53, bG as dateDiffInDays, bK as debounceLeading, cb as defaultSiteColour, c5 as fakePromise, bt as formatDate, c3 as formatFileSize, bz as formatForBookingDate, bv as formatForDateDropdown, bu as formatForDateLocal, by as formatForDateLocalDetailed, bw as formatForDateOfBirth, bx as formatForDateWithTime, bH as getAgeInYears, _ as getAllPetQuestionForType, ci as getAppType, bL as getArrFromEnum, cg as getBotPath, cn as getCommonConfig, bo as getDayClassObject, br as getDayElements, bp as getDayHeadingElements, bP as getImageParams, co as getLog, bS as getMimeTypeFromExtension, bQ as getPayloadFromJwt, bU as getPerformanceTimer, bX as getPetAvatarUrl, cm as getSiteColour, cl as getSiteConfig, bW as getUserAvatarUrl, bs as getUsersName, bI as getWeekNumber, bV as hasRequiredPermissions, bE as isBefore, cE as isNumber, bF as isSameDay, i as isWebApp, c1 as lowercaseFirstLetter, bi as makeArrayOrDefault, cD as maxDate, cu as maxItems, cI as maxLength, cG as maxValue, bR as mimeTypeLookup, cC as minDate, ct as minItems, cH as minLength, f as minUrlLength, cF as minValue, m as monthTranslationKeyOrder, cz as multiValidation, bZ as nameof, n as nanasFonts, cx as noValidation, cy as notNull, bj as onlyUnique, p as portalGlyphLength, bY as promiseFromValue, b_ as randomIntFromRange, b$ as randomItemFromArray, ce as rootContainer, cp as rootDependencyInjectionSetup, ba as searchColumns, cv as selectedItemsExist, cw as selectedOptionIsInEnum, cA as separateValidation, cq as setContainerToken, cr as setContainerTokenLazy, ck as setSiteConfig, cJ as shouldBeUrl, cK as shouldBeYoutubeUrl, bJ as showSecondCalendar, s as socialLinks, bm as timeout, bT as tryParseNumber, a3 as uploadsThatNeedEncryption, c8 as urlRef, bM as uuidv4, v as validUuidChars, cB as validateForEach, w as webAppTypes, c as weekdayTranslationKeyOrder } from '../textValidation-CgQNvQsc.js';
|
|
3
3
|
import 'solid-js';
|
|
4
4
|
import '@tolgee/web';
|
|
5
5
|
|
package/dist/node-utils/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { rootContainer, onlyUnique, getBotPath, getLog, getCommonConfig, formatForDateDropdown, getSiteConfig, getAppType, isWebApp, rootDependencyInjectionSetup, setContainerToken } from '../chunk/
|
|
2
|
-
export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, LogService, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, TranslationService, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, colourPalette, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, fakePromise, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBotPath, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, isBefore, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, portalGlyphLength, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/
|
|
1
|
+
import { rootContainer, onlyUnique, getBotPath, getLog, getCommonConfig, formatForDateDropdown, getSiteConfig, getAppType, isWebApp, rootDependencyInjectionSetup, setContainerToken } from '../chunk/T65WNCAX.js';
|
|
2
|
+
export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, LogService, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, TranslationService, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, bookingColourLookup, capitalizeFirstLetter, colourPalette, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, fakePromise, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBotPath, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, isBefore, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, portalGlyphLength, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/T65WNCAX.js';
|
|
3
3
|
import fs5 from 'fs/promises';
|
|
4
4
|
import path8 from 'path';
|
|
5
5
|
import fs2 from 'fs';
|
|
@@ -15,10 +15,27 @@ declare enum AppType {
|
|
|
15
15
|
declare const webAppTypes: AppType[];
|
|
16
16
|
declare const isWebApp: (appType: AppType) => boolean;
|
|
17
17
|
|
|
18
|
+
declare enum BookingStatusType {
|
|
19
|
+
Pending = 0,
|
|
20
|
+
Cancelled = 1,
|
|
21
|
+
IntakeCall = 2,
|
|
22
|
+
RequestMatchFee = 3,
|
|
23
|
+
FindPlacement = 4,
|
|
24
|
+
Matched = 5,
|
|
25
|
+
MeetAndGreet = 6,
|
|
26
|
+
RequestPayment = 7,
|
|
27
|
+
PaymentRequested = 8,
|
|
28
|
+
Paid = 9,
|
|
29
|
+
WaitList = 10,
|
|
30
|
+
Complete = 11,
|
|
31
|
+
CompleteWithHostFeedback = 12
|
|
32
|
+
}
|
|
33
|
+
|
|
18
34
|
type WeekdayTranslationKey = 'sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat';
|
|
19
35
|
declare const weekdayTranslationKeyOrder: Array<WeekdayTranslationKey>;
|
|
20
36
|
type MonthTranslationKey = 'jan' | 'feb' | 'mar' | 'apr' | 'may' | 'jun' | 'jul' | 'aug' | 'sep' | 'oct' | 'nov' | 'dec';
|
|
21
37
|
declare const monthTranslationKeyOrder: Array<MonthTranslationKey>;
|
|
38
|
+
declare const bookingColourLookup: Record<BookingStatusType, string>;
|
|
22
39
|
|
|
23
40
|
type EnvKey = 'API_PORT' | 'BUILD_VERSION' | 'HCAPTCHA_SECRET' | 'LIVESERVER_PORT' | 'LOG_SERVER_PORT' | 'MODE' | 'NODE_ENV' | 'PACKAGE_VERSION' | 'STORYBOOK_PORT' | 'TELEMETRY_PORT' | 'VITEPRESS_PORT' | 'VITEST_PORT' | 'VITE_CONSOLE_LOGGING' | 'VITE_ENABLE_CAPTCHA' | 'VITE_FAKE_API_REQUEST_DELAY' | 'VITE_HCAPTCHA_SITE_KEY' | 'VITE_HUB_ADMIN_URL' | 'VITE_HUB_API_URL' | 'VITE_HUB_CLIENT_URL' | 'VITE_HUB_COVERAGE_URL' | 'VITE_HUB_DOCS_URL' | 'VITE_HUB_LANDING_URL' | 'VITE_HUB_STORYBOOK_URL' | 'VITE_TOLGEE_API_KEY' | 'VITE_TOLGEE_API_URL' | 'VITE_TOLGEE_PROJECT_ID' | 'WEB_ADMIN_PORT' | 'WEB_CLIENT_PORT' | 'WEB_LANDING_PORT' | 'npm_package_version';
|
|
24
41
|
|
|
@@ -384,16 +401,6 @@ declare enum BookingAddonType {
|
|
|
384
401
|
PetTaxi = 1
|
|
385
402
|
}
|
|
386
403
|
|
|
387
|
-
declare enum BookingStatusType {
|
|
388
|
-
Pending = 0,
|
|
389
|
-
Cancelled = 1,
|
|
390
|
-
FindPlacement = 2,
|
|
391
|
-
Request = 3,
|
|
392
|
-
PaidWithHostMatch = 4,
|
|
393
|
-
Complete = 5,
|
|
394
|
-
CompleteWithHostFeedback = 6
|
|
395
|
-
}
|
|
396
|
-
|
|
397
404
|
declare enum CommentLinkType {
|
|
398
405
|
Unknown = 0,
|
|
399
406
|
User = 1,
|
|
@@ -764,7 +771,7 @@ interface components {
|
|
|
764
771
|
endDate: Record<string, never> | string | number;
|
|
765
772
|
notes: string;
|
|
766
773
|
/** BookingStatusType */
|
|
767
|
-
status: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
774
|
+
status: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
768
775
|
petUuids: string[];
|
|
769
776
|
};
|
|
770
777
|
/**
|
|
@@ -786,7 +793,7 @@ interface components {
|
|
|
786
793
|
startDate: Record<string, never> | string | number;
|
|
787
794
|
endDate: Record<string, never> | string | number;
|
|
788
795
|
/** BookingStatusType */
|
|
789
|
-
status: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
796
|
+
status: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
790
797
|
notes: string;
|
|
791
798
|
dateCreated: Record<string, never> | string | number;
|
|
792
799
|
dateModified: Record<string, never> | string | number;
|
|
@@ -880,7 +887,7 @@ interface components {
|
|
|
880
887
|
startDate: Record<string, never> | string | number;
|
|
881
888
|
endDate: Record<string, never> | string | number;
|
|
882
889
|
/** BookingStatusType */
|
|
883
|
-
status: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
890
|
+
status: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
884
891
|
notes: string;
|
|
885
892
|
petUuids: string[];
|
|
886
893
|
};
|
|
@@ -903,7 +910,7 @@ interface components {
|
|
|
903
910
|
startDate: Record<string, never> | string | number;
|
|
904
911
|
endDate: Record<string, never> | string | number;
|
|
905
912
|
/** BookingStatusType */
|
|
906
|
-
status: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
913
|
+
status: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
907
914
|
notes: string;
|
|
908
915
|
dateCreated: Record<string, never> | string | number;
|
|
909
916
|
dateModified: Record<string, never> | string | number;
|
|
@@ -934,7 +941,11 @@ interface components {
|
|
|
934
941
|
* @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
|
|
935
942
|
*/
|
|
936
943
|
uuid: string;
|
|
937
|
-
|
|
944
|
+
/**
|
|
945
|
+
* Format: uuid
|
|
946
|
+
* @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
|
|
947
|
+
*/
|
|
948
|
+
userUuid: string;
|
|
938
949
|
/** PetSexType */
|
|
939
950
|
sex: 0 | 1 | 2;
|
|
940
951
|
name: string;
|
|
@@ -1152,7 +1163,11 @@ interface components {
|
|
|
1152
1163
|
* @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
|
|
1153
1164
|
*/
|
|
1154
1165
|
uuid: string;
|
|
1155
|
-
|
|
1166
|
+
/**
|
|
1167
|
+
* Format: uuid
|
|
1168
|
+
* @description A Universally Unique Identifier is a 128-bit label used to uniquely identify objects
|
|
1169
|
+
*/
|
|
1170
|
+
userUuid: string;
|
|
1156
1171
|
/** PetSexType */
|
|
1157
1172
|
sex: 0 | 1 | 2;
|
|
1158
1173
|
name: string;
|
|
@@ -1857,31 +1872,31 @@ declare const UserRestriction: {
|
|
|
1857
1872
|
};
|
|
1858
1873
|
|
|
1859
1874
|
declare const searchColumns: {
|
|
1860
|
-
|
|
1875
|
+
address: {
|
|
1861
1876
|
property: string;
|
|
1862
1877
|
type: number;
|
|
1863
1878
|
}[];
|
|
1864
|
-
|
|
1879
|
+
booking: {
|
|
1865
1880
|
property: string;
|
|
1866
1881
|
type: number;
|
|
1867
1882
|
}[];
|
|
1868
|
-
|
|
1883
|
+
membership: {
|
|
1869
1884
|
property: string;
|
|
1870
1885
|
type: number;
|
|
1871
1886
|
}[];
|
|
1872
|
-
|
|
1887
|
+
pet: {
|
|
1873
1888
|
property: string;
|
|
1874
1889
|
type: number;
|
|
1875
1890
|
}[];
|
|
1876
|
-
|
|
1891
|
+
question: {
|
|
1877
1892
|
property: string;
|
|
1878
1893
|
type: number;
|
|
1879
1894
|
}[];
|
|
1880
|
-
|
|
1895
|
+
upload: {
|
|
1881
1896
|
property: string;
|
|
1882
1897
|
type: number;
|
|
1883
1898
|
}[];
|
|
1884
|
-
|
|
1899
|
+
user: {
|
|
1885
1900
|
property: string;
|
|
1886
1901
|
type: number;
|
|
1887
1902
|
}[];
|
|
@@ -2062,12 +2077,19 @@ declare const getUsersName: (details?: {
|
|
|
2062
2077
|
}) => string;
|
|
2063
2078
|
|
|
2064
2079
|
type DateInput = Date | string | number | Record<string, never>;
|
|
2080
|
+
/** default date format: DD MMM YYYY HH:mm */
|
|
2065
2081
|
declare const formatDate: (date: DateInput, format?: string) => string;
|
|
2082
|
+
/** YYYY-MM-DD HH:mm */
|
|
2066
2083
|
declare const formatForDateLocal: (value: DateInput) => string;
|
|
2084
|
+
/** YYYY-MM-DD */
|
|
2067
2085
|
declare const formatForDateDropdown: (value: DateInput) => string;
|
|
2086
|
+
/** DD MMM YYYY */
|
|
2068
2087
|
declare const formatForDateOfBirth: (value: DateInput) => string;
|
|
2088
|
+
/** DD MMM YYYY HH:mm */
|
|
2069
2089
|
declare const formatForDateWithTime: (value: DateInput) => string;
|
|
2090
|
+
/** YYYY-MM-DDTHH:mm:ss */
|
|
2070
2091
|
declare const formatForDateLocalDetailed: (date: DateInput) => Date;
|
|
2092
|
+
/** DD MMM YYYY - x nights */
|
|
2071
2093
|
declare const formatForBookingDate: (startDate: Date, endDate: Date) => string;
|
|
2072
2094
|
declare const addSeconds: (date: Date, seconds: number) => Date;
|
|
2073
2095
|
declare const addMinutes: (date: Date, minutes: number) => Date;
|
|
@@ -2179,13 +2201,15 @@ declare class LogService {
|
|
|
2179
2201
|
private _onLogMessage?;
|
|
2180
2202
|
private _numDaysToKeep;
|
|
2181
2203
|
logs: Array<ILogMessage>;
|
|
2204
|
+
private _loggers;
|
|
2182
2205
|
private _logLevels;
|
|
2183
2206
|
private _latestLogDate;
|
|
2184
2207
|
constructor(config: CommonConfigService, _logToConsole?: boolean, _onLogMessage?: ((log: ILogMessage) => void) | undefined, _numDaysToKeep?: number);
|
|
2185
2208
|
private _logMessageToConsole;
|
|
2186
2209
|
private _track;
|
|
2187
2210
|
clearLogs: () => void;
|
|
2188
|
-
getLogger: (...groups: Array<string>) =>
|
|
2211
|
+
getLogger: (...groups: Array<string>) => ILogger;
|
|
2212
|
+
_createNewLogger: (groups: Array<string>) => {
|
|
2189
2213
|
d: (message: string, ...optionalParams: Array<unknown>) => void;
|
|
2190
2214
|
i: (message: string, ...optionalParams: Array<unknown>) => void;
|
|
2191
2215
|
w: (message: string, ...optionalParams: Array<unknown>) => void;
|
|
@@ -2272,4 +2296,4 @@ declare const maxLength: (maxLengthVal: number) => (value: string) => Validation
|
|
|
2272
2296
|
declare const shouldBeUrl: (value: string) => ValidationResult;
|
|
2273
2297
|
declare const shouldBeYoutubeUrl: (value: string) => ValidationResult;
|
|
2274
2298
|
|
|
2275
|
-
export {
|
|
2299
|
+
export { SearchableColumnType as $, AppType as A, AnswerLinkType as B, CommonConfigService as C, type DependencyInjectionToken as D, type EnvKey as E, BookingAddonType as F, BookingStatusType as G, type HtmlElementEvent as H, type ILogger as I, CommentLinkType as J, type KeyEvent as K, LogService as L, type MonthTranslationKey as M, type LogType as N, MembershipStatus as O, MembershipType as P, NetworkState as Q, type ResultWithValue as R, OrderDirectionType as S, PermissionType as T, PetSexType as U, PetStatusType as V, type WeekdayTranslationKey as W, PetType as X, QuestionType as Y, QuestionForType as Z, getAllPetQuestionForType as _, type Result as a, BookingRestriction as a$, type SearchableColumnInfo as a0, UploadLinkType as a1, UploadType as a2, uploadsThatNeedEncryption as a3, UserAccountFlagType as a4, UserType as a5, type ActivityDto as a6, type AddressCreateDto as a7, type AddressDto as a8, type AddressLookupDto as a9, type PetCreateUpdateDto as aA, type PetDto as aB, type ProfileDto as aC, type ProfileQuestionAndAnswersItemDto as aD, type ProfileQuestionRequestDto as aE, type ProfileUpdateDto as aF, type QuestionCreateDto as aG, type QuestionDto as aH, type SearchObjDatePropRequestDto as aI, type SearchObjRequestDto as aJ, type SearchObjTextPropRequestDto as aK, type UploadCreateDto as aL, type UploadDto as aM, type UploadImageWithLinkDto as aN, type UploadUpdateDto as aO, type UserCreateDto as aP, type UserDto as aQ, type UserMembershipCreateDto as aR, type UserMembershipDto as aS, type UserMembershipUpdateDto as aT, type UserPermissionDto as aU, type UserUpdateDto as aV, type VersionDto as aW, type JwtPayloadDto as aX, ActivityRestriction as aY, AddressRestriction as aZ, AnswerRestriction as a_, type AddressUpdateDto as aa, type AnswerCreateDto as ab, type AnswerDto as ac, type AuthLoginDto as ad, type AuthPatDto as ae, type AuthSignupDto as af, type AuthSuccessDto as ag, type BookingAddonDto as ah, type BookingCreateDto as ai, type BookingDto as aj, type BookingHostCreateDto as ak, type BookingHostDto as al, type BookingHostUpdateDto as am, type BookingRestrictionsDto as an, type BookingRestrictionsEnabledDaysDto as ao, type BookingRestrictionsPremiumEnabledDaysDto as ap, type BookingUpdateDto as aq, type BookingWithRelationshipsDto as ar, type CommentCreateDto as as, type CommentDto as at, type CommentUpdateDto as au, type MembershipCreateDto as av, type MembershipDto as aw, type MembershipUpdateDto as ax, type PaginationRequestDto as ay, type PaginationResponseDto as az, type IDependencyInjectionSetupProps as b, randomItemFromArray as b$, BookingAddonRestriction as b0, CommentRestriction as b1, DrivingRouteRestriction as b2, MembershipRestriction as b3, PermissionRestriction as b4, PetRestriction as b5, QuestionRestriction as b6, UnavailabilityRestriction as b7, UploadRestriction as b8, UserRestriction as b9, addSeconds as bA, addMinutes as bB, addDays as bC, addMonths as bD, isBefore as bE, isSameDay as bF, dateDiffInDays as bG, getAgeInYears as bH, getWeekNumber as bI, showSecondCalendar as bJ, debounceLeading as bK, getArrFromEnum as bL, uuidv4 as bM, cyrb53 as bN, type IImageParams as bO, getImageParams as bP, getPayloadFromJwt as bQ, mimeTypeLookup as bR, getMimeTypeFromExtension as bS, tryParseNumber as bT, getPerformanceTimer as bU, hasRequiredPermissions as bV, getUserAvatarUrl as bW, getPetAvatarUrl as bX, promiseFromValue as bY, nameof as bZ, randomIntFromRange as b_, searchColumns as ba, type ICaptchaResponse as bb, type LogMethod as bc, type ILogMessage as bd, type IMediaUpload as be, type NominatimResponse as bf, type NominatimAddressResponse as bg, type ValidationResult as bh, makeArrayOrDefault as bi, onlyUnique as bj, arrayOfNLength as bk, arrayContains as bl, timeout as bm, addToParallelTasks as bn, getDayClassObject as bo, getDayHeadingElements as bp, type RenderCellType as bq, getDayElements as br, getUsersName as bs, formatDate as bt, formatForDateLocal as bu, formatForDateDropdown as bv, formatForDateOfBirth as bw, formatForDateWithTime as bx, formatForDateLocalDetailed as by, formatForBookingDate as bz, weekdayTranslationKeyOrder as c, capitalizeFirstLetter as c0, lowercaseFirstLetter as c1, addSpacesForEnum as c2, formatFileSize as c3, anyObject as c4, fakePromise as c5, type ObjectWithPropsOfValue as c6, type Prettify as c7, urlRef as c8, type ISiteColour as c9, separateValidation as cA, validateForEach as cB, minDate as cC, maxDate as cD, isNumber as cE, minValue as cF, maxValue as cG, minLength as cH, maxLength as cI, shouldBeUrl as cJ, shouldBeYoutubeUrl as cK, type IFormCalendarPickerProps as cL, type FullDateSelectionProps as cM, type FormCalendarPickerMode as cN, type FormCalendarDatePickerRangeProps as cO, type DateSelectionProps as cP, type FormCalendarPickerInnerProps as cQ, type FormInputProps as cR, type FormCalendarSpecialRangeDisplayProps as cS, type FormCalendarSpecialRangeProps as cT, type ValidFormTypes as cU, type ValidFormComponentTypes as cV, type PropertyOverrides as cW, colourPalette as ca, defaultSiteColour as cb, type ISite as cc, DependencyInjectionContainer as cd, rootContainer as ce, BOT_PATH_TOKEN as cf, getBotPath as cg, APP_TYPE_TOKEN as ch, getAppType as ci, SITE_CONFIG_TOKEN as cj, setSiteConfig as ck, getSiteConfig as cl, getSiteColour as cm, getCommonConfig as cn, getLog as co, rootDependencyInjectionSetup as cp, setContainerToken as cq, setContainerTokenLazy as cr, TranslationService as cs, minItems as ct, maxItems as cu, selectedItemsExist as cv, selectedOptionIsInEnum as cw, noValidation as cx, notNull as cy, multiValidation as cz, bookingColourLookup as d, MouseButton as e, minUrlLength as f, type CachedValue as g, createToken as h, isWebApp as i, type DependencyInjectionIdentifier as j, type DependencyInjectionFactory as k, type IDependencyInjectionSetupWebProps as l, monthTranslationKeyOrder as m, nanasFonts as n, type HtmlKeyEvent as o, portalGlyphLength as p, type HtmlFilesEvent as q, type HtmlImageReadEvent as r, socialLinks as s, type ClickEvent as t, apiRouteParam as u, validUuidChars as v, webAppTypes as w, apiRoute as x, ActivityType as y, AddressLinkType as z };
|
package/dist/web/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as solid_js from 'solid-js';
|
|
2
2
|
import { Component, JSXElement, JSX, Accessor, ComponentProps } from 'solid-js';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { G as BookingStatusType, t as ClickEvent, P as MembershipType, V as PetStatusType, aC as ProfileDto, Z as QuestionForType, Y as QuestionType, a5 as UserType, R as ResultWithValue, Q as NetworkState, cL as IFormCalendarPickerProps, cM as FullDateSelectionProps, cN as FormCalendarPickerMode, cO as FormCalendarDatePickerRangeProps, cP as DateSelectionProps, W as WeekdayTranslationKey, M as MonthTranslationKey, cQ as FormCalendarPickerInnerProps, cR as FormInputProps, bh as ValidationResult, K as KeyEvent, H as HtmlElementEvent, aD as ProfileQuestionAndAnswersItemDto, a7 as AddressCreateDto, aa as AddressUpdateDto, ad as AuthLoginDto, af as AuthSignupDto, ai as BookingCreateDto, av as MembershipCreateDto, aA as PetCreateUpdateDto, aF as ProfileUpdateDto, aG as QuestionCreateDto, aL as UploadCreateDto, aQ as UserDto, aP as UserCreateDto, q as HtmlFilesEvent, bd as ILogMessage, I as ILogger, a as Result, ay as PaginationRequestDto, az as PaginationResponseDto, aJ as SearchObjRequestDto, C as CommonConfigService, a6 as ActivityDto, L as LogService, a8 as AddressDto, z as AddressLinkType, bf as NominatimResponse, aj as BookingDto, J as CommentLinkType, at as CommentDto, as as CommentCreateDto, aw as MembershipDto, aB as PetDto, aH as QuestionDto, aM as UploadDto, aS as UserMembershipDto, aU as UserPermissionDto, T as PermissionType, a9 as AddressLookupDto, ar as BookingWithRelationshipsDto, cc as ISite, aN as UploadImageWithLinkDto, an as BookingRestrictionsDto, ag as AuthSuccessDto, aW as VersionDto, c7 as Prettify, l as IDependencyInjectionSetupWebProps, cs as TranslationService } from '../textValidation-CgQNvQsc.js';
|
|
4
|
+
export { ch as APP_TYPE_TOKEN, aY as ActivityRestriction, y as ActivityType, aZ as AddressRestriction, ab as AnswerCreateDto, ac as AnswerDto, B as AnswerLinkType, a_ as AnswerRestriction, A as AppType, ae as AuthPatDto, cf as BOT_PATH_TOKEN, ah as BookingAddonDto, b0 as BookingAddonRestriction, F as BookingAddonType, ak as BookingHostCreateDto, al as BookingHostDto, am as BookingHostUpdateDto, a$ as BookingRestriction, ao as BookingRestrictionsEnabledDaysDto, ap as BookingRestrictionsPremiumEnabledDaysDto, aq as BookingUpdateDto, g as CachedValue, b1 as CommentRestriction, au as CommentUpdateDto, cd as DependencyInjectionContainer, k as DependencyInjectionFactory, j as DependencyInjectionIdentifier, D as DependencyInjectionToken, b2 as DrivingRouteRestriction, E as EnvKey, cS as FormCalendarSpecialRangeDisplayProps, cT as FormCalendarSpecialRangeProps, r as HtmlImageReadEvent, o as HtmlKeyEvent, bb as ICaptchaResponse, b as IDependencyInjectionSetupProps, bO as IImageParams, be as IMediaUpload, c9 as ISiteColour, aX as JwtPayloadDto, bc as LogMethod, N as LogType, b3 as MembershipRestriction, O as MembershipStatus, ax as MembershipUpdateDto, e as MouseButton, bg as NominatimAddressResponse, c6 as ObjectWithPropsOfValue, S as OrderDirectionType, b4 as PermissionRestriction, b5 as PetRestriction, U as PetSexType, X as PetType, aE as ProfileQuestionRequestDto, cW as PropertyOverrides, b6 as QuestionRestriction, bq as RenderCellType, cj as SITE_CONFIG_TOKEN, aI as SearchObjDatePropRequestDto, aK as SearchObjTextPropRequestDto, a0 as SearchableColumnInfo, $ as SearchableColumnType, b7 as UnavailabilityRestriction, a1 as UploadLinkType, b8 as UploadRestriction, a2 as UploadType, aO as UploadUpdateDto, a4 as UserAccountFlagType, aR as UserMembershipCreateDto, aT as UserMembershipUpdateDto, b9 as UserRestriction, aV as UserUpdateDto, cV as ValidFormComponentTypes, cU as ValidFormTypes, bC as addDays, bB as addMinutes, bD as addMonths, bA as addSeconds, c2 as addSpacesForEnum, bn as addToParallelTasks, c4 as anyObject, x as apiRoute, u as apiRouteParam, bl as arrayContains, bk as arrayOfNLength, d as bookingColourLookup, c0 as capitalizeFirstLetter, ca as colourPalette, h as createToken, bN as cyrb53, bG as dateDiffInDays, bK as debounceLeading, cb as defaultSiteColour, c5 as fakePromise, bt as formatDate, c3 as formatFileSize, bz as formatForBookingDate, bv as formatForDateDropdown, bu as formatForDateLocal, by as formatForDateLocalDetailed, bw as formatForDateOfBirth, bx as formatForDateWithTime, bH as getAgeInYears, _ as getAllPetQuestionForType, ci as getAppType, bL as getArrFromEnum, cg as getBotPath, cn as getCommonConfig, bo as getDayClassObject, br as getDayElements, bp as getDayHeadingElements, bP as getImageParams, co as getLog, bS as getMimeTypeFromExtension, bQ as getPayloadFromJwt, bU as getPerformanceTimer, bX as getPetAvatarUrl, cm as getSiteColour, cl as getSiteConfig, bW as getUserAvatarUrl, bs as getUsersName, bI as getWeekNumber, bV as hasRequiredPermissions, bE as isBefore, cE as isNumber, bF as isSameDay, i as isWebApp, c1 as lowercaseFirstLetter, bi as makeArrayOrDefault, cD as maxDate, cu as maxItems, cI as maxLength, cG as maxValue, bR as mimeTypeLookup, cC as minDate, ct as minItems, cH as minLength, f as minUrlLength, cF as minValue, m as monthTranslationKeyOrder, cz as multiValidation, bZ as nameof, n as nanasFonts, cx as noValidation, cy as notNull, bj as onlyUnique, p as portalGlyphLength, bY as promiseFromValue, b_ as randomIntFromRange, b$ as randomItemFromArray, ce as rootContainer, cp as rootDependencyInjectionSetup, ba as searchColumns, cv as selectedItemsExist, cw as selectedOptionIsInEnum, cA as separateValidation, cq as setContainerToken, cr as setContainerTokenLazy, ck as setSiteConfig, cJ as shouldBeUrl, cK as shouldBeYoutubeUrl, bJ as showSecondCalendar, s as socialLinks, bm as timeout, bT as tryParseNumber, a3 as uploadsThatNeedEncryption, c8 as urlRef, bM as uuidv4, v as validUuidChars, cB as validateForEach, w as webAppTypes, c as weekdayTranslationKeyOrder } from '../textValidation-CgQNvQsc.js';
|
|
5
5
|
import { ToasterProps } from 'solid-toast';
|
|
6
6
|
import '@tolgee/web';
|
|
7
7
|
|
|
@@ -435,6 +435,7 @@ interface IProps {
|
|
|
435
435
|
iframe?: {
|
|
436
436
|
width?: string;
|
|
437
437
|
height?: string;
|
|
438
|
+
borderRadius?: string;
|
|
438
439
|
};
|
|
439
440
|
list: {
|
|
440
441
|
dependencies: Array<IDependency>;
|
package/dist/web/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { notNull, multiValidation, isNumber, minValue, MembershipRestriction, maxValue, minItems, minLength, PetRestriction, maxLength, selectedOptionIsInEnum, PetSexType, PetStatusType, PetType, QuestionRestriction, QuestionForType, QuestionType, UserRestriction, noValidation, AddressRestriction, BookingRestriction, minDate, UploadType, UploadRestriction, rootContainer, BookingStatusType, timeout, uuidv4, anyObject, apiRoute, apiRouteParam, getSiteConfig, getLog, debounceLeading, rootDependencyInjectionSetup, TranslationService, setContainerToken, MembershipType, socialLinks, getUsersName, getUserAvatarUrl, UserType, colourPalette, monthTranslationKeyOrder, changeMonth, getDayHeadingElements, getDayElements, getCalendarDropdownDisplayValue, makeArrayOrDefault, getArrFromEnum, capitalizeFirstLetter, convertToDate, isBefore, formatDate, onlyUnique, getDayClassObject, getPetAvatarUrl, formatForDateLocal, isDateAfterStart, isDateBeforeEnd, convertToFullDateSelection } from '../chunk/
|
|
2
|
-
export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, LogService, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, TranslationService, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, capitalizeFirstLetter, changeMonth, colourPalette, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, fakePromise, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, isBefore, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, portalGlyphLength, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/
|
|
1
|
+
import { notNull, multiValidation, isNumber, minValue, MembershipRestriction, maxValue, minItems, minLength, PetRestriction, maxLength, selectedOptionIsInEnum, PetSexType, PetStatusType, PetType, QuestionRestriction, QuestionForType, QuestionType, UserRestriction, noValidation, AddressRestriction, BookingRestriction, minDate, UploadType, UploadRestriction, rootContainer, BookingStatusType, timeout, uuidv4, anyObject, apiRoute, apiRouteParam, getSiteConfig, getLog, debounceLeading, rootDependencyInjectionSetup, TranslationService, setContainerToken, MembershipType, socialLinks, getUsersName, getUserAvatarUrl, UserType, colourPalette, monthTranslationKeyOrder, changeMonth, getDayHeadingElements, getDayElements, getCalendarDropdownDisplayValue, makeArrayOrDefault, getArrFromEnum, capitalizeFirstLetter, convertToDate, isBefore, formatDate, onlyUnique, getDayClassObject, getPetAvatarUrl, formatForDateLocal, isDateAfterStart, isDateBeforeEnd, convertToFullDateSelection } from '../chunk/T65WNCAX.js';
|
|
2
|
+
export { APP_TYPE_TOKEN, ActivityRestriction, ActivityType, AddressLinkType, AddressRestriction, AnswerLinkType, AnswerRestriction, AppType, BOT_PATH_TOKEN, BookingAddonRestriction, BookingAddonType, BookingRestriction, BookingStatusType, CommentLinkType, CommentRestriction, CommonConfigService, DependencyInjectionContainer, DrivingRouteRestriction, LogService, MembershipRestriction, MembershipStatus, MembershipType, MouseButton, NetworkState, OrderDirectionType, PermissionRestriction, PermissionType, PetRestriction, PetSexType, PetStatusType, PetType, QuestionForType, QuestionRestriction, QuestionType, SITE_CONFIG_TOKEN, SearchableColumnType, TranslationService, UnavailabilityRestriction, UploadLinkType, UploadRestriction, UploadType, UserAccountFlagType, UserRestriction, UserType, addDays, addMinutes, addMonths, addSeconds, addSpacesForEnum, addToParallelTasks, anyObject, apiRoute, apiRouteParam, arrayContains, arrayOfNLength, bookingColourLookup, capitalizeFirstLetter, changeMonth, colourPalette, convertToDate, convertToFullDateSelection, createToken, cyrb53, dateDiffInDays, debounceLeading, defaultSiteColour, fakePromise, formatDate, formatFileSize, formatForBookingDate, formatForDateDropdown, formatForDateLocal, formatForDateLocalDetailed, formatForDateOfBirth, formatForDateWithTime, getAgeInYears, getAllPetQuestionForType, getAppType, getArrFromEnum, getBotPath, getCalendarDropdownDisplayValue, getCalendarDropdownForDateOfBirthDisplayValue, getCommonConfig, getDayClassObject, getDayElements, getDayHeadingElements, getImageParams, getLog, getMimeTypeFromExtension, getPayloadFromJwt, getPerformanceTimer, getPetAvatarUrl, getSiteColour, getSiteConfig, getUserAvatarUrl, getUsersName, getWeekNumber, hasRequiredPermissions, isBefore, isDateAfterStart, isDateBeforeEnd, isDateDisabledByDisabledDays, isDateEnabledByEnabledDays, isNumber, isSameDay, isWebApp, lowercaseFirstLetter, makeArrayOrDefault, maxDate, maxItems, maxLength, maxValue, mimeTypeLookup, minDate, minItems, minLength, minUrlLength, minValue, monthTranslationKeyOrder, multiValidation, nameof, nanasFonts, noValidation, notNull, onlyUnique, portalGlyphLength, promiseFromValue, randomIntFromRange, randomItemFromArray, rootContainer, rootDependencyInjectionSetup, searchColumns, selectedItemsExist, selectedOptionIsInEnum, separateValidation, setContainerToken, setContainerTokenLazy, setSiteConfig, shouldBeUrl, shouldBeYoutubeUrl, showSecondCalendar, socialLinks, timeout, tryParseNumber, uploadsThatNeedEncryption, urlRef, uuidv4, validUuidChars, validateForEach, webAppTypes, weekdayTranslationKeyOrder } from '../chunk/T65WNCAX.js';
|
|
3
3
|
import { delegateEvents, createComponent, template, insert, effect, className, setAttribute, mergeProps, spread, addEventListener, memo, use, style } from 'solid-js/web';
|
|
4
4
|
import { createSignal, Show, Switch, Match, For, createEffect, onMount } from 'solid-js';
|
|
5
5
|
import classNames from 'classnames';
|
|
@@ -798,7 +798,7 @@ var PetApiService = class {
|
|
|
798
798
|
}
|
|
799
799
|
load = () => this._baseApi.get(this._routeObj.getAll, addAccessTokenToHeaders);
|
|
800
800
|
loadFromUuid = (uuid) => this._baseApi.get(this._routeObj.getById.replace(apiRouteParam.petUuid, uuid), addAccessTokenToHeaders);
|
|
801
|
-
update = (petUuid, profile) => this._baseApi.
|
|
801
|
+
update = (petUuid, profile) => this._baseApi.put(this._routeObj.update.replace(apiRouteParam.petUuid, petUuid), profile, addAccessTokenToHeaders);
|
|
802
802
|
};
|
|
803
803
|
|
|
804
804
|
// src/services/api/client/profileApiService.ts
|
|
@@ -4451,7 +4451,8 @@ var AboutPageContent = (props) => {
|
|
|
4451
4451
|
};
|
|
4452
4452
|
const iframeStyle = {
|
|
4453
4453
|
width: props.iframe?.width ?? "100%",
|
|
4454
|
-
height: props.iframe?.height ?? "70vh"
|
|
4454
|
+
height: props.iframe?.height ?? "70vh",
|
|
4455
|
+
borderRadius: props.iframe?.borderRadius ?? "0.25em"
|
|
4455
4456
|
};
|
|
4456
4457
|
return (() => {
|
|
4457
4458
|
var _el$2 = _tmpl$510(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$4.firstChild;
|
package/dist/web/index.jsx
CHANGED
|
@@ -57,11 +57,17 @@ import classNames2 from "classnames";
|
|
|
57
57
|
var BookingStatusType = /* @__PURE__ */ ((BookingStatusType2) => {
|
|
58
58
|
BookingStatusType2[BookingStatusType2["Pending"] = 0] = "Pending";
|
|
59
59
|
BookingStatusType2[BookingStatusType2["Cancelled"] = 1] = "Cancelled";
|
|
60
|
-
BookingStatusType2[BookingStatusType2["
|
|
61
|
-
BookingStatusType2[BookingStatusType2["
|
|
62
|
-
BookingStatusType2[BookingStatusType2["
|
|
63
|
-
BookingStatusType2[BookingStatusType2["
|
|
64
|
-
BookingStatusType2[BookingStatusType2["
|
|
60
|
+
BookingStatusType2[BookingStatusType2["IntakeCall"] = 2] = "IntakeCall";
|
|
61
|
+
BookingStatusType2[BookingStatusType2["RequestMatchFee"] = 3] = "RequestMatchFee";
|
|
62
|
+
BookingStatusType2[BookingStatusType2["FindPlacement"] = 4] = "FindPlacement";
|
|
63
|
+
BookingStatusType2[BookingStatusType2["Matched"] = 5] = "Matched";
|
|
64
|
+
BookingStatusType2[BookingStatusType2["MeetAndGreet"] = 6] = "MeetAndGreet";
|
|
65
|
+
BookingStatusType2[BookingStatusType2["RequestPayment"] = 7] = "RequestPayment";
|
|
66
|
+
BookingStatusType2[BookingStatusType2["PaymentRequested"] = 8] = "PaymentRequested";
|
|
67
|
+
BookingStatusType2[BookingStatusType2["Paid"] = 9] = "Paid";
|
|
68
|
+
BookingStatusType2[BookingStatusType2["WaitList"] = 10] = "WaitList";
|
|
69
|
+
BookingStatusType2[BookingStatusType2["Complete"] = 11] = "Complete";
|
|
70
|
+
BookingStatusType2[BookingStatusType2["CompleteWithHostFeedback"] = 12] = "CompleteWithHostFeedback";
|
|
65
71
|
return BookingStatusType2;
|
|
66
72
|
})(BookingStatusType || {});
|
|
67
73
|
|
|
@@ -889,7 +895,7 @@ var PetApiService = class {
|
|
|
889
895
|
}
|
|
890
896
|
load = () => this._baseApi.get(this._routeObj.getAll, addAccessTokenToHeaders);
|
|
891
897
|
loadFromUuid = (uuid) => this._baseApi.get(this._routeObj.getById.replace(apiRouteParam.petUuid, uuid), addAccessTokenToHeaders);
|
|
892
|
-
update = (petUuid, profile) => this._baseApi.
|
|
898
|
+
update = (petUuid, profile) => this._baseApi.put(this._routeObj.update.replace(apiRouteParam.petUuid, petUuid), profile, addAccessTokenToHeaders);
|
|
893
899
|
};
|
|
894
900
|
|
|
895
901
|
// src/services/api/client/profileApiService.ts
|
|
@@ -1127,6 +1133,7 @@ var LogService = class {
|
|
|
1127
1133
|
console.info("Log Levels: ", this._logLevels.join());
|
|
1128
1134
|
}
|
|
1129
1135
|
logs = [];
|
|
1136
|
+
_loggers = {};
|
|
1130
1137
|
_logLevels;
|
|
1131
1138
|
_latestLogDate;
|
|
1132
1139
|
_logMessageToConsole = (log) => {
|
|
@@ -1174,7 +1181,17 @@ ${(log.optionalParams ?? []).join("\n\r")}`;
|
|
|
1174
1181
|
clearLogs = () => {
|
|
1175
1182
|
this.logs = [];
|
|
1176
1183
|
};
|
|
1177
|
-
getLogger = (...groups) =>
|
|
1184
|
+
getLogger = (...groups) => {
|
|
1185
|
+
const grpLength = groups?.length ?? 0;
|
|
1186
|
+
if (grpLength < 0 || grpLength > 1 || groups[0] == null) return this._createNewLogger(groups);
|
|
1187
|
+
const groupKey = groups[0];
|
|
1188
|
+
const existingLogger = this._loggers[groupKey];
|
|
1189
|
+
if (existingLogger != null) return existingLogger;
|
|
1190
|
+
const newLogger = this._createNewLogger(groups);
|
|
1191
|
+
this._loggers[groupKey] = newLogger;
|
|
1192
|
+
return newLogger;
|
|
1193
|
+
};
|
|
1194
|
+
_createNewLogger = (groups) => ({
|
|
1178
1195
|
d: this._track("debug", groups),
|
|
1179
1196
|
i: this._track("info", groups),
|
|
1180
1197
|
w: this._track("warn", groups),
|
|
@@ -3214,6 +3231,21 @@ var monthTranslationKeyOrder = [
|
|
|
3214
3231
|
"nov",
|
|
3215
3232
|
"dec"
|
|
3216
3233
|
];
|
|
3234
|
+
var bookingColourLookup = {
|
|
3235
|
+
[0 /* Pending */]: "#D50000",
|
|
3236
|
+
[2 /* IntakeCall */]: "#D50000",
|
|
3237
|
+
[3 /* RequestMatchFee */]: "#F4511E",
|
|
3238
|
+
[4 /* FindPlacement */]: "#7986CB",
|
|
3239
|
+
[5 /* Matched */]: "#E67C73",
|
|
3240
|
+
[6 /* MeetAndGreet */]: "#F6BF26",
|
|
3241
|
+
[7 /* RequestPayment */]: "#F4511E",
|
|
3242
|
+
[8 /* PaymentRequested */]: "#33B679",
|
|
3243
|
+
[9 /* Paid */]: "#0B8043",
|
|
3244
|
+
[1 /* Cancelled */]: "#616161",
|
|
3245
|
+
[10 /* WaitList */]: "#039BE5",
|
|
3246
|
+
[11 /* Complete */]: "#0B8043",
|
|
3247
|
+
[12 /* CompleteWithHostFeedback */]: "#0B8043"
|
|
3248
|
+
};
|
|
3217
3249
|
|
|
3218
3250
|
// src/helpers/calendarHelper.ts
|
|
3219
3251
|
var getDayClassObject = (nextDate, selectedStartDate, selectedEndDate, enabledDays, disabledDays) => {
|
|
@@ -4558,7 +4590,11 @@ var AboutPageContent = (props) => {
|
|
|
4558
4590
|
{title}
|
|
4559
4591
|
</button>;
|
|
4560
4592
|
};
|
|
4561
|
-
const iframeStyle = {
|
|
4593
|
+
const iframeStyle = {
|
|
4594
|
+
width: props.iframe?.width ?? "100%",
|
|
4595
|
+
height: props.iframe?.height ?? "70vh",
|
|
4596
|
+
borderRadius: props.iframe?.borderRadius ?? "0.25em"
|
|
4597
|
+
};
|
|
4562
4598
|
return <div class="container">
|
|
4563
4599
|
<h1>
|
|
4564
4600
|
<T keyName="about_title" defaultValue="About" />
|
|
@@ -4892,13 +4928,13 @@ var UploadRestriction = {
|
|
|
4892
4928
|
|
|
4893
4929
|
// src/contracts/generated/searchColumns.ts
|
|
4894
4930
|
var searchColumns = {
|
|
4895
|
-
membership: [{ "property": "monthlyFee", "type": 2 }, { "property": "perNightStay", "type": 2 }, { "property": "additionalPetPerNightStay", "type": 2 }, { "property": "transportFee", "type": 2 }, { "property": "perKm", "type": 2 }, { "property": "matchFee", "type": 2 }, { "property": "freeCancellationWithinDays", "type": 2 }, { "property": "bookingAdvanceDays", "type": 2 }, { "property": "bookingCalenderMonthsOpenInAdvance", "type": 2 }, { "property": "seasonalDiscounts", "type": 2 }],
|
|
4896
4931
|
address: [{ "property": "name", "type": 2 }, { "property": "street", "type": 2 }, { "property": "city", "type": 2 }, { "property": "postalCode", "type": 2 }, { "property": "country", "type": 2 }],
|
|
4932
|
+
booking: [{ "property": "startDate", "type": 5 }, { "property": "endDate", "type": 5 }, { "property": "status", "type": 2 }, { "property": "notes", "type": 2 }],
|
|
4933
|
+
membership: [{ "property": "monthlyFee", "type": 2 }, { "property": "perNightStay", "type": 2 }, { "property": "additionalPetPerNightStay", "type": 2 }, { "property": "transportFee", "type": 2 }, { "property": "perKm", "type": 2 }, { "property": "matchFee", "type": 2 }, { "property": "freeCancellationWithinDays", "type": 2 }, { "property": "bookingAdvanceDays", "type": 2 }, { "property": "bookingCalenderMonthsOpenInAdvance", "type": 2 }, { "property": "seasonalDiscounts", "type": 2 }],
|
|
4897
4934
|
pet: [{ "property": "type", "type": 1 }, { "property": "sex", "type": 2 }, { "property": "breed", "type": 2 }, { "property": "neutered", "type": 2 }, { "property": "name", "type": 2 }, { "property": "notes", "type": 2 }, { "property": "dateOfBirth", "type": 5 }],
|
|
4898
|
-
|
|
4935
|
+
question: [{ "property": "forTypes", "type": 1 }, { "property": "transKey", "type": 2 }, { "property": "fallback", "type": 2 }, { "property": "category", "type": 2 }, { "property": "type", "type": 0 }, { "property": "sortOrder", "type": 3 }, { "property": "visible", "type": 4 }, { "property": "notes", "type": 2 }],
|
|
4899
4936
|
upload: [{ "property": "linkUuid", "type": 2 }, { "property": "linkType", "type": 2 }, { "property": "type", "type": 2 }, { "property": "fileName", "type": 2 }, { "property": "blobType", "type": 2 }, { "property": "sizeInKb", "type": 2 }, { "property": "dateCreated", "type": 5 }],
|
|
4900
|
-
|
|
4901
|
-
question: [{ "property": "forTypes", "type": 1 }, { "property": "transKey", "type": 2 }, { "property": "fallback", "type": 2 }, { "property": "category", "type": 2 }, { "property": "type", "type": 0 }, { "property": "sortOrder", "type": 3 }, { "property": "visible", "type": 4 }, { "property": "notes", "type": 2 }]
|
|
4937
|
+
user: [{ "property": "types", "type": 1 }, { "property": "firstName", "type": 2 }, { "property": "lastName", "type": 2 }, { "property": "email", "type": 2 }, { "property": "hubspotId", "type": 2 }, { "property": "flags", "type": 1 }, { "property": "dateCreated", "type": 5 }]
|
|
4902
4938
|
};
|
|
4903
4939
|
|
|
4904
4940
|
// src/contracts/meta/addressDto.meta.tsx
|
|
@@ -5413,6 +5449,7 @@ export {
|
|
|
5413
5449
|
apiRouteParam,
|
|
5414
5450
|
arrayContains,
|
|
5415
5451
|
arrayOfNLength,
|
|
5452
|
+
bookingColourLookup,
|
|
5416
5453
|
capitalizeFirstLetter,
|
|
5417
5454
|
changeMonth,
|
|
5418
5455
|
colourPalette,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nanas-home/hub-common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.844",
|
|
4
4
|
"description": "Nana's Hub common library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Kurt Lourens",
|
|
@@ -31,29 +31,29 @@
|
|
|
31
31
|
"solid-toast": "^0.5.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@chromatic-com/storybook": "^5.
|
|
35
|
-
"@storybook/addon-a11y": "^10.
|
|
36
|
-
"@storybook/addon-docs": "^10.
|
|
37
|
-
"@storybook/addon-links": "^10.
|
|
38
|
-
"@storybook/addon-onboarding": "^10.
|
|
39
|
-
"@storybook/addon-vitest": "^10.
|
|
34
|
+
"@chromatic-com/storybook": "^5.1.1",
|
|
35
|
+
"@storybook/addon-a11y": "^10.3.3",
|
|
36
|
+
"@storybook/addon-docs": "^10.3.3",
|
|
37
|
+
"@storybook/addon-links": "^10.3.3",
|
|
38
|
+
"@storybook/addon-onboarding": "^10.3.3",
|
|
39
|
+
"@storybook/addon-vitest": "^10.3.3",
|
|
40
40
|
"@types/node": "^25.5.0",
|
|
41
|
-
"@vitest/browser": "^4.1.
|
|
42
|
-
"@vitest/coverage-v8": "^4.1.
|
|
43
|
-
"@vitest/ui": "^4.1.
|
|
41
|
+
"@vitest/browser": "^4.1.2",
|
|
42
|
+
"@vitest/coverage-v8": "^4.1.2",
|
|
43
|
+
"@vitest/ui": "^4.1.2",
|
|
44
44
|
"dayjs": "^1.11.20",
|
|
45
45
|
"dotenv-cli": "^11.0.0",
|
|
46
|
-
"jsdom": "^
|
|
46
|
+
"jsdom": "^29.0.1",
|
|
47
47
|
"node-html-parser": "^7.1.0",
|
|
48
48
|
"sass": "^1.98.0",
|
|
49
|
-
"storybook": "^10.
|
|
50
|
-
"storybook-solidjs-vite": "^10.0.
|
|
49
|
+
"storybook": "^10.3.3",
|
|
50
|
+
"storybook-solidjs-vite": "^10.0.11",
|
|
51
51
|
"tsup": "^8.5.1",
|
|
52
52
|
"tsup-preset-solid": "^2.2.0",
|
|
53
|
-
"typescript": "^
|
|
54
|
-
"vite": "^8.0.
|
|
55
|
-
"vite-plugin-solid": "^2.11.
|
|
56
|
-
"vitest": "^4.1.
|
|
53
|
+
"typescript": "^6.0.2",
|
|
54
|
+
"vite": "^8.0.3",
|
|
55
|
+
"vite-plugin-solid": "^2.11.11",
|
|
56
|
+
"vitest": "^4.1.2"
|
|
57
57
|
},
|
|
58
58
|
"files": [
|
|
59
59
|
"dist"
|