@sneat/extensions-schedulus-shared 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/index.js +2 -0
- package/esm2022/index.js.map +1 -0
- package/esm2022/lib/components/calendar/calendar-base.component.js +83 -0
- package/esm2022/lib/components/calendar/calendar-base.component.js.map +1 -0
- package/esm2022/lib/components/calendar/calendar-brief.component.js +57 -0
- package/esm2022/lib/components/calendar/calendar-brief.component.js.map +1 -0
- package/esm2022/lib/components/calendar/calendar-component-types.js +2 -0
- package/esm2022/lib/components/calendar/calendar-component-types.js.map +1 -0
- package/esm2022/lib/components/calendar/calendar-state.service.js +90 -0
- package/esm2022/lib/components/calendar/calendar-state.service.js.map +1 -0
- package/esm2022/lib/components/calendar/calendar.component.js +284 -0
- package/esm2022/lib/components/calendar/calendar.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/calendar-add-buttons/calendar-add-buttons.component.js +45 -0
- package/esm2022/lib/components/calendar/components/calendar-add-buttons/calendar-add-buttons.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/calendar-day/calendar-day-base.component.js +26 -0
- package/esm2022/lib/components/calendar/components/calendar-day/calendar-day-base.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/calendar-day/calendar-day-card.component.js +67 -0
- package/esm2022/lib/components/calendar/components/calendar-day/calendar-day-card.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/calendar-day/calendar-day-tab.component.js +74 -0
- package/esm2022/lib/components/calendar/components/calendar-day/calendar-day-tab.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/calendar-day/calendar-day-title.component.js +27 -0
- package/esm2022/lib/components/calendar/components/calendar-day/calendar-day-title.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/calendar-day/calendar-day.component.js +129 -0
- package/esm2022/lib/components/calendar/components/calendar-day/calendar-day.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/calendar-filter/calendar-filter.component.js +162 -0
- package/esm2022/lib/components/calendar/components/calendar-filter/calendar-filter.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/calendar-filter/calendar-filter.js +17 -0
- package/esm2022/lib/components/calendar/components/calendar-filter/calendar-filter.js.map +1 -0
- package/esm2022/lib/components/calendar/components/calendar-filter/contacts-filter.component.js +95 -0
- package/esm2022/lib/components/calendar/components/calendar-filter/contacts-filter.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/calendar-week/calendar-week-card.component.js +50 -0
- package/esm2022/lib/components/calendar/components/calendar-week/calendar-week-card.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/calendar-week/calendar-week-tab.component.js +18 -0
- package/esm2022/lib/components/calendar/components/calendar-week/calendar-week-tab.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/calendar-week/calendar-week-title.component.js +15 -0
- package/esm2022/lib/components/calendar/components/calendar-week/calendar-week-title.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/calendar-week/calendar-week.component.js +78 -0
- package/esm2022/lib/components/calendar/components/calendar-week/calendar-week.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/calendar-weekday/calendar-weekday.component.js +66 -0
- package/esm2022/lib/components/calendar/components/calendar-weekday/calendar-weekday.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/day-slot-item/day-slot-item.component.js +93 -0
- package/esm2022/lib/components/calendar/components/day-slot-item/day-slot-item.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/day-slot-item/slot-context-menu.component.js +324 -0
- package/esm2022/lib/components/calendar/components/day-slot-item/slot-context-menu.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/recurrings-tab/recurrings-tab.component.js +36 -0
- package/esm2022/lib/components/calendar/components/recurrings-tab/recurrings-tab.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/singles-tab/single-happenings-list.component.js +65 -0
- package/esm2022/lib/components/calendar/components/singles-tab/single-happenings-list.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/singles-tab/singles-tab.component.js +106 -0
- package/esm2022/lib/components/calendar/components/singles-tab/singles-tab.component.js.map +1 -0
- package/esm2022/lib/components/calendar/components/timing-badge/timing-badge.component.js +25 -0
- package/esm2022/lib/components/calendar/components/timing-badge/timing-badge.component.js.map +1 -0
- package/esm2022/lib/components/calendar/weekday.js +2 -0
- package/esm2022/lib/components/calendar/weekday.js.map +1 -0
- package/esm2022/lib/components/calendar-core.js +64 -0
- package/esm2022/lib/components/calendar-core.js.map +1 -0
- package/esm2022/lib/components/calendar-filter.service.js +28 -0
- package/esm2022/lib/components/calendar-filter.service.js.map +1 -0
- package/esm2022/lib/components/calendar-slots.js +30 -0
- package/esm2022/lib/components/calendar-slots.js.map +1 -0
- package/esm2022/lib/components/happening-base.component.js +188 -0
- package/esm2022/lib/components/happening-base.component.js.map +1 -0
- package/esm2022/lib/components/happening-card/happening-card.component.js +69 -0
- package/esm2022/lib/components/happening-card/happening-card.component.js.map +1 -0
- package/esm2022/lib/components/happening-component-base-params.js +37 -0
- package/esm2022/lib/components/happening-component-base-params.js.map +1 -0
- package/esm2022/lib/components/happening-form/happening-form.component.js +348 -0
- package/esm2022/lib/components/happening-form/happening-form.component.js.map +1 -0
- package/esm2022/lib/components/happening-form/happening-price-form/happening-price-modal.component.js +161 -0
- package/esm2022/lib/components/happening-form/happening-price-form/happening-price-modal.component.js.map +1 -0
- package/esm2022/lib/components/happening-form/happening-prices/happening-prices.component.js +142 -0
- package/esm2022/lib/components/happening-form/happening-prices/happening-prices.component.js.map +1 -0
- package/esm2022/lib/components/happening-participants/happening-participants.component.js +195 -0
- package/esm2022/lib/components/happening-participants/happening-participants.component.js.map +1 -0
- package/esm2022/lib/components/happening-slot-form/happening-slot-form.component.js +505 -0
- package/esm2022/lib/components/happening-slot-form/happening-slot-form.component.js.map +1 -0
- package/esm2022/lib/components/happening-slot-form/happening-slot-modal.component.js +140 -0
- package/esm2022/lib/components/happening-slot-form/happening-slot-modal.component.js.map +1 -0
- package/esm2022/lib/components/happening-slot-form/happening-slot-modal.service.js +47 -0
- package/esm2022/lib/components/happening-slot-form/happening-slot-modal.service.js.map +1 -0
- package/esm2022/lib/components/happening-slot-participants/happening-slot-participants.component.js +74 -0
- package/esm2022/lib/components/happening-slot-participants/happening-slot-participants.component.js.map +1 -0
- package/esm2022/lib/components/happening-slots/happening-slots.component.js +130 -0
- package/esm2022/lib/components/happening-slots/happening-slots.component.js.map +1 -0
- package/esm2022/lib/components/index.js +20 -0
- package/esm2022/lib/components/index.js.map +1 -0
- package/esm2022/lib/components/start-end-dates-range-form/start-end-dates-range-form.component.js +68 -0
- package/esm2022/lib/components/start-end-dates-range-form/start-end-dates-range-form.component.js.map +1 -0
- package/esm2022/lib/components/start-end-datetime-form/start-end-datetime-form.component.js +377 -0
- package/esm2022/lib/components/start-end-datetime-form/start-end-datetime-form.component.js.map +1 -0
- package/esm2022/lib/components/start-end-datetime-form/time-selector.component.js +92 -0
- package/esm2022/lib/components/start-end-datetime-form/time-selector.component.js.map +1 -0
- package/esm2022/lib/components/swipeable-base.component.js +112 -0
- package/esm2022/lib/components/swipeable-base.component.js.map +1 -0
- package/esm2022/lib/components/swipeable-ui.js +64 -0
- package/esm2022/lib/components/swipeable-ui.js.map +1 -0
- package/esm2022/lib/components/week.js +2 -0
- package/esm2022/lib/components/week.js.map +1 -0
- package/esm2022/lib/components/weekday-functions.js +13 -0
- package/esm2022/lib/components/weekday-functions.js.map +1 -0
- package/esm2022/lib/components/weekdays/weekdays-form-base.js +72 -0
- package/esm2022/lib/components/weekdays/weekdays-form-base.js.map +1 -0
- package/esm2022/lib/index.js +3 -0
- package/esm2022/lib/index.js.map +1 -0
- package/esm2022/lib/modals/happening-title-modal/happening-title-modal.component.js +87 -0
- package/esm2022/lib/modals/happening-title-modal/happening-title-modal.component.js.map +1 -0
- package/esm2022/lib/services/calendar-data-provider.js +271 -0
- package/esm2022/lib/services/calendar-data-provider.js.map +1 -0
- package/esm2022/lib/services/calendar-day.js +179 -0
- package/esm2022/lib/services/calendar-day.js.map +1 -0
- package/esm2022/lib/services/calendar-day.service.js +37 -0
- package/esm2022/lib/services/calendar-day.service.js.map +1 -0
- package/esm2022/lib/services/calendar-nav.service.js +36 -0
- package/esm2022/lib/services/calendar-nav.service.js.map +1 -0
- package/esm2022/lib/services/calendar-space.js +152 -0
- package/esm2022/lib/services/calendar-space.js.map +1 -0
- package/esm2022/lib/services/calendar-types.js +52 -0
- package/esm2022/lib/services/calendar-types.js.map +1 -0
- package/esm2022/lib/services/calendarium-services.module.js +16 -0
- package/esm2022/lib/services/calendarium-services.module.js.map +1 -0
- package/esm2022/lib/services/calendarium-space.service.js +16 -0
- package/esm2022/lib/services/calendarium-space.service.js.map +1 -0
- package/esm2022/lib/services/happening.service.js +225 -0
- package/esm2022/lib/services/happening.service.js.map +1 -0
- package/esm2022/lib/services/index.js +6 -0
- package/esm2022/lib/services/index.js.map +1 -0
- package/esm2022/sneat-extensions-schedulus-shared.js +5 -0
- package/esm2022/sneat-extensions-schedulus-shared.js.map +1 -0
- package/index.d.ts +1 -0
- package/lib/components/calendar/calendar-base.component.d.ts +23 -0
- package/lib/components/calendar/calendar-brief.component.d.ts +11 -0
- package/lib/components/calendar/calendar-component-types.d.ts +1 -0
- package/lib/components/calendar/calendar-state.service.d.ts +15 -0
- package/lib/components/calendar/calendar.component.d.ts +32 -0
- package/lib/components/calendar/components/calendar-add-buttons/calendar-add-buttons.component.d.ts +13 -0
- package/lib/components/calendar/components/calendar-day/calendar-day-base.component.d.ts +10 -0
- package/lib/components/calendar/components/calendar-day/calendar-day-card.component.d.ts +17 -0
- package/lib/components/calendar/components/calendar-day/calendar-day-tab.component.d.ts +19 -0
- package/lib/components/calendar/components/calendar-day/calendar-day-title.component.d.ts +10 -0
- package/lib/components/calendar/components/calendar-day/calendar-day.component.d.ts +30 -0
- package/lib/components/calendar/components/calendar-filter/calendar-filter.component.d.ts +39 -0
- package/lib/components/calendar/components/calendar-filter/calendar-filter.d.ts +10 -0
- package/lib/components/calendar/components/calendar-filter/contacts-filter.component.d.ts +20 -0
- package/lib/components/calendar/components/calendar-week/calendar-week-card.component.d.ts +15 -0
- package/lib/components/calendar/components/calendar-week/calendar-week-tab.component.d.ts +9 -0
- package/lib/components/calendar/components/calendar-week/calendar-week-title.component.d.ts +7 -0
- package/lib/components/calendar/components/calendar-week/calendar-week.component.d.ts +20 -0
- package/lib/components/calendar/components/calendar-weekday/calendar-weekday.component.d.ts +23 -0
- package/lib/components/calendar/components/day-slot-item/day-slot-item.component.d.ts +19 -0
- package/lib/components/calendar/components/day-slot-item/slot-context-menu.component.d.ts +40 -0
- package/lib/components/calendar/components/recurrings-tab/recurrings-tab.component.d.ts +15 -0
- package/lib/components/calendar/components/singles-tab/single-happenings-list.component.d.ts +22 -0
- package/lib/components/calendar/components/singles-tab/singles-tab.component.d.ts +29 -0
- package/lib/components/calendar/components/timing-badge/timing-badge.component.d.ts +17 -0
- package/lib/components/calendar/weekday.d.ts +7 -0
- package/lib/components/calendar-core.d.ts +10 -0
- package/lib/components/calendar-filter.service.d.ts +8 -0
- package/lib/components/calendar-slots.d.ts +5 -0
- package/lib/components/happening-base.component.d.ts +46 -0
- package/lib/components/happening-card/happening-card.component.d.ts +11 -0
- package/lib/components/happening-component-base-params.d.ts +16 -0
- package/lib/components/happening-form/happening-form.component.d.ts +52 -0
- package/lib/components/happening-form/happening-price-form/happening-price-modal.component.d.ts +29 -0
- package/lib/components/happening-form/happening-prices/happening-prices.component.d.ts +16 -0
- package/lib/components/happening-participants/happening-participants.component.d.ts +24 -0
- package/lib/components/happening-slot-form/happening-slot-form.component.d.ts +76 -0
- package/lib/components/happening-slot-form/happening-slot-modal.component.d.ts +26 -0
- package/lib/components/happening-slot-form/happening-slot-modal.service.d.ts +18 -0
- package/lib/components/happening-slot-participants/happening-slot-participants.component.d.ts +19 -0
- package/lib/components/happening-slots/happening-slots.component.d.ts +28 -0
- package/lib/components/index.d.ts +5 -0
- package/lib/components/start-end-dates-range-form/start-end-dates-range-form.component.d.ts +16 -0
- package/lib/components/start-end-datetime-form/start-end-datetime-form.component.d.ts +53 -0
- package/lib/components/start-end-datetime-form/time-selector.component.d.ts +15 -0
- package/lib/components/swipeable-base.component.d.ts +25 -0
- package/lib/components/swipeable-ui.d.ts +24 -0
- package/lib/components/week.d.ts +4 -0
- package/lib/components/weekday-functions.d.ts +3 -0
- package/lib/components/weekdays/weekdays-form-base.d.ts +31 -0
- package/lib/index.d.ts +2 -0
- package/lib/modals/happening-title-modal/happening-title-modal.component.d.ts +24 -0
- package/lib/services/calendar-data-provider.d.ts +33 -0
- package/lib/services/calendar-day.d.ts +45 -0
- package/lib/services/calendar-day.service.d.ts +18 -0
- package/lib/services/calendar-nav.service.d.ts +14 -0
- package/lib/services/calendar-space.d.ts +23 -0
- package/lib/services/calendar-types.d.ts +10 -0
- package/lib/services/calendarium-services.module.d.ts +6 -0
- package/lib/services/calendarium-space.service.d.ts +8 -0
- package/lib/services/happening.service.d.ts +99 -0
- package/lib/services/index.d.ts +5 -0
- package/package.json +26 -0
- package/sneat-extensions-schedulus-shared.d.ts +5 -0
- package/tsconfig.lib.prod.tsbuildinfo +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"happening.service.js","sourceRoot":"","sources":["../../../../../../../../libs/extensions/schedulus/shared/src/lib/services/happening.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EACL,SAAS,IAAI,gBAAgB,EAC7B,OAAO,GACR,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAW,eAAe,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAIL,oBAAoB,GAKrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,WAAW,EAAgB,MAAM,aAAa,CAAC;AAGxD,OAAO,EAAE,GAAG,EAAc,GAAG,E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AU,CAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC,CAAC;QAC3D,CAAC;QACD,yCAAyC;QACzC,OAAO,IAAI,CAAC,gBAAgB;aACzB,iCAAiC,CAAC,KAAK,EAAE;YACxC,MAAM,EAAE;gBACN,gBAAgB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;gBACvC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,KAAK,EAAE,IAAI,EAAE;aAC5D;SACF,CAAC;aACD,IAAI,CACH,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE;YACjB,OAAO,CAAC,GAAG,CACT,gCAAgC,EAChC,KAAK,CAAC,EAAE,EACR,IAAI,EACJ,MAAM,EACN,UAAU,CACX,CAAC;QACJ,CAAC,CAAC,EACF,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CACjB,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,uBAAuB,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CACzD,CACF,CAAC;IACN,CAAC;8GAxUU,gBAAgB;kHAAhB,gBAAgB;;2FAAhB,gBAAgB;kBAD5B,UAAU;;AA+UX,MAAM,OAAO,sBAAsB;8GAAtB,sBAAsB;+GAAtB,sBAAsB;+GAAtB,sBAAsB,aAFtB,CAAC,gBAAgB,CAAC;;2FAElB,sBAAsB;kBAHlC,QAAQ;mBAAC;oBACR,SAAS,EAAE,CAAC,gBAAgB,CAAC;iBAC9B","sourcesContent":["import { Injectable, NgModule, inject, Injector } from '@angular/core';\nimport {\n Firestore as AngularFirestore,\n orderBy,\n} from '@angular/fire/firestore';\nimport { IFilter, SneatApiService } from '@sneat/api';\nimport { dateToIso } from '@sneat/core';\nimport {\n HappeningStatus,\n IHappeningBrief,\n IHappeningDbo,\n validateHappeningDto,\n WeekdayCode2,\n IHappeningContext,\n IHappeningPrice,\n IHappeningSlotWithID,\n} from '@sneat/mod-schedulus-core';\nimport { ErrorLogger, IErrorLogger } from '@sneat/core';\nimport { ISpaceContext, ISpaceRequest } from '@sneat/space-models';\nimport { QueryOrderByConstraint } from 'firebase/firestore';\nimport { map, Observable, tap, throwError } from 'rxjs';\nimport { ModuleSpaceItemService } from '@sneat/space-services';\n\nexport interface ICreateHappeningRequest {\n readonly spaceID: string;\n readonly happening: IHappeningDbo;\n}\n\nexport interface IHappeningRequest extends ISpaceRequest {\n readonly happeningID: string;\n readonly happeningType?: string;\n}\n\nexport interface IUpdateHappeningTextsRequest extends IHappeningRequest {\n readonly title: string;\n readonly summary?: string;\n readonly description?: string;\n}\n\nexport interface ISpaceModuleDocShortRef {\n readonly id: string;\n readonly spaceID?: string;\n}\n\nexport interface IHappeningContactRequest extends ISpaceRequest {\n readonly happeningID: string;\n readonly contact: ISpaceModuleDocShortRef;\n}\n\nexport interface IHappeningContactsRequest extends ISpaceRequest {\n readonly happeningID: string;\n readonly contacts: readonly ISpaceModuleDocShortRef[];\n}\n\nexport interface IHappeningSlotRequest extends IHappeningRequest {\n readonly slot: IHappeningSlotWithID;\n}\n\nexport interface IHappeningPricesRequest extends IHappeningRequest {\n readonly prices: readonly IHappeningPrice[];\n}\n\nexport interface IDeleteHappeningPricesRequest extends IHappeningRequest {\n readonly priceIDs: readonly string[];\n}\n\nexport interface IHappeningSlotDateRequest extends IHappeningSlotRequest {\n readonly date?: string;\n}\n\nexport interface IHappeningDateSlotIDRequest extends IHappeningRequest {\n readonly slotID: string;\n readonly date: string;\n}\n\nexport interface ISlotsRefRequest extends IHappeningRequest {\n readonly slotIDs?: readonly string[];\n readonly date?: string;\n}\n\nexport interface ISlotRefRequest extends IHappeningRequest {\n readonly slotID: string;\n}\n\nexport interface ISlotRequest extends IHappeningRequest {\n readonly date?: string;\n readonly slotID?: string;\n readonly weekday?: WeekdayCode2;\n readonly reason?: string;\n}\n\nexport interface IDeleteSlotRequest extends ISlotRefRequest {\n readonly reason?: string;\n}\n\nexport type ICancelHappeningRequest = ISlotRequest;\n\nfunction processHappeningContext(\n h: IHappeningContext,\n space: ISpaceContext,\n): IHappeningContext {\n if (h.dbo) {\n try {\n validateHappeningDto(h.dbo);\n } catch (e) {\n console.warn(`Received invalid happening DTO (id=${h.id}: ${e}`);\n }\n }\n if (!h.space && space) {\n h = { ...h, space };\n }\n return h;\n}\n\n@Injectable()\nexport class HappeningService {\n private readonly errorLogger = inject<IErrorLogger>(ErrorLogger);\n private readonly sneatApiService = inject(SneatApiService);\n\n private readonly spaceItemService: ModuleSpaceItemService<\n IHappeningBrief,\n IHappeningDbo\n >;\n\n static statusFilter(statuses: HappeningStatus[]): IFilter {\n const operator = statuses?.length === 1 ? '==' : 'in';\n const value = statuses.length === 1 ? statuses[0] : statuses;\n return { field: 'status', operator, value };\n }\n\n constructor() {\n const afs = inject(AngularFirestore);\n const sneatApiService = this.sneatApiService;\n\n this.spaceItemService = new ModuleSpaceItemService<\n IHappeningBrief,\n IHappeningDbo\n >(inject(Injector), 'calendarium', 'happenings', afs, sneatApiService);\n }\n\n public createHappening(\n request: ICreateHappeningRequest,\n ): Observable<unknown> {\n const title = request.happening.title.trim();\n if (title !== request.happening.title) {\n request = {\n ...request,\n happening: {\n ...request.happening,\n title,\n },\n };\n }\n if (\n request.happening.type === 'single' &&\n request.happening.slots &&\n Object.values(request.happening.slots).some(\n (slot) => slot.repeats !== 'once',\n )\n ) {\n return throwError(\n () => 'Single occurrence happening cannot have recurring slots',\n );\n }\n try {\n validateHappeningDto(request.happening);\n } catch (e) {\n return throwError(() => e);\n }\n return this.sneatApiService.post('happenings/create_happening', request);\n }\n\n public cancelHappening(request: ICancelHappeningRequest): Observable<void> {\n return this.sneatApiService.post('happenings/cancel_happening', request);\n }\n\n public revokeHappeningCancellation(\n request: ICancelHappeningRequest,\n ): Observable<void> {\n return this.sneatApiService.post(\n 'happenings/revoke_happening_cancellation',\n request,\n );\n }\n\n public deleteHappening(happening: IHappeningContext): Observable<void> {\n const request: IHappeningRequest = {\n spaceID: happening.space?.id || '',\n happeningID: happening.id,\n happeningType: happening.brief?.type || happening.dbo?.type,\n };\n return this.sneatApiService.delete(\n 'happenings/delete_happening',\n undefined,\n request,\n );\n }\n\n public deleteSlot(request: IDeleteSlotRequest): Observable<void> {\n return this.sneatApiService.delete(\n 'happenings/delete_slot',\n undefined,\n request,\n );\n }\n\n public updateHappeningTexts(\n request: IUpdateHappeningTextsRequest,\n ): Observable<void> {\n return this.sneatApiService.post(\n 'happenings/update_happening_texts',\n request,\n );\n }\n\n public readonly removeParticipant = (\n request: IHappeningContactRequest,\n ): Observable<void> => {\n return this.removeParticipants({\n spaceID: request.spaceID,\n happeningID: request.happeningID,\n contacts: [request.contact],\n });\n };\n public readonly removeParticipants = (\n request: IHappeningContactsRequest,\n ): Observable<void> =>\n this.sneatApiService.post('happenings/remove_participants', request);\n\n public readonly addParticipant = (\n request: IHappeningContactRequest,\n ): Observable<void> => {\n return this.addParticipants({\n spaceID: request.spaceID,\n happeningID: request.happeningID,\n contacts: [request.contact],\n });\n };\n public readonly addParticipants = (\n request: IHappeningContactsRequest,\n ): Observable<void> =>\n this.sneatApiService.post('happenings/add_participants', request);\n\n public readonly addSlot = (\n spaceID: string,\n happeningID: string,\n slot: IHappeningSlotWithID,\n ): Observable<void> => {\n const request: IHappeningSlotRequest = {\n spaceID,\n happeningID,\n slot,\n };\n return this.sneatApiService.post('happenings/add_slot', request);\n };\n\n public readonly updateSlot = (\n spaceID: string,\n happeningID: string,\n slot: IHappeningSlotWithID,\n ): Observable<void> => {\n const request: IHappeningSlotRequest = {\n spaceID,\n happeningID,\n slot,\n };\n return this.sneatApiService.post('happenings/update_slot', request);\n };\n\n public deleteHappeningPrices(\n request: IDeleteHappeningPricesRequest,\n ): Observable<void> {\n return this.sneatApiService.post('happenings/delete_prices', request);\n }\n\n public setHappeningPrices(\n request: IHappeningPricesRequest,\n ): Observable<void> {\n return this.sneatApiService.post('happenings/set_prices', request);\n }\n\n public adjustSlot(\n spaceID: string,\n happeningID: string,\n slot: IHappeningSlotWithID,\n date: string,\n ): Observable<void> {\n slot = {\n id: slot.id,\n repeats: 'once',\n start: { time: slot.start?.time || '', date },\n end: slot.end,\n durationMinutes: slot.durationMinutes,\n };\n const request: IHappeningSlotDateRequest = {\n spaceID: spaceID,\n happeningID,\n slot,\n date,\n };\n return this.sneatApiService.post('happenings/adjust_slot', request);\n }\n\n public cancelAdjustment(\n spaceID: string,\n happeningID: string,\n slotID: string,\n date: string,\n ): Observable<void> {\n const request: IHappeningDateSlotIDRequest = {\n spaceID,\n happeningID,\n slotID,\n date,\n };\n return this.sneatApiService.post('happenings/cancel_adjustment', request);\n }\n\n // watchByTeam(space: ISpaceContext): Observable<IHappeningContext[]> {\n // \treturn this.sfs.watchBySpaceID(team.id);\n // }\n\n public watchHappeningByID(\n space: ISpaceContext,\n id: string,\n ): Observable<IHappeningContext> {\n return this.spaceItemService.watchSpaceItemByIdWithSpaceRef(space, id).pipe(\n // tap((happening) => console.log('watchHappeningByID() =>', happening)),\n map((h) => processHappeningContext(h, space)),\n );\n }\n\n public watchUpcomingSingles(\n space: ISpaceContext,\n statuses: HappeningStatus[] = ['active'],\n ): Observable<IHappeningContext[]> {\n return this.watchSingles(space, statuses, {\n field: 'dateMax',\n operator: '>=',\n });\n }\n\n public watchPastSingles(\n space: ISpaceContext,\n statuses: HappeningStatus[] = ['active'],\n ): Observable<IHappeningContext[]> {\n return this.watchSingles(\n space,\n statuses,\n {\n field: 'dateMax',\n operator: '<',\n },\n undefined,\n 100,\n );\n }\n\n public watchRecentlyCreatedSingles(\n space: ISpaceContext,\n statuses: HappeningStatus[] = ['active'],\n ): Observable<IHappeningContext[]> {\n return this.watchSingles(\n space,\n statuses,\n undefined,\n orderBy('createdAt', 'desc'),\n 10,\n );\n }\n\n private watchSingles(\n space: ISpaceContext,\n statuses: HappeningStatus[],\n dateCondition?:\n | {\n field: 'dateMax';\n operator: '>=';\n } // Upcoming\n | {\n field: 'dateMax';\n operator: '<';\n }, // Past\n orderByConstraint?: QueryOrderByConstraint,\n limit?: number,\n ): Observable<IHappeningContext[]> {\n const date = dateToIso(new Date());\n const typeCondition: IFilter = {\n field: 'type',\n operator: '==',\n value: 'single',\n };\n const filter = [typeCondition, HappeningService.statusFilter(statuses)];\n if (dateCondition) {\n filter.push({ ...dateCondition, value: date });\n }\n return this.spaceItemService\n .watchModuleSpaceItemsWithSpaceRef(space, {\n filter,\n orderBy: orderByConstraint ? [orderByConstraint] : undefined,\n limit,\n })\n .pipe(\n tap((happenings) => console.log('watchSingles() =>', happenings)),\n map((happenings) => {\n return happenings.map((h) => processHappeningContext(h, space));\n }),\n );\n }\n\n public watchSinglesOnSpecificDay(\n space: ISpaceContext,\n date: string,\n status: HappeningStatus = 'active',\n ): Observable<IHappeningContext[]> {\n if (!space.id) {\n return throwError(() => 'missing required field \"spaceID\"');\n }\n if (!date) {\n return throwError(() => 'missing required field \"date\"');\n }\n // const teamDate = team.id + ':' + date;\n return this.spaceItemService\n .watchModuleSpaceItemsWithSpaceRef(space, {\n filter: [\n HappeningService.statusFilter([status]),\n { field: 'dates', operator: 'array-contains', value: date },\n ],\n })\n .pipe(\n tap((happenings) => {\n console.log(\n 'watchSinglesOnSpecificDay() =>',\n space.id,\n date,\n status,\n happenings,\n );\n }),\n map((happenings) =>\n happenings.map((h) => processHappeningContext(h, space)),\n ),\n );\n }\n}\n\n@NgModule({\n providers: [HappeningService],\n})\nexport class HappeningServiceModule {}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../libs/extensions/schedulus/shared/src/lib/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC","sourcesContent":["export * from './calendarium-services.module';\nexport * from './calendarium-space.service';\nexport * from './happening.service';\nexport * from './calendar-day.service';\nexport * from './calendar-nav.service';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sneat-extensions-schedulus-shared.js","sourceRoot":"","sources":["../../../../../../libs/extensions/schedulus/shared/src/sneat-extensions-schedulus-shared.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnDestroy, Injector } from '@angular/core';
|
|
2
|
+
import { IContactusSpaceDboAndID } from '@sneat/contactus-core';
|
|
3
|
+
import { UiState } from '@sneat/dto';
|
|
4
|
+
import { WithSpaceInput } from '@sneat/space-services';
|
|
5
|
+
import { IHappeningWithUiState } from '@sneat/mod-schedulus-core';
|
|
6
|
+
import { CalendarDataProvider } from '../../services/calendar-data-provider';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare abstract class CalendarBaseComponent extends WithSpaceInput implements OnDestroy {
|
|
9
|
+
protected $date: import("@angular/core").WritableSignal<Date>;
|
|
10
|
+
protected readonly $isToday: import("@angular/core").Signal<boolean>;
|
|
11
|
+
readonly $contactusSpace: import("@angular/core").WritableSignal<IContactusSpaceDboAndID | undefined>;
|
|
12
|
+
protected readonly $recurringStates: import("@angular/core").WritableSignal<Readonly<Record<string, UiState>>>;
|
|
13
|
+
protected readonly $allRecurrings: import("@angular/core").Signal<readonly IHappeningWithUiState[] | undefined>;
|
|
14
|
+
protected readonly spaceDaysProvider: CalendarDataProvider;
|
|
15
|
+
protected readonly injector: Injector;
|
|
16
|
+
private readonly contactusSpaceService;
|
|
17
|
+
protected constructor();
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
protected setDay(source: string, d: Date): void;
|
|
20
|
+
protected abstract onDayChanged(d: Date): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarBaseComponent, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarBaseComponent, never, never, {}, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CalendarBaseComponent } from './calendar-base.component';
|
|
2
|
+
import { Weekday } from './weekday';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CalendarBriefComponent extends CalendarBaseComponent {
|
|
5
|
+
protected readonly $today: import("@angular/core").WritableSignal<Weekday | undefined>;
|
|
6
|
+
protected readonly $tomorrow: import("@angular/core").WritableSignal<Weekday | undefined>;
|
|
7
|
+
constructor();
|
|
8
|
+
protected onDayChanged(d: Date): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarBriefComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarBriefComponent, "sneat-calendar-brief", never, {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CalendarTab = 'day' | 'week' | 'recurrings' | 'singles';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface IDateChanged {
|
|
2
|
+
readonly date: Date;
|
|
3
|
+
readonly shiftDirection: '' | 'back' | 'forward';
|
|
4
|
+
}
|
|
5
|
+
export declare function getToday(): Date;
|
|
6
|
+
export declare function addDays(d: Date, daysToAdd: number): Date;
|
|
7
|
+
export declare class CalendarStateService {
|
|
8
|
+
private date;
|
|
9
|
+
private readonly dateChanged$;
|
|
10
|
+
readonly dateChanged: import("rxjs").Observable<IDateChanged>;
|
|
11
|
+
constructor();
|
|
12
|
+
shiftDays(shiftDays: number): Date;
|
|
13
|
+
setActiveDate(date: Date): void;
|
|
14
|
+
setToday(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { IMemberContext } from '@sneat/contactus-core';
|
|
3
|
+
import { IHappeningWithUiState } from '@sneat/mod-schedulus-core';
|
|
4
|
+
import { CalendarBaseComponent } from './calendar-base.component';
|
|
5
|
+
import { CalendarTab } from './calendar-component-types';
|
|
6
|
+
import { CalendarFilterComponent } from './components/calendar-filter/calendar-filter.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class CalendarComponent extends CalendarBaseComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy {
|
|
9
|
+
private readonly filterService;
|
|
10
|
+
private readonly calendarStateService;
|
|
11
|
+
private readonly $filter;
|
|
12
|
+
calendarFilterComponent?: CalendarFilterComponent;
|
|
13
|
+
member?: IMemberContext;
|
|
14
|
+
tab: CalendarTab;
|
|
15
|
+
readonly tabChanged: EventEmitter<CalendarTab>;
|
|
16
|
+
readonly dateChanged: EventEmitter<string>;
|
|
17
|
+
protected readonly $isWeekTabActivated: import("@angular/core").WritableSignal<boolean>;
|
|
18
|
+
protected readonly $recurrings: import("@angular/core").Signal<readonly IHappeningWithUiState[] | undefined>;
|
|
19
|
+
constructor();
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
ngAfterViewInit(): void;
|
|
22
|
+
protected segmentChanged(_event?: Event): void;
|
|
23
|
+
protected readonly onDateSelected: (date: Date) => void;
|
|
24
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
25
|
+
private filterRecurrings;
|
|
26
|
+
private hasRepeats;
|
|
27
|
+
private hasWeekday;
|
|
28
|
+
protected onDayChanged(d: Date): void;
|
|
29
|
+
private changeBrowserURL;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent, "sneat-calendar", never, { "member": { "alias": "member"; "required": false; }; "tab": { "alias": "tab"; "required": false; }; }, { "tabChanged": "tabChanged"; "dateChanged": "dateChanged"; }, never, never, true, never>;
|
|
32
|
+
}
|
package/lib/components/calendar/components/calendar-add-buttons/calendar-add-buttons.component.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HappeningType, WeekdayCode2 } from '@sneat/mod-schedulus-core';
|
|
2
|
+
import { WithSpaceInput } from '@sneat/space-services';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CalendarAddButtonsComponent extends WithSpaceInput {
|
|
5
|
+
private readonly scheduleNavService;
|
|
6
|
+
readonly dateID: import("@angular/core").InputSignal<string | undefined>;
|
|
7
|
+
readonly weekdayID: import("@angular/core").InputSignal<WeekdayCode2 | undefined>;
|
|
8
|
+
constructor();
|
|
9
|
+
protected newHappeningUrl(type: HappeningType): string;
|
|
10
|
+
protected goNewHappening(event: Event, type: HappeningType): boolean;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarAddButtonsComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarAddButtonsComponent, "sneat-calendar-add-buttons", never, { "dateID": { "alias": "dateID"; "required": true; "isSignal": true; }; "weekdayID": { "alias": "weekdayID"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IDateChanged, CalendarStateService } from '../../calendar-state.service';
|
|
2
|
+
import { SwipeableBaseComponent } from '../../../swipeable-base.component';
|
|
3
|
+
import { SwipeableDay } from '../../../swipeable-ui';
|
|
4
|
+
export declare abstract class CalendarDayBaseComponent extends SwipeableBaseComponent {
|
|
5
|
+
get oddDay(): SwipeableDay | undefined;
|
|
6
|
+
get evenDay(): SwipeableDay | undefined;
|
|
7
|
+
get activeDay(): SwipeableDay | undefined;
|
|
8
|
+
protected constructor(scheduleSateService: CalendarStateService);
|
|
9
|
+
onDateChanged(changed: IDateChanged): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { ISpaceContext } from '@sneat/space-models';
|
|
3
|
+
import { CalendarDataProvider } from '../../../../services/calendar-data-provider';
|
|
4
|
+
import { NewHappeningParams } from '@sneat/mod-schedulus-core';
|
|
5
|
+
import { CalendarDayBaseComponent } from './calendar-day-base.component';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class CalendarDayCardComponent extends CalendarDayBaseComponent implements OnInit {
|
|
8
|
+
readonly $space: import("@angular/core").InputSignal<ISpaceContext>;
|
|
9
|
+
readonly $spaceDaysProvider: import("@angular/core").InputSignal<CalendarDataProvider>;
|
|
10
|
+
readonly goNew: EventEmitter<NewHappeningParams>;
|
|
11
|
+
set activeDayPlus(value: number);
|
|
12
|
+
constructor();
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
private createSlides;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarDayCardComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarDayCardComponent, "sneat-calendar-day-card", never, { "$space": { "alias": "$space"; "required": true; "isSignal": true; }; "$spaceDaysProvider": { "alias": "$spaceDaysProvider"; "required": true; "isSignal": true; }; "activeDayPlus": { "alias": "activeDayPlus"; "required": false; }; }, { "goNew": "goNew"; }, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { WithSpaceInput } from '@sneat/space-services';
|
|
2
|
+
import { CalendarDataProvider } from '../../../../services/calendar-data-provider';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CalendarDayTabComponent extends WithSpaceInput {
|
|
5
|
+
private readonly scheduleSateService;
|
|
6
|
+
private readonly popoverController;
|
|
7
|
+
private readonly changeDetectorRef;
|
|
8
|
+
private readonly $date;
|
|
9
|
+
protected readonly $dateAsIsoString: import("@angular/core").Signal<string | undefined>;
|
|
10
|
+
readonly $spaceDaysProvider: import("@angular/core").InputSignal<CalendarDataProvider>;
|
|
11
|
+
constructor();
|
|
12
|
+
protected onPickerDateChanged(event: Event): void;
|
|
13
|
+
protected swipe(days: 1 | -1, event: Event): void;
|
|
14
|
+
protected goToday(): void;
|
|
15
|
+
protected goTomorrow(): void;
|
|
16
|
+
private goDate;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarDayTabComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarDayTabComponent, "sneat-day-tab", never, { "$spaceDaysProvider": { "alias": "$spaceDaysProvider"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Weekday } from '../../weekday';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CalendarDayTitleComponent {
|
|
4
|
+
weekday?: Weekday;
|
|
5
|
+
protected get date(): Date | undefined;
|
|
6
|
+
protected isToday(): boolean;
|
|
7
|
+
protected isTomorrow(): boolean;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarDayTitleComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarDayTitleComponent, "sneat-calendar-day-title", never, { "weekday": { "alias": "weekday"; "required": true; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ISlotUIContext, NewHappeningParams } from '@sneat/mod-schedulus-core';
|
|
3
|
+
import { WithSpaceInput } from '@sneat/space-services';
|
|
4
|
+
import { Weekday } from '../../weekday';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CalendarDayComponent extends WithSpaceInput implements OnChanges, OnDestroy {
|
|
7
|
+
private readonly filterService;
|
|
8
|
+
private readonly changeDetectorRef;
|
|
9
|
+
private readonly scheduleNavService;
|
|
10
|
+
private slotsSubscription?;
|
|
11
|
+
private filter;
|
|
12
|
+
readonly $weekday: import("@angular/core").InputSignal<Weekday | undefined>;
|
|
13
|
+
hideAddButtons: boolean;
|
|
14
|
+
hideLastBorder: boolean;
|
|
15
|
+
protected readonly $isToday: import("@angular/core").WritableSignal<boolean>;
|
|
16
|
+
protected readonly $isTomorrow: import("@angular/core").WritableSignal<boolean>;
|
|
17
|
+
allSlots?: ISlotUIContext[];
|
|
18
|
+
slots?: ISlotUIContext[];
|
|
19
|
+
slotsHiddenByFilter?: number;
|
|
20
|
+
constructor();
|
|
21
|
+
protected readonly resetFilter: (event: Event) => void;
|
|
22
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
23
|
+
private applyFilter;
|
|
24
|
+
private subscribeForSlots;
|
|
25
|
+
private readonly processSlots;
|
|
26
|
+
private readonly logPrefix;
|
|
27
|
+
protected goNewHappening(params: NewHappeningParams): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarDayComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarDayComponent, "sneat-calendar-day", never, { "$weekday": { "alias": "$weekday"; "required": true; "isSignal": true; }; "hideAddButtons": { "alias": "hideAddButtons"; "required": false; }; "hideLastBorder": { "alias": "hideLastBorder"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
|
2
|
+
import { IContactWithBriefAndSpace } from '@sneat/contactus-core';
|
|
3
|
+
import { WeekdayCode2 } from '@sneat/mod-schedulus-core';
|
|
4
|
+
import { ISpaceContext } from '@sneat/space-models';
|
|
5
|
+
import { WeekdaysFormBase } from '../../../weekdays/weekdays-form-base';
|
|
6
|
+
import { ICalendarFilter } from './calendar-filter';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class CalendarFilterComponent extends WeekdaysFormBase {
|
|
9
|
+
private readonly filterService;
|
|
10
|
+
protected readonly $expanded: import("@angular/core").WritableSignal<boolean>;
|
|
11
|
+
accordionValue?: string;
|
|
12
|
+
private resetting;
|
|
13
|
+
space?: ISpaceContext;
|
|
14
|
+
showWeekdays: boolean;
|
|
15
|
+
showRepeats: boolean;
|
|
16
|
+
readonly text: FormControl<string | null>;
|
|
17
|
+
protected readonly $repeats: import("@angular/core").Signal<readonly string[]>;
|
|
18
|
+
contactID: string;
|
|
19
|
+
selectedContacts: IContactWithBriefAndSpace[];
|
|
20
|
+
contacts?: IContactWithBriefAndSpace[];
|
|
21
|
+
protected readonly $repeatsWeekly: import("@angular/core").Signal<boolean>;
|
|
22
|
+
protected readonly $repeatsMonthly: import("@angular/core").Signal<boolean>;
|
|
23
|
+
protected readonly $repeatsQuarterly: import("@angular/core").Signal<boolean>;
|
|
24
|
+
protected readonly $repeatsYearly: import("@angular/core").Signal<boolean>;
|
|
25
|
+
protected readonly $filter: import("@angular/core").WritableSignal<ICalendarFilter>;
|
|
26
|
+
protected readonly $contactIDs: import("@angular/core").Signal<readonly string[]>;
|
|
27
|
+
protected readonly $hasFilter: import("@angular/core").Signal<boolean>;
|
|
28
|
+
constructor();
|
|
29
|
+
protected onSelectedContactsChanged(contactIDs: readonly string[]): void;
|
|
30
|
+
private readonly onFilterChanged;
|
|
31
|
+
protected clearFilter(event?: Event): void;
|
|
32
|
+
protected accordionChanged(event: Event): void;
|
|
33
|
+
protected repeatChanged(event: Event): void;
|
|
34
|
+
protected onTextKeyUp(): void;
|
|
35
|
+
protected onWeekdayChanged(wd: WeekdayCode2, checked: boolean): void;
|
|
36
|
+
protected emitChanged(): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarFilterComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarFilterComponent, "sneat-calendar-filter", never, { "space": { "alias": "space"; "required": true; }; "showWeekdays": { "alias": "showWeekdays"; "required": false; }; "showRepeats": { "alias": "showRepeats"; "required": false; }; }, {}, never, never, true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WeekdayCode2, IHappeningContext } from '@sneat/mod-schedulus-core';
|
|
2
|
+
export interface ICalendarFilter {
|
|
3
|
+
readonly text: string;
|
|
4
|
+
readonly contactIDs: readonly string[];
|
|
5
|
+
readonly weekdays: readonly WeekdayCode2[];
|
|
6
|
+
readonly repeats: readonly string[];
|
|
7
|
+
readonly showRecurrings: boolean;
|
|
8
|
+
readonly showSingles: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function isMatchingScheduleFilter(h: IHappeningContext, f?: ICalendarFilter): boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { IContactWithBriefAndSpace } from '@sneat/contactus-core';
|
|
3
|
+
import { ContactusModuleBaseComponent } from '@sneat/contactus-shared';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ContactsFilterComponent extends ContactusModuleBaseComponent {
|
|
6
|
+
readonly $contactIDs: import("@angular/core").InputSignal<readonly string[]>;
|
|
7
|
+
protected readonly $hasContactIDs: import("@angular/core").Signal<boolean>;
|
|
8
|
+
contactIDs: readonly string[];
|
|
9
|
+
readonly contactIDsChange: EventEmitter<readonly string[]>;
|
|
10
|
+
protected readonly $tab: import("@angular/core").WritableSignal<"contacts" | "members">;
|
|
11
|
+
protected onTabChanged(event: CustomEvent): void;
|
|
12
|
+
contactID: string;
|
|
13
|
+
protected readonly $members: import("@angular/core").WritableSignal<readonly IContactWithBriefAndSpace[] | undefined>;
|
|
14
|
+
constructor();
|
|
15
|
+
private onContactusSpaceChanged;
|
|
16
|
+
protected clearSelectedContacts(): void;
|
|
17
|
+
protected onContactCheckChanged(event: Event): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContactsFilterComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContactsFilterComponent, "sneat-contacts-filter", never, { "$contactIDs": { "alias": "$contactIDs"; "required": true; "isSignal": true; }; }, { "contactIDsChange": "contactIDsChange"; }, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ISpaceContext } from '@sneat/space-models';
|
|
2
|
+
import { CalendarDataProvider } from '../../../../services/calendar-data-provider';
|
|
3
|
+
import { SwipeableBaseComponent } from '../../../swipeable-base.component';
|
|
4
|
+
import { SwipeableWeek } from '../../../swipeable-ui';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CalendarWeekCardComponent extends SwipeableBaseComponent {
|
|
7
|
+
readonly $space: import("@angular/core").InputSignal<ISpaceContext>;
|
|
8
|
+
readonly $spaceDaysProvider: import("@angular/core").InputSignal<CalendarDataProvider>;
|
|
9
|
+
get oddWeek(): SwipeableWeek;
|
|
10
|
+
get evenWeek(): SwipeableWeek;
|
|
11
|
+
constructor();
|
|
12
|
+
private createSlides;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarWeekCardComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarWeekCardComponent, "sneat-week-card", never, { "$space": { "alias": "$space"; "required": true; "isSignal": true; }; "$spaceDaysProvider": { "alias": "$spaceDaysProvider"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WithSpaceInput } from '@sneat/space-services';
|
|
2
|
+
import { CalendarDataProvider } from '../../../../services/calendar-data-provider';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CalendarWeekTabComponent extends WithSpaceInput {
|
|
5
|
+
readonly $spaceDaysProvider: import("@angular/core").InputSignal<CalendarDataProvider>;
|
|
6
|
+
constructor();
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarWeekTabComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarWeekTabComponent, "sneat-week-tab", never, { "$spaceDaysProvider": { "alias": "$spaceDaysProvider"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SwipeableWeek } from '../../../swipeable-ui';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CalendarWeekTitleComponent {
|
|
4
|
+
week?: SwipeableWeek;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarWeekTitleComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarWeekTitleComponent, "sneat-calendar-week-title", never, { "week": { "alias": "week"; "required": true; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ISpaceContext } from '@sneat/space-models';
|
|
3
|
+
import { CalendarDataProvider } from '../../../../services/calendar-data-provider';
|
|
4
|
+
import { NewHappeningParams } from '@sneat/mod-schedulus-core';
|
|
5
|
+
import { Week } from '../../../week';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class CalendarWeekComponent implements OnChanges {
|
|
8
|
+
readonly $space: import("@angular/core").InputSignal<ISpaceContext | undefined>;
|
|
9
|
+
readonly $week: import("@angular/core").InputSignal<Week>;
|
|
10
|
+
readonly $spaceDaysProvider: import("@angular/core").InputSignal<CalendarDataProvider>;
|
|
11
|
+
readonly goNew: EventEmitter<NewHappeningParams>;
|
|
12
|
+
readonly dateSelected: EventEmitter<Date>;
|
|
13
|
+
protected readonly $weekdays: import("@angular/core").WritableSignal<readonly import("../../weekday").Weekday[]>;
|
|
14
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
15
|
+
private onSpaceChanged;
|
|
16
|
+
private recreateWeekdays;
|
|
17
|
+
private onWeekInputChanged;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarWeekComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarWeekComponent, "sneat-calendar-week", never, { "$space": { "alias": "$space"; "required": true; "isSignal": true; }; "$week": { "alias": "$week"; "required": true; "isSignal": true; }; "$spaceDaysProvider": { "alias": "$spaceDaysProvider"; "required": true; "isSignal": true; }; }, { "goNew": "goNew"; "dateSelected": "dateSelected"; }, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { HappeningType } from '@sneat/mod-schedulus-core';
|
|
3
|
+
import { ISlotUIContext } from '@sneat/mod-schedulus-core';
|
|
4
|
+
import { ISpaceContext } from '@sneat/space-models';
|
|
5
|
+
import { SneatBaseComponent } from '@sneat/ui';
|
|
6
|
+
import { CalendarDay } from '../../../../services/calendar-day';
|
|
7
|
+
import { Weekday } from '../../weekday';
|
|
8
|
+
import { ICalendarFilter } from '../calendar-filter/calendar-filter';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class CalendarWeekdayComponent extends SneatBaseComponent {
|
|
11
|
+
readonly $space: import("@angular/core").InputSignal<ISpaceContext | undefined>;
|
|
12
|
+
readonly $weekday: import("@angular/core").InputSignal<Weekday>;
|
|
13
|
+
protected readonly $day: import("@angular/core").Signal<CalendarDay | undefined>;
|
|
14
|
+
readonly dateSelected: EventEmitter<Date>;
|
|
15
|
+
protected readonly $filter: import("@angular/core").WritableSignal<ICalendarFilter>;
|
|
16
|
+
private readonly scheduleNavService;
|
|
17
|
+
constructor();
|
|
18
|
+
protected showSlot(slot: ISlotUIContext, day: CalendarDay | undefined, filter: ICalendarFilter): boolean;
|
|
19
|
+
protected onDateSelected(): void;
|
|
20
|
+
protected goNewHappening(type: HappeningType): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarWeekdayComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarWeekdayComponent, "sneat-calendar-weekday", never, { "$space": { "alias": "$space"; "required": true; "isSignal": true; }; "$weekday": { "alias": "$weekday"; "required": true; "isSignal": true; }; }, { "dateSelected": "dateSelected"; }, never, never, true, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IContactusSpaceDboAndID } from '@sneat/contactus-core';
|
|
2
|
+
import { WithSpaceInput } from '@sneat/space-services';
|
|
3
|
+
import { ISlotUIContext } from '@sneat/mod-schedulus-core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DaySlotItemComponent extends WithSpaceInput {
|
|
6
|
+
private readonly popoverController;
|
|
7
|
+
private readonly calendarNavService;
|
|
8
|
+
readonly $slotContext: import("@angular/core").InputSignal<ISlotUIContext>;
|
|
9
|
+
dateID?: string;
|
|
10
|
+
mode: 'full' | 'brief';
|
|
11
|
+
color?: 'light';
|
|
12
|
+
contactusSpace?: IContactusSpaceDboAndID;
|
|
13
|
+
protected readonly $isCanceled: import("@angular/core").Signal<boolean>;
|
|
14
|
+
constructor();
|
|
15
|
+
protected onSlotClicked(event: Event): void;
|
|
16
|
+
protected showContextMenu(event: MouseEvent | TouchEvent | PointerEvent | CustomEvent<unknown> | undefined): Promise<void>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaySlotItemComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaySlotItemComponent, "sneat-day-slot-item", never, { "$slotContext": { "alias": "$slotContext"; "required": true; "isSignal": true; }; "dateID": { "alias": "dateID"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "color": { "alias": "color"; "required": false; }; "contactusSpace": { "alias": "contactusSpace"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IContactusSpaceDboAndID } from '@sneat/contactus-core';
|
|
2
|
+
import { WithSpaceInput } from '@sneat/space-services';
|
|
3
|
+
import { HappeningUIState, IHappeningContext } from '@sneat/mod-schedulus-core';
|
|
4
|
+
import { ISlotUIContext } from '@sneat/mod-schedulus-core';
|
|
5
|
+
import { ICancelHappeningRequest } from '../../../../services/happening.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class SlotContextMenuComponent extends WithSpaceInput {
|
|
8
|
+
contactusSpace?: IContactusSpaceDboAndID;
|
|
9
|
+
dateID?: string;
|
|
10
|
+
slotContext?: ISlotUIContext;
|
|
11
|
+
protected readonly $happeningState: import("@angular/core").WritableSignal<HappeningUIState>;
|
|
12
|
+
get isCancelled(): boolean;
|
|
13
|
+
protected readonly $disabled: import("@angular/core").Signal<boolean>;
|
|
14
|
+
private readonly popoverController;
|
|
15
|
+
private readonly happeningService;
|
|
16
|
+
private readonly contactsSelectorService;
|
|
17
|
+
private readonly happeningSlotModalService;
|
|
18
|
+
constructor();
|
|
19
|
+
protected assign(event: Event, _target?: 'member'): void;
|
|
20
|
+
protected move(): void;
|
|
21
|
+
protected cancelAdjustment(event: Event): void;
|
|
22
|
+
protected edit(event: Event, editMode: 'series' | 'single'): void;
|
|
23
|
+
delete(event: Event): void;
|
|
24
|
+
private dismissPopover;
|
|
25
|
+
archive(): void;
|
|
26
|
+
private stopEvent;
|
|
27
|
+
private createSlotRefRequest;
|
|
28
|
+
private createSlotRequest;
|
|
29
|
+
private createDeleteSlotRequest;
|
|
30
|
+
createCancellationRequest(event: Event, mode: 'whole' | 'slot'): ICancelHappeningRequest;
|
|
31
|
+
private setHappeningStatus;
|
|
32
|
+
revokeCancellation(event: Event): void;
|
|
33
|
+
markCanceled(event: Event, mode: 'whole' | 'slot'): void;
|
|
34
|
+
notImplemented(): void;
|
|
35
|
+
numberOfSlots(happening?: IHappeningContext): number;
|
|
36
|
+
private readonly onContactAdded;
|
|
37
|
+
private readonly onContactRemoved;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SlotContextMenuComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlotContextMenuComponent, "sneat-slot-context-menu", never, { "contactusSpace": { "alias": "contactusSpace"; "required": true; }; "dateID": { "alias": "dateID"; "required": false; }; "slotContext": { "alias": "slotContext"; "required": false; }; }, {}, never, never, true, never>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IContactusSpaceDboAndID } from '@sneat/contactus-core';
|
|
2
|
+
import { IHappeningWithUiState } from '@sneat/mod-schedulus-core';
|
|
3
|
+
import { ISpaceContext } from '@sneat/space-models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class RecurringsTabComponent {
|
|
6
|
+
readonly $space: import("@angular/core").InputSignal<ISpaceContext | undefined>;
|
|
7
|
+
readonly $recurrings: import("@angular/core").InputSignal<readonly IHappeningWithUiState[] | undefined>;
|
|
8
|
+
readonly $contactusSpace: import("@angular/core").InputSignal<IContactusSpaceDboAndID | undefined>;
|
|
9
|
+
readonly $allRecurrings: import("@angular/core").InputSignal<readonly IHappeningWithUiState[] | undefined>;
|
|
10
|
+
protected readonly $numberOfHidden: import("@angular/core").Signal<number>;
|
|
11
|
+
private filterService;
|
|
12
|
+
protected readonly resetFilter: (event: Event) => void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RecurringsTabComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RecurringsTabComponent, "sneat-recurrings-tab", never, { "$space": { "alias": "$space"; "required": true; "isSignal": true; }; "$recurrings": { "alias": "$recurrings"; "required": true; "isSignal": true; }; "$contactusSpace": { "alias": "$contactusSpace"; "required": true; "isSignal": true; }; "$allRecurrings": { "alias": "$allRecurrings"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { IContactusSpaceDboAndID } from '@sneat/contactus-core';
|
|
3
|
+
import { IHappeningContext } from '@sneat/mod-schedulus-core';
|
|
4
|
+
import { WithSpaceInput } from '@sneat/space-services';
|
|
5
|
+
import { CalendarFilterService } from '../../../calendar-filter.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class SingleHappeningsListComponent extends WithSpaceInput implements OnChanges {
|
|
8
|
+
readonly filterService: CalendarFilterService;
|
|
9
|
+
happenings?: IHappeningContext[];
|
|
10
|
+
readonly $contactusSpace: import("@angular/core").InputSignal<IContactusSpaceDboAndID | undefined>;
|
|
11
|
+
private filter?;
|
|
12
|
+
protected happeningsMatchingFilter?: IHappeningContext[];
|
|
13
|
+
constructor();
|
|
14
|
+
protected readonly happeningID: (_: number, h: IHappeningContext) => string;
|
|
15
|
+
protected get numberOfHidden(): number;
|
|
16
|
+
protected onHappeningRemoved(id: string): void;
|
|
17
|
+
private applyFilter;
|
|
18
|
+
protected clearFilter(event: Event): void;
|
|
19
|
+
ngOnChanges(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SingleHappeningsListComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SingleHappeningsListComponent, "sneat-single-happenings-list", never, { "happenings": { "alias": "happenings"; "required": true; }; "$contactusSpace": { "alias": "$contactusSpace"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { IContactusSpaceDboAndID } from '@sneat/contactus-core';
|
|
3
|
+
import { ISlotUIEvent } from '@sneat/mod-schedulus-core';
|
|
4
|
+
import { IHappeningContext } from '@sneat/mod-schedulus-core';
|
|
5
|
+
import { WithSpaceInput } from '@sneat/space-services';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class SinglesTabComponent extends WithSpaceInput implements OnChanges, OnDestroy {
|
|
8
|
+
private readonly happeningService;
|
|
9
|
+
private readonly changeDetectorRef;
|
|
10
|
+
private upcomingSinglesSubscription?;
|
|
11
|
+
protected upcomingSingles?: IHappeningContext[];
|
|
12
|
+
private pastSinglesSubscription?;
|
|
13
|
+
protected pastSingles?: IHappeningContext[];
|
|
14
|
+
private recentSinglesSubscription?;
|
|
15
|
+
protected recentSingles?: IHappeningContext[];
|
|
16
|
+
tab: 'upcoming' | 'past' | 'recent';
|
|
17
|
+
readonly slotClicked: EventEmitter<ISlotUIEvent>;
|
|
18
|
+
onDateSelected?: (date: Date) => void;
|
|
19
|
+
readonly $contactusSpace: import("@angular/core").InputSignal<IContactusSpaceDboAndID | undefined>;
|
|
20
|
+
constructor();
|
|
21
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
22
|
+
protected onTabChanged(event: Event): void;
|
|
23
|
+
private watchUpcomingSingles;
|
|
24
|
+
private watchPastSingles;
|
|
25
|
+
private watchRecentSingles;
|
|
26
|
+
private watchSingles;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SinglesTabComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SinglesTabComponent, "sneat-singles-tab", never, { "onDateSelected": { "alias": "onDateSelected"; "required": false; }; "$contactusSpace": { "alias": "$contactusSpace"; "required": true; "isSignal": true; }; }, { "slotClicked": "slotClicked"; }, never, never, true, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ISlotAdjustment, ITiming } from '@sneat/mod-schedulus-core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TimingBadgeComponent {
|
|
4
|
+
readonly $isCanceled: import("@angular/core").InputSignal<boolean>;
|
|
5
|
+
readonly $timing: import("@angular/core").InputSignal<ITiming>;
|
|
6
|
+
readonly $adjustment: import("@angular/core").InputSignal<ISlotAdjustment | undefined>;
|
|
7
|
+
protected readonly $startTime: import("@angular/core").Signal<string | undefined>;
|
|
8
|
+
protected readonly $endTime: import("@angular/core").Signal<string | undefined>;
|
|
9
|
+
protected readonly $hasEnd: import("@angular/core").Signal<boolean>;
|
|
10
|
+
protected readonly $hasEndTime: import("@angular/core").Signal<boolean>;
|
|
11
|
+
protected readonly $adjustedStartTime: import("@angular/core").Signal<string | undefined>;
|
|
12
|
+
protected readonly $adjustedEndTime: import("@angular/core").Signal<string | undefined>;
|
|
13
|
+
protected readonly $hasAdjustedEnd: import("@angular/core").Signal<boolean>;
|
|
14
|
+
protected readonly $hasAdjustedEndTime: import("@angular/core").Signal<boolean>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimingBadgeComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimingBadgeComponent, "sneat-timing-badge", never, { "$isCanceled": { "alias": "$isCanceled"; "required": true; "isSignal": true; }; "$timing": { "alias": "$timing"; "required": true; "isSignal": true; }; "$adjustment": { "alias": "$adjustment"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VirtualSliderAnimationStates } from '@sneat/components';
|
|
2
|
+
import { WeekdayCode2 } from '@sneat/mod-schedulus-core';
|
|
3
|
+
import { Weekday } from './calendar/weekday';
|
|
4
|
+
import { Parity } from './swipeable-ui';
|
|
5
|
+
export declare function isToday(date: Date): boolean;
|
|
6
|
+
export declare function isTomorrow(date?: Date): boolean;
|
|
7
|
+
export declare function areSameDates(d1: Date, d2: Date): boolean;
|
|
8
|
+
export declare function getWdDate(wd: WeekdayCode2, activeWd: WeekdayCode2, activeDate: Date): Date;
|
|
9
|
+
export declare const createWeekdays: () => readonly Weekday[];
|
|
10
|
+
export declare function animationState(activeParity: Parity, direction: 'forward' | 'back'): VirtualSliderAnimationStates;
|