Detalhes do pacote

@cocreate/actions

CoCreate-app320MIT1.21.2

Chain multiple component executions to generate your desired logic, when one action is complete next one will start. The sequence goes until all actions have been completed. Vanilla javascript, easily configured using HTML5 attributes and/or JavaScript AP

actions, chain-functions, cocreate, low-code-framework

readme (leia-me)

CoCreate-actions

Chain multiple component executions to generate your desired logic, when one action is complete next one will start. The sequence goes until all actions have been completed. Vanilla javascript, easily configured using HTML5 attributes and/or JavaScript API. Take it for a spin in our playground!

minified gzip brotli GitHub latest release License Hiring

CoCreate-actions

Docs & Demo

For a complete guide and working demo refer to the doumentation

CDN

<script src="https://cdn.cocreate.app/actions/latest/CoCreate-actions.min.js"></script>
<script src="https://cdn.cocreate.app/actions/latest/CoCreate-actions.min.css"></script>

NPM

$ npm i @cocreate/actions

yarn

$ yarn install @cocreate/actions

Table of Contents

Announcements

All updates to this library are documented in our CHANGELOG and releases. You may also subscribe to email for releases and breaking changes.

Roadmap

If you are interested in the future direction of this project, please take a look at our open issues and pull requests. We would love to hear your feedback.

About

CoCreate-actions is guided and supported by the CoCreate Developer Experience Team.

Please Email the Developer Experience Team here in case of any queries.

CoCreate-actions is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.

How to Contribute

We encourage contribution to our libraries (you might even score some nifty swag), please see our CONTRIBUTING guide for details.

We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create issues and pull requests or merely upvote or comment on existing issues or pull requests.

We appreciate your continued support, thank you!

License

The MIT License (MIT)

changelog (log de mudanças)

1.21.2 (2025-05-01)

Bug Fixes

1.21.1 (2025-04-30)

Bug Fixes

1.21.0 (2025-04-11)

Bug Fixes

  • formating (e955d0e)
  • update observer observe param to type and and attributeName to attributeFilter (b43570a)

Features

  • Observe new actions. listen for end event on element instead of document, and improved handling of submit. (1866f78)

1.20.1 (2024-12-14)

Bug Fixes

  • improved action attribute split and trim using regex (70f5d30)

1.20.0 (2024-11-04)

Bug Fixes

  • pretier.config.js and file formating (68d9595)

Features

  • add prettier.config.js and format files (dca03aa)
  • add prettier.config.js and format files (916ab94)

1.19.1 (2024-08-24)

Bug Fixes

1.19.0 (2024-07-09)

Features

  • dynamically add endEvent uuid for actions with methods (08ab801)

1.18.5 (2024-06-23)

Bug Fixes

1.18.4 (2024-06-23)

Bug Fixes

1.18.3 (2024-06-12)

Bug Fixes

1.18.2 (2024-04-29)

Bug Fixes

  • bump cocreate dependencies (8e2545a)

1.18.1 (2024-04-29)

Bug Fixes

  • check if url is not the same as current prior to applying location.href (ca77556)

1.18.0 (2024-03-18)

Bug Fixes

  • add flag status to trigger next action (3600a6b)

Features

  • read(selector), save(selector), renderValue(selector) actions (a1416c5)

1.17.1 (2024-02-05)

Bug Fixes

1.17.0 (2024-02-03)

Features

  • actions containg '.' will as name and method (7f9cf9c)

1.16.0 (2024-01-08)

Features

  • bumped CoCreate dependencies to their latest versions (5b23e30)

1.15.1 (2023-12-28)

Bug Fixes

1.15.0 (2023-11-25)

Features

  • upgrade dependencies for latest features and fixes (6e2334c)

1.14.0 (2023-11-25)

Bug Fixes

  • pass attributes renamed to state (0019e12)
  • update nav, edit button and css path (c7e4be0)

Features

  • upgrade dependencies for latest features and fixes (5a69e1c)

1.13.0 (2023-11-19)

Features

  • update dependecies for th latest features and bug fixes (3ed4a52)

1.12.4 (2023-11-12)

Bug Fixes

  • bump dependencies for latest features (0788baa)

1.12.3 (2023-11-09)

Bug Fixes

1.12.2 (2023-11-03)

Bug Fixes

  • favicon.ico path (d2c2cba)
  • update dependencies to the lates versions (d27d433)

1.12.1 (2023-10-25)

Bug Fixes

1.12.0 (2023-10-16)

Features

  • return param form: elements.closest('form') (3dc06ac)

1.11.7 (2023-10-14)

