@g9tm/lynxcontrols-projects 2.5.9 → 2.5.11

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.
Files changed (42) hide show
  1. package/README.md +5 -0
  2. package/catalog/cards/G9ActivityFeed.md +17 -0
  3. package/catalog/cards/G9FileBrowser.md +17 -0
  4. package/catalog/cards/G9FormBuilder.md +15 -0
  5. package/catalog/cards/G9OrgChart.md +17 -0
  6. package/catalog/cards/G9QuestionField.md +17 -0
  7. package/catalog/cards/G9Timeline.md +3 -3
  8. package/catalog/catalog.json +2319 -13
  9. package/catalog/index.md +6 -1
  10. package/dist/.tsbuildinfo +1 -1
  11. package/dist/activity.css +105 -0
  12. package/dist/activity.css.map +1 -0
  13. package/dist/activity.d.ts +49 -0
  14. package/dist/activity.d.ts.map +1 -0
  15. package/dist/activity.jsx +129 -0
  16. package/dist/files.css +336 -0
  17. package/dist/files.css.map +1 -0
  18. package/dist/files.d.ts +123 -0
  19. package/dist/files.d.ts.map +1 -0
  20. package/dist/files.jsx +393 -0
  21. package/dist/forms.css +155 -0
  22. package/dist/forms.css.map +1 -0
  23. package/dist/forms.d.ts +94 -0
  24. package/dist/forms.d.ts.map +1 -0
  25. package/dist/forms.jsx +372 -0
  26. package/dist/index.d.ts +4 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.jsx +4 -0
  29. package/dist/org-chart.css +127 -0
  30. package/dist/org-chart.css.map +1 -0
  31. package/dist/org-chart.d.ts +73 -0
  32. package/dist/org-chart.d.ts.map +1 -0
  33. package/dist/org-chart.jsx +388 -0
  34. package/dist/projects.css +66 -0
  35. package/dist/projects.css.map +1 -1
  36. package/dist/rule-builder.d.ts +6 -0
  37. package/dist/rule-builder.d.ts.map +1 -1
  38. package/dist/rule-builder.jsx +24 -3
  39. package/dist/timeline.d.ts +30 -0
  40. package/dist/timeline.d.ts.map +1 -1
  41. package/dist/timeline.jsx +158 -18
  42. package/package.json +3 -3
package/README.md CHANGED
@@ -22,3 +22,8 @@ import { G9Board, G9TaskCard, G9Timeline } from '@g9tm/lynxcontrols-projects';
22
22
  Model (pure, tested): `boardDropTarget`, `edgeRate`, `boardColumnWidth`, `moveKey`, `timelineScale`, `dayToX`,
23
23
  `xToDay`, `dragSpan`, `spanOf`, `timelineRange`, `monthStarts`, `weekStarts`, `physicalLeft`, `scrollForX`,
24
24
  `linkSegments`, `rowWindow`.
