@things-factory/inquiry 10.1.251 → 10.1.253

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/inquiry",
3
- "version": "10.1.251",
3
+ "version": "10.1.253",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -43,11 +43,11 @@
43
43
  "@things-factory/i18n-base": "^10.1.250",
44
44
  "@things-factory/notification": "^10.1.250",
45
45
  "@things-factory/shell": "^10.1.247",
46
- "@things-factory/worklist": "^10.1.250",
46
+ "@things-factory/worklist": "^10.1.253",
47
47
  "graphql-scalars": "^1.22.0",
48
48
  "graphql-tag": "^2.12.6",
49
49
  "graphql-upload": "^15.0.2",
50
50
  "lit": "^3.1.2"
51
51
  },
52
- "gitHead": "6a4c45983e1d8aa4193bbbca1bd79ea3596d2175"
52
+ "gitHead": "e3d26f853d258ada1a2e77c7f533cc8f5b2528fb"
53
53
  }
@@ -0,0 +1,40 @@
1
+ import { readFileSync } from 'fs'
2
+ import path from 'path'
3
+
4
+ /**
5
+ * The writer keeps the house shape of a popup (operato-application design/ui/page-standard.md sections 7, 8), as the
6
+ * user management popups do: only the body scrolls, the one way out and the one main action sit in the shared
7
+ * `ox-popup-actions` row, fields are labels above native inputs, and one-of-several is `ox-input-select-buttons`.
8
+ */
9
+ const source = readFileSync(path.join(__dirname, '..', 'client', 'components', 'inquiry-writer.ts'), 'utf-8')
10
+
11
+ describe('inquiry-writer', () => {
12
+ it('uses the shared popup styles', () => {
13
+ for (const style of ['CommonPopupStyles', 'PopupBodyStyles', 'FormFieldStyles', 'PopupFieldStyles'])
14
+ expect(source.includes(style)).toBe(true)
15
+ })
16
+
17
+ it('scrolls its body only and ends in the shared action row', () => {
18
+ expect(source.includes('<div class="body">')).toBe(true)
19
+ expect(source.includes("import '@operato/popup/ox-popup-actions.js'")).toBe(true)
20
+ expect((source.match(/<ox-popup-actions>/g) || []).length).toBe(1)
21
+ })
22
+
23
+ it('has exactly one way out and one main action', () => {
24
+ expect((source.match(/slot="cancel"/g) || []).length).toBe(1)
25
+ expect((source.match(/slot="confirm"/g) || []).length).toBe(1)
26
+ })
27
+
28
+ it('picks the kind with the shared select buttons, not buttons of its own', () => {
29
+ expect(source.includes('<ox-input-select-buttons')).toBe(true)
30
+ expect(/aria-pressed|class="kinds"|class="buttons"/.test(source)).toBe(false)
31
+ })
32
+
33
+ it('draws no Material field, checkbox or raised button', () => {
34
+ expect(/<md-(filled|outlined)-text-field|<md-checkbox|<md-elevated-button/.test(source)).toBe(false)
35
+ })
36
+
37
+ it('writes no font size of its own', () => {
38
+ expect(/font-size:\s*[\d.]+(rem|px|em)/.test(source)).toBe(false)
39
+ })
40
+ })
@@ -39,7 +39,7 @@
39
39
  "inquiry.move.DECLINED": "Decline",
40
40
  "inquiry.move.CLOSED": "Close",
41
41
  "inquiry.text.kind-hint-question": "Ask how to use the application or how to get something done.",
42
- "inquiry.text.kind-hint-bug": "Tell what did not work as expected. The screen you were on goes with it.",
42
+ "inquiry.text.kind-hint-bug": "Tell what did not work as expected.",
43
43
  "inquiry.text.kind-hint-proposal": "Propose a feature or an improvement.",
44
44
  "inquiry.text.title-limit": "{count}/{max} characters",
45
45
  "inquiry.text.body-placeholder-question": "What were you trying to do, and where did you get stuck?",
@@ -47,7 +47,7 @@
47
47
  "inquiry.text.body-placeholder-proposal": "In which work would what help?",
48
48
  "inquiry.text.private-label": "Handlers only",
49
49
  "inquiry.text.private-hint": "Only you and the handlers read it.",
50
- "inquiry.text.domain-hint": "Everyone here reads it, so the same question is not asked twice. Only you and the handlers reply.",
50
+ "inquiry.text.domain-hint": "Everyone here reads it. Only you and the handlers reply.",
51
51
  "inquiry.text.page-hint": "Sent from: {page}",
