@unicef-polymer/etools-form-builder 3.2.2 → 3.2.4
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 +674 -674
- package/README.md +1 -1
- package/dist/form-attachments-popup/form-attachments-popup.js +135 -135
- package/dist/form-fields/abstract-field-base.class.js +100 -100
- package/dist/form-fields/field-renderer-component.js +198 -166
- package/dist/form-fields/index.d.ts +2 -0
- package/dist/form-fields/index.js +2 -0
- package/dist/form-fields/repeatable-fields/repeatable-attachment-field.js +111 -111
- package/dist/form-fields/repeatable-fields/repeatable-base-field.js +22 -22
- package/dist/form-fields/repeatable-fields/repeatable-choice-field.d.ts +15 -0
- package/dist/form-fields/repeatable-fields/repeatable-choice-field.js +123 -0
- package/dist/form-fields/repeatable-fields/repeatable-number-field.js +19 -19
- package/dist/form-fields/repeatable-fields/repeatable-scale-field.js +57 -57
- package/dist/form-fields/repeatable-fields/repeatable-text-field.js +19 -19
- package/dist/form-fields/single-fields/attachment-field.js +13 -13
- package/dist/form-fields/single-fields/boolean-field.js +16 -16
- package/dist/form-fields/single-fields/choice-field.d.ts +17 -0
- package/dist/form-fields/single-fields/choice-field.js +121 -0
- package/dist/form-fields/single-fields/number-field.js +20 -20
- package/dist/form-fields/single-fields/scale-field.js +58 -58
- package/dist/form-fields/single-fields/text-field.js +30 -30
- package/dist/form-groups/form-abstract-group.d.ts +2 -1
- package/dist/form-groups/form-abstract-group.js +130 -129
- package/dist/form-groups/form-card.js +30 -30
- package/dist/form-groups/form-collapsed-card.js +34 -34
- package/dist/lib/additional-components/confirmation-dialog.js +20 -20
- package/dist/lib/additional-components/etools-fb-card.js +144 -144
- package/dist/lib/styles/attachments.styles.js +61 -61
- package/dist/lib/styles/card-styles.js +147 -147
- package/dist/lib/styles/dialog.styles.js +83 -83
- package/dist/lib/styles/elevation-styles.js +46 -46
- package/dist/lib/styles/flex-layout-classes.js +316 -316
- package/dist/lib/styles/form-builder-card.styles.js +53 -53
- package/dist/lib/styles/page-layout-styles.js +198 -198
- package/dist/lib/styles/shared-styles.js +61 -61
- package/dist/lib/types/form-builder.types.d.ts +1 -1
- package/dist/rich-editor/rich-action.js +34 -34
- package/dist/rich-editor/rich-text.d.ts +1 -0
- package/dist/rich-editor/rich-text.js +163 -65
- package/dist/rich-editor/rich-toolbar.js +125 -125
- package/dist/rich-editor/rich-viewer.js +21 -21
- package/package.json +52 -51
|
@@ -9,11 +9,11 @@ let RichViewer = class RichViewer extends LitElement {
|
|
|
9
9
|
this.value = '';
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return html `<article
|
|
13
|
-
id="content"
|
|
14
|
-
contenteditable="${this.readonly ? 'false' : 'true'}"
|
|
15
|
-
.innerHTML="${this.value}"
|
|
16
|
-
@input=${() => this.updateSelection()}
|
|
12
|
+
return html `<article
|
|
13
|
+
id="content"
|
|
14
|
+
contenteditable="${this.readonly ? 'false' : 'true'}"
|
|
15
|
+
.innerHTML="${this.value}"
|
|
16
|
+
@input=${() => this.updateSelection()}
|
|
17
17
|
></article>`;
|
|
18
18
|
}
|
|
19
19
|
updateSelection() {
|
|
@@ -58,22 +58,22 @@ let RichViewer = class RichViewer extends LitElement {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
-
RichViewer.styles = css `
|
|
62
|
-
article {
|
|
63
|
-
width: calc(100% - 24px);
|
|
64
|
-
padding: 12px;
|
|
65
|
-
height: auto;
|
|
66
|
-
min-height: 60px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
article[contenteditable='true'] {
|
|
70
|
-
border: none;
|
|
71
|
-
outline: none;
|
|
72
|
-
}
|
|
73
|
-
blockquote {
|
|
74
|
-
margin-inline-start: 8px;
|
|
75
|
-
margin-inline-end: 8px;
|
|
76
|
-
}
|
|
61
|
+
RichViewer.styles = css `
|
|
62
|
+
article {
|
|
63
|
+
width: calc(100% - 24px);
|
|
64
|
+
padding: 12px;
|
|
65
|
+
height: auto;
|
|
66
|
+
min-height: 60px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
article[contenteditable='true'] {
|
|
70
|
+
border: none;
|
|
71
|
+
outline: none;
|
|
72
|
+
}
|
|
73
|
+
blockquote {
|
|
74
|
+
margin-inline-start: 8px;
|
|
75
|
+
margin-inline-end: 8px;
|
|
76
|
+
}
|
|
77
77
|
`;
|
|
78
78
|
__decorate([
|
|
79
79
|
query('#content')
|
package/package.json
CHANGED
|
@@ -1,51 +1,52 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@unicef-polymer/etools-form-builder",
|
|
3
|
-
"description": "Etools FM Form Builder components",
|
|
4
|
-
"version": "3.2.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"contributors": [
|
|
7
|
-
"eTools Team"
|
|
8
|
-
],
|
|
9
|
-
"license": "BSD-3-Clause",
|
|
10
|
-
"repository": "https://github.com/unicef-polymer/fm-form-builder",
|
|
11
|
-
"main": "dist/index.js",
|
|
12
|
-
"types": "dist/index.d.ts",
|
|
13
|
-
"files": [
|
|
14
|
-
"dist"
|
|
15
|
-
],
|
|
16
|
-
"scripts": {
|
|
17
|
-
"tsToJs": "rm -rf dist && tsc --skipLibCheck",
|
|
18
|
-
"watch": "tsc --watch",
|
|
19
|
-
"lint": "eslint",
|
|
20
|
-
"format": "eslint --ext .ts ./src/**/*.ts --fix --ignore-path .gitignore",
|
|
21
|
-
"rd:init": "relative-deps init",
|
|
22
|
-
"rd:add": "relative-deps add",
|
|
23
|
-
"rd:reload": "relative-deps",
|
|
24
|
-
"prepublishOnly": "npm run tsToJs"
|
|
25
|
-
},
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"@shoelace-style/shoelace": "2.18.0",
|
|
28
|
-
"@types/ramda": "0.30.2",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"@eslint/
|
|
40
|
-
"@
|
|
41
|
-
"@typescript-eslint/
|
|
42
|
-
"@
|
|
43
|
-
"
|
|
44
|
-
"eslint
|
|
45
|
-
"eslint-
|
|
46
|
-
"eslint-plugin-
|
|
47
|
-
"eslint-plugin-
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@unicef-polymer/etools-form-builder",
|
|
3
|
+
"description": "Etools FM Form Builder components",
|
|
4
|
+
"version": "3.2.4",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"contributors": [
|
|
7
|
+
"eTools Team"
|
|
8
|
+
],
|
|
9
|
+
"license": "BSD-3-Clause",
|
|
10
|
+
"repository": "https://github.com/unicef-polymer/fm-form-builder",
|
|
11
|
+
"main": "dist/index.js",
|
|
12
|
+
"types": "dist/index.d.ts",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"tsToJs": "rm -rf dist && tsc --skipLibCheck",
|
|
18
|
+
"watch": "tsc --watch",
|
|
19
|
+
"lint": "eslint",
|
|
20
|
+
"format": "eslint --ext .ts ./src/**/*.ts --fix --ignore-path .gitignore",
|
|
21
|
+
"rd:init": "relative-deps init",
|
|
22
|
+
"rd:add": "relative-deps add",
|
|
23
|
+
"rd:reload": "relative-deps",
|
|
24
|
+
"prepublishOnly": "npm run tsToJs"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@shoelace-style/shoelace": "2.18.0",
|
|
28
|
+
"@types/ramda": "0.30.2",
|
|
29
|
+
"dompurify": "^3.2.6",
|
|
30
|
+
"lit": "^3.2.1",
|
|
31
|
+
"ramda": "0.30.1",
|
|
32
|
+
"relative-deps": "^1.0.7",
|
|
33
|
+
"typescript": "^4.9.5"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"@unicef-polymer/etools-unicef": ">=1.2.3"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@eslint/eslintrc": "^3.2.0",
|
|
40
|
+
"@eslint/js": "^9.16.0",
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^8.17.0",
|
|
42
|
+
"@typescript-eslint/parser": "^8.17.0",
|
|
43
|
+
"@unicef-polymer/etools-unicef": "^1.2.3",
|
|
44
|
+
"eslint": "^9.16.0",
|
|
45
|
+
"eslint-config-prettier": "^9.1.0",
|
|
46
|
+
"eslint-plugin-html": "^8.1.2",
|
|
47
|
+
"eslint-plugin-lit": "^1.15.0",
|
|
48
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
49
|
+
"globals": "^15.13.0",
|
|
50
|
+
"prettier": "^3.4.2"
|
|
51
|
+
}
|
|
52
|
+
}
|