25
+
26
+ 2.5.10 (G9Hub): `G9OrgChart` (who reports to whom: a zoomable tree on a wide window, a nested list on a phone, search
27
+ and focus), `G9QuestionField` (one form question of any kind) and `G9FormBuilder` (the questions dragged, their kinds,
28
+ options and required), `G9FileBrowser` (folders, a breadcrumb, a grid or a list, multi-select, uploads, menus,
29
+ sorting) and `G9ActivityFeed` (changes under sticky day headers on a rail, «more» paging).
@@ -0,0 +1,17 @@
1
+ # G9ActivityFeed
2
+
3
+ `import { G9ActivityFeed } from '@g9tm/lynxcontrols-projects';`
4
+
5
+ Changes newest first under a header per day, a rail with a node per entry, «more» paging.
6
+
7
+ Props:
8
+ - `items`: object[]
9
+ - `dayLabel?`: (dayStartMs: number, epochDays: number) => void
10
+ - `onMore?`: () => void
11
+ - `onOpen?`: (item: G9ActivityItem) => void
12
+ - `loading?`: boolean
13
+ - `height?`: number
14
+ - `now?`: number
15
+ - `utcOffsetMinutes?`: number = 0
16
+
17
+ Example: `<G9ActivityFeed items={items} />`
@@ -0,0 +1,17 @@
1
+ # G9FileBrowser
2
+
3
+ `import { G9FileBrowser } from '@g9tm/lynxcontrols-projects';`
4
+
5
+ A project's files: folders, a breadcrumb, grid or list, previews, multi-select, uploads, menus, sorting.
6
+
7
+ Props:
8
+ - `items`: object[]
9
+ - `selected?`: string[]
10
+ - `columns?`: number
11
+ - `formatSize?`: (bytes: number) => void
12
+ - `menuFor?`: (item: G9FileEntry) => void
13
+ - `onCancelUpload?`: (id: string) => void
14
+ - `onMenu?`: (key: string, item: G9FileEntry) => void
15
+ - `onNavigate?`: (folderId: string | null) => void
16
+
17
+ Example: `<G9FileBrowser items={items} />`
@@ -0,0 +1,15 @@
1
+ # G9FormBuilder
2
+
3
+ `import { G9FormBuilder } from '@g9tm/lynxcontrols-projects';`
4
+
5
+ A form's questions edited: cards dragged to reorder, a kind menu, the options, required, duplicate, delete.
6
+
7
+ Props:
8
+ - `onChange`: (questions: readonly G9FormQuestion[]) => void
9
+ - `questions`: object[]
10
+ - `words`: object
11
+ - `newId?`: () => void
12
+ - `rowHeight?`: number = 220
13
+ - `kinds?`: 'number' | 'text' | 'date' | 'single' | 'longText' | 'multi' | 'dropdown' | 'rating' | 'scale' | 'file' | 'section'[]
14
+
15
+ Example: `<G9FormBuilder onChange={() => {}} questions={questions} words={words} />`
@@ -0,0 +1,17 @@
1
+ # G9OrgChart
2
+
3
+ `import { G9OrgChart } from '@g9tm/lynxcontrols-projects';`
4
+
5
+ Who reports to whom: a zoomable tree on a wide window, a nested list on a phone.
6
+
7
+ Props:
8
+ - `people`: object[]
9
+ - `onOpen?`: (id: string) => void
10
+ - `focusId?`: string
11
+ - `height?`: number = 480
12
+ - `initialDepth?`: number
13
+ - `layout?`: 'auto' | 'list' | 'tree'
14
+ - `query?`: string
15
+ - `searchPlaceholder?`: string
16
+
17
+ Example: `<G9OrgChart people={people} />`
@@ -0,0 +1,17 @@
1
+ # G9QuestionField
2
+
3
+ `import { G9QuestionField } from '@g9tm/lynxcontrols-projects';`
4
+
5
+ One question answered: its title (with the required mark), the help, the field of its kind, the problem.
6
+
7
+ Props:
8
+ - `onChange`: (answer: G9FormAnswer) => void
9
+ - `question`: object
10
+ - `value`: string | number | object | string[] | G9AnswerFile[]
11
+ - `disabled?`: boolean
12
+ - `onPickFiles?`: () => void
13
+ - `onRemoveFile?`: (fileId: string) => void
14
+ - `problem?`: string
15
+ - `words?`: object
16
+
17
+ Example: `<G9QuestionField onChange={() => {}} question={question} value={value} />`
@@ -7,11 +7,11 @@ A Gantt chart: rows and bars an app keeps, moved and resized on the main thread,
7
7
  Props:
8
8
  - `rows`: object[]
9
9
  - `today`: number
10
+ - `announceLabel?`: (row: G9TimelineRow, span: G9DaySpan) => void
10
11
  - `barLabel?`: (row: G9TimelineRow) => void
12
+ - `onAnnounce?`: (text: string) => void
13
+ - `onFocusChange?`: (key: string) => void
11
14
  - `onOpen?`: (key: string) => void
12
15
  - `onSpanChange?`: (key: string, span: G9DaySpan) => void
13
- - `onZoomChange?`: (zoom: G9TimelineZoom) => void
14
- - `todayLabel?`: string
15
- - `labelWidth?`: number = 160
16
16
 
17
17
  Example: `<G9Timeline rows={rows} today={1} />`