Bug Fixes

  • bump dependencies (7f06eb8)
  • link.runLink updated to link.open (04d75e9)

1.11.6 (2023-10-09)

Bug Fixes

1.11.5 (2023-10-09)

Bug Fixes

1.11.4 (2023-10-09)

Bug Fixes

1.11.3 (2023-10-09)

Bug Fixes

  • bump cocreate dependency versions (79f4f86)

1.11.2 (2023-09-18)

Bug Fixes

  • Add path and pathname (0b176a3)
  • Update dCoCreate dpendencies to latest versions (4318d28)

1.11.1 (2023-08-21)

Bug Fixes

1.11.0 (2023-08-21)

Features

  • Update cocreate dependencies for the latest features and bug fixes (2d7044e)

1.10.2 (2023-08-21)

Bug Fixes

1.10.1 (2023-08-20)

Bug Fixes

  • formating (a36720a)
  • replace cdn with /dist (5fec6b7)
  • update workflow (0fb9ed0)
  • update workflow (e14d3c0)
  • update workflow (3bac946)
  • update workflow to use coc upload effectively replacing doc and s3 (a211c35)
  • update workflow to use coc upload effectively replacing doc and s3 (f78aa14)

1.10.0 (2023-08-17)

Features

  • bump cocreate dependencies for the latest updates and features (5213eb9)

1.9.0 (2023-08-16)

Bug Fixes

  • crud attributes renamed (c52563d)
  • if no element return, before checking element properties (702e6b1)
  • Refactor runAction for better readability and clarity (1387318)
  • replace -target -selector (b02b94f)
  • update description (4816470)
  • Update URL verification logic in initActions() (a215ecb)
  • updated actions callback data object (bbb818c)
  • webpack.config and package.json make use of mode=production instead of process.env (148aac1)

Features

  • name attribute and variable renamed to key (00186e1)
  • name can be a string or an array of strings. (1504e20)
  • Refactor element query function in index.js (07e15cf)
  • Refactor implementation of init method to accept an object or an array of objects and process each object to create new action items. (f8a2f9d)
  • support type="submit" and form.action (2bd2e26)

1.8.32 (2023-06-14)

Bug Fixes

1.8.31 (2023-06-11)

Bug Fixes

1.8.30 (2023-06-11)

Bug Fixes

1.8.29 (2023-06-11)

Bug Fixes

1.8.28 (2023-06-11)

Bug Fixes

1.8.27 (2023-06-11)

Bug Fixes

1.8.26 (2023-06-11)

Bug Fixes

1.8.25 (2023-06-11)

Bug Fixes

1.8.24 (2023-06-11)

Bug Fixes

1.8.23 (2023-06-11)

Bug Fixes

  • @cocreate/cli moved to dependencies (be8fa83)

1.8.22 (2023-06-11)

Bug Fixes

1.8.21 (2023-06-11)

Bug Fixes

  • renamed hosts to host. the value can be a string or an array of strings (3e36f7e)

1.8.20 (2023-06-10)

Bug Fixes

1.8.19 (2023-06-10)

Bug Fixes

1.8.18 (2023-06-04)

Bug Fixes

  • Refactor CoCreate.config.js to remove hard-coded credentials (9d065d6)

1.8.17 (2023-06-04)

Bug Fixes

1.8.16 (2023-06-04)

Bug Fixes

1.8.15 (2023-06-04)

Bug Fixes

1.8.14 (2023-06-04)

Bug Fixes

1.8.13 (2023-06-04)

Bug Fixes

  • semantic-release: worklow error solved by running node version 14 (7a4b03b)

1.8.12 (2023-05-21)

Bug Fixes

1.8.11 (2023-05-19)

Bug Fixes

  • update packages to latest version. This commit updates various packages in the dependencies section of the package.json file to their latest published versions, thereby fixing multiple bugs and improving overall performance. (e18a90e)

1.8.10 (2023-05-10)

Bug Fixes

1.8.9 (2023-05-06)

Bug Fixes

1.8.8 (2023-05-01)

Bug Fixes

  • update manifest.json to manifest.webmanifest (4447978)

1.8.7 (2023-05-01)

Bug Fixes

  • replace fontawesome with svg (a52f735)

1.8.6 (2023-04-30)

Bug Fixes

  • fullscreen target updated to fullscreen fullscreen-target (9e5649e)
  • package-lock.json and pnpm-lock.yaml added to .gitignore (cbd2a90)
  • removed toogle fullscreen icons. now using css content (c3d4a9a)

1.8.5 (2023-04-24)

Bug Fixes

1.8.4 (2023-04-24)

