@digigov/react-modules 1.2.0-rc.28 → 1.2.0-rc.29
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/.prettierrc.js +1 -0
- package/.rush/temp/chunked-rush-logs/react-modules.build.chunks.jsonl +8 -0
- package/.rush/temp/chunked-rush-logs/react-modules.lint.chunks.jsonl +19 -0
- package/.rush/temp/chunked-rush-logs/react-modules.publint.chunks.jsonl +20 -0
- package/.rush/temp/package-deps_build.json +27 -0
- package/.rush/temp/package-deps_lint.json +27 -0
- package/.rush/temp/package-deps_publint.json +29 -0
- package/.rush/temp/shrinkwrap-deps.json +19 -0
- package/eslint.config.mjs +8 -0
- package/package.json +33 -10
- package/playwright-ct.config.ts +3 -0
- package/react-modules.build.log +9 -0
- package/rush-logs/react-modules.build.log +8 -0
- package/rush-logs/react-modules.lint.log +19 -0
- package/rush-logs/react-modules.publint.log +20 -0
- package/tailwind.config.js +17 -0
- package/tsconfig.json +27 -0
- package/tsconfig.production.json +29 -0
- package/FilteredResults/DataTable/index.js +0 -18
- package/FilteredResults/DataTable/package.json +0 -6
- package/FilteredResults/DataTable.d.ts +0 -5
- package/FilteredResults/DataTable.js.map +0 -7
- package/FilteredResults/FilterChips/index.js +0 -52
- package/FilteredResults/FilterChips/package.json +0 -6
- package/FilteredResults/FilterChips.d.ts +0 -3
- package/FilteredResults/FilterChips.js.map +0 -7
- package/FilteredResults/FilterFields/index.js +0 -11
- package/FilteredResults/FilterFields/package.json +0 -6
- package/FilteredResults/FilterFields.d.ts +0 -5
- package/FilteredResults/FilterFields.js.map +0 -7
- package/FilteredResults/FilteredResults.stories.d.ts +0 -8
- package/FilteredResults/__stories__/Default.d.ts +0 -2
- package/FilteredResults/hooks/index.js +0 -105
- package/FilteredResults/hooks/package.json +0 -6
- package/FilteredResults/hooks.d.ts +0 -22
- package/FilteredResults/hooks.js.map +0 -7
- package/FilteredResults/index.d.ts +0 -25
- package/FilteredResults/index.js +0 -120
- package/FilteredResults/index.js.map +0 -7
- package/FilteredResults/index.test.d.ts +0 -1
- package/FilteredResults/package.json +0 -6
- package/FilteredResults/splitted.test.d.ts +0 -1
- package/LICENSE +0 -0
- package/ReactModules.stories.d.ts +0 -4
- package/cjs/FilteredResults/DataTable/index.js +0 -42
- package/cjs/FilteredResults/DataTable.js.map +0 -7
- package/cjs/FilteredResults/FilterChips/index.js +0 -82
- package/cjs/FilteredResults/FilterChips.js.map +0 -7
- package/cjs/FilteredResults/FilterFields/index.js +0 -44
- package/cjs/FilteredResults/FilterFields.js.map +0 -7
- package/cjs/FilteredResults/hooks/index.js +0 -132
- package/cjs/FilteredResults/hooks.js.map +0 -7
- package/cjs/FilteredResults/index.js +0 -153
- package/cjs/FilteredResults/index.js.map +0 -7
- package/cjs/index.js +0 -22
- package/cjs/index.js.map +0 -7
- package/cjs/lazy/index.js +0 -43
- package/cjs/lazy.js.map +0 -7
- package/cjs/registry/index.js +0 -63
- package/cjs/registry.js.map +0 -7
- package/index.d.ts +0 -1
- package/index.js +0 -7
- package/index.js.map +0 -7
- package/lazy/index.js +0 -10
- package/lazy/package.json +0 -6
- package/registry/index.js +0 -33
- package/registry/package.json +0 -6
- package/src/lazy.js +0 -10
- package/src/registry.js +0 -33
package/.prettierrc.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('@digigov/cli-lint/prettierrc')();
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{"kind":"O","text":"Invoking: digigov build --generate-registry \n"}
|
|
2
|
+
{"kind":"O","text":" LOG Running: rimraf dist\n"}
|
|
3
|
+
{"kind":"O","text":" LOG Running: tsc --emitDeclarationOnly --outDir dist --project /Users/dimitristsironis/grnet/digigov-sdk/libs/react-modules/tsconfig.production.json\n"}
|
|
4
|
+
{"kind":"O","text":" LOG Running: esbuild for CJS format\n"}
|
|
5
|
+
{"kind":"O","text":" LOG Running: esbuild for ESM format\n"}
|
|
6
|
+
{"kind":"O","text":" LOG Running: esbuild for CJS format\n"}
|
|
7
|
+
{"kind":"O","text":" LOG Generated registry files\n"}
|
|
8
|
+
{"kind":"O","text":"⏱️ \"build\" execution time: 3.980s\n"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{"kind":"O","text":"Invoking: digigov lint \n"}
|
|
2
|
+
{"kind":"O","text":" LOG Running: eslint --no-error-on-unmatched-pattern\n"}
|
|
3
|
+
{"kind":"O","text":"\n"}
|
|
4
|
+
{"kind":"O","text":"/Users/dimitristsironis/grnet/digigov-sdk/libs/react-modules/src/FilteredResults/__stories__/Default.tsx\n"}
|
|
5
|
+
{"kind":"O","text":" 209:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any\n"}
|
|
6
|
+
{"kind":"O","text":"\n"}
|
|
7
|
+
{"kind":"O","text":"/Users/dimitristsironis/grnet/digigov-sdk/libs/react-modules/src/FilteredResults/hooks.ts\n"}
|
|
8
|
+
{"kind":"O","text":" 39:11 warning Use \"@ts-expect-error\" instead of \"@ts-ignore\", as \"@ts-ignore\" will do nothing if the following line is error-free @typescript-eslint/ban-ts-comment\n"}
|
|
9
|
+
{"kind":"O","text":" 67:6 warning React Hook useEffect has a missing dependency: 'search'. Either include it or remove the dependency array react-hooks/exhaustive-deps\n"}
|
|
10
|
+
{"kind":"O","text":" 69:9 warning The 'search' function makes the dependencies of useMemo Hook (at line 130) change on every render. To fix this, wrap the definition of 'search' in its own useCallback() Hook react-hooks/exhaustive-deps\n"}
|
|
11
|
+
{"kind":"O","text":"\n"}
|
|
12
|
+
{"kind":"O","text":"/Users/dimitristsironis/grnet/digigov-sdk/libs/react-modules/src/FilteredResults/index.tsx\n"}
|
|
13
|
+
{"kind":"O","text":" 55:6 warning React Hook useEffect has missing dependencies: 'autoSubmit', 'form', and 'previousValues'. Either include them or remove the dependency array react-hooks/exhaustive-deps\n"}
|
|
14
|
+
{"kind":"O","text":" 160:9 warning Use \"@ts-expect-error\" instead of \"@ts-ignore\", as \"@ts-ignore\" will do nothing if the following line is error-free @typescript-eslint/ban-ts-comment\n"}
|
|
15
|
+
{"kind":"O","text":" 168:9 warning Use \"@ts-expect-error\" instead of \"@ts-ignore\", as \"@ts-ignore\" will do nothing if the following line is error-free @typescript-eslint/ban-ts-comment\n"}
|
|
16
|
+
{"kind":"O","text":"\n"}
|
|
17
|
+
{"kind":"O","text":"✖ 7 problems (0 errors, 7 warnings)\n"}
|
|
18
|
+
{"kind":"O","text":"\n"}
|
|
19
|
+
{"kind":"O","text":"⏱️ \"lint\" execution time: 1.690s\n"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{"kind":"O","text":"Invoking: publint dist \n"}
|
|
2
|
+
{"kind":"O","text":"@digigov/react-modules lint results:\n"}
|
|
3
|
+
{"kind":"O","text":"Suggestions:\n"}
|
|
4
|
+
{"kind":"O","text":"1. pkg.module is used to output ESM, but pkg.exports is not defined. As NodeJS doesn't read pkg.module, the ESM output may be skipped. Consider adding pkg.exports to export the ESM output. pkg.module can usually be removed alongside too. (This will be a breaking change)\n"}
|
|
5
|
+
{"kind":"O","text":"Warnings:\n"}
|
|
6
|
+
{"kind":"O","text":"1. /FilteredResults/DataTable/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /FilteredResults/DataTable/index.mjs\n"}
|
|
7
|
+
{"kind":"O","text":"2. /FilteredResults/FilterFields/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /FilteredResults/FilterFields/index.mjs\n"}
|
|
8
|
+
{"kind":"O","text":"3. /FilteredResults/FilterChips/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /FilteredResults/FilterChips/index.mjs\n"}
|
|
9
|
+
{"kind":"O","text":"4. /FilteredResults/FilteredResults.stories/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /FilteredResults/FilteredResults.stories/index.mjs\n"}
|
|
10
|
+
{"kind":"O","text":"5. /FilteredResults/hooks/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /FilteredResults/hooks/index.mjs\n"}
|
|
11
|
+
{"kind":"O","text":"6. /ReactModules.stories/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /ReactModules.stories/index.mjs\n"}
|
|
12
|
+
{"kind":"O","text":"7. /FilteredResults/__stories__/Default/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /FilteredResults/__stories__/Default/index.mjs\n"}
|
|
13
|
+
{"kind":"O","text":"8. /index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /index.mjs\n"}
|
|
14
|
+
{"kind":"O","text":"9. /FilteredResults/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /FilteredResults/index.mjs\n"}
|
|
15
|
+
{"kind":"O","text":"10. /src/FilteredResults/FilteredResults.stories.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /src/FilteredResults/FilteredResults.stories.mjs\n"}
|
|
16
|
+
{"kind":"O","text":"11. /lazy/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /lazy/index.mjs\n"}
|
|
17
|
+
{"kind":"O","text":"12. /registry/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /registry/index.mjs\n"}
|
|
18
|
+
{"kind":"O","text":"13. /src/lazy.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /src/lazy.mjs\n"}
|
|
19
|
+
{"kind":"O","text":"14. /src/registry.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /src/registry.mjs\n"}
|
|
20
|
+
{"kind":"O","text":"15. /src/ReactModules.stories.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /src/ReactModules.stories.mjs\n"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files": {
|
|
3
|
+
"libs/react-modules/.gitignore": "53c37a16608c014b2cf0bd2d5dfcafe953cdd857",
|
|
4
|
+
"libs/react-modules/.prettierrc.js": "0fcfefe7e173b01f620c09ef31913d8ca6ba9a97",
|
|
5
|
+
"libs/react-modules/CHANGELOG.md": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
|
|
6
|
+
"libs/react-modules/README.md": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
|
|
7
|
+
"libs/react-modules/eslint.config.mjs": "14b40334adbf54674ec93e107c501677be5dd45f",
|
|
8
|
+
"libs/react-modules/package.json": "a0d17d703fa918bf4ab83602077209fd1571cc23",
|
|
9
|
+
"libs/react-modules/playwright-ct.config.ts": "1834e5cd4fb06b01c12f7a0c9bc6b585e155c736",
|
|
10
|
+
"libs/react-modules/src/FilteredResults/DataTable.tsx": "bb2bb9d018e338f0734eabfc3a4ff75078c286a0",
|
|
11
|
+
"libs/react-modules/src/FilteredResults/FilterChips.tsx": "f49914a5546c5a87859afc74b576153599ac3835",
|
|
12
|
+
"libs/react-modules/src/FilteredResults/FilterFields.tsx": "b7e9d79a2ff9f49133d7008d039e6d314611ee99",
|
|
13
|
+
"libs/react-modules/src/FilteredResults/FilteredResults.stories.js": "f25a3885eda9929d30624ecb8c7705241410f90b",
|
|
14
|
+
"libs/react-modules/src/FilteredResults/__stories__/Default.tsx": "84ab3057f723c3563df499429c631bdb5b8c5165",
|
|
15
|
+
"libs/react-modules/src/FilteredResults/hooks.ts": "a42aef1134e3244b880888ea924291b986b44e90",
|
|
16
|
+
"libs/react-modules/src/FilteredResults/index.test.tsx": "b8ddd24744c8b5f3d80407ce8097a6d154a007a4",
|
|
17
|
+
"libs/react-modules/src/FilteredResults/index.tsx": "ef6bcb6344900e1f4c56a5d7330c6d4ef3b07ff9",
|
|
18
|
+
"libs/react-modules/src/FilteredResults/splitted.test.tsx": "1bd71476714c667174d557d22996e0098034771a",
|
|
19
|
+
"libs/react-modules/src/ReactModules.stories.js": "5ddf932ffe928fdb1a870c5a8306ab8b41c59710",
|
|
20
|
+
"libs/react-modules/src/index.ts": "2599492312f57808882362e97bf88cc8b31c154f",
|
|
21
|
+
"libs/react-modules/tailwind.config.js": "aa853950fb806aba96ad324a77c5f2b3e8802179",
|
|
22
|
+
"libs/react-modules/tsconfig.json": "62c2a733eac545cb1e03c307112112edaebef160",
|
|
23
|
+
"libs/react-modules/tsconfig.production.json": "8568d53d05e62e6810e445bf9cbb74a2373745a6",
|
|
24
|
+
"libs/react-modules/.rush/temp/shrinkwrap-deps.json": "2accd517a97c7935184742cab8ca50b6d6d66669"
|
|
25
|
+
},
|
|
26
|
+
"arguments": "digigov build --generate-registry "
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files": {
|
|
3
|
+
"libs/react-modules/.gitignore": "53c37a16608c014b2cf0bd2d5dfcafe953cdd857",
|
|
4
|
+
"libs/react-modules/.prettierrc.js": "0fcfefe7e173b01f620c09ef31913d8ca6ba9a97",
|
|
5
|
+
"libs/react-modules/CHANGELOG.md": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
|
|
6
|
+
"libs/react-modules/README.md": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
|
|
7
|
+
"libs/react-modules/eslint.config.mjs": "14b40334adbf54674ec93e107c501677be5dd45f",
|
|
8
|
+
"libs/react-modules/package.json": "b82f90df7413e3874d5d82541071d310a9303b7b",
|
|
9
|
+
"libs/react-modules/playwright-ct.config.ts": "1834e5cd4fb06b01c12f7a0c9bc6b585e155c736",
|
|
10
|
+
"libs/react-modules/src/FilteredResults/DataTable.tsx": "bb2bb9d018e338f0734eabfc3a4ff75078c286a0",
|
|
11
|
+
"libs/react-modules/src/FilteredResults/FilterChips.tsx": "f49914a5546c5a87859afc74b576153599ac3835",
|
|
12
|
+
"libs/react-modules/src/FilteredResults/FilterFields.tsx": "b7e9d79a2ff9f49133d7008d039e6d314611ee99",
|
|
13
|
+
"libs/react-modules/src/FilteredResults/FilteredResults.stories.js": "f25a3885eda9929d30624ecb8c7705241410f90b",
|
|
14
|
+
"libs/react-modules/src/FilteredResults/__stories__/Default.tsx": "84ab3057f723c3563df499429c631bdb5b8c5165",
|
|
15
|
+
"libs/react-modules/src/FilteredResults/hooks.ts": "a42aef1134e3244b880888ea924291b986b44e90",
|
|
16
|
+
"libs/react-modules/src/FilteredResults/index.test.tsx": "b8ddd24744c8b5f3d80407ce8097a6d154a007a4",
|
|
17
|
+
"libs/react-modules/src/FilteredResults/index.tsx": "ef6bcb6344900e1f4c56a5d7330c6d4ef3b07ff9",
|
|
18
|
+
"libs/react-modules/src/FilteredResults/splitted.test.tsx": "1bd71476714c667174d557d22996e0098034771a",
|
|
19
|
+
"libs/react-modules/src/ReactModules.stories.js": "5ddf932ffe928fdb1a870c5a8306ab8b41c59710",
|
|
20
|
+
"libs/react-modules/src/index.ts": "2599492312f57808882362e97bf88cc8b31c154f",
|
|
21
|
+
"libs/react-modules/tailwind.config.js": "aa853950fb806aba96ad324a77c5f2b3e8802179",
|
|
22
|
+
"libs/react-modules/tsconfig.json": "62c2a733eac545cb1e03c307112112edaebef160",
|
|
23
|
+
"libs/react-modules/tsconfig.production.json": "8568d53d05e62e6810e445bf9cbb74a2373745a6",
|
|
24
|
+
"libs/react-modules/.rush/temp/shrinkwrap-deps.json": "2accd517a97c7935184742cab8ca50b6d6d66669"
|
|
25
|
+
},
|
|
26
|
+
"arguments": "digigov lint "
|
|
27
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files": {
|
|
3
|
+
"libs/react-modules/.eslintrc.js": "5b14be51584340a99bed9aa667fa251503cbcddb",
|
|
4
|
+
"libs/react-modules/.gitignore": "53c37a16608c014b2cf0bd2d5dfcafe953cdd857",
|
|
5
|
+
"libs/react-modules/.prettierrc.js": "916426859972c08befeab8aca5b55e95ba714b96",
|
|
6
|
+
"libs/react-modules/CHANGELOG.md": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
|
|
7
|
+
"libs/react-modules/README.md": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
|
|
8
|
+
"libs/react-modules/package.json": "4f5a40f72a364abacd9ce3d9e1e18ed2738ba37d",
|
|
9
|
+
"libs/react-modules/playwright-ct.config.ts": "875d1718d73ee7b1b1fc087fe9c0174e42376efb",
|
|
10
|
+
"libs/react-modules/src/FilteredResults/DataTable.tsx": "bb2bb9d018e338f0734eabfc3a4ff75078c286a0",
|
|
11
|
+
"libs/react-modules/src/FilteredResults/FilterChips.tsx": "f49914a5546c5a87859afc74b576153599ac3835",
|
|
12
|
+
"libs/react-modules/src/FilteredResults/FilterFields.tsx": "b7e9d79a2ff9f49133d7008d039e6d314611ee99",
|
|
13
|
+
"libs/react-modules/src/FilteredResults/FilteredResults.stories.js": "f25a3885eda9929d30624ecb8c7705241410f90b",
|
|
14
|
+
"libs/react-modules/src/FilteredResults/__stories__/Default.tsx": "ac2aa1190ec7ff382d478c862b84cc84ff83135f",
|
|
15
|
+
"libs/react-modules/src/FilteredResults/hooks.ts": "72fdfb78fd8dbc12a6e945bfe64b04a41888ef8f",
|
|
16
|
+
"libs/react-modules/src/FilteredResults/index.test.tsx": "b8ddd24744c8b5f3d80407ce8097a6d154a007a4",
|
|
17
|
+
"libs/react-modules/src/FilteredResults/index.tsx": "ef6bcb6344900e1f4c56a5d7330c6d4ef3b07ff9",
|
|
18
|
+
"libs/react-modules/src/FilteredResults/splitted.test.tsx": "1bd71476714c667174d557d22996e0098034771a",
|
|
19
|
+
"libs/react-modules/src/ReactModules.stories.js": "5ddf932ffe928fdb1a870c5a8306ab8b41c59710",
|
|
20
|
+
"libs/react-modules/src/index.ts": "2599492312f57808882362e97bf88cc8b31c154f",
|
|
21
|
+
"libs/react-modules/src/lazy.js": "4c4e4210851b9125c4b98708852f1e92a3fb1d29",
|
|
22
|
+
"libs/react-modules/src/registry.js": "d009cca490ae5789385a1a5bb8c180bd2c52c012",
|
|
23
|
+
"libs/react-modules/tailwind.config.js": "aa853950fb806aba96ad324a77c5f2b3e8802179",
|
|
24
|
+
"libs/react-modules/tsconfig.json": "d9ce6819f20f98b2a78c09a7305cc490e762b8f7",
|
|
25
|
+
"libs/react-modules/tsconfig.production.json": "f7c42adc2447947b14ff9ef1dc952b437c02a9e7",
|
|
26
|
+
"libs/react-modules/.rush/temp/shrinkwrap-deps.json": "8a2e3fe97239f1c8a5bc675a5db74b856725e4a7"
|
|
27
|
+
},
|
|
28
|
+
"arguments": "publint dist "
|
|
29
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"../../libs/react-modules": "../../libs/react-modules:sGZOIgtkqmQerbFTm0UMM5T7AUUcerw0xI72uDpNlLk=:",
|
|
3
|
+
"/@hookform/devtools@4.2.0(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)": "Missing shrinkwrap entry!",
|
|
4
|
+
"/@playwright/experimental-ct-react@1.41.0(@types/node@18.19.0)(lightningcss@1.22.0)(terser@5.33.0)(vite@5.4.11(@types/node@18.19.0)(lightningcss@1.22.0)(sass-embedded@1.81.0)(terser@5.33.0))": "Missing shrinkwrap entry!",
|
|
5
|
+
"/@playwright/test@1.41.0": "Missing shrinkwrap entry!",
|
|
6
|
+
"/@types/node@18.19.0": "Missing shrinkwrap entry!",
|
|
7
|
+
"/@types/react-dom@18.3.0": "Missing shrinkwrap entry!",
|
|
8
|
+
"/@types/react@18.3.3": "Missing shrinkwrap entry!",
|
|
9
|
+
"/clsx@1.1.1": "Missing shrinkwrap entry!",
|
|
10
|
+
"/dompurify@3.0.6": "Missing shrinkwrap entry!",
|
|
11
|
+
"/eslint@9.16.0(jiti@1.21.6)": "Missing shrinkwrap entry!",
|
|
12
|
+
"/jimp@0.22.10(encoding@0.1.13)": "Missing shrinkwrap entry!",
|
|
13
|
+
"/prettier@3.4.2": "Missing shrinkwrap entry!",
|
|
14
|
+
"/publint@0.1.8": "Missing shrinkwrap entry!",
|
|
15
|
+
"/react-dom@18.3.1(react@18.3.1)": "Missing shrinkwrap entry!",
|
|
16
|
+
"/react-query@2.26.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1)": "Missing shrinkwrap entry!",
|
|
17
|
+
"/react@18.3.1": "Missing shrinkwrap entry!",
|
|
18
|
+
"/typescript@5.6.2": "Missing shrinkwrap entry!"
|
|
19
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/react-modules",
|
|
3
|
-
"version": "1.2.0-rc.
|
|
3
|
+
"version": "1.2.0-rc.29",
|
|
4
4
|
"description": "@digigov patterns based on ui components",
|
|
5
|
-
"main": "
|
|
6
|
-
"module": "
|
|
5
|
+
"main": "src/index.ts",
|
|
6
|
+
"module": "index.js",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@digigov/react-icons": "2.0.0-rc.
|
|
9
|
-
"@digigov/form": "2.0.0-rc.
|
|
10
|
-
"@digigov/ui": "2.0.0-rc.
|
|
8
|
+
"@digigov/react-icons": "2.0.0-rc.29",
|
|
9
|
+
"@digigov/form": "2.0.0-rc.29",
|
|
10
|
+
"@digigov/ui": "2.0.0-rc.29",
|
|
11
11
|
"dompurify": "3.0.6"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
@@ -15,9 +15,32 @@
|
|
|
15
15
|
"clsx": "1.1.1",
|
|
16
16
|
"react": ">=16.8.0 <19.0.0",
|
|
17
17
|
"react-dom": ">=16.8.0 <19.0.0",
|
|
18
|
-
"@digigov/react-core": "2.0.0-rc.
|
|
19
|
-
"@digigov/css": "2.0.0-rc.
|
|
18
|
+
"@digigov/react-core": "2.0.0-rc.29",
|
|
19
|
+
"@digigov/css": "2.0.0-rc.29"
|
|
20
20
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@digigov/cli": "2.0.0-rc.29",
|
|
23
|
+
"@digigov/cli-lint": "2.0.0-rc.29",
|
|
24
|
+
"@digigov/cli-build": "2.0.0-rc.29",
|
|
25
|
+
"@digigov/react-core": "2.0.0-rc.29",
|
|
26
|
+
"@digigov/css": "2.0.0-rc.29",
|
|
27
|
+
"typescript": "5.6.2",
|
|
28
|
+
"@types/node": "18.19.0",
|
|
29
|
+
"@types/react": "18.3.3",
|
|
30
|
+
"@types/react-dom": "18.3.0",
|
|
31
|
+
"@playwright/experimental-ct-react": "1.41.0",
|
|
32
|
+
"@playwright/test": "1.41.0",
|
|
33
|
+
"eslint": "9.16.0",
|
|
34
|
+
"prettier": "3.4.2",
|
|
35
|
+
"@hookform/devtools": "4.2.0",
|
|
36
|
+
"publint": "0.1.8",
|
|
37
|
+
"jimp": "0.22.10"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"publint": "publint dist",
|
|
41
|
+
"lint": "digigov lint",
|
|
42
|
+
"e2e": "digigov e2e",
|
|
43
|
+
"build": "digigov build --generate-registry",
|
|
44
|
+
"prepublish": "digigov build --generate-registry"
|
|
45
|
+
}
|
|
23
46
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Invoking: digigov build
|
|
2
|
+
Running /Users/dimitristsironis/grnet/digigov-sdk/tooling/cli-build/node_modules/.bin/rimraf dist
|
|
3
|
+
Running /Users/dimitristsironis/grnet/digigov-sdk/libs/react-modules/node_modules/.bin/tsc --emitDeclarationOnly --outDir dist --project /Users/dimitristsironis/grnet/digigov-sdk/libs/react-modules/tsconfig.production.json
|
|
4
|
+
Created package.json in /Users/dimitristsironis/grnet/digigov-sdk/libs/react-modules/dist/package.json
|
|
5
|
+
Copied /Users/dimitristsironis/grnet/digigov-sdk/libs/react-modules/README.md to /Users/dimitristsironis/grnet/digigov-sdk/libs/react-modules/dist/README.md
|
|
6
|
+
Copied /Users/dimitristsironis/grnet/digigov-sdk/LICENSE to /Users/dimitristsironis/grnet/digigov-sdk/libs/react-modules/dist/LICENSE
|
|
7
|
+
Copied /Users/dimitristsironis/grnet/digigov-sdk/libs/react-modules/CHANGELOG.md to /Users/dimitristsironis/grnet/digigov-sdk/libs/react-modules/dist/CHANGELOG.md
|
|
8
|
+
Copied /Users/dimitristsironis/grnet/digigov-sdk/libs/react-modules/src to /Users/dimitristsironis/grnet/digigov-sdk/libs/react-modules/dist/src
|
|
9
|
+
Skipped license for ./index.mjs
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Invoking: digigov build --generate-registry
|
|
2
|
+
LOG Running: rimraf dist
|
|
3
|
+
LOG Running: tsc --emitDeclarationOnly --outDir dist --project /Users/dimitristsironis/grnet/digigov-sdk/libs/react-modules/tsconfig.production.json
|
|
4
|
+
LOG Running: esbuild for CJS format
|
|
5
|
+
LOG Running: esbuild for ESM format
|
|
6
|
+
LOG Running: esbuild for CJS format
|
|
7
|
+
LOG Generated registry files
|
|
8
|
+
⏱️ "build" execution time: 3.980s
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Invoking: digigov lint
|
|
2
|
+
LOG Running: eslint --no-error-on-unmatched-pattern
|
|
3
|
+
|
|
4
|
+
/Users/dimitristsironis/grnet/digigov-sdk/libs/react-modules/src/FilteredResults/__stories__/Default.tsx
|
|
5
|
+
209:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
6
|
+
|
|
7
|
+
/Users/dimitristsironis/grnet/digigov-sdk/libs/react-modules/src/FilteredResults/hooks.ts
|
|
8
|
+
39:11 warning Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free @typescript-eslint/ban-ts-comment
|
|
9
|
+
67:6 warning React Hook useEffect has a missing dependency: 'search'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
10
|
+
69:9 warning The 'search' function makes the dependencies of useMemo Hook (at line 130) change on every render. To fix this, wrap the definition of 'search' in its own useCallback() Hook react-hooks/exhaustive-deps
|
|
11
|
+
|
|
12
|
+
/Users/dimitristsironis/grnet/digigov-sdk/libs/react-modules/src/FilteredResults/index.tsx
|
|
13
|
+
55:6 warning React Hook useEffect has missing dependencies: 'autoSubmit', 'form', and 'previousValues'. Either include them or remove the dependency array react-hooks/exhaustive-deps
|
|
14
|
+
160:9 warning Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free @typescript-eslint/ban-ts-comment
|
|
15
|
+
168:9 warning Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free @typescript-eslint/ban-ts-comment
|
|
16
|
+
|
|
17
|
+
✖ 7 problems (0 errors, 7 warnings)
|
|
18
|
+
|
|
19
|
+
⏱️ "lint" execution time: 1.690s
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Invoking: publint dist
|
|
2
|
+
@digigov/react-modules lint results:
|
|
3
|
+
Suggestions:
|
|
4
|
+
1. pkg.module is used to output ESM, but pkg.exports is not defined. As NodeJS doesn't read pkg.module, the ESM output may be skipped. Consider adding pkg.exports to export the ESM output. pkg.module can usually be removed alongside too. (This will be a breaking change)
|
|
5
|
+
Warnings:
|
|
6
|
+
1. /FilteredResults/DataTable/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /FilteredResults/DataTable/index.mjs
|
|
7
|
+
2. /FilteredResults/FilterFields/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /FilteredResults/FilterFields/index.mjs
|
|
8
|
+
3. /FilteredResults/FilterChips/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /FilteredResults/FilterChips/index.mjs
|
|
9
|
+
4. /FilteredResults/FilteredResults.stories/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /FilteredResults/FilteredResults.stories/index.mjs
|
|
10
|
+
5. /FilteredResults/hooks/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /FilteredResults/hooks/index.mjs
|
|
11
|
+
6. /ReactModules.stories/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /ReactModules.stories/index.mjs
|
|
12
|
+
7. /FilteredResults/__stories__/Default/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /FilteredResults/__stories__/Default/index.mjs
|
|
13
|
+
8. /index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /index.mjs
|
|
14
|
+
9. /FilteredResults/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /FilteredResults/index.mjs
|
|
15
|
+
10. /src/FilteredResults/FilteredResults.stories.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /src/FilteredResults/FilteredResults.stories.mjs
|
|
16
|
+
11. /lazy/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /lazy/index.mjs
|
|
17
|
+
12. /registry/index.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /registry/index.mjs
|
|
18
|
+
13. /src/lazy.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /src/lazy.mjs
|
|
19
|
+
14. /src/registry.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /src/registry.mjs
|
|
20
|
+
15. /src/ReactModules.stories.js is written in ESM, but is interpreted as CJS. Consider using the .mjs extension, e.g. /src/ReactModules.stories.mjs
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const SDK_DIR = path.resolve('../..');
|
|
3
|
+
|
|
4
|
+
/** @type {import('tailwindcss').Config} */
|
|
5
|
+
module.exports = {
|
|
6
|
+
content: [
|
|
7
|
+
SDK_DIR + '/libs-ui/react-core/src/**/*.{js,jsx,ts,tsx}',
|
|
8
|
+
SDK_DIR + '/libs/ui/src/**/*.{js,jsx,ts,tsx}',
|
|
9
|
+
SDK_DIR + '/libs/react-modules/src/**/*.{js,jsx,ts,tsx}',
|
|
10
|
+
SDK_DIR + '/libs/form/src/**/*.{js,jsx,ts,tsx}',
|
|
11
|
+
],
|
|
12
|
+
plugins: [
|
|
13
|
+
require(SDK_DIR + '/libs/css/index.js')({
|
|
14
|
+
customTheme: SDK_DIR + '/themes/govgr/dist/index.css',
|
|
15
|
+
}),
|
|
16
|
+
],
|
|
17
|
+
};
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "@digigov/cli-build/tsconfig.base",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "dist",
|
|
5
|
+
"types": ["node", "react"],
|
|
6
|
+
"paths": {
|
|
7
|
+
"@digigov/react-icons": ["node_modules/@digigov/react-icons/src"],
|
|
8
|
+
"@digigov/react-icons/": ["node_modules/@digigov/react-icons/src/"],
|
|
9
|
+
"@digigov/react-icons/*": ["node_modules/@digigov/react-icons/src/*"],
|
|
10
|
+
"@digigov/ui": ["node_modules/@digigov/ui/src"],
|
|
11
|
+
"@digigov/ui/": ["node_modules/@digigov/ui/src/"],
|
|
12
|
+
"@digigov/ui/*": ["node_modules/@digigov/ui/src/*"],
|
|
13
|
+
"@digigov/form": ["node_modules/@digigov/form/src"],
|
|
14
|
+
"@digigov/form/": ["node_modules/@digigov/form/src/"],
|
|
15
|
+
"@digigov/form/*": ["node_modules/@digigov/form/src/*"],
|
|
16
|
+
"@digigov/react-core": ["node_modules/@digigov/react-core/src"],
|
|
17
|
+
"@digigov/react-core/": ["node_modules/@digigov/react-core/src/"],
|
|
18
|
+
"@digigov/react-core/*": ["node_modules/@digigov/react-core/src/*"],
|
|
19
|
+
"@digigov/react-modules": ["./src"],
|
|
20
|
+
"@digigov/react-modules/": ["./src/"],
|
|
21
|
+
"@digigov/react-modules/*": ["./src/*"]
|
|
22
|
+
},
|
|
23
|
+
"baseUrl": "./"
|
|
24
|
+
},
|
|
25
|
+
"include": ["src"],
|
|
26
|
+
"exclude": ["node_modules", "dist"]
|
|
27
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "@digigov/cli-build/tsconfig.common",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"skipLibCheck": true,
|
|
5
|
+
"moduleResolution": "node",
|
|
6
|
+
"outDir": "dist",
|
|
7
|
+
"types": ["node", "react"],
|
|
8
|
+
"baseUrl": "./",
|
|
9
|
+
"paths": {
|
|
10
|
+
"@digigov/react-icons": ["node_modules/@digigov/react-icons/src"],
|
|
11
|
+
"@digigov/react-icons/": ["node_modules/@digigov/react-icons/src/"],
|
|
12
|
+
"@digigov/react-icons/*": ["node_modules/@digigov/react-icons/src/*"],
|
|
13
|
+
"@digigov/react-core": ["node_modules/@digigov/react-core/src"],
|
|
14
|
+
"@digigov/react-core/": ["node_modules/@digigov/react-core/src/"],
|
|
15
|
+
"@digigov/react-core/*": ["node_modules/@digigov/react-core/src/*"],
|
|
16
|
+
"@digigov/ui": ["node_modules/@digigov/ui/src"],
|
|
17
|
+
"@digigov/ui/": ["node_modules/@digigov/ui/src/"],
|
|
18
|
+
"@digigov/ui/*": ["node_modules/@digigov/ui/src/*"],
|
|
19
|
+
"@digigov/form": ["node_modules/@digigov/form/src"],
|
|
20
|
+
"@digigov/form/": ["node_modules/@digigov/form/src/"],
|
|
21
|
+
"@digigov/form/*": ["node_modules/@digigov/form/src/*"],
|
|
22
|
+
"@digigov/react-modules": ["./src"],
|
|
23
|
+
"@digigov/react-modules/": ["./src/"],
|
|
24
|
+
"@digigov/react-modules/*": ["./src/*"]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"include": ["src"],
|
|
28
|
+
"exclude": ["node_modules", "dist"]
|
|
29
|
+
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
Table,
|
|
4
|
-
TableBody,
|
|
5
|
-
TableContainer,
|
|
6
|
-
TableDataCell,
|
|
7
|
-
TableHead,
|
|
8
|
-
TableHeadCell,
|
|
9
|
-
TableNoDataRow,
|
|
10
|
-
TableRow
|
|
11
|
-
} from "@digigov/ui/content/Table";
|
|
12
|
-
function DataTable({ dataConfig, data }) {
|
|
13
|
-
return /* @__PURE__ */ React.createElement(TableContainer, null, /* @__PURE__ */ React.createElement(Table, null, /* @__PURE__ */ React.createElement(TableHead, null, /* @__PURE__ */ React.createElement(TableRow, null, dataConfig.map((itenConfig) => /* @__PURE__ */ React.createElement(TableHeadCell, { key: itenConfig.key }, itenConfig.title)))), /* @__PURE__ */ React.createElement(TableBody, null, data.length > 0 ? data.map((item, index) => /* @__PURE__ */ React.createElement(TableRow, { key: index }, dataConfig.map((itemConfig, idx) => /* @__PURE__ */ React.createElement(TableDataCell, { key: idx }, itemConfig.displayComponent ? itemConfig.displayComponent(item[itemConfig.key]) : item[itemConfig.key])))) : /* @__PURE__ */ React.createElement(TableNoDataRow, null, "\u0394\u03B5\u03BD \u03C5\u03C0\u03AC\u03C1\u03C7\u03BF\u03C5\u03BD \u03B1\u03C0\u03BF\u03C4\u03B5\u03BB\u03AD\u03C3\u03BC\u03B1\u03C4\u03B1"))));
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
DataTable
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=DataTable.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/FilteredResults/DataTable.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\n\nimport {\n Table,\n TableBody,\n TableContainer,\n TableDataCell,\n TableHead,\n TableHeadCell,\n TableNoDataRow,\n TableRow,\n} from '@digigov/ui/content/Table';\n\nexport function DataTable({ dataConfig, data }) {\n return (\n <TableContainer>\n <Table>\n <TableHead>\n <TableRow>\n {dataConfig.map((itenConfig) => (\n <TableHeadCell key={itenConfig.key}>\n {itenConfig.title}\n </TableHeadCell>\n ))}\n </TableRow>\n </TableHead>\n <TableBody>\n {data.length > 0 ? (\n data.map((item, index) => (\n <TableRow key={index}>\n {dataConfig.map((itemConfig, idx) => (\n <TableDataCell key={idx}>\n {itemConfig.displayComponent\n ? itemConfig.displayComponent(item[itemConfig.key])\n : item[itemConfig.key]}\n </TableDataCell>\n ))}\n </TableRow>\n ))\n ) : (\n <TableNoDataRow>\u0394\u03B5\u03BD \u03C5\u03C0\u03AC\u03C1\u03C7\u03BF\u03C5\u03BD \u03B1\u03C0\u03BF\u03C4\u03B5\u03BB\u03AD\u03C3\u03BC\u03B1\u03C4\u03B1</TableNoDataRow>\n )}\n </TableBody>\n </Table>\n </TableContainer>\n );\n}\n"],
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAElB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEA,SAAS,UAAU,EAAE,YAAY,KAAK,GAAG;AAC9C,SACE,oCAAC,sBACC,oCAAC,aACC,oCAAC,iBACC,oCAAC,gBACE,WAAW,IAAI,CAAC,eACf,oCAAC,iBAAc,KAAK,WAAW,OAC5B,WAAW,KACd,CACD,CACH,CACF,GACA,oCAAC,iBACE,KAAK,SAAS,IACb,KAAK,IAAI,CAAC,MAAM,UACd,oCAAC,YAAS,KAAK,SACZ,WAAW,IAAI,CAAC,YAAY,QAC3B,oCAAC,iBAAc,KAAK,OACjB,WAAW,mBACR,WAAW,iBAAiB,KAAK,WAAW,GAAG,CAAC,IAChD,KAAK,WAAW,GAAG,CACzB,CACD,CACH,CACD,IAED,oCAAC,sBAAe,8IAAyB,CAE7C,CACF,CACF;AAEJ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { useFormContext, useFormValues } from "@digigov/form/FormBuilder";
|
|
3
|
-
import { getOptionLabelForSelectValue } from "@digigov/react-modules/FilteredResults/hooks";
|
|
4
|
-
import {
|
|
5
|
-
FilterSelectedHeading,
|
|
6
|
-
FilterSelectedSection
|
|
7
|
-
} from "@digigov/ui/app/FilterContainer";
|
|
8
|
-
import { Chip, ChipContainer } from "@digigov/ui/content/Chip";
|
|
9
|
-
import { Button } from "@digigov/ui/form/Button";
|
|
10
|
-
const FilterChips = () => {
|
|
11
|
-
const { fieldsMap, reset, resetField, submit } = useFormContext();
|
|
12
|
-
const values = useFormValues();
|
|
13
|
-
const enabledFilters = Object.keys(values).filter((v) => values[v]);
|
|
14
|
-
if (enabledFilters.length === 0) return null;
|
|
15
|
-
return /* @__PURE__ */ React.createElement(FilterSelectedSection, { m: 0, mb: 6 }, /* @__PURE__ */ React.createElement(FilterSelectedHeading, { mb: 0 }, /* @__PURE__ */ React.createElement(ChipContainer, null, enabledFilters.map((filterKey) => {
|
|
16
|
-
return /* @__PURE__ */ React.createElement(
|
|
17
|
-
Chip,
|
|
18
|
-
{
|
|
19
|
-
mb: 0,
|
|
20
|
-
key: filterKey,
|
|
21
|
-
onDelete: () => {
|
|
22
|
-
resetField(filterKey);
|
|
23
|
-
submit();
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
/* @__PURE__ */ React.createElement("b", null, fieldsMap[filterKey].label?.primary),
|
|
27
|
-
" ",
|
|
28
|
-
": ",
|
|
29
|
-
getOptionLabelForSelectValue(
|
|
30
|
-
fieldsMap[filterKey],
|
|
31
|
-
values[filterKey]
|
|
32
|
-
)
|
|
33
|
-
);
|
|
34
|
-
})), /* @__PURE__ */ React.createElement(
|
|
35
|
-
Button,
|
|
36
|
-
{
|
|
37
|
-
onClick: (e) => {
|
|
38
|
-
e.preventDefault();
|
|
39
|
-
reset();
|
|
40
|
-
submit();
|
|
41
|
-
},
|
|
42
|
-
variant: "link"
|
|
43
|
-
},
|
|
44
|
-
"\u0395\u03C0\u03B1\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC \u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03CE\u03BD"
|
|
45
|
-
)));
|
|
46
|
-
};
|
|
47
|
-
var FilterChips_default = FilterChips;
|
|
48
|
-
export {
|
|
49
|
-
FilterChips,
|
|
50
|
-
FilterChips_default as default
|
|
51
|
-
};
|
|
52
|
-
//# sourceMappingURL=FilterChips.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/FilteredResults/FilterChips.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { useFormContext, useFormValues } from '@digigov/form/FormBuilder';\nimport { getOptionLabelForSelectValue } from '@digigov/react-modules/FilteredResults/hooks';\nimport {\n FilterSelectedHeading,\n FilterSelectedSection,\n} from '@digigov/ui/app/FilterContainer';\nimport { Chip, ChipContainer } from '@digigov/ui/content/Chip';\nimport { Button } from '@digigov/ui/form/Button';\n\nexport const FilterChips = () => {\n const { fieldsMap, reset, resetField, submit } = useFormContext();\n const values = useFormValues();\n const enabledFilters = Object.keys(values).filter((v) => values[v]);\n if (enabledFilters.length === 0) return null;\n return (\n <FilterSelectedSection m={0} mb={6}>\n <FilterSelectedHeading mb={0}>\n <ChipContainer>\n {enabledFilters.map((filterKey) => {\n return (\n <Chip\n mb={0}\n key={filterKey}\n onDelete={() => {\n resetField(filterKey);\n submit();\n }}\n >\n <b>{fieldsMap[filterKey].label?.primary}</b> {': '}\n {getOptionLabelForSelectValue(\n fieldsMap[filterKey],\n values[filterKey]\n )}\n </Chip>\n );\n })}\n </ChipContainer>\n <Button\n onClick={(e) => {\n e.preventDefault();\n reset();\n submit();\n }}\n variant=\"link\"\n >\n \u0395\u03C0\u03B1\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC \u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03CE\u03BD\n </Button>\n </FilterSelectedHeading>\n </FilterSelectedSection>\n );\n};\n\nexport default FilterChips;\n"],
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,SAAS,gBAAgB,qBAAqB;AAC9C,SAAS,oCAAoC;AAC7C;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP,SAAS,MAAM,qBAAqB;AACpC,SAAS,cAAc;AAEhB,MAAM,cAAc,MAAM;AAC/B,QAAM,EAAE,WAAW,OAAO,YAAY,OAAO,IAAI,eAAe;AAChE,QAAM,SAAS,cAAc;AAC7B,QAAM,iBAAiB,OAAO,KAAK,MAAM,EAAE,OAAO,CAAC,MAAM,OAAO,CAAC,CAAC;AAClE,MAAI,eAAe,WAAW,EAAG,QAAO;AACxC,SACE,oCAAC,yBAAsB,GAAG,GAAG,IAAI,KAC/B,oCAAC,yBAAsB,IAAI,KACzB,oCAAC,qBACE,eAAe,IAAI,CAAC,cAAc;AACjC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,IAAI;AAAA,QACJ,KAAK;AAAA,QACL,UAAU,MAAM;AACd,qBAAW,SAAS;AACpB,iBAAO;AAAA,QACT;AAAA;AAAA,MAEA,oCAAC,WAAG,UAAU,SAAS,EAAE,OAAO,OAAQ;AAAA,MAAI;AAAA,MAAE;AAAA,MAC7C;AAAA,QACC,UAAU,SAAS;AAAA,QACnB,OAAO,SAAS;AAAA,MAClB;AAAA,IACF;AAAA,EAEJ,CAAC,CACH,GACA;AAAA,IAAC;AAAA;AAAA,MACC,SAAS,CAAC,MAAM;AACd,UAAE,eAAe;AACjB,cAAM;AACN,eAAO;AAAA,MACT;AAAA,MACA,SAAQ;AAAA;AAAA,IACT;AAAA,EAED,CACF,CACF;AAEJ;AAEA,IAAO,sBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import Field from "@digigov/form/Field";
|
|
3
|
-
import { FilterOptionsSection } from "@digigov/ui/app/FilterContainer";
|
|
4
|
-
import { Button } from "@digigov/ui/form/Button";
|
|
5
|
-
const FilterFields = ({ fields, horizontal }) => {
|
|
6
|
-
return /* @__PURE__ */ React.createElement(FilterOptionsSection, { horizontal }, fields.map((field) => /* @__PURE__ */ React.createElement(Field, { key: field.key, name: field.key })), /* @__PURE__ */ React.createElement(Button, { type: "submit" }, "\u0391\u03BD\u03B1\u03B6\u03AE\u03C4\u03B7\u03C3\u03B7"));
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
FilterFields
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=FilterFields.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/FilteredResults/FilterFields.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport Field from '@digigov/form/Field';\nimport { FilterOptionsSection } from '@digigov/ui/app/FilterContainer';\nimport { Button } from '@digigov/ui/form/Button';\n\nexport const FilterFields = ({ fields, horizontal }) => {\n return (\n <FilterOptionsSection horizontal={horizontal}>\n {fields.map((field) => (\n <Field key={field.key} name={field.key} />\n ))}\n <Button type=\"submit\">\u0391\u03BD\u03B1\u03B6\u03AE\u03C4\u03B7\u03C3\u03B7</Button>\n </FilterOptionsSection>\n );\n};\n"],
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,WAAW;AAClB,SAAS,4BAA4B;AACrC,SAAS,cAAc;AAEhB,MAAM,eAAe,CAAC,EAAE,QAAQ,WAAW,MAAM;AACtD,SACE,oCAAC,wBAAqB,cACnB,OAAO,IAAI,CAAC,UACX,oCAAC,SAAM,KAAK,MAAM,KAAK,MAAM,MAAM,KAAK,CACzC,GACD,oCAAC,UAAO,MAAK,YAAS,wDAAS,CACjC;AAEJ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { FilteredResults as component };
|
|
4
|
-
export let displayName: string;
|
|
5
|
-
}
|
|
6
|
-
export default _default;
|
|
7
|
-
export { Default } from "@digigov/react-modules/FilteredResults/__stories__/Default";
|
|
8
|
-
import FilteredResults from '@digigov/react-modules/FilteredResults';
|