react-semaphor 0.1.610 → 0.1.611
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/.gate-build-input +1 -0
- package/dist/analytics-protocol/index.js +1 -1
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +2 -2
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/appearance-provider-nxBjHmOo.js +708 -0
- package/dist/chunks/{assistant-chat-BqdXuU42.js → assistant-chat-DGaSGyx_.js} +13 -13
- package/dist/chunks/{attachment-filter-line-ClTS4GvQ.js → attachment-filter-line-CVkfzZF9.js} +1 -1
- package/dist/chunks/{bookmark-impact-BAYpeKb-.js → bookmark-impact-DnhE262D.js} +1 -1
- package/dist/chunks/{bookmark-state-B3lDH0E_.js → bookmark-state-CrJDZi3y.js} +1 -1
- package/dist/chunks/{brand-9AazkIHH.js → brand-BjIkbHgw.js} +1 -1
- package/dist/chunks/{card-filter-builder-CpSD-8yA.js → card-filter-builder-9xCSYFNv.js} +2 -2
- package/dist/chunks/{check-input-D36evEN2.js → check-input-DmKJoLY-.js} +1 -1
- package/dist/chunks/{comparison-window-caption-WzGsqv4n.js → comparison-window-caption-DImvKgCt.js} +1 -1
- package/dist/chunks/currency-presentation-binding-DCHJ2sRD.js +1 -0
- package/dist/chunks/{custom-visual-inputs-obG5lDlW.js → custom-visual-inputs-C2BRX8l_.js} +1 -1
- package/dist/chunks/{custom-visual-write-fOcTV3dl.js → custom-visual-write-CYA-Y9YF.js} +1 -1
- package/dist/chunks/{dashboard-BVYXrYaU.js → dashboard-DEsWObFS.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CVjONGRj.js → dashboard-briefing-launcher-PzvxJm1T.js} +7 -7
- package/dist/chunks/{dashboard-controls-Cca_ra4d.js → dashboard-controls-DPVMjbpG.js} +2 -2
- package/dist/chunks/{dashboard-json-CUHyo-if.js → dashboard-json-CWJ6drfv.js} +1 -1
- package/dist/chunks/{dashboard-temporal-snapshot-DyRl61Yv.js → dashboard-temporal-snapshot-C2y8qWoK.js} +1 -1
- package/dist/chunks/dates-ByeRG2Tz.js +1 -0
- package/dist/chunks/edit-dashboard-visual-BxwhXWe2.js +103 -0
- package/dist/chunks/{filter-line-W-qQAjke.js → filter-line-BpaHAj8x.js} +1 -1
- package/dist/chunks/filter-reach-preview-C9WDhZaV.js +1 -0
- package/dist/chunks/{filter-value-text-DQwYZHz0.js → filter-value-text-vD4CXg9H.js} +1 -1
- package/dist/chunks/{kpi-trend-rule-DSVBCJDV.js → kpi-trend-rule-H3cLKxwe.js} +1 -1
- package/dist/chunks/matrix-analytical-definition-B6Auo_Up.js +1 -0
- package/dist/chunks/{matrix-member-presentation-Chz6uGYz.js → matrix-member-presentation-B6wzUGA9.js} +1 -1
- package/dist/chunks/matrix-operation-contract-1dtkh4UB.js +1 -0
- package/dist/chunks/{metric-formatting-BhmZiuD8.js → metric-formatting-BF1b9EEC.js} +1 -1
- package/dist/chunks/numeric-range-options-B_EcRH8C.js +1 -0
- package/dist/chunks/{palette-Bg_6xero.js → palette-DLYro9VS.js} +1 -1
- package/dist/chunks/pivot-result-contract-expectations-Bl55bAD9.js +1 -0
- package/dist/chunks/{pivot-result-identity-DRhVJMsF.js → pivot-result-identity-CAP9xTVF.js} +1 -1
- package/dist/chunks/{raw-temporal-value-B4Md6Xfb.js → raw-temporal-value-DqmEQqi9.js} +1 -1
- package/dist/chunks/report-preferences-dialog-CV0NMmo0.js +1 -0
- package/dist/chunks/report-runtime-context-DUyoI64N.js +1 -0
- package/dist/chunks/resolve-dashboard-input-context-D3lfJtPf.js +8 -0
- package/dist/chunks/{sandbox-host-BnadJPB9.js → sandbox-host-DTsb-07w.js} +1 -1
- package/dist/chunks/saved-dashboard-context-pT-jLe_M.js +1 -0
- package/dist/chunks/{selection-filter-compiler-BxtEEB6Z.js → selection-filter-compiler-D2O1G8aM.js} +1 -1
- package/dist/chunks/semaphor-ready-indicator-X4VBj9J1.js +542 -0
- package/dist/chunks/{slider-DD5nxK4N.js → slider-BuDy7URL.js} +1 -1
- package/dist/chunks/stored-dashboard-CtbTHA6d.js +1 -0
- package/dist/chunks/table-cell-text-CcdZI7W5.js +1 -0
- package/dist/chunks/{table-export-sheet-CthBUHu4.js → table-export-sheet-CR05ORx7.js} +1 -1
- package/dist/chunks/{token-types-BM0mpZce.js → token-types-DapH4m_I.js} +1 -1
- package/dist/chunks/validators-D6oX9c_4.js +1 -0
- package/dist/chunks/{variable-draft-C8xXjy0M.js → variable-draft-BugdJvFc.js} +1 -1
- package/dist/chunks/work-days-BbCJDTJK.js +1 -0
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +1 -1
- package/dist/extensions/index.js +1 -1
- package/dist/format-utils/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/components/surfboard/index.d.ts +1 -0
- package/dist/types/components/surfboard/preferences/work-day-toggles.d.ts +16 -0
- package/dist/types/components/ui-custom/date-range-presets.d.ts +4 -1
- package/dist/types/index.js +1 -1
- package/dist/types/lib/stores/dashboard-store.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/comparison-choices.d.ts +7 -0
- package/dist/types/shared/analytics-protocol/comparison-placement.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/relative-date/presets.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/relative-date/resolve.d.ts +4 -2
- package/dist/types/shared/analytics-protocol/relative-date/schemas.d.ts +7 -0
- package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +2 -1
- package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +9 -1
- package/dist/types/shared/dashboard-authoring/card-data-source/data-source-selection.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +16 -0
- package/dist/types/shared/dashboard-authoring/filter-model/filter-values.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/frame-cards.d.ts +29 -0
- package/dist/types/shared/dashboard-authoring/operations/card-operations.d.ts +13 -10
- package/dist/types/shared/dashboard-authoring/operations/operation-sentences.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +16 -1
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +12 -1
- package/dist/types/shared/dashboard-authoring/table-sheet-shape.d.ts +53 -3
- package/dist/types/shared/dashboard-viewer/table-column-move.d.ts +7 -0
- package/dist/types/shared/extensions/saved-refs.d.ts +1 -15
- package/dist/types/shared/report-runtime-context/index.d.ts +1 -0
- package/dist/types/shared/report-runtime-context/report-runtime-context.d.ts +22 -1
- package/dist/types/shared/report-runtime-context/work-days.d.ts +31 -0
- package/dist/types/shared/temporal/calendar-periods.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunks/appearance-provider-CxsEFvNA.js +0 -703
- package/dist/chunks/currency-presentation-binding-CUh82q48.js +0 -1
- package/dist/chunks/dates-Cym78NYg.js +0 -1
- package/dist/chunks/edit-dashboard-visual-DRLguKmV.js +0 -103
- package/dist/chunks/filter-reach-preview-IFwTq7Hh.js +0 -1
- package/dist/chunks/layout-grid-Ctnv2-au.js +0 -6
- package/dist/chunks/matrix-analytical-definition-jn075ooo.js +0 -1
- package/dist/chunks/matrix-operation-contract-DceN49RX.js +0 -1
- package/dist/chunks/numeric-range-options-Drc1EZ6H.js +0 -1
- package/dist/chunks/pivot-result-contract-expectations-D_ane7I2.js +0 -1
- package/dist/chunks/report-preferences-dialog-DQNwImoN.js +0 -1
- package/dist/chunks/report-runtime-context-CkxgMKr6.js +0 -1
- package/dist/chunks/resolve-dashboard-input-context-Djm2WgEF.js +0 -8
- package/dist/chunks/saved-dashboard-context-EwdvXIE6.js +0 -1
- package/dist/chunks/semaphor-ready-indicator-BJR23T8j.js +0 -532
- package/dist/chunks/stored-dashboard--6xPxYpX.js +0 -1
- package/dist/chunks/table-cell-text-C5J5E_Am.js +0 -1
- package/dist/chunks/validators-U8IL8djK.js +0 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { WeekStart } from './report-runtime-context.js';
|
|
2
|
+
/**
|
|
3
|
+
* The weekdays a business works, numbered as `weekStart` is (0 Sunday to 6
|
|
4
|
+
* Saturday): sorted, no duplicates, at least one day. Week start never moves
|
|
5
|
+
* them.
|
|
6
|
+
*/
|
|
7
|
+
export type WorkDays = WeekStart[];
|
|
8
|
+
/** Monday to Friday: what a calendar without `workDays` works (BD-D5, BD-INV-3). */
|
|
9
|
+
export declare const DEFAULT_WORK_DAYS: readonly WeekStart[];
|
|
10
|
+
/** The weekdays a calendar works: its own, or Monday to Friday (BD-D5). */
|
|
11
|
+
export declare function calendarWorkDays(calendar: {
|
|
12
|
+
workDays?: readonly WeekStart[];
|
|
13
|
+
}): readonly WeekStart[];
|
|
14
|
+
/** A weekday's name, 0 Sunday to 6 Saturday. */
|
|
15
|
+
export declare function weekdayName(day: WeekStart): string;
|
|
16
|
+
/** A weekday's three-letter name, as a Working days toggle shows it. */
|
|
17
|
+
export declare function weekdayShortName(day: WeekStart): string;
|
|
18
|
+
/** The seven weekdays in week-start order, as the Working days toggles show them (BD-D9). */
|
|
19
|
+
export declare function weekdaysInWeekOrder(weekStart: WeekStart): WeekStart[];
|
|
20
|
+
/**
|
|
21
|
+
* Working days with one day turned on or off, sorted (BD-D9). The last
|
|
22
|
+
* working day stays on: a calendar works at least one day (BD-D5).
|
|
23
|
+
*/
|
|
24
|
+
export declare function toggleWorkDay(workDays: readonly WeekStart[], day: WeekStart): WorkDays;
|
|
25
|
+
/**
|
|
26
|
+
* Working days in words (BD-D9): "Monday to Friday", "Sunday to Thursday",
|
|
27
|
+
* "every day", "Wednesday", or a list in week-start order, "Monday, Wednesday
|
|
28
|
+
* and Friday". A run of three or more days in a row reads as its first to its
|
|
29
|
+
* last, around the end of the week when it crosses it.
|
|
30
|
+
*/
|
|
31
|
+
export declare function describeWorkDays(workDays: readonly WeekStart[], weekStart: WeekStart): string;
|
|
@@ -6,7 +6,7 @@ export type TemporalUnit = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'mont
|
|
|
6
6
|
* What period math reads from a calendar. The anchor ("now") is never read
|
|
7
7
|
* here: callers pass the instant they resolve against.
|
|
8
8
|
*/
|
|
9
|
-
export type TemporalCalendar = Pick<CalendarContext, 'tz' | 'weekStart' | 'fiscalCalendar'>;
|
|
9
|
+
export type TemporalCalendar = Pick<CalendarContext, 'tz' | 'weekStart' | 'fiscalCalendar' | 'workDays'>;
|
|
10
10
|
/** Every instant from `start` up to, not including, `endExclusive`. */
|
|
11
11
|
export type TemporalPeriod = {
|
|
12
12
|
start: Date;
|