52
52
  "inquiry.text.sent": "Sent. When it is answered, you are notified and it shows under Inquiries.",
53
53
  "inquiry.text.failed": "It could not be done.",
@@ -39,7 +39,7 @@
39
39
  "inquiry.move.DECLINED": "Descartar",
40
40
  "inquiry.move.CLOSED": "Cerrar",
41
41
  "inquiry.text.kind-hint-question": "Pregunte cómo usar la aplicación o cómo hacer algo.",
42
- "inquiry.text.kind-hint-bug": "Cuente qué no funcionó como esperaba. La pantalla en la que estaba se envía también.",
42
+ "inquiry.text.kind-hint-bug": "Informe de lo que no funcionó como se esperaba.",
43
43
  "inquiry.text.kind-hint-proposal": "Proponga una función o una mejora.",
44
44
  "inquiry.text.title-limit": "{count}/{max} caracteres",
45
45
  "inquiry.text.body-placeholder-question": "¿Qué intentaba hacer y dónde se atascó?",
@@ -47,7 +47,7 @@
47
47
  "inquiry.text.body-placeholder-proposal": "¿En qué trabajo ayudaría qué?",
48
48
  "inquiry.text.private-label": "Solo los responsables",
49
49
  "inquiry.text.private-hint": "Solo usted y los responsables la leen.",
50
- "inquiry.text.domain-hint": "Todos la leen, así no se pregunta dos veces lo mismo. Solo usted y los responsables responden.",
50
+ "inquiry.text.domain-hint": "Lo lee todo el mundo aquí. Solo usted y los responsables responden.",
51
51
  "inquiry.text.page-hint": "Enviado desde: {page}",
52
52
  "inquiry.text.sent": "Enviada. Cuando se responda, recibirá un aviso y aparecerá en Consultas.",
53
53
  "inquiry.text.failed": "No se pudo hacer.",
@@ -39,7 +39,7 @@
39
39
  "inquiry.move.DECLINED": "見送る",
40
40
  "inquiry.move.CLOSED": "完了にする",
41
41
  "inquiry.text.kind-hint-question": "使い方や業務の進め方を尋ねます。",
42
- "inquiry.text.kind-hint-bug": "期待と違う動作を知らせます。今見ていた画面が一緒に送られます。",
42
+ "inquiry.text.kind-hint-bug": "期待どおりに動かなかったことを知らせます。",
43
43
  "inquiry.text.kind-hint-proposal": "あると良い機能や改善点を提案します。",
44
44
  "inquiry.text.title-limit": "{count}/{max}文字",
45
45
  "inquiry.text.body-placeholder-question": "何をしようとして、どこで詰まったかを書いてください。",
@@ -47,7 +47,7 @@
47
47
  "inquiry.text.body-placeholder-proposal": "どの業務で何があると良いかを書いてください。",
48
48
  "inquiry.text.private-label": "担当者のみに公開",
49
49
  "inquiry.text.private-hint": "自分と担当者だけが読めます。",
50
- "inquiry.text.domain-hint": "同じ質問が繰り返されないよう全員が読めます。返信は自分と担当者だけです。",
50
+ "inquiry.text.domain-hint": "事業所の全員が読みます。返信は自分と担当者だけが書きます。",
51
51
  "inquiry.text.page-hint": "送信元の画面: {page}",
52
52
  "inquiry.text.sent": "送信しました。回答があると通知され、「お問い合わせ・提案」に表示されます。",
53
53
  "inquiry.text.failed": "処理できませんでした。",
@@ -39,7 +39,7 @@
39
39
  "inquiry.move.DECLINED": "반영 안 함",
40
40
  "inquiry.move.CLOSED": "닫기",
41
41
  "inquiry.text.kind-hint-question": "쓰는 법이나 업무 처리 방법을 묻습니다.",
42
- "inquiry.text.kind-hint-bug": "기대와 다르게 동작한 것을 알립니다. 지금 보던 화면이 함께 갑니다.",
42
+ "inquiry.text.kind-hint-bug": "기대와 다르게 동작한 것을 알립니다.",
43
43
  "inquiry.text.kind-hint-proposal": "있으면 좋을 기능이나 고칠 점을 제안합니다.",
44
44
  "inquiry.text.title-limit": "{count}/{max}자",
