hyperapp-is 0.1.7 → 0.1.8

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
@@ -532,16 +532,14 @@ getEntriesの返す値
532
532
 
533
533
  ```ts
534
534
  export interface JsonEntry <D> {
535
- name : string
536
- data : D
537
- isProperty: boolean
538
- isNode : boolean
535
+ name : string
536
+ data : D
537
+ isNode: boolean
539
538
  }
540
539
  ```
541
540
 
542
541
  - name : 名前
543
542
  - data : データ
544
- - isProperty: プロパティか
545
543
  - isNode : ディレクトリか
546
544
 
547
545
  ---
@@ -609,7 +607,7 @@ export const NavigatorFinder = function <S> (
609
607
  props: {
610
608
  state : S
611
609
  currentKeys : Keys_NavigatorItem
612
- columns ?: NavigatorColumn[]
610
+ columns ?: (directory: NavigatorItem | undefined) => NavigatorColumn[]
613
611
  maxItemsCount?: number
614
612
  itemClick ?: (state: S, item: NavigatorItem) => S | [S, Effect<S>]
615
613
  afterRender ?: (props: {
@@ -625,7 +623,7 @@ export const NavigatorFinder = function <S> (
625
623
 
626
624
  - state : ステート
627
625
  - currentKeys : カレント NavigatorItem までのパス
628
- - columns : NavigatorColumn の配列
626
+ - columns : NavigatorColumn の配列を返す関数
629
627
  - maxItemsCount: 最大表示するアイテム数
630
628
  - itemClick : アイテムをクリックした時のアクション
631
629
  - afterRender : レンダーフック
@@ -109,8 +109,6 @@ export const NavigatorFinder = function (props) {
109
109
  // get properties
110
110
  // 子アイテムのプロパティをすべて確認して抽出しています
111
111
  children.forEach(child => {
112
- if (!child.children)
113
- return;
114
112
  if (child.properties) {
115
113
  Object.keys(child.properties).forEach(key => names.push(key));
116
114
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperapp-is",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "UI foundation library for Hyperapp by is4416",
5
5
  "license": "MIT",
6
6
  "type": "module",