@jean-is/render 0.8.0-rb7dd9e653b35 → 0.8.0-rc16b69aeba0b
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/brand.js +3 -2
- package/caps/charts/charts.css +5 -2
- package/caps/charts/charts.js +58 -28
- package/caps/charts/option.js +28 -1
- package/caps/files/midi.js +1 -1
- package/caps/files/office.js +17 -10
- package/caps/files/pdf.js +3 -0
- package/caps/games/page.js +1 -1
- package/caps/games/shell.js +2 -2
- package/caps/interactive/apps.js +14 -7
- package/caps/interactive/diagram.js +97 -23
- package/caps/interactive/interactive.css +7 -1
- package/caps/interactive/interactive.js +58 -18
- package/caps/interactive/live.js +96 -0
- package/caps/interactive/map.js +30 -4
- package/caps/interactive/mode.js +9 -6
- package/caps/interactive/page-diagram.js +6 -2
- package/caps/interactive/parts.js +20 -12
- package/caps/interactive/starts.js +15 -0
- package/caps/interactive/test.js +76 -0
- package/caps/interactive/view-parts.js +54 -31
- package/caps/layouts/layouts.css +7 -8
- package/caps/layouts/layouts.js +49 -40
- package/caps/layouts/shapes.js +50 -34
- package/caps/layouts/types.d.ts +8 -0
- package/caps/made/formats.js +84 -46
- package/caps/made/paper.js +142 -0
- package/caps/math/math.js +2 -2
- package/caps/receipt/der.js +1 -1
- package/caps/scores/scores.css +7 -7
- package/caps/scores/scores.js +44 -52
- package/caps/share/view.js +3 -2
- package/caps/skills/directory.js +5 -1
- package/caps/slides/edit.js +14 -4
- package/caps/slides/kit-page.css +8 -2
- package/caps/slides/kit-page.js +49 -39
- package/caps/slides/kit-sample.js +36 -0
- package/caps/slides/kit-slot.js +10 -0
- package/caps/slides/kit.js +3 -0
- package/caps/slides/save.js +24 -58
- package/caps/slides/slides.css +12 -9
- package/caps/slides/slides.js +24 -24
- package/caps/tables/formula.js +133 -0
- package/core/anthropic.js +10 -10
- package/core/conversations.js +2 -4
- package/core/deferred.js +38 -17
- package/core/events.js +4 -4
- package/core/files.js +2 -2
- package/core/fs.js +23 -85
- package/core/hooks.js +5 -5
- package/core/i18n.js +23 -20
- package/core/llm.js +47 -55
- package/core/loop.js +24 -22
- package/core/oauth.js +31 -0
- package/core/rules.js +1 -1
- package/core/search.js +1 -1
- package/core/settings.js +7 -61
- package/core/skills.js +2 -2
- package/core/vertex.js +37 -0
- package/core/zip.js +1 -1
- package/locales/am.json +41 -21
- package/locales/approvals/am.json +2 -3
- package/locales/approvals/ar.json +2 -3
- package/locales/approvals/bg.json +2 -3
- package/locales/approvals/bn.json +2 -3
- package/locales/approvals/br.json +8 -9
- package/locales/approvals/co.json +19 -20
- package/locales/approvals/cs.json +2 -3
- package/locales/approvals/da.json +2 -3
- package/locales/approvals/de.json +7 -8
- package/locales/approvals/el.json +2 -3
- package/locales/approvals/en.json +4 -5
- package/locales/approvals/es.json +8 -9
- package/locales/approvals/fa.json +2 -3
- package/locales/approvals/fi.json +2 -3
- package/locales/approvals/fr-CA.json +8 -9
- package/locales/approvals/fr.json +8 -9
- package/locales/approvals/ha.json +2 -3
- package/locales/approvals/he.json +2 -3
- package/locales/approvals/hi.json +2 -3
- package/locales/approvals/hr.json +2 -3
- package/locales/approvals/hu.json +2 -3
- package/locales/approvals/id.json +2 -3
- package/locales/approvals/it.json +11 -12
- package/locales/approvals/ja.json +9 -10
- package/locales/approvals/ko.json +21 -22
- package/locales/approvals/mr.json +2 -3
- package/locales/approvals/ms.json +2 -3
- package/locales/approvals/nl.json +2 -3
- package/locales/approvals/pl.json +2 -3
- package/locales/approvals/pt.json +7 -8
- package/locales/approvals/ro.json +2 -3
- package/locales/approvals/ru.json +2 -3
- package/locales/approvals/sk.json +2 -3
- package/locales/approvals/sv.json +2 -3
- package/locales/approvals/sw.json +2 -3
- package/locales/approvals/ta.json +2 -3
- package/locales/approvals/te.json +2 -3
- package/locales/approvals/th.json +2 -3
- package/locales/approvals/tl.json +2 -3
- package/locales/approvals/tr.json +2 -3
- package/locales/approvals/uk.json +2 -3
- package/locales/approvals/ur.json +2 -3
- package/locales/approvals/vi.json +2 -3
- package/locales/approvals/yo.json +2 -3
- package/locales/approvals/zh-Hans.json +6 -7
- package/locales/approvals/zh-Hant.json +5 -6
- package/locales/ar.json +45 -21
- package/locales/backup/de.json +1 -1
- package/locales/backup/ko.json +1 -1
- package/locales/backup/pt.json +1 -1
- package/locales/backup/zh-Hans.json +1 -1
- package/locales/bg.json +41 -21
- package/locales/bn.json +40 -20
- package/locales/br.json +65 -42
- package/locales/brain-local/ja.json +1 -1
- package/locales/brain-local/pt.json +3 -3
- package/locales/brain-local/zh-Hans.json +1 -1
- package/locales/brain-local/zh-Hant.json +3 -3
- package/locales/brains/am.json +7 -4
- package/locales/brains/ar.json +7 -4
- package/locales/brains/bg.json +7 -4
- package/locales/brains/bn.json +7 -4
- package/locales/brains/br.json +16 -13
- package/locales/brains/co.json +18 -15
- package/locales/brains/cs.json +7 -4
- package/locales/brains/da.json +7 -4
- package/locales/brains/de.json +13 -10
- package/locales/brains/el.json +7 -4
- package/locales/brains/en.json +12 -9
- package/locales/brains/es.json +20 -17
- package/locales/brains/fa.json +7 -4
- package/locales/brains/fi.json +7 -4
- package/locales/brains/fr-CA.json +14 -11
- package/locales/brains/fr.json +14 -11
- package/locales/brains/ha.json +7 -4
- package/locales/brains/he.json +7 -4
- package/locales/brains/hi.json +7 -4
- package/locales/brains/hr.json +7 -4
- package/locales/brains/hu.json +7 -4
- package/locales/brains/id.json +7 -4
- package/locales/brains/it.json +14 -11
- package/locales/brains/ja.json +15 -12
- package/locales/brains/ko.json +16 -13
- package/locales/brains/mr.json +7 -4
- package/locales/brains/ms.json +7 -4
- package/locales/brains/nl.json +7 -4
- package/locales/brains/pl.json +7 -4
- package/locales/brains/pt.json +16 -13
- package/locales/brains/ro.json +7 -4
- package/locales/brains/ru.json +7 -4
- package/locales/brains/sk.json +7 -4
- package/locales/brains/sv.json +7 -4
- package/locales/brains/sw.json +7 -4
- package/locales/brains/ta.json +7 -4
- package/locales/brains/te.json +7 -4
- package/locales/brains/th.json +7 -4
- package/locales/brains/tl.json +7 -4
- package/locales/brains/tr.json +7 -4
- package/locales/brains/uk.json +7 -4
- package/locales/brains/ur.json +7 -4
- package/locales/brains/vi.json +7 -4
- package/locales/brains/yo.json +7 -4
- package/locales/brains/zh-Hans.json +13 -10
- package/locales/brains/zh-Hant.json +20 -17
- package/locales/browser/co.json +2 -2
- package/locales/browser/es.json +1 -1
- package/locales/browser/it.json +1 -1
- package/locales/browser/ja.json +2 -2
- package/locales/browser/ko.json +6 -6
- package/locales/browser/pt.json +2 -2
- package/locales/camera/br.json +1 -1
- package/locales/camera/co.json +1 -1
- package/locales/camera/de.json +1 -1
- package/locales/camera/it.json +1 -1
- package/locales/camera/ja.json +2 -2
- package/locales/camera/ko.json +2 -2
- package/locales/camera/zh-Hant.json +1 -1
- package/locales/case/br.json +1 -1
- package/locales/case/co.json +10 -10
- package/locales/case/de.json +1 -1
- package/locales/case/es.json +6 -6
- package/locales/case/fr-CA.json +9 -9
- package/locales/case/fr.json +9 -9
- package/locales/case/it.json +8 -8
- package/locales/case/ja.json +6 -6
- package/locales/case/ko.json +1 -1
- package/locales/case/pt.json +8 -8
- package/locales/case/zh-Hant.json +1 -1
- package/locales/certificates/co.json +7 -7
- package/locales/certificates/es.json +2 -2
- package/locales/certificates/fr-CA.json +7 -7
- package/locales/certificates/fr.json +7 -7
- package/locales/certificates/it.json +3 -3
- package/locales/certificates/ja.json +2 -2
- package/locales/certificates/ko.json +1 -1
- package/locales/certificates/pt.json +2 -2
- package/locales/certificates/zh-Hans.json +5 -5
- package/locales/certificates/zh-Hant.json +6 -6
- package/locales/charts/am.json +2 -0
- package/locales/charts/ar.json +2 -0
- package/locales/charts/bg.json +2 -0
- package/locales/charts/bn.json +2 -0
- package/locales/charts/br.json +2 -0
- package/locales/charts/co.json +2 -0
- package/locales/charts/cs.json +2 -0
- package/locales/charts/da.json +2 -0
- package/locales/charts/de.json +3 -1
- package/locales/charts/el.json +2 -0
- package/locales/charts/en.json +2 -0
- package/locales/charts/es.json +2 -0
- package/locales/charts/fa.json +2 -0
- package/locales/charts/fi.json +2 -0
- package/locales/charts/fr-CA.json +2 -0
- package/locales/charts/fr.json +2 -0
- package/locales/charts/ha.json +2 -0
- package/locales/charts/he.json +2 -0
- package/locales/charts/hi.json +2 -0
- package/locales/charts/hr.json +2 -0
- package/locales/charts/hu.json +2 -0
- package/locales/charts/id.json +2 -0
- package/locales/charts/it.json +2 -0
- package/locales/charts/ja.json +2 -0
- package/locales/charts/ko.json +3 -1
- package/locales/charts/mr.json +2 -0
- package/locales/charts/ms.json +2 -0
- package/locales/charts/nl.json +2 -0
- package/locales/charts/pl.json +2 -0
- package/locales/charts/pt.json +2 -0
- package/locales/charts/ro.json +2 -0
- package/locales/charts/ru.json +2 -0
- package/locales/charts/sk.json +2 -0
- package/locales/charts/sv.json +2 -0
- package/locales/charts/sw.json +2 -0
- package/locales/charts/ta.json +2 -0
- package/locales/charts/te.json +2 -0
- package/locales/charts/th.json +2 -0
- package/locales/charts/tl.json +2 -0
- package/locales/charts/tr.json +2 -0
- package/locales/charts/uk.json +2 -0
- package/locales/charts/ur.json +2 -0
- package/locales/charts/vi.json +2 -0
- package/locales/charts/yo.json +2 -0
- package/locales/charts/zh-Hans.json +2 -0
- package/locales/charts/zh-Hant.json +2 -0
- package/locales/co.json +55 -34
- package/locales/compact/es.json +1 -1
- package/locales/compact/fr-CA.json +1 -1
- package/locales/compact/fr.json +1 -1
- package/locales/compact/it.json +1 -1
- package/locales/compact/pt.json +2 -2
- package/locales/computer/br.json +8 -8
- package/locales/computer/co.json +14 -14
- package/locales/computer/de.json +4 -4
- package/locales/computer/en.json +6 -6
- package/locales/computer/es.json +10 -10
- package/locales/computer/fr-CA.json +17 -17
- package/locales/computer/fr.json +17 -17
- package/locales/computer/it.json +9 -9
- package/locales/computer/ja.json +8 -8
- package/locales/computer/ko.json +14 -14
- package/locales/computer/pt.json +10 -10
- package/locales/computer/zh-Hans.json +8 -8
- package/locales/computer/zh-Hant.json +9 -9
- package/locales/connections/am.json +4 -2
- package/locales/connections/ar.json +4 -2
- package/locales/connections/bg.json +4 -2
- package/locales/connections/bn.json +4 -2
- package/locales/connections/br.json +5 -3
- package/locales/connections/co.json +17 -15
- package/locales/connections/cs.json +4 -2
- package/locales/connections/da.json +4 -2
- package/locales/connections/de.json +4 -2
- package/locales/connections/el.json +4 -2
- package/locales/connections/en.json +5 -3
- package/locales/connections/es.json +7 -5
- package/locales/connections/fa.json +4 -2
- package/locales/connections/fi.json +4 -2
- package/locales/connections/fr-CA.json +5 -3
- package/locales/connections/fr.json +5 -3
- package/locales/connections/ha.json +4 -2
- package/locales/connections/he.json +4 -2
- package/locales/connections/hi.json +4 -2
- package/locales/connections/hr.json +4 -2
- package/locales/connections/hu.json +4 -2
- package/locales/connections/id.json +4 -2
- package/locales/connections/it.json +13 -11
- package/locales/connections/ja.json +28 -26
- package/locales/connections/ko.json +7 -5
- package/locales/connections/mr.json +4 -2
- package/locales/connections/ms.json +4 -2
- package/locales/connections/nl.json +4 -2
- package/locales/connections/pl.json +4 -2
- package/locales/connections/pt.json +10 -8
- package/locales/connections/ro.json +4 -2
- package/locales/connections/ru.json +4 -2
- package/locales/connections/sk.json +4 -2
- package/locales/connections/sv.json +4 -2
- package/locales/connections/sw.json +4 -2
- package/locales/connections/ta.json +4 -2
- package/locales/connections/te.json +4 -2
- package/locales/connections/th.json +4 -2
- package/locales/connections/tl.json +4 -2
- package/locales/connections/tr.json +4 -2
- package/locales/connections/uk.json +4 -2
- package/locales/connections/ur.json +4 -2
- package/locales/connections/vi.json +4 -2
- package/locales/connections/yo.json +4 -2
- package/locales/connections/zh-Hans.json +10 -8
- package/locales/connections/zh-Hant.json +23 -21
- package/locales/creations/am.json +4 -0
- package/locales/creations/ar.json +4 -0
- package/locales/creations/bg.json +4 -0
- package/locales/creations/bn.json +4 -0
- package/locales/creations/br.json +18 -14
- package/locales/creations/co.json +15 -11
- package/locales/creations/cs.json +4 -0
- package/locales/creations/da.json +4 -0
- package/locales/creations/de.json +5 -1
- package/locales/creations/el.json +4 -0
- package/locales/creations/en.json +5 -1
- package/locales/creations/es.json +13 -9
- package/locales/creations/fa.json +4 -0
- package/locales/creations/fi.json +4 -0
- package/locales/creations/fr-CA.json +5 -1
- package/locales/creations/fr.json +13 -9
- package/locales/creations/ha.json +4 -0
- package/locales/creations/he.json +4 -0
- package/locales/creations/hi.json +4 -0
- package/locales/creations/hr.json +4 -0
- package/locales/creations/hu.json +4 -0
- package/locales/creations/id.json +4 -0
- package/locales/creations/it.json +12 -8
- package/locales/creations/ja.json +5 -1
- package/locales/creations/ko.json +5 -1
- package/locales/creations/mr.json +4 -0
- package/locales/creations/ms.json +4 -0
- package/locales/creations/nl.json +4 -0
- package/locales/creations/pl.json +4 -0
- package/locales/creations/pt.json +12 -8
- package/locales/creations/ro.json +4 -0
- package/locales/creations/ru.json +4 -0
- package/locales/creations/sk.json +4 -0
- package/locales/creations/sv.json +4 -0
- package/locales/creations/sw.json +4 -0
- package/locales/creations/ta.json +4 -0
- package/locales/creations/te.json +4 -0
- package/locales/creations/th.json +4 -0
- package/locales/creations/tl.json +4 -0
- package/locales/creations/tr.json +4 -0
- package/locales/creations/uk.json +4 -0
- package/locales/creations/ur.json +4 -0
- package/locales/creations/vi.json +4 -0
- package/locales/creations/yo.json +4 -0
- package/locales/creations/zh-Hans.json +5 -1
- package/locales/creations/zh-Hant.json +5 -1
- package/locales/cs.json +43 -21
- package/locales/da.json +40 -20
- package/locales/data/am.json +5 -1
- package/locales/data/ar.json +5 -1
- package/locales/data/bg.json +5 -1
- package/locales/data/bn.json +5 -1
- package/locales/data/br.json +7 -3
- package/locales/data/co.json +8 -4
- package/locales/data/cs.json +5 -1
- package/locales/data/da.json +5 -1
- package/locales/data/de.json +5 -1
- package/locales/data/el.json +5 -1
- package/locales/data/en.json +5 -1
- package/locales/data/es.json +9 -5
- package/locales/data/fa.json +5 -1
- package/locales/data/fi.json +5 -1
- package/locales/data/fr-CA.json +5 -1
- package/locales/data/fr.json +5 -1
- package/locales/data/ha.json +5 -1
- package/locales/data/he.json +5 -1
- package/locales/data/hi.json +5 -1
- package/locales/data/hr.json +5 -1
- package/locales/data/hu.json +5 -1
- package/locales/data/id.json +5 -1
- package/locales/data/it.json +6 -2
- package/locales/data/ja.json +13 -9
- package/locales/data/ko.json +7 -3
- package/locales/data/mr.json +5 -1
- package/locales/data/ms.json +5 -1
- package/locales/data/nl.json +5 -1
- package/locales/data/pl.json +5 -1
- package/locales/data/pt.json +10 -6
- package/locales/data/ro.json +5 -1
- package/locales/data/ru.json +5 -1
- package/locales/data/sk.json +5 -1
- package/locales/data/sv.json +5 -1
- package/locales/data/sw.json +5 -1
- package/locales/data/ta.json +5 -1
- package/locales/data/te.json +5 -1
- package/locales/data/th.json +5 -1
- package/locales/data/tl.json +5 -1
- package/locales/data/tr.json +5 -1
- package/locales/data/uk.json +5 -1
- package/locales/data/ur.json +5 -1
- package/locales/data/vi.json +5 -1
- package/locales/data/yo.json +5 -1
- package/locales/data/zh-Hans.json +7 -3
- package/locales/data/zh-Hant.json +9 -5
- package/locales/de.json +56 -36
- package/locales/designs/am.json +0 -13
- package/locales/designs/ar.json +0 -13
- package/locales/designs/bg.json +0 -13
- package/locales/designs/bn.json +0 -13
- package/locales/designs/br.json +9 -22
- package/locales/designs/co.json +8 -21
- package/locales/designs/cs.json +0 -13
- package/locales/designs/da.json +0 -13
- package/locales/designs/de.json +1 -14
- package/locales/designs/el.json +0 -13
- package/locales/designs/en.json +3 -16
- package/locales/designs/es.json +0 -13
- package/locales/designs/fa.json +0 -13
- package/locales/designs/fi.json +0 -13
- package/locales/designs/fr-CA.json +4 -17
- package/locales/designs/fr.json +5 -18
- package/locales/designs/ha.json +0 -13
- package/locales/designs/he.json +0 -13
- package/locales/designs/hi.json +0 -13
- package/locales/designs/hr.json +0 -13
- package/locales/designs/hu.json +0 -13
- package/locales/designs/id.json +0 -13
- package/locales/designs/it.json +6 -19
- package/locales/designs/ja.json +10 -23
- package/locales/designs/ko.json +6 -19
- package/locales/designs/mr.json +0 -13
- package/locales/designs/ms.json +0 -13
- package/locales/designs/nl.json +0 -13
- package/locales/designs/pl.json +0 -13
- package/locales/designs/pt.json +3 -16
- package/locales/designs/ro.json +0 -13
- package/locales/designs/ru.json +0 -13
- package/locales/designs/sk.json +0 -13
- package/locales/designs/sv.json +0 -13
- package/locales/designs/sw.json +0 -13
- package/locales/designs/ta.json +0 -13
- package/locales/designs/te.json +0 -13
- package/locales/designs/th.json +0 -13
- package/locales/designs/tl.json +0 -13
- package/locales/designs/tr.json +0 -13
- package/locales/designs/uk.json +0 -13
- package/locales/designs/ur.json +0 -13
- package/locales/designs/vi.json +0 -13
- package/locales/designs/yo.json +0 -13
- package/locales/designs/zh-Hans.json +1 -14
- package/locales/designs/zh-Hant.json +1 -14
- package/locales/devices/am.json +79 -0
- package/locales/devices/ar.json +87 -0
- package/locales/devices/bg.json +79 -0
- package/locales/devices/bn.json +79 -0
- package/locales/devices/br.json +85 -0
- package/locales/devices/co.json +81 -0
- package/locales/devices/cs.json +83 -0
- package/locales/devices/da.json +79 -0
- package/locales/devices/de.json +79 -0
- package/locales/devices/el.json +79 -0
- package/locales/devices/en.json +79 -0
- package/locales/devices/es.json +81 -0
- package/locales/devices/fa.json +79 -0
- package/locales/devices/fi.json +79 -0
- package/locales/devices/fr-CA.json +81 -0
- package/locales/devices/fr.json +81 -0
- package/locales/devices/ha.json +79 -0
- package/locales/devices/he.json +81 -0
- package/locales/devices/hi.json +79 -0
- package/locales/devices/hr.json +81 -0
- package/locales/devices/hu.json +79 -0
- package/locales/devices/id.json +77 -0
- package/locales/devices/it.json +81 -0
- package/locales/devices/ja.json +77 -0
- package/locales/devices/ko.json +77 -0
- package/locales/devices/mr.json +79 -0
- package/locales/devices/ms.json +77 -0
- package/locales/devices/nl.json +79 -0
- package/locales/devices/pl.json +83 -0
- package/locales/devices/pt.json +81 -0
- package/locales/devices/ro.json +81 -0
- package/locales/devices/ru.json +83 -0
- package/locales/devices/sk.json +83 -0
- package/locales/devices/sv.json +79 -0
- package/locales/devices/sw.json +79 -0
- package/locales/devices/ta.json +79 -0
- package/locales/devices/te.json +79 -0
- package/locales/devices/th.json +77 -0
- package/locales/devices/tl.json +79 -0
- package/locales/devices/tr.json +79 -0
- package/locales/devices/uk.json +83 -0
- package/locales/devices/ur.json +79 -0
- package/locales/devices/vi.json +77 -0
- package/locales/devices/yo.json +77 -0
- package/locales/devices/zh-Hans.json +77 -0
- package/locales/devices/zh-Hant.json +77 -0
- package/locales/dialogs/am.json +20 -11
- package/locales/dialogs/ar.json +20 -11
- package/locales/dialogs/bg.json +20 -11
- package/locales/dialogs/bn.json +20 -11
- package/locales/dialogs/br.json +39 -30
- package/locales/dialogs/co.json +39 -30
- package/locales/dialogs/cs.json +20 -11
- package/locales/dialogs/da.json +20 -11
- package/locales/dialogs/de.json +33 -24
- package/locales/dialogs/el.json +20 -11
- package/locales/dialogs/en.json +28 -19
- package/locales/dialogs/es.json +48 -39
- package/locales/dialogs/fa.json +20 -11
- package/locales/dialogs/fi.json +20 -11
- package/locales/dialogs/fr-CA.json +37 -28
- package/locales/dialogs/fr.json +37 -28
- package/locales/dialogs/ha.json +20 -11
- package/locales/dialogs/he.json +20 -11
- package/locales/dialogs/hi.json +20 -11
- package/locales/dialogs/hr.json +20 -11
- package/locales/dialogs/hu.json +20 -11
- package/locales/dialogs/id.json +20 -11
- package/locales/dialogs/it.json +42 -33
- package/locales/dialogs/ja.json +72 -63
- package/locales/dialogs/ko.json +43 -34
- package/locales/dialogs/mr.json +20 -11
- package/locales/dialogs/ms.json +20 -11
- package/locales/dialogs/nl.json +20 -11
- package/locales/dialogs/pl.json +20 -11
- package/locales/dialogs/pt.json +46 -37
- package/locales/dialogs/ro.json +20 -11
- package/locales/dialogs/ru.json +20 -11
- package/locales/dialogs/sk.json +20 -11
- package/locales/dialogs/sv.json +20 -11
- package/locales/dialogs/sw.json +20 -11
- package/locales/dialogs/ta.json +20 -11
- package/locales/dialogs/te.json +20 -11
- package/locales/dialogs/th.json +20 -11
- package/locales/dialogs/tl.json +20 -11
- package/locales/dialogs/tr.json +20 -11
- package/locales/dialogs/uk.json +20 -11
- package/locales/dialogs/ur.json +20 -11
- package/locales/dialogs/vi.json +20 -11
- package/locales/dialogs/yo.json +20 -11
- package/locales/dialogs/zh-Hans.json +41 -32
- package/locales/dialogs/zh-Hant.json +49 -40
- package/locales/documents/am.json +16 -2
- package/locales/documents/ar.json +16 -2
- package/locales/documents/bg.json +16 -2
- package/locales/documents/bn.json +16 -2
- package/locales/documents/br.json +16 -2
- package/locales/documents/co.json +18 -4
- package/locales/documents/cs.json +16 -2
- package/locales/documents/da.json +16 -2
- package/locales/documents/de.json +18 -4
- package/locales/documents/el.json +16 -2
- package/locales/documents/en.json +17 -3
- package/locales/documents/es.json +17 -3
- package/locales/documents/fa.json +16 -2
- package/locales/documents/fi.json +16 -2
- package/locales/documents/fr-CA.json +17 -3
- package/locales/documents/fr.json +17 -3
- package/locales/documents/ha.json +16 -2
- package/locales/documents/he.json +16 -2
- package/locales/documents/hi.json +16 -2
- package/locales/documents/hr.json +16 -2
- package/locales/documents/hu.json +16 -2
- package/locales/documents/id.json +16 -2
- package/locales/documents/it.json +17 -3
- package/locales/documents/ja.json +30 -16
- package/locales/documents/ko.json +17 -3
- package/locales/documents/mr.json +16 -2
- package/locales/documents/ms.json +16 -2
- package/locales/documents/nl.json +16 -2
- package/locales/documents/pl.json +16 -2
- package/locales/documents/pt.json +20 -6
- package/locales/documents/ro.json +16 -2
- package/locales/documents/ru.json +16 -2
- package/locales/documents/sk.json +16 -2
- package/locales/documents/sv.json +16 -2
- package/locales/documents/sw.json +16 -2
- package/locales/documents/ta.json +16 -2
- package/locales/documents/te.json +16 -2
- package/locales/documents/th.json +16 -2
- package/locales/documents/tl.json +16 -2
- package/locales/documents/tr.json +16 -2
- package/locales/documents/uk.json +16 -2
- package/locales/documents/ur.json +16 -2
- package/locales/documents/vi.json +16 -2
- package/locales/documents/yo.json +16 -2
- package/locales/documents/zh-Hans.json +18 -4
- package/locales/documents/zh-Hant.json +18 -4
- package/locales/el.json +41 -21
- package/locales/en.json +47 -27
- package/locales/enterprise/am.json +29 -1
- package/locales/enterprise/ar.json +29 -1
- package/locales/enterprise/bg.json +29 -1
- package/locales/enterprise/bn.json +29 -1
- package/locales/enterprise/br.json +31 -3
- package/locales/enterprise/co.json +30 -2
- package/locales/enterprise/cs.json +29 -1
- package/locales/enterprise/da.json +29 -1
- package/locales/enterprise/de.json +30 -2
- package/locales/enterprise/el.json +29 -1
- package/locales/enterprise/en.json +30 -2
- package/locales/enterprise/es.json +30 -2
- package/locales/enterprise/fa.json +29 -1
- package/locales/enterprise/fi.json +29 -1
- package/locales/enterprise/fr-CA.json +31 -3
- package/locales/enterprise/fr.json +31 -3
- package/locales/enterprise/ha.json +29 -1
- package/locales/enterprise/he.json +29 -1
- package/locales/enterprise/hi.json +29 -1
- package/locales/enterprise/hr.json +29 -1
- package/locales/enterprise/hu.json +29 -1
- package/locales/enterprise/id.json +29 -1
- package/locales/enterprise/it.json +31 -3
- package/locales/enterprise/ja.json +37 -9
- package/locales/enterprise/ko.json +30 -2
- package/locales/enterprise/mr.json +29 -1
- package/locales/enterprise/ms.json +29 -1
- package/locales/enterprise/nl.json +29 -1
- package/locales/enterprise/pl.json +29 -1
- package/locales/enterprise/pt.json +30 -2
- package/locales/enterprise/ro.json +29 -1
- package/locales/enterprise/ru.json +29 -1
- package/locales/enterprise/sk.json +29 -1
- package/locales/enterprise/sv.json +29 -1
- package/locales/enterprise/sw.json +29 -1
- package/locales/enterprise/ta.json +29 -1
- package/locales/enterprise/te.json +29 -1
- package/locales/enterprise/th.json +29 -1
- package/locales/enterprise/tl.json +29 -1
- package/locales/enterprise/tr.json +29 -1
- package/locales/enterprise/uk.json +29 -1
- package/locales/enterprise/ur.json +29 -1
- package/locales/enterprise/vi.json +29 -1
- package/locales/enterprise/yo.json +29 -1
- package/locales/enterprise/zh-Hans.json +38 -10
- package/locales/enterprise/zh-Hant.json +38 -10
- package/locales/es.json +56 -35
- package/locales/extensions/am.json +2 -1
- package/locales/extensions/ar.json +2 -1
- package/locales/extensions/bg.json +2 -1
- package/locales/extensions/bn.json +2 -1
- package/locales/extensions/br.json +12 -11
- package/locales/extensions/co.json +8 -7
- package/locales/extensions/cs.json +2 -1
- package/locales/extensions/da.json +2 -1
- package/locales/extensions/de.json +3 -2
- package/locales/extensions/el.json +2 -1
- package/locales/extensions/en.json +3 -2
- package/locales/extensions/es.json +4 -3
- package/locales/extensions/fa.json +2 -1
- package/locales/extensions/fi.json +2 -1
- package/locales/extensions/fr-CA.json +7 -6
- package/locales/extensions/fr.json +7 -6
- package/locales/extensions/ha.json +2 -1
- package/locales/extensions/he.json +2 -1
- package/locales/extensions/hi.json +2 -1
- package/locales/extensions/hr.json +2 -1
- package/locales/extensions/hu.json +2 -1
- package/locales/extensions/id.json +2 -1
- package/locales/extensions/it.json +5 -4
- package/locales/extensions/ja.json +7 -6
- package/locales/extensions/ko.json +24 -23
- package/locales/extensions/mr.json +2 -1
- package/locales/extensions/ms.json +2 -1
- package/locales/extensions/nl.json +2 -1
- package/locales/extensions/pl.json +2 -1
- package/locales/extensions/pt.json +5 -4
- package/locales/extensions/ro.json +2 -1
- package/locales/extensions/ru.json +2 -1
- package/locales/extensions/sk.json +2 -1
- package/locales/extensions/sv.json +2 -1
- package/locales/extensions/sw.json +2 -1
- package/locales/extensions/ta.json +2 -1
- package/locales/extensions/te.json +2 -1
- package/locales/extensions/th.json +2 -1
- package/locales/extensions/tl.json +2 -1
- package/locales/extensions/tr.json +2 -1
- package/locales/extensions/uk.json +2 -1
- package/locales/extensions/ur.json +2 -1
- package/locales/extensions/vi.json +2 -1
- package/locales/extensions/yo.json +2 -1
- package/locales/extensions/zh-Hans.json +5 -4
- package/locales/extensions/zh-Hant.json +9 -8
- package/locales/fa.json +40 -20
- package/locales/feedback/am.json +7 -0
- package/locales/feedback/ar.json +7 -0
- package/locales/feedback/bg.json +7 -0
- package/locales/feedback/bn.json +7 -0
- package/locales/feedback/br.json +7 -0
- package/locales/feedback/co.json +7 -0
- package/locales/feedback/cs.json +7 -0
- package/locales/feedback/da.json +7 -0
- package/locales/feedback/de.json +7 -0
- package/locales/feedback/el.json +7 -0
- package/locales/feedback/en.json +7 -0
- package/locales/feedback/es.json +7 -0
- package/locales/feedback/fa.json +7 -0
- package/locales/feedback/fi.json +7 -0
- package/locales/feedback/fr-CA.json +7 -0
- package/locales/feedback/fr.json +7 -0
- package/locales/feedback/ha.json +7 -0
- package/locales/feedback/he.json +7 -0
- package/locales/feedback/hi.json +7 -0
- package/locales/feedback/hr.json +7 -0
- package/locales/feedback/hu.json +7 -0
- package/locales/feedback/id.json +7 -0
- package/locales/feedback/it.json +7 -0
- package/locales/feedback/ja.json +7 -0
- package/locales/feedback/ko.json +7 -0
- package/locales/feedback/mr.json +7 -0
- package/locales/feedback/ms.json +7 -0
- package/locales/feedback/nl.json +7 -0
- package/locales/feedback/pl.json +7 -0
- package/locales/feedback/pt.json +7 -0
- package/locales/feedback/ro.json +7 -0
- package/locales/feedback/ru.json +7 -0
- package/locales/feedback/sk.json +7 -0
- package/locales/feedback/sv.json +7 -0
- package/locales/feedback/sw.json +7 -0
- package/locales/feedback/ta.json +7 -0
- package/locales/feedback/te.json +7 -0
- package/locales/feedback/th.json +7 -0
- package/locales/feedback/tl.json +7 -0
- package/locales/feedback/tr.json +7 -0
- package/locales/feedback/uk.json +7 -0
- package/locales/feedback/ur.json +7 -0
- package/locales/feedback/vi.json +7 -0
- package/locales/feedback/yo.json +7 -0
- package/locales/feedback/zh-Hans.json +7 -0
- package/locales/feedback/zh-Hant.json +7 -0
- package/locales/fi.json +41 -21
- package/locales/files/am.json +10 -0
- package/locales/files/ar.json +10 -0
- package/locales/files/bg.json +10 -0
- package/locales/files/bn.json +10 -0
- package/locales/files/br.json +10 -0
- package/locales/files/co.json +10 -0
- package/locales/files/cs.json +10 -0
- package/locales/files/da.json +10 -0
- package/locales/files/de.json +10 -0
- package/locales/files/el.json +10 -0
- package/locales/files/en.json +10 -0
- package/locales/files/es.json +10 -0
- package/locales/files/fa.json +10 -0
- package/locales/files/fi.json +10 -0
- package/locales/files/fr-CA.json +10 -0
- package/locales/files/fr.json +10 -0
- package/locales/files/ha.json +10 -0
- package/locales/files/he.json +10 -0
- package/locales/files/hi.json +10 -0
- package/locales/files/hr.json +10 -0
- package/locales/files/hu.json +10 -0
- package/locales/files/id.json +10 -0
- package/locales/files/it.json +10 -0
- package/locales/files/ja.json +10 -0
- package/locales/files/ko.json +10 -0
- package/locales/files/mr.json +10 -0
- package/locales/files/ms.json +10 -0
- package/locales/files/nl.json +10 -0
- package/locales/files/pl.json +10 -0
- package/locales/files/pt.json +10 -0
- package/locales/files/ro.json +10 -0
- package/locales/files/ru.json +10 -0
- package/locales/files/sk.json +10 -0
- package/locales/files/sv.json +10 -0
- package/locales/files/sw.json +10 -0
- package/locales/files/ta.json +10 -0
- package/locales/files/te.json +10 -0
- package/locales/files/th.json +10 -0
- package/locales/files/tl.json +10 -0
- package/locales/files/tr.json +10 -0
- package/locales/files/uk.json +10 -0
- package/locales/files/ur.json +10 -0
- package/locales/files/vi.json +10 -0
- package/locales/files/yo.json +10 -0
- package/locales/files/zh-Hans.json +10 -0
- package/locales/files/zh-Hant.json +10 -0
- package/locales/first/br.json +5 -5
- package/locales/first/co.json +1 -1
- package/locales/first/es.json +4 -4
- package/locales/first/fr-CA.json +1 -1
- package/locales/first/fr.json +1 -1
- package/locales/first/it.json +1 -1
- package/locales/first/ja.json +7 -7
- package/locales/first/ko.json +3 -3
- package/locales/first/pt.json +3 -3
- package/locales/first/zh-Hans.json +2 -2
- package/locales/first/zh-Hant.json +3 -3
- package/locales/flows/am.json +3 -0
- package/locales/flows/ar.json +3 -0
- package/locales/flows/bg.json +3 -0
- package/locales/flows/bn.json +3 -0
- package/locales/flows/br.json +10 -7
- package/locales/flows/co.json +7 -4
- package/locales/flows/cs.json +3 -0
- package/locales/flows/da.json +3 -0
- package/locales/flows/de.json +5 -2
- package/locales/flows/el.json +3 -0
- package/locales/flows/en.json +3 -0
- package/locales/flows/es.json +5 -2
- package/locales/flows/fa.json +3 -0
- package/locales/flows/fi.json +3 -0
- package/locales/flows/fr-CA.json +6 -3
- package/locales/flows/fr.json +6 -3
- package/locales/flows/ha.json +3 -0
- package/locales/flows/he.json +3 -0
- package/locales/flows/hi.json +3 -0
- package/locales/flows/hr.json +3 -0
- package/locales/flows/hu.json +3 -0
- package/locales/flows/id.json +3 -0
- package/locales/flows/it.json +5 -2
- package/locales/flows/ja.json +7 -4
- package/locales/flows/ko.json +10 -7
- package/locales/flows/mr.json +3 -0
- package/locales/flows/ms.json +3 -0
- package/locales/flows/nl.json +3 -0
- package/locales/flows/pl.json +3 -0
- package/locales/flows/pt.json +9 -6
- package/locales/flows/ro.json +3 -0
- package/locales/flows/ru.json +3 -0
- package/locales/flows/sk.json +3 -0
- package/locales/flows/sv.json +3 -0
- package/locales/flows/sw.json +3 -0
- package/locales/flows/ta.json +3 -0
- package/locales/flows/te.json +3 -0
- package/locales/flows/th.json +3 -0
- package/locales/flows/tl.json +3 -0
- package/locales/flows/tr.json +3 -0
- package/locales/flows/uk.json +3 -0
- package/locales/flows/ur.json +3 -0
- package/locales/flows/vi.json +3 -0
- package/locales/flows/yo.json +3 -0
- package/locales/flows/zh-Hans.json +8 -5
- package/locales/flows/zh-Hant.json +11 -8
- package/locales/folders/br.json +4 -4
- package/locales/folders/de.json +1 -1
- package/locales/folders/es.json +2 -2
- package/locales/folders/ja.json +2 -2
- package/locales/folders/ko.json +3 -3
- package/locales/folders/pt.json +2 -2
- package/locales/folders/zh-Hans.json +2 -2
- package/locales/folders/zh-Hant.json +7 -7
- package/locales/fr-CA.json +75 -54
- package/locales/fr.json +72 -51
- package/locales/games/br.json +2 -2
- package/locales/ha.json +40 -20
- package/locales/he.json +41 -20
- package/locales/hi.json +40 -20
- package/locales/hr.json +42 -21
- package/locales/hu.json +40 -20
- package/locales/id.json +40 -21
- package/locales/interactive/am.json +8 -1
- package/locales/interactive/ar.json +8 -1
- package/locales/interactive/bg.json +8 -1
- package/locales/interactive/bn.json +8 -1
- package/locales/interactive/br.json +11 -4
- package/locales/interactive/co.json +11 -4
- package/locales/interactive/cs.json +8 -1
- package/locales/interactive/da.json +8 -1
- package/locales/interactive/de.json +8 -1
- package/locales/interactive/el.json +8 -1
- package/locales/interactive/en.json +8 -1
- package/locales/interactive/es.json +9 -2
- package/locales/interactive/fa.json +8 -1
- package/locales/interactive/fi.json +8 -1
- package/locales/interactive/fr-CA.json +8 -1
- package/locales/interactive/fr.json +8 -1
- package/locales/interactive/ha.json +8 -1
- package/locales/interactive/he.json +8 -1
- package/locales/interactive/hi.json +8 -1
- package/locales/interactive/hr.json +8 -1
- package/locales/interactive/hu.json +8 -1
- package/locales/interactive/id.json +8 -1
- package/locales/interactive/it.json +9 -2
- package/locales/interactive/ja.json +9 -2
- package/locales/interactive/ko.json +11 -4
- package/locales/interactive/mr.json +8 -1
- package/locales/interactive/ms.json +8 -1
- package/locales/interactive/nl.json +8 -1
- package/locales/interactive/pl.json +8 -1
- package/locales/interactive/pt.json +10 -3
- package/locales/interactive/ro.json +8 -1
- package/locales/interactive/ru.json +8 -1
- package/locales/interactive/sk.json +8 -1
- package/locales/interactive/sv.json +8 -1
- package/locales/interactive/sw.json +8 -1
- package/locales/interactive/ta.json +8 -1
- package/locales/interactive/te.json +8 -1
- package/locales/interactive/th.json +8 -1
- package/locales/interactive/tl.json +8 -1
- package/locales/interactive/tr.json +8 -1
- package/locales/interactive/uk.json +8 -1
- package/locales/interactive/ur.json +8 -1
- package/locales/interactive/vi.json +8 -1
- package/locales/interactive/yo.json +8 -1
- package/locales/interactive/zh-Hans.json +8 -1
- package/locales/interactive/zh-Hant.json +11 -4
- package/locales/it.json +79 -58
- package/locales/ja.json +68 -49
- package/locales/ko.json +62 -43
- package/locales/layouts/ja.json +1 -1
- package/locales/layouts/zh-Hans.json +1 -1
- package/locales/layouts/zh-Hant.json +1 -1
- package/locales/lock/am.json +6 -3
- package/locales/lock/ar.json +6 -3
- package/locales/lock/bg.json +6 -3
- package/locales/lock/bn.json +6 -3
- package/locales/lock/br.json +8 -5
- package/locales/lock/co.json +8 -5
- package/locales/lock/cs.json +6 -3
- package/locales/lock/da.json +6 -3
- package/locales/lock/de.json +8 -5
- package/locales/lock/el.json +6 -3
- package/locales/lock/en.json +7 -4
- package/locales/lock/es.json +7 -4
- package/locales/lock/fa.json +6 -3
- package/locales/lock/fi.json +6 -3
- package/locales/lock/fr-CA.json +7 -4
- package/locales/lock/fr.json +7 -4
- package/locales/lock/ha.json +6 -3
- package/locales/lock/he.json +6 -3
- package/locales/lock/hi.json +6 -3
- package/locales/lock/hr.json +6 -3
- package/locales/lock/hu.json +6 -3
- package/locales/lock/id.json +6 -3
- package/locales/lock/it.json +10 -7
- package/locales/lock/ja.json +10 -7
- package/locales/lock/ko.json +8 -5
- package/locales/lock/mr.json +6 -3
- package/locales/lock/ms.json +6 -3
- package/locales/lock/nl.json +6 -3
- package/locales/lock/pl.json +6 -3
- package/locales/lock/pt.json +7 -4
- package/locales/lock/ro.json +6 -3
- package/locales/lock/ru.json +6 -3
- package/locales/lock/sk.json +6 -3
- package/locales/lock/sv.json +6 -3
- package/locales/lock/sw.json +6 -3
- package/locales/lock/ta.json +6 -3
- package/locales/lock/te.json +6 -3
- package/locales/lock/th.json +6 -3
- package/locales/lock/tl.json +6 -3
- package/locales/lock/tr.json +6 -3
- package/locales/lock/uk.json +6 -3
- package/locales/lock/ur.json +6 -3
- package/locales/lock/vi.json +6 -3
- package/locales/lock/yo.json +6 -3
- package/locales/lock/zh-Hans.json +7 -4
- package/locales/lock/zh-Hant.json +7 -4
- package/locales/look/am.json +10 -1
- package/locales/look/ar.json +10 -1
- package/locales/look/bg.json +10 -1
- package/locales/look/bn.json +10 -1
- package/locales/look/br.json +17 -8
- package/locales/look/co.json +10 -1
- package/locales/look/cs.json +10 -1
- package/locales/look/da.json +10 -1
- package/locales/look/de.json +10 -1
- package/locales/look/el.json +10 -1
- package/locales/look/en.json +10 -1
- package/locales/look/es.json +12 -3
- package/locales/look/fa.json +10 -1
- package/locales/look/fi.json +10 -1
- package/locales/look/fr-CA.json +10 -1
- package/locales/look/fr.json +10 -1
- package/locales/look/ha.json +10 -1
- package/locales/look/he.json +10 -1
- package/locales/look/hi.json +10 -1
- package/locales/look/hr.json +10 -1
- package/locales/look/hu.json +10 -1
- package/locales/look/id.json +10 -1
- package/locales/look/it.json +10 -1
- package/locales/look/ja.json +14 -5
- package/locales/look/ko.json +11 -2
- package/locales/look/mr.json +10 -1
- package/locales/look/ms.json +10 -1
- package/locales/look/nl.json +10 -1
- package/locales/look/pl.json +10 -1
- package/locales/look/pt.json +12 -3
- package/locales/look/ro.json +10 -1
- package/locales/look/ru.json +10 -1
- package/locales/look/sk.json +10 -1
- package/locales/look/sv.json +10 -1
- package/locales/look/sw.json +10 -1
- package/locales/look/ta.json +10 -1
- package/locales/look/te.json +10 -1
- package/locales/look/th.json +10 -1
- package/locales/look/tl.json +10 -1
- package/locales/look/tr.json +10 -1
- package/locales/look/uk.json +10 -1
- package/locales/look/ur.json +10 -1
- package/locales/look/vi.json +10 -1
- package/locales/look/yo.json +10 -1
- package/locales/look/zh-Hans.json +15 -6
- package/locales/look/zh-Hant.json +18 -9
- package/locales/machine/br.json +5 -5
- package/locales/machine/co.json +4 -4
- package/locales/machine/de.json +2 -2
- package/locales/machine/en.json +2 -2
- package/locales/machine/es.json +8 -8
- package/locales/machine/fr-CA.json +4 -4
- package/locales/machine/fr.json +4 -4
- package/locales/machine/it.json +9 -9
- package/locales/machine/ja.json +4 -4
- package/locales/machine/ko.json +10 -10
- package/locales/machine/pt.json +4 -4
- package/locales/machine/zh-Hans.json +7 -7
- package/locales/machine/zh-Hant.json +10 -10
- package/locales/made/am.json +5 -1
- package/locales/made/ar.json +5 -1
- package/locales/made/bg.json +5 -1
- package/locales/made/bn.json +5 -1
- package/locales/made/br.json +7 -3
- package/locales/made/co.json +5 -1
- package/locales/made/cs.json +5 -1
- package/locales/made/da.json +5 -1
- package/locales/made/de.json +5 -1
- package/locales/made/el.json +5 -1
- package/locales/made/en.json +5 -1
- package/locales/made/es.json +5 -1
- package/locales/made/fa.json +5 -1
- package/locales/made/fi.json +5 -1
- package/locales/made/fr-CA.json +8 -4
- package/locales/made/fr.json +8 -4
- package/locales/made/ha.json +5 -1
- package/locales/made/he.json +5 -1
- package/locales/made/hi.json +5 -1
- package/locales/made/hr.json +5 -1
- package/locales/made/hu.json +5 -1
- package/locales/made/id.json +5 -1
- package/locales/made/it.json +5 -1
- package/locales/made/ja.json +5 -1
- package/locales/made/ko.json +6 -2
- package/locales/made/mr.json +5 -1
- package/locales/made/ms.json +5 -1
- package/locales/made/nl.json +5 -1
- package/locales/made/pl.json +5 -1
- package/locales/made/pt.json +8 -4
- package/locales/made/ro.json +5 -1
- package/locales/made/ru.json +5 -1
- package/locales/made/sk.json +5 -1
- package/locales/made/sv.json +5 -1
- package/locales/made/sw.json +5 -1
- package/locales/made/ta.json +5 -1
- package/locales/made/te.json +5 -1
- package/locales/made/th.json +5 -1
- package/locales/made/tl.json +5 -1
- package/locales/made/tr.json +5 -1
- package/locales/made/uk.json +5 -1
- package/locales/made/ur.json +5 -1
- package/locales/made/vi.json +5 -1
- package/locales/made/yo.json +5 -1
- package/locales/made/zh-Hans.json +7 -3
- package/locales/made/zh-Hant.json +6 -2
- package/locales/mr.json +40 -20
- package/locales/ms.json +40 -21
- package/locales/{reader → natural-voice}/es.json +1 -1
- package/locales/natural-voice/ja.json +9 -0
- package/locales/{reader → natural-voice}/zh-Hans.json +1 -1
- package/locales/{reader → natural-voice}/zh-Hant.json +2 -2
- package/locales/nl.json +41 -21
- package/locales/notifications/br.json +2 -2
- package/locales/notifications/es.json +4 -4
- package/locales/notifications/it.json +2 -2
- package/locales/notifications/pt.json +2 -2
- package/locales/notifications/zh-Hans.json +1 -1
- package/locales/notifications/zh-Hant.json +2 -2
- package/locales/out/am.json +13 -0
- package/locales/out/ar.json +13 -0
- package/locales/out/bg.json +13 -0
- package/locales/out/bn.json +13 -0
- package/locales/out/br.json +13 -0
- package/locales/out/co.json +13 -0
- package/locales/out/cs.json +13 -0
- package/locales/out/da.json +13 -0
- package/locales/out/de.json +13 -0
- package/locales/out/el.json +13 -0
- package/locales/out/en.json +13 -0
- package/locales/out/es.json +13 -0
- package/locales/out/fa.json +13 -0
- package/locales/out/fi.json +13 -0
- package/locales/out/fr-CA.json +13 -0
- package/locales/out/fr.json +13 -0
- package/locales/out/ha.json +13 -0
- package/locales/out/he.json +13 -0
- package/locales/out/hi.json +13 -0
- package/locales/out/hr.json +13 -0
- package/locales/out/hu.json +13 -0
- package/locales/out/id.json +13 -0
- package/locales/out/it.json +13 -0
- package/locales/out/ja.json +13 -0
- package/locales/out/ko.json +13 -0
- package/locales/out/mr.json +13 -0
- package/locales/out/ms.json +13 -0
- package/locales/out/nl.json +13 -0
- package/locales/out/pl.json +13 -0
- package/locales/out/pt.json +13 -0
- package/locales/out/ro.json +13 -0
- package/locales/out/ru.json +13 -0
- package/locales/out/sk.json +13 -0
- package/locales/out/sv.json +13 -0
- package/locales/out/sw.json +13 -0
- package/locales/out/ta.json +13 -0
- package/locales/out/te.json +13 -0
- package/locales/out/th.json +13 -0
- package/locales/out/tl.json +13 -0
- package/locales/out/tr.json +13 -0
- package/locales/out/uk.json +13 -0
- package/locales/out/ur.json +13 -0
- package/locales/out/vi.json +13 -0
- package/locales/out/yo.json +13 -0
- package/locales/out/zh-Hans.json +13 -0
- package/locales/out/zh-Hant.json +13 -0
- package/locales/pictures/br.json +5 -5
- package/locales/pictures/co.json +5 -5
- package/locales/pictures/de.json +3 -3
- package/locales/pictures/en.json +2 -2
- package/locales/pictures/es.json +4 -4
- package/locales/pictures/fr-CA.json +6 -6
- package/locales/pictures/fr.json +4 -4
- package/locales/pictures/it.json +7 -7
- package/locales/pictures/ja.json +8 -8
- package/locales/pictures/ko.json +8 -8
- package/locales/pictures/pt.json +5 -5
- package/locales/pictures/zh-Hans.json +5 -5
- package/locales/pictures/zh-Hant.json +6 -6
- package/locales/pl.json +42 -20
- package/locales/plan/fr-CA.json +1 -1
- package/locales/plan/fr.json +1 -1
- package/locales/plan/it.json +2 -2
- package/locales/plan/ja.json +3 -3
- package/locales/plan/zh-Hans.json +2 -2
- package/locales/plan/zh-Hant.json +1 -1
- package/locales/policy/am.json +1 -0
- package/locales/policy/ar.json +1 -0
- package/locales/policy/bg.json +1 -0
- package/locales/policy/bn.json +1 -0
- package/locales/policy/br.json +1 -0
- package/locales/policy/co.json +3 -2
- package/locales/policy/cs.json +1 -0
- package/locales/policy/da.json +1 -0
- package/locales/policy/de.json +1 -0
- package/locales/policy/el.json +1 -0
- package/locales/policy/en.json +1 -0
- package/locales/policy/es.json +4 -3
- package/locales/policy/fa.json +1 -0
- package/locales/policy/fi.json +1 -0
- package/locales/policy/fr-CA.json +2 -1
- package/locales/policy/fr.json +2 -1
- package/locales/policy/ha.json +1 -0
- package/locales/policy/he.json +1 -0
- package/locales/policy/hi.json +1 -0
- package/locales/policy/hr.json +1 -0
- package/locales/policy/hu.json +1 -0
- package/locales/policy/id.json +1 -0
- package/locales/policy/it.json +4 -3
- package/locales/policy/ja.json +3 -2
- package/locales/policy/ko.json +1 -0
- package/locales/policy/mr.json +1 -0
- package/locales/policy/ms.json +1 -0
- package/locales/policy/nl.json +1 -0
- package/locales/policy/pl.json +1 -0
- package/locales/policy/pt.json +4 -3
- package/locales/policy/ro.json +1 -0
- package/locales/policy/ru.json +1 -0
- package/locales/policy/sk.json +1 -0
- package/locales/policy/sv.json +1 -0
- package/locales/policy/sw.json +1 -0
- package/locales/policy/ta.json +1 -0
- package/locales/policy/te.json +1 -0
- package/locales/policy/th.json +1 -0
- package/locales/policy/tl.json +1 -0
- package/locales/policy/tr.json +1 -0
- package/locales/policy/uk.json +1 -0
- package/locales/policy/ur.json +1 -0
- package/locales/policy/vi.json +1 -0
- package/locales/policy/yo.json +1 -0
- package/locales/policy/zh-Hans.json +9 -8
- package/locales/policy/zh-Hant.json +17 -16
- package/locales/profiles/am.json +5 -0
- package/locales/profiles/ar.json +5 -0
- package/locales/profiles/bg.json +5 -0
- package/locales/profiles/bn.json +5 -0
- package/locales/profiles/br.json +14 -9
- package/locales/profiles/co.json +12 -7
- package/locales/profiles/cs.json +5 -0
- package/locales/profiles/da.json +5 -0
- package/locales/profiles/de.json +6 -1
- package/locales/profiles/el.json +5 -0
- package/locales/profiles/en.json +7 -2
- package/locales/profiles/es.json +7 -2
- package/locales/profiles/fa.json +5 -0
- package/locales/profiles/fi.json +5 -0
- package/locales/profiles/fr-CA.json +10 -5
- package/locales/profiles/fr.json +10 -5
- package/locales/profiles/ha.json +5 -0
- package/locales/profiles/he.json +5 -0
- package/locales/profiles/hi.json +5 -0
- package/locales/profiles/hr.json +5 -0
- package/locales/profiles/hu.json +5 -0
- package/locales/profiles/id.json +5 -0
- package/locales/profiles/it.json +11 -6
- package/locales/profiles/ja.json +13 -8
- package/locales/profiles/ko.json +25 -20
- package/locales/profiles/mr.json +5 -0
- package/locales/profiles/ms.json +5 -0
- package/locales/profiles/nl.json +5 -0
- package/locales/profiles/pl.json +5 -0
- package/locales/profiles/pt.json +10 -5
- package/locales/profiles/ro.json +5 -0
- package/locales/profiles/ru.json +5 -0
- package/locales/profiles/sk.json +5 -0
- package/locales/profiles/sv.json +5 -0
- package/locales/profiles/sw.json +5 -0
- package/locales/profiles/ta.json +5 -0
- package/locales/profiles/te.json +5 -0
- package/locales/profiles/th.json +5 -0
- package/locales/profiles/tl.json +5 -0
- package/locales/profiles/tr.json +5 -0
- package/locales/profiles/uk.json +5 -0
- package/locales/profiles/ur.json +5 -0
- package/locales/profiles/vi.json +5 -0
- package/locales/profiles/yo.json +5 -0
- package/locales/profiles/zh-Hans.json +18 -13
- package/locales/profiles/zh-Hant.json +13 -8
- package/locales/projects/am.json +4 -0
- package/locales/projects/ar.json +4 -0
- package/locales/projects/bg.json +4 -0
- package/locales/projects/bn.json +4 -0
- package/locales/projects/br.json +4 -0
- package/locales/projects/co.json +4 -0
- package/locales/projects/cs.json +4 -0
- package/locales/projects/da.json +4 -0
- package/locales/projects/de.json +4 -0
- package/locales/projects/el.json +4 -0
- package/locales/projects/en.json +4 -0
- package/locales/projects/es.json +4 -0
- package/locales/projects/fa.json +4 -0
- package/locales/projects/fi.json +4 -0
- package/locales/projects/fr-CA.json +4 -0
- package/locales/projects/fr.json +4 -0
- package/locales/projects/ha.json +4 -0
- package/locales/projects/he.json +4 -0
- package/locales/projects/hi.json +4 -0
- package/locales/projects/hr.json +4 -0
- package/locales/projects/hu.json +4 -0
- package/locales/projects/id.json +4 -0
- package/locales/projects/it.json +4 -0
- package/locales/projects/ja.json +4 -0
- package/locales/projects/ko.json +4 -0
- package/locales/projects/mr.json +4 -0
- package/locales/projects/ms.json +4 -0
- package/locales/projects/nl.json +4 -0
- package/locales/projects/pl.json +4 -0
- package/locales/projects/pt.json +4 -0
- package/locales/projects/ro.json +4 -0
- package/locales/projects/ru.json +4 -0
- package/locales/projects/sk.json +4 -0
- package/locales/projects/sv.json +4 -0
- package/locales/projects/sw.json +4 -0
- package/locales/projects/ta.json +4 -0
- package/locales/projects/te.json +4 -0
- package/locales/projects/th.json +4 -0
- package/locales/projects/tl.json +4 -0
- package/locales/projects/tr.json +4 -0
- package/locales/projects/uk.json +4 -0
- package/locales/projects/ur.json +4 -0
- package/locales/projects/vi.json +4 -0
- package/locales/projects/yo.json +4 -0
- package/locales/projects/zh-Hans.json +4 -0
- package/locales/projects/zh-Hant.json +4 -0
- package/locales/pt.json +65 -44
- package/locales/receipt/am.json +14 -1
- package/locales/receipt/ar.json +14 -1
- package/locales/receipt/bg.json +14 -1
- package/locales/receipt/bn.json +14 -1
- package/locales/receipt/br.json +16 -3
- package/locales/receipt/co.json +16 -3
- package/locales/receipt/cs.json +14 -1
- package/locales/receipt/da.json +14 -1
- package/locales/receipt/de.json +16 -3
- package/locales/receipt/el.json +14 -1
- package/locales/receipt/en.json +16 -3
- package/locales/receipt/es.json +19 -6
- package/locales/receipt/fa.json +14 -1
- package/locales/receipt/fi.json +14 -1
- package/locales/receipt/fr-CA.json +16 -3
- package/locales/receipt/fr.json +16 -3
- package/locales/receipt/ha.json +14 -1
- package/locales/receipt/he.json +14 -1
- package/locales/receipt/hi.json +14 -1
- package/locales/receipt/hr.json +14 -1
- package/locales/receipt/hu.json +14 -1
- package/locales/receipt/id.json +14 -1
- package/locales/receipt/it.json +21 -8
- package/locales/receipt/ja.json +19 -6
- package/locales/receipt/ko.json +15 -2
- package/locales/receipt/mr.json +14 -1
- package/locales/receipt/ms.json +14 -1
- package/locales/receipt/nl.json +14 -1
- package/locales/receipt/pl.json +14 -1
- package/locales/receipt/pt.json +18 -5
- package/locales/receipt/ro.json +14 -1
- package/locales/receipt/ru.json +14 -1
- package/locales/receipt/sk.json +14 -1
- package/locales/receipt/sv.json +14 -1
- package/locales/receipt/sw.json +14 -1
- package/locales/receipt/ta.json +14 -1
- package/locales/receipt/te.json +14 -1
- package/locales/receipt/th.json +14 -1
- package/locales/receipt/tl.json +14 -1
- package/locales/receipt/tr.json +14 -1
- package/locales/receipt/uk.json +14 -1
- package/locales/receipt/ur.json +14 -1
- package/locales/receipt/vi.json +14 -1
- package/locales/receipt/yo.json +14 -1
- package/locales/receipt/zh-Hans.json +17 -4
- package/locales/receipt/zh-Hant.json +25 -12
- package/locales/ro.json +42 -21
- package/locales/routines/am.json +2 -0
- package/locales/routines/ar.json +2 -0
- package/locales/routines/bg.json +2 -0
- package/locales/routines/bn.json +2 -0
- package/locales/routines/br.json +12 -10
- package/locales/routines/co.json +8 -6
- package/locales/routines/cs.json +2 -0
- package/locales/routines/da.json +2 -0
- package/locales/routines/de.json +2 -0
- package/locales/routines/el.json +2 -0
- package/locales/routines/en.json +2 -0
- package/locales/routines/es.json +6 -4
- package/locales/routines/fa.json +2 -0
- package/locales/routines/fi.json +2 -0
- package/locales/routines/fr-CA.json +4 -2
- package/locales/routines/fr.json +4 -2
- package/locales/routines/ha.json +2 -0
- package/locales/routines/he.json +2 -0
- package/locales/routines/hi.json +2 -0
- package/locales/routines/hr.json +2 -0
- package/locales/routines/hu.json +2 -0
- package/locales/routines/id.json +2 -0
- package/locales/routines/it.json +3 -1
- package/locales/routines/ja.json +14 -12
- package/locales/routines/ko.json +3 -1
- package/locales/routines/mr.json +2 -0
- package/locales/routines/ms.json +2 -0
- package/locales/routines/nl.json +2 -0
- package/locales/routines/pl.json +2 -0
- package/locales/routines/pt.json +7 -5
- package/locales/routines/ro.json +2 -0
- package/locales/routines/ru.json +2 -0
- package/locales/routines/sk.json +2 -0
- package/locales/routines/sv.json +2 -0
- package/locales/routines/sw.json +2 -0
- package/locales/routines/ta.json +2 -0
- package/locales/routines/te.json +2 -0
- package/locales/routines/th.json +2 -0
- package/locales/routines/tl.json +2 -0
- package/locales/routines/tr.json +2 -0
- package/locales/routines/uk.json +2 -0
- package/locales/routines/ur.json +2 -0
- package/locales/routines/vi.json +2 -0
- package/locales/routines/yo.json +2 -0
- package/locales/routines/zh-Hans.json +4 -2
- package/locales/routines/zh-Hant.json +5 -3
- package/locales/ru.json +42 -20
- package/locales/scores/am.json +3 -9
- package/locales/scores/ar.json +3 -9
- package/locales/scores/bg.json +3 -9
- package/locales/scores/bn.json +3 -9
- package/locales/scores/br.json +3 -9
- package/locales/scores/co.json +3 -9
- package/locales/scores/cs.json +3 -9
- package/locales/scores/da.json +3 -9
- package/locales/scores/de.json +4 -10
- package/locales/scores/el.json +3 -9
- package/locales/scores/en.json +3 -9
- package/locales/scores/es.json +3 -9
- package/locales/scores/fa.json +3 -9
- package/locales/scores/fi.json +3 -9
- package/locales/scores/fr-CA.json +3 -9
- package/locales/scores/fr.json +3 -9
- package/locales/scores/ha.json +3 -9
- package/locales/scores/he.json +3 -9
- package/locales/scores/hi.json +3 -9
- package/locales/scores/hr.json +3 -9
- package/locales/scores/hu.json +3 -9
- package/locales/scores/id.json +3 -9
- package/locales/scores/it.json +4 -10
- package/locales/scores/ja.json +4 -10
- package/locales/scores/ko.json +4 -10
- package/locales/scores/mr.json +3 -9
- package/locales/scores/ms.json +3 -9
- package/locales/scores/nl.json +3 -9
- package/locales/scores/pl.json +3 -9
- package/locales/scores/pt.json +3 -9
- package/locales/scores/ro.json +3 -9
- package/locales/scores/ru.json +3 -9
- package/locales/scores/sk.json +3 -9
- package/locales/scores/sv.json +3 -9
- package/locales/scores/sw.json +3 -9
- package/locales/scores/ta.json +3 -9
- package/locales/scores/te.json +3 -9
- package/locales/scores/th.json +3 -9
- package/locales/scores/tl.json +3 -9
- package/locales/scores/tr.json +3 -9
- package/locales/scores/uk.json +3 -9
- package/locales/scores/ur.json +3 -9
- package/locales/scores/vi.json +3 -9
- package/locales/scores/yo.json +3 -9
- package/locales/scores/zh-Hans.json +3 -9
- package/locales/scores/zh-Hant.json +3 -9
- package/locales/screen/am.json +11 -0
- package/locales/screen/ar.json +11 -0
- package/locales/screen/bg.json +11 -0
- package/locales/screen/bn.json +11 -0
- package/locales/screen/br.json +11 -0
- package/locales/screen/co.json +11 -0
- package/locales/screen/cs.json +11 -0
- package/locales/screen/da.json +11 -0
- package/locales/screen/de.json +11 -0
- package/locales/screen/el.json +11 -0
- package/locales/screen/en.json +11 -0
- package/locales/screen/es.json +11 -0
- package/locales/screen/fa.json +11 -0
- package/locales/screen/fi.json +11 -0
- package/locales/screen/fr-CA.json +11 -0
- package/locales/screen/fr.json +11 -0
- package/locales/screen/ha.json +11 -0
- package/locales/screen/he.json +11 -0
- package/locales/screen/hi.json +11 -0
- package/locales/screen/hr.json +11 -0
- package/locales/screen/hu.json +11 -0
- package/locales/screen/id.json +11 -0
- package/locales/screen/it.json +11 -0
- package/locales/screen/ja.json +11 -0
- package/locales/screen/ko.json +11 -0
- package/locales/screen/mr.json +11 -0
- package/locales/screen/ms.json +11 -0
- package/locales/screen/nl.json +11 -0
- package/locales/screen/pl.json +11 -0
- package/locales/screen/pt.json +11 -0
- package/locales/screen/ro.json +11 -0
- package/locales/screen/ru.json +11 -0
- package/locales/screen/sk.json +11 -0
- package/locales/screen/sv.json +11 -0
- package/locales/screen/sw.json +11 -0
- package/locales/screen/ta.json +11 -0
- package/locales/screen/te.json +11 -0
- package/locales/screen/th.json +11 -0
- package/locales/screen/tl.json +11 -0
- package/locales/screen/tr.json +11 -0
- package/locales/screen/uk.json +11 -0
- package/locales/screen/ur.json +11 -0
- package/locales/screen/vi.json +11 -0
- package/locales/screen/yo.json +11 -0
- package/locales/screen/zh-Hans.json +11 -0
- package/locales/screen/zh-Hant.json +11 -0
- package/locales/share/br.json +6 -6
- package/locales/share/co.json +4 -4
- package/locales/share/de.json +2 -2
- package/locales/share/es.json +1 -1
- package/locales/share/fr-CA.json +5 -5
- package/locales/share/fr.json +3 -3
- package/locales/share/it.json +4 -4
- package/locales/share/ja.json +15 -15
- package/locales/share/ko.json +4 -4
- package/locales/share/pt.json +2 -2
- package/locales/share/zh-Hans.json +8 -8
- package/locales/share/zh-Hant.json +14 -14
- package/locales/signin/am.json +3 -1
- package/locales/signin/ar.json +3 -1
- package/locales/signin/bg.json +3 -1
- package/locales/signin/bn.json +3 -1
- package/locales/signin/br.json +3 -1
- package/locales/signin/co.json +3 -1
- package/locales/signin/cs.json +3 -1
- package/locales/signin/da.json +3 -1
- package/locales/signin/de.json +3 -1
- package/locales/signin/el.json +3 -1
- package/locales/signin/en.json +3 -1
- package/locales/signin/es.json +4 -2
- package/locales/signin/fa.json +3 -1
- package/locales/signin/fi.json +3 -1
- package/locales/signin/fr-CA.json +3 -1
- package/locales/signin/fr.json +3 -1
- package/locales/signin/ha.json +3 -1
- package/locales/signin/he.json +3 -1
- package/locales/signin/hi.json +3 -1
- package/locales/signin/hr.json +3 -1
- package/locales/signin/hu.json +3 -1
- package/locales/signin/id.json +3 -1
- package/locales/signin/it.json +3 -1
- package/locales/signin/ja.json +3 -1
- package/locales/signin/ko.json +3 -1
- package/locales/signin/mr.json +3 -1
- package/locales/signin/ms.json +3 -1
- package/locales/signin/nl.json +3 -1
- package/locales/signin/pl.json +3 -1
- package/locales/signin/pt.json +3 -1
- package/locales/signin/ro.json +3 -1
- package/locales/signin/ru.json +3 -1
- package/locales/signin/sk.json +3 -1
- package/locales/signin/sv.json +3 -1
- package/locales/signin/sw.json +3 -1
- package/locales/signin/ta.json +3 -1
- package/locales/signin/te.json +3 -1
- package/locales/signin/th.json +3 -1
- package/locales/signin/tl.json +3 -1
- package/locales/signin/tr.json +3 -1
- package/locales/signin/uk.json +3 -1
- package/locales/signin/ur.json +3 -1
- package/locales/signin/vi.json +3 -1
- package/locales/signin/yo.json +3 -1
- package/locales/signin/zh-Hans.json +3 -1
- package/locales/signin/zh-Hant.json +3 -1
- package/locales/sites/am.json +48 -0
- package/locales/sites/ar.json +52 -0
- package/locales/sites/bg.json +48 -0
- package/locales/sites/bn.json +48 -0
- package/locales/sites/br.json +51 -0
- package/locales/sites/co.json +49 -0
- package/locales/sites/cs.json +50 -0
- package/locales/sites/da.json +48 -0
- package/locales/sites/de.json +48 -0
- package/locales/sites/el.json +48 -0
- package/locales/sites/en.json +48 -0
- package/locales/sites/es.json +49 -0
- package/locales/sites/fa.json +48 -0
- package/locales/sites/fi.json +48 -0
- package/locales/sites/fr-CA.json +49 -0
- package/locales/sites/fr.json +49 -0
- package/locales/sites/ha.json +48 -0
- package/locales/sites/he.json +49 -0
- package/locales/sites/hi.json +48 -0
- package/locales/sites/hr.json +49 -0
- package/locales/sites/hu.json +48 -0
- package/locales/sites/id.json +47 -0
- package/locales/sites/it.json +49 -0
- package/locales/sites/ja.json +47 -0
- package/locales/sites/ko.json +47 -0
- package/locales/sites/mr.json +48 -0
- package/locales/sites/ms.json +47 -0
- package/locales/sites/nl.json +48 -0
- package/locales/sites/pl.json +50 -0
- package/locales/sites/pt.json +49 -0
- package/locales/sites/ro.json +49 -0
- package/locales/sites/ru.json +50 -0
- package/locales/sites/sk.json +50 -0
- package/locales/sites/sv.json +48 -0
- package/locales/sites/sw.json +48 -0
- package/locales/sites/ta.json +48 -0
- package/locales/sites/te.json +48 -0
- package/locales/sites/th.json +47 -0
- package/locales/sites/tl.json +48 -0
- package/locales/sites/tr.json +48 -0
- package/locales/sites/uk.json +50 -0
- package/locales/sites/ur.json +48 -0
- package/locales/sites/vi.json +47 -0
- package/locales/sites/yo.json +47 -0
- package/locales/sites/zh-Hans.json +47 -0
- package/locales/sites/zh-Hant.json +47 -0
- package/locales/sk.json +43 -21
- package/locales/skills/am.json +1 -0
- package/locales/skills/ar.json +1 -0
- package/locales/skills/bg.json +1 -0
- package/locales/skills/bn.json +1 -0
- package/locales/skills/br.json +8 -7
- package/locales/skills/co.json +8 -7
- package/locales/skills/cs.json +1 -0
- package/locales/skills/da.json +1 -0
- package/locales/skills/de.json +6 -5
- package/locales/skills/el.json +1 -0
- package/locales/skills/en.json +1 -0
- package/locales/skills/es.json +5 -4
- package/locales/skills/fa.json +1 -0
- package/locales/skills/fi.json +1 -0
- package/locales/skills/fr-CA.json +4 -3
- package/locales/skills/fr.json +4 -3
- package/locales/skills/ha.json +1 -0
- package/locales/skills/he.json +1 -0
- package/locales/skills/hi.json +1 -0
- package/locales/skills/hr.json +1 -0
- package/locales/skills/hu.json +1 -0
- package/locales/skills/id.json +1 -0
- package/locales/skills/it.json +2 -1
- package/locales/skills/ja.json +17 -16
- package/locales/skills/ko.json +2 -1
- package/locales/skills/mr.json +1 -0
- package/locales/skills/ms.json +1 -0
- package/locales/skills/nl.json +1 -0
- package/locales/skills/pl.json +1 -0
- package/locales/skills/pt.json +6 -5
- package/locales/skills/ro.json +1 -0
- package/locales/skills/ru.json +1 -0
- package/locales/skills/sk.json +1 -0
- package/locales/skills/sv.json +1 -0
- package/locales/skills/sw.json +1 -0
- package/locales/skills/ta.json +1 -0
- package/locales/skills/te.json +1 -0
- package/locales/skills/th.json +1 -0
- package/locales/skills/tl.json +1 -0
- package/locales/skills/tr.json +1 -0
- package/locales/skills/uk.json +1 -0
- package/locales/skills/ur.json +1 -0
- package/locales/skills/vi.json +1 -0
- package/locales/skills/yo.json +1 -0
- package/locales/skills/zh-Hans.json +3 -2
- package/locales/skills/zh-Hant.json +5 -4
- package/locales/slides/am.json +16 -11
- package/locales/slides/ar.json +16 -11
- package/locales/slides/bg.json +16 -11
- package/locales/slides/bn.json +16 -11
- package/locales/slides/br.json +26 -21
- package/locales/slides/co.json +41 -36
- package/locales/slides/cs.json +16 -11
- package/locales/slides/da.json +16 -11
- package/locales/slides/de.json +16 -11
- package/locales/slides/el.json +16 -11
- package/locales/slides/en.json +20 -15
- package/locales/slides/es.json +21 -16
- package/locales/slides/fa.json +16 -11
- package/locales/slides/fi.json +16 -11
- package/locales/slides/fr-CA.json +16 -11
- package/locales/slides/fr.json +16 -11
- package/locales/slides/ha.json +16 -11
- package/locales/slides/he.json +16 -11
- package/locales/slides/hi.json +16 -11
- package/locales/slides/hr.json +16 -11
- package/locales/slides/hu.json +16 -11
- package/locales/slides/id.json +16 -11
- package/locales/slides/it.json +20 -15
- package/locales/slides/ja.json +21 -16
- package/locales/slides/ko.json +29 -24
- package/locales/slides/mr.json +16 -11
- package/locales/slides/ms.json +16 -11
- package/locales/slides/nl.json +16 -11
- package/locales/slides/pl.json +16 -11
- package/locales/slides/pt.json +23 -18
- package/locales/slides/ro.json +16 -11
- package/locales/slides/ru.json +16 -11
- package/locales/slides/sk.json +16 -11
- package/locales/slides/sv.json +16 -11
- package/locales/slides/sw.json +16 -11
- package/locales/slides/ta.json +16 -11
- package/locales/slides/te.json +16 -11
- package/locales/slides/th.json +16 -11
- package/locales/slides/tl.json +16 -11
- package/locales/slides/tr.json +16 -11
- package/locales/slides/uk.json +16 -11
- package/locales/slides/ur.json +16 -11
- package/locales/slides/vi.json +16 -11
- package/locales/slides/yo.json +16 -11
- package/locales/slides/zh-Hans.json +20 -15
- package/locales/slides/zh-Hant.json +19 -14
- package/locales/sv.json +40 -20
- package/locales/sw.json +40 -20
- package/locales/sync/br.json +2 -2
- package/locales/sync/de.json +2 -2
- package/locales/sync/es.json +6 -6
- package/locales/sync/it.json +1 -1
- package/locales/sync/ja.json +2 -2
- package/locales/sync/pt.json +1 -1
- package/locales/ta.json +40 -20
- package/locales/tables/am.json +20 -0
- package/locales/tables/ar.json +28 -0
- package/locales/tables/bg.json +20 -0
- package/locales/tables/bn.json +20 -0
- package/locales/tables/br.json +32 -6
- package/locales/tables/co.json +32 -10
- package/locales/tables/cs.json +24 -0
- package/locales/tables/da.json +20 -0
- package/locales/tables/de.json +22 -2
- package/locales/tables/el.json +20 -0
- package/locales/tables/en.json +20 -0
- package/locales/tables/es.json +22 -0
- package/locales/tables/fa.json +20 -0
- package/locales/tables/fi.json +20 -0
- package/locales/tables/fr-CA.json +24 -2
- package/locales/tables/fr.json +23 -1
- package/locales/tables/ha.json +20 -0
- package/locales/tables/he.json +22 -0
- package/locales/tables/hi.json +20 -0
- package/locales/tables/hr.json +22 -0
- package/locales/tables/hu.json +20 -0
- package/locales/tables/id.json +18 -0
- package/locales/tables/it.json +22 -0
- package/locales/tables/ja.json +19 -1
- package/locales/tables/ko.json +22 -4
- package/locales/tables/mr.json +20 -0
- package/locales/tables/ms.json +18 -0
- package/locales/tables/nl.json +20 -0
- package/locales/tables/pl.json +24 -0
- package/locales/tables/pt.json +26 -4
- package/locales/tables/ro.json +22 -0
- package/locales/tables/ru.json +24 -0
- package/locales/tables/sk.json +24 -0
- package/locales/tables/sv.json +20 -0
- package/locales/tables/sw.json +20 -0
- package/locales/tables/ta.json +20 -0
- package/locales/tables/te.json +20 -0
- package/locales/tables/th.json +18 -0
- package/locales/tables/tl.json +20 -0
- package/locales/tables/tr.json +20 -0
- package/locales/tables/uk.json +24 -0
- package/locales/tables/ur.json +20 -0
- package/locales/tables/vi.json +18 -0
- package/locales/tables/yo.json +18 -0
- package/locales/tables/zh-Hans.json +19 -1
- package/locales/tables/zh-Hant.json +19 -1
- package/locales/te.json +40 -20
- package/locales/th.json +39 -20
- package/locales/tl.json +40 -20
- package/locales/tr.json +40 -20
- package/locales/uk.json +42 -20
- package/locales/ur.json +40 -20
- package/locales/vi.json +39 -20
- package/locales/{search → web-search}/am.json +10 -1
- package/locales/{search → web-search}/ar.json +10 -1
- package/locales/{search → web-search}/bg.json +10 -1
- package/locales/{search → web-search}/bn.json +10 -1
- package/locales/{search → web-search}/br.json +14 -5
- package/locales/{search → web-search}/co.json +14 -5
- package/locales/{search → web-search}/cs.json +10 -1
- package/locales/{search → web-search}/da.json +10 -1
- package/locales/{search → web-search}/de.json +10 -1
- package/locales/{search → web-search}/el.json +10 -1
- package/locales/{search → web-search}/en.json +10 -1
- package/locales/{search → web-search}/es.json +13 -4
- package/locales/{search → web-search}/fa.json +10 -1
- package/locales/{search → web-search}/fi.json +10 -1
- package/locales/{search → web-search}/fr-CA.json +10 -1
- package/locales/{search → web-search}/fr.json +10 -1
- package/locales/{search → web-search}/ha.json +10 -1
- package/locales/{search → web-search}/he.json +10 -1
- package/locales/{search → web-search}/hi.json +10 -1
- package/locales/{search → web-search}/hr.json +10 -1
- package/locales/{search → web-search}/hu.json +10 -1
- package/locales/{search → web-search}/id.json +10 -1
- package/locales/{search → web-search}/it.json +10 -1
- package/locales/{search → web-search}/ja.json +15 -6
- package/locales/{search → web-search}/ko.json +10 -1
- package/locales/{search → web-search}/mr.json +10 -1
- package/locales/{search → web-search}/ms.json +10 -1
- package/locales/{search → web-search}/nl.json +10 -1
- package/locales/{search → web-search}/pl.json +10 -1
- package/locales/{search → web-search}/pt.json +10 -1
- package/locales/{search → web-search}/ro.json +10 -1
- package/locales/{search → web-search}/ru.json +10 -1
- package/locales/{search → web-search}/sk.json +10 -1
- package/locales/{search → web-search}/sv.json +10 -1
- package/locales/{search → web-search}/sw.json +10 -1
- package/locales/{search → web-search}/ta.json +10 -1
- package/locales/{search → web-search}/te.json +10 -1
- package/locales/{search → web-search}/th.json +10 -1
- package/locales/{search → web-search}/tl.json +10 -1
- package/locales/{search → web-search}/tr.json +10 -1
- package/locales/{search → web-search}/uk.json +10 -1
- package/locales/{search → web-search}/ur.json +10 -1
- package/locales/{search → web-search}/vi.json +10 -1
- package/locales/{search → web-search}/yo.json +10 -1
- package/locales/{search → web-search}/zh-Hans.json +12 -3
- package/locales/web-search/zh-Hant.json +55 -0
- package/locales/yo.json +39 -20
- package/locales/you/br.json +13 -13
- package/locales/you/co.json +2 -2
- package/locales/you/de.json +1 -1
- package/locales/you/en.json +1 -1
- package/locales/you/es.json +2 -2
- package/locales/you/fr-CA.json +3 -3
- package/locales/you/fr.json +3 -3
- package/locales/you/it.json +10 -10
- package/locales/you/ja.json +9 -9
- package/locales/you/pt.json +11 -11
- package/locales/you/zh-Hans.json +3 -3
- package/locales/you/zh-Hant.json +3 -3
- package/locales/zh-Hans.json +58 -39
- package/locales/zh-Hant.json +68 -49
- package/package.json +1 -1
- package/preview.html +8 -2
- package/ui/base.js +33 -0
- package/ui/caps.js +12 -5
- package/ui/csp.js +1 -1
- package/ui/export.js +2 -2
- package/ui/icons.js +4 -4
- package/ui/kit.js +49 -13
- package/ui/language.js +172 -0
- package/ui/looks/classic.css +3 -1
- package/ui/looks/human.css +6 -5
- package/ui/looks/mail.css +1 -1
- package/ui/looks.js +3 -6
- package/ui/markdown.js +36 -21
- package/ui/menu-icons.js +9 -5
- package/ui/model.js +4 -4
- package/ui/pointed.js +22 -0
- package/ui/reader-state.js +5 -4
- package/ui/reader.js +1 -1
- package/ui/review.js +1 -1
- package/ui/save.js +16 -0
- package/ui/seal.js +67 -6
- package/ui/sheet.js +21 -2
- package/ui/shown.js +53 -0
- package/ui/style.css +58 -39
- package/ui/touches.js +26 -1
- package/ui/view.css +27 -1
- package/ui/view.js +44 -21
- package/vendor/deck/deck.css +2 -2
- package/vendor/deck/deck.mjs +37 -37
- package/vendor/deck/pptx.mjs +1 -1
- package/vendor/pele/lazy.d.ts +1 -0
- package/locales/reader/ja.json +0 -9
- package/locales/search/zh-Hant.json +0 -46
- package/ui/acts.js +0 -12
- package/ui/looks/mondrian.css +0 -90
- package/ui/looks/paper.css +0 -51
- /package/locales/{reader → natural-voice}/am.json +0 -0
- /package/locales/{reader → natural-voice}/ar.json +0 -0
- /package/locales/{reader → natural-voice}/bg.json +0 -0
- /package/locales/{reader → natural-voice}/bn.json +0 -0
- /package/locales/{reader → natural-voice}/br.json +0 -0
- /package/locales/{reader → natural-voice}/co.json +0 -0
- /package/locales/{reader → natural-voice}/cs.json +0 -0
- /package/locales/{reader → natural-voice}/da.json +0 -0
- /package/locales/{reader → natural-voice}/de.json +0 -0
- /package/locales/{reader → natural-voice}/el.json +0 -0
- /package/locales/{reader → natural-voice}/en.json +0 -0
- /package/locales/{reader → natural-voice}/fa.json +0 -0
- /package/locales/{reader → natural-voice}/fi.json +0 -0
- /package/locales/{reader → natural-voice}/fr-CA.json +0 -0
- /package/locales/{reader → natural-voice}/fr.json +0 -0
- /package/locales/{reader → natural-voice}/ha.json +0 -0
- /package/locales/{reader → natural-voice}/he.json +0 -0
- /package/locales/{reader → natural-voice}/hi.json +0 -0
- /package/locales/{reader → natural-voice}/hr.json +0 -0
- /package/locales/{reader → natural-voice}/hu.json +0 -0
- /package/locales/{reader → natural-voice}/id.json +0 -0
- /package/locales/{reader → natural-voice}/it.json +0 -0
- /package/locales/{reader → natural-voice}/ko.json +0 -0
- /package/locales/{reader → natural-voice}/mr.json +0 -0
- /package/locales/{reader → natural-voice}/ms.json +0 -0
- /package/locales/{reader → natural-voice}/nl.json +0 -0
- /package/locales/{reader → natural-voice}/pl.json +0 -0
- /package/locales/{reader → natural-voice}/pt.json +0 -0
- /package/locales/{reader → natural-voice}/ro.json +0 -0
- /package/locales/{reader → natural-voice}/ru.json +0 -0
- /package/locales/{reader → natural-voice}/sk.json +0 -0
- /package/locales/{reader → natural-voice}/sv.json +0 -0
- /package/locales/{reader → natural-voice}/sw.json +0 -0
- /package/locales/{reader → natural-voice}/ta.json +0 -0
- /package/locales/{reader → natural-voice}/te.json +0 -0
- /package/locales/{reader → natural-voice}/th.json +0 -0
- /package/locales/{reader → natural-voice}/tl.json +0 -0
- /package/locales/{reader → natural-voice}/tr.json +0 -0
- /package/locales/{reader → natural-voice}/uk.json +0 -0
- /package/locales/{reader → natural-voice}/ur.json +0 -0
- /package/locales/{reader → natural-voice}/vi.json +0 -0
- /package/locales/{reader → natural-voice}/yo.json +0 -0
package/caps/interactive/mode.js
CHANGED
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
// then by its name. Its name and icon are the skill's own (D222), so the mode needs no words of its own.
|
|
6
6
|
import { html, nothing } from 'lit-html'
|
|
7
7
|
import { signal } from '@preact/signals-core'
|
|
8
|
-
import { notify } from '../../ui/state.js'
|
|
8
|
+
import { app, notify } from '../../ui/state.js'
|
|
9
9
|
import { icons } from '../../ui/menu-icons.js'
|
|
10
10
|
import { parseSkill } from '../../core/skills.js'
|
|
11
11
|
import { noteRecord } from '../../core/events.js'
|
|
12
12
|
import { t, locale } from '../../core/i18n.js'
|
|
13
13
|
import { DIRECTORY, shownIn } from '../skills/directory.js'
|
|
14
|
+
import { changed } from './parts.js'
|
|
14
15
|
|
|
15
16
|
const NAME = 'visual'
|
|
16
17
|
const ICON = html`<svg class="icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d=${DIRECTORY.find((entry) => entry.name === NAME)?.icon ?? ''}></path></svg>`
|
|
@@ -28,7 +29,7 @@ const title = () => (skill.value ? shownIn(skill.value, locale.value).title : ''
|
|
|
28
29
|
|
|
29
30
|
/** Turns it on or off, the keyboard back in the box. */
|
|
30
31
|
function toggle() {
|
|
31
|
-
if (!skill.peek()) return notify(t('error.unknown'))
|
|
32
|
+
if (!skill.peek()) return notify(t('error.unknown'), { alert: true })
|
|
32
33
|
on.value = !on.peek()
|
|
33
34
|
document.getElementById('prompt')?.focus()
|
|
34
35
|
}
|
|
@@ -42,13 +43,15 @@ export const chip = () => (on.value && skill.value ? html`<button type="button"
|
|
|
42
43
|
${ICON}<span dir="auto">${title()}</span>${icons.close}</button>` : nothing)
|
|
43
44
|
|
|
44
45
|
/**
|
|
45
|
-
* The
|
|
46
|
+
* The notes a message comes with: what the user changed on a page of this task since their last (D670), which the brain can't see;
|
|
47
|
+
* and while it is on, the skill's steps, unless the task was given them already.
|
|
46
48
|
* @param {import('../../core/types.js').Envelope[]} records
|
|
47
49
|
*/
|
|
48
50
|
export function notes(records) {
|
|
49
|
-
const steps = skill.peek()
|
|
50
|
-
|
|
51
|
+
const steps = skill.peek(), set = changed.text && changed.task === (app.current.peek()?.path ?? '') ? [noteRecord(`On the page above, the user changed its fields, and it now holds: ${changed.text}.`, { kind: 'mode', mode: 'page' })] : []
|
|
52
|
+
changed.text = ''
|
|
53
|
+
if (!on.peek() || !steps) return set
|
|
51
54
|
const given = records.some(({ update }) => update?.sessionUpdate === '_system_note' && update.data.kind === 'mode' && update.data.mode === NAME)
|
|
52
55
|
const text = `The user turned on visual answers: for this message, follow the steps of the skill ${NAME}${given ? ', given above.' : `:\n\n${steps.body}`}`
|
|
53
|
-
return [noteRecord(text, { kind: 'mode', mode: NAME })]
|
|
56
|
+
return [...set, noteRecord(text, { kind: 'mode', mode: NAME })]
|
|
54
57
|
}
|
|
@@ -27,9 +27,13 @@ customElements.define('app-diagram', class extends HTMLElement {
|
|
|
27
27
|
if (from !== parent || data?.id !== id) return
|
|
28
28
|
removeEventListener('message', heard)
|
|
29
29
|
if (this.asked !== key || !data.picture) return
|
|
30
|
-
const picture = Object.assign(document.createElement('img'), { src: data.picture, alt: data.words })
|
|
30
|
+
const picture = Object.assign(document.createElement('img'), { src: data.picture, alt: data.words.alt })
|
|
31
31
|
picture.style.cssText = 'display: block; max-width: 100%; height: auto; margin: 0 auto'
|
|
32
|
-
|
|
32
|
+
// Told in words under it, folded as they were if it is drawn again.
|
|
33
|
+
const made = (/** @type {string} */ tag, /** @type {string} */ text = '') => Object.assign(document.createElement(tag), { textContent: text }), held = Object.assign(made('details'), { open: Boolean(this.shown.querySelector('details')?.open) })
|
|
34
|
+
const list = (/** @type {{ box: string, next?: string[] }[]} */ items) => { const all = made('ul'); all.append(...items.map(({ box, next = [] }) => { const item = made('li', box); if (next.length) item.append(list(next.map((one) => ({ box: one })))); return item })); return all }
|
|
35
|
+
held.append(made('summary', data.words.summary), list(data.words.steps))
|
|
36
|
+
this.shown.replaceChildren(picture, held)
|
|
33
37
|
}
|
|
34
38
|
addEventListener('message', heard)
|
|
35
39
|
parent.postMessage({ diagram: source, width: this.clientWidth, id }, '*')
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// drawn in the answer itself (./view-parts.js) rather than in a frame: key figures, cards, a table, a chart and a form, nested as
|
|
3
3
|
// the skill shows them, and an <aside> with a map or a diagram. Each part's lines become what it draws. Anything else (a script,
|
|
4
4
|
// a style, another tag, words outside a part) makes it a page for a frame, but for words after the last part, which an answer that
|
|
5
|
-
// never closed its page wrote as its own, and an `app-` tag that names no part, which is passed over. Pure, so Node's tests run it.
|
|
5
|
+
// never closed its page wrote as its own, and an `app-` tag that names no part, which is passed over. What its parts share is ./live.js's. Pure, so Node's tests run it.
|
|
6
6
|
|
|
7
7
|
/** @typedef {{ tag: string, attrs: Record<string, string>, text: string, kids: Part[] }} Part */
|
|
8
8
|
|
|
9
9
|
/** What each holds: the page, a row of cards, a card and an aside; the others hold their lines alone. */
|
|
10
|
-
const LEAVES = ['app-figures', 'app-table', 'app-chart', 'app-form', 'app-map', 'app-diagram']
|
|
10
|
+
const LEAVES = ['app-figures', 'app-table', 'app-chart', 'app-form', 'app-values', 'app-map', 'app-diagram']
|
|
11
11
|
const HOLDS = /** @type {Record<string, string[]>} */ ({ '': [...LEAVES, 'app-cards', 'app-card', 'aside'], 'app-cards': ['app-card'], 'app-card': LEAVES, aside: LEAVES })
|
|
12
12
|
const TOKEN = /<!--[\s\S]*?(?:-->|$)|<\/([a-z][\w-]*)\s*>|<([a-z][\w-]*)((?:\s+[^\s=>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+))?)*)\s*(\/?)>|([^<]+)|</giy
|
|
13
13
|
const ATTRIBUTE = /([^\s=>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g
|
|
@@ -35,7 +35,8 @@ export function parse(source, open = false) {
|
|
|
35
35
|
else if (all.trim() && top === root && root.kids.length && !/<[a-z/]/i.test(source.slice(match.index))) return [...root.kids, { tag: '#words', attrs: {}, text: source.slice(match.index), kids: [] }]
|
|
36
36
|
else if (all.trim()) return null
|
|
37
37
|
} else if (closing) {
|
|
38
|
-
|
|
38
|
+
// A leaf closed under another part's name, as brains slip, is closed all the same (D670).
|
|
39
|
+
const at = leaf && LEAVES.includes(tag) && top.tag !== tag ? path.length - 1 : path.findLastIndex((part) => part.tag === tag)
|
|
39
40
|
if (at < 1) return null
|
|
40
41
|
path.length = at
|
|
41
42
|
} else if (opening && HOLDS[top.tag]?.includes(tag)) {
|
|
@@ -50,10 +51,12 @@ export function parse(source, open = false) {
|
|
|
50
51
|
/** Every part a page holds, those inside others too. @param {Part[]} parts @returns {Part[]} */
|
|
51
52
|
export const all = (parts) => parts.flatMap((part) => [part, ...all(part.kids)])
|
|
52
53
|
/**
|
|
53
|
-
* The collection a part shows or adds a row to (D633): its `from
|
|
54
|
-
* shows
|
|
54
|
+
* The collection a part shows or adds a row to (D633): what its `from`, or a form's `to`, names, unless that is a table of the page
|
|
55
|
+
* that shows none (D670). @param {Part} part @param {Part[]} tables the page's @returns {string | undefined}
|
|
55
56
|
*/
|
|
56
|
-
export const bound = (part, tables) => part.attrs.from ?? (part.tag === 'app-form'
|
|
57
|
+
export const bound = (part, tables) => ((name, table) => (table ? table.attrs.from : name))(part.attrs.from ?? (part.tag === 'app-form' ? part.attrs.to : undefined), part.tag === 'app-table' ? undefined : tables.find((one) => one.attrs.id === (part.attrs.from ?? part.attrs.to)))
|
|
58
|
+
/** The page of parts the user last changed, until their next message tells the brain (D670): its task, and what it now holds. */
|
|
59
|
+
export const changed = { task: '', text: '' }
|
|
57
60
|
/** What a part is, as what it showed is kept under (D633). @param {Part} part */
|
|
58
61
|
export const key = (part) => JSON.stringify([part.tag, part.attrs.from ?? part.attrs.to ?? '', part.attrs.by ?? '', part.attrs.sum ?? '', 'count' in part.attrs, part.text.trim(), ...(part.attrs.where ? [part.attrs.where] : [])])
|
|
59
62
|
/** @param {string} text */
|
|
@@ -74,11 +77,11 @@ export function frozen(source, fills) {
|
|
|
74
77
|
}
|
|
75
78
|
|
|
76
79
|
/** A part's lines, trimmed, the empty ones left out. @param {Part} part */
|
|
77
|
-
const lines = (part) => part.text.split('\n').map((line) => line.trim()).filter(Boolean)
|
|
80
|
+
export const lines = (part) => part.text.split('\n').map((line) => line.trim()).filter(Boolean)
|
|
78
81
|
/** @param {string} line */
|
|
79
82
|
const cells = (line) => line.split('|').map((cell) => cell.trim())
|
|
80
83
|
/** What comes before a line's first `mark` and after it; all of it before when there is none. @param {string} line @param {string} mark */
|
|
81
|
-
const split = (line, mark) => ((at) => (at < 0 ? [line, ''] : [line.slice(0, at).trim(), line.slice(at + 1).trim()]))(line.indexOf(mark))
|
|
84
|
+
export const split = (line, mark) => ((at) => (at < 0 ? [line, ''] : [line.slice(0, at).trim(), line.slice(at + 1).trim()]))(line.indexOf(mark))
|
|
82
85
|
|
|
83
86
|
/** Key figures: a value and its few words on each line. @param {Part} part */
|
|
84
87
|
export const figures = (part) => lines(part).map((line) => split(line, '|'))
|
|
@@ -89,13 +92,18 @@ export const chart = (part, lang) => (([labels = '', ...series]) => ({ kind: par
|
|
|
89
92
|
series: series.map((line) => split(line, ':')).map(([name, values]) => ({ name, data: values.split(/[,;،、]/).map((value) => number(value, lang, true)) })) }))(lines(part))
|
|
90
93
|
|
|
91
94
|
const KINDS = ['number', 'date', 'month', 'time', 'long', 'yes', 'no', 'email', 'tel', 'url']
|
|
95
|
+
const RANGE = /^(-?[\d.]+?)\s*\.\.\s*(-?[\d.]+?)(?:\s*\.\.\s*([\d.]+))?$/
|
|
92
96
|
/**
|
|
93
|
-
* A form's fields: each line a label, then its kind (a number, a date, a month, a time, long words, a box ticked or not)
|
|
94
|
-
*
|
|
95
|
-
*
|
|
97
|
+
* A form's fields: each line a label, then its kind (a number, a date, a month, a time, long words, a box ticked or not), a slider's
|
|
98
|
+
* `least..most` or `least..most..step`, its step that of the value it starts with, or its choices by commas, words when it has none,
|
|
99
|
+
* and `= value` to start with. @param {Part} part
|
|
100
|
+
* @returns {{ label: string, kind: string, choices?: string[], min?: string, max?: string, step?: string, start: string }[]}
|
|
96
101
|
*/
|
|
97
102
|
export const form = (part) => lines(part).map((line) => split(line, '=')).map(([head, start]) => {
|
|
98
|
-
const [label, kind] = split(head, ':'), choices = kind.split(/\s*[,،、]\s*/).filter(Boolean)
|
|
103
|
+
const [label, kind] = split(head, ':'), choices = kind.split(/\s*[,،、]\s*/).filter(Boolean), [, min, max, step] = RANGE.exec(kind) ?? []
|
|
104
|
+
if (min) return { label, start: start || min, kind: 'range', min, max, step: step ?? String(10 ** -(start.split('.')[1]?.length ?? 0)) }
|
|
105
|
+
// A number where its kind goes, as brains write a field they mean to start with it.
|
|
106
|
+
if (!start && /^-?[\d.]+$/.test(kind)) return { label, start: kind, kind: 'number' }
|
|
99
107
|
return { label, start, ...(choices.length > 1 ? { kind: 'choice', choices } : { kind: KINDS.includes(kind.toLowerCase()) ? kind.toLowerCase() : 'text' }) }
|
|
100
108
|
})
|
|
101
109
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// What visual answers draw (D291, D631), each as a start drawn at once that a document's "/" offers (D485): a page, the charts a page
|
|
2
|
+
// draws, diagrams, a map, a timeline and key figures. Each has its name's key among a document's strings, a glyph, a few English words
|
|
3
|
+
// to find it by as well as its name, and its Markdown, as an answer writes it. Pure, so a document reads it without the rest of this capability.
|
|
4
|
+
|
|
5
|
+
/** @type {{ key: string, glyph: string, words: string, markdown: string }[]} */
|
|
6
|
+
export const STARTS = [
|
|
7
|
+
{ key: 'page', glyph: '</>', words: 'page html app web interactive', markdown: '```html\n```' },
|
|
8
|
+
...Object.entries({ bar: ['▃▇', 'column histogram'], line: ['∿', 'trend curve'], area: ['◢', 'filled'], pie: ['◔', 'donut doughnut share'], hbar: ['☰', 'horizontal across ranking'] }).map(([kind, [glyph, more]]) => ({ key: `${kind}Chart`, glyph, words: `chart graph plot ${kind} ${more}`, markdown: `\`\`\`html\n<app-chart kind="${kind}">\nA | B | C | D\n1: 3, 5, 2, 6\n</app-chart>\n\`\`\`` })),
|
|
9
|
+
{ key: 'flowchart', glyph: '◇', words: 'diagram flowchart graph process decision mermaid', markdown: '```mermaid\nflowchart LR\n A --> B\n```' },
|
|
10
|
+
{ key: 'mindMap', glyph: '⊛', words: 'diagram mind map ideas brainstorm mermaid', markdown: '```mermaid\nmindmap\n root((A))\n B\n C\n D\n```' },
|
|
11
|
+
{ key: 'sequence', glyph: '⇄', words: 'diagram sequence messages exchange mermaid', markdown: '```mermaid\nsequenceDiagram\n A->>B: 1\n B-->>A: 2\n```' },
|
|
12
|
+
{ key: 'map', glyph: '⌖', words: 'map places geojson', markdown: '```geojson\n{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[2.35,48.86]},"properties":{}}]}\n```' },
|
|
13
|
+
{ key: 'timeline', glyph: '◷', words: 'timeline schedule agenda dates history', markdown: '- **09:00** A\n- **10:30** B\n- **12:00** C' },
|
|
14
|
+
{ key: 'figures', glyph: '#', words: 'key figures numbers metrics stats kpi', markdown: '- **3** A\n- **85%** B\n- **12** C' },
|
|
15
|
+
]
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Apps played before the turn ends (D689): each page with a script that a step of an answer wrote is played out of sight, as
|
|
2
|
+
// Games plays a game (D648), in a frame of its kind (preview.html), given what it kept: what goes wrong is caught as it starts,
|
|
3
|
+
// then as each of its controls is used once, its buttons pressed and its fields changed; nothing it sends or saves goes anywhere.
|
|
4
|
+
// What broke, in the browser's words, goes back to the brain, which writes it again (turn.answer, core/loop.js).
|
|
5
|
+
import { app } from '../../ui/state.js'
|
|
6
|
+
import { pagePolicy, pageRights, PAGE_SANDBOX } from '../../ui/csp.js'
|
|
7
|
+
import { lex } from '../../ui/markdown.js'
|
|
8
|
+
import { head, library, part, LENT, named, keptAt } from './interactive.js'
|
|
9
|
+
import { parse } from './parts.js'
|
|
10
|
+
|
|
11
|
+
/** How long a page has to start, before its controls are used, and in all. */
|
|
12
|
+
const [START, ALL] = [800, 6000]
|
|
13
|
+
/** The notes each turn may give, so that a page the brain can't mend doesn't take all its steps. @type {WeakMap<AbortSignal, number>} */
|
|
14
|
+
const told = new WeakMap()
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* What catches what goes wrong, ahead of the page, and uses its controls when told (its buttons pressed, its fields but a file's
|
|
18
|
+
* changed): errors and failures left unhandled, each said once, in the browser's words. Its listeners' errors are caught as they
|
|
19
|
+
* run, as WebKit tells the page no more than "Script error." of what a written script throws. What its policy blocks isn't a
|
|
20
|
+
* fault: a fetch the page catches works offline, and WebKit's policy refuses every <select>'s style.
|
|
21
|
+
*/
|
|
22
|
+
const PROBE = /* html */ `<script>{const faults=[],fault=(words)=>{words=String(words);if(!faults.includes(words))faults.push(words)},add=EventTarget.prototype.addEventListener,remove=EventTarget.prototype.removeEventListener,own=new WeakMap()
|
|
23
|
+
EventTarget.prototype.addEventListener=function(type,run,...rest){if(typeof run==='function'&&!own.has(run))own.set(run,function(...args){try{return run.apply(this,args)}catch(e){fault(e?.message??e)}});return add.call(this,type,own.get(run)??run,...rest)}
|
|
24
|
+
EventTarget.prototype.removeEventListener=function(type,run,...rest){return remove.call(this,type,own.get(run)??run,...rest)}
|
|
25
|
+
add.call(window,'error',(e)=>fault(e.message))
|
|
26
|
+
add.call(window,'unhandledrejection',(e)=>fault('Unhandled: '+(e.reason?.message??e.reason)))
|
|
27
|
+
for(const name of['alert','confirm','prompt'])globalThis[name]=()=>fault(name+'() is never shown')
|
|
28
|
+
add.call(window,'message',({data,source})=>{if(source!==parent||!data?.play)return
|
|
29
|
+
for(const one of document.querySelectorAll('button,input:not([type=file]),select,textarea'))one.matches('button')?one.click():(one.dispatchEvent(new Event('input',{bubbles:true})),one.dispatchEvent(new Event('change',{bubbles:true})))
|
|
30
|
+
setTimeout(()=>parent.postMessage({faults},'*'),400)})}</script>`
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* One page played: what went wrong, each once; nothing when it played clean or didn't answer in time.
|
|
34
|
+
* @param {string} source @param {Record<string, string>} storage what it kept @param {AbortSignal} [signal] @returns {Promise<string[]>}
|
|
35
|
+
*/
|
|
36
|
+
function play(source, storage, signal) {
|
|
37
|
+
const { allows, sites } = pageRights(app.settings.peek(), app.policy)
|
|
38
|
+
const box = Object.assign(document.createElement('div'), { className: 'page-test', inert: true }), frame = Object.assign(document.createElement('iframe'), { src: new URL('../../preview.html', import.meta.url).href })
|
|
39
|
+
frame.setAttribute('sandbox', PAGE_SANDBOX)
|
|
40
|
+
box.setAttribute('aria-hidden', 'true')
|
|
41
|
+
return new Promise((resolve) => {
|
|
42
|
+
const done = (/** @type {string[]} */ faults) => { clearTimeout(timer); removeEventListener('message', heard); box.remove(); resolve(faults) }
|
|
43
|
+
const heard = (/** @type {MessageEvent} */ { source: from, data }) => {
|
|
44
|
+
if (from !== frame.contentWindow) return
|
|
45
|
+
const answer = (/** @type {object} */ reply) => frame.contentWindow?.postMessage({ ...reply, id: data.id }, '*')
|
|
46
|
+
if (Array.isArray(data?.faults)) done(data.faults.map(String))
|
|
47
|
+
else if (data?.need === 'echarts') void library().then(({ text }) => frame.contentWindow?.postMessage({ echarts: text }, '*'))
|
|
48
|
+
else if (Object.hasOwn(LENT, data?.need)) void part(LENT[data.need]).then((text) => answer({ text }))
|
|
49
|
+
else if (typeof data?.diagram === 'string') answer({})
|
|
50
|
+
}
|
|
51
|
+
const timer = setTimeout(() => done([]), ALL)
|
|
52
|
+
signal?.addEventListener('abort', () => done([]), { once: true })
|
|
53
|
+
addEventListener('message', heard)
|
|
54
|
+
frame.addEventListener('load', async () => {
|
|
55
|
+
const { url } = await library(), ahead = head(getComputedStyle(document.documentElement), url)
|
|
56
|
+
frame.contentWindow?.postMessage({ page: PROBE + ahead + source, policy: pagePolicy(allows, sites, true), storage }, '*')
|
|
57
|
+
setTimeout(() => frame.contentWindow?.postMessage({ play: true }, '*'), START)
|
|
58
|
+
}, { once: true })
|
|
59
|
+
box.append(frame)
|
|
60
|
+
document.body.append(box)
|
|
61
|
+
})
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* What the brain is told of the pages with a script its answer just wrote, played; nothing when they all played clean.
|
|
66
|
+
* @param {{ text: string, task?: string, signal?: AbortSignal }} e @returns {Promise<string>}
|
|
67
|
+
*/
|
|
68
|
+
export async function played({ text, task = '', signal }) {
|
|
69
|
+
const pages = lex(text).flatMap((token) => (token.type === 'code' && token.lang === 'html' && /<script\b/i.test(token.text) && !parse(token.text) ? [token.text] : []))
|
|
70
|
+
if (!pages.length || !signal || (told.get(signal) ?? 0) >= 2) return ''
|
|
71
|
+
const at = keptAt(task), kept = at ? JSON.parse((await app.fs.read(at).catch(() => null)) ?? '{}').apps ?? {} : {}
|
|
72
|
+
const broke = (await Promise.all(pages.map(async (source) => ({ name: named(source), faults: await play(source, kept[named(source)] ?? {}, signal) })))).filter(({ faults }) => faults.length)
|
|
73
|
+
if (!broke.length) return ''
|
|
74
|
+
told.set(signal, (told.get(signal) ?? 0) + 1)
|
|
75
|
+
return `Played out of sight, ${broke.length > 1 ? 'pages you wrote' : 'the page you wrote'} broke:\n${broke.map(({ name, faults }) => `${name ? `${name}:\n` : ''}${faults.map((fault) => `- ${fault}`).join('\n')}`).join('\n')}\nWrite it again whole, fixed, after a sentence saying what you fixed.`
|
|
76
|
+
}
|
|
@@ -5,21 +5,27 @@
|
|
|
5
5
|
// A part that names a collection (D633) shows it as it is and follows each change: Jean fills its lines from it (../tables/fill.js),
|
|
6
6
|
// so the page never reads it, and a form adds a row to it as the user's own change. Only in a task of the project's own, never one
|
|
7
7
|
// brought in from someone else's (D361, D378); there, and in a copy saved or shared, it shows what was kept of it then. Its `where`
|
|
8
|
-
// keeps only some of the rows
|
|
8
|
+
// keeps only some of the rows; one that can't be read says so. What its parts share (D670, ./live.js) is worked out anew at each draw from
|
|
9
|
+
// what the user set in its fields and the rows its forms added, so its figures, tables and charts all follow them at once, for this visit,
|
|
10
|
+
// and the brain is told what it now holds with the user's next message (./mode.js).
|
|
9
11
|
import { html, nothing, render } from 'lit-html'
|
|
10
12
|
import { effect, signal } from '@preact/signals-core'
|
|
11
13
|
import { app, notify, send } from '../../ui/state.js'
|
|
12
14
|
import { drawnActions, loaded, unlock } from '../../ui/caps.js'
|
|
13
|
-
import { drawn } from '../../ui/markdown.js'
|
|
15
|
+
import { drawn, namesRows } from '../../ui/markdown.js'
|
|
14
16
|
import { icons } from '../../ui/icons.js'
|
|
15
17
|
import { t, locale, intlLocales } from '../../core/i18n.js'
|
|
16
18
|
import { foldTurns } from '../../core/events.js'
|
|
17
19
|
import { loadConversation } from '../../core/conversations.js'
|
|
18
20
|
import { aligned } from '../layouts/shapes.js'
|
|
19
|
-
import { parse, all, bound, key, frozen, figures, table, chart, form, number } from './parts.js'
|
|
21
|
+
import { parse, all, bound, key, frozen, figures, table, chart, form, number, changed } from './parts.js'
|
|
22
|
+
import { shared } from './live.js'
|
|
20
23
|
|
|
21
24
|
/** @import { Part } from './parts.js' */
|
|
22
|
-
/**
|
|
25
|
+
/** @import { Signal } from '@preact/signals-core' */
|
|
26
|
+
/** @import { Loaded } from '../tables/tables.js' */
|
|
27
|
+
/** @import { Property } from '../tables/table.js' */
|
|
28
|
+
/** A part as it is drawn: one that shows a collection with its lines filled, the collection followed, and a form's columns; or the name of one not here, or of one its `where` can't filter. @typedef {Part & { live?: Signal<Loaded | null>, columns?: Property[], missing?: string, unread?: string }} Shown */
|
|
23
29
|
|
|
24
30
|
/** A chart's option for ECharts: bars, lines, areas, bars across or a pie, by its labels and series. @param {ReturnType<typeof chart>} drawing */
|
|
25
31
|
function option({ kind, labels, series }) {
|
|
@@ -51,19 +57,25 @@ export async function snapshot(text) {
|
|
|
51
57
|
return (holds.forEach((hold) => hold()), fills)
|
|
52
58
|
}
|
|
53
59
|
|
|
60
|
+
/** Forms drawn, which names each one's fields apart. */
|
|
61
|
+
let forms = 0
|
|
54
62
|
customElements.define('app-parts', class extends HTMLElement {
|
|
55
63
|
/** `open` while its block's closing fence isn't written yet. */
|
|
56
64
|
static observedAttributes = ['source', 'open']
|
|
57
65
|
/** The rows its forms gave each of its tables in this visit, by the table's id. @type {Map<string, string[][]>} */
|
|
58
66
|
added = new Map()
|
|
67
|
+
/** What the user set in the fields its parts share, by each field's label. @type {Map<string, string | boolean>} */
|
|
68
|
+
given = new Map()
|
|
59
69
|
/** How each of its tables is sorted, by its place among them: by which column, and whether down. @type {Map<number, { column: number, down: boolean }>} */
|
|
60
70
|
sorted = new Map()
|
|
61
|
-
/** The collections its parts name, by name: followed, a signal; being read, null; out of its reach, false. @type {Map<string,
|
|
71
|
+
/** The collections its parts name, by name: followed, a signal; being read, null; out of its reach, false. @type {Map<string, Signal<Loaded | null> | null | false>} */
|
|
62
72
|
followed = new Map()
|
|
63
73
|
/** What lets them go with it. @type {(() => void)[]} */
|
|
64
74
|
holds = []
|
|
65
75
|
/** What its parts showed of them when last drawn, by each part's key, which Copy writes in. @type {Record<string, string>} */
|
|
66
76
|
fills = {}
|
|
77
|
+
/** What its parts now hold, in words for a brain. @type {(() => string) | undefined} */
|
|
78
|
+
told
|
|
67
79
|
/** Tables, once a part follows a collection. @type {any} */
|
|
68
80
|
tables = null
|
|
69
81
|
/** @type {Promise<boolean> | undefined} */
|
|
@@ -81,26 +93,28 @@ customElements.define('app-parts', class extends HTMLElement {
|
|
|
81
93
|
const source = this.getAttribute('source') ?? '', open = this.hasAttribute('open'), parts = parse(source, open) ?? []
|
|
82
94
|
const tables = all(parts).filter((part) => part.tag === 'app-table'), asides = parts.filter((part) => part.tag === 'aside')
|
|
83
95
|
this.fills = {}
|
|
96
|
+
const state = shared(parts, { given: this.given, added: this.added, lang: locale.peek(), locales: intlLocales(locale.peek()) })
|
|
97
|
+
this.told = state.now
|
|
84
98
|
/** @param {Part} given @returns {unknown} */
|
|
85
99
|
const piece = (given) => {
|
|
86
|
-
const name = bound(given, tables), part = /** @type {Shown} */ (name === undefined ? given : this.bound(given, name))
|
|
100
|
+
const name = bound(given, tables), part = /** @type {Shown} */ (name === undefined ? state.filled(given) : this.bound(given, name))
|
|
87
101
|
if (part.missing || part.unread) return html`<p class="muted small" dir="auto">${part.unread ? t('interactive.unread', { name: part.unread, where: part.attrs.where ?? '' }) : t('interactive.noCollection', { name: part.missing ?? '' })}</p>`
|
|
88
102
|
switch (part.tag) {
|
|
89
|
-
case 'app-figures': return html`<ul class="figures">${figures(part).map(([value, words]) => html`<li><strong>${value}</strong><span>${words}</span></li>`)}</ul>`
|
|
103
|
+
case 'app-figures': return html`<ul class="figures" aria-live=${state.live ? 'polite' : nothing}>${figures(part).map(([value, words]) => html`<li><strong>${value}</strong><span>${words}</span></li>`)}</ul>`
|
|
90
104
|
case 'app-cards': return html`<div class="part-cards">${part.kids.map(piece)}</div>`
|
|
91
105
|
case 'app-card': return html`<section class=${'wide' in part.attrs ? 'part-card wide' : 'part-card'}>${part.attrs.heading ? html`<h4 dir="auto">${part.attrs.heading}</h4>` : nothing}${part.kids.map(piece)}</section>`
|
|
92
106
|
case 'aside': return html`<aside>${part.kids.map(piece)}</aside>`
|
|
93
107
|
case '#text': return part.text.trim().split(/\n\s*\n/).map((said) => html`<p dir="auto">${said.replace(/\s*\n\s*/g, ' ')}</p>`)
|
|
94
108
|
case 'app-table': return this.table(part, tables.indexOf(given))
|
|
95
|
-
case 'app-chart': return this.chart(part)
|
|
96
|
-
case 'app-form': return this.form(part, tables)
|
|
109
|
+
case 'app-chart': return this.chart(part, state.live)
|
|
110
|
+
case 'app-form': return this.form(part, tables, state)
|
|
97
111
|
case 'app-map': return drawn.value.geojson?.(part.text, open) ?? nothing
|
|
98
112
|
case 'app-diagram': return drawn.value.mermaid?.(part.text, open) ?? nothing
|
|
99
113
|
}
|
|
100
114
|
}
|
|
101
|
-
const copy = () => navigator.clipboard.writeText(frozen(source, this.fills)).then(() => notify(t('toast.copied')), () => notify(t('made.copyFailed')))
|
|
115
|
+
const copy = () => navigator.clipboard.writeText(frozen(source, this.fills)).then(() => notify(t('toast.copied')), () => notify(t('made.copyFailed'), { alert: true }))
|
|
102
116
|
render(html`<div class="parts">${asides.length ? html`<div>${parts.filter((part) => part.tag !== 'aside').map(piece)}</div>${asides.map(piece)}` : parts.map(piece)}</div>
|
|
103
|
-
<div class="drawn-foot"><button class="icon-button subtle" aria-label=${t('action.copy')} @click=${copy}>${icons.copy}</button>${drawnActions('html', source)}</div>`, this)
|
|
117
|
+
<div class="drawn-foot" lang=${locale.value}><button class="icon-button subtle" aria-label=${t('action.copy')} @click=${copy}>${icons.copy}</button>${drawnActions('html', source)}</div>`, this)
|
|
104
118
|
}
|
|
105
119
|
|
|
106
120
|
/**
|
|
@@ -138,52 +152,61 @@ customElements.define('app-parts', class extends HTMLElement {
|
|
|
138
152
|
}
|
|
139
153
|
|
|
140
154
|
/**
|
|
141
|
-
* A table, its
|
|
155
|
+
* A table, its amounts at the end, sorted by a head once one is pressed; each cell's words in their own
|
|
142
156
|
* direction, as a date the user's language writes, filled in a page in another. @param {Part} part @param {number} n its place among the page's tables
|
|
143
157
|
*/
|
|
144
158
|
table(part, n) {
|
|
145
|
-
const { heads, rows } = table(part), lang = locale.peek(), sort = this.sorted.get(n),
|
|
146
|
-
const align = aligned({ align: heads.map(() => null), rows:
|
|
159
|
+
const { heads, rows } = table(part), lang = locale.peek(), sort = this.sorted.get(n), named = namesRows(heads[0] ?? '', rows.map((row) => String(row[0] ?? '').trim()))
|
|
160
|
+
const align = aligned({ align: heads.map(() => null), rows: rows.map((row) => row.map((text) => ({ text }))) }).map((side) => side && `align-${side}`), collator = new Intl.Collator(intlLocales(lang), { numeric: true })
|
|
147
161
|
/** An amount by its value, one with none after the others; any other cell as the language sorts words. @param {string} a @param {string} b */
|
|
148
162
|
const compare = (a, b) => (sort && align[sort.column] ? ((x, y) => (Number.isNaN(x) ? 1 : Number.isNaN(y) ? -1 : x - y))(number(a, lang), number(b, lang)) : collator.compare(a, b))
|
|
149
|
-
const shown = sort ? [...
|
|
163
|
+
const shown = sort ? [...rows].sort((a, b) => compare(a[sort.column], b[sort.column]) * (sort.down ? -1 : 1)) : rows
|
|
150
164
|
const by = (/** @type {number} */ column) => () => { this.sorted.set(n, { column, down: sort?.column === column && !sort.down }); this.tick.value++ }
|
|
151
165
|
return html`<div class="table" tabindex="0"><table>
|
|
152
|
-
<thead><tr>${heads.map((head, i) => html`<th class=${align[i] || ''} aria-sort=${sort?.column === i ? (sort.down ? 'descending' : 'ascending') : nothing}
|
|
153
|
-
<tbody>${shown.map((row) => html`<tr>${row.map((cell, i) => html`<td class=${align[i] || ''}><bdi>${cell}</bdi></td>`
|
|
166
|
+
<thead><tr>${heads.map((head, i) => html`<th scope="col" class=${align[i] || ''} aria-sort=${sort?.column === i ? (sort.down ? 'descending' : 'ascending') : nothing}>${head ? html`<button type="button" class="sorts" @click=${by(i)}>${head}</button>` : nothing}</th>`)}</tr></thead>
|
|
167
|
+
<tbody>${shown.map((row) => html`<tr>${row.map((cell, i) => (i || !named ? html`<td class=${align[i] || ''}><bdi>${cell}</bdi></td>`
|
|
168
|
+
: html`<th scope="row" class=${align[i] || ''}><bdi>${cell}</bdi></th>`))}</tr>`)}</tbody>
|
|
154
169
|
</table></div>`
|
|
155
170
|
}
|
|
156
171
|
|
|
157
|
-
/** A chart, drawn by Charts once it has come; until then, or where it can't come, its numbers as a table. @param {Part} part */
|
|
158
|
-
chart(part) {
|
|
172
|
+
/** A chart, drawn by Charts once it has come, the same one as what it shows changes on a page that shares (`live`); until then, or where it can't come, its numbers as a table. @param {Part} part @param {boolean} live */
|
|
173
|
+
chart(part, live) {
|
|
159
174
|
const drawing = chart(part, locale.peek())
|
|
160
|
-
if (customElements.get('app-chart')) return html`<app-chart source=${JSON.stringify(option(drawing))}></app-chart>`
|
|
175
|
+
if (customElements.get('app-chart')) return html`<app-chart ?live=${live} source=${JSON.stringify(option(drawing))}></app-chart>`
|
|
161
176
|
void unlock('charts').then((come) => come && this.isConnected && this.tick.value++)
|
|
162
177
|
return this.table({ ...part, text: [['', ...drawing.labels], ...drawing.series.map(({ name, data }) => [name, ...data])].map((row) => row.join(' | ')).join('\n') }, -1)
|
|
163
178
|
}
|
|
164
179
|
|
|
180
|
+
/** What the user set or added: drawn again, and told to the brain with their next message. */
|
|
181
|
+
changed() { this.tick.value++; Object.assign(changed, { task: app.current.peek()?.path ?? '', text: this.told?.() ?? '' }) }
|
|
182
|
+
|
|
165
183
|
/**
|
|
166
184
|
* A form: a field for each of its lines, and its button, which adds what was filled in as a row to the collection it shows, as the
|
|
167
185
|
* user's own change, or to the page's table it names, for this visit, or else sends it as the user's next message: what it asks,
|
|
168
|
-
* then each field and its value.
|
|
186
|
+
* then each field and its value. On a page that shares (`live`), a form that adds no row has its fields read at once, and a button only if it asks something.
|
|
187
|
+
* @param {Shown} part @param {Part[]} tables the page's @param {ReturnType<typeof shared>} state
|
|
169
188
|
*/
|
|
170
|
-
form(part, tables) {
|
|
171
|
-
const fields = form(part), { ask = '', to = '' } = part.attrs, label = ask || t('action.send')
|
|
189
|
+
form(part, tables, state) {
|
|
190
|
+
const fields = form(part), { ask = '', to = '' } = part.attrs, label = ask || t('action.send'), button = ask || to || !state.live, at = ++forms
|
|
191
|
+
/** A field the user changed: all that reads it follows. @param {any} event */
|
|
192
|
+
const changes = ({ target }) => { this.given.set(target.name, target.type === 'checkbox' ? target.checked : target.value); this.changed() }
|
|
172
193
|
/** @param {SubmitEvent} event */
|
|
173
194
|
const submit = (event) => {
|
|
174
195
|
event.preventDefault()
|
|
175
|
-
|
|
196
|
+
if (!button) return
|
|
197
|
+
const box = /** @type {HTMLFormElement} */ (event.currentTarget), values = [.../** @type {NodeListOf<HTMLInputElement>} */ (box.querySelectorAll('input:not([type=range]), select, textarea'))]
|
|
176
198
|
.map((input) => (input.type === 'checkbox' ? (input.checked ? '✓' : '') : input.value.trim()))
|
|
177
199
|
if (part.live?.value) return void this.tables.addRow(part.live.value, Object.fromEntries((part.columns ?? []).map((property, i) => [property.id, values[i]]))).then(() => box.reset())
|
|
178
|
-
if (to && tables.some((table) => table.attrs.id === to)) return void (this.added.set(to, [...(this.added.get(to) ?? []), values]), box.reset(), this.
|
|
200
|
+
if (to && tables.some((table) => table.attrs.id === to)) return void (this.added.set(to, [...(this.added.get(to) ?? []), values]), box.reset(), this.changed())
|
|
179
201
|
if (!app.busy.peek()) void send([label, ...fields.map((field, i) => `${field.label}: ${values[i]}`)].join('\n'))
|
|
180
202
|
}
|
|
181
203
|
/** @param {ReturnType<typeof form>[number]} field */
|
|
182
|
-
const input = (field) => (field.kind === 'choice' ? html`<select>${field.choices?.map((choice) => html`<option ?selected=${choice === field.start}>${choice}</option>`)}</select>`
|
|
183
|
-
: field.kind === 'long' ? html`<textarea rows="3" .value=${field.start}></textarea>`
|
|
184
|
-
: field.kind === 'yes' || field.kind === 'no' ? html`<input type="checkbox" ?checked=${field.start ? /^(yes|on|true|✓)$/i.test(field.start) : field.kind === 'yes'}>`
|
|
185
|
-
:
|
|
186
|
-
|
|
187
|
-
|
|
204
|
+
const input = (field, /** @type {string} */ id) => (field.kind === 'choice' ? html`<select id=${id} name=${field.label}>${field.choices?.map((choice) => html`<option ?selected=${choice === field.start}>${choice}</option>`)}</select>`
|
|
205
|
+
: field.kind === 'long' ? html`<textarea id=${id} name=${field.label} rows="3" .value=${field.start}></textarea>`
|
|
206
|
+
: field.kind === 'yes' || field.kind === 'no' ? html`<input id=${id} type="checkbox" name=${field.label} ?checked=${field.start ? /^(yes|on|true|✓)$/i.test(field.start) : field.kind === 'yes'}>`
|
|
207
|
+
: field.kind === 'range' ? ((now) => html`<input id=${id} type="range" name=${field.label} min=${field.min ?? nothing} max=${field.max ?? nothing} step=${field.step ?? nothing} .value=${now}><input type="number" name=${field.label} title=${field.label} step=${field.step ?? nothing} .value=${now}>`)(String(this.given.get(field.label) ?? field.start))
|
|
208
|
+
: html`<input id=${id} type=${field.kind === 'text' ? 'text' : field.kind} name=${field.label} step=${field.kind === 'number' ? 'any' : nothing} value=${field.start}>`)
|
|
209
|
+
return html`<form class="part-form" @submit=${submit} @input=${state.live && !to ? changes : nothing}>${fields.map((field, i) => html`<label class=${field.kind === 'yes' || field.kind === 'no' ? 'tick' : field.kind === 'range' ? 'slides' : ''} for=${`part-${at}-${i}`}><span dir="auto">${field.label}</span>${input(field, `part-${at}-${i}`)}</label>`)}
|
|
210
|
+
${button ? html`<button type="submit" class="button primary">${label}</button>` : nothing}</form>`
|
|
188
211
|
}
|
|
189
212
|
})
|
package/caps/layouts/layouts.css
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
main .prose > .table:where(:has(th:nth-child(3))) { --wide: max(100cqi, min(var(--shell) - 2.5rem, 64rem)); margin-inline: calc((100cqi - var(--wide)) / 2); }
|
|
13
13
|
main .prose > .table:where(:has(th:nth-child(3))) > table { inline-size: max-content; min-inline-size: 100cqi; max-inline-size: 100%; margin-inline: auto; overflow-wrap: break-word; }
|
|
14
14
|
}
|
|
15
|
-
/* A head that stays
|
|
15
|
+
/* A head that stays: in the conversation, a table that fits (data-whole, as layouts.js tells)
|
|
16
16
|
keeps its head in view under the bar (--stick, its height) while its rows scroll by; one wider scrolls
|
|
17
17
|
sideways, its head with it. The head's ground is opaque and reaches up to the room's top, so that rows
|
|
18
18
|
gone by show neither through it nor above it, and the table clips it, so that it never hides what
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
@media screen {
|
|
21
21
|
.prose .table:not(.is-compare) > table { border-collapse: separate; border-spacing: 0; }
|
|
22
22
|
main .prose .table[data-whole] { overflow: clip; }
|
|
23
|
-
:where(main .prose .table[data-whole]) th { --above: 0 calc(-1 * var(--stick, 0px)) var(--room), 0 calc(var(--stick, 0px) / -2) var(--room); position: sticky; z-index: 1; inset-block-start: var(--stick, 0px); background-color: var(--room); box-shadow: var(--above); }
|
|
23
|
+
:where(main .prose .table[data-whole]) thead th { --above: 0 calc(-1 * var(--stick, 0px)) var(--room), 0 calc(var(--stick, 0px) / -2) var(--room); position: sticky; z-index: 1; inset-block-start: var(--stick, 0px); background-color: var(--room); box-shadow: var(--above); }
|
|
24
24
|
main .prose .is-compare[data-whole] th:not(:first-child) { background: color-mix(in srgb, var(--ink) 4.5%, var(--room)); }
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
@container (width >= 34rem) {
|
|
39
39
|
main .prose > .is-compare > table { table-layout: fixed; }
|
|
40
40
|
main .prose > .is-compare th:first-child { inline-size: clamp(7rem, 22cqi, 12rem); }
|
|
41
|
-
.prose .is-compare
|
|
41
|
+
.prose .is-compare .pick-tag { max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
42
42
|
}
|
|
43
43
|
.prose .is-compare table { border-collapse: separate; border-spacing: var(--gap) 0; overflow-wrap: break-word; }
|
|
44
44
|
.prose .is-compare :is(th, td) { padding: 0.6rem var(--pad); vertical-align: top; }
|
|
45
45
|
.prose .is-compare :is(th, td):first-child { padding-inline: 0 0.25rem; color: var(--ink-soft); font-weight: 500; }
|
|
46
46
|
.prose .is-compare :is(th, td):not(:first-child) { background: oklch(from var(--ink) l c h / 0.045); }
|
|
47
|
-
.prose .is-compare th { vertical-align: bottom; padding-block: 0.9rem 0.7rem; border-block-end-color: var(--line); font-size: 1.05rem; font-weight: 650; }
|
|
47
|
+
.prose .is-compare thead th { vertical-align: bottom; padding-block: 0.9rem 0.7rem; border-block-end-color: var(--line); font-size: 1.05rem; font-weight: 650; }
|
|
48
48
|
.prose .is-compare th:not(:first-child) { border-start-start-radius: var(--card); border-start-end-radius: var(--card); }
|
|
49
49
|
.prose .is-compare tr:last-child td { padding-block-end: 0.9rem; }
|
|
50
50
|
.prose .is-compare tr:last-child td:not(:first-child) { border-end-start-radius: var(--card); border-end-end-radius: var(--card); }
|
|
@@ -55,8 +55,7 @@
|
|
|
55
55
|
.prose .is-compare .is-pick { --edge: inset 2px 0 var(--flame), inset -2px 0 var(--flame); border-block-end: 0; box-shadow: var(--edge), inset 0 -1px var(--line); }
|
|
56
56
|
.prose .is-compare th.is-pick { box-shadow: var(--edge), inset 0 2px var(--flame), inset 0 -1px var(--line), var(--above, 0 0 #0000); }
|
|
57
57
|
.prose .is-compare tbody tr:last-child .is-pick { box-shadow: var(--edge), inset 0 -2px var(--flame); }
|
|
58
|
-
.prose .is-compare
|
|
59
|
-
content: attr(data-pick);
|
|
58
|
+
.prose .is-compare .pick-tag {
|
|
60
59
|
display: block;
|
|
61
60
|
inline-size: fit-content;
|
|
62
61
|
margin-block-end: 0.45rem;
|
|
@@ -97,7 +96,7 @@
|
|
|
97
96
|
border-radius: 50%;
|
|
98
97
|
background: oklch(from var(--flame) l c h / 0.12);
|
|
99
98
|
box-shadow: inset 0 0 0 1.5px oklch(from var(--flame) l c h / 0.55);
|
|
100
|
-
color: var(--
|
|
99
|
+
color: var(--ink);
|
|
101
100
|
font-size: 0.85rem;
|
|
102
101
|
font-weight: 650;
|
|
103
102
|
font-variant-numeric: tabular-nums;
|
|
@@ -173,7 +172,7 @@
|
|
|
173
172
|
.prose .picture { margin-block: 0.75rem; }
|
|
174
173
|
|
|
175
174
|
/* Where colours are forced, the cards, the frame, the rings and the notes keep their edges. */
|
|
176
|
-
@media (forced-colors: active) {
|
|
175
|
+
@media (max-width: 30rem) { .prose pre { white-space: pre-wrap; overflow-wrap: anywhere; } } @media (forced-colors: active) {
|
|
177
176
|
.prose .is-compare :is(th, td):not(:first-child) { border-inline: 1px solid CanvasText; }
|
|
178
177
|
.prose .is-compare .is-pick { border-inline-width: 3px; }
|
|
179
178
|
.prose .is-compare td.is-best { text-decoration: underline; }
|