45
45
  "inquiry.text.body-placeholder-question": "무엇을 하려고 했는지, 어디서 막혔는지 적어 주세요.",
@@ -47,7 +47,7 @@
47
47
  "inquiry.text.body-placeholder-proposal": "어떤 일을 할 때 무엇이 있으면 좋을지 적어 주세요.",
48
48
  "inquiry.text.private-label": "담당자만 보기",
49
49
  "inquiry.text.private-hint": "나와 담당자만 읽습니다.",
50
- "inquiry.text.domain-hint": "사업장 사람 모두가 읽습니다 — 같은 질문을 다시 하지 않게 됩니다. 답글은 나와 담당자만 씁니다.",
50
+ "inquiry.text.domain-hint": "사업장 모두가 읽습니다. 답글은 나와 담당자만 씁니다.",
51
51
  "inquiry.text.page-hint": "보낸 화면: {page}",
52
52
  "inquiry.text.sent": "보냈습니다. 답이 오면 알림과 메뉴 「문의 · 제안」에서 보입니다.",
53
53
  "inquiry.text.failed": "처리하지 못했습니다.",
@@ -39,7 +39,7 @@
39
39
  "inquiry.move.DECLINED": "Tolak",
40
40
  "inquiry.move.CLOSED": "Tutup",
41
41
  "inquiry.text.kind-hint-question": "Tanya cara menggunakan aplikasi atau cara melakukan sesuatu.",
42
- "inquiry.text.kind-hint-bug": "Laporkan apa yang tidak berfungsi seperti dijangka. Skrin semasa dihantar bersama.",
42
+ "inquiry.text.kind-hint-bug": "Beritahu apa yang tidak berfungsi seperti dijangka.",
43
43
  "inquiry.text.kind-hint-proposal": "Cadangkan ciri atau penambahbaikan.",
44
44
  "inquiry.text.title-limit": "{count}/{max} aksara",
45
45
  "inquiry.text.body-placeholder-question": "Apa yang anda cuba lakukan, dan di mana anda tersekat?",
@@ -47,7 +47,7 @@
47
47
  "inquiry.text.body-placeholder-proposal": "Dalam kerja apa, apa yang akan membantu?",
48
48
  "inquiry.text.private-label": "Pengendali sahaja",
49
49
  "inquiry.text.private-hint": "Hanya anda dan pengendali boleh membacanya.",
50
- "inquiry.text.domain-hint": "Semua orang boleh membacanya supaya soalan yang sama tidak diulang. Hanya anda dan pengendali membalas.",
50
+ "inquiry.text.domain-hint": "Semua orang di sini membacanya. Hanya anda dan pengendali membalas.",
51
51
  "inquiry.text.page-hint": "Dihantar dari: {page}",
52
52
  "inquiry.text.sent": "Dihantar. Apabila dijawab, anda akan dimaklumkan dan ia dipaparkan di bawah Pertanyaan.",
53
53
  "inquiry.text.failed": "Tidak dapat dilakukan.",
@@ -39,7 +39,7 @@
39
39
  "inquiry.move.DECLINED": "不予采纳",
40
40
  "inquiry.move.CLOSED": "关闭",
41
41
  "inquiry.text.kind-hint-question": "询问使用方法或业务处理方式。",
42
- "inquiry.text.kind-hint-bug": "报告与预期不符的行为。当前页面会一并发送。",
42
+ "inquiry.text.kind-hint-bug": "报告未按预期运行的情况。",
43
43
  "inquiry.text.kind-hint-proposal": "建议新功能或改进。",
44
44
  "inquiry.text.title-limit": "{count}/{max}字",
45
45
  "inquiry.text.body-placeholder-question": "请写下您想做什么以及卡在哪里。",
@@ -47,7 +47,7 @@
47
47
  "inquiry.text.body-placeholder-proposal": "请写下在什么工作中需要什么功能。",
48
48
  "inquiry.text.private-label": "仅负责人可见",
49
49
  "inquiry.text.private-hint": "仅您和负责人可以阅读。",
50
- "inquiry.text.domain-hint": "所有人都能阅读,避免重复提问。只有您和负责人可以回复。",
50
+ "inquiry.text.domain-hint": "本单位所有人可读。只有你和负责人可以回复。",
51
51
  "inquiry.text.page-hint": "发送页面:{page}",
52
52
  "inquiry.text.sent": "已发送。答复后会通知您,并显示在“咨询与建议”中。",
53
53
  "inquiry.text.failed": "无法完成。",