Bug Fixes

  • updated workflow to node 16 (dfc2fe7)

1.8.3 (2023-04-24)

Bug Fixes

  • workflow node version updated 16 (50acb1d)

1.8.2 (2023-04-24)

Bug Fixes

1.8.1 (2023-04-24)

Bug Fixes

  • removed uglify.js from dev dependencies (fa29ef3)

1.8.0 (2023-04-24)

Features

1.7.2 (2023-04-13)

Bug Fixes

1.7.1 (2023-04-12)

Bug Fixes

1.7.0 (2023-04-12)

Features

  • apply params to an action(params) (5f61ccf)

1.6.6 (2023-04-11)

Bug Fixes

1.6.5 (2023-04-11)

Bug Fixes

1.6.4 (2023-04-11)

Bug Fixes

  • renamed domans to hosts (f3aa242)

1.6.3 (2023-03-30)

Bug Fixes

1.6.2 (2023-03-16)

Bug Fixes

1.6.1 (2023-03-16)

Bug Fixes

1.6.0 (2023-03-16)

Features

  • replaced get-value and set-value with a super charged version of CoCreate-events (f250677)

1.5.60 (2023-03-15)

Bug Fixes

1.5.59 (2023-02-01)

Bug Fixes

1.5.58 (2023-01-31)

Bug Fixes

1.5.57 (2023-01-30)

Bug Fixes

1.5.56 (2023-01-29)

Bug Fixes

1.5.55 (2023-01-27)

Bug Fixes

1.5.54 (2023-01-13)

Bug Fixes

1.5.53 (2023-01-10)

Bug Fixes

1.5.52 (2023-01-09)

Bug Fixes

1.5.51 (2023-01-06)

Bug Fixes

1.5.50 (2023-01-05)

Bug Fixes

1.5.49 (2023-01-01)

Bug Fixes

1.5.48 (2022-12-31)

Bug Fixes

1.5.47 (2022-12-30)

Bug Fixes

  • update config sources to use template braces with entry on src (4345a73)

1.5.46 (2022-12-29)

Bug Fixes

1.5.45 (2022-12-27)

Bug Fixes

1.5.44 (2022-12-25)

Bug Fixes

1.5.43 (2022-12-23)

Bug Fixes

1.5.42 (2022-12-22)

Bug Fixes

1.5.41 (2022-12-22)

Bug Fixes

  • update demos and bump dependencies (206cfca)

1.5.40 (2022-12-21)

Bug Fixes

1.5.39 (2022-12-20)

Bug Fixes

1.5.38 (2022-12-15)

Bug Fixes

  • add missing dev dependency style-loader (e4f69a1)

1.5.37 (2022-12-13)

Bug Fixes

  • removed un used devDependencies (cefca8f)

1.5.36 (2022-12-13)

Bug Fixes

1.5.35 (2022-12-12)

Bug Fixes

1.5.34 (2022-12-11)

Bug Fixes

1.5.33 (2022-12-09)

Bug Fixes

1.5.32 (2022-12-08)

Bug Fixes

1.5.31 (2022-12-07)

Bug Fixes

1.5.30 (2022-12-04)

Bug Fixes

1.5.29 (2022-12-02)

Bug Fixes

1.5.28 (2022-12-02)

Bug Fixes

1.5.27 (2022-11-28)

Bug Fixes

1.5.26 (2022-11-28)

Bug Fixes

1.5.25 (2022-11-27)

Bug Fixes

1.5.24 (2022-11-26)

Bug Fixes

1.5.23 (2022-11-25)

Bug Fixes

1.5.22 (2022-11-24)

Bug Fixes

1.5.21 (2022-11-23)

Bug Fixes

1.5.20 (2022-11-22)

Bug Fixes

1.5.19 (2022-11-22)

Bug Fixes

  • apply src: {{source}} to CoCreate.config (4461483)

1.5.18 (2022-11-21)

Bug Fixes

1.5.17 (2022-11-21)

Bug Fixes

  • replaced document_id with document._id (03f8201)

1.5.16 (2022-11-21)

Bug Fixes

1.5.15 (2022-11-21)

Bug Fixes

1.5.14 (2022-11-21)

Bug Fixes

  • bump d@cocreate ependencies (a4bac81)

1.5.13 (2022-10-02)

Bug Fixes

1.5.12 (2022-10-02)

Bug Fixes

1.5.11 (2022-10-02)

Bug Fixes

  • bump @cocreate/hosting and @cocreate/socket-client (bb25c84)

1.5.10 (2022-10-01)

Bug Fixes

1.5.9 (2022-10-01)

