-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: added initial validator boilerplate & utilities & tests * feat: implmeneted validate method & tests * fix: test * feat: implemented conditional validation rule apply & custom validators * feat: implemented useValidate & tests * feat: finalized validator component * feat: added story for validator * feat: added renderer & tests & dynamic form boilerplate * feat: added rule engine * feat: implemented dynamic form context logic & tests & types * feat: finalized core form logic & finalized field list & tests * fix: tests * fix: build * feat: added input boilerplates(unfinished) & field layout & tests * feat: added fields (wip) * fix: fixed build & tests * feat: implemented events & fixed tests * feat: implemented fields extend & removed elementsMap * feat: added select field & fixed types & tests * feat: added initial demo & bugfixes & updated tests * feat: added phone field & tests & updated storybook * feat: added file field & added tests & minor fixes * feat: added clear value on input hide & updates tests * feat: fixed onMount & onUnmount events & updated tests * feat: added configurable file upload * feat: added task runner & tests * feat: implemented file upload on submit & tests * feat: added more form stories & tests update * feat: added custom validators & custom inputs examples * feat: added radio field & tests * feat: added tags input & tests & config fixes * feat: added v2 adapters for custom fields & updated exports from ui & added tests (#2913) * feat: added field descriptions & updated tests (#2914) * feat: reworked ui elements for v2 & added tests (#2930) * feat: reworked ui elements for v2 & added tests * feat: added validate on blur * feat: added initial rendering of UI V2 * feat: updated exports * feat: implemented events provider * feat: updated exports * fix: listeners reinitialize * feat: implemented document field * feat: added document validator * fix: fixed types * fix: fixed tests & typo * fix: fixed touched issue with non field definitions in form * fix: updated validation params & cleanup * fix: better violation names on statistics page (BAL-3294) (#2932) * feat: better violation names on statistics page * fix: CodeRabbit comments --------- Co-authored-by: Alon Peretz <[email protected]> * fix: renamed property in applyWhen rule * feat: added url format & refactor * Bal 3242 (#2939) * feat: fixed types & exports & verbose logging & submit event * feat: implemented plugins runner * feat: updated types & minor adjustments to format string * fix: document validator fixes & updated metadata * feat: added submit button lock while tasks running * feat: added metadata to useField & useElement & added missing format validator * feat: added ref to form & fixed types & tests * fix: fixed plugins context update & added plugin listeners * feat: updated en translations * fix: fixed kyb tests * Bal 2977 (#2942) * fix: css fixes & rule engine fixes * feat: implemented sync * feat: added classnames to row & column * fix: submit button styles * Bal 3330 (#2949) * feat: added formatting for rules & updated tests * feat: added transformer plugin * fix: lock file * feat: implemented priority fields & bug fixes & tests (#2950) * fix: fixed build * feat: implemented default data insertion on field list (#2951) * feat: added support of html tags in descriptions * feat: added useControl hook * fix: reworked revision * fix: fixed renderer stories * Bal 3356 (WIP) (#2967) * feat: implemented document field in ui package * feat: finalized documentfield * fix: fixed build * fix: cleanup * fix: fixed fieldlist * feat: updated tests * feat: added clear value for edge cases as documents * fix: fixed tests & plugins * fix: fixed fields extraction from definition * fix: fixed infinite call of useRules due to default array value * feat: enabled sync rules execution for controls disable and elements hiding * feat: reworked cleanup * feat: updated tests * fix: added handling of dynamic indexes for useRquired & bugfixes * fix: fixed types * feat: added version to ui definition & added version resolving to kyb * feat: reorganize * feat: removed v1 * fix: post merge fixes & tests & reorganized folders * fix: fixed state step tracking on submit * fix: state sync fix * fix: fixed tests * feat: ui bump * fix: fixed bug where dynamic indexes was not resolved in validation * fix: bugfixes * fix: cleanup --------- Co-authored-by: Alon Peretz <[email protected]> Co-authored-by: Sasha <[email protected]>
- Loading branch information
1 parent
4121a89
commit d6f7267
Showing
529 changed files
with
22,009 additions
and
489 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
apps/backoffice-v2/vite.config.ts.timestamp-1736868814935-a07a5d5511738.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// vite.config.ts | ||
import react from 'file:///Users/ilyarudnev/Documents/Backend/ballerine/node_modules/.pnpm/@[email protected][email protected]/node_modules/@vitejs/plugin-react-swc/index.mjs'; | ||
import { defineConfig } from 'file:///Users/ilyarudnev/Documents/Backend/ballerine/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vitest/dist/config.js'; | ||
import terminal from 'file:///Users/ilyarudnev/Documents/Backend/ballerine/node_modules/.pnpm/[email protected][email protected]/node_modules/vite-plugin-terminal/dist/index.mjs'; | ||
import tsconfigPaths from 'file:///Users/ilyarudnev/Documents/Backend/ballerine/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/vite-tsconfig-paths/dist/index.js'; | ||
import topLevelAwait from 'file:///Users/ilyarudnev/Documents/Backend/ballerine/node_modules/.pnpm/[email protected][email protected]/node_modules/vite-plugin-top-level-await/exports/import.mjs'; | ||
var vite_config_default = defineConfig(configEnv => { | ||
const isDevelopment = configEnv.mode === 'development'; | ||
return { | ||
server: { | ||
open: true, | ||
host: true, | ||
port: 5137, | ||
// port: 443, | ||
// https: true, | ||
}, | ||
preview: { | ||
port: 5137, | ||
}, | ||
plugins: [ | ||
topLevelAwait({ | ||
promiseExportName: '__tla', | ||
promiseImportName: i => `__tla_${i}`, | ||
}), | ||
terminal({ | ||
output: ['console', 'terminal'], | ||
strip: false, | ||
}), | ||
react(), | ||
tsconfigPaths(), | ||
// mkcert(), | ||
], | ||
css: { | ||
modules: { | ||
generateScopedName: isDevelopment ? '[name]__[local]__[hash:base64:5]' : '[hash:base64:5]', | ||
}, | ||
}, | ||
test: { | ||
exclude: ['e2e', 'node_modules'], | ||
environment: 'jsdom', | ||
setupFiles: ['./src/tests-setup.ts'], | ||
}, | ||
build: { | ||
sourcemap: true, | ||
}, | ||
}; | ||
}); | ||
export { vite_config_default as default }; | ||
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvVXNlcnMvaWx5YXJ1ZG5ldi9Eb2N1bWVudHMvQmFja2VuZC9iYWxsZXJpbmUvYXBwcy9iYWNrb2ZmaWNlLXY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QUFBLE1BQ04sTUFBTTtBQUFBLE1BQ04sTUFBTTtBQUFBLE1BQ04sTUFBTTtBQUFBO0FBQUE7QUFBQSxJQUdSO0FBQUEsSUFDQSxTQUFTO0FBQUEsTUFDUCxNQUFNO0FBQUEsSUFDUjtBQUFBLElBQ0EsU0FBUztBQUFBLE1BQ1AsY0FBYztBQUFBLFFBQ1osbUJBQW1CO0FBQUEsUUFDbkIsbUJBQW1CLE9BQUssU0FBUyxDQUFDO0FBQUEsTUFDcEMsQ0FBQztBQUFBLE1BQ0QsU0FBUztBQUFBLFFBQ1AsUUFBUSxDQUFDLFdBQVcsVUFBVTtBQUFBLFFBQzlCLE9BQU87QUFBQSxNQUNULENBQUM7QUFBQSxNQUNELE1BQU07QUFBQSxNQUNOLGNBQWM7QUFBQTtBQUFBLElBRWhCO0FBQUEsSUFDQSxLQUFLO0FBQUEsTUFDSCxTQUFTO0FBQUEsUUFDUCxvQkFBb0IsZ0JBQWdCLHFDQUFxQztBQUFBLE1BQzNFO0FBQUEsSUFDRjtBQUFBLElBQ0EsTUFBTTtBQUFBLE1BQ0osU0FBUyxDQUFDLE9BQU8sY0FBYztBQUFBLE1BQy9CLGFBQWE7QUFBQSxNQUNiLFlBQVksQ0FBQyxzQkFBc0I7QUFBQSxJQUNyQztBQUFBLElBQ0EsT0FBTztBQUFBLE1BQ0wsV0FBVztBQUFBLElBQ2I7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apps/kyb-app/src/common/providers/DependenciesProvider/DependenciesProvider.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
apps/kyb-app/src/components/organisms/DynamicUI/DynamicUI.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
apps/kyb-app/src/components/organisms/DynamicUI/Page/hooks/usePageErrors/usePageErrors.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
...r/elements/JSONForm/components/DocumentField/helpers/deserialize-document-id.unit.test.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...elpers/serialize-document-id.unit.test.ts → ...eld/helpers/serialize-document-id.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
.../components/organisms/UIRenderer/elements/JSONForm/components/Multiselect/Multiselect.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
//@ts-nocheck | ||
import { UIElement } from '@/domains/collection-flow'; | ||
import { | ||
Chip, | ||
|
5 changes: 4 additions & 1 deletion
5
...app/src/components/organisms/UIRenderer/elements/JSONForm/helpers/findDefinitionByName.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
apps/kyb-app/src/components/organisms/UIRenderer/elements/JSONForm/json-form.fields.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.