{"_id":"accelatrix-ux","_rev":"29-ba4f708933a239d06085ebd97307bf65","name":"accelatrix-ux","dist-tags":{"latest":"1.0.15"},"versions":{"1.0.6":{"name":"accelatrix-ux","version":"1.0.6","keywords":["UX utilities","State management","REST invocation"],"author":{"name":"Miguel@Ferreira-family.org"},"license":"SEE LICENSE IN https://github.com/accelatrix/accelatrix-ux/blob/main/LICENSE.md","_id":"accelatrix-ux@1.0.6","maintainers":[{"name":"accelatrix","email":"Miguel@Ferreira-family.org"}],"homepage":"https://github.com/accelatrix/accelatrix-ux#readme","bugs":{"url":"https://github.com/accelatrix/accelatrix-ux/issues"},"dist":{"shasum":"98070a4029af8d3fb523884a6b24d0997190930a","tarball":"https://registry.npmjs.org/accelatrix-ux/-/accelatrix-ux-1.0.6.tgz","fileCount":7,"integrity":"sha512-Otxq1rvqrT5KnRcW2gr/djZ3NnJQe753dAftWFSlXHVC/Pk2ECR1+qqqpzJ+KC7LgROI15zZojSERtTSRLQzIA==","signatures":[{"sig":"MEUCIC19UR+A2XnhQLsgvvxNCeq2NRhYm5/OLxJRM98tgvHZAiEAkk/Sm9jz5UgwqWziWiVSnkzSSuI8au6PYhfxDUA3j8Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":474933},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"accelatrix","email":"Miguel@Ferreira-family.org"},"repository":{"url":"git+https://github.com/accelatrix/accelatrix-ux.git","type":"git"},"_npmVersion":"10.8.1","description":"UX utilities built on accelatrix","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"devDependencies":{"accelatrix":"^1.7.3","typescript":"^5.0.0"},"peerDependencies":{"accelatrix":"^1.7.3"},"_npmOperationalInternal":{"tmp":"tmp/accelatrix-ux_1.0.6_1774862279713_0.0789966727541418","host":"s3://npm-registry-packages-npm-production"}},"1.0.14":{"name":"accelatrix-ux","version":"1.0.14","keywords":["UX utilities","State management","REST invocation"],"author":{"name":"Miguel@Ferreira-family.org"},"license":"SEE LICENSE IN https://github.com/accelatrix/accelatrix-ux/blob/main/LICENSE.md","_id":"accelatrix-ux@1.0.14","maintainers":[{"name":"accelatrix","email":"Miguel@Ferreira-family.org"}],"homepage":"https://github.com/accelatrix/accelatrix-ux#readme","bugs":{"url":"https://github.com/accelatrix/accelatrix-ux/issues"},"dist":{"shasum":"4f96d5647e61e7f525ff4bf637a4b5b4304fab42","tarball":"https://registry.npmjs.org/accelatrix-ux/-/accelatrix-ux-1.0.14.tgz","fileCount":7,"integrity":"sha512-PYwpRVTcGXtNP7TvSgv/oLd4KOv9hf066GtHvBRCVTWV1f3XXuBtoEbJ585yzKOttVElBliyq9WkyXtMIG3bmw==","signatures":[{"sig":"MEUCIGvVAUPTQ9kxRxcCUWrI7FV04wQrZKVLwbAMdW/sw2VdAiEA7zaGotw2oIY/dPIlqmkOOuPx3bTzuuCZe4IHbEDDCMg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":483328},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"accelatrix","email":"Miguel@Ferreira-family.org"},"repository":{"url":"git+https://github.com/accelatrix/accelatrix-ux.git","type":"git"},"_npmVersion":"10.8.1","description":"UX utilities built on accelatrix","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"devDependencies":{"accelatrix":"^1.7.9","typescript":"^5.0.0"},"peerDependencies":{"accelatrix":"^1.7.9"},"_npmOperationalInternal":{"tmp":"tmp/accelatrix-ux_1.0.14_1780562572763_0.9704648000388587","host":"s3://npm-registry-packages-npm-production"}},"1.0.15":{"name":"accelatrix-ux","version":"1.0.15","description":"UX utilities built on accelatrix","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/accelatrix/accelatrix-ux.git"},"keywords":["UX utilities","State management","REST invocation"],"peerDependencies":{"accelatrix":"^1.7.9"},"devDependencies":{"accelatrix":"^1.7.9","typescript":"^5.0.0"},"author":{"name":"Miguel@Ferreira-family.org"},"license":"SEE LICENSE IN https://github.com/accelatrix/accelatrix-ux/blob/main/LICENSE.md","bugs":{"url":"https://github.com/accelatrix/accelatrix-ux/issues"},"homepage":"https://github.com/accelatrix/accelatrix-ux#readme","_id":"accelatrix-ux@1.0.15","_nodeVersion":"20.16.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-zbPr69CS9zYbR1OLJQhQZP77IbNiVqhHfa7vdm9YLwH3OreEYwb8J45QjkSJHu568ZFEnPLLmPW7cUF4wCIUQw==","shasum":"31a10775be7d3773a40a5322fdba379bc37556b2","tarball":"https://registry.npmjs.org/accelatrix-ux/-/accelatrix-ux-1.0.15.tgz","fileCount":7,"unpackedSize":483328,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIC6WqWgdTjKjVlpE52VnPOGe49zx0IgVo48Owt9Zc//kAiAmxsjbZiPwMyVv0R7tTY8yd3altNKOG//PqSTYk6CwQQ=="}]},"_npmUser":{"name":"accelatrix","email":"Miguel@Ferreira-family.org"},"directories":{},"maintainers":[{"name":"accelatrix","email":"Miguel@Ferreira-family.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/accelatrix-ux_1.0.15_1783342351970_0.9529563410259234"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-08T08:40:34.288Z","modified":"2026-07-06T12:52:32.268Z","1.0.0":"2026-01-08T08:40:34.544Z","1.0.1":"2026-02-25T07:19:05.001Z","1.0.2":"2026-03-03T15:58:01.981Z","1.0.3":"2026-03-21T11:42:09.199Z","1.0.4":"2026-03-23T10:55:29.255Z","1.0.5":"2026-03-24T15:35:01.652Z","1.0.6":"2026-03-30T09:17:59.891Z","1.0.7":"2026-04-01T07:57:17.581Z","1.0.8":"2026-04-04T06:41:07.357Z","1.0.9":"2026-04-09T13:37:32.538Z","1.0.10":"2026-04-10T06:23:30.740Z","1.0.11":"2026-04-11T15:20:28.849Z","1.0.12":"2026-05-01T14:25:34.065Z","1.0.13":"2026-06-03T12:14:24.020Z","1.0.14":"2026-06-04T08:42:52.914Z","1.0.15":"2026-07-06T12:52:32.166Z"},"bugs":{"url":"https://github.com/accelatrix/accelatrix-ux/issues"},"author":{"name":"Miguel@Ferreira-family.org"},"license":"SEE LICENSE IN https://github.com/accelatrix/accelatrix-ux/blob/main/LICENSE.md","homepage":"https://github.com/accelatrix/accelatrix-ux#readme","keywords":["UX utilities","State management","REST invocation"],"repository":{"type":"git","url":"git+https://github.com/accelatrix/accelatrix-ux.git"},"description":"UX utilities built on accelatrix","maintainers":[{"name":"accelatrix","email":"Miguel@Ferreira-family.org"}],"readme":"# Accelatrix UX\r\n\r\n> A set of must-have general abstractions needed in any Web UI project, including state management, input field validators, typed WebApi backend integration among many other goodies.\r\n> v1.0.15 depends on Accelatrix and is compatible with ECMAScript 5, ES6, TypeScript, React, Angular and Vue.\r\n\r\nAccelatrix UX is free. Detailed license at https://github.com/accelatrix/accelatrix-ux/blob/main/LICENSE.md\r\n\r\n\r\n## Putting Accelatrix UX to use\r\n\r\nYou can host the minified file yourself or simply include the latest version hosted by the author:\r\n```html\r\n<script src=\"https://ferreira-family.org/accelatrix/accelatrix-ux.min.js\"></script>\r\n```\r\n\r\nOr you can install this package as a Node module using:\r\n```sh\r\nnpm install accelatrix/ux\r\n```\r\n\r\nOr add it to your .Net project using NuGet:\r\n```sh\r\ndotnet add package Accelatrix-UX\r\n```\r\n\r\nYou can then import Accelatrix in your TS file:\r\n```js\r\nimport Accelatrix from \"accelatrix/ux\";\r\n```\r\n\r\nThe CommonJS syntax is also supported:\r\n```js\r\nconst Accelatrix = require(\"accelatrix/ux\");\r\n```\r\n\r\nIf you are using Vite as your package manager, tell it not to attempt to rename symbols in your vite.config.js file, e.g.:\r\n```js\r\nimport { defineConfig } from 'vite';\r\nimport angular from 'vite-plugin-angular';\r\n\r\nexport default defineConfig({\r\n  plugins: [angular()],\r\n  build: {\r\n    minify: 'esbuild',\r\n    esbuild: {\r\n      legalComments: 'none',\r\n      preserveSymbols: true,\r\n    },\r\n  },\r\n});\r\n```\r\n\r\nIf you are compiling to ES5, make sure to make the compiler aware of the ES6 library in your ts.config file, e.g.:\r\n```json\r\n{\r\n    \"compilerOptions\":\r\n    {\r\n        \"target\": \"es5\",\r\n        \"module\": \"es6\",\r\n        \"moduleResolution\": \"classic\",\r\n        \"typeRoots\": [\"node_modules/@types\"],\r\n        \"lib\": [\"es5\", \"es6\", \"dom\"],\r\n    },\r\n    \"exclude\": [\"node_modules\", \"typings/browser\", \"typings/browser.d.ts\"],\r\n}\r\n```\r\n\r\nIf you are using Visual Studio and compiling to ES5, change your .csproj to include ES6 types, e.g.:\r\n```xml\r\n<PropertyGroup>\r\n  <!-- compile target -->\r\n  <TypeScriptTarget>ES5</TypeScriptTarget>\r\n\r\n  <!-- comma-separated list of libs -->\r\n  <TypeScriptLib>es5,es6,dom</TypeScriptLib>\r\n</PropertyGroup>\r\n```\r\n\r\n\r\n## Augmented HTMLElement\r\n\r\nIf you rely on JQuery or similar to get your DOM work done, you can now achieve pretty much the same directly from HTMLElement and combine it with the functional enumeration features of Accelatrix, e.g.:\r\n\r\n```js\r\nHTMLElement.Create(\"span\").AppendTo(myOtherNode);\r\nHTMLElement.Find(\"div\").Select(z => z.Text()).Where(z => !String.IsNullOrWhiteSpace(z)).Take(10);\r\n\r\nmyHtmlNode.AddClass(\"myClass\").Find(\"option\").GroupBy(z => z.getAttribute(\"value\"))\r\nmyHtmlNode.Parents().TakeWhile(z => !z.Equals(myOtherNode))\r\n```    \r\n\r\nYou can subscribe, and more importantly, unsubscribe to events in a conveninent way in order to prevent memory leaks:\r\n\r\n```js\r\nmyElement.ListToEvent(\"click\", \"MyReference\", evt =>\r\n{\r\n    var me = this; // \"this\" remains the original \"this\" so you never lose context\r\n});\r\n\r\nmyElement.StopEventListening(); // all events are unsubscribed\r\nmyElement.StopEventListening(true); // all events are unsubscribed for all children \r\nmyElement.StopEventListening(\"click\"); // click events are unsubscribed\r\nmyElement.StopEventListening(\"click\", \"MyReference\"); // click events with \"MyReference\" are unsubscribed\r\nmyElement.StopEventListening(null, \"MyReference\", true); // all events tagged as \"MyReference\" are unsubscribed for all children\r\n```\r\n","readmeFilename":"README.md"}