@things-factory/organization 10.1.37 → 10.1.38

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 (34) hide show
  1. package/dist-client/component/approval-line-items-editor-popup.d.ts +1 -0
  2. package/dist-client/component/approval-line-items-editor-popup.js +6 -8
  3. package/dist-client/component/approval-line-items-editor-popup.js.map +1 -1
  4. package/dist-client/component/approval-line-items-editor.d.ts +3 -0
  5. package/dist-client/component/approval-line-items-editor.js +31 -3
  6. package/dist-client/component/approval-line-items-editor.js.map +1 -1
  7. package/dist-client/component/approval-line-selector.d.ts +1 -0
  8. package/dist-client/component/approval-line-selector.js +6 -8
  9. package/dist-client/component/approval-line-selector.js.map +1 -1
  10. package/dist-client/component/assignees-editor-popup.d.ts +1 -0
  11. package/dist-client/component/assignees-editor-popup.js +6 -8
  12. package/dist-client/component/assignees-editor-popup.js.map +1 -1
  13. package/dist-client/component/copy-from.d.ts +13 -0
  14. package/dist-client/component/copy-from.js +16 -0
  15. package/dist-client/component/copy-from.js.map +1 -0
  16. package/dist-client/component/department-selector.d.ts +1 -0
  17. package/dist-client/component/department-selector.js +6 -8
  18. package/dist-client/component/department-selector.js.map +1 -1
  19. package/dist-client/component/popup-actions-row.test.d.ts +1 -0
  20. package/dist-client/component/popup-actions-row.test.js +42 -0
  21. package/dist-client/component/popup-actions-row.test.js.map +1 -0
  22. package/dist-client/component/recipients-editor-popup.d.ts +1 -0
  23. package/dist-client/component/recipients-editor-popup.js +6 -8
  24. package/dist-client/component/recipients-editor-popup.js.map +1 -1
  25. package/dist-client/route.d.ts +1 -1
  26. package/dist-client/tsconfig.tsbuildinfo +1 -1
  27. package/dist-server/tsconfig.tsbuildinfo +1 -1
  28. package/package.json +6 -6
  29. package/tests/copy-from.test.ts +17 -0
  30. package/translations/en.json +0 -1
  31. package/translations/ja.json +0 -1
  32. package/translations/ko.json +0 -1
  33. package/translations/ms.json +0 -1
  34. package/translations/zh.json +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/organization",
3
- "version": "10.1.37",
3
+ "version": "10.1.38",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -36,10 +36,10 @@
36
36
  "@operato/p13n": "^10.0.0",
37
37
  "@operato/popup": "^10.15.0",
38
38
  "@operato/shell": "^10.0.0",
39
- "@things-factory/auth-base": "^10.1.37",
40
- "@things-factory/code-ui": "^10.1.37",
41
- "@things-factory/contact": "^10.1.37",
42
- "@things-factory/shell": "^10.1.37"
39
+ "@things-factory/auth-base": "^10.1.38",
40
+ "@things-factory/code-ui": "^10.1.38",
41
+ "@things-factory/contact": "^10.1.38",
42
+ "@things-factory/shell": "^10.1.38"
43
43
  },
44
- "gitHead": "d8a69e5c8803a4b9d3289df0cf38e161a207db61"
44
+ "gitHead": "b947349fe1c27d11038b592ceadaba336f14785b"
45
45
  }
@@ -0,0 +1,17 @@
1
+ import { offersCopyFrom } from '../client/component/copy-from'
2
+
3
+ describe('the approval line editor offers "copy from" only when there is something to copy', () => {
4
+ it('saved lines: the button stands', () => {
5
+ expect(offersCopyFrom(1)).toBe(true)
6
+ expect(offersCopyFrom(12)).toBe(true)
7
+ })
8
+
9
+ it('none saved: no button, so no empty window', () => {
10
+ expect(offersCopyFrom(0)).toBe(false)
11
+ })
12
+
13
+ it('not counted yet, or the count failed: no button', () => {
14
+ expect(offersCopyFrom(undefined)).toBe(false)
15
+ expect(offersCopyFrom(null)).toBe(false)
16
+ })
17
+ })
@@ -72,7 +72,6 @@
72
72
  "text.notify-immediately": "as soon as submitted",
73
73
  "text.saved": "saved",
74
74
  "title.approval-line": "approval lines",
75
- "title.approval-line editor": "approval line editor",
76
75
  "title.approval-line item list": "approval line item list",
77
76
  "title.approval-line template list": "approval line template list",
78
77
  "title.assignee list": "assignee list",
@@ -72,7 +72,6 @@
72
72
  "text.notify-immediately": "申請直後",
73
73
  "text.saved": "保存しました",
74
74
  "title.approval-line": "決裁ライン",
75
- "title.approval-line editor": "決裁ライン編集",
76
75
  "title.approval-line item list": "決裁ライン詳細",
77
76
  "title.approval-line template list": "決裁ライン テンプレート リスト",
78
77
  "title.assignee list": "譲渡人リスト",
@@ -72,7 +72,6 @@
72
72
  "text.notify-immediately": "상신 즉시",
73
73
  "text.saved": "저장했습니다",
74
74
  "title.approval-line": "결재선",
75
- "title.approval-line editor": "결재선 편집",
76
75
  "title.approval-line item list": "결재선 상세",
77
76
  "title.approval-line template list": "결재선 목록",
78
77
  "title.assignee list": "할당자 목록",
@@ -72,7 +72,6 @@
72
72
  "text.notify-immediately": "sebaik dihantar",
73
73
  "text.saved": "disimpan",
74
74
  "title.approval-line": "talian kelulusan",
75
- "title.approval-line editor": "editor garis kelulusan",
76
75
  "title.approval-line item list": "senarai item garis kelulusan",
77
76
  "title.approval-line template list": "senarai templat garis kelulusan",
78
77
  "title.assignee list": "senarai penerima tugasan",
@@ -72,7 +72,6 @@
72
72
  "text.notify-immediately": "提交后立即",
73
73
  "text.saved": "已保存",
74
74
  "title.approval-line": "审批线",
75
- "title.approval-line editor": "审批线编辑器",
76
75
  "title.approval-line item list": "审批线项目列表",
77
76
  "title.approval-line template list": "审批线模板列表",
78
77
  "title.assignee list": "受托人列表",