@wemake4u/form-player 0.0.0-stage → 2.0.1
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/LICENSE +21 -0
- package/README.md +53 -3
- package/THIRD_PARTY_LICENSES.txt +67 -0
- package/fesm2022/wemake4u-form-player.mjs +14659 -0
- package/fesm2022/wemake4u-form-player.mjs.map +1 -0
- package/package.json +42 -3
- package/types/wemake4u-form-player.d.ts +1719 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ivan Senatore, Wemake Informatica srl
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,53 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
This
|
|
1
|
+
# form-player
|
|
2
|
+
|
|
3
|
+
This library provides a robust implementation of forms using the Sirio Angular Library. It simplifies the creation, management, and validation of complex forms, ensuring a consistent user experience and seamless integration with the Sirio ecosystem.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Dynamic Form Generation: Easily generate forms based on predefined configurations.
|
|
8
|
+
|
|
9
|
+
- Validation Support: Built-in support for custom and standard validation rules.
|
|
10
|
+
|
|
11
|
+
- Responsive Design: Fully responsive forms compatible with various screen sizes.
|
|
12
|
+
|
|
13
|
+
- Integration with Sirio WebKit: Leverages the capabilities of the Sirio Webkit framework to ensure smooth performance and integration.
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
Run `npm install @wemake4u/form-player` to install package.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## Scroll on form change
|
|
21
|
+
|
|
22
|
+
When the active form changes (next/previous buttons, side menu, stepper, `goTo`, browser back/forward),
|
|
23
|
+
`app-dynamic-form` scrolls according to the `scrollOnNavigate` input:
|
|
24
|
+
|
|
25
|
+
| Value | Scroll target |
|
|
26
|
+
| --- | --- |
|
|
27
|
+
| `content` (default) | start of the form content (title and fields) |
|
|
28
|
+
| `form` | start of the whole form player (progress stepper included) |
|
|
29
|
+
| `page` | top of the page (nested scroll containers are not moved) |
|
|
30
|
+
| `none` | no scroll |
|
|
31
|
+
|
|
32
|
+
`content` and `form` scroll only when the start is out of view, and also work inside scroll containers (dashboard
|
|
33
|
+
content, dialogs). With a fixed page header, set the CSS variable `--df-scroll-offset` to its height. The focus on the
|
|
34
|
+
first field does not scroll the view again.
|
|
35
|
+
|
|
36
|
+
```html
|
|
37
|
+
<app-dynamic-form [schema]="schema" scrollOnNavigate="page" />
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Third-Party Licenses
|
|
41
|
+
|
|
42
|
+
This project includes the following third-party components:
|
|
43
|
+
|
|
44
|
+
Runtime dependencies (MIT License)
|
|
45
|
+
|
|
46
|
+
tslib — MIT
|
|
47
|
+
feelers — MIT
|
|
48
|
+
feelin — MIT
|
|
49
|
+
marked — MIT
|
|
50
|
+
mime-db — MIT
|
|
51
|
+
sanitize-html — MIT
|
|
52
|
+
|
|
53
|
+
All listed packages are licensed under MIT License and impose no additional restrictions.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
Third-Party Licenses for @wemake4u/form-player-se
|
|
2
|
+
=================================================
|
|
3
|
+
|
|
4
|
+
This project includes third-party software components licensed under the
|
|
5
|
+
terms described below.
|
|
6
|
+
|
|
7
|
+
All dependencies listed here are used at runtime and are required by the
|
|
8
|
+
functionality of this package. Unless otherwise stated, each component is
|
|
9
|
+
licensed under the MIT License, which permits use, modification,
|
|
10
|
+
distribution and private/commercial usage.
|
|
11
|
+
|
|
12
|
+
-------------------------------------------------------
|
|
13
|
+
tslib — MIT License
|
|
14
|
+
© Microsoft
|
|
15
|
+
https://github.com/Microsoft/tslib/blob/master/LICENSE.txt
|
|
16
|
+
-------------------------------------------------------
|
|
17
|
+
|
|
18
|
+
-------------------------------------------------------
|
|
19
|
+
@types/mime-db — MIT License
|
|
20
|
+
© DefinitelyTyped contributors
|
|
21
|
+
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/LICENSE
|
|
22
|
+
-------------------------------------------------------
|
|
23
|
+
|
|
24
|
+
-------------------------------------------------------
|
|
25
|
+
@types/sanitize-html — MIT License
|
|
26
|
+
© DefinitelyTyped contributors
|
|
27
|
+
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/LICENSE
|
|
28
|
+
-------------------------------------------------------
|
|
29
|
+
|
|
30
|
+
-------------------------------------------------------
|
|
31
|
+
feelers — MIT License
|
|
32
|
+
© Contributors
|
|
33
|
+
https://github.com/bpmn-io/feelers/blob/master/LICENSE
|
|
34
|
+
-------------------------------------------------------
|
|
35
|
+
|
|
36
|
+
-------------------------------------------------------
|
|
37
|
+
feelin — MIT License
|
|
38
|
+
© Camunda Services GmbH
|
|
39
|
+
https://github.com/camunda/feelin/blob/master/LICENSE
|
|
40
|
+
-------------------------------------------------------
|
|
41
|
+
|
|
42
|
+
-------------------------------------------------------
|
|
43
|
+
marked — MIT License
|
|
44
|
+
© MarkedJS and contributors
|
|
45
|
+
https://github.com/markedjs/marked/blob/master/LICENSE.md
|
|
46
|
+
-------------------------------------------------------
|
|
47
|
+
|
|
48
|
+
-------------------------------------------------------
|
|
49
|
+
mime-db — MIT License
|
|
50
|
+
© Jonathan Ong and Contributors
|
|
51
|
+
https://github.com/jshttp/mime-db/blob/master/LICENSE
|
|
52
|
+
-------------------------------------------------------
|
|
53
|
+
|
|
54
|
+
-------------------------------------------------------
|
|
55
|
+
sanitize-html — MIT License
|
|
56
|
+
© Apostrophe Technologies, Inc.
|
|
57
|
+
https://github.com/apostrophecms/sanitize-html/blob/main/LICENSE
|
|
58
|
+
-------------------------------------------------------
|
|
59
|
+
|
|
60
|
+
-------------------------------------------------------
|
|
61
|
+
date-fns — MIT License
|
|
62
|
+
© 2021 Sasha Koss and Lesha Koss
|
|
63
|
+
https://kossnocorp.mit-license.org/
|
|
64
|
+
-------------------------------------------------------
|
|
65
|
+
|
|
66
|
+
End of Third-Party License Report
|
|
67
|
+
=================================================
|