@formio/js 5.0.0-bb.dev.2 → 5.0.0-bb.dev.3

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.
Files changed (42) hide show
  1. package/dist/formio.embed.js +1 -1
  2. package/dist/formio.embed.min.js +1 -1
  3. package/dist/formio.embed.min.js.LICENSE.txt +1 -1
  4. package/dist/formio.form.js +1 -1
  5. package/dist/formio.form.min.js +1 -1
  6. package/dist/formio.form.min.js.LICENSE.txt +1 -1
  7. package/dist/formio.full.js +1 -1
  8. package/dist/formio.full.min.js +1 -1
  9. package/dist/formio.full.min.js.LICENSE.txt +1 -1
  10. package/dist/formio.js +1 -1
  11. package/dist/formio.min.js +1 -1
  12. package/dist/formio.min.js.LICENSE.txt +1 -1
  13. package/dist/formio.utils.min.js.LICENSE.txt +1 -1
  14. package/package.json +1 -2
  15. package/types/builders.d.ts +0 -7
  16. package/types/components/_classes/component/component.d.ts +0 -174
  17. package/types/components/_classes/componentmodal/componentmodal.d.ts +0 -31
  18. package/types/components/_classes/field/field.d.ts +0 -5
  19. package/types/components/_classes/input/input.d.ts +0 -30
  20. package/types/components/_classes/multivalue/multivalue.d.ts +0 -16
  21. package/types/components/_classes/nested/nestedComponent.d.ts +0 -61
  22. package/types/components/_classes/widgetcomponent/widgetComponent.d.ts +0 -6
  23. package/types/components/components.d.ts +0 -69
  24. package/types/components/schema.d.ts +0 -240
  25. package/types/displays.d.ts +0 -7
  26. package/types/element.d.ts +0 -45
  27. package/types/eventEmitter.d.ts +0 -3
  28. package/types/form.d.ts +0 -18
  29. package/types/formbuilder.d.ts +0 -6
  30. package/types/formio.d.ts +0 -121
  31. package/types/index.d.ts +0 -18
  32. package/types/licenses.d.ts +0 -7
  33. package/types/providers.d.ts +0 -8
  34. package/types/rulesEngine/conjunctions.d.ts +0 -7
  35. package/types/rulesEngine/operators.d.ts +0 -7
  36. package/types/rulesEngine/quckRules.d.ts +0 -7
  37. package/types/rulesEngine/rules.d.ts +0 -7
  38. package/types/rulesEngine/transformers.d.ts +0 -7
  39. package/types/rulesEngine/valueSources.d.ts +0 -7
  40. package/types/templates.d.ts +0 -8
  41. package/types/utils.d.ts +0 -157
  42. package/types/widgets.d.ts +0 -4
