@aiquants/contact-map 0.15.0 → 0.17.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
@@ -260,8 +260,8 @@ Tailwind CSS を使わないホスト (ルートのモジュールなどで 1
260
260
  import "@aiquants/contact-map/styles/contact-map.standalone.css"
261
261
  ```
262
262
 
263
- The package reads these host CSS variables, each `0px` while the host leaves it unset. It never names a variable of another package: a host binds them in its own layout layer.
264
- パッケージは次のホストの CSS 変数を読み、ホストが設定しない間はどれも `0px`。ほかのパッケージの変数は名指さないので、ホストが自分のレイアウトの層で結ぶ。
263
+ The package reads these host CSS variables, each `0px` while the host leaves it unset (the text sizes read their own, listed under Text Size). It never names a variable of another package: a host binds them in its own layout layer.
264
+ パッケージは次のホストの CSS 変数を読み、ホストが設定しない間はどれも `0px` (文字の大きさは自分の変数を読む。文字の大きさの節を参照)。ほかのパッケージの変数は名指さないので、ホストが自分のレイアウトの層で結ぶ。
265
265
 
266
266
  | Variable | Read by | Meaning |
267
267
  | --- | --- | --- |
@@ -284,16 +284,40 @@ Every control the package draws is a target of at least 44 × 44 CSS px under ev
284
284
 
285
285
  - **The search band:** the tabs of the search page (fuzzy search, settings, statistics), the AND / OR switch, the search field and its clear button, the list / tree tabs, and the tree view's controls beside them (the whole-company switch, expand all, collapse all). The row of the list / tree tabs wraps, so on a narrow screen the tree view's controls take a line of their own instead of running past the screen's edge.
286
286
  - **The settings and statistics tabs:** their buttons (reset all, reset, rebuild index) and inner tabs are 44 × 44 px, and the selects 44 px high. A slider's box is 44 px high over its width, and a press anywhere on it moves the value; the thumb keeps the browser's drawing. A checkbox keeps its drawn 12 px box, and the label row around it, 44 px high over the panel's width, is its target: a press anywhere on the row toggles it.
287
- - **Touch screens:** under a coarse pointer the text of the search field and the settings' selects is 16 px, so iOS Safari does not zoom the page when one of them takes the focus.
287
+ - **Touch screens:** under a coarse pointer the text of the search field and the settings' selects is 16 px (the `body` step's 13 px under a fine pointer), so iOS Safari does not zoom the page when one of them takes the focus.
288
288
  - **Names and states:** the clear button is named by `clearSearch` while it can clear (while a search runs, its visible `searching` text names it); the list / tree buttons report the shown view with `aria-pressed`; the statistics tabs are tabs of a tab list named by `statsTabsLabel`, as the settings tabs are of one named by `settingsTabsLabel`, the shown one selected.
289
289
  - **Their own sizes:** the resize handles between the list or the tree and the detail pane keep their thin band, and the keyboard resizes the panes (`@aiquants/resize-panels`); the scroll controls of the list and the tree (`@aiquants/virtualscroll`, pointer-only) and the tree's rows (`@aiquants/directory-tree`) follow those packages.
290
290
 
291
291
  - **検索の帯**: 検索ページのタブ (あいまい検索・検索設定・検索統計)・AND / OR の切り替え・検索欄とクリアのボタン・一覧 / ツリーのタブ・その横のツリーのビューの操作部品 (会社全体の表示の切り替え・全展開・全折りたたみ)。一覧 / ツリーのタブの行は折り返すので、狭い画面ではツリーのビューの操作部品は画面の端からはみ出さずに次の行へ移る。
292
292
  - **検索設定と検索統計のタブ**: ボタン (すべてリセット・リセット・インデックス再構築) と内側のタブは 44 × 44 px、セレクトは高さ 44 px。スライダーは幅いっぱいで高さ 44 px の箱を持ち、箱のどこを押しても値が動く (つまみの描き方はブラウザーのまま)。チェックボックスは描く箱を 12 px のまま保ち、それを囲むパネルの幅いっぱいで高さ 44 px のラベルの行が的になる (行のどこを押しても切り替わる)。
293
- - **タッチの画面**: 粗いポインターでは検索欄と設定のセレクトの文字を 16 px にし、フォーカスを受けても iOS の Safari が画面を拡大しない。
293
+ - **タッチの画面**: 粗いポインターでは検索欄と設定のセレクトの文字を 16 px にし (細かいポインターでは `body` の段の 13 px)、フォーカスを受けても iOS の Safari が画面を拡大しない。
294
294
  - **名前と状態**: クリアのボタンは消せる間 `clearSearch` を名前に持つ (検索中は見えている `searching` の文字が名前)。一覧 / ツリーのボタンは見せているビューを `aria-pressed` で示す。検索統計の内側のタブは `statsTabsLabel` を名前に持つタブの並びのタブで (検索設定のタブが `settingsTabsLabel` の並びのタブであるのと同じ)、見せているものが選ばれている。
295
295
  - **自分の大きさを保つもの**: 一覧やツリーと詳細のペインの間のサイズ変更ハンドルは細い帯のままで、ペインの幅はキーボードでも変えられる (`@aiquants/resize-panels`)。一覧とツリーのスクロールの操作部品 (`@aiquants/virtualscroll`。ポインター専用) とツリーの行 (`@aiquants/directory-tree`) はそれぞれのパッケージに従う。
296
296
 
297
+ ## Text Size / 文字の大きさ
298
+
299
+ The primary text of every control and list row the package draws (a button's, a tab's or a link's name, the value of the search field and the selects, a checkbox's label row) is at least console-ui's `body` step, 13 px on a 20 px line, and the supplementary text beside one (the count line, the AND / OR hint, the tree header's badges, the settings' field labels and hints, the detail panel's labels and hints, the list's column headings and rows' secondary lines, the statistics history's times) at least its `caption` step, 11 px on a 20 px line; no text is smaller.
300
+ The list rows' secondary lines read the step's size alone and keep the tight line that the fixed 64 px row holds.
301
+ Text that is already larger (the list rows' names, the popup's values) keeps its size, and the tree's rows take `@aiquants/directory-tree`'s default text. Every text size the package sets is in rem, none in px, so it follows the page zoom and the browser's text size setting.
302
+ パッケージが描く操作部品と一覧の行の主の文字 (ボタン・タブ・リンクの名前、検索欄と選択欄の値、チェックボックスのラベルの行) は console-ui の `body` の段 (20 px の行の 13 px) 以上、それに添える補足 (件数の行・AND / OR の手がかり・ツリーのヘッダーの札・設定の欄の名前と説明・詳細パネルのラベルと説明・一覧の列見出しと行の補足の段・検索統計の履歴の時刻) は `caption` の段 (20 px の行の 11 px) 以上で、これより小さい文字は無い。一覧の行の補足の段は段の大きさだけを読み、固定の 64 px の行が収める詰めた行を保つ。すでに大きい文字 (一覧の行の名前・ポップアップの値) は大きさを保ち、ツリーの行は `@aiquants/directory-tree` の既定の文字に従う。パッケージが決める文字の大きさは全て rem で書き (px は無い)、ページの拡大とブラウザーの文字の大きさの設定に従う。
303
+
304
+ The steps read these host CSS variables, each the step's value while the host leaves it unset. A host binds them on its root, for example to its own type scale (`:root { --aqcm-font-size-body: var(--my-font-size-body); }`), never on the package's elements. Under a coarse pointer the search field and the selects keep their 16 px text (see Pointer Targets).
305
+ 段は次のホストの CSS 変数を読み、ホストが設定しない間はどれも段の値。ホストは根で結び (自分の型の段へ結ぶなら `:root { --aqcm-font-size-body: var(--my-font-size-body); }`)、パッケージの要素には結ばない。粗いポインターでは検索欄と選択欄は 16 px の文字を保つ (ポインターの的の節を参照)。
306
+
307
+ | Variable | Default | Read by |
308
+ | --- | --- | --- |
309
+ | `--aqcm-font-size-body` | `0.8125rem` (13 px) | The primary text of the controls: the search band, the settings' and statistics' buttons, tabs, selects and checkbox rows, the detail panel's tabs and summary values, the annotation's retry button. |
310
+ | `--aqcm-line-height-body` | `1.25rem` (20 px) | Their line. |
311
+ | `--aqcm-font-size-caption` | `0.6875rem` (11 px) | The supplementary text: the count line, the AND / OR hint, the tree header's badges, the settings' field labels and hints, the detail panel's labels and hints, the list's column headings and rows' secondary lines, the popup's Gmail hint, the statistics history's times. |
312
+ | `--aqcm-line-height-caption` | `1.25rem` (20 px) | Their line, except the list rows' secondary lines, which keep their tight line in the fixed 64 px row. |
313
+
314
+ | 変数 | 既定 | 読むもの |
315
+ | --- | --- | --- |
316
+ | `--aqcm-font-size-body` | `0.8125rem` (13 px) | 操作部品の主の文字: 検索の帯、検索設定と検索統計のボタン・タブ・選択欄・チェックボックスの行、詳細パネルのタブと要約の値、注記の再試行のボタン。 |
317
+ | `--aqcm-line-height-body` | `1.25rem` (20 px) | その行。 |
318
+ | `--aqcm-font-size-caption` | `0.6875rem` (11 px) | 補足の文字: 件数の行、AND / OR の手がかり、ツリーのヘッダーの札、設定の欄の名前と説明、詳細パネルのラベルと説明、一覧の列見出しと行の補足の段、ポップアップの Gmail の手がかり、検索統計の履歴の時刻。 |
319
+ | `--aqcm-line-height-caption` | `1.25rem` (20 px) | その行 (一覧の行の補足の段を除く。固定の 64 px の行の中で詰めた行を保つ)。 |
320
+
297
321
  ## Mobile Detail Overlay / モバイルの詳細オーバーレイ
298
322
 
299
323
  When the list or the tree view is a single column (narrower than its two-column threshold), choosing a contact opens its details in an overlay, `SwipeOverlay`: a panel at the right edge, which renders the platform's modal dialog through `@aiquants/swipe-overlay`'s `useSwipeOverlayDialog`.