{"version":3,"sources":["jsdelivr-header.js","/npm/src/raonkupload/raonkupload.component.ts","/npm/src/raonkupload/raonkupload.module.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;OCkCA,IAAA,EAAA,WA0JC,SAAqB,EAAA,EAAgC,GAAhC,KAAU,WAAV,EAAgC,KAAM,OAAN,EAtJ3C,KAAE,GAAG,GAWL,KAAa,cAAE,cAKhB,KAAY,aAAG,iCAOf,KAAO,QAAG,MAKV,KAAA,SAA4D,QAgE3D,KAAA,gBAAkB,IAAI,eAEtB,KAAA,OAAS,IAAI,eAKb,KAAA,iBAAmB,IAAI,eACvB,KAAA,cAAgB,IAAI,eACpB,KAAA,aAAe,IAAI,eACnB,KAAA,gBAAkB,IAAI,eACtB,KAAA,iBAAmB,IAAI,eACvB,KAAA,gBAAkB,IAAI,eACtB,KAAA,cAAgB,IAAI,eACpB,KAAA,aAAe,IAAI,eACnB,KAAA,eAAiB,IAAI,eACrB,KAAA,mBAAqB,IAAI,eACzB,KAAA,eAAiB,IAAI,eACrB,KAAA,qBAAuB,IAAI,eAC3B,KAAA,wBAA0B,IAAI,eAC9B,KAAA,QAAU,IAAI,eACd,KAAA,gBAAkB,IAAI,eACtB,KAAA,eAAiB,IAAI,eACrB,KAAA,WAAa,IAAI,eACjB,KAAA,aAAe,IAAI,eACnB,KAAA,MAAQ,IAAI,eA2Bd,KAAS,UAAY,KAErB,KAAK,MAAW,KAEhB,KAAU,YAAY,C,QA/G9B,OAAA,eAAa,EAAI,UAAA,QAejB,IAAA,WACC,OAAO,KAAK,K,EAhBb,IAAA,SAAmB,GACb,IAAS,KAAK,QAId,KAAK,SAGT,KAAK,MAAQ,YAAY,YAAY,QAAS,KAAK,IAIpD,KAAK,MAAQ,E,kCAUd,OAAA,eAAa,EAAQ,UAAA,YAUrB,IAAA,WACC,GAAK,KAAK,SAAW,CACpB,IAAI,OAAQ,EACZ,OAAO,YAAY,gBAAgB,KAAK,IAAI,QAAQ,KAAK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AClB,OAAO,EAAI,OAAO,GAAG,cAAgB,EAAI,MAAM,E,EAGxC,EAAA,UAAA,gBAAA,SAAiB,EAAmB,GAApC,IAgBP,EAAA,KAfA,KAAK,OAAO,KAAK,WAChB,IAAM,EAAU,YAAY,YAAY,QAAS,EAAK,IAEtD,EAAK,OAAO,KAAM,GAEb,IAAY,EAAK,OAItB,EAAK,MAAQ,EAER,EAAK,UACT,EAAK,SAAU,GAEjB,G,IAtVF,G,cAbC,CAAA,KAAA,YAAW,KAAA,EACX,SAAU,cACV,SAAU,8BAEV,UAAW,CACV,CACC,QAAS,oBACT,YAAa,cAAY,WAAM,OAAA,CAAoB,IACnD,OAAO,Q,yCAxBT,c,MALA,U,8BAsCE,U,cAMD,U,qBAKC,U,oBAKD,U,eAOA,U,gBAKA,U,YASA,U,gBAsBA,U,uBAiCA,W,cAEA,W,wBAKA,W,qBACA,W,oBACA,W,uBACA,W,wBACA,W,uBACA,W,qBACA,W,oBACA,W,sBACA,W,0BACA,W,sBACA,W,4BACA,W,+BACA,W,eACA,W,uBACA,W,sBACA,W,kBACA,W,oBACA,W,aACA;;;;ACnJF,IAAA,EAAA,W,gBALC,CAAA,KAAA,WAAU,KAAA,EACV,QAAS,CAAE,cAAa,gBACxB,aAAc,CAAE,GAChB,QAAS,CAAE,O","file":"/npm/raonkupload-angular@1.0.5/bundles/raonkupload-angular.umd.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/raonkupload-angular@1.0.5/bundles/raonkupload-angular.umd.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/**\r\n * @license Copyright (c) 2003-2022, RAONWIZ DevTeam. All rights reserved.\r\n */\r\n\r\nimport {\r\n\tComponent,\r\n\tNgZone,\r\n\tInput,\r\n\tOutput,\r\n\tEventEmitter,\r\n\tforwardRef,\r\n\tElementRef,\r\n\tAfterViewInit, OnDestroy\r\n} from '@angular/core';\r\n\r\nimport {\r\n\tControlValueAccessor,\r\n\tNG_VALUE_ACCESSOR\r\n} from '@angular/forms';\r\n\r\nimport { getRaonwizComponentNamespace } from 'raonwiz-integrations-common';\r\n\r\nimport { RaonkUpload } from './raonkupload';\r\n\r\ndeclare let RAONKUPLOAD: any;\r\ndeclare let RAONKUpload: any;\r\n\r\n@Component( {\r\n\tselector: 'RaonkUpload',\r\n\ttemplate: '<ng-template></ng-template>',\r\n\r\n\tproviders: [\r\n\t\t{\r\n\t\t\tprovide: NG_VALUE_ACCESSOR,\r\n\t\t\tuseExisting: forwardRef( () => RaonkUploadComponent ),\r\n\t\t\tmulti: true,\r\n\t\t}\r\n\t]\r\n} )\r\n\r\nexport class RaonkUploadComponent implements AfterViewInit, OnDestroy, ControlValueAccessor {\r\n\t/**\r\n\t * The id of the component\r\n\t */\r\n\t @Input() id = \"\";\r\n\r\n\r\n\t/**\r\n\t * The configuration of the component.\r\n\t */\r\n\t@Input() config?: RaonkUpload.Config;\r\n\r\n\t/**\r\n\t * The component type\r\n\t */\r\n\t @Input() componentType= 'RAONKUPLOAD';\r\n\r\n\t/**\r\n\t * RAON K Upload script url address. Script will be loaded only if RAONKUPLOAD namespace is missing.\r\n\t */\r\n\t@Input() componentUrl = '/raonkupload/js/raonkupload.js';\r\n\r\n\t/**\r\n\t * Tag name of the component.\r\n\t *\r\n\t * The default tag is `div`.\r\n\t */\r\n\t@Input() tagName = 'div';\r\n\t\r\n\t/**\r\n\t * The runtimes of the component interface.\r\n\t */\r\n\t@Input() runtimes: RaonkUpload.Runtimes = RaonkUpload.Runtimes.HTML5;\r\n\r\n\t/**\r\n\t * Keeps track of the component's data.\r\n\t *\r\n\t * It's also decorated as an input which is useful when not using the ngModel.\r\n\t *\r\n\t * See https://angular.io/api/forms/NgModel to learn more.\r\n\t */\r\n\t@Input() set data( data: string ) {\r\n\t\tif ( data === this._data ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif ( this.instance ) {\r\n\t\t\t// not supported set data\r\n\t\t\t// Data may be changed by ACF.\r\n\t\t\tthis._data = RAONKUPLOAD.GetListInfo('array', this.id);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis._data = data;\r\n\t}\r\n\r\n\tget data(): string {\r\n\t\treturn this._data;\r\n\t}\r\n\r\n\t/**\r\n\t * When set to `true`, the editor becomes view mode.\r\n\t */\r\n\t@Input() set viewMode( isViewMode: boolean ) {\r\n\t\tif ( this.instance ) {\r\n\t\t\tRAONKUPLOAD.SetUploadMode( isViewMode?'view':'edit', this.id );\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Delay setting mode\r\n\t\tthis._viewMode = isViewMode;\r\n\t}\r\n\r\n\tget viewMode(): boolean {\r\n\t\tif ( this.instance ) {\r\n\t\t\tlet retValue;\r\n\t\t\tswitch(RAONKUPLOAD.GetUploadByName(this.id)._config.mode.toLowerCase()) {\r\n\t\t\t\tcase 'upload':\r\n\t\t\t\tcase 'edit':\r\n\t\t\t\t\tretValue = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tretValue = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn retValue;\r\n\t\t}\r\n\r\n\t\treturn this._viewMode;\r\n\t}\r\n\r\n\t/**\r\n\t * Fired when the component namespace\r\n\t * is loaded. It only triggers once, no matter how many components are initialised.\r\n\t */\r\n\t@Output() namespaceLoaded = new EventEmitter<RaonkUpload.EventInfo>();\r\n\r\n\t@Output() change = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t\r\n\t/**\r\n\t * event.\r\n\t */\r\n\t@Output() creationComplete = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t@Output() beforeAddFile = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t@Output() afterAddFile = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t@Output() afterAddAllFile = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t@Output() beforeDeleteFile = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t@Output() afterDeleteFile = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t@Output() deleteAllFile = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t@Output() beforeUpload = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t@Output() uploadComplete = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t@Output() beforeDownloadFile = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t@Output() beforeOpenFile = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t@Output() downloadCompleteFile = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t@Output() downloadCompleteAllFile = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t@Output() onError = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t@Output() uploadingCancel = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t@Output() downloadCancel = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t@Output() selectItem = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t@Output() customAction = new EventEmitter<RaonkUpload.EventInfo>();\r\n\t@Output() alert = new EventEmitter<RaonkUpload.EventInfo>();\r\n\r\n\t/**\r\n\t * A callback executed when the content of the component changes. Part of the\r\n\t * `ControlValueAccessor` (https://angular.io/api/forms/ControlValueAccessor) interface.\r\n\t *\r\n\t * Note: Unset unless the component uses the `ngModel`.\r\n\t */\r\n\tonChange?: ( data: string ) => void;\r\n\r\n\t/**\r\n\t * A callback executed when the component has been blurred. Part of the\r\n\t * `ControlValueAccessor` (https://angular.io/api/forms/ControlValueAccessor) interface.\r\n\t *\r\n\t * Note: Unset unless the component uses the `ngModel`.\r\n\t */\r\n\tonTouched?: () => void;\r\n\r\n\t/**\r\n\t * The instance of the component created.\r\n\t */\r\n\tinstance: any;\r\n\r\n\t/**\r\n\t * If the component is view-mode before the component instance is created, it remembers that state,\r\n\t * so the component can become view-mode once it is ready.\r\n\t */\r\n\tprivate _viewMode: boolean = null;\r\n\r\n\tprivate _data: string = null;\r\n\r\n\tprivate _destroyed: boolean = false;\r\n\r\n\tconstructor( private elementRef: ElementRef, private ngZone: NgZone ) {}\r\n\r\n\tngAfterViewInit(): void {\r\n\t\tgetRaonwizComponentNamespace( this.componentType, this.componentUrl, namespace => {\r\n\t\t\tthis.namespaceLoaded.emit( namespace );\r\n\t\t} ).then( (namespace) => {\r\n\t\t\t// Check if component instance was destroyed before `ngAfterViewInit` call (#110).\r\n\t\t\t// Here, `this.instance` is still not initialized and so additional flag is needed.\r\n\t\t\tif ( this._destroyed ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tthis.ngZone.runOutsideAngular( this.createComponent.bind( this, namespace ) );\r\n\t\t} ).catch( window.console.error );\r\n\r\n\t}\r\n\r\n\tngOnDestroy(): void {\r\n\t\tthis._destroyed = true;\r\n\r\n\t\tthis.ngZone.runOutsideAngular( () => {\r\n\t\t\tif ( this.instance ) {\r\n\t\t\t\tif(RAONKUPLOAD._ExternalComponentMap.has(this.id)) {\r\n\t\t\t\t\tRAONKUPLOAD._ExternalComponentMap.delete(this.id);\r\n\t\t\t\t}\r\n\t\t\t\tif(RAONKUPLOAD._ExternalEventRetValueMap.has(this.id)) {\r\n\t\t\t\t\tRAONKUPLOAD._ExternalEventRetValueMap.delete(this.id);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tRAONKUPLOAD.Destroy(this.id, true);\r\n\t\t\t\tthis.instance = null;\r\n\t\t\t}\r\n\t\t} );\r\n\t}\r\n\r\n\twriteValue( value: string ): void {\r\n\t\tthis.data = value;\r\n\t}\r\n\r\n\tregisterOnChange( callback: ( data: string ) => void ): void {\r\n\t\tthis.onChange = callback;\r\n\t}\r\n\r\n\tregisterOnTouched( callback: () => void ): void {\r\n\t\tthis.onTouched = callback;\r\n\t}\r\n\r\n\tprivate getComponentUniqueName(): string {\r\n\t\treturn \"raonkupload_\" + Math.random()\r\n\t\t.toString( 36 )\r\n\t\t.replace( /[^a-z]+/g, '' )\r\n\t\t.substr( 0, 5 );\r\n\t}\r\n\r\n\tprivate createComponent(namespace): void {\r\n\t\tlet _uniqueName = this.getComponentUniqueName();\r\n\t\t\r\n\t\t(typeof this.id === 'undefined') && (this.id = _uniqueName);\r\n\t\t\r\n\t\tconst element = document.createElement( this.tagName );\r\n\t\telement.id = \"componentHolder_\" + _uniqueName;\r\n\t\tthis.elementRef.nativeElement.appendChild( element );\r\n\t\t\r\n\t\t// view state may change during instance initialization.\r\n\t\t(this._viewMode !== null) && (this.viewMode = this._viewMode);\r\n\r\n\t\t// default config\r\n\t\tlet _compConfig = {\r\n\t\t\tId: this.id,\r\n\t\t\tUploadHolder: element.id,\r\n\t\t\tRuntimes: this.runtimes,\r\n\t\t\tMode: this._viewMode ? 'view' : 'edit',\r\n\t\t\tEvent: this.subscribe()\r\n\t\t};\r\n\r\n\t\t_compConfig = namespace.util.objectExtend( true, this.config, _compConfig );\r\n\r\n\t\t// for event callback\r\n\t\t(typeof namespace._ExternalComponentMap === 'undefined') && (namespace._ExternalComponentMap = new Map());\r\n\t\tnamespace._ExternalComponentMap.set(this.id, this);\r\n\r\n\t\t(typeof namespace._ExternalEventRetValueMap === 'undefined') && (namespace._ExternalEventRetValueMap = new Map());\r\n\r\n\t\tvar _componentObject = new RAONKUpload( _compConfig );\r\n\t\t_componentObject.name = element.id;\r\n\t\tthis.instance = _componentObject;\r\n\t}\r\n\r\n\tprivate subscribe(): any {\r\n\t\tlet _configEvent = {};\r\n\r\n\t\tconst ComponentEvents = [\r\n\t\t\t'CreationComplete',\r\n\t\t\t'BeforeAddFile',\r\n\t\t\t'AfterAddFile',\r\n\t\t\t'AfterAddAllFile',\r\n\t\t\t'BeforeDeleteFile',\r\n\t\t\t'AfterDeleteFile',\r\n\t\t\t'DeleteAllFile',\r\n\t\t\t'BeforeUpload',\r\n\t\t\t'UploadComplete',\r\n\t\t\t'BeforeDownloadFile',\r\n\t\t\t'BeforeOpenFile',\r\n\t\t\t'DownloadCompleteFile',\r\n\t\t\t'DownloadCompleteAllFile',\r\n\t\t\t'OnError',\r\n\t\t\t'UploadingCancel',\r\n\t\t\t'DownloadCancel',\r\n\t\t\t'SelectItem',\r\n\t\t\t'CustomAction',\r\n\t\t\t'Alert'\r\n\t\t] as const;\r\n\r\n\t\tComponentEvents.forEach(function(evtName) {\r\n\t\t\t_configEvent[evtName] = (componentName: any, paramObj: any) => {\r\n\t\t\t\t// Set default value\r\n\t\t\t\tswitch(evtName) {\r\n\t\t\t\t\tcase 'BeforeUpload':\r\n\t\t\t\t\tcase 'BeforeDownloadFile':\r\n\t\t\t\t\tcase 'BeforeOpenFile':\r\n\t\t\t\t\tcase 'BeforeAddFile':\r\n\t\t\t\t\tcase 'BeforeDeleteFile':\r\n\t\t\t\t\t\tRAONKUPLOAD._ExternalEventRetValueMap.set(componentName, true);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(RAONKUPLOAD._ExternalComponentMap.has(componentName)) {\r\n\t\t\t\t\tlet _this = RAONKUPLOAD._ExternalComponentMap.get(componentName);\r\n\t\t\t\t\t\r\n\t\t\t\t\t_this.ngZone.run( () => {\r\n\t\t\t\t\t\tswitch(evtName) {\r\n\t\t\t\t\t\t\tcase 'AfterAddAllFile':\r\n\t\t\t\t\t\t\tcase 'DeleteAllFile':\r\n\t\t\t\t\t\t\t\tif ( _this.onTouched ) {\r\n\t\t\t\t\t\t\t\t\t_this.onTouched();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 'UploadComplete':\r\n\t\t\t\t\t\t\t\t_this.propagateChange(evtName, { componentName: componentName, paramObj: paramObj });\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t_this[ _this.capitalize(evtName) ].emit( { componentName: componentName, paramObj: paramObj } );\r\n\t\t\t\t\t} );\r\n\r\n\t\t\t\t\t// Set default value\r\n\t\t\t\t\t// return event\r\n\t\t\t\t\tlet _retValue = \"\";\r\n\t\t\t\t\tswitch(evtName) {\r\n\t\t\t\t\t\tcase 'BeforeUpload':\r\n\t\t\t\t\t\tcase 'BeforeDownloadFile':\r\n\t\t\t\t\t\tcase 'BeforeOpenFile':\r\n\t\t\t\t\t\tcase 'BeforeAddFile':\r\n\t\t\t\t\t\tcase 'BeforeDeleteFile':\r\n\t\t\t\t\t\t\tif(RAONKUPLOAD._ExternalEventRetValueMap.has(componentName)) {\r\n\t\t\t\t\t\t\t\t_retValue = RAONKUPLOAD._ExternalEventRetValueMap.get(componentName);\r\n\t\t\t\t\t\t\t\tRAONKUPLOAD._ExternalEventRetValueMap.delete(componentName); // Initialization\r\n\r\n\t\t\t\t\t\t\t\treturn _retValue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn _configEvent;\r\n\t}\r\n\r\n\tprivate capitalize(str: string): string {\r\n\t\treturn str.charAt(0).toLowerCase() + str.slice(1);\r\n\t}\r\n\r\n\tprivate propagateChange( eventName: string, eventParams: any ): void {\r\n\t\tthis.ngZone.run( () => {\r\n\t\t\tconst newData = RAONKUPLOAD.GetListInfo('array', this.id);\r\n\t\t\t\r\n\t\t\tthis.change.emit( eventParams );\r\n\r\n\t\t\tif ( newData === this.data ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tthis._data = newData;\r\n\r\n\t\t\tif ( this.onChange ) {\r\n\t\t\t\tthis.onChange( newData );\r\n\t\t\t}\r\n\t\t} );\r\n\t}\r\n\r\n}\r\n","/**\r\n * @license Copyright (c) 2003-2022, RAONWIZ DevTeam. All rights reserved.\r\n */\r\n\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { RaonkUploadComponent } from './raonkupload.component';\r\n\r\n@NgModule( {\r\n\timports: [ FormsModule, CommonModule ],\r\n\tdeclarations: [ RaonkUploadComponent ],\r\n\texports: [ RaonkUploadComponent ]\r\n} )\r\nexport class RaonkUploadModule {\r\n}\r\nexport * from './raonkupload';\r\nexport { RaonkUploadComponent } from './raonkupload.component';\r\n"]}