@powerportalspro/react-calendar 12.0.0 → 13.0.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/dist/index.d.cts CHANGED
@@ -249,6 +249,17 @@ interface CalendarProps {
249
249
  * {@link onAppointmentChange} does.
250
250
  */
251
251
  editable?: boolean;
252
+ /**
253
+ * Whether an appointment's details link to its page, and its Regarding to the record's page,
254
+ * registered with `AddRecordPage`. Default `true`; a table with no page shows no link. The Blazor
255
+ * Calendar's `ShowRecordLinks` is its twin.
256
+ */
257
+ showRecordLinks?: boolean;
258
+ /**
259
+ * Follows those links in the app — `(url) => navigate(url)` for react-router — on a plain click.
260
+ * Without it, and for a click that opens a new tab, the browser follows them.
261
+ */
262
+ onNavigate?: (url: string) => void;
252
263
  /**
253
264
  * The tables an appointment's Regarding can name a record of, in the order its form's table
254
265
  * picker lists them. Tables Regarding can't point to are ignored. Every one it can when omitted;
@@ -314,7 +325,7 @@ interface CalendarProps {
314
325
  * An Outlook-style calendar of appointments — and of tasks and any other table it is given — laid out
315
326
  * by day, week or month, or as an agenda.
316
327
  */
317
- declare function Calendar({ appointments, regarding, tables, defaultTables, viewIds, multiTableViewIds, defaultViewId, customViewDefinitions, matchParties, series, templates, forms, formLocation, viewSort, allowFiltering, allowSavedViews, savedViewsKey, signInUrl, allowSearch, includeSearchInPersistedState, defaultLayout, layouts, editable, regardingTables, height, onAppointmentClick, appointmentDetails, appointmentTooltip, onRangeSelect, onAppointmentChange, onRangeChange, persistedStateQueryParameter, children, }: CalendarProps): react_jsx_runtime.JSX.Element;
328
+ declare function Calendar({ appointments, regarding, tables, defaultTables, viewIds, multiTableViewIds, defaultViewId, customViewDefinitions, matchParties, series, templates, forms, formLocation, viewSort, allowFiltering, allowSavedViews, savedViewsKey, signInUrl, allowSearch, includeSearchInPersistedState, defaultLayout, layouts, editable, showRecordLinks, onNavigate, regardingTables, height, onAppointmentClick, appointmentDetails, appointmentTooltip, onRangeSelect, onAppointmentChange, onRangeChange, persistedStateQueryParameter, children, }: CalendarProps): react_jsx_runtime.JSX.Element;
318
329
 
319
330
  interface CalendarButtonProps {
320
331
  /** Called when the button is clicked, with the calendar as it is then. */
package/dist/index.d.ts CHANGED
@@ -249,6 +249,17 @@ interface CalendarProps {
249
249
  * {@link onAppointmentChange} does.
250
250
  */
251
251
  editable?: boolean;
252
+ /**
253
+ * Whether an appointment's details link to its page, and its Regarding to the record's page,
254
+ * registered with `AddRecordPage`. Default `true`; a table with no page shows no link. The Blazor
255
+ * Calendar's `ShowRecordLinks` is its twin.
256
+ */
257
+ showRecordLinks?: boolean;
258
+ /**
259
+ * Follows those links in the app — `(url) => navigate(url)` for react-router — on a plain click.
260
+ * Without it, and for a click that opens a new tab, the browser follows them.
261
+ */
262
+ onNavigate?: (url: string) => void;
252
263
  /**
253
264
  * The tables an appointment's Regarding can name a record of, in the order its form's table
254
265
  * picker lists them. Tables Regarding can't point to are ignored. Every one it can when omitted;
@@ -314,7 +325,7 @@ interface CalendarProps {
314
325
  * An Outlook-style calendar of appointments — and of tasks and any other table it is given — laid out
315
326
  * by day, week or month, or as an agenda.
316
327
  */
317
- declare function Calendar({ appointments, regarding, tables, defaultTables, viewIds, multiTableViewIds, defaultViewId, customViewDefinitions, matchParties, series, templates, forms, formLocation, viewSort, allowFiltering, allowSavedViews, savedViewsKey, signInUrl, allowSearch, includeSearchInPersistedState, defaultLayout, layouts, editable, regardingTables, height, onAppointmentClick, appointmentDetails, appointmentTooltip, onRangeSelect, onAppointmentChange, onRangeChange, persistedStateQueryParameter, children, }: CalendarProps): react_jsx_runtime.JSX.Element;
328
+ declare function Calendar({ appointments, regarding, tables, defaultTables, viewIds, multiTableViewIds, defaultViewId, customViewDefinitions, matchParties, series, templates, forms, formLocation, viewSort, allowFiltering, allowSavedViews, savedViewsKey, signInUrl, allowSearch, includeSearchInPersistedState, defaultLayout, layouts, editable, showRecordLinks, onNavigate, regardingTables, height, onAppointmentClick, appointmentDetails, appointmentTooltip, onRangeSelect, onAppointmentChange, onRangeChange, persistedStateQueryParameter, children, }: CalendarProps): react_jsx_runtime.JSX.Element;
318
329
 
319
330
  interface CalendarButtonProps {
320
331
  /** Called when the button is clicked, with the calendar as it is then. */