@decaf-ts/for-angular 0.1.1 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/.editorconfig +31 -0
  2. package/.gitlab-ci.yml +197 -0
  3. package/.hintrc +19 -0
  4. package/.prettierrc +49 -0
  5. package/.snyk +13 -0
  6. package/LICENSE.md +260 -0
  7. package/angular.json +274 -0
  8. package/bs-config.json +5 -0
  9. package/cli-module.js.map +1 -0
  10. package/dist/for-angular/cli/cli-module.d.ts +22 -0
  11. package/dist/for-angular/cli/cli-module.d.ts.map +1 -0
  12. package/dist/for-angular/cli/cli-module.js +131 -0
  13. package/dist/for-angular/cli/cli-module.js.map +1 -0
  14. package/dist/lib/README.md +117 -0
  15. package/{fesm2022 → dist/lib/fesm2022}/decaf-ts-for-angular.mjs +93 -109
  16. package/dist/lib/fesm2022/decaf-ts-for-angular.mjs.map +1 -0
  17. package/{index.d.ts → dist/lib/index.d.ts} +6 -5
  18. package/eslint.config.mjs +101 -0
  19. package/ionic.config.json +14 -0
  20. package/jest.config.ts +52 -0
  21. package/jest.setup.ts +50 -0
  22. package/karma.conf.js +50 -0
  23. package/ng-package.json +16 -0
  24. package/ngsw-config.json +30 -0
  25. package/package.json +86 -17
  26. package/playwright.config.ts +80 -0
  27. package/resources/favicon.png +0 -0
  28. package/resources/favicon.svg +29 -0
  29. package/resources/icon-background.png +0 -0
  30. package/resources/icon-foreground.png +0 -0
  31. package/resources/icon-only.png +0 -0
  32. package/resources/icon-only.svg +29 -0
  33. package/resources/splash-dark.png +0 -0
  34. package/resources/splash-dark2.png +0 -0
  35. package/resources/splash.png +0 -0
  36. package/resources/splash2.png +0 -0
  37. package/resources/touch-icon.svg +29 -0
  38. package/schematics/README.md +28 -0
  39. package/schematics/collection.json +20 -0
  40. package/schematics/package-lock.json +1501 -0
  41. package/schematics/package.json +37 -0
  42. package/schematics/src/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.__style__.template +0 -0
  43. package/schematics/src/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.html.template +3 -0
  44. package/schematics/src/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.spec.ts.template +40 -0
  45. package/schematics/src/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template +37 -0
  46. package/schematics/src/component/files/__name@dasherize@if-flat__/__name@dasherize__.module.ts.template +14 -0
  47. package/schematics/src/component/index.js +146 -0
  48. package/schematics/src/component/schema.js +2 -0
  49. package/schematics/src/component/schema.json +101 -0
  50. package/schematics/src/page/files/__name@dasherize__.page.html.template +15 -0
  51. package/schematics/src/page/files/__name@dasherize__.page.scss.template +0 -0
  52. package/schematics/src/page/files/__name@dasherize__.page.ts.template +19 -0
  53. package/schematics/src/page/index.js +71 -0
  54. package/schematics/src/page/schema.json +87 -0
  55. package/schematics/src/schematics/index.js +11 -0
  56. package/schematics/src/schematics/index_spec.js +13 -0
  57. package/schematics/src/util/ast-util.js +517 -0
  58. package/schematics/src/util/change.js +96 -0
  59. package/schematics/src/util/index.js +14 -0
  60. package/settings.json +112 -0
  61. package/tsconfig.app.json +22 -0
  62. package/tsconfig.cli.json +82 -0
  63. package/tsconfig.lib.json +14 -0
  64. package/tsconfig.lib.prod.json +10 -0
  65. package/tsconfig.spec.json +22 -0
  66. package/webpack.config.js +10 -0
  67. package/workdocs/1-Header.md +5 -0
  68. package/workdocs/2-Badges.md +30 -0
  69. package/workdocs/4-Description.md +4 -0
  70. package/workdocs/5-HowToUse.md +27 -0
  71. package/workdocs/6-Related.md +7 -0
  72. package/workdocs/7-Social.md +5 -0
  73. package/workdocs/99-Footer.md +28 -0
  74. package/workdocs/Readme.md +12 -0
  75. package/workdocs/assets/apple-touch-icon.png +0 -0
  76. package/workdocs/assets/decaf-logo.svg +54 -0
  77. package/workdocs/assets/favicon.png +0 -0
  78. package/workdocs/assets/slogans.json +182 -0
  79. package/workdocs/confluence/.markdown-confluence.template.json +6 -0
  80. package/workdocs/confluence/Angular Module.md +5 -0
  81. package/workdocs/drawings/diagram.drawio +24 -0
  82. package/workdocs/prompts/bulk.md +122 -0
  83. package/workdocs/prompts/code.md +47 -0
  84. package/workdocs/prompts/documentation.md +146 -0
  85. package/workdocs/prompts/uml.md +11 -0
  86. package/workdocs/readme-md.json +6 -0
  87. package/workdocs/reports/CHANGELOG.md +12 -0
  88. package/workdocs/reports/DEPENDENCIES.md +213 -0
  89. package/workdocs/reports/RELEASE_NOTES.md +24 -0
  90. package/workdocs/reports/coverage/.gitkeep +0 -0
  91. package/workdocs/reports/coverage/clover.xml +4110 -0
  92. package/workdocs/reports/coverage/coverage-final.json +76 -0
  93. package/workdocs/reports/coverage/lcov-report/base.css +224 -0
  94. package/workdocs/reports/coverage/lcov-report/block-navigation.js +87 -0
  95. package/workdocs/reports/coverage/lcov-report/favicon.png +0 -0
  96. package/workdocs/reports/coverage/lcov-report/index.html +551 -0
  97. package/workdocs/reports/coverage/lcov-report/prettify.css +1 -0
  98. package/workdocs/reports/coverage/lcov-report/prettify.js +2 -0
  99. package/workdocs/reports/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  100. package/workdocs/reports/coverage/lcov-report/sorter.js +210 -0
  101. package/workdocs/reports/coverage/lcov-report/src/app/models/CategoryModel.ts.html +277 -0
  102. package/workdocs/reports/coverage/lcov-report/src/app/models/DemoModel.ts.html +427 -0
  103. package/workdocs/reports/coverage/lcov-report/src/app/models/UserModel.ts.html +226 -0
  104. package/workdocs/reports/coverage/lcov-report/src/app/models/index.html +146 -0
  105. package/workdocs/reports/coverage/lcov-report/src/cli-module.ts.html +502 -0
  106. package/workdocs/reports/coverage/lcov-report/src/environments/environment.ts.html +166 -0
  107. package/workdocs/reports/coverage/lcov-report/src/environments/index.html +116 -0
  108. package/workdocs/reports/coverage/lcov-report/src/index.html +191 -0
  109. package/workdocs/reports/coverage/lcov-report/src/karma-test.ts.html +121 -0
  110. package/workdocs/reports/coverage/lcov-report/src/lib/components/card/card.component.ts.html +625 -0
  111. package/workdocs/reports/coverage/lcov-report/src/lib/components/card/index.html +116 -0
  112. package/workdocs/reports/coverage/lcov-report/src/lib/components/component-renderer/component-renderer.component.ts.html +772 -0
  113. package/workdocs/reports/coverage/lcov-report/src/lib/components/component-renderer/index.html +116 -0
  114. package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-field/crud-field.component.ts.html +2698 -0
  115. package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-field/index.html +116 -0
  116. package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-form/constants.ts.html +133 -0
  117. package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-form/crud-form.component.ts.html +346 -0
  118. package/workdocs/reports/coverage/lcov-report/src/lib/components/crud-form/index.html +116 -0
  119. package/workdocs/reports/coverage/lcov-report/src/lib/components/empty-state/empty-state.component.ts.html +1264 -0
  120. package/workdocs/reports/coverage/lcov-report/src/lib/components/empty-state/index.html +116 -0
  121. package/workdocs/reports/coverage/lcov-report/src/lib/components/fieldset/fieldset.component.ts.html +2965 -0
  122. package/workdocs/reports/coverage/lcov-report/src/lib/components/fieldset/index.html +116 -0
  123. package/workdocs/reports/coverage/lcov-report/src/lib/components/file-upload/file-upload.component.ts.html +2263 -0
  124. package/workdocs/reports/coverage/lcov-report/src/lib/components/file-upload/index.html +116 -0
  125. package/workdocs/reports/coverage/lcov-report/src/lib/components/filter/filter.component.ts.html +2485 -0
  126. package/workdocs/reports/coverage/lcov-report/src/lib/components/filter/index.html +116 -0
  127. package/workdocs/reports/coverage/lcov-report/src/lib/components/for-angular-components.module.ts.html +259 -0
  128. package/workdocs/reports/coverage/lcov-report/src/lib/components/icon/icon.component.ts.html +358 -0
  129. package/workdocs/reports/coverage/lcov-report/src/lib/components/icon/index.html +116 -0
  130. package/workdocs/reports/coverage/lcov-report/src/lib/components/index.html +131 -0
  131. package/workdocs/reports/coverage/lcov-report/src/lib/components/index.ts.html +181 -0
  132. package/workdocs/reports/coverage/lcov-report/src/lib/components/layout/index.html +116 -0
  133. package/workdocs/reports/coverage/lcov-report/src/lib/components/layout/layout.component.ts.html +943 -0
  134. package/workdocs/reports/coverage/lcov-report/src/lib/components/list/index.html +116 -0
  135. package/workdocs/reports/coverage/lcov-report/src/lib/components/list/list.component.ts.html +4261 -0
  136. package/workdocs/reports/coverage/lcov-report/src/lib/components/list-item/index.html +116 -0
  137. package/workdocs/reports/coverage/lcov-report/src/lib/components/list-item/list-item.component.ts.html +1741 -0
  138. package/workdocs/reports/coverage/lcov-report/src/lib/components/modal/index.html +116 -0
  139. package/workdocs/reports/coverage/lcov-report/src/lib/components/modal/modal.component.ts.html +1984 -0
  140. package/workdocs/reports/coverage/lcov-report/src/lib/components/model-renderer/index.html +116 -0
  141. package/workdocs/reports/coverage/lcov-report/src/lib/components/model-renderer/model-renderer.component.ts.html +373 -0
  142. package/workdocs/reports/coverage/lcov-report/src/lib/components/pagination/index.html +116 -0
  143. package/workdocs/reports/coverage/lcov-report/src/lib/components/pagination/pagination.component.ts.html +1165 -0
  144. package/workdocs/reports/coverage/lcov-report/src/lib/components/searchbar/index.html +116 -0
  145. package/workdocs/reports/coverage/lcov-report/src/lib/components/searchbar/searchbar.component.ts.html +1774 -0
  146. package/workdocs/reports/coverage/lcov-report/src/lib/components/stepped-form/index.html +116 -0
  147. package/workdocs/reports/coverage/lcov-report/src/lib/components/stepped-form/stepped-form.component.ts.html +1219 -0
  148. package/workdocs/reports/coverage/lcov-report/src/lib/components/table/index.html +116 -0
  149. package/workdocs/reports/coverage/lcov-report/src/lib/components/table/table.component.ts.html +988 -0
  150. package/workdocs/reports/coverage/lcov-report/src/lib/directives/NgxSvgDirective.ts.html +163 -0
  151. package/workdocs/reports/coverage/lcov-report/src/lib/directives/collapsable.directive.ts.html +268 -0
  152. package/workdocs/reports/coverage/lcov-report/src/lib/directives/index.html +131 -0
  153. package/workdocs/reports/coverage/lcov-report/src/lib/directives/index.ts.html +91 -0
  154. package/workdocs/reports/coverage/lcov-report/src/lib/engine/DynamicModule.ts.html +133 -0
  155. package/workdocs/reports/coverage/lcov-report/src/lib/engine/MediaService.ts.html +142 -0
  156. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxBaseComponent.ts.html +2194 -0
  157. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxComponentDirective.ts.html +3430 -0
  158. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxCrudFormField.ts.html +721 -0
  159. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxDecafComponentDirective.ts.html +1864 -0
  160. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxDecafFormFieldDirective.ts.html +952 -0
  161. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxDecafFormService.ts.html +3211 -0
  162. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxEventHandler.ts.html +307 -0
  163. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxFormDirective.ts.html +1366 -0
  164. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxFormFieldDirective.ts.html +1960 -0
  165. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxFormService.ts.html +3004 -0
  166. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxModelPageDirective.ts.html +1672 -0
  167. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxPageDirective.ts.html +748 -0
  168. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxParentComponentDirective.ts.html +775 -0
  169. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxRenderableComponentDirective.ts.html +727 -0
  170. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxRenderingEngine.ts.html +2005 -0
  171. package/workdocs/reports/coverage/lcov-report/src/lib/engine/NgxRepositoryDirective.ts.html +1561 -0
  172. package/workdocs/reports/coverage/lcov-report/src/lib/engine/ValidatorFactory.ts.html +817 -0
  173. package/workdocs/reports/coverage/lcov-report/src/lib/engine/constants.ts.html +1120 -0
  174. package/workdocs/reports/coverage/lcov-report/src/lib/engine/decorators.ts.html +376 -0
  175. package/workdocs/reports/coverage/lcov-report/src/lib/engine/helpers.ts.html +676 -0
  176. package/workdocs/reports/coverage/lcov-report/src/lib/engine/index.html +356 -0
  177. package/workdocs/reports/coverage/lcov-report/src/lib/engine/index.ts.html +160 -0
  178. package/workdocs/reports/coverage/lcov-report/src/lib/engine/overrides.ts.html +499 -0
  179. package/workdocs/reports/coverage/lcov-report/src/lib/for-angular-common.module.ts.html +298 -0
  180. package/workdocs/reports/coverage/lcov-report/src/lib/helpers/index.html +131 -0
  181. package/workdocs/reports/coverage/lcov-report/src/lib/helpers/index.ts.html +121 -0
  182. package/workdocs/reports/coverage/lcov-report/src/lib/helpers/utils.ts.html +1603 -0
  183. package/workdocs/reports/coverage/lcov-report/src/lib/i18n/FakeLoader.ts.html +157 -0
  184. package/workdocs/reports/coverage/lcov-report/src/lib/i18n/Loader.ts.html +826 -0
  185. package/workdocs/reports/coverage/lcov-report/src/lib/i18n/index.html +146 -0
  186. package/workdocs/reports/coverage/lcov-report/src/lib/i18n/index.ts.html +91 -0
  187. package/workdocs/reports/coverage/lcov-report/src/lib/index.html +131 -0
  188. package/workdocs/reports/coverage/lcov-report/src/lib/public-apis.ts.html +157 -0
  189. package/workdocs/reports/coverage/lcov-report/src/lib/services/NgxFormService.ts.html +3460 -0
  190. package/workdocs/reports/coverage/lcov-report/src/lib/services/NgxMediaService.ts.html +1420 -0
  191. package/workdocs/reports/coverage/lcov-report/src/lib/services/NgxRouterService.ts.html +1231 -0
  192. package/workdocs/reports/coverage/lcov-report/src/lib/services/NgxTranslateService.ts.html +214 -0
  193. package/workdocs/reports/coverage/lcov-report/src/lib/services/index.html +176 -0
  194. package/workdocs/reports/coverage/lcov-report/src/lib/services/index.ts.html +91 -0
  195. package/workdocs/reports/coverage/lcov-report/src/lib/utils/DecafFakerRepository.ts.html +571 -0
  196. package/workdocs/reports/coverage/lcov-report/src/lib/utils/helpers.ts.html +1663 -0
  197. package/workdocs/reports/coverage/lcov-report/src/lib/utils/index.html +146 -0
  198. package/workdocs/reports/coverage/lcov-report/src/lib/utils/index.ts.html +124 -0
  199. package/workdocs/reports/coverage/lcov-report/src/main.ts.html +100 -0
  200. package/workdocs/reports/coverage/lcov-report/src/polyfills.ts.html +271 -0
  201. package/workdocs/reports/coverage/lcov-report/src/stories/Configure.stories.ts.html +1156 -0
  202. package/workdocs/reports/coverage/lcov-report/src/stories/button.component.ts.html +229 -0
  203. package/workdocs/reports/coverage/lcov-report/src/stories/button.stories.ts.html +235 -0
  204. package/workdocs/reports/coverage/lcov-report/src/stories/crud-field.stories.ts.html +325 -0
  205. package/workdocs/reports/coverage/lcov-report/src/stories/header.stories.ts.html +181 -0
  206. package/workdocs/reports/coverage/lcov-report/src/stories/index.html +281 -0
  207. package/workdocs/reports/coverage/lcov-report/src/stories/list.stories.ts.html +289 -0
  208. package/workdocs/reports/coverage/lcov-report/src/stories/login.page.stories.ts.html +175 -0
  209. package/workdocs/reports/coverage/lcov-report/src/stories/model-renderer.stories.ts.html +259 -0
  210. package/workdocs/reports/coverage/lcov-report/src/stories/page.component.ts.html +331 -0
  211. package/workdocs/reports/coverage/lcov-report/src/stories/page.stories.ts.html +193 -0
  212. package/workdocs/reports/coverage/lcov-report/src/stories/setup.ts.html +127 -0
  213. package/workdocs/reports/coverage/lcov-report/src/stories/utils.ts.html +247 -0
  214. package/workdocs/reports/coverage/lcov-report/src/tests/index.html +116 -0
  215. package/workdocs/reports/coverage/lcov-report/src/tests/karmaErrorParser.ts.html +190 -0
  216. package/workdocs/reports/coverage/lcov-report/src/typings.d.ts.html +88 -0
  217. package/workdocs/reports/coverage/lcov-report/src/zone-flags.ts.html +103 -0
  218. package/workdocs/reports/coverage/lcov.info +7917 -0
  219. package/workdocs/reports/data/.gitkeep +1 -0
  220. package/workdocs/reports/html/.gitkeep +0 -0
  221. package/workdocs/reports/html/jest-html-reporters-attach/test-report/index.js +3 -0
  222. package/workdocs/reports/html/jest-html-reporters-attach/test-report/result.js +1 -0
  223. package/workdocs/reports/html/test-report.html +1 -0
  224. package/workdocs/reports/images/.gitkeep +1 -0
  225. package/workdocs/reports/jest.coverage.config.ts +43 -0
  226. package/workdocs/reports/junit/junit-report.xml +91 -0
  227. package/workdocs/resources/.gitlock +0 -0
  228. package/workdocs/resources/diagram-Actor.png +0 -0
  229. package/workdocs/resources/diagram-banner.png +0 -0
  230. package/workdocs/resources/diagram.png +0 -0
  231. package/workdocs/tutorials/Contributing.md +64 -0
  232. package/workdocs/tutorials/Documentation.md +340 -0
  233. package/workdocs/tutorials/For Developers.md +337 -0
  234. package/workdocs/uml/diagram.puml +11 -0
  235. package/www/1049.10b030f0de36543b.js +1 -0
  236. package/www/1102.67cedfb3e29f0a05.js +1 -0
  237. package/www/1107.6454396befef800d.js +1 -0
  238. package/www/1459.cabc18e941afa5d7.js +1 -0
  239. package/www/1577.5221deebe3501e43.js +1 -0
  240. package/www/2075.b6dc4fbb89dd6afc.js +1 -0
  241. package/www/2348.c4cc27dadbec70ec.js +1 -0
  242. package/www/2375.318d0b24ab346271.js +1 -0
  243. package/www/2415.618d6968ffda319c.js +1 -0
  244. package/www/2460.1d97c6f48b898ee2.js +1 -0
  245. package/www/2560.2e7000dcf80b6b2c.js +1 -0
  246. package/www/2585.dffa5649fffafb44.js +1 -0
  247. package/www/2885.d99b86afd1ff7aa8.js +1 -0
  248. package/www/3162.bbc401f4a5f82460.js +1 -0
  249. package/www/323.f64c512be5c8d797.js +1 -0
  250. package/www/3238.a3e7e8004c6b6667.js +1 -0
  251. package/www/3506.8c03f5589b33a4a6.js +1 -0
  252. package/www/3511.56b7e49bb6c2c936.js +1 -0
  253. package/www/3519.84fbb67dc803f702.js +1 -0
  254. package/www/3675.7ebfdcf145052232.js +1 -0
  255. package/www/3814.765c1794e1be63de.js +1 -0
  256. package/www/3rdpartylicenses.txt +1344 -0
  257. package/www/4171.a974bdbf9c97e4e1.js +1 -0
  258. package/www/4183.41ef1def450a2cc0.js +1 -0
  259. package/www/4406.0b2dd3839b8c1417.js +1 -0
  260. package/www/441.e1031657c7e5f0ff.js +1 -0
  261. package/www/4463.6ad7b857e5f34009.js +1 -0
  262. package/www/4591.42f34534d38b9b31.js +1 -0
  263. package/www/4699.8df8ea9806163d4c.js +1 -0
  264. package/www/5100.ed6483c55a157d67.js +1 -0
  265. package/www/5193.15ea6938534eceb1.js +1 -0
  266. package/www/5197.6733853529768a45.js +1 -0
  267. package/www/5222.8439a641c2c4b1c1.js +1 -0
  268. package/www/5373.d7878f708309f038.js +1 -0
  269. package/www/5467.53f5cce977c2e28b.js +1 -0
  270. package/www/5712.b08cf436ee8145ce.js +1 -0
  271. package/www/5887.3d038f564e925abb.js +1 -0
  272. package/www/5949.37330f20e95dee79.js +1 -0
  273. package/www/6024.c10cc3d1b341c748.js +1 -0
  274. package/www/6433.360fcff952bde822.js +1 -0
  275. package/www/6499.60169da9869db697.js +1 -0
  276. package/www/6521.fab1f34bfe6b8200.js +1 -0
  277. package/www/6631.eaa711da6e0aeed9.js +1 -0
  278. package/www/6717.b4731255038304cd.js +1 -0
  279. package/www/6840.7317cd962ab23932.js +1 -0
  280. package/www/7030.d115d82ca7468a4e.js +1 -0
  281. package/www/7076.cce20ed5c79ff305.js +1 -0
  282. package/www/7179.c0545989ce869b3d.js +1 -0
  283. package/www/7240.69aeb484d78eb24d.js +1 -0
  284. package/www/7372.94c62459e34f7303.js +1 -0
  285. package/www/7402.983a5ecff61e9a5d.js +1 -0
  286. package/www/7428.527ac48035a2f915.js +1 -0
  287. package/www/7676.d7db23d350e4b096.js +1 -0
  288. package/www/770.80af87d5eb0075d3.js +1 -0
  289. package/www/7720.0701576cb9966779.js +1 -0
  290. package/www/7927.ee869d0dc478250a.js +1 -0
  291. package/www/8066.894688fbb2e5c832.js +1 -0
  292. package/www/8193.7f09ecd40b6d42c2.js +1 -0
  293. package/www/8255.158098a6302c91c2.js +1 -0
  294. package/www/8314.596c1ccf26b9c93a.js +1 -0
  295. package/www/8357.c5406b92e6933d7a.js +1 -0
  296. package/www/8477.a3ccc11c25a642d3.js +1 -0
  297. package/www/8487.93b6f7465ae1b7ac.js +1 -0
  298. package/www/8584.b77ad478a5a7ac2a.js +1 -0
  299. package/www/8805.a87413652185ff8f.js +1 -0
  300. package/www/8814.b489a78ae8e926c4.js +1 -0
  301. package/www/8970.234b3db1f97528fe.js +1 -0
  302. package/www/9013.c2e6ba17a915bdd6.js +1 -0
  303. package/www/9073.16c4e42482d55a3c.js +1 -0
  304. package/www/9344.7d2d24b194b794e2.js +1 -0
  305. package/www/9364.9a028036dd89e3e7.js +1 -0
  306. package/www/944.7e4317348c48d4f4.js +1 -0
  307. package/www/964.9a979e1c1aad0f5b.js +1 -0
  308. package/www/9657.8c3589a0aff521c0.js +1 -0
  309. package/www/9956.2d00a2153e9a7799.js +1 -0
  310. package/www/9977.068cd5561462bc99.js +1 -0
  311. package/www/assets/i18n/en.json +210 -0
  312. package/www/assets/i18n/ew/en.json +346 -0
  313. package/www/assets/i18n/pt.json +186 -0
  314. package/www/assets/icons/icon-128.webp +0 -0
  315. package/www/assets/icons/icon-192.webp +0 -0
  316. package/www/assets/icons/icon-256.webp +0 -0
  317. package/www/assets/icons/icon-48.webp +0 -0
  318. package/www/assets/icons/icon-512.webp +0 -0
  319. package/www/assets/icons/icon-72.webp +0 -0
  320. package/www/assets/icons/icon-96.webp +0 -0
  321. package/www/assets/images/angular-logo.svg +45 -0
  322. package/www/assets/images/apple-touch-icon.png +0 -0
  323. package/www/assets/images/decaf-logo-black.svg +22 -0
  324. package/www/assets/images/decaf-logo-contrast.svg +54 -0
  325. package/www/assets/images/decaf-logo-white.svg +22 -0
  326. package/www/assets/images/decaf-logo.svg +54 -0
  327. package/www/assets/images/ew/product.txt +1 -0
  328. package/www/assets/images/favicon-contrast.svg +7 -0
  329. package/www/assets/images/favicon.png +0 -0
  330. package/www/assets/images/favicon.svg +29 -0
  331. package/www/assets/images/icons/document.svg +7 -0
  332. package/www/assets/images/icons/edit.svg +1 -0
  333. package/www/assets/images/icons/logout.svg +4 -0
  334. package/www/assets/images/icons/menu-collapse.svg +5 -0
  335. package/www/assets/images/icons/menu.svg +3 -0
  336. package/www/assets/images/icons/moon-stars.svg +5 -0
  337. package/www/assets/images/icons/trash.svg +1 -0
  338. package/www/cli-module.ts +139 -0
  339. package/www/common.e50b5f8708aca9a5.js +1 -0
  340. package/www/index.html +29 -0
  341. package/www/main.6144bf417dec1977.js +1 -0
  342. package/www/polyfills.4c1e087fffe784e8.js +1 -0
  343. package/www/runtime.d8dcb0932f88fe3c.js +1 -0
  344. package/www/styles.5a3cd83eba16afc9.css +4 -0
  345. package/www/tabler-icons.bfabe54eef86ae62.woff +0 -0
  346. package/www/tabler-icons.d9f65ab9439b4ffc.ttf +0 -0
  347. package/www/tabler-icons.f17d2c3b34a5deaa.woff2 +0 -0
  348. package/fesm2022/decaf-ts-for-angular.mjs.map +0 -1
  349. /package/{assets → dist/lib/assets}/i18n/en.json +0 -0
  350. /package/{assets → dist/lib/assets}/i18n/ew/en.json +0 -0
  351. /package/{assets → dist/lib/assets}/i18n/pt.json +0 -0
  352. /package/{assets → dist/lib/assets}/icons/icon-128.webp +0 -0
  353. /package/{assets → dist/lib/assets}/icons/icon-192.webp +0 -0
  354. /package/{assets → dist/lib/assets}/icons/icon-256.webp +0 -0
  355. /package/{assets → dist/lib/assets}/icons/icon-48.webp +0 -0
  356. /package/{assets → dist/lib/assets}/icons/icon-512.webp +0 -0
  357. /package/{assets → dist/lib/assets}/icons/icon-72.webp +0 -0
  358. /package/{assets → dist/lib/assets}/icons/icon-96.webp +0 -0
  359. /package/{assets → dist/lib/assets}/images/angular-logo.svg +0 -0
  360. /package/{assets → dist/lib/assets}/images/apple-touch-icon.png +0 -0
  361. /package/{assets → dist/lib/assets}/images/decaf-logo-black.svg +0 -0
  362. /package/{assets → dist/lib/assets}/images/decaf-logo-contrast.svg +0 -0
  363. /package/{assets → dist/lib/assets}/images/decaf-logo-white.svg +0 -0
  364. /package/{assets → dist/lib/assets}/images/decaf-logo.svg +0 -0
  365. /package/{assets → dist/lib/assets}/images/ew/product.txt +0 -0
  366. /package/{assets → dist/lib/assets}/images/favicon-contrast.svg +0 -0
  367. /package/{assets → dist/lib/assets}/images/favicon.png +0 -0
  368. /package/{assets → dist/lib/assets}/images/favicon.svg +0 -0
  369. /package/{assets → dist/lib/assets}/images/icons/document.svg +0 -0
  370. /package/{assets → dist/lib/assets}/images/icons/edit.svg +0 -0
  371. /package/{assets → dist/lib/assets}/images/icons/logout.svg +0 -0
  372. /package/{assets → dist/lib/assets}/images/icons/menu-collapse.svg +0 -0
  373. /package/{assets → dist/lib/assets}/images/icons/menu.svg +0 -0
  374. /package/{assets → dist/lib/assets}/images/icons/moon-stars.svg +0 -0
  375. /package/{assets → dist/lib/assets}/images/icons/trash.svg +0 -0
