@aiquants/period-slider 0.7.0 → 0.8.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.
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { PeriodSliderPointProps, PeriodSliderRangeProps, PeriodSliderUnit, PeriodSliderVernierProps } from './PeriodSlider.js';
2
+ import { BasePeriodSliderVernierProps, PeriodSliderPointProps, PeriodSliderRangeProps, PeriodSliderUnit, PeriodSliderVernierPointProps, PeriodSliderVernierRangeProps } from './PeriodSlider.js';
3
3
  /**
4
4
  * Pre-configured props for the bundled YearSelector / MonthSelector / DateSelector components.
5
5
  * 同梱の YearSelector・MonthSelector・DateSelector へそのまま渡せる Props。
@@ -155,7 +155,7 @@ export declare function usePeriodSliderPoint(options: UsePeriodSliderPointOption
155
155
  * Options accepted by the vernier hook; slider props not owned by the hook pass straight through.
156
156
  * ノギスフックが受け取るオプション。フックが所有しないスライダー props はそのまま素通し。
157
157
  */
158
- export interface UseVernierSliderOptions extends Partial<Omit<PeriodSliderVernierProps, "mode" | "unit" | "minDate" | "maxDate" | "macroUnit" | "microUnit" | "macroRange" | "microRange" | "defaultMicroRange" | "onChangeMacroRange" | "onChangeMicroRange">> {
158
+ export interface UseVernierSliderOptions extends Partial<Omit<BasePeriodSliderVernierProps, "mode" | "unit" | "minDate" | "maxDate" | "macroUnit" | "microUnit" | "macroRange" | "onChangeMacroRange">> {
159
159
  /** Base time resolution unit / 基本時間解像度単位 */
160
160
  unit: PeriodSliderUnit;
161
161
  /** Minimum selectable boundary date for entire macro range (required, no fallback) / 全期間マクロの下限日付 (必須・フォールバックなし) */
@@ -211,7 +211,7 @@ export interface UseVernierSliderReturn {
211
211
  /** Pre-configured props for micro end selector (maxDate is the effective macro window end) / ミクロ終了日セレクタ用 Props (maxDate は実効マクロ窓終端) */
212
212
  microEndSelectorProps: SelectorProps;
213
213
  /** Pre-configured props to spread directly onto PeriodSlider / PeriodSlider に直接スプレッド可能な Props */
214
- sliderProps: PeriodSliderVernierProps;
214
+ sliderProps: PeriodSliderVernierRangeProps;
215
215
  }
216
216
  /**
217
217
  * Custom hook to manage state and props for a Vernier dual-scale PeriodSlider.
@@ -239,4 +239,88 @@ export interface UseVernierSliderReturn {
239
239
  * ```
240
240
  */
241
241
  export declare function useVernierSlider(options: UseVernierSliderOptions): UseVernierSliderReturn;
242
+ /**
243
+ * Options accepted by the vernier point hook; slider props not owned by the hook pass straight through.
244
+ * ノギス時点フックが受け取るオプション。フックが所有しないスライダー props はそのまま素通し。
245
+ */
246
+ export interface UseVernierSliderPointOptions extends Partial<Omit<BasePeriodSliderVernierProps, "mode" | "unit" | "minDate" | "maxDate" | "macroUnit" | "microUnit" | "macroRange" | "onChangeMacroRange">> {
247
+ /** Base time resolution unit / 基本時間解像度単位 */
248
+ unit: PeriodSliderUnit;
249
+ /** Minimum selectable boundary date for entire macro range (required, no fallback) / 全期間マクロの下限日付 (必須・フォールバックなし) */
250
+ minDate: Date;
251
+ /** Maximum selectable boundary date for entire macro range, strictly later than minDate (required, no fallback) / 全期間マクロの上限日付 (必須・minDate より後・フォールバックなし) */
252
+ maxDate: Date;
253
+ /** Initial macro window range [start, end] inside [minDate, maxDate] (required, no fallback) / 初期マクロ窓期間 (必須・[minDate, maxDate] 内・フォールバックなし) */
254
+ initialMacroRange: [Date, Date];
255
+ /** Initial micro selected point inside the initial macro window (required, no fallback) / 初期ミクロ選択時点 (必須・初期マクロ窓の内側・フォールバックなし) */
256
+ initialMicroValue: Date;
257
+ /** Macro scale unit (defaults to unit) / マクロ単位 (既定: unit) */
258
+ macroUnit?: PeriodSliderUnit;
259
+ /** Micro scale unit (defaults to unit) / ミクロ単位 (既定: unit) */
260
+ microUnit?: PeriodSliderUnit;
261
+ /** Callback triggered when macro window changes / マクロ窓変更時コールバック */
262
+ onChangeMacroRange?: (lower: Date, upper: Date) => void;
263
+ /** Callback triggered when the micro point changes / ミクロ選択時点変更時コールバック */
264
+ onChangeMicroPoint?: (value: Date) => void;
265
+ }
266
+ /**
267
+ * Macro window state, micro point state, mutators and ready-to-spread props returned by the vernier point hook.
268
+ * ノギス時点フックが返すマクロ窓・ミクロ時点の状態・更新関数・スプレッド可能な props 一式。
269
+ */
270
+ export interface UseVernierSliderPointReturn {
271
+ /** Macro window range tuple / マクロ窓期間タプル */
272
+ macroRange: [Date, Date];
273
+ /** State updater for macro range; replaces state without firing onChangeMacroRange / マクロ窓更新関数 (onChangeMacroRange は発火しない) */
274
+ setMacroRange: React.Dispatch<React.SetStateAction<[Date, Date]>>;
275
+ /** Micro selected point / ミクロ選択時点 */
276
+ microValue: Date;
277
+ /** State updater for the micro point; replaces state without firing onChangeMicroPoint / ミクロ時点更新関数 (onChangeMicroPoint は発火しない) */
278
+ setMicroValue: React.Dispatch<React.SetStateAction<Date>>;
279
+ /** Sets the macro lower date, pushing the macro upper date when overtaken and clamping the window into [minDate, maxDate] / マクロ開始日更新 (上限を超えたら上限も追従・窓を [minDate, maxDate] へクランプ) */
280
+ setMacroLowerDate: (date: Date) => void;
281
+ /** Sets the macro upper date, pushing the macro lower date when undercut and clamping the window into [minDate, maxDate] / マクロ終了日更新 (下限を下回ったら下限も追従・窓を [minDate, maxDate] へクランプ) */
282
+ setMacroUpperDate: (date: Date) => void;
283
+ /** Sets the micro point, clamping it into the macro window / ミクロ時点更新 (マクロ窓へクランプ) */
284
+ setMicroDate: (date: Date) => void;
285
+ /** Shifts the macro window by delta macro units, aborting entirely when either edge would leave [minDate, maxDate] / マクロ窓を delta マクロ単位シフト (片側でも定義域を越える場合は全体中止) */
286
+ shiftMacroRange: (delta: number) => void;
287
+ /** Shifts the micro point by delta micro units - or delta positions through the micro candidate set when microIsDiscrete is on - clamping into the macro window / ミクロ時点を delta ミクロ単位 (microIsDiscrete 有効かつ窓内に候補があるときは候補集合上を delta 個分) シフトしマクロ窓へクランプ */
288
+ shiftMicroValue: (delta: number) => void;
289
+ /** Reset to the initial macro window and micro point / 初期状態へリセット */
290
+ resetVernier: () => void;
291
+ /** Pre-configured props for macro start selector / マクロ開始日セレクタ用 Props */
292
+ macroStartSelectorProps: SelectorProps;
293
+ /** Pre-configured props for macro end selector / マクロ終了日セレクタ用 Props */
294
+ macroEndSelectorProps: SelectorProps;
295
+ /** Pre-configured props for the micro point selector (bounded by the effective macro window) / ミクロ時点セレクタ用 Props (実効マクロ窓で境界付け) */
296
+ microSelectorProps: SelectorProps;
297
+ /** Pre-configured props to spread directly onto PeriodSlider / PeriodSlider に直接スプレッド可能な Props */
298
+ sliderProps: PeriodSliderVernierPointProps;
299
+ }
300
+ /**
301
+ * Custom hook to manage state and props for a Vernier dual-scale PeriodSlider whose micro rail selects one point.
302
+ * Two containment invariants hold after every mutation and every render: the macro window stays inside
303
+ * [minDate, maxDate], and the micro point stays inside the macro window whose end is
304
+ * getMacroWindowEndDate(macroUnit, microUnit, macroRange[1]).
305
+ * ミクロレールが時点を選ぶノギス 2 段スケール PeriodSlider のステート管理と Props 生成を行うカスタムフック。
306
+ *
307
+ * @param options - Required unit, boundaries, initial macro window and micro point plus optional UI props / 必須の単位・境界・初期マクロ窓/ミクロ時点と任意の UI Props
308
+ * @returns Dual-scale state, mutators and pre-configured slider/selector props / 2 段スケールのステート・更新関数・生成済み Props 群
309
+ * @throws {RangeError} When a boundary, the initial macro window or the initial micro point is missing, invalid, inverted, outside [minDate, maxDate], or (for initialMicroValue) outside the initial macro window / 境界・初期マクロ窓・初期ミクロ時点が欠落、不正、逆転、[minDate, maxDate] 外、または (initialMicroValue が) 初期マクロ窓の外にある場合
310
+ *
311
+ * @example
312
+ * ```tsx
313
+ * const { microValue, sliderProps, macroStartSelectorProps, microSelectorProps } = useVernierSliderPoint({
314
+ * unit: "month",
315
+ * minDate: new Date(2015, 0, 1),
316
+ * maxDate: new Date(2030, 11, 31),
317
+ * initialMacroRange: [new Date(2020, 0, 1), new Date(2026, 0, 1)],
318
+ * initialMicroValue: new Date(2023, 5, 1),
319
+ * macroUnit: "year",
320
+ * microUnit: "month",
321
+ * })
322
+ * return <PeriodSlider {...sliderProps} />
323
+ * ```
324
+ */
325
+ export declare function useVernierSliderPoint(options: UseVernierSliderPointOptions): UseVernierSliderPointReturn;
242
326
  //# sourceMappingURL=usePeriodSlider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePeriodSlider.d.ts","sourceRoot":"","sources":["../src/usePeriodSlider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAA+E,KAAK,sBAAsB,EAAE,KAAK,sBAAsB,EAAE,KAAK,gBAAgB,EAAE,KAAK,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AAyK5N;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,wCAAwC;IACxC,KAAK,EAAE,IAAI,CAAA;IACX,6EAA6E;IAC7E,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IAC9B,uDAAuD;IACvD,OAAO,EAAE,IAAI,CAAA;IACb,uDAAuD;IACvD,OAAO,EAAE,IAAI,CAAA;IACb,0DAA0D;IAC1D,IAAI,EAAE,gBAAgB,CAAA;CACzB;AAMD;;;GAGG;AACH,MAAM,WAAW,2BAA4B,SAAQ,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC;IAC5K,qCAAqC;IACrC,IAAI,EAAE,gBAAgB,CAAA;IACtB,yFAAyF;IACzF,OAAO,EAAE,IAAI,CAAA;IACb,kIAAkI;IAClI,OAAO,EAAE,IAAI,CAAA;IACb,qJAAqJ;IACrJ,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IAC1B,uEAAuE;IACvE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,KAAK,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H,MAAM,WAAW,2BAA2B;IACxC,2CAA2C;IAC3C,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IACxB,6HAA6H;IAC7H,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACjE,qCAAqC;IACrC,UAAU,EAAE,IAAI,CAAA;IAChB,kIAAkI;IAClI,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAA;IACzD,mLAAmL;IACnL,iBAAiB,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IACvC,mLAAmL;IACnL,iBAAiB,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IACvC,oFAAoF;IACpF,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IAClC,kKAAkK;IAClK,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC,uPAAuP;IACvP,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC,oEAAoE;IACpE,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,wEAAwE;IACxE,uBAAuB,EAAE,aAAa,CAAA;IACtC,sEAAsE;IACtE,qBAAqB,EAAE,aAAa,CAAA;IACpC,iIAAiI;IACjI,kBAAkB,EAAE,aAAa,CAAA;IACjC,iGAAiG;IACjG,WAAW,EAAE,6BAA6B,CAAA;CAC7C;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,4BAA4B,GAAG,2BAA2B,CAiNxG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiquants/period-slider",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Customizable period slider and year/month/date selectors for React",
5
5
  "sideEffects": [
6
6
  "**/*.css"
@@ -92,10 +92,10 @@
92
92
  "test:coverage": "vitest --coverage",
93
93
  "test:e2e": "playwright test",
94
94
  "test:e2e:ui": "playwright test --ui",
95
- "lint": "biome check src tests",
96
- "lint:fix": "biome check --write src tests",
97
- "format": "biome format --write src tests",
98
- "format:check": "biome format src tests",
95
+ "lint": "biome check src tests demo/src",
96
+ "lint:fix": "biome check --write src tests demo/src",
97
+ "format": "biome format --write src tests demo/src",
98
+ "format:check": "biome format src tests demo/src",
99
99
  "clean": "rimraf dist",
100
100
  "publish:patch": "pnpm run typecheck && pnpm run build && pnpm run --if-present test && pnpm version patch --no-git-tag-version --no-git-checks && pnpm publish --no-git-checks",
101
101
  "publish:minor": "pnpm run typecheck && pnpm run build && pnpm run --if-present test && pnpm version minor --no-git-tag-version --no-git-checks && pnpm publish --no-git-checks",