@@ -1,45 +0,0 @@
1
- import { EventEmitter } from './eventEmitter.d';
2
-
3
- export class Element {
4
- options: Object;
5
- id: string;
6
- eventHandlers: any[];
7
- i18next: any;
8
- events: EventEmitter;
9
- defaultMask: any;
10
- inputMasks: any[];
11
- constructor(options: any);
12
- on(event: string, cb: Function, internal: boolean, once?: boolean): any;
13
- once(event: string, cb: Function, internal: boolean): any;
14
- onAny(cb: Function): any;
15
- off(event: string): void;
16
- emit(event: string, data: Object): void;
17
- addEventListener(obj: HTMLElement, type: string, func: Function, persistent?: boolean): any;
18
- removeEventListener(obj: Object, type: any): any;
19
- removeEventListeners(): void;
20
- removeAllEvents(includeExternal: boolean): void;
21
- destroy(): void;
22
- appendTo(element: HTMLElement, container: HTMLElement): any;
23
- prependTo(element: HTMLElement, container: HTMLElement): any;
24
- removeChildFrom(element: HTMLElement, container: HTMLElement): any;
25
- ce(type: string, attr?: Object, children?: HTMLElement | string | Array<HTMLElement | string>): HTMLElement;
26
- appendChild(element: any, child: any): any;
27
- maskPlaceholder(mask: HTMLElement): string;
28
- setInputMask(input: HTMLElement, inputMask: string, placeholder: boolean): void;
29
- t(text: string, params?: Object): string;
30
- text(text: string): Text;
31
- attr(element: HTMLElement, attr: Object): void;
32
- hasClass(element: HTMLElement | any, className: string): boolean;
33
- addClass(element: HTMLElement, className: string): any;
34
- removeClass(element: HTMLElement, className: string): any;
35
- empty(element: HTMLElement): void;
36
- evalContext(additional: any): any;
37
- interpolate(string: any, data: any): any;
38
- evaluate(
39
- func: any,
40
- args: { component: any; form: any; instance: any; row: any; data: any } | any,
41
- ret: any,
42
- tokenize?: any,
43
- ): any;
44
- hook(...args: any[]): any;
45
- }
@@ -1,3 +0,0 @@
1
- export class EventEmitter /* extends EventEmitter3 */ {
2
- constructor(conf: Object);
3
- }
package/types/form.d.ts DELETED
@@ -1,18 +0,0 @@
1
- import { Element } from './element';
2
-
3
- export class Form extends Element {
4
- form: any;
5
- instance: any;
6
- ready: Promise<any>;
7
- constructor(...args: any[]);
8
- create(display: 'wizard' | 'form' | 'pdf'): any;
9
- setForm(formParam: any): any;
10
- setDisplay(display: any): any;
11
- empty(): void;
12
- render(): any | Promise<any>;
13
- static embed(element: any): any;
14
- sanitize(dirty: string): any;
15
- setContent(element: any, content: any): boolean;
16
- build(): Promise<any>;
17
- attach(element: any): any | Promise<any>;
18
- }
@@ -1,6 +0,0 @@
1
- import { Form } from './form';
2
-
3
- export class FormBuilder extends Form {
4
- constructor(element: any, form: any, options: any);
5
- create(display: string): any;
6
- }
package/types/formio.d.ts DELETED
@@ -1,121 +0,0 @@
1
- export class Formio {
2
- constructor(url: string, options?: Object);
3
- public base: string;
4
- public projectsUrl: string;
5
- public projectUrl: string;
6
- public projectId: string;
7
- public formId: string;
8
- public submissionId: string;
9
- public actionsUrl: string;
10
- public actionId: string;
11
- public actionUrl: string;
12
- public vsUrl: string;
13
- public vId: string;
14
- public vUrl: string;
15
- public query: string;
16
- public formUrl?: string;
17
- public formsUrl?: string;
18
- public submissionUrl?: string;
19
- public submissionsUrl?: string;
20
- public token: any | string;
21
- static libraries: any;
22
- static Promise: any;
23
- static fetch: any;
24
- static Headers: any;
25
- static baseUrl: string;
26
- static projectUrl: string;
27
- static authUrl: string;
28
- static projectUrlSet: boolean;
29
- static plugins: any;
30
- static cache: any;
31
- static license: string;
32
- static providers: any;
33
- static events: any; // EventEmitter3
34
- static namespace: string;
35
- static formOnly?: boolean;
36
- static rulesEntities: any;
37
- static options: any;
38
- delete(type: any, opts?: any): any;
39
- index(type: any, query?: any, opts?: any): any;
40
- save(type: any, data: any, opts?: any): any;
41
- load(type: any, query?: any, opts?: any): any;
42
- makeRequest(...args: any[]): any;
43
- loadProject(query?: any, opts?: any): any;
44
- saveProject(data: any, opts?: any): any;
45
- deleteProject(opts?: any): any;
46
- static loadProjects(query?: any, opts?: any): any;
47
- static createForm(element: any, form: string | Object, options?: Object): Promise<any>;
48
- static setBaseUrl(url: string): void;
49
- static setProjectUrl(url: string): void;
50
- static setAuthUrl(url: string): void;
51
- static getToken(options?: any): any;
52
- static makeStaticRequest(url: string, method?: string, data?: any, opts?: Object): any;
53
- static makeRequest(formio?: Formio, type?: string, url?: string, method?: string, data?: any, opts?: Object): any;
54
- static currentUser(formio?: Formio, options?: Object): any;
55
- static logout(formio?: Formio, options?: Object): any;
56
- static clearCache(): void;
57
- static setUser(user: any, opts?: Object): any;
58
- loadForm(query?: any, opts?: Object): any;
59
- loadForms(query?: any, opts?: Object): any;
60
- loadSubmission(query?: any, opts?: Object): any;
61
- loadSubmissions(query?: any, opts?: Object): any;
62
- userPermissions(
63
- user?: any,
64
- form?: any,
65
- submission?: any,
66
- ): Promise<{ create: boolean; read: boolean; edit: boolean; delete: boolean }>;
67
- createform(form: Object): Promise<any>;
68
- saveForm(data: any, opts?: Object): any;
69
- saveSubmission(data: any, opts?: Object): any;
70
- deleteForm(opts?: Object): any;
71
- deleteSubmission(opts?: Object): any;
72
- saveAction(data: any, opts?: any): any;
73
- deleteAction(opts?: any): any;
74
- loadAction(query?: any, opts?: any): any;
75
- loadActions(query?: any, opts?: any): any;
76
- availableActions(): any;
77
- actionInfo(name: any): any;
78
- isObjectId(id: any): any;
79
- getProjectId(): any;
80
- getFormId(): any;
81
- currentUser(options?: Object): any;
82
- accessInfo(): any;
83
- getToken(options?: Object): any;
84
- setToken(token: any, options?: Object): any;
85
- getTempToken(expire: any, allowed: any, options?: Object): any;
86
- getDownloadUrl(form: any): any;
87
- uploadFile(storage: any, file: any, fileName: any, dir: any, progressCallback: any, url: any, options?: Object): any;
88
- downloadFile(file: any, options?: Object): any;
89
- canSubmit(): any;
90
- getUrlParts(url: any): any;
91
- static use(plugin: any): any;
92
- static getUrlParts(url: any, formio?: Formio): any;
93
- static serialize(obj: any, _interpolate: any): any;
94
- static getRequestArgs(formio: Formio, type: string, url: string, method?: string, data?: any, opts?: any): any;
95
- static request(url: any, method?: any, data?: any, header?: any, opts?: any): any;
96
- static setToken(token: string, opts?: any): any;
97
- static getUser(options?: Object): any;
98
- static getBaseUrl(): string;
99
- static setApiUrl(url: string): any;
100
- static getApiUrl(): any;
101
- static setAppUrl(url: string): any;
102
- static getAppUrl(): any;
103
- static getProjectUrl(): any;
104
- static noop(): any;
105
- static identity(value: any): any;
106
- static deregisterPlugin(plugin: any): any;
107
- static registerPlugin(plugin: any, name: string): any;
108
- static getPlugin(name: any | string): any;
109
- static pluginWait(pluginFn: any, ...args: any[]): any;
110
- static pluginGet(pluginFn: any, ...args: any[]): any;
111
- static pluginAlter(pluginFn: any, value: any, ...args: any[]): any;
112
- static accessInfo(formio?: Formio): any;
113
- static pageQuery(): any;
114
- static oAuthCurrentUser(formio?: Formio, token?: any): any;
115
- static samlInit(options?: Object): any;
116
- static oktaInit(options?: Object): any;
117
- static ssoInit(type: any, options?: Object): any;
118
- static requireLibrary(name: any, property: any, src: any, polling?: boolean): any;
119
- static libraryReady(name: string): any;
120
- oauthLogoutURI(uri: string, options?: any): any;
121
- }
package/types/index.d.ts DELETED
@@ -1,18 +0,0 @@
1
- export * from './components/components';
2
- export * from './components/schema';
3
- export * from './form';
4
- export * from './formbuilder';
5
- export * from './formio';
6
- export * from './templates';
7
- export * from './displays';
8
- export * from './widgets';
9
- export * from './utils';
10
- export * from './builders';
11
- export * from './rulesEngine/conjunctions';
12
- export * from './rulesEngine/operators';
13
- export * from './rulesEngine/quckRules';
14
- export * from './rulesEngine/rules';
15
- export * from './rulesEngine/transformers';
16
- export * from './rulesEngine/valueSources';
17
- export * from './providers';
18
- export * from './licenses';
@@ -1,7 +0,0 @@
1
- export class Licenses {
2
- static readonly licenses: any;
3
- static addLicense(name: string, license: any): void;
4
- static removeLicense(name: string): void;
5
- static getLicense(name: string): any;
6
- static getLicenses(): any;
7
- }
@@ -1,8 +0,0 @@
1
- export class Providers {
2
- static readonly providers: any;
3
- static addProvider(type: string, name: string, provider:any): void;
4
- static addProviders(type:string, providers: any): void;
5
- static getProvider(type: string, name: string): any;
6
- static getProviders(type: string): any;
7
- }
8
-
@@ -1,7 +0,0 @@
1
- export class Conjunctions {
2
- static readonly conjunctions: any;
3
- static addConjunction(name: string, conjunction: any): void;
4
- static addConjunctions(conjunctions: any): void;
5
- static getConjunction(name: string): any;
6
- static getConjunctions(): any;
7
- }
@@ -1,7 +0,0 @@
1
- export class Operators {
2
- static readonly operators: any;
3
- static addOperator(name: string, conjunction: any): void;
4
- static addOperators(conjunctions: any): void;
5
- static getOperator(name: string): any;
6
- static getOperators(): any;
7
- }
@@ -1,7 +0,0 @@
1
- export class QuickRules {
2
- static readonly quickRules: any;
3
- static addQuickRule(name: string, conjunction: any): void;
4
- static addQuickRules(conjunctions: any): void;
5
- static getQuickRule(name: string): any;
6
- static getQuickRules(): any;
7
- }
@@ -1,7 +0,0 @@
1
- export class Rules {
2
- static readonly rules: any;
3
- static addRule(name: string, conjunction: any): void;
4
- static addRules(conjunctions: any): void;
5
- static getRule(name: string): any;
6
- static getRules(): any;
7
- }
@@ -1,7 +0,0 @@
1
- export class Transformers {
2
- static readonly transformers: any;
3
- static addTransformer(name: string, conjunction: any): void;
4
- static addTransformers(conjunctions: any): void;
5
- static getTransformer(name: string): any;
6
- static getTransformers(): any;
7
- }
@@ -1,7 +0,0 @@
1
- export class ValueSources {
2
- static readonly valueSources: any;
3
- static addValueSource(name: string, conjunction: any): void;
4
- static addValueSources(conjunctions: any): void;
5
- static getValueSource(name: string): any;
6
- static getValueSources(): any;
7
- }
@@ -1,8 +0,0 @@
1
- export class Templates {
2
- static readonly templates: any;
3
- static addTemplate(name: string, template: any): void;
4
- static setTemplate(name: string, template: any): void;
5
- static current: any;
6
- static readonly defaultTemplates: any;
7
- static framework: any;
8
- }
package/types/utils.d.ts DELETED
@@ -1,157 +0,0 @@
1
- import * as moment from 'moment';
2
-
3
- export type AnyForJSON = { [key: string]: any } | any;
4
-
5
- export namespace Utils {
6
- const ConditionOperators: any;
7
- const componentValueTypes: { [key: string]: string };
8
- const Evaluator: any;
9
- const _: any;
10
- function getComponentSavedTypes(schema: object): Array<any> | null;
11
- function evaluate(
12
- func: any,
13
- args: { component: any; form: any; instance: any; row: any; data: any } | any,
14
- ret: any,
15
- tokenize?: any,
16
- ): any;
17
- function getRandomComponentId(): string;
18
- function getPropertyValue(style: CSSStyleDeclaration, prop: string): number;
19
- function getElementRect(element: any): { x: number; y: number; width: number; height: number };
20
- function boolValue(value: boolean | string): boolean;
21
- function isMongoId(text: any): any;
22
- function checkCalculated(component: { calculateValue?: any; key: any } | any, submission: any, rowData: any): void;
23
- function checkSimpleConditional(
24
- component: any /* unused */,
25
- condition: { eq: any; show: any; when: any } & any,
26
- row: any,
27
- data: any,
28
- instance: any
29
- ): boolean;
30
- function checkCustomConditional(
31
- component: any /* unused */,
32
- custom: string | any,
33
- row: any,
34
- data: any,
35
- form: any,
36
- variable: any,
37
- onError: any,
38
- instance: { evaluate?: any } | any,
39
- ): any;
40
- function checkJsonConditional(
41
- component: { key: string | any } | any,
42
- json: AnyForJSON,
43
- row: any,
44
- data: any,
45
- form: any,
46
- onError: any,
47
- ): any;
48
- function checkCondition(
49
- component: { customConditional: any; conditional: { when: any; json: AnyForJSON } } | any,
50
- row: any,
51
- data: any,
52
- form: any,
53
- instance: any,
54
- ): boolean;
55
- function checkTrigger(
56
- component: any,
57
- trigger: { type: string; simple: any; json: AnyForJSON; javascript: any } | any,
58
- row: any,
59
- data: any,
60
- form: any,
61
- instance: any,
62
- ): boolean | any;
63
- function setActionProperty(
64
- component: any,
65
- action: { property: { type: string | any; value: any } | any; state: boolean | any; text: any },
66
- row: any,
67
- data: any,
68
- result: any,
69
- instance?: { interpolate: (textValue: any, evalData: any) => any | any },
70
- ): any;
71
- function interpolateTemplate(template: string): any;
72
- function addTemplateHash(template: string): number;
73
- function interpolate(rawTemplate: number | string, data: any): any;
74
- function uniqueName(name: string, template: string, evalContext: Object): string;
75
- function guid(): string;
76
- function getDateSetting(date: any): null | Date;
77
- function isValidDate(date: any): boolean;
78
- function currentTimezone(): string;
79
- function offsetDate(date: Date, timezone: string): { date: Date; abbr: string };
80
- function zonesLoaded(): boolean;
81
- function shouldLoadZones(timezone: string): boolean;
82
- function loadZones(timezone?: string): Promise<undefined>;
83
- function momentDate(value: moment.MomentInput, format: string, timezone: string): moment.Moment;
84
- function formatDate(value: moment.MomentInput, format: string, timezone: string): string;
85
- function formatOffset(
86
- formatFn: (date: any, format: any) => string,
87
- date: Date | any,
88
- format: string | any,
89
- timezone: string,
90
- ): string;
91
- function getLocaleDateFormatInfo(locale: string | string[]): { dayFirst: boolean };
92
- function convertFormatToFlatpickr(format: string): string;
93
- function convertFormatToMoment(format: string): string;
94
- function convertFormatToMask(format: string): string;
95
- function getInputMask(mask: string | RegExp[]): RegExp[];
96
- function matchInputMask(value: string | RegExp, inputMask?: string | RegExp): boolean;
97
- function getNumberSeparators(lang: string): { delimiter: string; decimalSeparator: string };
98
- function getNumberDecimalLimit(component: any): number;
99
- function getCurrencyAffixes(input: {
100
- currency: string;
101
- decimalLimit: number;
102
- decimalSeparator: string;
103
- lang: string | string[];
104
- }): { prefix: string; suffix: string };
105
- function fieldData(data: Object, component: { key: string | any[]; multiple: boolean | any } | any): any;
106
- function delay(fn: Function, delay: number, args: any[]): any;
107
- function iterateKey(key: string): string;
108
- function uniqueKey(map: Object, base: string): string;
109
- function bootstrapVersion(options: { bootstrap?: any } | any): number;
110
- function unfold(e: any): any;
111
- const firstNonNil: any;
112
- function withSwitch(a: any, b: any): [Function, Function];
113
- function observeOverload(callback: Function, options?: { limit?: number; delay?: number }): any;
114
- function getContextComponents(context: any, excludeNested?: any, excludedTypes?: any): any;
115
- function sanitize(string: string, options: any): any;
116
-
117
- // Form Utils
118
- function isLayoutComponent(component: { columns: any; rows: any; components: any } | any): boolean;
119
- function eachComponent(components: any[], fn: Function, includeAll?: boolean, path?: string, parent?: Object): any;
120
- function matchComponent(component: any, query: any): boolean;
121
- function getComponent(components: any[], key: string | Object | any, includeAll: boolean): any;
122
- function searchComponents(components: any[], query: any): any;
123
- function findComponent(components: any[], key: any, path: any, fn: Function): boolean;
124
- function removeComponent(components: any[], path: any): void;
125
- function fastCloneDeep(json: any): any;
126
- function generateFormChange(
127
- type: string | any,
128
- data: { schema: any; parent: { key: any } | any; originalComponent: any },
129
- ): {
130
- op: string;
131
- key: any;
132
- container?: any;
133
- index?: number;
134
- component?: any;
135
- patches?: any;
136
- };
137
- function applyFormChanges(form: any, changes: any[]): { form: any; failed: any[] };
138
- function flattenComponents(components: any[], includeAll: boolean): any;
139
- function hasCondition(component: any): boolean;
140
- function parseFloatExt(value: any): number;
141
- function formatAsCurrency(value: any): string;
142
- function escapeRegExCharacters(value: string): string;
143
- function getValue(submission: any, key: string): any;
144
- function getStrings(
145
- form: { components: any[] } | any,
146
- ): { key: any; type?: any; property: string; string: string | any };
147
-
148
- // Builder Utils
149
- namespace BuilderUtils {
150
- function uniquify(container: any[], component: any): boolean;
151
- const additionalShortcuts: { button: ['Enter', 'Esc'] };
152
- function getAlphaShortcuts(): string[];
153
- function getAdditionalShortcuts(type: string): string[];
154
- function getBindedShortcuts(components: any[], input: any): any[];
155
- function getAvailableShortcuts(form: { components: any[] } | any, component: { type: any } | any): string[];
156
- }
157
- }
@@ -1,4 +0,0 @@
1
- export class Widgets {
2
- static readonly calendar: any;
3
- static readonly input: any;
4
- }