@openmrs/esm-form-builder-app 1.0.1-pre.126
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/.eslintignore +2 -0
- package/.eslintrc +33 -0
- package/.husky/pre-commit +4 -0
- package/.husky/pre-push +6 -0
- package/.prettierignore +14 -0
- package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +541 -0
- package/.yarn/plugins/@yarnpkg/plugin-version.cjs +550 -0
- package/.yarn/versions/7d315ef1.yml +0 -0
- package/LICENSE +401 -0
- package/README.md +14 -0
- package/__mocks__/react-i18next.js +56 -0
- package/dist/openmrs-esm-form-builder-app.js +1 -0
- package/i18next-parser.config.js +89 -0
- package/jest.config.json +19 -0
- package/package.json +102 -0
- package/src/components/dashboard/dashboard.component.tsx +310 -0
- package/src/components/dashboard/dashboard.scss +112 -0
- package/src/components/empty-state/empty-data-illustration.component.tsx +51 -0
- package/src/components/empty-state/empty-state.component.tsx +41 -0
- package/src/components/empty-state/empty-state.scss +55 -0
- package/src/components/error-state/error-state.component.tsx +37 -0
- package/src/components/error-state/error-state.scss +49 -0
- package/src/components/form-editor/form-editor.component.tsx +297 -0
- package/src/components/form-editor/form-editor.scss +50 -0
- package/src/components/form-renderer/form-renderer.component.tsx +82 -0
- package/src/components/form-renderer/form-renderer.scss +31 -0
- package/src/components/interactive-builder/add-question-modal.component.tsx +494 -0
- package/src/components/interactive-builder/edit-question-modal.component.tsx +447 -0
- package/src/components/interactive-builder/editable-value.component.tsx +60 -0
- package/src/components/interactive-builder/editable-value.scss +23 -0
- package/src/components/interactive-builder/interactive-builder.component.tsx +403 -0
- package/src/components/interactive-builder/interactive-builder.scss +83 -0
- package/src/components/interactive-builder/new-form-modal.component.tsx +86 -0
- package/src/components/interactive-builder/page-modal.component.tsx +91 -0
- package/src/components/interactive-builder/question-modal.scss +35 -0
- package/src/components/interactive-builder/section-modal.component.tsx +94 -0
- package/src/components/interactive-builder/value-editor.component.tsx +55 -0
- package/src/components/interactive-builder/value-editor.scss +10 -0
- package/src/components/modals/save-form.component.tsx +310 -0
- package/src/components/modals/save-form.scss +5 -0
- package/src/components/schema-editor/schema-editor.component.tsx +190 -0
- package/src/components/schema-editor/schema-editor.scss +30 -0
- package/src/config-schema.ts +47 -0
- package/src/constants.ts +3 -0
- package/src/declarations.d.tsx +2 -0
- package/src/form-builder-app-menu-link.component.tsx +13 -0
- package/src/forms.resource.ts +178 -0
- package/src/hooks/useClobdata.ts +20 -0
- package/src/hooks/useConceptLookup.ts +18 -0
- package/src/hooks/useEncounterTypes.ts +18 -0
- package/src/hooks/useForm.ts +18 -0
- package/src/hooks/useForms.ts +20 -0
- package/src/index.ts +70 -0
- package/src/root.component.tsx +19 -0
- package/src/setup-tests.ts +1 -0
- package/src/types.ts +132 -0
- package/translations/en.json +110 -0
- package/tsconfig.json +23 -0
- package/turbo.json +26 -0
- package/webpack.config.js +19 -0
package/.eslintignore
ADDED
package/.eslintrc
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"parser": "@typescript-eslint/parser",
|
|
3
|
+
"plugins": [
|
|
4
|
+
"@typescript-eslint"
|
|
5
|
+
],
|
|
6
|
+
"extends": ["ts-react-important-stuff", "plugin:prettier/recommended"],
|
|
7
|
+
"rules": {
|
|
8
|
+
"no-restricted-imports": [
|
|
9
|
+
"error",
|
|
10
|
+
{
|
|
11
|
+
"paths": [
|
|
12
|
+
{
|
|
13
|
+
"name": "lodash",
|
|
14
|
+
"message": "Import specific methods from `lodash`. e.g. `import map from 'lodash/map'`"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "lodash-es",
|
|
18
|
+
"importNames": ["default"],
|
|
19
|
+
"message": "Import specific methods from `lodash-es`. e.g. `import { map } from 'lodash-es'`"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "carbon-components-react",
|
|
23
|
+
"message": "Import from `@carbon/react` directly. e.g. `import { Toggle } from '@carbon/react'`"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "@carbon/icons-react",
|
|
27
|
+
"message": "Import from `@carbon/react/icons`. e.g. `import { ChevronUp } from '@carbon/react/icons'`"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
}
|
package/.husky/pre-push
ADDED