Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const filteredComponentMethods = [
'setOptions',
'on',
'off',
'onOnce',
'appendTo',
'insertAfter',
'insertBefore',
'isAttachedTo',
'replaceElement',
'restoreElement',
'destroy'
];
// Test if is supported on this client
const isSupported = supported();
// Setup initial prop types and update when plugins are added
const getNativeConstructorFromType = type =>
({
string: String,
boolean: Boolean,
array: Array,
function: Function,
int: Number,
serverapi: Object,
object: Object
}[type]);
// Activated props
const props = {};
EventEmitter,
ViewEncapsulation,
ElementRef,
SimpleChanges,
NgZone
} from '@angular/core';
import {
OptionTypes,
create,
supported,
registerPlugin as register
} from 'filepond';
// Do this once
const isSupported: boolean = supported();
// Methods not made available to the component
const filteredComponentMethods: Array = [
'setOptions',
'on',
'off',
'onOnce',
'appendTo',
'insertAfter',
'insertBefore',
'isAttachedTo',
'replaceElement',
'restoreElement',
'destroy'
];
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
import { Component, EventEmitter, ViewEncapsulation, ElementRef, NgZone } from '@angular/core';
import { OptionTypes, create, supported, registerPlugin as register } from 'filepond';
// Do this once
var /** @type {?} */ isSupported = supported();
// Methods not made available to the component
var /** @type {?} */ filteredComponentMethods = [
'setOptions',
'on',
'off',
'onOnce',
'appendTo',
'insertAfter',
'insertBefore',
'isAttachedTo',
'replaceElement',
'restoreElement',
'destroy'
];
// All the properties that can be bound
var /** @type {?} */ inputs = [];
const filteredComponentMethods = [
'setOptions',
'on',
'off',
'onOnce',
'appendTo',
'insertAfter',
'insertBefore',
'isAttachedTo',
'replaceElement',
'restoreElement',
'destroy'
];
// Do this once
const isSupported = supported();
// Setup initial prop types and update when plugins are added
const getNativeConstructorFromType = type =>
({
string: String,
boolean: Boolean,
array: Array,
function: Function,
int: Number,
serverapi: Object
}[type]);
// All the props
const props = {
id: String
};
* FilePondPluginImageTransform 1.1.0
* Licensed under MIT, https://opensource.org/licenses/MIT
* Please visit https://pqina.nl/filepond for details.
*/
// test if file is of type image
import React, { createElement } from 'react';
// Import required methods and styles from the FilePond module, should not need anything else
import { create, supported, registerPlugin } from 'filepond';
import 'filepond/dist/filepond.min.css';
// We need to be able to call the registerPlugin method directly so we can add plugins
export { registerPlugin };
// Do this once
const isSupported = supported();
// returns file sources from the child objects
const getFilesFromChildren = children =>
React.Children.map(
children,
child => {
if (child.props.type) {
return {
source: child.props.source,
options: {
type: child.props.type
}
}
}
else {
return child.props.source;
ElementRef,
SimpleChanges,
ViewEncapsulation,
EventEmitter,
NgZone,
Output,
Input
} from '@angular/core';
import {
create,
supported
} from 'filepond';
// We test if filepond is supported on the current client
const isSupported: Boolean = supported();
// List of attributes for fallback input
const inputAttributes: Array = [
'id',
'name',
'class',
'multiple',
'required',
'disabled',
'capture',
'accept'
];
// Methods not made available on the component
const filteredComponentMethods: Array = [
'setOptions',
* Copyright (c) 2019 PQINA
* https://pqina.nl/filepond
*
* Licensed under the MIT license.
*/
import React, { createElement } from 'react';
// Import required methods and styles from the FilePond module, should not need anything else
import { create, supported, registerPlugin, FileStatus } from 'filepond';
// We need to be able to call the registerPlugin method directly so we can add plugins
export { registerPlugin, FileStatus };
// Do this once
const isSupported = supported();
// filtered methods
const filteredMethods = [
'setOptions',
'on',
'off',
'onOnce',
'appendTo',
'insertAfter',
'insertBefore',
'isAttachedTo',
'replaceElement',
'restoreElement',
'destroy'
];