Bug Fixes

1.5.8 (2022-10-01)

Bug Fixes

1.5.7 (2022-10-01)

Bug Fixes

1.5.6 (2022-09-30)

Bug Fixes

1.5.5 (2022-09-30)

Bug Fixes

1.5.4 (2022-09-30)

Bug Fixes

1.5.3 (2022-09-30)

Bug Fixes

1.5.2 (2022-09-22)

Bug Fixes

1.5.1 (2022-09-01)

Bug Fixes

1.5.0 (2022-07-03)

Features

  • queryDocumentSelectorAll - ability to query iframes and parent of iframes (2e3d725)

1.4.4 (2022-06-18)

Bug Fixes

1.4.3 (2022-06-12)

Bug Fixes

1.4.2 (2022-05-23)

Bug Fixes

1.4.1 (2022-05-17)

Bug Fixes

  • update document_id on link index.css (9d765c2)

1.4.0 (2022-05-14)

Features

  • function readDocumentList has been renamed to readDocuments (e03f39b)

1.3.39 (2022-05-06)

Bug Fixes

  • update config organization_Id to organization_id (98c1825)

1.3.38 (2022-05-03)

Bug Fixes

  • update functions .logic to .link (86b4215)

1.3.37 (2022-03-03)

Bug Fixes

  • update cocreate.config host (9a061fb)

1.3.36 (2022-02-28)

Bug Fixes

1.3.35 (2022-02-24)

Bug Fixes

  • CoCreate.config replace CoCreate.app with * (f2c61fb)

1.3.34 (2022-02-16)

Bug Fixes

1.3.33 (2022-02-16)

Bug Fixes

  • update action param to name (73fc157)

1.3.32 (2022-02-10)

Bug Fixes

1.3.31 (2022-02-07)

Bug Fixes

  • bump dependency versions (9286351)

1.3.30 (2022-02-03)

Bug Fixes

  • replaced show and hide class hidden with attribute hidden (5c554b1)

1.3.29 (2022-02-01)

Bug Fixes

  • update dependency versions (d1b5560)

1.3.28 (2022-01-01)

Bug Fixes

  • get-value attribute value now supports a selector added # to all values currently in get-value attributes (f151a22)

1.3.27 (2022-01-01)

Bug Fixes

  • removed data- from attributes (bcc0257)

1.3.26 (2021-12-15)

Bug Fixes

1.3.25 (2021-12-14)

Bug Fixes

1.3.24 (2021-11-27)

Bug Fixes

1.3.23 (2021-11-27)

Bug Fixes

1.3.22 (2021-11-27)

Bug Fixes

  • update docs api and cocreateJS script (d457e32)

1.3.21 (2021-11-26)

Bug Fixes

1.3.20 (2021-11-26)

Bug Fixes

  • update package name to actions (f497131)

1.3.19 (2021-11-26)

Bug Fixes

1.3.18 (2021-11-23)

Bug Fixes

1.3.17 (2021-11-20)

Bug Fixes

  • updated script tags and link tags (7029b0b)

1.3.16 (2021-11-20)

Bug Fixes

1.3.15 (2021-11-19)

Bug Fixes

1.3.14 (2021-11-18)

Bug Fixes

1.3.13 (2021-11-16)

Bug Fixes

1.3.12 (2021-11-15)

Bug Fixes

1.3.11 (2021-11-11)

Bug Fixes

1.3.10 (2021-11-06)

Bug Fixes

1.3.9 (2021-11-05)

Bug Fixes

1.3.8 (2021-11-04)

Bug Fixes

1.3.7 (2021-11-04)

Bug Fixes

1.3.6 (2021-11-01)

Bug Fixes

  • update package dependencies (dd53dd2)

1.3.5 (2021-10-29)

Bug Fixes

1.3.4 (2021-10-17)

Bug Fixes

1.3.3 (2021-10-16)

Bug Fixes

  • update socket package to fix bug in docs (f03b236)

1.3.2 (2021-10-15)

Bug Fixes

1.3.1 (2021-10-15)

Bug Fixes

1.3.0 (2021-10-14)

Bug Fixes

Features

  • actions now support add additional params. A map actionParams are attached to the element/btn. Useexample actions='validate(#input)' then validation script can use param as a selector (2485f58)

1.2.29 (2021-10-13)

Bug Fixes

1.2.28 (2021-10-13)

Bug Fixes

1.2.27 (2021-10-13)

Bug Fixes

1.2.26 (2021-10-06)

Bug Fixes

1.2.25 (2021-10-05)

Bug Fixes

  • update dependencies (4316c21)
  • website_id in CoCreate.config (4d11f37)

