UNPKG

@talend/react-containers

Version:

Provide connected components aka containers for @talend/react-cmf based on @talend/react-components.

29 lines (27 loc) 929 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.COMPONENT_FORM_SET_DIRTY = void 0; exports.setComponentFormDirtyState = setComponentFormDirtyState; const COMPONENT_FORM_SET_DIRTY = exports.COMPONENT_FORM_SET_DIRTY = 'COMPONENT_FORM_SET_DIRTY'; /** * This action will change for a given componentForm name his dirty status * @param {string} componentId the component form id * @param {boolean} dirty the dirty state to apply */ function setComponentFormDirtyState(componentId, dirty) { if (typeof dirty !== 'boolean') { throw new Error(`ComponentForm dirty state should be a boolean, received "${dirty}"(${typeof dirty}) instead`); } return { componentId, dirty, type: COMPONENT_FORM_SET_DIRTY }; } var _default = exports.default = { setComponentFormDirtyState, COMPONENT_FORM_SET_DIRTY }; //# sourceMappingURL=ComponentForm.actions.js.map