@aiquants/contact-map 0.27.0 → 0.28.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/README.md CHANGED
@@ -55,7 +55,7 @@ Peer dependencies:
55
55
  "@aiquants/directory-tree": "^6.0.0",
56
56
  "@aiquants/fuzzy-search": "^3.2.1",
57
57
  "@aiquants/resize-panels": "^2.2.0",
58
- "@aiquants/select-box": "^0.23.0",
58
+ "@aiquants/select-box": "^0.24.0",
59
59
  "@aiquants/swipe-overlay": "^1.4.0",
60
60
  "@aiquants/virtualscroll": "^3.31.1",
61
61
  "drizzle-orm": ">=1.0.0-beta.4 <2.0.0",
@@ -289,10 +289,12 @@ The package reads this host CSS variable, `0px` while the host leaves it unset (
289
289
  | Variable | Read by | Meaning |
290
290
  | --- | --- | --- |
291
291
  | `--aqcm-overlay-right` | The long-press popup and the swipe overlay | Their right inset, such as the width of a menu pinned to the right edge: `:root { --aqcm-overlay-right: var(--my-pinned-menu-width, 0px); }`. |
292
+ | `--aqcm-overlay-bottom` | The long-press popup and the swipe overlay | Their bottom inset, such as the height of a bar fixed to the bottom edge: `:root { --aqcm-overlay-bottom: var(--my-bottom-bar-height, 0px); }`. |
292
293
 
293
294
  | 変数 | 読むもの | 意味 |
294
295
  | --- | --- | --- |
295
296
  | `--aqcm-overlay-right` | 長押しのポップアップとスワイプのオーバーレイ | 右端の余白 (右端にピン留めしたメニューの幅など): `:root { --aqcm-overlay-right: var(--my-pinned-menu-width, 0px); }`。 |
297
+ | `--aqcm-overlay-bottom` | 長押しのポップアップとスワイプのオーバーレイ | 下端の余白 (下の端に固定した帯の高さなど): `:root { --aqcm-overlay-bottom: var(--my-bottom-bar-height, 0px); }`。 |
296
298
 
297
299
  ## Layout / 配置
298
300
 
@@ -317,7 +319,7 @@ The views lay themselves out by their own width, never the viewport's: a view in
317
319
  The deadband is wider than a classic scrollbar (17 px), so a scrollbar that an ancestor shows or hides at the change never moves the root back across the threshold. The list takes two columns from 1024 px and keeps them down to 989 px, and the tree from 768 px down to 733 px (`calculateResponsiveThresholds` on `DEFAULT_LIST_LAYOUT_SPEC` and `DEFAULT_TREE_LAYOUT_SPEC`); no class queries these widths.
318
320
  A view starts in one column, as the server renders it, and reads its first width before its first paint.
319
321
  Both layouts keep one panel group, so a change between them keeps the list or the tree (its scroll position, its active row and the focus inside it) and the split the user dragged. In one column the handle is out, and the detail pane stays at zero width with no content and inert. `data-contact-map-layout` on the view's root (`"single-column"` or `"two-column"`) tells the layout of the moment.
320
- - **What stays on the viewport:** the properties of the device (the coarse pointer of the 16 px text, hover, reduced motion) stay media queries, and the overlays (the detail overlay and the long-press popup) stay layers fixed to the viewport, whose right inset follows `--aqcm-overlay-right`.
322
+ - **What stays on the viewport:** the properties of the device (the coarse pointer of the 16 px text, hover, reduced motion) stay media queries, and the overlays (the detail overlay and the long-press popup) stay layers fixed to the viewport, whose right and bottom insets follow `--aqcm-overlay-right` and `--aqcm-overlay-bottom`.
321
323
 
322
324
  - **容器**: どのビュー (`ContactMapAppView`・`ContactMapSearchPage`・`ContactMapSearchListView`・`ContactMapSearchTreeView`) も根が `aqcm-root` という名の行の軸の容器 (`container: aqcm-root / inline-size`) で、ビューの中の組みはどれも最も近いその容器に従う。ビューの外で部品を組むホスト (`ContactDetailPanel`・`ContactDetailRowLayout`・`SearchOptionsPanel`・`StatisticsPanel`・設定と統計の欄) は、部品を置く要素にその容器を宣言する (`container: aqcm-root / inline-size`。Tailwind なら `@container/aqcm-root`)。
323
325
  - **ホストが守る事**:
@@ -334,7 +336,7 @@ The views lay themselves out by their own width, never the viewport's: a view in
334
336
 
335
337
  - **2 カラム**: 一覧とツリーのビューは、根の枠の箱の幅 (`ResizeObserver`) から、2 カラム (一覧かツリーと詳細のペインを横に並べ、リサイズハンドルを持つ) と 1 カラム (詳細は `SwipeOverlay`) をスクリプトで選び、不感帯は 35 px。不感帯は古いスクロールバー (17 px) より広いので、替わる時に祖先のスクロールバーが出入りしても、根は閾値を跨ぎ戻らない。一覧は 1024 px から 2 カラムで 989 px まで保ち、ツリーは 768 px から 733 px まで (`DEFAULT_LIST_LAYOUT_SPEC` と `DEFAULT_TREE_LAYOUT_SPEC` への `calculateResponsiveThresholds`)。どのクラスもこれらの幅を問わない。ビューはサーバーの描画と同じく 1 カラムで始まり、最初の幅を最初の描画の前に読む。
336
338
  どちらの組みも 1 つのパネルグループを保つので、替わっても一覧かツリー (巻きの位置・アクティブな行・中の焦点) と利用者が引いた分け方が残る。1 カラムではリサイズハンドルを外し、詳細のペインは中身の無い幅 0 で不活性のまま。ビューの根の `data-contact-map-layout` (`"single-column"` か `"two-column"`) がその時の組みを示す。
337
- - **表示域に残る物**: 端末の性質 (16 px の文字の粗いポインター・ホバー・動きを減らす設定) はメディアクエリのまま、オーバーレイ (詳細のオーバーレイと長押しのポップアップ) は表示域に固定した層のまま (右端は `--aqcm-overlay-right` に従う)。
339
+ - **表示域に残る物**: 端末の性質 (16 px の文字の粗いポインター・ホバー・動きを減らす設定) はメディアクエリのまま、オーバーレイ (詳細のオーバーレイと長押しのポップアップ) は表示域に固定した層のまま (右端と下端は `--aqcm-overlay-right` と `--aqcm-overlay-bottom` に従う)。
338
340
 
339
341
  ## Pointer Targets / ポインターの的
340
342
 
@@ -490,7 +492,7 @@ When the list or the tree view is a single column (its root narrower than its tw
490
492
  Every vertical scroll area takes `SWIPE_OVERLAY_SCROLL_AREA_STYLE`: `touch-action: pan-y pinch-zoom`, and `overscroll-behavior-y: contain`, so its scroll never chains to the page behind. A scroll container resets the touch-action it inherits, so content placed in `SwipeOverlay` gives each of its own vertical scroll areas that style, as the detail panel's tab contents do; a swipe does not start on an element the browser pans sideways (one that scrolls horizontally and whose touch-action allows that).
491
493
  - **Targets and contrast:** the close button is at least 44 × 44 px, the detail panel's tabs, copy buttons and value links (an address, a number, a URL; each padded above and below by half of what its line box lacks of 44 px, `max(0px, (2.75rem - 1lh) / 2)`, and at least 44 px wide, so a short value is no narrower a target) are 44 px under every pointer (WCAG 2.2 enhanced target size), value links and copy buttons show a 2 px focus ring under the keyboard, the four tabs share the width equally so they fit a phone, long values wrap instead of scrolling sideways,
492
494
  and every text keeps 7:1 against its ground in the light and the dark scheme.
493
- - **Requirements:** the platform's `<dialog>` with `showModal()` (Chromium 37, Firefox 98, Safari 15.4) and `inert` (Chromium 102, Firefox 112, Safari 15.5). The overlay's right edge follows `--aqcm-overlay-right` (see Styling).
495
+ - **Requirements:** the platform's `<dialog>` with `showModal()` (Chromium 37, Firefox 98, Safari 15.4) and `inert` (Chromium 102, Firefox 112, Safari 15.5). The overlay's right and bottom edges follow `--aqcm-overlay-right` and `--aqcm-overlay-bottom` (see Styling).
494
496
 
495
497
  - **開いている間** はページのほか (内容の領域の外にピン留めしたサイドメニューを含む) は不活性で、フォーカスはダイアログの名前になるオーバーレイの見出し (`title` prop。既定は `overlayTitle`) から始まる。Tab はダイアログの中に留まり、背後のページへは行かない。どのモーダルなダイアログとも同じく、最後の操作部品の後はブラウザ自身の枠がフォーカスを取ることがある。
496
498
  - **閉じる** のは、面のどこからでも始まる右へのスワイプ (120 px を超える引き、またははじき)、暗くした背景のタップ (タップの click で閉じるので、背景の下のものは押さない)、閉じるボタン、Escape (IME の変換を取り消すものを除く)、プラットフォームの閉じる要求 (Android の戻る)。どれも同じ閉じる経路を通る。
@@ -498,7 +500,7 @@ When the list or the tree view is a single column (its root narrower than its tw
498
500
  - **タッチ**: 面と背景は `touch-action: pinch-zoom` (`SWIPE_OVERLAY_PANEL_TOUCH_ACTION`) を取るため、ピンチはページを拡大し、横の動きはスワイプになり、ヘッダーや背景の上の縦の動きは何も引っ張らない (引いて再読み込みにならない)。縦のスクロール領域はどれも `SWIPE_OVERLAY_SCROLL_AREA_STYLE` (`touch-action: pan-y pinch-zoom` と `overscroll-behavior-y: contain`) を取り、そのスクロールは背後のページへつながらない。スクロールの容器は受け継いだ touch-action を解くので、`SwipeOverlay` に置く内容は、詳細パネルのタブの中身と同じく、自分の縦のスクロール領域それぞれにそのスタイルを与える。ブラウザーが横にパンする要素 (横にスクロールし、touch-action がそれを許すもの) からはスワイプが始まらない。
499
501
  - **的とコントラスト**: 閉じるボタンは少なくとも 44 × 44 px、詳細パネルのタブ・コピーのボタン・値のリンク (アドレス・番号・URL。行の箱が 44 px に足りない分の半分 `max(0px, (2.75rem - 1lh) / 2)` を上下に足し、幅は少なくとも 44 px なので、短い値も細い的にならない) はどのポインターでも 44 px (WCAG 2.2 の拡張の的の大きさ)。
500
502
  値のリンクとコピーのボタンはキーボードのフォーカスで 2 px の輪を描く。4 つのタブは幅を等分してスマートフォンにも収まり、長い値は横にスクロールさせずに折り返し、どの文字も明暗どちらの配色でも地に対して 7:1 を保つ。
501
- - **前提**: プラットフォームの `<dialog>` の `showModal()` (Chromium 37・Firefox 98・Safari 15.4) と `inert` (Chromium 102・Firefox 112・Safari 15.5)。オーバーレイの右端は `--aqcm-overlay-right` に従う (スタイルの節を参照)。
503
+ - **前提**: プラットフォームの `<dialog>` の `showModal()` (Chromium 37・Firefox 98・Safari 15.4) と `inert` (Chromium 102・Firefox 112・Safari 15.5)。オーバーレイの右端と下端は `--aqcm-overlay-right` と `--aqcm-overlay-bottom` に従う (スタイルの節を参照)。
502
504
 
503
505
  ## Long-Press Popup / 長押しのポップアップ
504
506