haori 0.22.2 → 0.23.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.ts CHANGED
@@ -411,6 +411,17 @@ export declare class Core {
411
411
  * @return すべての差分更新が安定するまでの完了 Promise
412
412
  */
413
413
  private static runEachUpdateLoop;
414
+ /**
415
+ * data-each-rendered-run 属性に指定された JS を、描画確定後に一度実行します。
416
+ *
417
+ * data-each の再描画が安定し `data-each-done` が付与されるたびに呼び出され、
418
+ * 再 fetch・再バインドのたびに確実な再同期契機を提供します。本体内の `this`
419
+ * は対象コンテナ要素に束縛され、外部の select 拡張ライブラリ(Choices.js 等)
420
+ * の再同期フック(例: `window.__choicesRefresh(this)`)として利用できます。
421
+ *
422
+ * @param target data-each コンテナ要素
423
+ */
424
+ private static runEachRenderedScript;
414
425
  /**
415
426
  * data-each の差分更新本体を実行します(再入制御は呼び出し側で行います)。
416
427
  *
@@ -636,7 +647,7 @@ declare class ElementFragment extends Fragment {
636
647
  private deriveInputSignature;
637
648
  /** fresh clone 初期化を subtree ごと省略できるかどうか */
638
649
  private freshInitializationSkippable;
639
- /** valueプロパティの値 */
650
+ /** valueプロパティの値(複数選択 select は文字列配列を保持する) */
640
651
  private value;
641
652
  /** 属性更新スキップフラグ(オブザーバーによる無限ループ対応) */
642
653
  private skipMutationAttributes;
@@ -923,7 +934,7 @@ declare class ElementFragment extends Fragment {
923
934
  *
924
935
  * @returns 入力エレメントの値
925
936
  */
926
- getValue(): string | number | boolean | null;
937
+ getValue(): string | number | boolean | string[] | null;
927
938
  /**
928
939
  * 内部の値をクリアします。エレメントのvalue値は変化しません。
929
940
  */
@@ -1176,6 +1187,13 @@ export declare class Form {
1176
1187
  * @returns グループ扱いの場合 true
1177
1188
  */
1178
1189
  private static isGroupedCheckable;
1190
+ /**
1191
+ * 複数選択の select 要素かどうかを判定します。
1192
+ *
1193
+ * @param fragment 対象フラグメント
1194
+ * @returns `<select multiple>` の場合 true
1195
+ */
1196
+ private static isMultipleSelect;
1179
1197
  /**
1180
1198
  * 単一フラグメントへ値を設定します。
1181
1199
  *
@@ -1486,6 +1504,15 @@ declare class Haori {
1486
1504
  * @param parent メッセージをクリアする親要素
1487
1505
  */
1488
1506
  static clearMessages(parent: HTMLElement): Promise<void>;
1507
+ /**
1508
+ * 対象のエレメントおよびその子要素のメッセージ属性を同期的に除去します。
1509
+ *
1510
+ * Queue を介さないため、別の enqueue ブロック内から実行順を保ったまま
1511
+ * 呼び出せます。{@link clearMessages} および {@link openDialog} の共通処理です。
1512
+ *
1513
+ * @param parent メッセージをクリアする親要素
1514
+ */
1515
+ private static clearMessagesSync;
1489
1516
  /**
1490
1517
  * 日時を指定フォーマットの文字列へ整形します。
1491
1518
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "haori",
3
- "version": "0.22.2",
3
+ "version": "0.23.0",
4
4
  "description": "A lightweight HTML-first UI engine powered by declarative data bindings and expressions.",
5
5
  "scripts": {
6
6
  "dev": "vite",