%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11585/cwd/html/ppaobm/vendor/bower-asset/fullcalendar/src/core/structs/ |
Upload File : |
import View from '../View' import { ViewSpec } from './view-spec' import { refineProps } from '../util/misc' import { mapHash } from '../util/object' import { ComponentContext } from '../component/Component' import DateProfileGenerator from '../DateProfileGenerator' /* A view-config represents information for either: A) creating a new instantiatable view class. in which case, supplied a class/type in addition to options, OR B) options to customize an existing view, in which case only provides options. */ export type ViewClass = new( context: ComponentContext, viewSpec: ViewSpec, dateProfileGenerator: DateProfileGenerator, parentEl: HTMLElement ) => View export interface ViewConfigObjectInput { type?: string class?: ViewClass [optionName: string]: any } export type ViewConfigInput = ViewClass | ViewConfigObjectInput export type ViewConfigInputHash = { [viewType: string]: ViewConfigInput } export interface ViewConfig { superType: string class: ViewClass | null options: any } export type ViewConfigHash = { [viewType: string]: ViewConfig } export function parseViewConfigs(inputs: ViewConfigInputHash): ViewConfigHash { return mapHash(inputs, parseViewConfig) } const VIEW_DEF_PROPS = { type: String, class: null } function parseViewConfig(input: ViewConfigInput): ViewConfig { if (typeof input === 'function') { input = { class: input } } let options = {} let props = refineProps(input, VIEW_DEF_PROPS, {}, options) return { superType: props.type, class: props.class, options } }