n8n-nodes-extended-forms 0.1.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.md +19 -0
- package/README.md +52 -0
- package/dist/credentials/GithubIssuesApi.credentials.d.ts +10 -0
- package/dist/credentials/GithubIssuesApi.credentials.js +37 -0
- package/dist/credentials/GithubIssuesApi.credentials.js.map +1 -0
- package/dist/credentials/GithubIssuesOAuth2Api.credentials.d.ts +9 -0
- package/dist/credentials/GithubIssuesOAuth2Api.credentials.js +54 -0
- package/dist/credentials/GithubIssuesOAuth2Api.credentials.js.map +1 -0
- package/dist/icons/github.dark.svg +3 -0
- package/dist/icons/github.svg +3 -0
- package/dist/nodes/Form123/Form.node.d.ts +9 -0
- package/dist/nodes/Form123/Form.node.js +369 -0
- package/dist/nodes/Form123/Form.node.js.map +1 -0
- package/dist/nodes/Form123/Form.node.json +18 -0
- package/dist/nodes/Form123/FormTrigger.node.d.ts +4 -0
- package/dist/nodes/Form123/FormTrigger.node.js +28 -0
- package/dist/nodes/Form123/FormTrigger.node.js.map +1 -0
- package/dist/nodes/Form123/FormTrigger.node.json +18 -0
- package/dist/nodes/Form123/common.descriptions.d.ts +21 -0
- package/dist/nodes/Form123/common.descriptions.js +565 -0
- package/dist/nodes/Form123/common.descriptions.js.map +1 -0
- package/dist/nodes/Form123/cssVariables.d.ts +1 -0
- package/dist/nodes/Form123/cssVariables.js +74 -0
- package/dist/nodes/Form123/cssVariables.js.map +1 -0
- package/dist/nodes/Form123/form.svg +2 -0
- package/dist/nodes/Form123/interfaces.d.ts +52 -0
- package/dist/nodes/Form123/interfaces.js +5 -0
- package/dist/nodes/Form123/interfaces.js.map +1 -0
- package/dist/nodes/Form123/templates/form-trigger.handlebars +1496 -0
- package/dist/nodes/Form123/utils/descriptions.d.ts +2 -0
- package/dist/nodes/Form123/utils/descriptions.js +11 -0
- package/dist/nodes/Form123/utils/descriptions.js.map +1 -0
- package/dist/nodes/Form123/utils/formCompletionUtils.d.ts +8 -0
- package/dist/nodes/Form123/utils/formCompletionUtils.js +84 -0
- package/dist/nodes/Form123/utils/formCompletionUtils.js.map +1 -0
- package/dist/nodes/Form123/utils/formNodeUtils.d.ts +4 -0
- package/dist/nodes/Form123/utils/formNodeUtils.js +74 -0
- package/dist/nodes/Form123/utils/formNodeUtils.js.map +1 -0
- package/dist/nodes/Form123/utils/templateRenderer.d.ts +1 -0
- package/dist/nodes/Form123/utils/templateRenderer.js +69 -0
- package/dist/nodes/Form123/utils/templateRenderer.js.map +1 -0
- package/dist/nodes/Form123/utils/utilities.d.ts +6 -0
- package/dist/nodes/Form123/utils/utilities.js +47 -0
- package/dist/nodes/Form123/utils/utilities.js.map +1 -0
- package/dist/nodes/Form123/utils/utils.d.ts +76 -0
- package/dist/nodes/Form123/utils/utils.js +550 -0
- package/dist/nodes/Form123/utils/utils.js.map +1 -0
- package/dist/nodes/Form123/utils/waitUtils.d.ts +3 -0
- package/dist/nodes/Form123/utils/waitUtils.js +66 -0
- package/dist/nodes/Form123/utils/waitUtils.js.map +1 -0
- package/dist/nodes/Form123/v1/FormTriggerV1.node.d.ts +16 -0
- package/dist/nodes/Form123/v1/FormTriggerV1.node.js +83 -0
- package/dist/nodes/Form123/v1/FormTriggerV1.node.js.map +1 -0
- package/dist/nodes/Form123/v2/FormTriggerV2.node.d.ts +16 -0
- package/dist/nodes/Form123/v2/FormTriggerV2.node.js +194 -0
- package/dist/nodes/Form123/v2/FormTriggerV2.node.js.map +1 -0
- package/dist/package.json +61 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cssVariables = void 0;
|
|
4
|
+
exports.cssVariables = `
|
|
5
|
+
:root {
|
|
6
|
+
--font-family: 'Open Sans', sans-serif;
|
|
7
|
+
--font-weight-normal: 400;
|
|
8
|
+
--font-weight-bold: 600;
|
|
9
|
+
--font-size-body: 12px;
|
|
10
|
+
--font-size-label: 14px;
|
|
11
|
+
--font-size-test-notice: 12px;
|
|
12
|
+
--font-size-input: 14px;
|
|
13
|
+
--font-size-header: 20px;
|
|
14
|
+
--font-size-paragraph: 14px;
|
|
15
|
+
--font-size-link: 12px;
|
|
16
|
+
--font-size-error: 12px;
|
|
17
|
+
--font-size-html-h1: 28px;
|
|
18
|
+
--font-size-html-h2: 20px;
|
|
19
|
+
--font-size-html-h3: 16px;
|
|
20
|
+
--font-size-html-h4: 14px;
|
|
21
|
+
--font-size-html-h5: 12px;
|
|
22
|
+
--font-size-html-h6: 10px;
|
|
23
|
+
--font-size-subheader: 14px;
|
|
24
|
+
|
|
25
|
+
/* Colors */
|
|
26
|
+
--color-background: #fbfcfe;
|
|
27
|
+
--color-test-notice-text: #e6a23d;
|
|
28
|
+
--color-test-notice-bg: #fefaf6;
|
|
29
|
+
--color-test-notice-border: #f6dcb7;
|
|
30
|
+
--color-card-bg: #ffffff;
|
|
31
|
+
--color-card-border: #dbdfe7;
|
|
32
|
+
--color-card-shadow: rgba(99, 77, 255, 0.06);
|
|
33
|
+
--color-link: #7e8186;
|
|
34
|
+
--color-header: #525356;
|
|
35
|
+
--color-label: #555555;
|
|
36
|
+
--color-input-border: #dbdfe7;
|
|
37
|
+
--color-input-text: #71747A;
|
|
38
|
+
--color-focus-border: rgb(90, 76, 194);
|
|
39
|
+
--color-submit-btn-bg: #ff6d5a;
|
|
40
|
+
--color-submit-btn-text: #ffffff;
|
|
41
|
+
--color-error: #ea1f30;
|
|
42
|
+
--color-required: #ff6d5a;
|
|
43
|
+
--color-clear-button-bg: #7e8186;
|
|
44
|
+
--color-html-text: #555;
|
|
45
|
+
--color-html-link: #ff6d5a;
|
|
46
|
+
--color-header-subtext: #7e8186;
|
|
47
|
+
|
|
48
|
+
/* Border Radii */
|
|
49
|
+
--border-radius-card: 8px;
|
|
50
|
+
--border-radius-input: 6px;
|
|
51
|
+
--border-radius-clear-btn: 50%;
|
|
52
|
+
--card-border-radius: 8px;
|
|
53
|
+
|
|
54
|
+
/* Spacing */
|
|
55
|
+
--padding-container-top: 24px;
|
|
56
|
+
--padding-card: 24px;
|
|
57
|
+
--padding-test-notice-vertical: 12px;
|
|
58
|
+
--padding-test-notice-horizontal: 24px;
|
|
59
|
+
--margin-bottom-card: 16px;
|
|
60
|
+
--padding-form-input: 12px;
|
|
61
|
+
--card-padding: 24px;
|
|
62
|
+
--card-margin-bottom: 16px;
|
|
63
|
+
|
|
64
|
+
/* Dimensions */
|
|
65
|
+
--container-width: 448px;
|
|
66
|
+
--submit-btn-height: 48px;
|
|
67
|
+
--checkbox-size: 18px;
|
|
68
|
+
|
|
69
|
+
/* Others */
|
|
70
|
+
--box-shadow-card: 0px 4px 16px 0px var(--color-card-shadow);
|
|
71
|
+
--opacity-placeholder: 0.5;
|
|
72
|
+
}
|
|
73
|
+
`;
|
|
74
|
+
//# sourceMappingURL=cssVariables.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cssVariables.js","sourceRoot":"","sources":["../../../nodes/Form123/cssVariables.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqE3B,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="46" height="40" fill="none"><path fill="#FFC107" fill-rule="evenodd" d="M34.978 37.732a1.56 1.56 0 0 1-1.562 1.563H6.26a1.56 1.56 0 0 1-1.563-1.563V9.607c0-.405.157-.794.438-1.086l6.304-6.531v5.344H8.213a1.172 1.172 0 1 0 0 2.343h4.43a1.17 1.17 0 0 0 1.171-1.171V.232h19.602a1.56 1.56 0 0 1 1.562 1.563v10.327l-2.86 2.86-8.252 8.276a413.006 413.006 0 0 1-1.654 1.662l-.337.337a2 2 0 0 0-.557 1.08L20.3 31.922c-.108.638-.215 1.079.211 1.418.403.32.9.174 1.54.066l5.408-.928a2 2 0 0 0 1.08-.556l6.44-6.429zm-24.03-21.265a1.18 1.18 0 0 0 1.171 1.172h13.163a1.172 1.172 0 1 0 0-2.344H12.119a1.17 1.17 0 0 0-1.172 1.172m7.294 14.766a1.17 1.17 0 0 0-1.172-1.172H12.12a1.172 1.172 0 1 0 0 2.343h4.951a1.17 1.17 0 0 0 1.172-1.172m.86-7.391a1.17 1.17 0 0 0-1.172-1.172h-5.811a1.172 1.172 0 1 0 0 2.343h5.81a1.164 1.164 0 0 0 1.173-1.171" clip-rule="evenodd"/><path fill="#FFC107" d="m33.532 16.397 4.289-4.289 3.758 3.71 1.617-1.616 2.258 2.257c.218.218.34.513.343.82-.002.311-.125.608-.344.83l-6.804 6.796a1.13 1.13 0 0 1-.828.343 1.15 1.15 0 0 1-.828-.343 1.18 1.18 0 0 1 0-1.657l5.976-5.968-1.312-1.313-1.383 1.414-13.149 13.125-4.617.782.782-4.617.336-.337 2.562 2.555a1.1 1.1 0 0 0 .828.344c.312.005.612-.12.828-.344a1.18 1.18 0 0 0 0-1.656l-2.562-2.562zM44.736 12.24c0 .414-.163.81-.454 1.102l-.922.914-3.852-3.828.93-.93a1.563 1.563 0 0 1 2.203 0l1.64 1.641c.291.293.455.69.455 1.102"/></svg>
|
|
2
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { GenericValue } from 'n8n-workflow';
|
|
2
|
+
export type FormField = {
|
|
3
|
+
id: string;
|
|
4
|
+
errorId: string;
|
|
5
|
+
label: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
inputRequired: 'form-required' | '';
|
|
8
|
+
type?: 'text' | 'number' | 'date' | 'email';
|
|
9
|
+
defaultValue: GenericValue;
|
|
10
|
+
isInput?: boolean;
|
|
11
|
+
isTextarea?: boolean;
|
|
12
|
+
isSelect?: boolean;
|
|
13
|
+
selectOptions?: string[];
|
|
14
|
+
isMultiSelect?: boolean;
|
|
15
|
+
radioSelect?: 'radio';
|
|
16
|
+
exactSelectedOptions?: number;
|
|
17
|
+
minSelectedOptions?: number;
|
|
18
|
+
maxSelectedOptions?: number;
|
|
19
|
+
multiSelectOptions?: Array<{
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}>;
|
|
23
|
+
isSearchableDropdown?: boolean;
|
|
24
|
+
searchableOptions?: string[];
|
|
25
|
+
isSearchableMultiselect?: boolean;
|
|
26
|
+
searchableMultiselectOptions?: string[];
|
|
27
|
+
isFileInput?: boolean;
|
|
28
|
+
acceptFileTypes?: string;
|
|
29
|
+
multipleFiles?: 'multiple' | '';
|
|
30
|
+
isHtml?: boolean;
|
|
31
|
+
html?: string;
|
|
32
|
+
isHidden?: boolean;
|
|
33
|
+
hiddenName?: string;
|
|
34
|
+
hiddenValue?: GenericValue;
|
|
35
|
+
};
|
|
36
|
+
export type FormTriggerData = {
|
|
37
|
+
testRun: boolean;
|
|
38
|
+
formHeader?: string;
|
|
39
|
+
formTitle: string;
|
|
40
|
+
formDescription?: string;
|
|
41
|
+
formDescriptionMetadata?: string;
|
|
42
|
+
formSubmittedHeader?: string;
|
|
43
|
+
formSubmittedText?: string;
|
|
44
|
+
redirectUrl?: string;
|
|
45
|
+
n8nWebsiteLink: string;
|
|
46
|
+
formFields: FormField[];
|
|
47
|
+
useResponseData?: boolean;
|
|
48
|
+
appendAttribution?: boolean;
|
|
49
|
+
buttonLabel?: string;
|
|
50
|
+
dangerousCustomCss?: string;
|
|
51
|
+
};
|
|
52
|
+
export declare const FORM_TRIGGER_AUTHENTICATION_PROPERTY = "authentication";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../nodes/Form123/interfaces.ts"],"names":[],"mappings":";;;AA0Da,QAAA,oCAAoC,GAAG,gBAAgB,CAAC"}
|