1.2.24 (2021-10-04)

Bug Fixes

1.2.23 (2021-10-01)

Bug Fixes

1.2.22 (2021-10-01)

Bug Fixes

1.2.21 (2021-10-01)

Bug Fixes

1.2.20 (2021-09-28)

Bug Fixes

1.2.19 (2021-09-16)

Bug Fixes

1.2.18 (2021-09-14)

Bug Fixes

  • add cocreate.app to domains (bfc6cd8)

1.2.17 (2021-09-13)

Bug Fixes

1.2.16 (2021-09-12)

Bug Fixes

  • update sidenav to use resize and toggle (81fae38)

1.2.15 (2021-09-09)

Bug Fixes

  • update dependency @cocreate/docs (bca8015)

1.2.14 (2021-09-09)

Bug Fixes

1.2.13 (2021-09-09)

Bug Fixes

1.2.12 (2021-09-09)

Bug Fixes

  • CoCreate.config directory, path, name and public (1999480)

1.2.11 (2021-09-08)

Bug Fixes

1.2.10 (2021-09-04)

Bug Fixes

1.2.9 (2021-08-31)

Bug Fixes

1.2.8 (2021-08-27)

Bug Fixes

1.2.7 (2021-08-23)

Bug Fixes

  • update package versions (6767164)

1.2.6 (2021-08-22)

Bug Fixes

  • removed data- from main-content, clone, filter-value_type (34686d1)

1.2.5 (2021-08-22)

Bug Fixes

1.2.4 (2021-08-22)

Bug Fixes

1.2.3 (2021-08-14)

Bug Fixes

1.2.2 (2021-08-02)

Bug Fixes

  • remove data- from attributes (6cfd9c7)
  • update data-fullscreen to fullscreen (790cb37)

1.2.1 (2021-07-28)

Bug Fixes

  • remove data- from fetch, pass and filter (bb2a3a6)

1.2.0 (2021-07-28)

Features

  • add new is{attribute} system and remove data- from attributtes (bcfb34d)

1.1.19 (2021-07-22)

Bug Fixes

  • run link if modal, pass_to (cf0e8f2)

1.1.18 (2021-07-17)

Bug Fixes

1.1.17 (2021-07-14)

Bug Fixes

1.1.16 (2021-07-13)

Bug Fixes

  • add yarn lockfile to git ignore (36586a1)
  • remove yarn.lock (a9cf99c)

1.1.15 (2021-07-10)

Bug Fixes

1.1.14 (2021-07-07)

Bug Fixes

  • update package versions (29b9079)

1.1.13 (2021-06-30)

Bug Fixes

1.1.12 (2021-06-30)

Bug Fixes

  • automated and manual workflows (b750e44)

1.1.11 (2021-06-25)

Bug Fixes

  • latest version numbers applied to all cocreate packages (f197486)

1.1.10 (2021-06-24)

Bug Fixes

  • package versioningto 1.0.0 (f4adf9c)

1.1.9 (2021-06-24)

Bug Fixes

1.1.8 (2021-06-23)

Bug Fixes

  • update packge version to latest (cd54b69)

1.1.7 (2021-06-20)

Bug Fixes

  • new mutaionObserver init function (371c568)

1.1.6 (2021-06-16)

Bug Fixes

1.1.5 (2021-05-08)

Bug Fixes

  • add css auto parse and save to docs. (952c5e6)

1.1.4 (2021-04-27)

Bug Fixes

  • Update to readme, demo, added cdn scripts (13259fe)

1.1.3 (2021-04-23)

Bug Fixes

  • readme and documentation. Removed securitykeys (8838306)

1.1.2 (2021-04-19)

Bug Fixes

1.1.1 (2021-04-19)

Bug Fixes

  • ci and build process (0596ab1)
  • npm publish and cdn deployment (47119a0)

1.1.0 (2021-04-10)

Features

  • Initial Release (b2d09b2)
  • Initial Release (aa22ac3)
  • set timeout, listen to events and chain togeter multiple actions (cb4055e)

1.0.5 (2021-04-04)

Bug Fixes

  • update socket to socket-lient and crud to crud client" (d08614b)

1.0.4 (2021-03-29)

Bug Fixes

1.0.3 (2021-01-25)

Bug Fixes

  • init by observer and upadte git workflow (3e1bd72)

1.0.2 (2021-01-22)

Bug Fixes

  • (improved chaining events) (1a4f61f)

1.0.1 (2021-01-22)

Bug Fixes

1.0.0 (2021-01-22)

Features

CHANGELOG