How to use @talend/react-containers - 10 common examples

To help you get started, we’ve selected a few @talend/react-containers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Talend / data-prep / dataprep-webapp / src / app / configure.cmf.js View on Github external
sagaMiddleware.run(rootSaga);

		api.registerInternals();

		/**
		 * Register route functions
		 */
		const additionalRouteFunctions = additionalConfiguration.routeFunctions;
		if (additionalRouteFunctions) {
			Object.keys(additionalRouteFunctions).map(k =>
				registerRouteFunction(k, additionalRouteFunctions[k]),
			);
		}

		registerAllContainers();

		dataset.configure();

		/**
		 * Register expressions in CMF expressions dictionary
		 */
		const additionalExpressions = additionalConfiguration.expressions;
		if (additionalExpressions) {
			registerExpressions(additionalExpressions);
		}
		registerExpressions(api.expressions);

		/**
		 * Register components in CMF Components dictionary
		 */
		registerComponent('App', App);
github Talend / data-prep / dataprep-webapp / src / app / configure.cmf.js View on Github external
sagaMiddleware.run(rootSaga);

	api.registerInternals();

	/**
	 * Register route functions
	 */
	const additionalRouteFunctions = additionalConfiguration.routeFunctions;
	if (additionalRouteFunctions) {
		Object.keys(additionalRouteFunctions).map(k =>
			registerRouteFunction(k, additionalRouteFunctions[k]),
		);
	}

	registerAllContainers();

	dataset.configure();

	/**
	 * Register expressions in CMF expressions dictionary
	 */
	const additionalExpressions = additionalConfiguration.expressions;
	if (additionalExpressions) {
		registerExpressions(additionalExpressions);
	}
	registerExpressions(api.expressions);

	/**
	 * Register components in CMF Components dictionary
	 */
	registerComponent('App', App);
github Talend / data-prep / dataprep-webapp / src / app / next / components / PreparationCopyMoveModal / PreparationCopyMoveModal.component.js View on Github external
closeButton={false}
			>
				 {
						this.props.setState({ name: value, error: null });
					}}
					onCancel={() => this.props.setState({ error: null })}
				/>
				<hr>
				
			
		);
	}
}
github Talend / data-prep / dataprep-webapp / src / app / next / components / PreparationCopyMoveModal / PreparationCopyMoveModal.component.js View on Github external
static getContent(state) {
		const select = SelectObject.getState(state, PreparationCopyMoveModal.SELECT_OBJECT_ID);
		const title = state.cmf.components.getIn([PreparationCopyMoveModal.DISPLAY_NAME, 'default', 'name'], '');

		return {
			title,
			destination: select.get('selectedId', ''),
		};
	}
github Talend / data-prep / dataprep-webapp / src / app / next / sagas / effects / search.effects.js View on Github external
export function* search(payload) {
	yield put(Typeahead.setStateAction({ searching: true }, 'headerbar:search'));

	const categories = api.registry.getFromRegistry('SEARCH_CATEGORIES_BY_PROVIDER');
	const providers = Object.keys(categories);
	const service = new SearchService(categories);
	const batches = providers.map(
		provider => service.build(
			provider,
			payload,
		)
	);
	const results = (
			yield all(batches.map(request => call(...request)))
		).map(
			(result, index) => service.transform(providers[index], result)
		);
github Talend / data-prep / dataprep-webapp / src / app / next / sagas / effects / help.effects.js View on Github external
export function* open() {
	const uris = yield select(state => state.cmf.collections.getIn(['settings', 'uris']));
	yield put({
		type: Constants.ABOUT_DIALOG_SHOW,
		url: uris.get('apiVersion'),
	});
}
github Talend / ui / packages / containers / sandbox / src / app / ComponentFormSandbox.js View on Github external
			onClick: () => dispatch(setComponentFormDirtyState(componentId, false)),
		},
github Talend / ui / packages / containers / sandbox / src / app / ComponentFormSandbox.js View on Github external
function mapStateToProps(state) {
	return { dirty: isComponentFormDirty(state, componentId) };
}
github Talend / component-runtime / component-tools-webapp / src / main / frontend / src / components / Detail / Detail.component.js View on Github external
notSelected = ();
    }  else {
        const lang = new URLSearchParams(window.location.search).get('language') || 'en';
        form = (
             0 ? '&amp;' : '?'}language=${lang}`}
                triggerURL={`/api/v1/application/action`}
                lang={lang}
                customTriggers={registry}
            /&gt;
        );
        if (props.submitted) {
            const configuration = kit.flatten(props.uiSpec.properties);
            submitted = (
                <div>
                    <pre>{JSON.stringify(configuration, undefined, 2)}</pre>
                </div>
            );
        }
    }
    return (
        <div>
            <div>
                {notSelected}
                {form}
            </div>
            <div>
                {submitted}
            </div></div>