package/.editorconfig ADDED
@@ -0,0 +1,31 @@
1
+ # EditorConfig ajuda a manter estilos de código consistentes entre diferentes editores
2
+
3
+ root = true
4
+
5
+ [*]
6
+ charset = utf-8
7
+ indent_style = space
8
+ indent_size = 2
9
+ end_of_line = lf
10
+ insert_final_newline = true
11
+ trim_trailing_whitespace = true
12
+
13
+ # Arquivos Markdown não devem remover espaços no final
14
+ [*.md]
15
+ trim_trailing_whitespace = false
16
+
17
+ # HTML segue o mesmo padrão do Prettier
18
+ [*.html]
19
+ indent_size = 2
20
+
21
+ # SCSS, SASS e CSS com indentação consistente
22
+ [*.{scss,sass,css}]
23
+ indent_size = 2
24
+
25
+ # TypeScript e JavaScript
26
+ [*.{ts,tsx,js,jsx}]
27
+ indent_size = 2
28
+
29
+ # JSON e YAML
30
+ [*.{json,yml,yaml}]
31
+ indent_size = 2
package/.gitlab-ci.yml ADDED
@@ -0,0 +1,197 @@
1
+ variables:
2
+ FF_USE_FASTZIP: 1
3
+ CACHE_COMPRESSION_LEVEL: "fastest"
4
+ ARTIFACT_COMPRESSION_LEVEL: "fast"
5
+ CACHE_REQUEST_TIMEOUT: 5
6
+ # Use TLS https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#tls-enabled
7
+ DOCKER_HOST: tcp://docker:2375
8
+ DOCKER_TLS_CERTDIR: ""
9
+
10
+ cache:
11
+ - key: apt-$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
12
+ paths:
13
+ - apt-cache/
14
+
15
+ default:
16
+ image: node:20
17
+ before_script:
18
+ - |
19
+ if [[ ! -f package.json ]]; then
20
+ echo "No package.json found! A package.json file is required to publish a package to GitLab's NPM registry."
21
+ echo 'For more information, see https://docs.gitlab.com/ee/user/packages/npm_registry/#creating-a-project'
22
+ exit 1
23
+ fi
24
+ - NPM_PACKAGE_NAME=$(node -p "require('./package.json').name")
25
+ - NPM_PACKAGE_VERSION=$(node -p "require('./package.json').version")
26
+ - export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR
27
+ - apt-get update -yq && apt-get -o dir::cache::archives="$APT_CACHE_DIR" install wget libgbm-dev libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev libasound2 -qy
28
+
29
+ stages:
30
+ - dependencies
31
+ - build
32
+ - test
33
+ - publish
34
+
35
+ install:
36
+ stage: dependencies
37
+ cache:
38
+ - key: dependencies-$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
39
+ paths:
40
+ - node_modules/
41
+ - .npm/
42
+ script:
43
+ - npm ci --cache .npm --prefer-offline
44
+ interruptible: true
45
+ only:
46
+ changes:
47
+ - package-lock.json
48
+ - .gitlab-ci.yml
49
+ retry:
50
+ max: 2
51
+ when:
52
+ - runner_system_failure
53
+ - stuck_or_timeout_failure
54
+
55
+ build:
56
+ stage: build
57
+ cache:
58
+ - key: dependencies-$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
59
+ paths:
60
+ - node_modules/
61
+ - .npm/
62
+ policy: pull
63
+ - key: build-$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
64
+ paths:
65
+ - lib/
66
+ - dist/
67
+ policy: push
68
+ script:
69
+ - npm run build:prod
70
+ rules:
71
+ - if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_MESSAGE =~ /-no-ci/'
72
+ when: never
73
+ - if: '$CI_COMMIT_BRANCH == "master"'
74
+ changes:
75
+ - src/**/*
76
+ - tests/**/*
77
+ - package-lock.json
78
+ - tsconfig.json
79
+ - .gitlab-ci.yml
80
+ - if: '$CI_COMMIT_TAG'
81
+ interruptible: true
82
+
83
+ tests:
84
+ stage: test
85
+ needs: ["build"]
86
+ script:
87
+ - npm run coverage
88
+ cache:
89
+ - key: dependencies-$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
90
+ paths:
91
+ - node_modules/
92
+ - .npm/
93
+ policy: pull
94
+ - key: build-$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
95
+ paths:
96
+ - lib/
97
+ - dist/
98
+ policy: pull
99
+ - key: test-$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
100
+ paths:
101
+ - workdocs/coverage/
102
+ - workdocs/badges/
103
+ policy: push
104
+ rules:
105
+ - if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_MESSAGE =~ /-no-ci/'
106
+ when: never
107
+ - if: '$CI_COMMIT_BRANCH == "master"'
108
+ changes:
109
+ - src/**/*
110
+ - tests/**/*
111
+ - package-lock.json
112
+ - tsconfig.json
113
+ - .gitlab-ci.yml
114
+ - if: '$CI_COMMIT_TAG'
115
+ artifacts:
116
+ when: always
117
+ reports:
118
+ junit:
119
+ - workdocs/coverage/junit-report.xml
120
+ coverage: '/^Statements.*?:.*?(\d+\.\d+)%/'
121
+ interruptible: true
122
+
123
+ npm-publish:
124
+ stage: publish
125
+ needs: ["tests", "build"]
126
+ cache:
127
+ - key: dependencies-$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
128
+ paths:
129
+ - node_modules/
130
+ - .npm/
131
+ policy: pull
132
+ - key: build-$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
133
+ paths:
134
+ - lib/
135
+ - dist/
136
+ policy: pull
137
+ script:
138
+ - echo "Attempting to publish package ${NPM_PACKAGE_NAME} version ${NPM_PACKAGE_VERSION} to GitLab's NPM registry."
139
+ - TOKEN=${CI_JOB_TOKEN} npm publish
140
+ rules:
141
+ - if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_MESSAGE =~ /-no-ci/'
142
+ when: never
143
+ - if: '$CI_COMMIT_TAG'
144
+ when: always
145
+
146
+ docker-publish:
147
+ stage: publish
148
+ needs: [ "tests", "build" ]
149
+ image: docker:20.10.21-dind
150
+ services:
151
+ - docker:20.10.21-dind
152
+ variables:
153
+ BASE_NAME: ts-workspace
154
+ LATEST_NAME: ${BASE_NAME}-latest
155
+ before_script:
156
+ - apk add jq
157
+ - VERSION=$(cat package.json | jq -r '.version')
158
+ - IMAGE_NAME="${IMAGE_BASE_NAME}-${VERSION}"
159
+ - echo "Image name is ${IMAGE_NAME}"
160
+ - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
161
+ script:
162
+ - echo "Building docker image to be published on $CI_REGISTRY."
163
+ - docker build --network host -t $CI_REGISTRY/decaf-ts/ts-workspace:${IMAGE_NAME} -t $CI_REGISTRY/decaf-ts/ts-workspace:${LATEST_NAME} -f Dockerfile .
164
+ - docker push $CI_REGISTRY/decaf-ts/ts-workspace:${IMAGE_NAME}
165
+ - docker push $CI_REGISTRY/decaf-ts/ts-workspace:${LATEST_NAME}
166
+ rules:
167
+ - if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_MESSAGE =~ /-no-ci/'
168
+ when: never
169
+ - if: '$CI_COMMIT_BRANCH == "master"'
170
+ changes:
171
+ - Dockerfile
172
+
173
+ pages:
174
+ stage: publish
175
+ cache:
176
+ - key: dependencies-$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
177
+ paths:
178
+ - node_modules/
179
+ - .npm/
180
+ policy: pull
181
+ - key: test-$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
182
+ paths:
183
+ - workdocs/coverage/
184
+ - workdocs/badges/
185
+ policy: pull
186
+ script:
187
+ - npm run docs
188
+ - mv docs public
189
+ artifacts:
190
+ paths:
191
+ - public
192
+ rules:
193
+ - if: '$CI_COMMIT_BRANCH == "master"'
194
+ changes:
195
+ - workdocs/**/*
196
+ - if: '$CI_COMMIT_TAG'
197
+ interruptible: true
package/.hintrc ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "extends": [
3
+ "development"
4
+ ],
5
+ "hints": {
6
+ "no-inline-styles": "off",
7
+ "typescript-config/consistent-casing": "off",
8
+ "meta-viewport": "off",
9
+ "compat-api/css": "off"
10
+ },
11
+ "browserslist": [
12
+ "defaults",
13
+ "not ie 11",
14
+ "not chrome <= 109",
15
+ "not ios_saf <= 18.3",
16
+ "not safari <= 18.3",
17
+ "not samsung <= 27"
18
+ ]
19
+ }
package/.prettierrc ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/prettierrc",
3
+ "tabWidth": 2,
4
+ "printWidth": 100,
5
+ "singleQuote": true,
6
+ "semi": true,
7
+ "trailingComma": "es5",
8
+ "bracketSpacing": true,
9
+ "arrowParens": "always",
10
+ "endOfLine": "lf",
11
+
12
+ "overrides": [
13
+ {
14
+ "files": ["*.ts", "*.tsx"],
15
+ "options": {
16
+ "printWidth": 120
17
+ }
18
+ },
19
+ {
20
+ "files": ["*.js", "*.jsx"],
21
+ "options": {
22
+ "printWidth": 100
23
+ }
24
+ },
25
+ {
26
+ "files": ["*.html", "*.htm"],
27
+ "options": {
28
+ "printWidth": 80,
29
+ "tabWidth": 2,
30
+ "htmlWhitespaceSensitivity": "ignore",
31
+ "singleAttributePerLine": true
32
+ }
33
+ },
34
+ {
35
+ "files": ["*.json"],
36
+ "options": {
37
+ "printWidth": 100
38
+ }
39
+ },
40
+ {
41
+ "files": ["*.css", "*.scss", "*.less"],
42
+ "options": {
43
+ "printWidth": 100,
44
+ "tabWidth": 2,
45
+ "singleQuote": false
46
+ }
47
+ }
48
+ ]
49
+ }
package/.snyk ADDED
@@ -0,0 +1,13 @@
1
+ ignore: {}
2
+ patch: {}
3
+ exclude:
4
+ global:
5
+ - dist/**
6
+ - lib/**
7
+ - node_modules/**
8
+ - tests/**
9
+ - workdocs/**
10
+ - gulpfile.js
11
+ - eslint.config.js
12
+ - jest.config.ts
13
+ - www/**
package/LICENSE.md ADDED
@@ -0,0 +1,260 @@
1
+ Mozilla Public License Version 2.0
2
+
3
+ 1. Definitions
4
+
5
+ "Contributor"
6
+ means each individual or legal entity that creates, contributes to the
7
+ creation of, or owns Covered Software.
8
+
9
+ "Contributor Version"
10
+ means the combination of the Contributions of others (if any) used by a
11
+ Contributor and that particular Contributor's Contribution.
12
+
13
+ "Covered Software"
14
+ means Source Code Form to which the initial Contributor has attached the
15
+ notice in Exhibit A, the Executable Form of such Source Code Form, and
16
+ Modifications of such Source Code Form.
17
+
18
+ "Executable Form"
19
+ means any form of the work other than Source Code Form.
20
+
21
+ "Larger Work"
22
+ means a work which combines Covered Software with other material, in a
23
+ separate file or files, that is not Covered Software.
24
+
25
+ "License"
26
+ means this document.
27
+
28
+ "Licensable"
29
+ means having the right to grant, to the maximum extent possible, whether
30
+ at the time of the making or afterwards, any and all of the rights
31
+ conveyed by this License.
32
+
33
+ "Modifications"
34
+ means any addition to or deletion from the contents of Covered Software
35
+ or any new file that contains Covered Software.
36
+
37
+ "Patent Claims"
38
+ means any patent claim(s), now owned or hereafter acquired, including
39
+ without limitation, method, process, and apparatus claims, in any patent
40
+ Licensable by grantor.
41
+
42
+ "Secondary License"
43
+ means either the GNU General Public License, Version 2.0, the GNU Lesser
44
+ General Public License, Version 2.1, the European Union Public License 1.1,
45
+ or any subsequent versions of those licenses that are designated as a
46
+ Secondary License in the notice in Exhibit A.
47
+
48
+ "Source Code Form"
49
+ means the form of the work preferred for making modifications.
50
+
51
+ "You" (or "Your")
52
+ means an individual or a legal entity exercising rights under, and
53
+ complying with all of the terms of, this License. For legal entities,
54
+ "You" includes any entity that controls, is controlled by, or is under
55
+ common control with You. For purposes of this definition, "control"
56
+ means (a) the power, direct or indirect, to cause the direction or
57
+ management of such entity, whether by contract or otherwise, or (b)
58
+ ownership of more than fifty percent (50%) of the outstanding shares or
59
+ beneficial ownership of such entity.
60
+
61
+ 2. License Grants and Conditions
62
+
63
+ Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive
64
+ license:
65
+
66
+ a. under intellectual property rights (other than patent or trademark)
67
+ Licensable by such Contributor to use, reproduce, make available,
68
+ modify, display, perform, distribute, and otherwise exploit its
69
+ Contributions, either on an exclusive or non-exclusive basis; and
70
+
71
+ b. under Patent Claims to make, use, sell, offer for sale, have made,
72
+ import, and otherwise transfer the Contribution(s) of such
73
+ Contributor, if any, in the Covered Software.
74
+
75
+ This license does not grant rights to any trademarks, service marks, or logos
76
+ of any Contributor (except as may be necessary to comply with the notice
77
+ requirements in Section 3.4).
78
+
79
+ 3. Distribution Obligations
80
+
81
+ 3.1. Distribution of Source Form
82
+
83
+ All distribution of Covered Software in Source Code Form, including any
84
+ Modifications that You create or to which You contribute, must be under the
85
+ terms of this License. You must inform recipients that the Source Code Form
86
+ of the Covered Software is governed by the terms of this License and include
87
+ a copy of this License in or with the Source Code Form.
88
+
89
+ 3.2. Distribution of Executable Form
90
+
91
+ If You distribute Covered Software in Executable Form then:
92
+
93
+ a. such Covered Software must also be made available in Source Code Form,
94
+ as described in Section 3.1, and You must inform recipients of the
95
+ Executable Form how to obtain a complete copy of the corresponding
96
+ Source Code Form in a reasonable manner on or through a medium
97
+ customarily used for software exchange; and
98
+
99
+ b. You may distribute the Executable Form under terms of your choice,
100
+ provided that You do not attempt to limit or alter the recipients'
101
+ rights in the Source Code Form under this License.
102
+
103
+ 3.3. Distribution of a Larger Work
104
+
105
+ You may create and distribute a work that combines Covered Software with
106
+ other material, and distribute the Larger Work as a single product. In such
107
+ case, the Covered Software must still be made available under this License
108
+ and must include the notices described in Exhibit A relating to the Covered
109
+ Software.
110
+
111
+ 3.4. Notices
112
+
113
+ You must cause each file that You distribute containing Covered Software to
114
+ carry the legal notices described in Exhibit A.
115
+
116
+ 4. Incompatible With Secondary Licenses
117
+
118
+ If the Covered Software is made available under the terms of this License
119
+ and also made available under the terms of a Secondary License, then the
120
+ terms of the Secondary License apply to the Covered Software in addition to
121
+ this License to the extent the Secondary License grants additional
122
+ permissions. If the Covered Software is not made available under a Secondary
123
+ License, then this License governs its use.
124
+
125
+ 5. Disclaimer of Warranty
126
+
127
+ Covered Software is provided "as is" without warranty of any kind, either
128
+ express or implied, including, but not limited to, the implied warranties of
129
+ merchantability, fitness for a particular purpose, and noninfringement.
130
+
131
+ 6. Limitation of Liability
132
+
133
+ In no event and under no legal theory, whether in tort (including
134
+ negligence), contract, or otherwise, unless required by applicable law (such
135
+ as deliberate and grossly negligent acts) or agreed to in writing, shall any
136
+ Contributor be liable to You for damages, including any direct, indirect,
137
+ special, incidental, or consequential damages of any character arising as a
138
+ result of this License or out of the use or inability to use the Covered
139
+ Software (including but not limited to damages for loss of goodwill, work
140
+ stoppage, computer failure or malfunction, or any and all other commercial
141
+ damages or losses), even if such Contributor has been advised of the
142
+ possibility of such damages.
143
+
144
+ 7. Termination
145
+
146
+ This License and the rights granted hereunder will terminate automatically
147
+ if You fail to comply with terms of this License and do not cure such
148
+ breach within thirty (30) days of becoming aware of the breach.
149
+
150
+ 8. Miscellaneous
151
+
152
+ This License constitutes the entire agreement between the parties with
153
+ respect to the subject matter hereof. If any provision of this License is
154
+ held to be unenforceable, that provision shall be reformed only to the
155
+ extent necessary to make it enforceable. The headings are for convenience
156
+ only and do not affect the interpretation.
157
+
158
+ Exhibit A - Source Code Form License Notice
159
+
160
+ This Source Code Form is subject to the terms of the Mozilla Public
161
+ License, v. 2.0. If a copy of the MPL was not distributed with this
162
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
163
+
164
+ Copyright (c) 2025 Tiago Venceslau and Contributors
165
+
166
+ ---
167
+
168
+ # Decaf‑TS Fair Usage Addendum (MPL‑2.0 baseline — AGPL‑3.0 trigger)
169
+
170
+ > Placement: This Addendum is intended to be appended to the canonical
171
+ > Mozilla Public License v2.0 text distributed with a package (after
172
+ > Exhibit A). The MPL‑2.0 text itself remains the baseline license for the
173
+ > package sources. This Addendum describes when an alternative licensing
174
+ > outcome (AGPL‑3.0) SHALL apply for certain AI‑driven code‑generation uses.
175
+
176
+ ---
177
+
178
+ ## 1. Purpose (normative)
179
+
180
+ This Addendum SHALL govern the treatment of automated AI generation of
181
+ Decaf‑TS source code and related artifacts. The canonical MPL‑2.0 text
182
+ REMAINS the governing license for ordinary, human‑authored uses of the
183
+ package. This Addendum DOES NOT replace or modify the MPL‑2.0 text other
184
+ than by clarifying the licensing outcome for the specific scenarios set
185
+ forth below.
186
+
187
+ ## 2. Normative summary (readable obligations)
188
+
189
+ - The package source is LICENSED under MPL‑2.0 by default.
190
+ - Where an automated AI process (as defined below) GENERATES Decaf‑TS
191
+ source code and such generated code is used without meaningful human
192
+ review before production, THEN the generated code and derivative works
193
+ incorporating it SHALL be licensed under AGPL‑3.0.
194
+ - Human‑in‑the‑loop development and manual developer acceptance of
195
+ generated artifacts SHALL remain governed by MPL‑2.0.
196
+ - Project names, logos, and trademarks ARE NOT licensed by this Addendum.
197
+
198
+ ## 3. Normative definitions
199
+
200
+ In the context of this Addendum, the following definitions APPLY and are
201
+ normative:
202
+
203
+ - **Decaf MCP**: any official Decaf Model/Code Platform, endpoint,
204
+ integration, or tooling that facilitates the generation of Decaf‑TS
205
+ code via an AI model or automated process.
206
+
207
+ - **Uses AI generation of Decaf‑TS code**: an activity in which a tool,
208
+ system, pipeline, API, service, or product (including Decaf MCP or any
209
+ custom integration) programmatically produces Decaf‑TS source code,
210
+ component definitions, or UI artifacts without per‑artifact meaningful
211
+ human review and approval prior to production use or distribution.
212
+
213
+ - **Meaningful human review**: a manual action in which a developer or
214
+ qualified engineer INSPECTS, EDITS, TESTS, and EXPRESSLY APPROVES each
215
+ generated Decaf‑TS artifact prior to its inclusion in production or
216
+ distribution. Automated, cursory, or bulk acceptance DOES NOT satisfy
217
+ this requirement.
218
+
219
+ - **Non‑deterministic dynamic UI generation**: generation of UI
220
+ components, structures, or component code at runtime or on demand where
221
+ outputs vary and are not fixed/hardcoded artifacts that were authored
222
+ and accepted by a developer.
223
+
224
+ ## 4. Trigger rule — when AGPL‑3.0 SHALL apply (normative)
225
+
226
+ - IF a person or entity Meets the definition “Uses AI generation of
227
+ Decaf‑TS code”, THEN:
228
+ - The Decaf‑TS code automatically generated by that process MUST be
229
+ treated as subject to the GNU Affero General Public License v3.0
230
+ (AGPL‑3.0); and
231
+ - Any derivative works or distributed products that incorporate that
232
+ generated code and that are distributed, provided as a network service,
233
+ or sold SHALL comply with AGPL‑3.0 obligations for the covered parts.
234
+
235
+ - The AGPL‑3.0 requirement ATTACHES to the generated Decaf‑TS portions
236
+ and to those portions of a larger work that are covered by AGPL‑3.0; it
237
+ DOES NOT nullify the MPL‑2.0 baseline for the original package sources.
238
+
239
+ ## 5. Exceptions where MPL‑2.0 SHALL remain (normative)
240
+
241
+ - The following activities DO NOT, in themselves, trigger the AGPL‑3.0
242
+ requirements:
243
+ - Downloading and using pre‑compiled binaries or other forms of
244
+ Executable Form of the Covered Software.
245
+ - Using the Covered Software in a way that does not involve
246
+ "Uses AI generation of Decaf‑TS code" as defined above.
247
+ - Modifying the Source Code Form or contributing to the project in a
248
+ manner that is not automated or AI‑driven.
249
+ - Using AI assistance or code generation tools in a way that does not
250
+ automatically generate Decaf‑TS code or that involves meaningful human
251
+ review and intervention.
252
+
253
+ - The following conditions MUST be met for the MPL‑2.0 license to remain
254
+ in effect:
255
+ - The Decaf‑TS source code is not part of a larger work that triggers
256
+ AGPL‑3.0 under this Addendum.
257
+ - The Covered Software is not being distributed, provided as a network
258
+ service, or sold in a manner that incorporates or is derived from
259
+ Decaf‑TS code generated by an AI process without meaningful human
260
+ review.