From 1a163af19e6ff2431f100295f6d6a737a38c8ddc Mon Sep 17 00:00:00 2001 From: zahmo Date: Wed, 4 Sep 2024 17:49:01 +0200 Subject: [PATCH] initial commits --- .github/workflows/createdist.yml | 24 +-- .github/workflows/dependabot.yml | 8 +- CONTRIBUTING.md | 30 +-- README.md | 201 +++++++++--------- angular.json | 120 +++++------ demo/app/demo.component.ts | 2 +- demo/app/demo.module.ts | 14 +- demo/environments/environment.prod.ts | 2 +- demo/environments/environment.ts | 2 +- demo/styles.scss | 4 +- package-lock.json | 4 +- package.json | 63 +++--- .../README.md | 30 +-- .../assets/cssframework/assets.json | 0 .../assets/cssframework/assets_cdn.json | 0 .../karma.conf.js | 0 .../ng-package.json | 6 +- .../package.json | 21 +- .../src/lib/bootstrap3-cssframework.ts | 2 +- .../lib/bootstrap3-framework.component.html | 0 .../lib/bootstrap3-framework.component.scss | 0 .../bootstrap3-framework.component.spec.ts | 2 +- .../src/lib/bootstrap3-framework.component.ts | 2 +- .../src/lib/bootstrap3-framework.module.ts | 4 +- .../src/lib/bootstrap3.framework.ts | 2 +- .../src/public_api.ts | 2 +- .../src/test.ts | 0 .../tsconfig.lib.json | 0 .../tsconfig.lib.prod.json | 0 .../tsconfig.spec.json | 0 .../tslint.json | 0 .../README.md | 30 +-- .../assets/cssframework/assets.json | 0 .../assets/cssframework/assets_cdn.json | 0 .../karma.conf.js | 0 .../ng-package.json | 6 +- .../package.json | 21 +- .../src/lib/bootstrap4-cssframework.scss | 0 .../src/lib/bootstrap4-cssframework.ts | 2 +- .../lib/bootstrap4-framework.component.scss | 0 .../bootstrap4-framework.component.spec.ts | 2 +- .../src/lib/bootstrap4-framework.component.ts | 2 +- .../src/lib/bootstrap4-framework.module.ts | 4 +- .../src/lib/bootstrap4.framework.ts | 2 +- .../src/public_api.ts | 2 +- .../src/test.ts | 0 .../tsconfig.lib.json | 0 .../tsconfig.lib.prod.json | 0 .../tsconfig.spec.json | 0 .../tslint.json | 0 .../README.md | 30 +-- .../assets/cssframework/assets.json | 0 .../assets/cssframework/assets_cdn.json | 0 .../ng-package.json | 6 +- .../package.json | 21 +- .../src/lib/bootstrap5-cssframework.scss | 0 .../src/lib/bootstrap5-cssframework.ts | 2 +- .../lib/bootstrap5-framework.component.scss | 0 .../bootstrap5-framework.component.spec.ts | 2 +- .../src/lib/bootstrap5-framework.component.ts | 2 +- .../src/lib/bootstrap5-framework.module.ts | 4 +- .../src/lib/bootstrap5.framework.ts | 2 +- .../src/public_api.ts | 2 +- .../src/test.ts | 0 .../tsconfig.lib.json | 0 .../tsconfig.lib.prod.json | 0 .../tsconfig.spec.json | 0 .../karma.conf.js | 0 .../ng-package.json | 2 +- .../package.json | 17 +- .../framework-library.service.ts | 0 .../src/lib/framework-library/framework.ts | 0 .../no-framework.component.html | 0 .../no-framework.component.ts | 0 .../framework-library/no-framework.module.ts | 0 .../src/lib/framework-library/no.framework.ts | 0 .../src/lib/json-schema-form.component.html | 0 .../src/lib/json-schema-form.component.ts | 0 .../src/lib/json-schema-form.module.ts | 0 .../src/lib/json-schema-form.service.ts | 0 .../src/lib/locale-dates/en-US.ts | 0 .../src/lib/locale/de-validation-messages.ts | 0 .../src/lib/locale/en-validation-messages.ts | 0 .../src/lib/locale/es-validation-messages.ts | 0 .../src/lib/locale/fr-validation-messages.ts | 0 .../src/lib/locale/index.ts | 0 .../src/lib/locale/it-validation-messages.ts | 0 .../src/lib/locale/pt-validation-messages.ts | 0 .../src/lib/locale/zh-validation-messages.ts | 0 .../convert-schema-to-draft6.function.ts | 0 .../src/lib/shared/form-group.functions.ts | 0 .../src/lib/shared/format-regex.constants.ts | 0 .../src/lib/shared/index.ts | 0 .../src/lib/shared/json-schema.functions.ts | 0 .../src/lib/shared/json.validators.ts | 0 .../src/lib/shared/jsonpointer.functions.ts | 0 .../shared/jspointer.functions.json.spec.ts | 0 .../src/lib/shared/layout.functions.ts | 0 .../src/lib/shared/merge-schemas.function.ts | 0 .../src/lib/shared/utility.functions.ts | 0 .../lib/shared/validator.functions.spec.ts | 0 .../src/lib/shared/validator.functions.ts | 0 .../widget-library/add-reference.component.ts | 0 .../lib/widget-library/button.component.ts | 0 .../lib/widget-library/checkbox.component.ts | 0 .../widget-library/checkboxes.component.ts | 0 .../src/lib/widget-library/file.component.ts | 0 .../lib/widget-library/hidden.component.ts | 0 .../src/lib/widget-library/index.ts | 0 .../src/lib/widget-library/input.component.ts | 0 .../lib/widget-library/message.component.ts | 0 .../src/lib/widget-library/none.component.ts | 0 .../lib/widget-library/number.component.ts | 0 .../lib/widget-library/one-of.component.ts | 0 .../lib/widget-library/orderable.directive.ts | 0 .../lib/widget-library/radios.component.ts | 0 .../src/lib/widget-library/root.component.ts | 0 .../lib/widget-library/section.component.ts | 0 .../select-framework.component.ts | 0 .../widget-library/select-widget.component.ts | 0 .../lib/widget-library/select.component.ts | 0 .../lib/widget-library/submit.component.ts | 0 .../src/lib/widget-library/tab.component.ts | 0 .../src/lib/widget-library/tabs.component.ts | 0 .../lib/widget-library/template.component.ts | 0 .../lib/widget-library/textarea.component.ts | 0 .../widget-library/widget-library.module.ts | 0 .../widget-library/widget-library.service.ts | 0 .../src/public_api.ts | 0 .../src/test.ts | 0 .../tsconfig.lib.json | 0 .../tsconfig.lib.prod.json | 0 .../tsconfig.spec.json | 0 .../tslint.json | 0 projects/ng-formworks-cssframework/README.md | 28 +++ .../ng-package.json | 4 +- .../package.json | 19 +- .../src/lib/css-framework.component.html | 0 .../src/lib/css-framework.component.scss | 0 .../src/lib/css-framework.component.spec.ts | 0 .../src/lib/css-framework.component.ts | 4 +- .../src/lib/css-framework.defs.ts | 0 .../src/lib/css-framework.module.ts | 2 +- .../src/lib/css-framework.service.spec.ts | 0 .../src/lib/css-framework.service.ts | 0 .../src/lib/css.framework.ts | 2 +- .../src/public-api.ts | 2 +- .../tsconfig.lib.json | 0 .../tsconfig.lib.prod.json | 0 .../tsconfig.spec.json | 0 .../.gitignore | 0 .../README.md | 30 +-- .../css_names_extractor.js | 2 +- .../ng-package.json | 6 +- .../package-lock.json | 4 +- .../package.json | 21 +- .../src/daisyui_class_names.css | 0 .../src/daisyui_class_names_prefixed_tw.css | 0 .../daisyui_class_names_prefixed_tw_dui.css | 0 .../src/lib/daisui-cssframework.ts | 2 +- .../src/lib/daisyui-framework.component.scss | 2 +- .../lib/daisyui-framework.component.spec.ts | 0 .../src/lib/daisyui-framework.component.ts | 2 +- .../src/lib/daisyui-framework.module.ts | 4 +- .../daisyui-framework.prefixed.component.scss | 2 +- .../daisyui-framework.prefixed.component.ts | 2 +- .../src/lib/daisyui-framework.service.spec.ts | 0 .../src/lib/daisyui-framework.service.ts | 0 ...daisyui-ng-formworks-themes-prefixed.scss} | 0 .../src/lib/daisyui-ng-formworks-themes.scss} | 0 .../src/lib/daisyui.framework.ts | 2 +- .../src/lib/tailwind-output-prefixed.scss | 0 .../src/lib/tailwind-output.scss | 0 .../src/lib/tokens.defs.ts | 0 .../src/lib/widgets/daisyui-tabs.component.ts | 2 +- .../src/public-api.ts | 2 +- .../tailwind-input.css | 0 .../tailwind.config.js | 2 +- .../tailwind.prefixed.config.js | 2 +- .../tsconfig.lib.json | 0 .../tsconfig.lib.prod.json | 0 .../tsconfig.spec.json | 0 .../README.md | 30 +-- .../assets/material-design-themes.scss | 0 .../karma.conf.js | 0 .../ng-package.json | 6 +- .../package.json | 18 +- .../lib/flexlayout-replacement-styles.scss | 0 .../src/lib/material-design-cssframework.ts | 0 .../material-design-framework.component.html | 0 .../material-design-framework.component.scss | 0 ...aterial-design-framework.component.spec.ts | 2 +- .../material-design-framework.component.ts | 4 +- .../lib/material-design-framework.module.ts | 4 +- .../src/lib/material-design-themes.scss | 0 .../src/lib/material-design.framework.ts | 2 +- .../src/lib/tailwind-output.scss | 0 .../widgets/flex-layout-root.component.html | 0 .../lib/widgets/flex-layout-root.component.ts | 2 +- .../widgets/flex-layout-section.component.ts | 2 +- .../material-add-reference.component.ts | 2 +- .../material-button-group.component.ts | 2 +- .../lib/widgets/material-button.component.ts | 2 +- .../widgets/material-checkbox.component.ts | 2 +- .../widgets/material-checkboxes.component.ts | 2 +- .../widgets/material-chip-list.component.ts | 2 +- .../widgets/material-datepicker.component.ts | 2 +- .../lib/widgets/material-file.component.ts | 2 +- .../lib/widgets/material-input.component.ts | 2 +- .../lib/widgets/material-number.component.ts | 2 +- .../lib/widgets/material-one-of.component.ts | 2 +- .../lib/widgets/material-radios.component.ts | 2 +- .../lib/widgets/material-select.component.ts | 2 +- .../lib/widgets/material-slider.component.ts | 2 +- .../lib/widgets/material-stepper.component.ts | 2 +- .../lib/widgets/material-tabs.component.ts | 2 +- .../widgets/material-textarea.component.ts | 2 +- .../src/lib/widgets/public_api.ts | 0 .../src/public_api.ts | 2 +- .../src/test.ts | 0 .../tailwind-input.css | 0 .../tailwind.config.js | 2 +- .../tsconfig.lib.json | 0 .../tsconfig.lib.prod.json | 0 .../tsconfig.spec.json | 0 .../tslint.json | 0 projects/zajsf-cssframework/README.md | 28 --- tsconfig.json | 56 ++--- 228 files changed, 532 insertions(+), 514 deletions(-) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/README.md (82%) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/assets/cssframework/assets.json (100%) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/assets/cssframework/assets_cdn.json (100%) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/karma.conf.js (100%) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/ng-package.json (65%) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/package.json (59%) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/src/lib/bootstrap3-cssframework.ts (98%) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/src/lib/bootstrap3-framework.component.html (100%) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/src/lib/bootstrap3-framework.component.scss (100%) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/src/lib/bootstrap3-framework.component.spec.ts (97%) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/src/lib/bootstrap3-framework.component.ts (95%) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/src/lib/bootstrap3-framework.module.ts (90%) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/src/lib/bootstrap3.framework.ts (86%) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/src/public_api.ts (75%) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/src/test.ts (100%) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/tsconfig.lib.json (100%) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/tsconfig.lib.prod.json (100%) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/tsconfig.spec.json (100%) rename projects/{zajsf-bootstrap3 => ng-formworks-bootstrap3}/tslint.json (100%) rename projects/{zajsf-bootstrap4 => ng-formworks-bootstrap4}/README.md (81%) rename projects/{zajsf-bootstrap4 => ng-formworks-bootstrap4}/assets/cssframework/assets.json (100%) rename projects/{zajsf-bootstrap4 => ng-formworks-bootstrap4}/assets/cssframework/assets_cdn.json (100%) rename projects/{zajsf-bootstrap4 => ng-formworks-bootstrap4}/karma.conf.js (100%) rename projects/{zajsf-bootstrap5 => ng-formworks-bootstrap4}/ng-package.json (65%) rename projects/{zajsf-bootstrap4 => ng-formworks-bootstrap4}/package.json (59%) rename projects/{zajsf-bootstrap4 => ng-formworks-bootstrap4}/src/lib/bootstrap4-cssframework.scss (100%) rename projects/{zajsf-bootstrap4 => ng-formworks-bootstrap4}/src/lib/bootstrap4-cssframework.ts (98%) rename projects/{zajsf-bootstrap4 => ng-formworks-bootstrap4}/src/lib/bootstrap4-framework.component.scss (100%) rename projects/{zajsf-bootstrap4 => ng-formworks-bootstrap4}/src/lib/bootstrap4-framework.component.spec.ts (97%) rename projects/{zajsf-bootstrap4 => ng-formworks-bootstrap4}/src/lib/bootstrap4-framework.component.ts (95%) rename projects/{zajsf-bootstrap4 => ng-formworks-bootstrap4}/src/lib/bootstrap4-framework.module.ts (90%) rename projects/{zajsf-bootstrap4 => ng-formworks-bootstrap4}/src/lib/bootstrap4.framework.ts (86%) rename projects/{zajsf-bootstrap4 => ng-formworks-bootstrap4}/src/public_api.ts (75%) rename projects/{zajsf-bootstrap4 => ng-formworks-bootstrap4}/src/test.ts (100%) rename projects/{zajsf-bootstrap4 => ng-formworks-bootstrap4}/tsconfig.lib.json (100%) rename projects/{zajsf-bootstrap4 => ng-formworks-bootstrap4}/tsconfig.lib.prod.json (100%) rename projects/{zajsf-bootstrap4 => ng-formworks-bootstrap4}/tsconfig.spec.json (100%) rename projects/{zajsf-bootstrap4 => ng-formworks-bootstrap4}/tslint.json (100%) rename projects/{zajsf-bootstrap5 => ng-formworks-bootstrap5}/README.md (80%) rename projects/{zajsf-bootstrap5 => ng-formworks-bootstrap5}/assets/cssframework/assets.json (100%) rename projects/{zajsf-bootstrap5 => ng-formworks-bootstrap5}/assets/cssframework/assets_cdn.json (100%) rename projects/{zajsf-material => ng-formworks-bootstrap5}/ng-package.json (65%) rename projects/{zajsf-bootstrap5 => ng-formworks-bootstrap5}/package.json (59%) rename projects/{zajsf-bootstrap5 => ng-formworks-bootstrap5}/src/lib/bootstrap5-cssframework.scss (100%) rename projects/{zajsf-bootstrap5 => ng-formworks-bootstrap5}/src/lib/bootstrap5-cssframework.ts (98%) rename projects/{zajsf-bootstrap5 => ng-formworks-bootstrap5}/src/lib/bootstrap5-framework.component.scss (100%) rename projects/{zajsf-bootstrap5 => ng-formworks-bootstrap5}/src/lib/bootstrap5-framework.component.spec.ts (97%) rename projects/{zajsf-bootstrap5 => ng-formworks-bootstrap5}/src/lib/bootstrap5-framework.component.ts (95%) rename projects/{zajsf-bootstrap5 => ng-formworks-bootstrap5}/src/lib/bootstrap5-framework.module.ts (90%) rename projects/{zajsf-bootstrap5 => ng-formworks-bootstrap5}/src/lib/bootstrap5.framework.ts (86%) rename projects/{zajsf-bootstrap5 => ng-formworks-bootstrap5}/src/public_api.ts (75%) rename projects/{zajsf-bootstrap5 => ng-formworks-bootstrap5}/src/test.ts (100%) rename projects/{zajsf-bootstrap5 => ng-formworks-bootstrap5}/tsconfig.lib.json (100%) rename projects/{zajsf-bootstrap5 => ng-formworks-bootstrap5}/tsconfig.lib.prod.json (100%) rename projects/{zajsf-bootstrap5 => ng-formworks-bootstrap5}/tsconfig.spec.json (100%) rename projects/{zajsf-core => ng-formworks-core}/karma.conf.js (100%) rename projects/{zajsf-core => ng-formworks-core}/ng-package.json (82%) rename projects/{zajsf-core => ng-formworks-core}/package.json (67%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/framework-library/framework-library.service.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/framework-library/framework.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/framework-library/no-framework.component.html (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/framework-library/no-framework.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/framework-library/no-framework.module.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/framework-library/no.framework.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/json-schema-form.component.html (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/json-schema-form.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/json-schema-form.module.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/json-schema-form.service.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/locale-dates/en-US.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/locale/de-validation-messages.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/locale/en-validation-messages.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/locale/es-validation-messages.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/locale/fr-validation-messages.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/locale/index.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/locale/it-validation-messages.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/locale/pt-validation-messages.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/locale/zh-validation-messages.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/shared/convert-schema-to-draft6.function.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/shared/form-group.functions.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/shared/format-regex.constants.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/shared/index.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/shared/json-schema.functions.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/shared/json.validators.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/shared/jsonpointer.functions.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/shared/jspointer.functions.json.spec.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/shared/layout.functions.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/shared/merge-schemas.function.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/shared/utility.functions.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/shared/validator.functions.spec.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/shared/validator.functions.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/add-reference.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/button.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/checkbox.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/checkboxes.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/file.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/hidden.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/index.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/input.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/message.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/none.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/number.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/one-of.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/orderable.directive.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/radios.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/root.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/section.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/select-framework.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/select-widget.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/select.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/submit.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/tab.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/tabs.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/template.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/textarea.component.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/widget-library.module.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/lib/widget-library/widget-library.service.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/public_api.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/src/test.ts (100%) rename projects/{zajsf-core => ng-formworks-core}/tsconfig.lib.json (100%) rename projects/{zajsf-core => ng-formworks-core}/tsconfig.lib.prod.json (100%) rename projects/{zajsf-core => ng-formworks-core}/tsconfig.spec.json (100%) rename projects/{zajsf-core => ng-formworks-core}/tslint.json (100%) create mode 100644 projects/ng-formworks-cssframework/README.md rename projects/{zajsf-cssframework => ng-formworks-cssframework}/ng-package.json (73%) rename projects/{zajsf-cssframework => ng-formworks-cssframework}/package.json (60%) rename projects/{zajsf-cssframework => ng-formworks-cssframework}/src/lib/css-framework.component.html (100%) rename projects/{zajsf-cssframework => ng-formworks-cssframework}/src/lib/css-framework.component.scss (100%) rename projects/{zajsf-cssframework => ng-formworks-cssframework}/src/lib/css-framework.component.spec.ts (100%) rename projects/{zajsf-cssframework => ng-formworks-cssframework}/src/lib/css-framework.component.ts (99%) rename projects/{zajsf-cssframework => ng-formworks-cssframework}/src/lib/css-framework.defs.ts (100%) rename projects/{zajsf-cssframework => ng-formworks-cssframework}/src/lib/css-framework.module.ts (97%) rename projects/{zajsf-cssframework => ng-formworks-cssframework}/src/lib/css-framework.service.spec.ts (100%) rename projects/{zajsf-cssframework => ng-formworks-cssframework}/src/lib/css-framework.service.ts (100%) rename projects/{zajsf-cssframework => ng-formworks-cssframework}/src/lib/css.framework.ts (98%) rename projects/{zajsf-cssframework => ng-formworks-cssframework}/src/public-api.ts (81%) rename projects/{zajsf-cssframework => ng-formworks-cssframework}/tsconfig.lib.json (100%) rename projects/{zajsf-cssframework => ng-formworks-cssframework}/tsconfig.lib.prod.json (100%) rename projects/{zajsf-cssframework => ng-formworks-cssframework}/tsconfig.spec.json (100%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/.gitignore (100%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/README.md (73%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/css_names_extractor.js (97%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/ng-package.json (67%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/package-lock.json (99%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/package.json (62%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/src/daisyui_class_names.css (100%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/src/daisyui_class_names_prefixed_tw.css (100%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/src/daisyui_class_names_prefixed_tw_dui.css (100%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/src/lib/daisui-cssframework.ts (99%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/src/lib/daisyui-framework.component.scss (95%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/src/lib/daisyui-framework.component.spec.ts (100%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/src/lib/daisyui-framework.component.ts (94%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/src/lib/daisyui-framework.module.ts (91%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/src/lib/daisyui-framework.prefixed.component.scss (94%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/src/lib/daisyui-framework.prefixed.component.ts (95%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/src/lib/daisyui-framework.service.spec.ts (100%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/src/lib/daisyui-framework.service.ts (100%) rename projects/{zajsf-daisyui/src/lib/daisyui-zajsf-themes-prefixed.scss => ng-formworks-daisyui/src/lib/daisyui-ng-formworks-themes-prefixed.scss} (100%) rename projects/{zajsf-daisyui/src/lib/daisyui-zajsf-themes.scss => ng-formworks-daisyui/src/lib/daisyui-ng-formworks-themes.scss} (100%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/src/lib/daisyui.framework.ts (94%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/src/lib/tailwind-output-prefixed.scss (100%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/src/lib/tailwind-output.scss (100%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/src/lib/tokens.defs.ts (100%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/src/lib/widgets/daisyui-tabs.component.ts (97%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/src/public-api.ts (88%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/tailwind-input.css (100%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/tailwind.config.js (90%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/tailwind.prefixed.config.js (91%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/tsconfig.lib.json (100%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/tsconfig.lib.prod.json (100%) rename projects/{zajsf-daisyui => ng-formworks-daisyui}/tsconfig.spec.json (100%) rename projects/{zajsf-material => ng-formworks-material}/README.md (66%) rename projects/{zajsf-material => ng-formworks-material}/assets/material-design-themes.scss (100%) rename projects/{zajsf-material => ng-formworks-material}/karma.conf.js (100%) rename projects/{zajsf-bootstrap4 => ng-formworks-material}/ng-package.json (66%) rename projects/{zajsf-material => ng-formworks-material}/package.json (61%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/flexlayout-replacement-styles.scss (100%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/material-design-cssframework.ts (100%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/material-design-framework.component.html (100%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/material-design-framework.component.scss (100%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/material-design-framework.component.spec.ts (97%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/material-design-framework.component.ts (97%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/material-design-framework.module.ts (97%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/material-design-themes.scss (100%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/material-design.framework.ts (96%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/tailwind-output.scss (100%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/flex-layout-root.component.html (100%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/flex-layout-root.component.ts (97%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/flex-layout-section.component.ts (99%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/material-add-reference.component.ts (96%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/material-button-group.component.ts (96%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/material-button.component.ts (96%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/material-checkbox.component.ts (98%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/material-checkboxes.component.ts (99%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/material-chip-list.component.ts (93%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/material-datepicker.component.ts (98%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/material-file.component.ts (93%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/material-input.component.ts (98%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/material-number.component.ts (98%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/material-one-of.component.ts (93%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/material-radios.component.ts (97%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/material-select.component.ts (99%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/material-slider.component.ts (97%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/material-stepper.component.ts (93%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/material-tabs.component.ts (97%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/material-textarea.component.ts (98%) rename projects/{zajsf-material => ng-formworks-material}/src/lib/widgets/public_api.ts (100%) rename projects/{zajsf-material => ng-formworks-material}/src/public_api.ts (78%) rename projects/{zajsf-material => ng-formworks-material}/src/test.ts (100%) rename projects/{zajsf-material => ng-formworks-material}/tailwind-input.css (100%) rename projects/{zajsf-material => ng-formworks-material}/tailwind.config.js (79%) rename projects/{zajsf-material => ng-formworks-material}/tsconfig.lib.json (100%) rename projects/{zajsf-material => ng-formworks-material}/tsconfig.lib.prod.json (100%) rename projects/{zajsf-material => ng-formworks-material}/tsconfig.spec.json (100%) rename projects/{zajsf-material => ng-formworks-material}/tslint.json (100%) delete mode 100644 projects/zajsf-cssframework/README.md diff --git a/.github/workflows/createdist.yml b/.github/workflows/createdist.yml index 1f9feb0..bb83bd9 100644 --- a/.github/workflows/createdist.yml +++ b/.github/workflows/createdist.yml @@ -25,14 +25,14 @@ jobs: - name: version core uses: nyaa8/package-version@v1 with: - path: './dist/@zajsf/core/package.json' + path: './dist/@ng-formworks/core/package.json' - name: dist core versioned uses: s0/git-publish-subdir-action@develop env: REPO: self BRANCH: dist_core_v${{ env.PACKAGE_VERSION }} - FOLDER: ./dist/@zajsf/core + FOLDER: ./dist/@ng-formworks/core GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: dist core @@ -40,20 +40,20 @@ jobs: env: REPO: self BRANCH: dist_core - FOLDER: ./dist/@zajsf/core + FOLDER: ./dist/@ng-formworks/core GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: version bootstrap3 uses: nyaa8/package-version@v1 with: - path: './dist/@zajsf/bootstrap3/package.json' + path: './dist/@ng-formworks/bootstrap3/package.json' - name: dist bootstrap3 versioned uses: s0/git-publish-subdir-action@develop env: REPO: self BRANCH: dist_bootstrap3_v${{ env.PACKAGE_VERSION }} - FOLDER: ./dist/@zajsf/bootstrap3 + FOLDER: ./dist/@ng-formworks/bootstrap3 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: dist bootstrap3 @@ -61,13 +61,13 @@ jobs: env: REPO: self BRANCH: dist_bootstrap3 - FOLDER: ./dist/@zajsf/bootstrap3 + FOLDER: ./dist/@ng-formworks/bootstrap3 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: version bootstrap4 uses: nyaa8/package-version@v1 with: - path: './dist/@zajsf/bootstrap4/package.json' + path: './dist/@ng-formworks/bootstrap4/package.json' - name: dist_bootstrap4 versioned @@ -75,7 +75,7 @@ jobs: env: REPO: self BRANCH: dist_bootstrap4_v${{ env.PACKAGE_VERSION }} - FOLDER: ./dist/@zajsf/bootstrap4 + FOLDER: ./dist/@ng-formworks/bootstrap4 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: dist_bootstrap4 @@ -83,21 +83,21 @@ jobs: env: REPO: self BRANCH: dist_bootstrap4 - FOLDER: ./dist/@zajsf/bootstrap4 + FOLDER: ./dist/@ng-formworks/bootstrap4 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: version material uses: nyaa8/package-version@v1 with: - path: './dist/@zajsf/material/package.json' + path: './dist/@ng-formworks/material/package.json' - name: dist material versioned uses: s0/git-publish-subdir-action@develop env: REPO: self BRANCH: dist_material_v${{ env.PACKAGE_VERSION }} - FOLDER: ./dist/@zajsf/material + FOLDER: ./dist/@ng-formworks/material GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: dist material @@ -105,7 +105,7 @@ jobs: env: REPO: self BRANCH: dist_material - FOLDER: ./dist/@zajsf/material + FOLDER: ./dist/@ng-formworks/material GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index b9eec68..cd41ec3 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -13,7 +13,7 @@ updates: # Prefix all commit messages with "build" prefix: "build" - package-ecosystem: "npm" - directory: "/projects/zajsf-core" + directory: "/projects/ng-formworks-core" schedule: interval: "weekly" day: "sunday" @@ -21,7 +21,7 @@ updates: commit-message: prefix: "build" - package-ecosystem: "npm" - directory: "/projects/zajsf-material" + directory: "/projects/ng-formworks-material" schedule: interval: "weekly" day: "sunday" @@ -29,7 +29,7 @@ updates: commit-message: prefix: "build" - package-ecosystem: "npm" - directory: "/projects/zajsf-bootstrap3" + directory: "/projects/ng-formworks-bootstrap3" schedule: interval: "weekly" day: "sunday" @@ -37,7 +37,7 @@ updates: commit-message: prefix: "build" - package-ecosystem: "npm" - directory: "/projects/zajsf-bootstrap4" + directory: "/projects/ng-formworks-bootstrap4" schedule: interval: "weekly" day: "sunday" diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e2bd3df..5733e92 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,15 +1,15 @@ -# Contributing to zajsf +# Contributing to ng-formworks -zajsf is an open project and welcomes contributions. These guidelines are provided to help you understand how the project works and to make contributing smooth and fun for everybody involved. +ng-formworks is an open project and welcomes contributions. These guidelines are provided to help you understand how the project works and to make contributing smooth and fun for everybody involved. There are two main forms of contribution: reporting issues and performing code changes. ## Reporting Issues -If you find a problem with zajsf, report it using [GitHub issues](https://github.com/zahmo/zajsf/issues/new). +If you find a problem with ng-formworks, report it using [GitHub issues](https://github.com/zahmo/ng-formworks/issues/new). Before reporting a new issue, please take a moment to check whether it has already been reported -[here](https://github.com/zahmo/zajsf/issues). If this is the case, please: +[here](https://github.com/zahmo/ng-formworks/issues). If this is the case, please: - Read all the comments to confirm that it's the same issue you're having. - Refrain from adding "same thing here" or "+1" comments. Just hit the @@ -43,7 +43,7 @@ To send your code change, use GitHub pull requests. The workflow is as follows: 1. Publish the branch and create a pull request. - 1. zajsf developers will review your change and possibly point out issues. + 1. ng-formworks developers will review your change and possibly point out issues. Adapt the code under their guidance until all issues are resolved. 1. Finally, the pull request will get merged or rejected. @@ -58,15 +58,15 @@ requests. Let's first generate all the bundles we need to start the demo: ```bash -$ cd zajsf +$ cd ng-formworks $ yarn install or npm install $ yarn start ``` You can stop the demo application. The tricky part now is to run concurrently both the demo application & the library in watch mode. -So, first choose which library you want to change then run `$ ng build @zajsf/core --watch` for example -to build in watch mode the `@zajsf/core`. +So, first choose which library you want to change then run `$ ng build @ng-formworks/core --watch` for example +to build in watch mode the `@ng-formworks/core`. Now let's start the demo application in watch mode too. So, open a new terminal and run `$ ng serve` and there you go. This method is tricky but it works perfectly in all environments (I tried other methods like npm-run-all or concurrently packages but angular-cli build doesn't restart after a failed build). @@ -128,13 +128,13 @@ The scope should be the name of the npm package affected (as perceived by the pe The following is the list of supported scopes: -* **zajsf/core** -* **zajsf/cssfw** -* **zajsf/bs3** -* **zajsf/bs4** -* **zajsf/bs5** -* **zajsf/daisyui** -* **zajsf/material** +* **ng-formworks/core** +* **ng-formworks/cssfw** +* **ng-formworks/bs3** +* **ng-formworks/bs4** +* **ng-formworks/bs5** +* **ng-formworks/daisyui** +* **ng-formworks/material** * **locales** * **demo** * ... diff --git a/README.md b/README.md index 8970d0b..e1820c8 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,22 @@ -# ZAJSF (Z Angular JSON Schema Form) +# ng-formworks +This project is a continuation of [hamzahamidi/ajsf](https://github.com/hamzahamidi/ajsf) and [dschnelldavis/Angular2-json-schema-form](https://github.com/dschnelldavis/angular2-json-schema-form) and is not affiliated with any organization. -This fork was created for anyone needing to use angular 15+ in their project. - +ng-formworks targets angular 15+ and also adds extra frameworks and theming support [hamzahamidi/ajsf](https://github.com/hamzahamidi/ajsf) can be used for angular 14 and below -**N.B:** For Angular6-json-schema-form please check [this documentation](https://github.com/hamzahamidi/ajsf/tree/angular6-json-schema-form). -

Angular Versions -CI Status npm number of downloadsLICENSE IMTNetlify Status +CI Status npm number of downloadsLICENSE IMTNetlify Status

-Note: This project is a continuation to [dschnelldavis/Angular2-json-schema-form](https://github.com/dschnelldavis/angular2-json-schema-form) and is not affiliated with any organization. A [JSON Schema](http://json-schema.org) Form builder for Angular, similar to, and mostly API compatible with: @@ -35,35 +32,35 @@ A [JSON Schema](http://json-schema.org) Form builder for Angular, similar to, an ## Versions -| angular | zajsf | +| angular | ng-formworks | |--|--| -| 15.x.x |0.8.x| +| 15.x.x |15.x.x| | 16.x.x |16.x.x| | 17.x.x |17.x.x| ## Packages -* [`@zajsf/core`][gh_core_project] [![npm version][npm_core_badge]][npm_core_ver][![npm RC version][npm_core_badge_alpha]][npm_core_ver_alpha] +* [`@ng-formworks/core`][gh_core_project] [![npm version][npm_core_badge]][npm_core_ver][![npm RC version][npm_core_badge_alpha]][npm_core_ver_alpha] -* [`@zajsf/cssframework`][gh_cssframework_project] [![npm version][npm_cssframework_badge]][npm_cssframework_ver][![npm RC version][npm_cssframework_badge_alpha]][npm_cssframework_ver_alpha] +* [`@ng-formworks/cssframework`][gh_cssframework_project] [![npm version][npm_cssframework_badge]][npm_cssframework_ver][![npm RC version][npm_cssframework_badge_alpha]][npm_cssframework_ver_alpha] -* [`@zajsf/bootstrap3`][gh_bootstrap3_project] [![npm version][npm_bootstrap3_badge]][npm_bootstrap3_ver][![npm RC version][npm_bootstrap3_badge_alpha]][npm_bootstrap3_ver_alpha] +* [`@ng-formworks/bootstrap3`][gh_bootstrap3_project] [![npm version][npm_bootstrap3_badge]][npm_bootstrap3_ver][![npm RC version][npm_bootstrap3_badge_alpha]][npm_bootstrap3_ver_alpha] -* [`@zajsf/bootstrap4`][gh_bootstrap4_project] [![npm version][npm_bootstrap4_badge]][npm_bootstrap4_ver][![npm RC version][npm_bootstrap4_badge_alpha]][npm_bootstrap4_ver_alpha] +* [`@ng-formworks/bootstrap4`][gh_bootstrap4_project] [![npm version][npm_bootstrap4_badge]][npm_bootstrap4_ver][![npm RC version][npm_bootstrap4_badge_alpha]][npm_bootstrap4_ver_alpha] -* [`@zajsf/bootstrap5`][gh_bootstrap5_project] [![npm version][npm_bootstrap5_badge]][npm_bootstrap5_ver][![npm RC version][npm_bootstrap5_badge_alpha]][npm_bootstrap5_ver_alpha] +* [`@ng-formworks/bootstrap5`][gh_bootstrap5_project] [![npm version][npm_bootstrap5_badge]][npm_bootstrap5_ver][![npm RC version][npm_bootstrap5_badge_alpha]][npm_bootstrap5_ver_alpha] -* [`@zajsf/daisyui`][gh_daisyui_project] [![npm version][npm_daisyui_badge]][npm_daisyui_ver][![npm RC version][npm_daisyui_badge_alpha]][npm_daisyui_ver_alpha] +* [`@ng-formworks/daisyui`][gh_daisyui_project] [![npm version][npm_daisyui_badge]][npm_daisyui_ver][![npm RC version][npm_daisyui_badge_alpha]][npm_daisyui_ver_alpha] -* [`@zajsf/material`][gh_material_project] [![npm version][npm_material_badge]][npm_material_ver][![npm RC version][npm_material_badge_alpha]][npm_material_ver_alpha] +* [`@ng-formworks/material`][gh_material_project] [![npm version][npm_material_badge]][npm_material_ver][![npm RC version][npm_material_badge_alpha]][npm_material_ver_alpha] ## Check out the live demo and play with the examples -[Check out some examples here.](https://zahmo.github.io/zajsf/) +[Check out some examples here.](https://zahmo.github.io/ng-formworks/) This example playground features over 70 different JSON Schemas for you to try (including all examples used by each of the three libraries listed above), and the ability to quickly view any example formatted with Material Design, Bootstrap 3, Bootstrap 4, Bootstrap 5, DaisyUI or without any formatting. @@ -73,38 +70,38 @@ This example playground features over 70 different JSON Schemas for you to try ( First decide on which frameworks you plan to use (more than one can be installed) and have a look at their specific READMES regarding their installation: -[@zajsf/material][npm_material_ver] — Material Design +[@ng-formworks/material][npm_material_ver] — Material Design -[@zajsf/bootstrap3][npm_bootstrap3_ver] — Bootstrap 3 +[@ng-formworks/bootstrap3][npm_bootstrap3_ver] — Bootstrap 3 -[@zajsf/bootstrap4][npm_bootstrap4_ver] — Bootstrap 4 +[@ng-formworks/bootstrap4][npm_bootstrap4_ver] — Bootstrap 4 -[@zajsf/bootstrap5][npm_bootstrap5_ver] — Bootstrap 5 +[@ng-formworks/bootstrap5][npm_bootstrap5_ver] — Bootstrap 5 -[@zajsf/daisyui][npm_daisyui_ver] — DaisyUi +[@ng-formworks/daisyui][npm_daisyui_ver] — DaisyUi - [@zajsf/core][npm_core_ver] — plain HTML (for testing) + [@ng-formworks/core][npm_core_ver] — plain HTML (for testing) -For example if you'd like to try the material design based framework, [install @zajsf/material package from NPM][npm_material_ver] which uses `material-angular` UI. You can use either [NPM](https://www.npmjs.com) or [Yarn](https://yarnpkg.com). To install with NPM, run the following from your terminal: +For example if you'd like to try the material design based framework, [install @ng-formworks/material package from NPM][npm_material_ver] which uses `material-angular` UI. You can use either [NPM](https://www.npmjs.com) or [Yarn](https://yarnpkg.com). To install with NPM, run the following from your terminal: ```shell -npm install @zajsf/core@latest @zajsf/cssframework@latest @zajsf/material@latest +npm install @ng-formworks/core@latest @ng-formworks/cssframework@latest @ng-formworks/material@latest ``` With YARN, run the following: ```shell -yarn add @zajsf/core@latest @zajsf/cssframework@latest @zajsf/material@latest +yarn add @ng-formworks/core@latest @ng-formworks/cssframework@latest @ng-formworks/material@latest ``` include the themes scss in your applications sass file(typically "styles.scss" under "src" folder -see angular docs for more details) ```scss -@import "node_modules/@zajsf/material/assets/material-design-themes.scss"; +@import "node_modules/@ng-formworks/material/assets/material-design-themes.scss"; ``` Then import `MaterialDesignFrameworkModule` in your main application module like this: @@ -114,7 +111,7 @@ Then import `MaterialDesignFrameworkModule` in your main application module like import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; -import { MaterialDesignFrameworkModule } from '@zajsf/material'; +import { MaterialDesignFrameworkModule } from '@ng-formworks/material'; import { AppComponent } from './app.component'; @NgModule({ @@ -131,33 +128,33 @@ export class AppModule { } six framework modules are currently available, their import is similar to above and may vary slightly, have a look at their specific docs : -* MaterialDesignFrameworkModule from [@zajsf/material][npm_material_ver] — Material Design +* MaterialDesignFrameworkModule from [@ng-formworks/material][npm_material_ver] — Material Design -* Bootstrap3FrameworkModule from [@zajsf/bootstrap3][npm_bootstrap3_ver] — Bootstrap 3 +* Bootstrap3FrameworkModule from [@ng-formworks/bootstrap3][npm_bootstrap3_ver] — Bootstrap 3 -* Bootstrap4FrameworkModule from [@zajsf/bootstrap4][npm_bootstrap4_ver] — Bootstrap 4 +* Bootstrap4FrameworkModule from [@ng-formworks/bootstrap4][npm_bootstrap4_ver] — Bootstrap 4 -* Bootstrap5FrameworkModule from [@zajsf/bootstrap5][npm_bootstrap5_ver] — Bootstrap 5 +* Bootstrap5FrameworkModule from [@ng-formworks/bootstrap5][npm_bootstrap5_ver] — Bootstrap 5 -* DaisyUIFrameworkModule from [@zajsf/daisyui][npm_daisyui_ver] — DaisyUi +* DaisyUIFrameworkModule from [@ng-formworks/daisyui][npm_daisyui_ver] — DaisyUi -* JsonSchemaFormModule from [@zajsf/core][npm_core_ver] — plain HTML (for testing) +* JsonSchemaFormModule from [@ng-formworks/core][npm_core_ver] — plain HTML (for testing) It is also possible to load multiple frameworks and switch between them at runtime, like the example playground on GitHub. But most typical sites will just load one framework. ### To install from GitHub -To install [the library and the example playground from GitHub](https://github.com/zahmo/zajsf), clone `https://github.com/zahmo/zajsf.git` with your favorite git program. Or, assuming you have [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) and [Node/YARN](https://nodejs.org/en/download/) installed, enter the following in your terminal: +To install [the library and the example playground from GitHub](https://github.com/zahmo/ng-formworks), clone `https://github.com/zahmo/ng-formworks.git` with your favorite git program. Or, assuming you have [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) and [Node/YARN](https://nodejs.org/en/download/) installed, enter the following in your terminal: ```shell -git clone https://github.com/zahmo/zajsf.git zajsf -cd zajsf +git clone https://github.com/zahmo/ng-formworks.git ng-formworks +cd ng-formworks yarn install yarn start ``` @@ -166,34 +163,34 @@ This should start a server with the example playground, which you can view in yo The source code is composed as the following: -* `projects/zajsf-core` - Angular JSON Schema Form main library +* `projects/ng-formworks-core` - Angular JSON Schema Form main library -* `projects/zajsf-cssframework` - Framework module used to build other frameworks +* `projects/ng-formworks-cssframework` - Framework module used to build other frameworks -* `projects/zajsf-bootstrap3` - Framework for Bootstrap 3 +* `projects/ng-formworks-bootstrap3` - Framework for Bootstrap 3 -* `projects/zajsf-bootstrap4` - Framework for Bootstrap 4 +* `projects/ng-formworks-bootstrap4` - Framework for Bootstrap 4 -* `projects/zajsf-bootstrap5` - Framework for Bootstrap 5 +* `projects/ng-formworks-bootstrap5` - Framework for Bootstrap 5 -* `projects/zajsf-daisyui` - Framework for DaisyUI +* `projects/ng-formworks-daisyui` - Framework for DaisyUI -* `projects/zajsf-material` - Framework for Angular Material +* `projects/ng-formworks-material` - Framework for Angular Material -* `projects/zajsf-core/src/lib/framework-library` - framework library +* `projects/ng-formworks-core/src/lib/framework-library` - framework library -* `projects/zajsf-core/src/lib/widget-library` - widget library +* `projects/ng-formworks-core/src/lib/widget-library` - widget library -* `projects/zajsf-core/src/lib/shared` - various utilities and helper functions +* `projects/ng-formworks-core/src/lib/shared` - various utilities and helper functions * `demo` - the demonstration playground example application @@ -582,7 +579,7 @@ const yourNewWidgets = { ```javascript -import { WidgetLibraryService } from '@zajsf/core'; +import { WidgetLibraryService } from '@ng-formworks/core'; ... @@ -634,7 +631,7 @@ const yourCustomFramework = { ```javascript -import { FrameworkLibraryService } from '@zajsf/core'; +import { FrameworkLibraryService } from '@ng-formworks/core'; ... @@ -716,18 +713,18 @@ currently the following built-in themes are available(per framework): for more on how to customize themes, take a look at the relevant framework's docs: -* [`@zajsf/bootstrap3`](./projects/zajsf-bootstrap3/README.md#custom-theming) +* [`@ng-formworks/bootstrap3`](./projects/ng-formworks-bootstrap3/README.md#custom-theming) -* [`@zajsf/bootstrap4`](./projects/zajsf-bootstrap3/README.md#custom-theming) +* [`@ng-formworks/bootstrap4`](./projects/ng-formworks-bootstrap3/README.md#custom-theming) -* [`@zajsf/bootstrap5`](./projects/zajsf-bootstrap4/README.md#custom-theming) +* [`@ng-formworks/bootstrap5`](./projects/ng-formworks-bootstrap4/README.md#custom-theming) -* [`@zajsf/daisyui`](./projects/zajsf-daisyui/README.md#custom-theming) +* [`@ng-formworks/daisyui`](./projects/ng-formworks-daisyui/README.md#custom-theming) -* [`@zajsf/material`](./projects/zajsf-material/README.md#custom-theming) +* [`@ng-formworks/material`](./projects/ng-formworks-material/README.md#custom-theming) ## contributing guide @@ -739,98 +736,98 @@ If you like this project and want to contribute you can check this [documentatio [gh_core_project]:./README.md -[npm_core_badge]:https://img.shields.io/npm/v/%40zajsf%2Fcore.svg?color=#010101 +[npm_core_badge]:https://img.shields.io/npm/v/%40ng-formworks%2Fcore.svg?color=#010101 -[npm_core_ver]:https://www.npmjs.com/package/@zajsf/core +[npm_core_ver]:https://www.npmjs.com/package/@ng-formworks/core -[npm_core_badge_RC]:https://img.shields.io/npm/v/%40zajsf%2Fcore/RC.svg?color=blue +[npm_core_badge_RC]:https://img.shields.io/npm/v/%40ng-formworks%2Fcore/RC.svg?color=blue -[npm_core_ver_RC]:https://www.npmjs.com/package/@zajsf/core +[npm_core_ver_RC]:https://www.npmjs.com/package/@ng-formworks/core -[npm_core_badge_alpha]:https://img.shields.io/npm/v/%40zajsf%2Fcore/alpha.svg?color=blue +[npm_core_badge_alpha]:https://img.shields.io/npm/v/%40ng-formworks%2Fcore/alpha.svg?color=blue -[npm_core_ver_alpha]:https://www.npmjs.com/package/@zajsf/core +[npm_core_ver_alpha]:https://www.npmjs.com/package/@ng-formworks/core -[gh_cssframework_project]:./projects/zajsf-cssframework/README.md +[gh_cssframework_project]:./projects/ng-formworks-cssframework/README.md -[npm_cssframework_badge]:https://img.shields.io/npm/v/%40zajsf%2Fcssframework.svg?color=#010101 +[npm_cssframework_badge]:https://img.shields.io/npm/v/%40ng-formworks%2Fcssframework.svg?color=#010101 -[npm_cssframework_ver]:https://www.npmjs.com/package/@zajsf/cssframework +[npm_cssframework_ver]:https://www.npmjs.com/package/@ng-formworks/cssframework -[npm_cssframework_badge_RC]:https://img.shields.io/npm/v/%40zajsf%2Fcssframework/RC.svg?color=blue +[npm_cssframework_badge_RC]:https://img.shields.io/npm/v/%40ng-formworks%2Fcssframework/RC.svg?color=blue -[npm_cssframework_ver_RC]:https://www.npmjs.com/package/@zajsf/cssframework +[npm_cssframework_ver_RC]:https://www.npmjs.com/package/@ng-formworks/cssframework -[npm_cssframework_badge_alpha]:https://img.shields.io/npm/v/%40zajsf%2Fcssframework/alpha.svg?color=blue +[npm_cssframework_badge_alpha]:https://img.shields.io/npm/v/%40ng-formworks%2Fcssframework/alpha.svg?color=blue -[npm_cssframework_ver_alpha]:https://www.npmjs.com/package/@zajsf/cssframework +[npm_cssframework_ver_alpha]:https://www.npmjs.com/package/@ng-formworks/cssframework -[gh_bootstrap3_project]:./projects/zajsf-bootstrap3/README.md +[gh_bootstrap3_project]:./projects/ng-formworks-bootstrap3/README.md -[npm_bootstrap3_badge]:https://img.shields.io/npm/v/%40zajsf%2Fbootstrap3.svg?color=#010101 +[npm_bootstrap3_badge]:https://img.shields.io/npm/v/%40ng-formworks%2Fbootstrap3.svg?color=#010101 -[npm_bootstrap3_ver]:https://www.npmjs.com/package/@zajsf/bootstrap3 +[npm_bootstrap3_ver]:https://www.npmjs.com/package/@ng-formworks/bootstrap3 -[npm_bootstrap3_badge_RC]:https://img.shields.io/npm/v/%40zajsf%2Fbootstrap3/RC.svg?color=blue +[npm_bootstrap3_badge_RC]:https://img.shields.io/npm/v/%40ng-formworks%2Fbootstrap3/RC.svg?color=blue -[npm_bootstrap3_ver_RC]:https://www.npmjs.com/package/@zajsf/bootstrap3 +[npm_bootstrap3_ver_RC]:https://www.npmjs.com/package/@ng-formworks/bootstrap3 -[npm_bootstrap3_badge_alpha]:https://img.shields.io/npm/v/%40zajsf%2Fbootstrap3/alpha.svg?color=blue +[npm_bootstrap3_badge_alpha]:https://img.shields.io/npm/v/%40ng-formworks%2Fbootstrap3/alpha.svg?color=blue -[npm_bootstrap3_ver_alpha]:https://www.npmjs.com/package/@zajsf/bootstrap3 +[npm_bootstrap3_ver_alpha]:https://www.npmjs.com/package/@ng-formworks/bootstrap3 -[gh_bootstrap4_project]:./projects/zajsf-bootstrap4/README.md +[gh_bootstrap4_project]:./projects/ng-formworks-bootstrap4/README.md -[npm_bootstrap4_badge]:https://img.shields.io/npm/v/%40zajsf%2Fbootstrap4.svg?color=#010101 +[npm_bootstrap4_badge]:https://img.shields.io/npm/v/%40ng-formworks%2Fbootstrap4.svg?color=#010101 -[npm_bootstrap4_ver]:https://www.npmjs.com/package/@zajsf/bootstrap4 +[npm_bootstrap4_ver]:https://www.npmjs.com/package/@ng-formworks/bootstrap4 -[npm_bootstrap4_badge_RC]:https://img.shields.io/npm/v/%40zajsf%2Fbootstrap4/RC.svg?color=blue +[npm_bootstrap4_badge_RC]:https://img.shields.io/npm/v/%40ng-formworks%2Fbootstrap4/RC.svg?color=blue -[npm_bootstrap4_ver_RC]:https://www.npmjs.com/package/@zajsf/bootstrap4 +[npm_bootstrap4_ver_RC]:https://www.npmjs.com/package/@ng-formworks/bootstrap4 -[npm_bootstrap4_badge_alpha]:https://img.shields.io/npm/v/%40zajsf%2Fbootstrap4/alpha.svg?color=blue +[npm_bootstrap4_badge_alpha]:https://img.shields.io/npm/v/%40ng-formworks%2Fbootstrap4/alpha.svg?color=blue -[npm_bootstrap4_ver_alpha]:https://www.npmjs.com/package/@zajsf/bootstrap4 +[npm_bootstrap4_ver_alpha]:https://www.npmjs.com/package/@ng-formworks/bootstrap4 -[gh_bootstrap5_project]:./projects/zajsf-bootstrap5/README.md +[gh_bootstrap5_project]:./projects/ng-formworks-bootstrap5/README.md -[npm_bootstrap5_badge]:https://img.shields.io/npm/v/%40zajsf%2Fbootstrap5.svg?color=#010101 +[npm_bootstrap5_badge]:https://img.shields.io/npm/v/%40ng-formworks%2Fbootstrap5.svg?color=#010101 -[npm_bootstrap5_ver]:https://www.npmjs.com/package/@zajsf/bootstrap5 +[npm_bootstrap5_ver]:https://www.npmjs.com/package/@ng-formworks/bootstrap5 -[npm_bootstrap5_badge_RC]:https://img.shields.io/npm/v/%40zajsf%2Fbootstrap5/RC.svg?color=blue +[npm_bootstrap5_badge_RC]:https://img.shields.io/npm/v/%40ng-formworks%2Fbootstrap5/RC.svg?color=blue -[npm_bootstrap5_ver_RC]:https://www.npmjs.com/package/@zajsf/bootstrap5 +[npm_bootstrap5_ver_RC]:https://www.npmjs.com/package/@ng-formworks/bootstrap5 -[npm_bootstrap5_badge_alpha]:https://img.shields.io/npm/v/%40zajsf%2Fbootstrap5/alpha.svg?color=blue +[npm_bootstrap5_badge_alpha]:https://img.shields.io/npm/v/%40ng-formworks%2Fbootstrap5/alpha.svg?color=blue -[npm_bootstrap5_ver_alpha]:https://www.npmjs.com/package/@zajsf/bootstrap5 +[npm_bootstrap5_ver_alpha]:https://www.npmjs.com/package/@ng-formworks/bootstrap5 -[gh_daisyui_project]:./projects/zajsf-daisyui/README.md +[gh_daisyui_project]:./projects/ng-formworks-daisyui/README.md -[npm_daisyui_badge]:https://img.shields.io/npm/v/%40zajsf%2Fdaisyui.svg?color=#010101 +[npm_daisyui_badge]:https://img.shields.io/npm/v/%40ng-formworks%2Fdaisyui.svg?color=#010101 -[npm_daisyui_ver]:https://www.npmjs.com/package/@zajsf/daisyui +[npm_daisyui_ver]:https://www.npmjs.com/package/@ng-formworks/daisyui -[npm_daisyui_badge_RC]:https://img.shields.io/npm/v/%40zajsf%2Fdaisyui/RC.svg?color=blue +[npm_daisyui_badge_RC]:https://img.shields.io/npm/v/%40ng-formworks%2Fdaisyui/RC.svg?color=blue -[npm_daisyui_ver_RC]:https://www.npmjs.com/package/@zajsf/daisyui +[npm_daisyui_ver_RC]:https://www.npmjs.com/package/@ng-formworks/daisyui -[npm_daisyui_badge_alpha]:https://img.shields.io/npm/v/%40zajsf%2Fdaisyui/alpha.svg?color=blue +[npm_daisyui_badge_alpha]:https://img.shields.io/npm/v/%40ng-formworks%2Fdaisyui/alpha.svg?color=blue -[npm_daisyui_ver_alpha]:https://www.npmjs.com/package/@zajsf/daisyui +[npm_daisyui_ver_alpha]:https://www.npmjs.com/package/@ng-formworks/daisyui -[gh_material_project]:./projects/zajsf-material/README.md +[gh_material_project]:./projects/ng-formworks-material/README.md -[npm_material_badge]:https://img.shields.io/npm/v/%40zajsf%2Fmaterial.svg?color=#010101 +[npm_material_badge]:https://img.shields.io/npm/v/%40ng-formworks%2Fmaterial.svg?color=#010101 -[npm_material_ver]:https://www.npmjs.com/package/@zajsf/material +[npm_material_ver]:https://www.npmjs.com/package/@ng-formworks/material -[npm_material_badge_RC]:https://img.shields.io/npm/v/%40zajsf%2Fmaterial/RC.svg?color=blue +[npm_material_badge_RC]:https://img.shields.io/npm/v/%40ng-formworks%2Fmaterial/RC.svg?color=blue -[npm_material_ver_RC]:https://www.npmjs.com/package/@zajsf/material +[npm_material_ver_RC]:https://www.npmjs.com/package/@ng-formworks/material -[npm_material_badge_alpha]:https://img.shields.io/npm/v/%40zajsf%2Fmaterial/alpha.svg?color=blue +[npm_material_badge_alpha]:https://img.shields.io/npm/v/%40ng-formworks%2Fmaterial/alpha.svg?color=blue -[npm_material_ver_alpha]:https://www.npmjs.com/package/@zajsf/material +[npm_material_ver_alpha]:https://www.npmjs.com/package/@ng-formworks/material diff --git a/angular.json b/angular.json index 8ceabbe..86d5167 100644 --- a/angular.json +++ b/angular.json @@ -57,18 +57,18 @@ "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { - "buildTarget": "demo:build" + "buildTarget": "demo:build" }, "configurations": { "production": { - "buildTarget": "demo:build:production" + "buildTarget": "demo:build:production" } } }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { - "buildTarget": "demo:build" + "buildTarget": "demo:build" } }, "test": { @@ -108,136 +108,136 @@ } } }, - "@zajsf/core": { - "root": "projects/zajsf-core", - "sourceRoot": "projects/zajsf-core/src", + "@ng-formworks/core": { + "root": "projects/ng-formworks-core", + "sourceRoot": "projects/ng-formworks-core/src", "projectType": "library", "prefix": "", "architect": { "build": { "builder": "@angular-devkit/build-angular:ng-packagr", "options": { - "tsConfig": "projects/zajsf-core/tsconfig.lib.json", - "project": "projects/zajsf-core/ng-package.json" + "tsConfig": "projects/ng-formworks-core/tsconfig.lib.json", + "project": "projects/ng-formworks-core/ng-package.json" }, "configurations": { "production": { - "tsConfig": "projects/zajsf-core/tsconfig.lib.prod.json" + "tsConfig": "projects/ng-formworks-core/tsconfig.lib.prod.json" } } }, "test": { "builder": "@angular-devkit/build-angular:karma", "options": { - "main": "projects/zajsf-core/src/test.ts", - "tsConfig": "projects/zajsf-core/tsconfig.spec.json", - "karmaConfig": "projects/zajsf-core/karma.conf.js" + "main": "projects/ng-formworks-core/src/test.ts", + "tsConfig": "projects/ng-formworks-core/tsconfig.spec.json", + "karmaConfig": "projects/ng-formworks-core/karma.conf.js" } } } }, - "@zajsf/bootstrap4": { + "@ng-formworks/bootstrap4": { "projectType": "library", - "root": "projects/zajsf-bootstrap4", - "sourceRoot": "projects/zajsf-bootstrap4/src", + "root": "projects/ng-formworks-bootstrap4", + "sourceRoot": "projects/ng-formworks-bootstrap4/src", "prefix": "", "architect": { "build": { "builder": "@angular-devkit/build-angular:ng-packagr", "options": { - "tsConfig": "projects/zajsf-bootstrap4/tsconfig.lib.json", - "project": "projects/zajsf-bootstrap4/ng-package.json" + "tsConfig": "projects/ng-formworks-bootstrap4/tsconfig.lib.json", + "project": "projects/ng-formworks-bootstrap4/ng-package.json" }, "configurations": { "production": { - "tsConfig": "projects/zajsf-bootstrap4/tsconfig.lib.prod.json" + "tsConfig": "projects/ng-formworks-bootstrap4/tsconfig.lib.prod.json" } } }, "test": { "builder": "@angular-devkit/build-angular:karma", "options": { - "main": "projects/zajsf-bootstrap4/src/test.ts", - "tsConfig": "projects/zajsf-bootstrap4/tsconfig.spec.json", - "karmaConfig": "projects/zajsf-bootstrap4/karma.conf.js" + "main": "projects/ng-formworks-bootstrap4/src/test.ts", + "tsConfig": "projects/ng-formworks-bootstrap4/tsconfig.spec.json", + "karmaConfig": "projects/ng-formworks-bootstrap4/karma.conf.js" } } } }, - "@zajsf/bootstrap3": { + "@ng-formworks/bootstrap3": { "projectType": "library", - "root": "projects/zajsf-bootstrap3", - "sourceRoot": "projects/zajsf-bootstrap3/src", + "root": "projects/ng-formworks-bootstrap3", + "sourceRoot": "projects/ng-formworks-bootstrap3/src", "prefix": "", "architect": { "build": { "builder": "@angular-devkit/build-angular:ng-packagr", "options": { - "tsConfig": "projects/zajsf-bootstrap3/tsconfig.lib.json", - "project": "projects/zajsf-bootstrap3/ng-package.json" + "tsConfig": "projects/ng-formworks-bootstrap3/tsconfig.lib.json", + "project": "projects/ng-formworks-bootstrap3/ng-package.json" }, "configurations": { "production": { - "tsConfig": "projects/zajsf-bootstrap3/tsconfig.lib.prod.json" + "tsConfig": "projects/ng-formworks-bootstrap3/tsconfig.lib.prod.json" } } }, "test": { "builder": "@angular-devkit/build-angular:karma", "options": { - "main": "projects/zajsf-bootstrap3/src/test.ts", - "tsConfig": "projects/zajsf-bootstrap3/tsconfig.spec.json", - "karmaConfig": "projects/zajsf-bootstrap3/karma.conf.js" + "main": "projects/ng-formworks-bootstrap3/src/test.ts", + "tsConfig": "projects/ng-formworks-bootstrap3/tsconfig.spec.json", + "karmaConfig": "projects/ng-formworks-bootstrap3/karma.conf.js" } } } }, - "@zajsf/material": { + "@ng-formworks/material": { "projectType": "library", - "root": "projects/zajsf-material", - "sourceRoot": "projects/zajsf-material/src", + "root": "projects/ng-formworks-material", + "sourceRoot": "projects/ng-formworks-material/src", "prefix": "", "architect": { "build": { "builder": "@angular-devkit/build-angular:ng-packagr", "options": { - "tsConfig": "projects/zajsf-material/tsconfig.lib.json", - "project": "projects/zajsf-material/ng-package.json" + "tsConfig": "projects/ng-formworks-material/tsconfig.lib.json", + "project": "projects/ng-formworks-material/ng-package.json" }, "configurations": { "production": { - "tsConfig": "projects/zajsf-material/tsconfig.lib.prod.json" + "tsConfig": "projects/ng-formworks-material/tsconfig.lib.prod.json" } } }, "test": { "builder": "@angular-devkit/build-angular:karma", "options": { - "main": "projects/zajsf-material/src/test.ts", - "tsConfig": "projects/zajsf-material/tsconfig.spec.json", - "karmaConfig": "projects/zajsf-material/karma.conf.js" + "main": "projects/ng-formworks-material/src/test.ts", + "tsConfig": "projects/ng-formworks-material/tsconfig.spec.json", + "karmaConfig": "projects/ng-formworks-material/karma.conf.js" } } } }, - "@zajsf/daisyui": { + "@ng-formworks/daisyui": { "projectType": "library", - "root": "projects/zajsf-daisyui", - "sourceRoot": "projects/zajsf-daisyui/src", + "root": "projects/ng-formworks-daisyui", + "sourceRoot": "projects/ng-formworks-daisyui/src", "prefix": "lib", "architect": { "build": { "builder": "@angular-devkit/build-angular:ng-packagr", "options": { - "project": "projects/zajsf-daisyui/ng-package.json" + "project": "projects/ng-formworks-daisyui/ng-package.json" }, "configurations": { "production": { - "tsConfig": "projects/zajsf-daisyui/tsconfig.lib.prod.json" + "tsConfig": "projects/ng-formworks-daisyui/tsconfig.lib.prod.json" }, "development": { - "tsConfig": "projects/zajsf-daisyui/tsconfig.lib.json" + "tsConfig": "projects/ng-formworks-daisyui/tsconfig.lib.json" } }, "defaultConfiguration": "production" @@ -245,7 +245,7 @@ "test": { "builder": "@angular-devkit/build-angular:karma", "options": { - "tsConfig": "projects/zajsf-daisyui/tsconfig.spec.json", + "tsConfig": "projects/ng-formworks-daisyui/tsconfig.spec.json", "polyfills": [ "zone.js", "zone.js/testing" @@ -254,23 +254,23 @@ } } }, - "@zajsf/cssframework": { + "@ng-formworks/cssframework": { "projectType": "library", - "root": "projects/zajsf-cssframework", - "sourceRoot": "projects/zajsf-cssframework/src", + "root": "projects/ng-formworks-cssframework", + "sourceRoot": "projects/ng-formworks-cssframework/src", "prefix": "lib", "architect": { "build": { "builder": "@angular-devkit/build-angular:ng-packagr", "options": { - "project": "projects/zajsf-cssframework/ng-package.json" + "project": "projects/ng-formworks-cssframework/ng-package.json" }, "configurations": { "production": { - "tsConfig": "projects/zajsf-cssframework/tsconfig.lib.prod.json" + "tsConfig": "projects/ng-formworks-cssframework/tsconfig.lib.prod.json" }, "development": { - "tsConfig": "projects/zajsf-cssframework/tsconfig.lib.json" + "tsConfig": "projects/ng-formworks-cssframework/tsconfig.lib.json" } }, "defaultConfiguration": "production" @@ -278,7 +278,7 @@ "test": { "builder": "@angular-devkit/build-angular:karma", "options": { - "tsConfig": "projects/zajsf-cssframework/tsconfig.spec.json", + "tsConfig": "projects/ng-formworks-cssframework/tsconfig.spec.json", "polyfills": [ "zone.js", "zone.js/testing" @@ -287,23 +287,23 @@ } } }, - "@zajsf/bootstrap5": { + "@ng-formworks/bootstrap5": { "projectType": "library", - "root": "projects/zajsf-bootstrap5", - "sourceRoot": "projects/zajsf-bootstrap5/src", + "root": "projects/ng-formworks-bootstrap5", + "sourceRoot": "projects/ng-formworks-bootstrap5/src", "prefix": "lib", "architect": { "build": { "builder": "@angular-devkit/build-angular:ng-packagr", "options": { - "project": "projects/zajsf-bootstrap5/ng-package.json" + "project": "projects/ng-formworks-bootstrap5/ng-package.json" }, "configurations": { "production": { - "tsConfig": "projects/zajsf-bootstrap5/tsconfig.lib.prod.json" + "tsConfig": "projects/ng-formworks-bootstrap5/tsconfig.lib.prod.json" }, "development": { - "tsConfig": "projects/zajsf-bootstrap5/tsconfig.lib.json" + "tsConfig": "projects/ng-formworks-bootstrap5/tsconfig.lib.json" } }, "defaultConfiguration": "production" @@ -311,7 +311,7 @@ "test": { "builder": "@angular-devkit/build-angular:karma", "options": { - "tsConfig": "projects/zajsf-bootstrap5/tsconfig.spec.json", + "tsConfig": "projects/ng-formworks-bootstrap5/tsconfig.spec.json", "polyfills": [ "zone.js", "zone.js/testing" diff --git a/demo/app/demo.component.ts b/demo/app/demo.component.ts index fe2f81e..e8cd2d3 100755 --- a/demo/app/demo.component.ts +++ b/demo/app/demo.component.ts @@ -4,7 +4,7 @@ import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core'; import { MatMenuTrigger } from '@angular/material/menu'; import { ActivatedRoute, Router } from '@angular/router'; -import { Framework, FrameworkLibraryService, JsonPointer } from '@zajsf/core'; +import { Framework, FrameworkLibraryService, JsonPointer } from '@ng-formworks/core'; import { Examples } from './example-schemas.model'; @Component({ diff --git a/demo/app/demo.module.ts b/demo/app/demo.module.ts index 41542a5..2f22d37 100755 --- a/demo/app/demo.module.ts +++ b/demo/app/demo.module.ts @@ -11,16 +11,16 @@ import { MatToolbarModule } from '@angular/material/toolbar'; import { BrowserModule, REMOVE_STYLES_ON_COMPONENT_DESTROY } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterModule } from '@angular/router'; -import { Bootstrap3FrameworkModule } from '@zajsf/bootstrap3'; -import { Bootstrap4FrameworkModule } from '@zajsf/bootstrap4'; -import { JsonSchemaFormModule } from '@zajsf/core'; +import { Bootstrap3FrameworkModule } from '@ng-formworks/bootstrap3'; +import { Bootstrap4FrameworkModule } from '@ng-formworks/bootstrap4'; +import { JsonSchemaFormModule } from '@ng-formworks/core'; -import { DUIOPTIONS, DaisyUIFrameworkModule } from '@zajsf/daisyui'; -import { MaterialDesignFrameworkModule } from '@zajsf/material'; +import { DUIOPTIONS, DaisyUIFrameworkModule } from '@ng-formworks/daisyui'; +import { MaterialDesignFrameworkModule } from '@ng-formworks/material'; -import { Bootstrap5FrameworkModule } from '@zajsf/bootstrap5'; -import { CssFrameworkModule } from '@zajsf/cssframework'; +import { Bootstrap5FrameworkModule } from '@ng-formworks/bootstrap5'; +import { CssFrameworkModule } from '@ng-formworks/cssframework'; import { environment } from '../environments/environment'; import { AceEditorDirective } from './ace-editor.directive'; import { DemoRootComponent } from './demo-root.component'; diff --git a/demo/environments/environment.prod.ts b/demo/environments/environment.prod.ts index 6d21586..e22ae3d 100755 --- a/demo/environments/environment.prod.ts +++ b/demo/environments/environment.prod.ts @@ -1,3 +1,3 @@ - export const environment ={"production":true,"version":"17.2.5-alpha.2","angularVersion":"17.2.3","materialVersion":"17.2.1","cssClassPrefix":true} + export const environment ={"production":true,"version":"17.2.6-alpha.0","angularVersion":"17.2.3","materialVersion":"17.2.1","cssClassPrefix":true} \ No newline at end of file diff --git a/demo/environments/environment.ts b/demo/environments/environment.ts index 85df7aa..c76d708 100755 --- a/demo/environments/environment.ts +++ b/demo/environments/environment.ts @@ -1,3 +1,3 @@ - export const environment ={"production":false,"version":"17.2.5-alpha.2","angularVersion":"17.2.3","materialVersion":"17.2.1","cssClassPrefix":true} + export const environment ={"production":false,"version":"17.2.6-alpha.0","angularVersion":"17.2.3","materialVersion":"17.2.1","cssClassPrefix":true} \ No newline at end of file diff --git a/demo/styles.scss b/demo/styles.scss index 5387867..067920e 100755 --- a/demo/styles.scss +++ b/demo/styles.scss @@ -123,5 +123,5 @@ $light-theme: mat.define-light-theme(( color: ( primary: mat.define-palette(mat. @include mat.button-color($demo-app-theme); } -@import '../projects/zajsf-material/src/lib/material-design-themes.scss'; -@import '../projects/zajsf-material/src/lib/flexlayout-replacement-styles.scss'; \ No newline at end of file +@import '../projects/ng-formworks-material/src/lib/material-design-themes.scss'; +@import '../projects/ng-formworks-material/src/lib/flexlayout-replacement-styles.scss'; \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 5c77ed7..0bd1826 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "demo", - "version": "17.2.4", + "version": "17.2.5-alpha.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "demo", - "version": "17.2.4", + "version": "17.2.5-alpha.2", "license": "MIT", "dependencies": { "@angular/animations": "^17.2.3", diff --git a/package.json b/package.json index 9a66709..5a53fe5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "demo", - "version": "17.2.5-alpha.2", - "author": "https://github.com/zahmo/zajsf/graphs/contributors", + "version": "17.2.6-alpha.0", + "author": "https://github.com/zahmo/ng-formworks/graphs/contributors", "description": "Angular JSON Schema Form builder Demo", "engines": { "node": ">=16.13.2", @@ -24,6 +24,7 @@ "forms", "form builder", "form themes", + "form generator", "material", "angular material", "material design", @@ -36,54 +37,56 @@ "tailwindcss", "tailwind css", "ajsf", - "zajsf", + "ng-formworks", + "ng formworks", + "formworks", "angular json schema form" ], "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/zahmo/zajsf" + "url": "git+https://github.com/zahmo/ng-formworks" }, "bugs": { - "url": "https://github.com/zahmo/zajsf" + "url": "https://github.com/zahmo/ng-formworks" }, - "homepage": "https://github.com/zahmo/zajsf#readme", + "homepage": "https://github.com/zahmo/ng-formworks#readme", "scripts": { "ng": "ng", "prestart": "npm run build:libs", "start": "ng serve", "start:demo-only": "ng serve", - "build:core": "ng build @zajsf/core --configuration production", - "postbuild:core": "cp README.md dist/@zajsf/core/ && cp LICENSE dist/@zajsf/core/", - "build:cssfw": "ng build @zajsf/cssframework --configuration production", - "postbuild:cssfw": "cp README.md dist/@zajsf/cssframework/ && cp LICENSE dist/@zajsf/cssframework/", - "build:bs3": "ng build @zajsf/bootstrap3 --configuration production", - "postbuild:bs3": "cp projects/zajsf-bootstrap3/README.md dist/@zajsf/bootstrap3/ && cp LICENSE dist/@zajsf/bootstrap3/", - "build:bs4": "ng build @zajsf/bootstrap4 --configuration production", - "postbuild:bs4": "cp projects/zajsf-bootstrap4/README.md dist/@zajsf/bootstrap4/ && cp LICENSE dist/@zajsf/bootstrap4/", - "build:bs5": "ng build @zajsf/bootstrap5 --configuration production", - "postbuild:bs5": "cp projects/zajsf-bootstrap5/README.md dist/@zajsf/bootstrap5/ && cp LICENSE dist/@zajsf/bootstrap5/", - "build:material": "ng build @zajsf/material --configuration production", - "postbuild:material": "cp projects/zajsf-material/README.md dist/@zajsf/material/ && cp LICENSE dist/@zajsf/material/", + "build:core": "ng build @ng-formworks/core --configuration production", + "postbuild:core": "cp README.md dist/@ng-formworks/core/ && cp LICENSE dist/@ng-formworks/core/", + "build:cssfw": "ng build @ng-formworks/cssframework --configuration production", + "postbuild:cssfw": "cp README.md dist/@ng-formworks/cssframework/ && cp LICENSE dist/@ng-formworks/cssframework/", + "build:bs3": "ng build @ng-formworks/bootstrap3 --configuration production", + "postbuild:bs3": "cp projects/ng-formworks-bootstrap3/README.md dist/@ng-formworks/bootstrap3/ && cp LICENSE dist/@ng-formworks/bootstrap3/", + "build:bs4": "ng build @ng-formworks/bootstrap4 --configuration production", + "postbuild:bs4": "cp projects/ng-formworks-bootstrap4/README.md dist/@ng-formworks/bootstrap4/ && cp LICENSE dist/@ng-formworks/bootstrap4/", + "build:bs5": "ng build @ng-formworks/bootstrap5 --configuration production", + "postbuild:bs5": "cp projects/ng-formworks-bootstrap5/README.md dist/@ng-formworks/bootstrap5/ && cp LICENSE dist/@ng-formworks/bootstrap5/", + "build:material": "ng build @ng-formworks/material --configuration production", + "postbuild:material": "cp projects/ng-formworks-material/README.md dist/@ng-formworks/material/ && cp LICENSE dist/@ng-formworks/material/", "build:libs": "npm run build:core && npm run build:cssfw && npm run build:bs5 && npm run build:bs4 && npm run build:bs3 && npm run build:material && npm run build:daisyui", "build:demo": "npm run update:env && npm run build:libs && ng build demo --configuration production --base-href ./", "build:demo-only": "npm run update:env && ng build demo --configuration production --base-href ./", - "prebuild:material": "npx tailwindcss -c projects/zajsf-material/tailwind.config.js -i projects/zajsf-material/tailwind-input.css -o projects/zajsf-material/src/lib/tailwind-output.scss && cp projects/zajsf-material/src/lib/material-design-themes.scss projects/zajsf-material/assets/material-design-themes.scss", - "build:daisyui:extract-css-names": "node projects/zajsf-daisyui/css_names_extractor.js --stylePath ./node_modules/daisyui/dist/full.css --outputPath projects/zajsf-daisyui/src/daisyui_class_names.css", - "build:daisyui:extract-css-names:prefixed:tw": "node projects/zajsf-daisyui/css_names_extractor.js --stylePath ./node_modules/daisyui/dist/full.css --classPrefix tw --outputPath projects/zajsf-daisyui/src/daisyui_class_names_prefixed_tw.css", - "build:daisyui:extract-css-names:prefixed:tw-dui": "node projects/zajsf-daisyui/css_names_extractor.js --stylePath ./node_modules/daisyui/dist/full.css --classPrefix tw-dui --outputPath projects/zajsf-daisyui/src/daisyui_class_names_prefixed_tw_dui.css", - "build:daisyui": "ng build @zajsf/daisyui --configuration production", - "postbuild:daisyui": "cp projects/zajsf-daisyui/README.md dist/@zajsf/daisyui/ && cp LICENSE dist/@zajsf/daisyui/", - "output:daisyui:tailwind": "npx tailwindcss -c projects/zajsf-daisyui/tailwind.config.js -i projects/zajsf-daisyui/tailwind-input.css -o projects/zajsf-daisyui/src/lib/tailwind-output.scss", - "output:daisyui:tailwind:prefixed": "npx tailwindcss -c projects/zajsf-daisyui/tailwind.prefixed.config.js -i projects/zajsf-daisyui/tailwind-input.css -o projects/zajsf-daisyui/src/lib/tailwind-output-prefixed.scss", + "prebuild:material": "npx tailwindcss -c projects/ng-formworks-material/tailwind.config.js -i projects/ng-formworks-material/tailwind-input.css -o projects/ng-formworks-material/src/lib/tailwind-output.scss && cp projects/ng-formworks-material/src/lib/material-design-themes.scss projects/ng-formworks-material/assets/material-design-themes.scss", + "build:daisyui:extract-css-names": "node projects/ng-formworks-daisyui/css_names_extractor.js --stylePath ./node_modules/daisyui/dist/full.css --outputPath projects/ng-formworks-daisyui/src/daisyui_class_names.css", + "build:daisyui:extract-css-names:prefixed:tw": "node projects/ng-formworks-daisyui/css_names_extractor.js --stylePath ./node_modules/daisyui/dist/full.css --classPrefix tw --outputPath projects/ng-formworks-daisyui/src/daisyui_class_names_prefixed_tw.css", + "build:daisyui:extract-css-names:prefixed:tw-dui": "node projects/ng-formworks-daisyui/css_names_extractor.js --stylePath ./node_modules/daisyui/dist/full.css --classPrefix tw-dui --outputPath projects/ng-formworks-daisyui/src/daisyui_class_names_prefixed_tw_dui.css", + "build:daisyui": "ng build @ng-formworks/daisyui --configuration production", + "postbuild:daisyui": "cp projects/ng-formworks-daisyui/README.md dist/@ng-formworks/daisyui/ && cp LICENSE dist/@ng-formworks/daisyui/", + "output:daisyui:tailwind": "npx tailwindcss -c projects/ng-formworks-daisyui/tailwind.config.js -i projects/ng-formworks-daisyui/tailwind-input.css -o projects/ng-formworks-daisyui/src/lib/tailwind-output.scss", + "output:daisyui:tailwind:prefixed": "npx tailwindcss -c projects/ng-formworks-daisyui/tailwind.prefixed.config.js -i projects/ng-formworks-daisyui/tailwind-input.css -o projects/ng-formworks-daisyui/src/lib/tailwind-output-prefixed.scss", "prebuild:daisyui": "npm run build:daisyui:extract-css-names && npm run build:daisyui:extract-css-names:prefixed:tw && npm run build:daisyui:extract-css-names:prefixed:tw-dui && npm run output:daisyui:tailwind && npm run output:daisyui:tailwind:prefixed", "update:env": "node update_env.js", "prestats": "ng build demo --configuration production --stats-json", "stats": "webpack-bundle-analyzer dist/demo/stats.json", - "test:core": "ng test @zajsf/core", - "test:bs3": "ng test @zajsf/bootstrap3", - "test:bs4": "ng test @zajsf/bootstrap4", - "test:material": "ng test @zajsf/material", + "test:core": "ng test @ng-formworks/core", + "test:bs3": "ng test @ng-formworks/bootstrap3", + "test:bs4": "ng test @ng-formworks/bootstrap4", + "test:material": "ng test @ng-formworks/material", "publish:coverage": "./node_modules/.bin/codecov", "lint": "ng lint", "e2e": "ng e2e" diff --git a/projects/zajsf-bootstrap3/README.md b/projects/ng-formworks-bootstrap3/README.md similarity index 82% rename from projects/zajsf-bootstrap3/README.md rename to projects/ng-formworks-bootstrap3/README.md index 210727c..425c112 100644 --- a/projects/zajsf-bootstrap3/README.md +++ b/projects/ng-formworks-bootstrap3/README.md @@ -1,19 +1,19 @@ -# @zajsf/bootstrap3 -This module is a dependency of the [zajsf project][npm_core_ver] and is meant to work as a framework installation module for using Bootstrap 3 in the forms. +# @ng-formworks/bootstrap3 +This module is a dependency of the [ng-formworks project][npm_core_ver] and is meant to work as a framework installation module for using Bootstrap 3 in the forms. ## Getting started -If you are unfamiliar with with the zajsf project, it is highly recommended to -first have a look at the [@zajsf pages][npm_core_ver] for examples, demos, options and documentation. +If you are unfamiliar with with the ng-formworks project, it is highly recommended to +first have a look at the [@ng-formworks pages][npm_core_ver] for examples, demos, options and documentation. ```shell -npm install @zajsf/core@latest @zajsf/cssframework@latest @zajsf/bootstrap3@latest +npm install @ng-formworks/core@latest @ng-formworks/cssframework@latest @ng-formworks/bootstrap3@latest ``` With YARN, run the following: ```shell -yarn add @zajsf/core@latest @zajsf/cssframework@latest @zajsf/bootstrap3@latest +yarn add @ng-formworks/core@latest @ng-formworks/cssframework@latest @ng-formworks/bootstrap3@latest ``` Then import `Bootstrap3FrameworkModule` in your main application module if you want to use `bootstrap3` UI, like this: @@ -22,7 +22,7 @@ Then import `Bootstrap3FrameworkModule` in your main application module if you w import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; -import { Bootstrap3FrameworkModule } from '@zajsf/bootstrap3'; +import { Bootstrap3FrameworkModule } from '@ng-formworks/bootstrap3'; import { AppComponent } from './app.component'; @@ -66,7 +66,7 @@ The possible values for this framework are: * `bootstrap3_default` for the default theme. the list of available themes can also be gotten using the -FrameworkLibraryService(found in '@zajsf/core'): +FrameworkLibraryService(found in '@ng-formworks/core'): ```typescript getFrameworkThemes() ``` @@ -107,7 +107,7 @@ the first step will be to create the entire theme (see the specific frameworks u ``` after making the css available, the theme will need to be registered using the -FrameworkLibraryService(found in '@zajsf/core'): +FrameworkLibraryService(found in '@ng-formworks/core'): for example ```typescript @@ -194,7 +194,7 @@ from the node_modules folder, this assumes that the third party libraries were i ... { "glob": "**/*", - "input": "./node_modules/@zajsf/bootstrap3/assets", + "input": "./node_modules/@ng-formworks/bootstrap3/assets", "output": "/assets/bootstrap-3" }, { @@ -226,19 +226,19 @@ from the node_modules folder, this assumes that the third party libraries were i ## Code scaffolding -Run `ng generate component component-name --project @zajsf/bootstrap3` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project @zajsf/bootstrap3`. -> Note: Don't forget to add `--project @zajsf/bootstrap3` or else it will be added to the default project in your `angular.json` file. +Run `ng generate component component-name --project @ng-formworks/bootstrap3` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project @ng-formworks/bootstrap3`. +> Note: Don't forget to add `--project @ng-formworks/bootstrap3` or else it will be added to the default project in your `angular.json` file. ## Build -Run `ng build @zajsf/bootstrap3` to build the project. The build artifacts will be stored in the `dist/` directory. +Run `ng build @ng-formworks/bootstrap3` to build the project. The build artifacts will be stored in the `dist/` directory. ## Running unit tests -Run `ng test @zajsf/bootstrap3` to execute the unit tests via [Karma](https://karma-runner.github.io). +Run `ng test @ng-formworks/bootstrap3` to execute the unit tests via [Karma](https://karma-runner.github.io). ## Further help To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). -[npm_core_ver]:https://www.npmjs.com/package/@zajsf/core +[npm_core_ver]:https://www.npmjs.com/package/@ng-formworks/core diff --git a/projects/zajsf-bootstrap3/assets/cssframework/assets.json b/projects/ng-formworks-bootstrap3/assets/cssframework/assets.json similarity index 100% rename from projects/zajsf-bootstrap3/assets/cssframework/assets.json rename to projects/ng-formworks-bootstrap3/assets/cssframework/assets.json diff --git a/projects/zajsf-bootstrap3/assets/cssframework/assets_cdn.json b/projects/ng-formworks-bootstrap3/assets/cssframework/assets_cdn.json similarity index 100% rename from projects/zajsf-bootstrap3/assets/cssframework/assets_cdn.json rename to projects/ng-formworks-bootstrap3/assets/cssframework/assets_cdn.json diff --git a/projects/zajsf-bootstrap3/karma.conf.js b/projects/ng-formworks-bootstrap3/karma.conf.js similarity index 100% rename from projects/zajsf-bootstrap3/karma.conf.js rename to projects/ng-formworks-bootstrap3/karma.conf.js diff --git a/projects/zajsf-bootstrap3/ng-package.json b/projects/ng-formworks-bootstrap3/ng-package.json similarity index 65% rename from projects/zajsf-bootstrap3/ng-package.json rename to projects/ng-formworks-bootstrap3/ng-package.json index da6e4be..0d10820 100644 --- a/projects/zajsf-bootstrap3/ng-package.json +++ b/projects/ng-formworks-bootstrap3/ng-package.json @@ -1,13 +1,13 @@ { "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../../dist/@zajsf/bootstrap3", + "dest": "../../dist/@ng-formworks/bootstrap3", "lib": { "entryFile": "src/public_api.ts" }, "assets": ["./assets"], "allowedNonPeerDependencies": [ "lodash-es", - "@zajsf/core", - "@zajsf/cssframework" + "@ng-formworks/core", + "@ng-formworks/cssframework" ] } \ No newline at end of file diff --git a/projects/zajsf-bootstrap3/package.json b/projects/ng-formworks-bootstrap3/package.json similarity index 59% rename from projects/zajsf-bootstrap3/package.json rename to projects/ng-formworks-bootstrap3/package.json index dca63da..04af099 100644 --- a/projects/zajsf-bootstrap3/package.json +++ b/projects/ng-formworks-bootstrap3/package.json @@ -1,8 +1,8 @@ { - "name": "@zajsf/bootstrap3", - "version": "17.2.5-alpha.2", - "description": "Angular JSON Schema Form builder using Bootstrap 3 UI", - "author": "https://github.com/zahmo/zajsf/graphs/contributors", + "name": "@ng-formworks/bootstrap3", + "version": "17.2.6-alpha.0", + "description": "Angular ng-formworks - JSON Schema Form builder using Bootstrap 3 UI", + "author": "https://github.com/zahmo/ng-formworks/graphs/contributors", "keywords": [ "Angular", "ng", @@ -20,25 +20,28 @@ "forms", "form builder", "form themes", + "form generator", "bootstrap", "bootstrap 3", "ajsf", - "zajsf", + "ng-formworks", + "ng formworks", + "formworks", "angular json schema form" ], "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/zahmo/zajsf" + "url": "git+https://github.com/zahmo/ng-formworks" }, "bugs": { - "url": "https://github.com/zahmo/zajsf/issues" + "url": "https://github.com/zahmo/ng-formworks/issues" }, "private": false, "dependencies": { "lodash-es": "~4.17.21", - "@zajsf/core": "~17.2.5-alpha.2", - "@zajsf/cssframework": "~17.2.5-alpha.2", + "@ng-formworks/core": "~17.2.6-alpha.0", + "@ng-formworks/cssframework": "~17.2.6-alpha.0", "tslib": "^2.0.0" }, "peerDependencies": { diff --git a/projects/zajsf-bootstrap3/src/lib/bootstrap3-cssframework.ts b/projects/ng-formworks-bootstrap3/src/lib/bootstrap3-cssframework.ts similarity index 98% rename from projects/zajsf-bootstrap3/src/lib/bootstrap3-cssframework.ts rename to projects/ng-formworks-bootstrap3/src/lib/bootstrap3-cssframework.ts index a797024..a796e80 100644 --- a/projects/zajsf-bootstrap3/src/lib/bootstrap3-cssframework.ts +++ b/projects/ng-formworks-bootstrap3/src/lib/bootstrap3-cssframework.ts @@ -1,4 +1,4 @@ -import { css_fw } from "@zajsf/cssframework"; +import { css_fw } from "@ng-formworks/cssframework"; export const cssFrameworkCfgBootstrap3:css_fw.frameworkcfg={ "name": "bootstrap-3", diff --git a/projects/zajsf-bootstrap3/src/lib/bootstrap3-framework.component.html b/projects/ng-formworks-bootstrap3/src/lib/bootstrap3-framework.component.html similarity index 100% rename from projects/zajsf-bootstrap3/src/lib/bootstrap3-framework.component.html rename to projects/ng-formworks-bootstrap3/src/lib/bootstrap3-framework.component.html diff --git a/projects/zajsf-bootstrap3/src/lib/bootstrap3-framework.component.scss b/projects/ng-formworks-bootstrap3/src/lib/bootstrap3-framework.component.scss similarity index 100% rename from projects/zajsf-bootstrap3/src/lib/bootstrap3-framework.component.scss rename to projects/ng-formworks-bootstrap3/src/lib/bootstrap3-framework.component.scss diff --git a/projects/zajsf-bootstrap3/src/lib/bootstrap3-framework.component.spec.ts b/projects/ng-formworks-bootstrap3/src/lib/bootstrap3-framework.component.spec.ts similarity index 97% rename from projects/zajsf-bootstrap3/src/lib/bootstrap3-framework.component.spec.ts rename to projects/ng-formworks-bootstrap3/src/lib/bootstrap3-framework.component.spec.ts index ab9cb6f..083dc3c 100644 --- a/projects/zajsf-bootstrap3/src/lib/bootstrap3-framework.component.spec.ts +++ b/projects/ng-formworks-bootstrap3/src/lib/bootstrap3-framework.component.spec.ts @@ -4,7 +4,7 @@ import { JsonSchemaFormModule, JsonSchemaFormService, WidgetLibraryModule -} from '@zajsf/core'; +} from '@ng-formworks/core'; import { Bootstrap3FrameworkComponent } from './bootstrap3-framework.component'; describe('Bootstrap3FrameworkComponent', () => { diff --git a/projects/zajsf-bootstrap3/src/lib/bootstrap3-framework.component.ts b/projects/ng-formworks-bootstrap3/src/lib/bootstrap3-framework.component.ts similarity index 95% rename from projects/zajsf-bootstrap3/src/lib/bootstrap3-framework.component.ts rename to projects/ng-formworks-bootstrap3/src/lib/bootstrap3-framework.component.ts index 915d874..3dfd74e 100644 --- a/projects/zajsf-bootstrap3/src/lib/bootstrap3-framework.component.ts +++ b/projects/ng-formworks-bootstrap3/src/lib/bootstrap3-framework.component.ts @@ -1,5 +1,5 @@ import { ChangeDetectorRef, Component, Input, OnChanges, OnInit, ViewEncapsulation } from '@angular/core'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; /** * Bootstrap 3 framework for Angular JSON Schema Form. diff --git a/projects/zajsf-bootstrap3/src/lib/bootstrap3-framework.module.ts b/projects/ng-formworks-bootstrap3/src/lib/bootstrap3-framework.module.ts similarity index 90% rename from projects/zajsf-bootstrap3/src/lib/bootstrap3-framework.module.ts rename to projects/ng-formworks-bootstrap3/src/lib/bootstrap3-framework.module.ts index 7df82e0..7bc5990 100644 --- a/projects/zajsf-bootstrap3/src/lib/bootstrap3-framework.module.ts +++ b/projects/ng-formworks-bootstrap3/src/lib/bootstrap3-framework.module.ts @@ -7,8 +7,8 @@ import { JsonSchemaFormService, WidgetLibraryModule, WidgetLibraryService -} from '@zajsf/core'; -import { CssFrameworkModule } from '@zajsf/cssframework'; +} from '@ng-formworks/core'; +import { CssFrameworkModule } from '@ng-formworks/cssframework'; import { Bootstrap3FrameworkComponent } from './bootstrap3-framework.component'; import { Bootstrap3Framework } from './bootstrap3.framework'; diff --git a/projects/zajsf-bootstrap3/src/lib/bootstrap3.framework.ts b/projects/ng-formworks-bootstrap3/src/lib/bootstrap3.framework.ts similarity index 86% rename from projects/zajsf-bootstrap3/src/lib/bootstrap3.framework.ts rename to projects/ng-formworks-bootstrap3/src/lib/bootstrap3.framework.ts index 8e9fe1e..a174429 100644 --- a/projects/zajsf-bootstrap3/src/lib/bootstrap3.framework.ts +++ b/projects/ng-formworks-bootstrap3/src/lib/bootstrap3.framework.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { CssFramework, CssframeworkService } from '@zajsf/cssframework'; +import { CssFramework, CssframeworkService } from '@ng-formworks/cssframework'; import { cssFrameworkCfgBootstrap3 } from './bootstrap3-cssframework'; import { Bootstrap3FrameworkComponent } from './bootstrap3-framework.component'; diff --git a/projects/zajsf-bootstrap3/src/public_api.ts b/projects/ng-formworks-bootstrap3/src/public_api.ts similarity index 75% rename from projects/zajsf-bootstrap3/src/public_api.ts rename to projects/ng-formworks-bootstrap3/src/public_api.ts index baa10f2..b736093 100644 --- a/projects/zajsf-bootstrap3/src/public_api.ts +++ b/projects/ng-formworks-bootstrap3/src/public_api.ts @@ -1,5 +1,5 @@ /* - * Public API Surface of @zajsf/bootstrap3 + * Public API Surface of @ng-formworks/bootstrap3 */ export * from './lib/bootstrap3-framework.component'; diff --git a/projects/zajsf-bootstrap3/src/test.ts b/projects/ng-formworks-bootstrap3/src/test.ts similarity index 100% rename from projects/zajsf-bootstrap3/src/test.ts rename to projects/ng-formworks-bootstrap3/src/test.ts diff --git a/projects/zajsf-bootstrap3/tsconfig.lib.json b/projects/ng-formworks-bootstrap3/tsconfig.lib.json similarity index 100% rename from projects/zajsf-bootstrap3/tsconfig.lib.json rename to projects/ng-formworks-bootstrap3/tsconfig.lib.json diff --git a/projects/zajsf-bootstrap3/tsconfig.lib.prod.json b/projects/ng-formworks-bootstrap3/tsconfig.lib.prod.json similarity index 100% rename from projects/zajsf-bootstrap3/tsconfig.lib.prod.json rename to projects/ng-formworks-bootstrap3/tsconfig.lib.prod.json diff --git a/projects/zajsf-bootstrap3/tsconfig.spec.json b/projects/ng-formworks-bootstrap3/tsconfig.spec.json similarity index 100% rename from projects/zajsf-bootstrap3/tsconfig.spec.json rename to projects/ng-formworks-bootstrap3/tsconfig.spec.json diff --git a/projects/zajsf-bootstrap3/tslint.json b/projects/ng-formworks-bootstrap3/tslint.json similarity index 100% rename from projects/zajsf-bootstrap3/tslint.json rename to projects/ng-formworks-bootstrap3/tslint.json diff --git a/projects/zajsf-bootstrap4/README.md b/projects/ng-formworks-bootstrap4/README.md similarity index 81% rename from projects/zajsf-bootstrap4/README.md rename to projects/ng-formworks-bootstrap4/README.md index 1f111da..c1e72c0 100644 --- a/projects/zajsf-bootstrap4/README.md +++ b/projects/ng-formworks-bootstrap4/README.md @@ -1,19 +1,19 @@ -# @zajsf/bootstrap4 -This module is a dependency of the [zajsf project][npm_core_ver] and is meant to work as a framework installation module for using Bootstrap 4 in the forms. +# @ng-formworks/bootstrap4 +This module is a dependency of the [ng-formworks project][npm_core_ver] and is meant to work as a framework installation module for using Bootstrap 4 in the forms. ## Getting started -If you are unfamiliar with with the zajsf project, it is highly recommended to -first have a look at the [@zajsf pages][npm_core_ver] for examples, demos, options and documentation. +If you are unfamiliar with with the ng-formworks project, it is highly recommended to +first have a look at the [@ng-formworks pages][npm_core_ver] for examples, demos, options and documentation. ```shell -npm install @zajsf/core@latest @zajsf/cssframework@latest @zajsf/bootstrap4@latest +npm install @ng-formworks/core@latest @ng-formworks/cssframework@latest @ng-formworks/bootstrap4@latest ``` With YARN, run the following: ```shell -yarn add @zajsf/core@latest @zajsf/cssframework@latest @zajsf/bootstrap4@latest +yarn add @ng-formworks/core@latest @ng-formworks/cssframework@latest @ng-formworks/bootstrap4@latest ``` Then import `Bootstrap4FrameworkModule` in your main application module if you want to use `bootstrap4` UI, like this: @@ -22,7 +22,7 @@ Then import `Bootstrap4FrameworkModule` in your main application module if you w import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; -import { Bootstrap4FrameworkModule } from '@zajsf/bootstrap4'; +import { Bootstrap4FrameworkModule } from '@ng-formworks/bootstrap4'; import { AppComponent } from './app.component'; @@ -67,7 +67,7 @@ The possible values for this framework are: * `bootstrap4_default` for the default theme. the list of available themes can also be gotten using the -FrameworkLibraryService(found in '@zajsf/core'): +FrameworkLibraryService(found in '@ng-formworks/core'): ```typescript getFrameworkThemes() ``` @@ -108,7 +108,7 @@ the first step will be to create the entire theme (see the specific frameworks u ``` after making the css available, the theme will need to be registered using the -FrameworkLibraryService(found in '@zajsf/core'): +FrameworkLibraryService(found in '@ng-formworks/core'): for example ```typescript @@ -195,7 +195,7 @@ from the node_modules folder, this assumes that the third party libraries were i ... { "glob": "**/*", - "input": "./node_modules/@zajsf/bootstrap4/assets", + "input": "./node_modules/@ng-formworks/bootstrap4/assets", "output": "/assets/bootstrap-4" }, { @@ -219,15 +219,15 @@ from the node_modules folder, this assumes that the third party libraries were i ## Code scaffolding -Run `ng generate component component-name --project @zajsf/bootstrap4` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project @zajsf/bootstrap4`. -> Note: Don't forget to add `--project @zajsf/bootstrap4` or else it will be added to the default project in your `angular.json` file. +Run `ng generate component component-name --project @ng-formworks/bootstrap4` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project @ng-formworks/bootstrap4`. +> Note: Don't forget to add `--project @ng-formworks/bootstrap4` or else it will be added to the default project in your `angular.json` file. ## Build -Run `ng build @zajsf/bootstrap4` to build the project. The build artifacts will be stored in the `dist/` directory. +Run `ng build @ng-formworks/bootstrap4` to build the project. The build artifacts will be stored in the `dist/` directory. ## Running unit tests -Run `ng test @zajsf/bootstrap4` to execute the unit tests via [Karma](https://karma-runner.github.io). +Run `ng test @ng-formworks/bootstrap4` to execute the unit tests via [Karma](https://karma-runner.github.io). -[npm_core_ver]:https://www.npmjs.com/package/@zajsf/core +[npm_core_ver]:https://www.npmjs.com/package/@ng-formworks/core diff --git a/projects/zajsf-bootstrap4/assets/cssframework/assets.json b/projects/ng-formworks-bootstrap4/assets/cssframework/assets.json similarity index 100% rename from projects/zajsf-bootstrap4/assets/cssframework/assets.json rename to projects/ng-formworks-bootstrap4/assets/cssframework/assets.json diff --git a/projects/zajsf-bootstrap4/assets/cssframework/assets_cdn.json b/projects/ng-formworks-bootstrap4/assets/cssframework/assets_cdn.json similarity index 100% rename from projects/zajsf-bootstrap4/assets/cssframework/assets_cdn.json rename to projects/ng-formworks-bootstrap4/assets/cssframework/assets_cdn.json diff --git a/projects/zajsf-bootstrap4/karma.conf.js b/projects/ng-formworks-bootstrap4/karma.conf.js similarity index 100% rename from projects/zajsf-bootstrap4/karma.conf.js rename to projects/ng-formworks-bootstrap4/karma.conf.js diff --git a/projects/zajsf-bootstrap5/ng-package.json b/projects/ng-formworks-bootstrap4/ng-package.json similarity index 65% rename from projects/zajsf-bootstrap5/ng-package.json rename to projects/ng-formworks-bootstrap4/ng-package.json index 13b37bd..aeba550 100644 --- a/projects/zajsf-bootstrap5/ng-package.json +++ b/projects/ng-formworks-bootstrap4/ng-package.json @@ -1,13 +1,13 @@ { "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../../dist/@zajsf/bootstrap5", + "dest": "../../dist/@ng-formworks/bootstrap4", "lib": { "entryFile": "src/public_api.ts" }, "assets": ["./assets"], "allowedNonPeerDependencies": [ "lodash-es", - "@zajsf/core", - "@zajsf/cssframework" + "@ng-formworks/core", + "@ng-formworks/cssframework" ] } \ No newline at end of file diff --git a/projects/zajsf-bootstrap4/package.json b/projects/ng-formworks-bootstrap4/package.json similarity index 59% rename from projects/zajsf-bootstrap4/package.json rename to projects/ng-formworks-bootstrap4/package.json index 2ec294b..e43f3f0 100644 --- a/projects/zajsf-bootstrap4/package.json +++ b/projects/ng-formworks-bootstrap4/package.json @@ -1,8 +1,8 @@ { - "name": "@zajsf/bootstrap4", - "version": "17.2.5-alpha.2", - "description": "Angular JSON Schema Form builder using Bootstrap 4 UI", - "author": "https://github.com/zahmo/zajsf/graphs/contributors", + "name": "@ng-formworks/bootstrap4", + "version": "17.2.6-alpha.0", + "description": "Angular ng-formworks - JSON Schema Form builder using Bootstrap 4 UI", + "author": "https://github.com/zahmo/ng-formworks/graphs/contributors", "keywords": [ "Angular", "ng", @@ -20,25 +20,28 @@ "forms", "form builder", "form themes", + "form generator", "bootstrap", "bootstrap 4", "ajsf", - "zajsf", + "ng-formworks", + "ng formworks", + "formworks", "angular json schema form" ], "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/zahmo/zajsf" + "url": "git+https://github.com/zahmo/ng-formworks" }, "bugs": { - "url": "https://github.com/zahmo/zajsf/issues" + "url": "https://github.com/zahmo/ng-formworks/issues" }, "private": false, "dependencies": { "lodash-es": "~4.17.21", - "@zajsf/core": "~17.2.5-alpha.2", - "@zajsf/cssframework": "~17.2.5-alpha.2", + "@ng-formworks/core": "~17.2.6-alpha.0", + "@ng-formworks/cssframework": "~17.2.6-alpha.0", "tslib": "^2.0.0" }, "peerDependencies": { diff --git a/projects/zajsf-bootstrap4/src/lib/bootstrap4-cssframework.scss b/projects/ng-formworks-bootstrap4/src/lib/bootstrap4-cssframework.scss similarity index 100% rename from projects/zajsf-bootstrap4/src/lib/bootstrap4-cssframework.scss rename to projects/ng-formworks-bootstrap4/src/lib/bootstrap4-cssframework.scss diff --git a/projects/zajsf-bootstrap4/src/lib/bootstrap4-cssframework.ts b/projects/ng-formworks-bootstrap4/src/lib/bootstrap4-cssframework.ts similarity index 98% rename from projects/zajsf-bootstrap4/src/lib/bootstrap4-cssframework.ts rename to projects/ng-formworks-bootstrap4/src/lib/bootstrap4-cssframework.ts index 7d0a3bb..044ec64 100644 --- a/projects/zajsf-bootstrap4/src/lib/bootstrap4-cssframework.ts +++ b/projects/ng-formworks-bootstrap4/src/lib/bootstrap4-cssframework.ts @@ -1,4 +1,4 @@ -import { css_fw } from "@zajsf/cssframework"; +import { css_fw } from "@ng-formworks/cssframework"; export const cssFrameworkCfgBootstrap4:css_fw.frameworkcfg={ "name": "bootstrap-4", diff --git a/projects/zajsf-bootstrap4/src/lib/bootstrap4-framework.component.scss b/projects/ng-formworks-bootstrap4/src/lib/bootstrap4-framework.component.scss similarity index 100% rename from projects/zajsf-bootstrap4/src/lib/bootstrap4-framework.component.scss rename to projects/ng-formworks-bootstrap4/src/lib/bootstrap4-framework.component.scss diff --git a/projects/zajsf-bootstrap4/src/lib/bootstrap4-framework.component.spec.ts b/projects/ng-formworks-bootstrap4/src/lib/bootstrap4-framework.component.spec.ts similarity index 97% rename from projects/zajsf-bootstrap4/src/lib/bootstrap4-framework.component.spec.ts rename to projects/ng-formworks-bootstrap4/src/lib/bootstrap4-framework.component.spec.ts index 3960efb..28c5d84 100644 --- a/projects/zajsf-bootstrap4/src/lib/bootstrap4-framework.component.spec.ts +++ b/projects/ng-formworks-bootstrap4/src/lib/bootstrap4-framework.component.spec.ts @@ -4,7 +4,7 @@ import { JsonSchemaFormModule, JsonSchemaFormService, WidgetLibraryModule -} from '@zajsf/core'; +} from '@ng-formworks/core'; import { Bootstrap4FrameworkComponent } from './bootstrap4-framework.component'; describe('FwBootstrap4Component', () => { diff --git a/projects/zajsf-bootstrap4/src/lib/bootstrap4-framework.component.ts b/projects/ng-formworks-bootstrap4/src/lib/bootstrap4-framework.component.ts similarity index 95% rename from projects/zajsf-bootstrap4/src/lib/bootstrap4-framework.component.ts rename to projects/ng-formworks-bootstrap4/src/lib/bootstrap4-framework.component.ts index 0230061..9b1742c 100644 --- a/projects/zajsf-bootstrap4/src/lib/bootstrap4-framework.component.ts +++ b/projects/ng-formworks-bootstrap4/src/lib/bootstrap4-framework.component.ts @@ -6,7 +6,7 @@ import { OnInit, ViewEncapsulation } from '@angular/core'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; /** * Bootstrap 4 framework for Angular JSON Schema Form. diff --git a/projects/zajsf-bootstrap4/src/lib/bootstrap4-framework.module.ts b/projects/ng-formworks-bootstrap4/src/lib/bootstrap4-framework.module.ts similarity index 90% rename from projects/zajsf-bootstrap4/src/lib/bootstrap4-framework.module.ts rename to projects/ng-formworks-bootstrap4/src/lib/bootstrap4-framework.module.ts index 1e57d1a..e6be806 100644 --- a/projects/zajsf-bootstrap4/src/lib/bootstrap4-framework.module.ts +++ b/projects/ng-formworks-bootstrap4/src/lib/bootstrap4-framework.module.ts @@ -7,8 +7,8 @@ import { JsonSchemaFormService, WidgetLibraryModule, WidgetLibraryService -} from '@zajsf/core'; -import { CssFrameworkModule } from '@zajsf/cssframework'; +} from '@ng-formworks/core'; +import { CssFrameworkModule } from '@ng-formworks/cssframework'; import { Bootstrap4FrameworkComponent } from './bootstrap4-framework.component'; import { Bootstrap4Framework } from './bootstrap4.framework'; diff --git a/projects/zajsf-bootstrap4/src/lib/bootstrap4.framework.ts b/projects/ng-formworks-bootstrap4/src/lib/bootstrap4.framework.ts similarity index 86% rename from projects/zajsf-bootstrap4/src/lib/bootstrap4.framework.ts rename to projects/ng-formworks-bootstrap4/src/lib/bootstrap4.framework.ts index 467cbce..9e65829 100644 --- a/projects/zajsf-bootstrap4/src/lib/bootstrap4.framework.ts +++ b/projects/ng-formworks-bootstrap4/src/lib/bootstrap4.framework.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { CssFramework, CssframeworkService } from '@zajsf/cssframework'; +import { CssFramework, CssframeworkService } from '@ng-formworks/cssframework'; import { cssFrameworkCfgBootstrap4 } from './bootstrap4-cssframework'; import { Bootstrap4FrameworkComponent } from './bootstrap4-framework.component'; diff --git a/projects/zajsf-bootstrap4/src/public_api.ts b/projects/ng-formworks-bootstrap4/src/public_api.ts similarity index 75% rename from projects/zajsf-bootstrap4/src/public_api.ts rename to projects/ng-formworks-bootstrap4/src/public_api.ts index c713057..5333b06 100644 --- a/projects/zajsf-bootstrap4/src/public_api.ts +++ b/projects/ng-formworks-bootstrap4/src/public_api.ts @@ -1,5 +1,5 @@ /* - * Public API Surface of @zajsf/bootstrap4 + * Public API Surface of @ng-formworks/bootstrap4 */ export * from './lib/bootstrap4-framework.component'; diff --git a/projects/zajsf-bootstrap4/src/test.ts b/projects/ng-formworks-bootstrap4/src/test.ts similarity index 100% rename from projects/zajsf-bootstrap4/src/test.ts rename to projects/ng-formworks-bootstrap4/src/test.ts diff --git a/projects/zajsf-bootstrap4/tsconfig.lib.json b/projects/ng-formworks-bootstrap4/tsconfig.lib.json similarity index 100% rename from projects/zajsf-bootstrap4/tsconfig.lib.json rename to projects/ng-formworks-bootstrap4/tsconfig.lib.json diff --git a/projects/zajsf-bootstrap4/tsconfig.lib.prod.json b/projects/ng-formworks-bootstrap4/tsconfig.lib.prod.json similarity index 100% rename from projects/zajsf-bootstrap4/tsconfig.lib.prod.json rename to projects/ng-formworks-bootstrap4/tsconfig.lib.prod.json diff --git a/projects/zajsf-bootstrap4/tsconfig.spec.json b/projects/ng-formworks-bootstrap4/tsconfig.spec.json similarity index 100% rename from projects/zajsf-bootstrap4/tsconfig.spec.json rename to projects/ng-formworks-bootstrap4/tsconfig.spec.json diff --git a/projects/zajsf-bootstrap4/tslint.json b/projects/ng-formworks-bootstrap4/tslint.json similarity index 100% rename from projects/zajsf-bootstrap4/tslint.json rename to projects/ng-formworks-bootstrap4/tslint.json diff --git a/projects/zajsf-bootstrap5/README.md b/projects/ng-formworks-bootstrap5/README.md similarity index 80% rename from projects/zajsf-bootstrap5/README.md rename to projects/ng-formworks-bootstrap5/README.md index 9955c4d..0c735c3 100644 --- a/projects/zajsf-bootstrap5/README.md +++ b/projects/ng-formworks-bootstrap5/README.md @@ -1,19 +1,19 @@ -# @zajsf/bootstrap5 -This module is a dependency of the [zajsf project][npm_core_ver] and is meant to work as a framework installation module for using Bootstrap 5 in the forms. +# @ng-formworks/bootstrap5 +This module is a dependency of the [ng-formworks project][npm_core_ver] and is meant to work as a framework installation module for using Bootstrap 5 in the forms. ## Getting started -If you are unfamiliar with with the zajsf project, it is highly recommended to -first have a look at the [@zajsf pages][npm_core_ver] for examples, demos, options and documentation. +If you are unfamiliar with with the ng-formworks project, it is highly recommended to +first have a look at the [@ng-formworks pages][npm_core_ver] for examples, demos, options and documentation. ```shell -npm install @zajsf/core@latest @zajsf/cssframework@latest @zajsf/bootstrap5@latest +npm install @ng-formworks/core@latest @ng-formworks/cssframework@latest @ng-formworks/bootstrap5@latest ``` With YARN, run the following: ```shell -yarn add @zajsf/core@latest @zajsf/cssframework@latest @zajsf/bootstrap5@latest +yarn add @ng-formworks/core@latest @ng-formworks/cssframework@latest @ng-formworks/bootstrap5@latest ``` Then import `Bootstrap5FrameworkModule` in your main application module if you want to use `bootstrap5` UI, like this: @@ -22,7 +22,7 @@ Then import `Bootstrap5FrameworkModule` in your main application module if you w import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; -import { Bootstrap5FrameworkModule } from '@zajsf/bootstrap5'; +import { Bootstrap5FrameworkModule } from '@ng-formworks/bootstrap5'; import { AppComponent } from './app.component'; @@ -68,7 +68,7 @@ The possible values for this framework are: * `dark` for the dark theme. the list of available themes can also be gotten using the -FrameworkLibraryService(found in '@zajsf/core'): +FrameworkLibraryService(found in '@ng-formworks/core'): ```typescript getFrameworkThemes() ``` @@ -109,7 +109,7 @@ the first step will be to create the entire theme (see the specific frameworks u ``` after making the css available, the theme will need to be registered using the -FrameworkLibraryService(found in '@zajsf/core'): +FrameworkLibraryService(found in '@ng-formworks/core'): for example ```typescript @@ -196,7 +196,7 @@ from the node_modules folder, this assumes that the third party libraries were i ... { "glob": "**/*", - "input": "./node_modules/@zajsf/bootstrap5/assets", + "input": "./node_modules/@ng-formworks/bootstrap5/assets", "output": "/assets/bootstrap-5" }, { @@ -214,15 +214,15 @@ from the node_modules folder, this assumes that the third party libraries were i ## Code scaffolding -Run `ng generate component component-name --project @zajsf/bootstrap5` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project @zajsf/bootstrap5`. -> Note: Don't forget to add `--project @zajsf/bootstrap5` or else it will be added to the default project in your `angular.json` file. +Run `ng generate component component-name --project @ng-formworks/bootstrap5` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project @ng-formworks/bootstrap5`. +> Note: Don't forget to add `--project @ng-formworks/bootstrap5` or else it will be added to the default project in your `angular.json` file. ## Build -Run `ng build @zajsf/bootstrap5` to build the project. The build artifacts will be stored in the `dist/` directory. +Run `ng build @ng-formworks/bootstrap5` to build the project. The build artifacts will be stored in the `dist/` directory. ## Running unit tests -Run `ng test @zajsf/bootstrap5` to execute the unit tests via [Karma](https://karma-runner.github.io). +Run `ng test @ng-formworks/bootstrap5` to execute the unit tests via [Karma](https://karma-runner.github.io). -[npm_core_ver]:https://www.npmjs.com/package/@zajsf/core \ No newline at end of file +[npm_core_ver]:https://www.npmjs.com/package/@ng-formworks/core \ No newline at end of file diff --git a/projects/zajsf-bootstrap5/assets/cssframework/assets.json b/projects/ng-formworks-bootstrap5/assets/cssframework/assets.json similarity index 100% rename from projects/zajsf-bootstrap5/assets/cssframework/assets.json rename to projects/ng-formworks-bootstrap5/assets/cssframework/assets.json diff --git a/projects/zajsf-bootstrap5/assets/cssframework/assets_cdn.json b/projects/ng-formworks-bootstrap5/assets/cssframework/assets_cdn.json similarity index 100% rename from projects/zajsf-bootstrap5/assets/cssframework/assets_cdn.json rename to projects/ng-formworks-bootstrap5/assets/cssframework/assets_cdn.json diff --git a/projects/zajsf-material/ng-package.json b/projects/ng-formworks-bootstrap5/ng-package.json similarity index 65% rename from projects/zajsf-material/ng-package.json rename to projects/ng-formworks-bootstrap5/ng-package.json index babf4a9..2b2afdb 100644 --- a/projects/zajsf-material/ng-package.json +++ b/projects/ng-formworks-bootstrap5/ng-package.json @@ -1,13 +1,13 @@ { "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../../dist/@zajsf/material", + "dest": "../../dist/@ng-formworks/bootstrap5", "lib": { "entryFile": "src/public_api.ts" }, "assets": ["./assets"], "allowedNonPeerDependencies": [ "lodash-es", - "@zajsf/core", - "@zajsf/cssframework" + "@ng-formworks/core", + "@ng-formworks/cssframework" ] } \ No newline at end of file diff --git a/projects/zajsf-bootstrap5/package.json b/projects/ng-formworks-bootstrap5/package.json similarity index 59% rename from projects/zajsf-bootstrap5/package.json rename to projects/ng-formworks-bootstrap5/package.json index 8742cb6..ec419b4 100644 --- a/projects/zajsf-bootstrap5/package.json +++ b/projects/ng-formworks-bootstrap5/package.json @@ -1,8 +1,8 @@ { - "name": "@zajsf/bootstrap5", - "version": "17.2.5-alpha.2", - "description": "Angular JSON Schema Form builder using Bootstrap 5 UI", - "author": "https://github.com/zahmo/zajsf/graphs/contributors", + "name": "@ng-formworks/bootstrap5", + "version": "17.2.6-alpha.0", + "description": "Angular ng-formworks - JSON Schema Form builder using Bootstrap 5 UI", + "author": "https://github.com/zahmo/ng-formworks/graphs/contributors", "keywords": [ "Angular", "ng", @@ -20,25 +20,28 @@ "forms", "form builder", "form themes", + "form generator", "bootstrap", "bootstrap 5", "ajsf", - "zajsf", + "ng-formworks", + "ng formworks", + "formworks", "angular json schema form" ], "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/zahmo/zajsf" + "url": "git+https://github.com/zahmo/ng-formworks" }, "bugs": { - "url": "https://github.com/zahmo/zajsf/issues" + "url": "https://github.com/zahmo/ng-formworks/issues" }, "private": false, "dependencies": { "lodash-es": "~4.17.21", - "@zajsf/core": "~17.2.5-alpha.2", - "@zajsf/cssframework": "~17.2.5-alpha.2", + "@ng-formworks/core": "~17.2.6-alpha.0", + "@ng-formworks/cssframework": "~17.2.6-alpha.0", "tslib": "^2.0.0" }, "peerDependencies": { diff --git a/projects/zajsf-bootstrap5/src/lib/bootstrap5-cssframework.scss b/projects/ng-formworks-bootstrap5/src/lib/bootstrap5-cssframework.scss similarity index 100% rename from projects/zajsf-bootstrap5/src/lib/bootstrap5-cssframework.scss rename to projects/ng-formworks-bootstrap5/src/lib/bootstrap5-cssframework.scss diff --git a/projects/zajsf-bootstrap5/src/lib/bootstrap5-cssframework.ts b/projects/ng-formworks-bootstrap5/src/lib/bootstrap5-cssframework.ts similarity index 98% rename from projects/zajsf-bootstrap5/src/lib/bootstrap5-cssframework.ts rename to projects/ng-formworks-bootstrap5/src/lib/bootstrap5-cssframework.ts index d2df451..50bba62 100644 --- a/projects/zajsf-bootstrap5/src/lib/bootstrap5-cssframework.ts +++ b/projects/ng-formworks-bootstrap5/src/lib/bootstrap5-cssframework.ts @@ -1,4 +1,4 @@ -import { css_fw } from "@zajsf/cssframework"; +import { css_fw } from "@ng-formworks/cssframework"; export const cssFrameworkCfgBootstrap5:css_fw.frameworkcfg={ diff --git a/projects/zajsf-bootstrap5/src/lib/bootstrap5-framework.component.scss b/projects/ng-formworks-bootstrap5/src/lib/bootstrap5-framework.component.scss similarity index 100% rename from projects/zajsf-bootstrap5/src/lib/bootstrap5-framework.component.scss rename to projects/ng-formworks-bootstrap5/src/lib/bootstrap5-framework.component.scss diff --git a/projects/zajsf-bootstrap5/src/lib/bootstrap5-framework.component.spec.ts b/projects/ng-formworks-bootstrap5/src/lib/bootstrap5-framework.component.spec.ts similarity index 97% rename from projects/zajsf-bootstrap5/src/lib/bootstrap5-framework.component.spec.ts rename to projects/ng-formworks-bootstrap5/src/lib/bootstrap5-framework.component.spec.ts index b2f2ce9..b7b0319 100644 --- a/projects/zajsf-bootstrap5/src/lib/bootstrap5-framework.component.spec.ts +++ b/projects/ng-formworks-bootstrap5/src/lib/bootstrap5-framework.component.spec.ts @@ -4,7 +4,7 @@ import { JsonSchemaFormModule, JsonSchemaFormService, WidgetLibraryModule -} from '@zajsf/core'; +} from '@ng-formworks/core'; import { Bootstrap5FrameworkComponent } from './bootstrap5-framework.component'; describe('Bootstrap5Component', () => { diff --git a/projects/zajsf-bootstrap5/src/lib/bootstrap5-framework.component.ts b/projects/ng-formworks-bootstrap5/src/lib/bootstrap5-framework.component.ts similarity index 95% rename from projects/zajsf-bootstrap5/src/lib/bootstrap5-framework.component.ts rename to projects/ng-formworks-bootstrap5/src/lib/bootstrap5-framework.component.ts index 3e0ab85..f221ef1 100644 --- a/projects/zajsf-bootstrap5/src/lib/bootstrap5-framework.component.ts +++ b/projects/ng-formworks-bootstrap5/src/lib/bootstrap5-framework.component.ts @@ -6,7 +6,7 @@ import { OnInit, ViewEncapsulation } from '@angular/core'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; /** * Bootstrap 5 framework for Angular JSON Schema Form. diff --git a/projects/zajsf-bootstrap5/src/lib/bootstrap5-framework.module.ts b/projects/ng-formworks-bootstrap5/src/lib/bootstrap5-framework.module.ts similarity index 90% rename from projects/zajsf-bootstrap5/src/lib/bootstrap5-framework.module.ts rename to projects/ng-formworks-bootstrap5/src/lib/bootstrap5-framework.module.ts index 16f0a3e..8cda09a 100644 --- a/projects/zajsf-bootstrap5/src/lib/bootstrap5-framework.module.ts +++ b/projects/ng-formworks-bootstrap5/src/lib/bootstrap5-framework.module.ts @@ -7,8 +7,8 @@ import { JsonSchemaFormService, WidgetLibraryModule, WidgetLibraryService -} from '@zajsf/core'; -import { CssFrameworkModule } from '@zajsf/cssframework'; +} from '@ng-formworks/core'; +import { CssFrameworkModule } from '@ng-formworks/cssframework'; import { Bootstrap5FrameworkComponent } from './bootstrap5-framework.component'; import { Bootstrap5Framework } from './bootstrap5.framework'; diff --git a/projects/zajsf-bootstrap5/src/lib/bootstrap5.framework.ts b/projects/ng-formworks-bootstrap5/src/lib/bootstrap5.framework.ts similarity index 86% rename from projects/zajsf-bootstrap5/src/lib/bootstrap5.framework.ts rename to projects/ng-formworks-bootstrap5/src/lib/bootstrap5.framework.ts index 2e9779a..6ff5624 100644 --- a/projects/zajsf-bootstrap5/src/lib/bootstrap5.framework.ts +++ b/projects/ng-formworks-bootstrap5/src/lib/bootstrap5.framework.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { CssFramework, CssframeworkService } from '@zajsf/cssframework'; +import { CssFramework, CssframeworkService } from '@ng-formworks/cssframework'; import { cssFrameworkCfgBootstrap5 } from './bootstrap5-cssframework'; import { Bootstrap5FrameworkComponent } from './bootstrap5-framework.component'; diff --git a/projects/zajsf-bootstrap5/src/public_api.ts b/projects/ng-formworks-bootstrap5/src/public_api.ts similarity index 75% rename from projects/zajsf-bootstrap5/src/public_api.ts rename to projects/ng-formworks-bootstrap5/src/public_api.ts index 9a2c94c..2e127a6 100644 --- a/projects/zajsf-bootstrap5/src/public_api.ts +++ b/projects/ng-formworks-bootstrap5/src/public_api.ts @@ -1,5 +1,5 @@ /* - * Public API Surface of @zajsf/bootstrap5 + * Public API Surface of @ng-formworks/bootstrap5 */ export * from './lib/bootstrap5-framework.component'; diff --git a/projects/zajsf-bootstrap5/src/test.ts b/projects/ng-formworks-bootstrap5/src/test.ts similarity index 100% rename from projects/zajsf-bootstrap5/src/test.ts rename to projects/ng-formworks-bootstrap5/src/test.ts diff --git a/projects/zajsf-bootstrap5/tsconfig.lib.json b/projects/ng-formworks-bootstrap5/tsconfig.lib.json similarity index 100% rename from projects/zajsf-bootstrap5/tsconfig.lib.json rename to projects/ng-formworks-bootstrap5/tsconfig.lib.json diff --git a/projects/zajsf-bootstrap5/tsconfig.lib.prod.json b/projects/ng-formworks-bootstrap5/tsconfig.lib.prod.json similarity index 100% rename from projects/zajsf-bootstrap5/tsconfig.lib.prod.json rename to projects/ng-formworks-bootstrap5/tsconfig.lib.prod.json diff --git a/projects/zajsf-bootstrap5/tsconfig.spec.json b/projects/ng-formworks-bootstrap5/tsconfig.spec.json similarity index 100% rename from projects/zajsf-bootstrap5/tsconfig.spec.json rename to projects/ng-formworks-bootstrap5/tsconfig.spec.json diff --git a/projects/zajsf-core/karma.conf.js b/projects/ng-formworks-core/karma.conf.js similarity index 100% rename from projects/zajsf-core/karma.conf.js rename to projects/ng-formworks-core/karma.conf.js diff --git a/projects/zajsf-core/ng-package.json b/projects/ng-formworks-core/ng-package.json similarity index 82% rename from projects/zajsf-core/ng-package.json rename to projects/ng-formworks-core/ng-package.json index aa6c193..4ec01b3 100644 --- a/projects/zajsf-core/ng-package.json +++ b/projects/ng-formworks-core/ng-package.json @@ -1,6 +1,6 @@ { "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../../dist/@zajsf/core", + "dest": "../../dist/@ng-formworks/core", "lib": { "entryFile": "src/public_api.ts" }, diff --git a/projects/zajsf-core/package.json b/projects/ng-formworks-core/package.json similarity index 67% rename from projects/zajsf-core/package.json rename to projects/ng-formworks-core/package.json index d1143f1..f31294d 100644 --- a/projects/zajsf-core/package.json +++ b/projects/ng-formworks-core/package.json @@ -1,8 +1,8 @@ { - "name": "@zajsf/core", - "version": "17.2.5-alpha.2", - "description": "Angular JSON Schema Form builder core", - "author": "https://github.com/zahmo/zajsf/graphs/contributors", + "name": "@ng-formworks/core", + "version": "17.2.6-alpha.0", + "description": "Angular ng-formworks - JSON Schema Form builder core", + "author": "https://github.com/zahmo/ng-formworks/graphs/contributors", "keywords": [ "Angular", "ng", @@ -20,17 +20,20 @@ "forms", "form builder", "form themes", + "form generator", "ajsf", - "zajsf", + "ng-formworks", + "ng formworks", + "formworks", "angular json schema form" ], "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/zahmo/zajsf" + "url": "git+https://github.com/zahmo/ng-formworks" }, "bugs": { - "url": "https://github.com/zahmo/zajsf/issues" + "url": "https://github.com/zahmo/ng-formworks/issues" }, "private": false, "dependencies": { diff --git a/projects/zajsf-core/src/lib/framework-library/framework-library.service.ts b/projects/ng-formworks-core/src/lib/framework-library/framework-library.service.ts similarity index 100% rename from projects/zajsf-core/src/lib/framework-library/framework-library.service.ts rename to projects/ng-formworks-core/src/lib/framework-library/framework-library.service.ts diff --git a/projects/zajsf-core/src/lib/framework-library/framework.ts b/projects/ng-formworks-core/src/lib/framework-library/framework.ts similarity index 100% rename from projects/zajsf-core/src/lib/framework-library/framework.ts rename to projects/ng-formworks-core/src/lib/framework-library/framework.ts diff --git a/projects/zajsf-core/src/lib/framework-library/no-framework.component.html b/projects/ng-formworks-core/src/lib/framework-library/no-framework.component.html similarity index 100% rename from projects/zajsf-core/src/lib/framework-library/no-framework.component.html rename to projects/ng-formworks-core/src/lib/framework-library/no-framework.component.html diff --git a/projects/zajsf-core/src/lib/framework-library/no-framework.component.ts b/projects/ng-formworks-core/src/lib/framework-library/no-framework.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/framework-library/no-framework.component.ts rename to projects/ng-formworks-core/src/lib/framework-library/no-framework.component.ts diff --git a/projects/zajsf-core/src/lib/framework-library/no-framework.module.ts b/projects/ng-formworks-core/src/lib/framework-library/no-framework.module.ts similarity index 100% rename from projects/zajsf-core/src/lib/framework-library/no-framework.module.ts rename to projects/ng-formworks-core/src/lib/framework-library/no-framework.module.ts diff --git a/projects/zajsf-core/src/lib/framework-library/no.framework.ts b/projects/ng-formworks-core/src/lib/framework-library/no.framework.ts similarity index 100% rename from projects/zajsf-core/src/lib/framework-library/no.framework.ts rename to projects/ng-formworks-core/src/lib/framework-library/no.framework.ts diff --git a/projects/zajsf-core/src/lib/json-schema-form.component.html b/projects/ng-formworks-core/src/lib/json-schema-form.component.html similarity index 100% rename from projects/zajsf-core/src/lib/json-schema-form.component.html rename to projects/ng-formworks-core/src/lib/json-schema-form.component.html diff --git a/projects/zajsf-core/src/lib/json-schema-form.component.ts b/projects/ng-formworks-core/src/lib/json-schema-form.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/json-schema-form.component.ts rename to projects/ng-formworks-core/src/lib/json-schema-form.component.ts diff --git a/projects/zajsf-core/src/lib/json-schema-form.module.ts b/projects/ng-formworks-core/src/lib/json-schema-form.module.ts similarity index 100% rename from projects/zajsf-core/src/lib/json-schema-form.module.ts rename to projects/ng-formworks-core/src/lib/json-schema-form.module.ts diff --git a/projects/zajsf-core/src/lib/json-schema-form.service.ts b/projects/ng-formworks-core/src/lib/json-schema-form.service.ts similarity index 100% rename from projects/zajsf-core/src/lib/json-schema-form.service.ts rename to projects/ng-formworks-core/src/lib/json-schema-form.service.ts diff --git a/projects/zajsf-core/src/lib/locale-dates/en-US.ts b/projects/ng-formworks-core/src/lib/locale-dates/en-US.ts similarity index 100% rename from projects/zajsf-core/src/lib/locale-dates/en-US.ts rename to projects/ng-formworks-core/src/lib/locale-dates/en-US.ts diff --git a/projects/zajsf-core/src/lib/locale/de-validation-messages.ts b/projects/ng-formworks-core/src/lib/locale/de-validation-messages.ts similarity index 100% rename from projects/zajsf-core/src/lib/locale/de-validation-messages.ts rename to projects/ng-formworks-core/src/lib/locale/de-validation-messages.ts diff --git a/projects/zajsf-core/src/lib/locale/en-validation-messages.ts b/projects/ng-formworks-core/src/lib/locale/en-validation-messages.ts similarity index 100% rename from projects/zajsf-core/src/lib/locale/en-validation-messages.ts rename to projects/ng-formworks-core/src/lib/locale/en-validation-messages.ts diff --git a/projects/zajsf-core/src/lib/locale/es-validation-messages.ts b/projects/ng-formworks-core/src/lib/locale/es-validation-messages.ts similarity index 100% rename from projects/zajsf-core/src/lib/locale/es-validation-messages.ts rename to projects/ng-formworks-core/src/lib/locale/es-validation-messages.ts diff --git a/projects/zajsf-core/src/lib/locale/fr-validation-messages.ts b/projects/ng-formworks-core/src/lib/locale/fr-validation-messages.ts similarity index 100% rename from projects/zajsf-core/src/lib/locale/fr-validation-messages.ts rename to projects/ng-formworks-core/src/lib/locale/fr-validation-messages.ts diff --git a/projects/zajsf-core/src/lib/locale/index.ts b/projects/ng-formworks-core/src/lib/locale/index.ts similarity index 100% rename from projects/zajsf-core/src/lib/locale/index.ts rename to projects/ng-formworks-core/src/lib/locale/index.ts diff --git a/projects/zajsf-core/src/lib/locale/it-validation-messages.ts b/projects/ng-formworks-core/src/lib/locale/it-validation-messages.ts similarity index 100% rename from projects/zajsf-core/src/lib/locale/it-validation-messages.ts rename to projects/ng-formworks-core/src/lib/locale/it-validation-messages.ts diff --git a/projects/zajsf-core/src/lib/locale/pt-validation-messages.ts b/projects/ng-formworks-core/src/lib/locale/pt-validation-messages.ts similarity index 100% rename from projects/zajsf-core/src/lib/locale/pt-validation-messages.ts rename to projects/ng-formworks-core/src/lib/locale/pt-validation-messages.ts diff --git a/projects/zajsf-core/src/lib/locale/zh-validation-messages.ts b/projects/ng-formworks-core/src/lib/locale/zh-validation-messages.ts similarity index 100% rename from projects/zajsf-core/src/lib/locale/zh-validation-messages.ts rename to projects/ng-formworks-core/src/lib/locale/zh-validation-messages.ts diff --git a/projects/zajsf-core/src/lib/shared/convert-schema-to-draft6.function.ts b/projects/ng-formworks-core/src/lib/shared/convert-schema-to-draft6.function.ts similarity index 100% rename from projects/zajsf-core/src/lib/shared/convert-schema-to-draft6.function.ts rename to projects/ng-formworks-core/src/lib/shared/convert-schema-to-draft6.function.ts diff --git a/projects/zajsf-core/src/lib/shared/form-group.functions.ts b/projects/ng-formworks-core/src/lib/shared/form-group.functions.ts similarity index 100% rename from projects/zajsf-core/src/lib/shared/form-group.functions.ts rename to projects/ng-formworks-core/src/lib/shared/form-group.functions.ts diff --git a/projects/zajsf-core/src/lib/shared/format-regex.constants.ts b/projects/ng-formworks-core/src/lib/shared/format-regex.constants.ts similarity index 100% rename from projects/zajsf-core/src/lib/shared/format-regex.constants.ts rename to projects/ng-formworks-core/src/lib/shared/format-regex.constants.ts diff --git a/projects/zajsf-core/src/lib/shared/index.ts b/projects/ng-formworks-core/src/lib/shared/index.ts similarity index 100% rename from projects/zajsf-core/src/lib/shared/index.ts rename to projects/ng-formworks-core/src/lib/shared/index.ts diff --git a/projects/zajsf-core/src/lib/shared/json-schema.functions.ts b/projects/ng-formworks-core/src/lib/shared/json-schema.functions.ts similarity index 100% rename from projects/zajsf-core/src/lib/shared/json-schema.functions.ts rename to projects/ng-formworks-core/src/lib/shared/json-schema.functions.ts diff --git a/projects/zajsf-core/src/lib/shared/json.validators.ts b/projects/ng-formworks-core/src/lib/shared/json.validators.ts similarity index 100% rename from projects/zajsf-core/src/lib/shared/json.validators.ts rename to projects/ng-formworks-core/src/lib/shared/json.validators.ts diff --git a/projects/zajsf-core/src/lib/shared/jsonpointer.functions.ts b/projects/ng-formworks-core/src/lib/shared/jsonpointer.functions.ts similarity index 100% rename from projects/zajsf-core/src/lib/shared/jsonpointer.functions.ts rename to projects/ng-formworks-core/src/lib/shared/jsonpointer.functions.ts diff --git a/projects/zajsf-core/src/lib/shared/jspointer.functions.json.spec.ts b/projects/ng-formworks-core/src/lib/shared/jspointer.functions.json.spec.ts similarity index 100% rename from projects/zajsf-core/src/lib/shared/jspointer.functions.json.spec.ts rename to projects/ng-formworks-core/src/lib/shared/jspointer.functions.json.spec.ts diff --git a/projects/zajsf-core/src/lib/shared/layout.functions.ts b/projects/ng-formworks-core/src/lib/shared/layout.functions.ts similarity index 100% rename from projects/zajsf-core/src/lib/shared/layout.functions.ts rename to projects/ng-formworks-core/src/lib/shared/layout.functions.ts diff --git a/projects/zajsf-core/src/lib/shared/merge-schemas.function.ts b/projects/ng-formworks-core/src/lib/shared/merge-schemas.function.ts similarity index 100% rename from projects/zajsf-core/src/lib/shared/merge-schemas.function.ts rename to projects/ng-formworks-core/src/lib/shared/merge-schemas.function.ts diff --git a/projects/zajsf-core/src/lib/shared/utility.functions.ts b/projects/ng-formworks-core/src/lib/shared/utility.functions.ts similarity index 100% rename from projects/zajsf-core/src/lib/shared/utility.functions.ts rename to projects/ng-formworks-core/src/lib/shared/utility.functions.ts diff --git a/projects/zajsf-core/src/lib/shared/validator.functions.spec.ts b/projects/ng-formworks-core/src/lib/shared/validator.functions.spec.ts similarity index 100% rename from projects/zajsf-core/src/lib/shared/validator.functions.spec.ts rename to projects/ng-formworks-core/src/lib/shared/validator.functions.spec.ts diff --git a/projects/zajsf-core/src/lib/shared/validator.functions.ts b/projects/ng-formworks-core/src/lib/shared/validator.functions.ts similarity index 100% rename from projects/zajsf-core/src/lib/shared/validator.functions.ts rename to projects/ng-formworks-core/src/lib/shared/validator.functions.ts diff --git a/projects/zajsf-core/src/lib/widget-library/add-reference.component.ts b/projects/ng-formworks-core/src/lib/widget-library/add-reference.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/add-reference.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/add-reference.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/button.component.ts b/projects/ng-formworks-core/src/lib/widget-library/button.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/button.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/button.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/checkbox.component.ts b/projects/ng-formworks-core/src/lib/widget-library/checkbox.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/checkbox.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/checkbox.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/checkboxes.component.ts b/projects/ng-formworks-core/src/lib/widget-library/checkboxes.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/checkboxes.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/checkboxes.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/file.component.ts b/projects/ng-formworks-core/src/lib/widget-library/file.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/file.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/file.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/hidden.component.ts b/projects/ng-formworks-core/src/lib/widget-library/hidden.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/hidden.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/hidden.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/index.ts b/projects/ng-formworks-core/src/lib/widget-library/index.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/index.ts rename to projects/ng-formworks-core/src/lib/widget-library/index.ts diff --git a/projects/zajsf-core/src/lib/widget-library/input.component.ts b/projects/ng-formworks-core/src/lib/widget-library/input.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/input.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/input.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/message.component.ts b/projects/ng-formworks-core/src/lib/widget-library/message.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/message.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/message.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/none.component.ts b/projects/ng-formworks-core/src/lib/widget-library/none.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/none.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/none.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/number.component.ts b/projects/ng-formworks-core/src/lib/widget-library/number.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/number.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/number.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/one-of.component.ts b/projects/ng-formworks-core/src/lib/widget-library/one-of.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/one-of.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/one-of.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/orderable.directive.ts b/projects/ng-formworks-core/src/lib/widget-library/orderable.directive.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/orderable.directive.ts rename to projects/ng-formworks-core/src/lib/widget-library/orderable.directive.ts diff --git a/projects/zajsf-core/src/lib/widget-library/radios.component.ts b/projects/ng-formworks-core/src/lib/widget-library/radios.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/radios.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/radios.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/root.component.ts b/projects/ng-formworks-core/src/lib/widget-library/root.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/root.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/root.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/section.component.ts b/projects/ng-formworks-core/src/lib/widget-library/section.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/section.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/section.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/select-framework.component.ts b/projects/ng-formworks-core/src/lib/widget-library/select-framework.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/select-framework.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/select-framework.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/select-widget.component.ts b/projects/ng-formworks-core/src/lib/widget-library/select-widget.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/select-widget.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/select-widget.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/select.component.ts b/projects/ng-formworks-core/src/lib/widget-library/select.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/select.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/select.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/submit.component.ts b/projects/ng-formworks-core/src/lib/widget-library/submit.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/submit.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/submit.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/tab.component.ts b/projects/ng-formworks-core/src/lib/widget-library/tab.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/tab.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/tab.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/tabs.component.ts b/projects/ng-formworks-core/src/lib/widget-library/tabs.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/tabs.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/tabs.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/template.component.ts b/projects/ng-formworks-core/src/lib/widget-library/template.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/template.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/template.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/textarea.component.ts b/projects/ng-formworks-core/src/lib/widget-library/textarea.component.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/textarea.component.ts rename to projects/ng-formworks-core/src/lib/widget-library/textarea.component.ts diff --git a/projects/zajsf-core/src/lib/widget-library/widget-library.module.ts b/projects/ng-formworks-core/src/lib/widget-library/widget-library.module.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/widget-library.module.ts rename to projects/ng-formworks-core/src/lib/widget-library/widget-library.module.ts diff --git a/projects/zajsf-core/src/lib/widget-library/widget-library.service.ts b/projects/ng-formworks-core/src/lib/widget-library/widget-library.service.ts similarity index 100% rename from projects/zajsf-core/src/lib/widget-library/widget-library.service.ts rename to projects/ng-formworks-core/src/lib/widget-library/widget-library.service.ts diff --git a/projects/zajsf-core/src/public_api.ts b/projects/ng-formworks-core/src/public_api.ts similarity index 100% rename from projects/zajsf-core/src/public_api.ts rename to projects/ng-formworks-core/src/public_api.ts diff --git a/projects/zajsf-core/src/test.ts b/projects/ng-formworks-core/src/test.ts similarity index 100% rename from projects/zajsf-core/src/test.ts rename to projects/ng-formworks-core/src/test.ts diff --git a/projects/zajsf-core/tsconfig.lib.json b/projects/ng-formworks-core/tsconfig.lib.json similarity index 100% rename from projects/zajsf-core/tsconfig.lib.json rename to projects/ng-formworks-core/tsconfig.lib.json diff --git a/projects/zajsf-core/tsconfig.lib.prod.json b/projects/ng-formworks-core/tsconfig.lib.prod.json similarity index 100% rename from projects/zajsf-core/tsconfig.lib.prod.json rename to projects/ng-formworks-core/tsconfig.lib.prod.json diff --git a/projects/zajsf-core/tsconfig.spec.json b/projects/ng-formworks-core/tsconfig.spec.json similarity index 100% rename from projects/zajsf-core/tsconfig.spec.json rename to projects/ng-formworks-core/tsconfig.spec.json diff --git a/projects/zajsf-core/tslint.json b/projects/ng-formworks-core/tslint.json similarity index 100% rename from projects/zajsf-core/tslint.json rename to projects/ng-formworks-core/tslint.json diff --git a/projects/ng-formworks-cssframework/README.md b/projects/ng-formworks-cssframework/README.md new file mode 100644 index 0000000..521833a --- /dev/null +++ b/projects/ng-formworks-cssframework/README.md @@ -0,0 +1,28 @@ +# @ng-formworks/cssframework + +This module is a dependency of the [ng-formworks project][npm_core_ver] and not intended to be consumed independently see [@ng-formworks/core][npm_core_ver] for more details. +Below is information regarding the development tasks and not related to the module's installation, it should automatically be installed when a framework module is installed. + +## Code scaffolding + +Run `ng generate component component-name --project @ng-formworks/cssframework` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project @ng-formworks/cssframework`. +> Note: Don't forget to add `--project @ng-formworks/cssframework` or else it will be added to the default project in your `angular.json` file. + +## Build + +Run `ng build @ng-formworks/cssframework` to build the project. The build artifacts will be stored in the `dist/` directory. + +## Publishing + +After building your library with `ng build @ng-formworks/cssframework`, go to the dist folder `cd dist/@ng-formworks/cssframework` and run `npm publish`. + +## Running unit tests + +Run `ng test @ng-formworks/cssframework` to execute the unit tests via [Karma](https://karma-runner.github.io). + +## Further help + +To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page. + + +[npm_core_ver]:https://www.npmjs.com/package/@ng-formworks/core \ No newline at end of file diff --git a/projects/zajsf-cssframework/ng-package.json b/projects/ng-formworks-cssframework/ng-package.json similarity index 73% rename from projects/zajsf-cssframework/ng-package.json rename to projects/ng-formworks-cssframework/ng-package.json index 1093621..a8405ea 100644 --- a/projects/zajsf-cssframework/ng-package.json +++ b/projects/ng-formworks-cssframework/ng-package.json @@ -1,12 +1,12 @@ { "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../../dist/@zajsf/cssframework", + "dest": "../../dist/@ng-formworks/cssframework", "lib": { "entryFile": "src/public-api.ts" }, "assets": ["./assets"], "allowedNonPeerDependencies": [ "lodash-es", - "@zajsf/core" + "@ng-formworks/core" ] } \ No newline at end of file diff --git a/projects/zajsf-cssframework/package.json b/projects/ng-formworks-cssframework/package.json similarity index 60% rename from projects/zajsf-cssframework/package.json rename to projects/ng-formworks-cssframework/package.json index 441b241..58753fa 100644 --- a/projects/zajsf-cssframework/package.json +++ b/projects/ng-formworks-cssframework/package.json @@ -1,8 +1,8 @@ { - "name": "@zajsf/cssframework", - "version": "17.2.5-alpha.2", - "description": "Angular JSON Schema Form builder cssframework", - "author": "https://github.com/zahmo/zajsf/graphs/contributors", + "name": "@ng-formworks/cssframework", + "version": "17.2.6-alpha.0", + "description": "Angular ng-formworks - JSON Schema Form builder cssframework", + "author": "https://github.com/zahmo/ng-formworks/graphs/contributors", "keywords": [ "Angular", "ng", @@ -20,17 +20,20 @@ "forms", "form builder", "form themes", + "form generator", "ajsf", - "zajsf", + "ng-formworks", + "ng formworks", + "formworks", "angular json schema form" ], "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/zahmo/zajsf" + "url": "git+https://github.com/zahmo/ng-formworks" }, "bugs": { - "url": "https://github.com/zahmo/zajsf/issues" + "url": "https://github.com/zahmo/ng-formworks/issues" }, "private": false, "peerDependencies": { @@ -39,7 +42,7 @@ }, "dependencies": { "tslib": "^2.3.0", - "@zajsf/core": "~17.2.5-alpha.2" + "@ng-formworks/core": "~17.2.6-alpha.0" }, "devDependencies": { "@types/lodash-es": "^4.17.6" diff --git a/projects/zajsf-cssframework/src/lib/css-framework.component.html b/projects/ng-formworks-cssframework/src/lib/css-framework.component.html similarity index 100% rename from projects/zajsf-cssframework/src/lib/css-framework.component.html rename to projects/ng-formworks-cssframework/src/lib/css-framework.component.html diff --git a/projects/zajsf-cssframework/src/lib/css-framework.component.scss b/projects/ng-formworks-cssframework/src/lib/css-framework.component.scss similarity index 100% rename from projects/zajsf-cssframework/src/lib/css-framework.component.scss rename to projects/ng-formworks-cssframework/src/lib/css-framework.component.scss diff --git a/projects/zajsf-cssframework/src/lib/css-framework.component.spec.ts b/projects/ng-formworks-cssframework/src/lib/css-framework.component.spec.ts similarity index 100% rename from projects/zajsf-cssframework/src/lib/css-framework.component.spec.ts rename to projects/ng-formworks-cssframework/src/lib/css-framework.component.spec.ts diff --git a/projects/zajsf-cssframework/src/lib/css-framework.component.ts b/projects/ng-formworks-cssframework/src/lib/css-framework.component.ts similarity index 99% rename from projects/zajsf-cssframework/src/lib/css-framework.component.ts rename to projects/ng-formworks-cssframework/src/lib/css-framework.component.ts index 1d96418..84da450 100644 --- a/projects/zajsf-cssframework/src/lib/css-framework.component.ts +++ b/projects/ng-formworks-cssframework/src/lib/css-framework.component.ts @@ -1,5 +1,5 @@ import { ChangeDetectorRef, Component, Input, OnChanges, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core'; -import { FrameworkLibraryService, JsonSchemaFormService, addClasses, inArray } from '@zajsf/core'; +import { FrameworkLibraryService, JsonSchemaFormService, addClasses, inArray } from '@ng-formworks/core'; import _, { cloneDeep, map } from 'lodash'; import { Subscription } from 'rxjs'; import { css_fw } from './css-framework.defs'; @@ -31,7 +31,7 @@ export class CssFrameworkComponent implements OnInit, OnChanges,OnDestroy { - //TODO-move to zajsf/core utility.functions.ts + //TODO-move to ng-formworks/core utility.functions.ts applyCssClasses(type, widgetOptions, styleOptions) { //console.log("applyCssClasses for type:"+type); let cssClasses = this.widgetStyles[type]; diff --git a/projects/zajsf-cssframework/src/lib/css-framework.defs.ts b/projects/ng-formworks-cssframework/src/lib/css-framework.defs.ts similarity index 100% rename from projects/zajsf-cssframework/src/lib/css-framework.defs.ts rename to projects/ng-formworks-cssframework/src/lib/css-framework.defs.ts diff --git a/projects/zajsf-cssframework/src/lib/css-framework.module.ts b/projects/ng-formworks-cssframework/src/lib/css-framework.module.ts similarity index 97% rename from projects/zajsf-cssframework/src/lib/css-framework.module.ts rename to projects/ng-formworks-cssframework/src/lib/css-framework.module.ts index 786940e..4e57101 100644 --- a/projects/zajsf-cssframework/src/lib/css-framework.module.ts +++ b/projects/ng-formworks-cssframework/src/lib/css-framework.module.ts @@ -1,6 +1,6 @@ import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; -import { FrameworkLibraryService, JsonSchemaFormModule, JsonSchemaFormService, WidgetLibraryModule, WidgetLibraryService } from '@zajsf/core'; +import { FrameworkLibraryService, JsonSchemaFormModule, JsonSchemaFormService, WidgetLibraryModule, WidgetLibraryService } from '@ng-formworks/core'; import { CssFrameworkComponent } from './css-framework.component'; import { CssframeworkService } from './css-framework.service'; diff --git a/projects/zajsf-cssframework/src/lib/css-framework.service.spec.ts b/projects/ng-formworks-cssframework/src/lib/css-framework.service.spec.ts similarity index 100% rename from projects/zajsf-cssframework/src/lib/css-framework.service.spec.ts rename to projects/ng-formworks-cssframework/src/lib/css-framework.service.spec.ts diff --git a/projects/zajsf-cssframework/src/lib/css-framework.service.ts b/projects/ng-formworks-cssframework/src/lib/css-framework.service.ts similarity index 100% rename from projects/zajsf-cssframework/src/lib/css-framework.service.ts rename to projects/ng-formworks-cssframework/src/lib/css-framework.service.ts diff --git a/projects/zajsf-cssframework/src/lib/css.framework.ts b/projects/ng-formworks-cssframework/src/lib/css.framework.ts similarity index 98% rename from projects/zajsf-cssframework/src/lib/css.framework.ts rename to projects/ng-formworks-cssframework/src/lib/css.framework.ts index 1508f07..cee084f 100644 --- a/projects/zajsf-cssframework/src/lib/css.framework.ts +++ b/projects/ng-formworks-cssframework/src/lib/css.framework.ts @@ -1,5 +1,5 @@ import { Inject, Injectable } from '@angular/core'; -import { Framework } from '@zajsf/core'; +import { Framework } from '@ng-formworks/core'; import { CssFrameworkComponent } from './css-framework.component'; import { CSS_FRAMEWORK_CFG, css_fw } from './css-framework.defs'; import { CssframeworkService } from './css-framework.service'; diff --git a/projects/zajsf-cssframework/src/public-api.ts b/projects/ng-formworks-cssframework/src/public-api.ts similarity index 81% rename from projects/zajsf-cssframework/src/public-api.ts rename to projects/ng-formworks-cssframework/src/public-api.ts index 12f9130..6925585 100644 --- a/projects/zajsf-cssframework/src/public-api.ts +++ b/projects/ng-formworks-cssframework/src/public-api.ts @@ -1,5 +1,5 @@ /* - * Public API Surface of zajsf-cssframework + * Public API Surface of ng-formworks-cssframework */ export * from './lib/css-framework.component'; diff --git a/projects/zajsf-cssframework/tsconfig.lib.json b/projects/ng-formworks-cssframework/tsconfig.lib.json similarity index 100% rename from projects/zajsf-cssframework/tsconfig.lib.json rename to projects/ng-formworks-cssframework/tsconfig.lib.json diff --git a/projects/zajsf-cssframework/tsconfig.lib.prod.json b/projects/ng-formworks-cssframework/tsconfig.lib.prod.json similarity index 100% rename from projects/zajsf-cssframework/tsconfig.lib.prod.json rename to projects/ng-formworks-cssframework/tsconfig.lib.prod.json diff --git a/projects/zajsf-cssframework/tsconfig.spec.json b/projects/ng-formworks-cssframework/tsconfig.spec.json similarity index 100% rename from projects/zajsf-cssframework/tsconfig.spec.json rename to projects/ng-formworks-cssframework/tsconfig.spec.json diff --git a/projects/zajsf-daisyui/.gitignore b/projects/ng-formworks-daisyui/.gitignore similarity index 100% rename from projects/zajsf-daisyui/.gitignore rename to projects/ng-formworks-daisyui/.gitignore diff --git a/projects/zajsf-daisyui/README.md b/projects/ng-formworks-daisyui/README.md similarity index 73% rename from projects/zajsf-daisyui/README.md rename to projects/ng-formworks-daisyui/README.md index 9fd0ad8..3ded7fa 100644 --- a/projects/zajsf-daisyui/README.md +++ b/projects/ng-formworks-daisyui/README.md @@ -1,21 +1,21 @@ -# @zajsf/daisyui -This module is a dependency of the [zajsf project][npm_core_ver] and is meant to work as a framework installation module for using DaisyUI in the forms. +# @ng-formworks/daisyui +This module is a dependency of the [ng-formworks project][npm_core_ver] and is meant to work as a framework installation module for using DaisyUI in the forms. ## Getting started -If you are unfamiliar with with the zajsf project, it is highly recommended to -first have a look at the [@zajsf pages][npm_core_ver] for examples, demos, options and documentation. +If you are unfamiliar with with the ng-formworks project, it is highly recommended to +first have a look at the [@ng-formworks pages][npm_core_ver] for examples, demos, options and documentation. ## Getting started ```shell -npm install @zajsf/core@latest @zajsf/cssframework@latest @zajsf/daisyui@latest +npm install @ng-formworks/core@latest @ng-formworks/cssframework@latest @ng-formworks/daisyui@latest ``` With YARN, run the following: ```shell -yarn add @zajsf/core@latest @zajsf/cssframework@latest @zajsf/daisyui@latest +yarn add @ng-formworks/core@latest @ng-formworks/cssframework@latest @ng-formworks/daisyui@latest ``` Then import `DaisyUIFrameworkModule` in your main application module if you want to use `daisyui` UI, like this: @@ -24,7 +24,7 @@ Then import `DaisyUIFrameworkModule` in your main application module if you want import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; -import { DaisyUIFrameworkModule } from '@zajsf/daisyui'; +import { DaisyUIFrameworkModule } from '@ng-formworks/daisyui'; import { AppComponent } from './app.component'; @@ -74,7 +74,7 @@ The possible values for this framework are: * `daisyui_leaf` for the leaf theme. the list of available themes can also be gotten using the -FrameworkLibraryService(found in '@zajsf/core'): +FrameworkLibraryService(found in '@ng-formworks/core'): ```typescript getFrameworkThemes() ``` @@ -115,7 +115,7 @@ the first step will be to create the entire theme (see the specific frameworks u ``` after making the css available, the theme will need to be registered using the -FrameworkLibraryService(found in '@zajsf/core'): +FrameworkLibraryService(found in '@ng-formworks/core'): for example ```typescript @@ -142,7 +142,7 @@ for example '.btn' will become '.dui-btn'. The standard names can be switched ba import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; -import {DUIOPTIONS, DaisyUIFrameworkModule } from '@zajsf/daisyui'; +import {DUIOPTIONS, DaisyUIFrameworkModule } from '@ng-formworks/daisyui'; import { AppComponent } from './app.component'; @@ -162,15 +162,15 @@ export class AppModule { } ## Code scaffolding -Run `ng generate component component-name --project @zajsf/daisyui` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project @zajsf/daisyui`. -> Note: Don't forget to add `--project @zajsf/daisyui` or else it will be added to the default project in your `angular.json` file. +Run `ng generate component component-name --project @ng-formworks/daisyui` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project @ng-formworks/daisyui`. +> Note: Don't forget to add `--project @ng-formworks/daisyui` or else it will be added to the default project in your `angular.json` file. ## Build -Run `ng build @zajsf/daisyui` to build the project. The build artifacts will be stored in the `dist/` directory. +Run `ng build @ng-formworks/daisyui` to build the project. The build artifacts will be stored in the `dist/` directory. ## Running unit tests -Run `ng test @zajsf/daisyui` to execute the unit tests via [Karma](https://karma-runner.github.io). +Run `ng test @ng-formworks/daisyui` to execute the unit tests via [Karma](https://karma-runner.github.io). -[npm_core_ver]:https://www.npmjs.com/package/@zajsf/core +[npm_core_ver]:https://www.npmjs.com/package/@ng-formworks/core diff --git a/projects/zajsf-daisyui/css_names_extractor.js b/projects/ng-formworks-daisyui/css_names_extractor.js similarity index 97% rename from projects/zajsf-daisyui/css_names_extractor.js rename to projects/ng-formworks-daisyui/css_names_extractor.js index 546d685..e9e940c 100644 --- a/projects/zajsf-daisyui/css_names_extractor.js +++ b/projects/ng-formworks-daisyui/css_names_extractor.js @@ -2,7 +2,7 @@ * aim of this script is to extract all of the css class names that are used * in daisyui, it must be supplied a stylePath * (for daisyui 3.7 this is typically un der ./node_modules/daisyui/dist/full.css) - * and an outputFile(typically zajsf-daisyui/src/daisyui_class_names.css) + * and an outputFile(typically ng-formworks-daisyui/src/daisyui_class_names.css) * the script will then try to enumerate all of the css class names * the reason this is done is: when the tailwind cli attempts to build the * tailwind-output.scss file, it will include all of the css classes that are scanned diff --git a/projects/zajsf-daisyui/ng-package.json b/projects/ng-formworks-daisyui/ng-package.json similarity index 67% rename from projects/zajsf-daisyui/ng-package.json rename to projects/ng-formworks-daisyui/ng-package.json index 6203946..09ce240 100644 --- a/projects/zajsf-daisyui/ng-package.json +++ b/projects/ng-formworks-daisyui/ng-package.json @@ -1,14 +1,14 @@ { "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../../dist/@zajsf/daisyui", + "dest": "../../dist/@ng-formworks/daisyui", "lib": { "entryFile": "src/public-api.ts" }, "assets": ["./assets"], "allowedNonPeerDependencies": [ "lodash-es", - "@zajsf/core", - "@zajsf/cssframework", + "@ng-formworks/core", + "@ng-formworks/cssframework", "daisyui" ] } \ No newline at end of file diff --git a/projects/zajsf-daisyui/package-lock.json b/projects/ng-formworks-daisyui/package-lock.json similarity index 99% rename from projects/zajsf-daisyui/package-lock.json rename to projects/ng-formworks-daisyui/package-lock.json index 28ee4d2..73feaf9 100644 --- a/projects/zajsf-daisyui/package-lock.json +++ b/projects/ng-formworks-daisyui/package-lock.json @@ -1,11 +1,11 @@ { - "name": "@zajsf/daisyui", + "name": "@ng-formworks/daisyui", "version": "0.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@zajsf/daisyui", + "name": "@ng-formworks/daisyui", "version": "0.0.1", "dependencies": { "daisyui": "^3.7.3", diff --git a/projects/zajsf-daisyui/package.json b/projects/ng-formworks-daisyui/package.json similarity index 62% rename from projects/zajsf-daisyui/package.json rename to projects/ng-formworks-daisyui/package.json index f4ea7c1..ee96184 100644 --- a/projects/zajsf-daisyui/package.json +++ b/projects/ng-formworks-daisyui/package.json @@ -1,8 +1,8 @@ { - "name": "@zajsf/daisyui", - "version": "17.2.5-alpha.2", - "description": "Angular JSON Schema Form builder using DaisyUI", - "author": "https://github.com/zahmo/zajsf/graphs/contributors", + "name": "@ng-formworks/daisyui", + "version": "17.2.6-alpha.0", + "description": "Angular ng-formworks - JSON Schema Form builder using DaisyUI", + "author": "https://github.com/zahmo/ng-formworks/graphs/contributors", "keywords": [ "Angular", "ng", @@ -20,21 +20,24 @@ "forms", "form builder", "form themes", + "form generator", "daisyui", "tailwind", "tailwindcss", "tailwind css", "ajsf", - "zajsf", + "ng-formworks", + "ng formworks", + "formworks", "angular json schema form" ], "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/zahmo/zajsf" + "url": "git+https://github.com/zahmo/ng-formworks" }, "bugs": { - "url": "https://github.com/zahmo/zajsf/issues" + "url": "https://github.com/zahmo/ng-formworks/issues" }, "private": false, "peerDependencies": { @@ -44,8 +47,8 @@ "dependencies": { "tslib": "^2.3.0", - "@zajsf/core": "~17.2.5-alpha.2", - "@zajsf/cssframework": "~17.2.5-alpha.2" + "@ng-formworks/core": "~17.2.6-alpha.0", + "@ng-formworks/cssframework": "~17.2.6-alpha.0" }, "devDependencies": { "@types/lodash-es": "^4.17.6", diff --git a/projects/zajsf-daisyui/src/daisyui_class_names.css b/projects/ng-formworks-daisyui/src/daisyui_class_names.css similarity index 100% rename from projects/zajsf-daisyui/src/daisyui_class_names.css rename to projects/ng-formworks-daisyui/src/daisyui_class_names.css diff --git a/projects/zajsf-daisyui/src/daisyui_class_names_prefixed_tw.css b/projects/ng-formworks-daisyui/src/daisyui_class_names_prefixed_tw.css similarity index 100% rename from projects/zajsf-daisyui/src/daisyui_class_names_prefixed_tw.css rename to projects/ng-formworks-daisyui/src/daisyui_class_names_prefixed_tw.css diff --git a/projects/zajsf-daisyui/src/daisyui_class_names_prefixed_tw_dui.css b/projects/ng-formworks-daisyui/src/daisyui_class_names_prefixed_tw_dui.css similarity index 100% rename from projects/zajsf-daisyui/src/daisyui_class_names_prefixed_tw_dui.css rename to projects/ng-formworks-daisyui/src/daisyui_class_names_prefixed_tw_dui.css diff --git a/projects/zajsf-daisyui/src/lib/daisui-cssframework.ts b/projects/ng-formworks-daisyui/src/lib/daisui-cssframework.ts similarity index 99% rename from projects/zajsf-daisyui/src/lib/daisui-cssframework.ts rename to projects/ng-formworks-daisyui/src/lib/daisui-cssframework.ts index f8b1d5a..c6fcc2a 100644 --- a/projects/zajsf-daisyui/src/lib/daisui-cssframework.ts +++ b/projects/ng-formworks-daisyui/src/lib/daisui-cssframework.ts @@ -1,4 +1,4 @@ -import { css_fw } from "@zajsf/cssframework"; +import { css_fw } from "@ng-formworks/cssframework"; export const cssFrameworkCfgDaisyUI:css_fw.frameworkcfg={ "name": "daisyui", diff --git a/projects/zajsf-daisyui/src/lib/daisyui-framework.component.scss b/projects/ng-formworks-daisyui/src/lib/daisyui-framework.component.scss similarity index 95% rename from projects/zajsf-daisyui/src/lib/daisyui-framework.component.scss rename to projects/ng-formworks-daisyui/src/lib/daisyui-framework.component.scss index d25a9fd..33e856a 100644 --- a/projects/zajsf-daisyui/src/lib/daisyui-framework.component.scss +++ b/projects/ng-formworks-daisyui/src/lib/daisyui-framework.component.scss @@ -45,4 +45,4 @@ } @import './tailwind-output.scss'; -@import './daisyui-zajsf-themes.scss'; \ No newline at end of file +@import './daisyui-ng-formworks-themes.scss'; \ No newline at end of file diff --git a/projects/zajsf-daisyui/src/lib/daisyui-framework.component.spec.ts b/projects/ng-formworks-daisyui/src/lib/daisyui-framework.component.spec.ts similarity index 100% rename from projects/zajsf-daisyui/src/lib/daisyui-framework.component.spec.ts rename to projects/ng-formworks-daisyui/src/lib/daisyui-framework.component.spec.ts diff --git a/projects/zajsf-daisyui/src/lib/daisyui-framework.component.ts b/projects/ng-formworks-daisyui/src/lib/daisyui-framework.component.ts similarity index 94% rename from projects/zajsf-daisyui/src/lib/daisyui-framework.component.ts rename to projects/ng-formworks-daisyui/src/lib/daisyui-framework.component.ts index 5b98719..ed4c5d6 100644 --- a/projects/zajsf-daisyui/src/lib/daisyui-framework.component.ts +++ b/projects/ng-formworks-daisyui/src/lib/daisyui-framework.component.ts @@ -6,7 +6,7 @@ import { OnInit, ViewEncapsulation } from '@angular/core'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; /** * DaisyUI framework for Angular JSON Schema Form. diff --git a/projects/zajsf-daisyui/src/lib/daisyui-framework.module.ts b/projects/ng-formworks-daisyui/src/lib/daisyui-framework.module.ts similarity index 91% rename from projects/zajsf-daisyui/src/lib/daisyui-framework.module.ts rename to projects/ng-formworks-daisyui/src/lib/daisyui-framework.module.ts index 3307ae2..8b33006 100644 --- a/projects/zajsf-daisyui/src/lib/daisyui-framework.module.ts +++ b/projects/ng-formworks-daisyui/src/lib/daisyui-framework.module.ts @@ -1,8 +1,8 @@ import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; -import { Framework, FrameworkLibraryService, JsonSchemaFormModule, JsonSchemaFormService, WidgetLibraryModule, WidgetLibraryService } from '@zajsf/core'; +import { Framework, FrameworkLibraryService, JsonSchemaFormModule, JsonSchemaFormService, WidgetLibraryModule, WidgetLibraryService } from '@ng-formworks/core'; -import { CssFrameworkModule } from '@zajsf/cssframework'; +import { CssFrameworkModule } from '@ng-formworks/cssframework'; import { DaisyUIFrameworkComponent } from './daisyui-framework.component'; import { DaisyUIFrameworkComponentPrefixed } from './daisyui-framework.prefixed.component'; import { DaisyUIFramework } from './daisyui.framework'; diff --git a/projects/zajsf-daisyui/src/lib/daisyui-framework.prefixed.component.scss b/projects/ng-formworks-daisyui/src/lib/daisyui-framework.prefixed.component.scss similarity index 94% rename from projects/zajsf-daisyui/src/lib/daisyui-framework.prefixed.component.scss rename to projects/ng-formworks-daisyui/src/lib/daisyui-framework.prefixed.component.scss index 8c93a79..864775f 100644 --- a/projects/zajsf-daisyui/src/lib/daisyui-framework.prefixed.component.scss +++ b/projects/ng-formworks-daisyui/src/lib/daisyui-framework.prefixed.component.scss @@ -45,4 +45,4 @@ } @import './tailwind-output-prefixed.scss'; -@import './daisyui-zajsf-themes-prefixed.scss'; \ No newline at end of file +@import './daisyui-ng-formworks-themes-prefixed.scss'; \ No newline at end of file diff --git a/projects/zajsf-daisyui/src/lib/daisyui-framework.prefixed.component.ts b/projects/ng-formworks-daisyui/src/lib/daisyui-framework.prefixed.component.ts similarity index 95% rename from projects/zajsf-daisyui/src/lib/daisyui-framework.prefixed.component.ts rename to projects/ng-formworks-daisyui/src/lib/daisyui-framework.prefixed.component.ts index 2f9fb7f..c406b6d 100644 --- a/projects/zajsf-daisyui/src/lib/daisyui-framework.prefixed.component.ts +++ b/projects/ng-formworks-daisyui/src/lib/daisyui-framework.prefixed.component.ts @@ -6,7 +6,7 @@ import { OnInit, ViewEncapsulation } from '@angular/core'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; /** * DaisyUI framework for Angular JSON Schema Form. diff --git a/projects/zajsf-daisyui/src/lib/daisyui-framework.service.spec.ts b/projects/ng-formworks-daisyui/src/lib/daisyui-framework.service.spec.ts similarity index 100% rename from projects/zajsf-daisyui/src/lib/daisyui-framework.service.spec.ts rename to projects/ng-formworks-daisyui/src/lib/daisyui-framework.service.spec.ts diff --git a/projects/zajsf-daisyui/src/lib/daisyui-framework.service.ts b/projects/ng-formworks-daisyui/src/lib/daisyui-framework.service.ts similarity index 100% rename from projects/zajsf-daisyui/src/lib/daisyui-framework.service.ts rename to projects/ng-formworks-daisyui/src/lib/daisyui-framework.service.ts diff --git a/projects/zajsf-daisyui/src/lib/daisyui-zajsf-themes-prefixed.scss b/projects/ng-formworks-daisyui/src/lib/daisyui-ng-formworks-themes-prefixed.scss similarity index 100% rename from projects/zajsf-daisyui/src/lib/daisyui-zajsf-themes-prefixed.scss rename to projects/ng-formworks-daisyui/src/lib/daisyui-ng-formworks-themes-prefixed.scss diff --git a/projects/zajsf-daisyui/src/lib/daisyui-zajsf-themes.scss b/projects/ng-formworks-daisyui/src/lib/daisyui-ng-formworks-themes.scss similarity index 100% rename from projects/zajsf-daisyui/src/lib/daisyui-zajsf-themes.scss rename to projects/ng-formworks-daisyui/src/lib/daisyui-ng-formworks-themes.scss diff --git a/projects/zajsf-daisyui/src/lib/daisyui.framework.ts b/projects/ng-formworks-daisyui/src/lib/daisyui.framework.ts similarity index 94% rename from projects/zajsf-daisyui/src/lib/daisyui.framework.ts rename to projects/ng-formworks-daisyui/src/lib/daisyui.framework.ts index 9143ad9..6ab38eb 100644 --- a/projects/zajsf-daisyui/src/lib/daisyui.framework.ts +++ b/projects/ng-formworks-daisyui/src/lib/daisyui.framework.ts @@ -1,5 +1,5 @@ import { Inject, Injectable, Optional } from '@angular/core'; -import { CssFramework, CssframeworkService } from '@zajsf/cssframework'; +import { CssFramework, CssframeworkService } from '@ng-formworks/cssframework'; import { cssFrameworkCfgDaisyUI, getCssFrameworkCfgPrefixed } from './daisui-cssframework'; import { DaisyUIFrameworkComponent } from './daisyui-framework.component'; import { DaisyUIFrameworkComponentPrefixed } from './daisyui-framework.prefixed.component'; diff --git a/projects/zajsf-daisyui/src/lib/tailwind-output-prefixed.scss b/projects/ng-formworks-daisyui/src/lib/tailwind-output-prefixed.scss similarity index 100% rename from projects/zajsf-daisyui/src/lib/tailwind-output-prefixed.scss rename to projects/ng-formworks-daisyui/src/lib/tailwind-output-prefixed.scss diff --git a/projects/zajsf-daisyui/src/lib/tailwind-output.scss b/projects/ng-formworks-daisyui/src/lib/tailwind-output.scss similarity index 100% rename from projects/zajsf-daisyui/src/lib/tailwind-output.scss rename to projects/ng-formworks-daisyui/src/lib/tailwind-output.scss diff --git a/projects/zajsf-daisyui/src/lib/tokens.defs.ts b/projects/ng-formworks-daisyui/src/lib/tokens.defs.ts similarity index 100% rename from projects/zajsf-daisyui/src/lib/tokens.defs.ts rename to projects/ng-formworks-daisyui/src/lib/tokens.defs.ts diff --git a/projects/zajsf-daisyui/src/lib/widgets/daisyui-tabs.component.ts b/projects/ng-formworks-daisyui/src/lib/widgets/daisyui-tabs.component.ts similarity index 97% rename from projects/zajsf-daisyui/src/lib/widgets/daisyui-tabs.component.ts rename to projects/ng-formworks-daisyui/src/lib/widgets/daisyui-tabs.component.ts index 4875148..9a1686f 100644 --- a/projects/zajsf-daisyui/src/lib/widgets/daisyui-tabs.component.ts +++ b/projects/ng-formworks-daisyui/src/lib/widgets/daisyui-tabs.component.ts @@ -1,5 +1,5 @@ import { Component, Input, OnInit } from '@angular/core'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; diff --git a/projects/zajsf-daisyui/src/public-api.ts b/projects/ng-formworks-daisyui/src/public-api.ts similarity index 88% rename from projects/zajsf-daisyui/src/public-api.ts rename to projects/ng-formworks-daisyui/src/public-api.ts index 922750d..e504902 100644 --- a/projects/zajsf-daisyui/src/public-api.ts +++ b/projects/ng-formworks-daisyui/src/public-api.ts @@ -1,5 +1,5 @@ /* - * Public API Surface of @zajsf/daisyui + * Public API Surface of @ng-formworks/daisyui */ export * from './lib/daisyui-framework.component'; diff --git a/projects/zajsf-daisyui/tailwind-input.css b/projects/ng-formworks-daisyui/tailwind-input.css similarity index 100% rename from projects/zajsf-daisyui/tailwind-input.css rename to projects/ng-formworks-daisyui/tailwind-input.css diff --git a/projects/zajsf-daisyui/tailwind.config.js b/projects/ng-formworks-daisyui/tailwind.config.js similarity index 90% rename from projects/zajsf-daisyui/tailwind.config.js rename to projects/ng-formworks-daisyui/tailwind.config.js index 6267509..ad4a9c7 100644 --- a/projects/zajsf-daisyui/tailwind.config.js +++ b/projects/ng-formworks-daisyui/tailwind.config.js @@ -3,7 +3,7 @@ module.exports = { content: [ "./src/**/*.{html,ts}", - "./projects/zajsf-daisyui/**/*.{html,ts,css}" + "./projects/ng-formworks-daisyui/**/*.{html,ts,css}" ], theme: { extend: {}, diff --git a/projects/zajsf-daisyui/tailwind.prefixed.config.js b/projects/ng-formworks-daisyui/tailwind.prefixed.config.js similarity index 91% rename from projects/zajsf-daisyui/tailwind.prefixed.config.js rename to projects/ng-formworks-daisyui/tailwind.prefixed.config.js index 9f012c2..80d0876 100644 --- a/projects/zajsf-daisyui/tailwind.prefixed.config.js +++ b/projects/ng-formworks-daisyui/tailwind.prefixed.config.js @@ -3,7 +3,7 @@ module.exports = { content: [ "./src/**/*.{html,ts}", - "./projects/zajsf-daisyui/**/*.{html,ts,css}" + "./projects/ng-formworks-daisyui/**/*.{html,ts,css}" ], theme: { extend: {}, diff --git a/projects/zajsf-daisyui/tsconfig.lib.json b/projects/ng-formworks-daisyui/tsconfig.lib.json similarity index 100% rename from projects/zajsf-daisyui/tsconfig.lib.json rename to projects/ng-formworks-daisyui/tsconfig.lib.json diff --git a/projects/zajsf-daisyui/tsconfig.lib.prod.json b/projects/ng-formworks-daisyui/tsconfig.lib.prod.json similarity index 100% rename from projects/zajsf-daisyui/tsconfig.lib.prod.json rename to projects/ng-formworks-daisyui/tsconfig.lib.prod.json diff --git a/projects/zajsf-daisyui/tsconfig.spec.json b/projects/ng-formworks-daisyui/tsconfig.spec.json similarity index 100% rename from projects/zajsf-daisyui/tsconfig.spec.json rename to projects/ng-formworks-daisyui/tsconfig.spec.json diff --git a/projects/zajsf-material/README.md b/projects/ng-formworks-material/README.md similarity index 66% rename from projects/zajsf-material/README.md rename to projects/ng-formworks-material/README.md index 97194b8..693b2dc 100644 --- a/projects/zajsf-material/README.md +++ b/projects/ng-formworks-material/README.md @@ -1,25 +1,25 @@ -# @zajsf/material +# @ng-formworks/material -This module is a dependency of the [zajsf project][npm_core_ver] and is meant to work as a framework installation module for using Angular Material Design in the forms. +This module is a dependency of the [ng-formworks project][npm_core_ver] and is meant to work as a framework installation module for using Angular Material Design in the forms. ## Getting started -If you are unfamiliar with with the zajsf project, it is highly recommended to -first have a look at the [@zajsf pages][npm_core_ver] for examples, demos, options and documentation. +If you are unfamiliar with with the ng-formworks project, it is highly recommended to +first have a look at the [@ng-formworks pages][npm_core_ver] for examples, demos, options and documentation. ```shell -npm install @zajsf/core@latest @zajsf/cssframework@latest @zajsf/material@latest +npm install @ng-formworks/core@latest @ng-formworks/cssframework@latest @ng-formworks/material@latest ``` With YARN, run the following: ```shell -yarn add @zajsf/core@latest @zajsf/cssframework@latest @zajsf/material@latest +yarn add @ng-formworks/core@latest @ng-formworks/cssframework@latest @ng-formworks/material@latest ``` include the themes scss in your applications sass file(typically "styles.scss" under "src" folder -see angular docs for more details) ```scss -@import "node_modules/@zajsf/material/assets/material-design-themes.scss"; +@import "node_modules/@ng-formworks/material/assets/material-design-themes.scss"; ``` Then import `MaterialDesignFrameworkModule` in your main application module if you want to use `material-angular` UI, like this: @@ -28,7 +28,7 @@ Then import `MaterialDesignFrameworkModule` in your main application module if y import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; -import { MaterialDesignFrameworkModule } from '@zajsf/material'; +import { MaterialDesignFrameworkModule } from '@ng-formworks/material'; import { AppComponent } from './app.component'; @@ -77,7 +77,7 @@ The possible values for this framework are: * `pink-bluegrey` for the pink & blue-grey theme. the list of available themes can also be gotten using the -FrameworkLibraryService(found in '@zajsf/core'): +FrameworkLibraryService(found in '@ng-formworks/core'): ```typescript getFrameworkThemes() ``` @@ -100,7 +100,7 @@ a css class ``` after making the css available, the theme will need to be registered using the -FrameworkLibraryService(found in '@zajsf/core'): +FrameworkLibraryService(found in '@ng-formworks/core'): for example ```typescript @@ -119,15 +119,15 @@ for example ## Code scaffolding -Run `ng generate component component-name --project @zajsf/material` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project @zajsf/material`. -> Note: Don't forget to add `--project @zajsf/material` or else it will be added to the default project in your `angular.json` file. +Run `ng generate component component-name --project @ng-formworks/material` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project @ng-formworks/material`. +> Note: Don't forget to add `--project @ng-formworks/material` or else it will be added to the default project in your `angular.json` file. ## Build -Run `ng build @zajsf/material` to build the project. The build artifacts will be stored in the `dist/` directory. +Run `ng build @ng-formworks/material` to build the project. The build artifacts will be stored in the `dist/` directory. ## Running unit tests -Run `ng test @zajsf/material` to execute the unit tests via [Karma](https://karma-runner.github.io). +Run `ng test @ng-formworks/material` to execute the unit tests via [Karma](https://karma-runner.github.io). -[npm_core_ver]:https://www.npmjs.com/package/@zajsf/core \ No newline at end of file +[npm_core_ver]:https://www.npmjs.com/package/@ng-formworks/core \ No newline at end of file diff --git a/projects/zajsf-material/assets/material-design-themes.scss b/projects/ng-formworks-material/assets/material-design-themes.scss similarity index 100% rename from projects/zajsf-material/assets/material-design-themes.scss rename to projects/ng-formworks-material/assets/material-design-themes.scss diff --git a/projects/zajsf-material/karma.conf.js b/projects/ng-formworks-material/karma.conf.js similarity index 100% rename from projects/zajsf-material/karma.conf.js rename to projects/ng-formworks-material/karma.conf.js diff --git a/projects/zajsf-bootstrap4/ng-package.json b/projects/ng-formworks-material/ng-package.json similarity index 66% rename from projects/zajsf-bootstrap4/ng-package.json rename to projects/ng-formworks-material/ng-package.json index 72872ab..a08d2d9 100644 --- a/projects/zajsf-bootstrap4/ng-package.json +++ b/projects/ng-formworks-material/ng-package.json @@ -1,13 +1,13 @@ { "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../../dist/@zajsf/bootstrap4", + "dest": "../../dist/@ng-formworks/material", "lib": { "entryFile": "src/public_api.ts" }, "assets": ["./assets"], "allowedNonPeerDependencies": [ "lodash-es", - "@zajsf/core", - "@zajsf/cssframework" + "@ng-formworks/core", + "@ng-formworks/cssframework" ] } \ No newline at end of file diff --git a/projects/zajsf-material/package.json b/projects/ng-formworks-material/package.json similarity index 61% rename from projects/zajsf-material/package.json rename to projects/ng-formworks-material/package.json index 32fba6d..cd01460 100644 --- a/projects/zajsf-material/package.json +++ b/projects/ng-formworks-material/package.json @@ -1,8 +1,8 @@ { - "name": "@zajsf/material", - "version": "17.2.5-alpha.2", - "description": "Angular JSON Schema Form builder using Angular Material UI", - "author": "https://github.com/zahmo/zajsf/graphs/contributors", + "name": "@ng-formworks/material", + "version": "17.2.6-alpha.0", + "description": "Angular ng-formworks - JSON Schema Form builder using Angular Material UI", + "author": "https://github.com/zahmo/ng-formworks/graphs/contributors", "keywords": [ "Angular", "ng", @@ -24,22 +24,22 @@ "angular material", "material design", "ajsf", - "zajsf", + "ng-formworks", "angular json schema form" ], "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/zahmo/zajsf" + "url": "git+https://github.com/zahmo/ng-formworks" }, "bugs": { - "url": "https://github.com/zahmo/zajsf/issues" + "url": "https://github.com/zahmo/ng-formworks/issues" }, "private": false, "dependencies": { "lodash-es": "~4.17.21", - "@zajsf/core": "~17.2.5-alpha.2", - "@zajsf/cssframework": "~17.2.5-alpha.2", + "@ng-formworks/core": "~17.2.6-alpha.0", + "@ng-formworks/cssframework": "~17.2.6-alpha.0", "tslib": "^2.0.0" }, "peerDependencies": { diff --git a/projects/zajsf-material/src/lib/flexlayout-replacement-styles.scss b/projects/ng-formworks-material/src/lib/flexlayout-replacement-styles.scss similarity index 100% rename from projects/zajsf-material/src/lib/flexlayout-replacement-styles.scss rename to projects/ng-formworks-material/src/lib/flexlayout-replacement-styles.scss diff --git a/projects/zajsf-material/src/lib/material-design-cssframework.ts b/projects/ng-formworks-material/src/lib/material-design-cssframework.ts similarity index 100% rename from projects/zajsf-material/src/lib/material-design-cssframework.ts rename to projects/ng-formworks-material/src/lib/material-design-cssframework.ts diff --git a/projects/zajsf-material/src/lib/material-design-framework.component.html b/projects/ng-formworks-material/src/lib/material-design-framework.component.html similarity index 100% rename from projects/zajsf-material/src/lib/material-design-framework.component.html rename to projects/ng-formworks-material/src/lib/material-design-framework.component.html diff --git a/projects/zajsf-material/src/lib/material-design-framework.component.scss b/projects/ng-formworks-material/src/lib/material-design-framework.component.scss similarity index 100% rename from projects/zajsf-material/src/lib/material-design-framework.component.scss rename to projects/ng-formworks-material/src/lib/material-design-framework.component.scss diff --git a/projects/zajsf-material/src/lib/material-design-framework.component.spec.ts b/projects/ng-formworks-material/src/lib/material-design-framework.component.spec.ts similarity index 97% rename from projects/zajsf-material/src/lib/material-design-framework.component.spec.ts rename to projects/ng-formworks-material/src/lib/material-design-framework.component.spec.ts index 0cc6890..8cd8de7 100644 --- a/projects/zajsf-material/src/lib/material-design-framework.component.spec.ts +++ b/projects/ng-formworks-material/src/lib/material-design-framework.component.spec.ts @@ -4,7 +4,7 @@ import { JsonSchemaFormModule, JsonSchemaFormService, WidgetLibraryModule -} from '@zajsf/core'; +} from '@ng-formworks/core'; import { MaterialDesignFrameworkComponent } from './material-design-framework.component'; describe('FwBootstrap4Component', () => { diff --git a/projects/zajsf-material/src/lib/material-design-framework.component.ts b/projects/ng-formworks-material/src/lib/material-design-framework.component.ts similarity index 97% rename from projects/zajsf-material/src/lib/material-design-framework.component.ts rename to projects/ng-formworks-material/src/lib/material-design-framework.component.ts index ac1ac58..1bbaca6 100644 --- a/projects/zajsf-material/src/lib/material-design-framework.component.ts +++ b/projects/ng-formworks-material/src/lib/material-design-framework.component.ts @@ -1,6 +1,6 @@ import { ChangeDetectorRef, Component, Input, OnChanges, OnDestroy, OnInit } from '@angular/core'; -import { FrameworkLibraryService, JsonSchemaFormService, isDefined } from '@zajsf/core'; -import { CssframeworkService } from '@zajsf/cssframework'; +import { FrameworkLibraryService, JsonSchemaFormService, isDefined } from '@ng-formworks/core'; +import { CssframeworkService } from '@ng-formworks/cssframework'; import cloneDeep from 'lodash/cloneDeep'; import { Subscription } from 'rxjs'; import { cssFrameworkCfgMaterialDesign } from './material-design-cssframework'; diff --git a/projects/zajsf-material/src/lib/material-design-framework.module.ts b/projects/ng-formworks-material/src/lib/material-design-framework.module.ts similarity index 97% rename from projects/zajsf-material/src/lib/material-design-framework.module.ts rename to projects/ng-formworks-material/src/lib/material-design-framework.module.ts index 7062ed1..2955181 100644 --- a/projects/zajsf-material/src/lib/material-design-framework.module.ts +++ b/projects/ng-formworks-material/src/lib/material-design-framework.module.ts @@ -28,8 +28,8 @@ import { JsonSchemaFormModule, JsonSchemaFormService, WidgetLibraryModule, WidgetLibraryService -} from '@zajsf/core'; -import { CssFrameworkModule } from '@zajsf/cssframework'; +} from '@ng-formworks/core'; +import { CssFrameworkModule } from '@ng-formworks/cssframework'; import { MaterialDesignFramework } from './material-design.framework'; import { MATERIAL_FRAMEWORK_COMPONENTS } from './widgets/public_api'; diff --git a/projects/zajsf-material/src/lib/material-design-themes.scss b/projects/ng-formworks-material/src/lib/material-design-themes.scss similarity index 100% rename from projects/zajsf-material/src/lib/material-design-themes.scss rename to projects/ng-formworks-material/src/lib/material-design-themes.scss diff --git a/projects/zajsf-material/src/lib/material-design.framework.ts b/projects/ng-formworks-material/src/lib/material-design.framework.ts similarity index 96% rename from projects/zajsf-material/src/lib/material-design.framework.ts rename to projects/ng-formworks-material/src/lib/material-design.framework.ts index 4e61231..d64e204 100644 --- a/projects/zajsf-material/src/lib/material-design.framework.ts +++ b/projects/ng-formworks-material/src/lib/material-design.framework.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { CssFramework, CssframeworkService } from '@zajsf/cssframework'; +import { CssFramework, CssframeworkService } from '@ng-formworks/cssframework'; import { cssFrameworkCfgMaterialDesign } from './material-design-cssframework'; import { FlexLayoutRootComponent, diff --git a/projects/zajsf-material/src/lib/tailwind-output.scss b/projects/ng-formworks-material/src/lib/tailwind-output.scss similarity index 100% rename from projects/zajsf-material/src/lib/tailwind-output.scss rename to projects/ng-formworks-material/src/lib/tailwind-output.scss diff --git a/projects/zajsf-material/src/lib/widgets/flex-layout-root.component.html b/projects/ng-formworks-material/src/lib/widgets/flex-layout-root.component.html similarity index 100% rename from projects/zajsf-material/src/lib/widgets/flex-layout-root.component.html rename to projects/ng-formworks-material/src/lib/widgets/flex-layout-root.component.html diff --git a/projects/zajsf-material/src/lib/widgets/flex-layout-root.component.ts b/projects/ng-formworks-material/src/lib/widgets/flex-layout-root.component.ts similarity index 97% rename from projects/zajsf-material/src/lib/widgets/flex-layout-root.component.ts rename to projects/ng-formworks-material/src/lib/widgets/flex-layout-root.component.ts index 83715d5..acc0645 100644 --- a/projects/zajsf-material/src/lib/widgets/flex-layout-root.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/flex-layout-root.component.ts @@ -1,5 +1,5 @@ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; @Component({ diff --git a/projects/zajsf-material/src/lib/widgets/flex-layout-section.component.ts b/projects/ng-formworks-material/src/lib/widgets/flex-layout-section.component.ts similarity index 99% rename from projects/zajsf-material/src/lib/widgets/flex-layout-section.component.ts rename to projects/ng-formworks-material/src/lib/widgets/flex-layout-section.component.ts index d2b83e9..0c03a75 100644 --- a/projects/zajsf-material/src/lib/widgets/flex-layout-section.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/flex-layout-section.component.ts @@ -1,6 +1,6 @@ import { Component, Input, OnInit } from '@angular/core'; import { AbstractControl } from '@angular/forms'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; @Component({ // tslint:disable-next-line:component-selector diff --git a/projects/zajsf-material/src/lib/widgets/material-add-reference.component.ts b/projects/ng-formworks-material/src/lib/widgets/material-add-reference.component.ts similarity index 96% rename from projects/zajsf-material/src/lib/widgets/material-add-reference.component.ts rename to projects/ng-formworks-material/src/lib/widgets/material-add-reference.component.ts index ec62a4d..6a1e0ec 100644 --- a/projects/zajsf-material/src/lib/widgets/material-add-reference.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/material-add-reference.component.ts @@ -1,5 +1,5 @@ import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; @Component({ diff --git a/projects/zajsf-material/src/lib/widgets/material-button-group.component.ts b/projects/ng-formworks-material/src/lib/widgets/material-button-group.component.ts similarity index 96% rename from projects/zajsf-material/src/lib/widgets/material-button-group.component.ts rename to projects/ng-formworks-material/src/lib/widgets/material-button-group.component.ts index c842dad..2ae64e3 100644 --- a/projects/zajsf-material/src/lib/widgets/material-button-group.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/material-button-group.component.ts @@ -1,6 +1,6 @@ import { Component, Input, OnInit } from '@angular/core'; import { AbstractControl } from '@angular/forms'; -import { JsonSchemaFormService, buildTitleMap } from '@zajsf/core'; +import { JsonSchemaFormService, buildTitleMap } from '@ng-formworks/core'; @Component({ diff --git a/projects/zajsf-material/src/lib/widgets/material-button.component.ts b/projects/ng-formworks-material/src/lib/widgets/material-button.component.ts similarity index 96% rename from projects/zajsf-material/src/lib/widgets/material-button.component.ts rename to projects/ng-formworks-material/src/lib/widgets/material-button.component.ts index aa3dc22..5e62ab3 100644 --- a/projects/zajsf-material/src/lib/widgets/material-button.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/material-button.component.ts @@ -1,6 +1,6 @@ import { Component, Input, OnDestroy, OnInit } from '@angular/core'; import { AbstractControl } from '@angular/forms'; -import { JsonSchemaFormService, hasOwn } from '@zajsf/core'; +import { JsonSchemaFormService, hasOwn } from '@ng-formworks/core'; import { Subscription } from 'rxjs'; @Component({ diff --git a/projects/zajsf-material/src/lib/widgets/material-checkbox.component.ts b/projects/ng-formworks-material/src/lib/widgets/material-checkbox.component.ts similarity index 98% rename from projects/zajsf-material/src/lib/widgets/material-checkbox.component.ts rename to projects/ng-formworks-material/src/lib/widgets/material-checkbox.component.ts index 35aac5e..7d3ea60 100644 --- a/projects/zajsf-material/src/lib/widgets/material-checkbox.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/material-checkbox.component.ts @@ -1,6 +1,6 @@ import { Component, Input, OnInit } from '@angular/core'; import { AbstractControl } from '@angular/forms'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; @Component({ // tslint:disable-next-line:component-selector diff --git a/projects/zajsf-material/src/lib/widgets/material-checkboxes.component.ts b/projects/ng-formworks-material/src/lib/widgets/material-checkboxes.component.ts similarity index 99% rename from projects/zajsf-material/src/lib/widgets/material-checkboxes.component.ts rename to projects/ng-formworks-material/src/lib/widgets/material-checkboxes.component.ts index c26ecfc..513c51c 100644 --- a/projects/zajsf-material/src/lib/widgets/material-checkboxes.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/material-checkboxes.component.ts @@ -1,6 +1,6 @@ import { Component, Input, OnInit } from '@angular/core'; import { AbstractControl } from '@angular/forms'; -import { JsonSchemaFormService, TitleMapItem, buildTitleMap } from '@zajsf/core'; +import { JsonSchemaFormService, TitleMapItem, buildTitleMap } from '@ng-formworks/core'; // TODO: Change this to use a Selection List instead? // https://material.angular.io/components/list/overview diff --git a/projects/zajsf-material/src/lib/widgets/material-chip-list.component.ts b/projects/ng-formworks-material/src/lib/widgets/material-chip-list.component.ts similarity index 93% rename from projects/zajsf-material/src/lib/widgets/material-chip-list.component.ts rename to projects/ng-formworks-material/src/lib/widgets/material-chip-list.component.ts index f6608e2..d4644b4 100644 --- a/projects/zajsf-material/src/lib/widgets/material-chip-list.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/material-chip-list.component.ts @@ -1,6 +1,6 @@ import { Component, Input, OnInit } from '@angular/core'; import { AbstractControl } from '@angular/forms'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; // TODO: Add this control diff --git a/projects/zajsf-material/src/lib/widgets/material-datepicker.component.ts b/projects/ng-formworks-material/src/lib/widgets/material-datepicker.component.ts similarity index 98% rename from projects/zajsf-material/src/lib/widgets/material-datepicker.component.ts rename to projects/ng-formworks-material/src/lib/widgets/material-datepicker.component.ts index ffc3466..ede0a3f 100644 --- a/projects/zajsf-material/src/lib/widgets/material-datepicker.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/material-datepicker.component.ts @@ -1,7 +1,7 @@ import { Component, Inject, Input, OnInit, Optional } from '@angular/core'; import { AbstractControl } from '@angular/forms'; import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; @Component({ // tslint:disable-next-line:component-selector diff --git a/projects/zajsf-material/src/lib/widgets/material-file.component.ts b/projects/ng-formworks-material/src/lib/widgets/material-file.component.ts similarity index 93% rename from projects/zajsf-material/src/lib/widgets/material-file.component.ts rename to projects/ng-formworks-material/src/lib/widgets/material-file.component.ts index 215bd3a..e2bd329 100644 --- a/projects/zajsf-material/src/lib/widgets/material-file.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/material-file.component.ts @@ -1,6 +1,6 @@ import { Component, Input, OnInit } from '@angular/core'; import { AbstractControl } from '@angular/forms'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; // TODO: Add this control diff --git a/projects/zajsf-material/src/lib/widgets/material-input.component.ts b/projects/ng-formworks-material/src/lib/widgets/material-input.component.ts similarity index 98% rename from projects/zajsf-material/src/lib/widgets/material-input.component.ts rename to projects/ng-formworks-material/src/lib/widgets/material-input.component.ts index ea73323..7e257d4 100644 --- a/projects/zajsf-material/src/lib/widgets/material-input.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/material-input.component.ts @@ -1,7 +1,7 @@ import { Component, Inject, Input, OnInit, Optional } from '@angular/core'; import { AbstractControl } from '@angular/forms'; import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; @Component({ // tslint:disable-next-line:component-selector diff --git a/projects/zajsf-material/src/lib/widgets/material-number.component.ts b/projects/ng-formworks-material/src/lib/widgets/material-number.component.ts similarity index 98% rename from projects/zajsf-material/src/lib/widgets/material-number.component.ts rename to projects/ng-formworks-material/src/lib/widgets/material-number.component.ts index bb92390..6099708 100644 --- a/projects/zajsf-material/src/lib/widgets/material-number.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/material-number.component.ts @@ -1,7 +1,7 @@ import { Component, Inject, Input, OnInit, Optional } from '@angular/core'; import { AbstractControl } from '@angular/forms'; import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; @Component({ // tslint:disable-next-line:component-selector diff --git a/projects/zajsf-material/src/lib/widgets/material-one-of.component.ts b/projects/ng-formworks-material/src/lib/widgets/material-one-of.component.ts similarity index 93% rename from projects/zajsf-material/src/lib/widgets/material-one-of.component.ts rename to projects/ng-formworks-material/src/lib/widgets/material-one-of.component.ts index 3d41543..4693899 100644 --- a/projects/zajsf-material/src/lib/widgets/material-one-of.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/material-one-of.component.ts @@ -1,6 +1,6 @@ import { Component, Input, OnInit } from '@angular/core'; import { AbstractControl } from '@angular/forms'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; // TODO: Add this control diff --git a/projects/zajsf-material/src/lib/widgets/material-radios.component.ts b/projects/ng-formworks-material/src/lib/widgets/material-radios.component.ts similarity index 97% rename from projects/zajsf-material/src/lib/widgets/material-radios.component.ts rename to projects/ng-formworks-material/src/lib/widgets/material-radios.component.ts index 32a708c..495a5d8 100644 --- a/projects/zajsf-material/src/lib/widgets/material-radios.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/material-radios.component.ts @@ -1,6 +1,6 @@ import { Component, Input, OnInit } from '@angular/core'; import { AbstractControl } from '@angular/forms'; -import { JsonSchemaFormService, buildTitleMap } from '@zajsf/core'; +import { JsonSchemaFormService, buildTitleMap } from '@ng-formworks/core'; @Component({ diff --git a/projects/zajsf-material/src/lib/widgets/material-select.component.ts b/projects/ng-formworks-material/src/lib/widgets/material-select.component.ts similarity index 99% rename from projects/zajsf-material/src/lib/widgets/material-select.component.ts rename to projects/ng-formworks-material/src/lib/widgets/material-select.component.ts index 0b0aba8..bbdc759 100644 --- a/projects/zajsf-material/src/lib/widgets/material-select.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/material-select.component.ts @@ -1,7 +1,7 @@ import { Component, Inject, Input, OnInit, Optional } from '@angular/core'; import { AbstractControl } from '@angular/forms'; import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field'; -import { JsonSchemaFormService, buildTitleMap, isArray } from '@zajsf/core'; +import { JsonSchemaFormService, buildTitleMap, isArray } from '@ng-formworks/core'; @Component({ // tslint:disable-next-line:component-selector diff --git a/projects/zajsf-material/src/lib/widgets/material-slider.component.ts b/projects/ng-formworks-material/src/lib/widgets/material-slider.component.ts similarity index 97% rename from projects/zajsf-material/src/lib/widgets/material-slider.component.ts rename to projects/ng-formworks-material/src/lib/widgets/material-slider.component.ts index 90e87ea..586e535 100644 --- a/projects/zajsf-material/src/lib/widgets/material-slider.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/material-slider.component.ts @@ -1,6 +1,6 @@ import { Component, Input, OnInit } from '@angular/core'; import { AbstractControl } from '@angular/forms'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; @Component({ // tslint:disable-next-line:component-selector diff --git a/projects/zajsf-material/src/lib/widgets/material-stepper.component.ts b/projects/ng-formworks-material/src/lib/widgets/material-stepper.component.ts similarity index 93% rename from projects/zajsf-material/src/lib/widgets/material-stepper.component.ts rename to projects/ng-formworks-material/src/lib/widgets/material-stepper.component.ts index 8a4c390..3a6379f 100644 --- a/projects/zajsf-material/src/lib/widgets/material-stepper.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/material-stepper.component.ts @@ -1,6 +1,6 @@ import { Component, Input, OnInit } from '@angular/core'; import { AbstractControl } from '@angular/forms'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; // TODO: Add this control diff --git a/projects/zajsf-material/src/lib/widgets/material-tabs.component.ts b/projects/ng-formworks-material/src/lib/widgets/material-tabs.component.ts similarity index 97% rename from projects/zajsf-material/src/lib/widgets/material-tabs.component.ts rename to projects/ng-formworks-material/src/lib/widgets/material-tabs.component.ts index 666606b..182ad55 100644 --- a/projects/zajsf-material/src/lib/widgets/material-tabs.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/material-tabs.component.ts @@ -1,5 +1,5 @@ import { Component, Input, OnInit } from '@angular/core'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; @Component({ // tslint:disable-next-line:component-selector diff --git a/projects/zajsf-material/src/lib/widgets/material-textarea.component.ts b/projects/ng-formworks-material/src/lib/widgets/material-textarea.component.ts similarity index 98% rename from projects/zajsf-material/src/lib/widgets/material-textarea.component.ts rename to projects/ng-formworks-material/src/lib/widgets/material-textarea.component.ts index f72ba77..a7ce7db 100644 --- a/projects/zajsf-material/src/lib/widgets/material-textarea.component.ts +++ b/projects/ng-formworks-material/src/lib/widgets/material-textarea.component.ts @@ -1,7 +1,7 @@ import { Component, Inject, Input, OnInit, Optional } from '@angular/core'; import { AbstractControl } from '@angular/forms'; import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field'; -import { JsonSchemaFormService } from '@zajsf/core'; +import { JsonSchemaFormService } from '@ng-formworks/core'; @Component({ // tslint:disable-next-line:component-selector diff --git a/projects/zajsf-material/src/lib/widgets/public_api.ts b/projects/ng-formworks-material/src/lib/widgets/public_api.ts similarity index 100% rename from projects/zajsf-material/src/lib/widgets/public_api.ts rename to projects/ng-formworks-material/src/lib/widgets/public_api.ts diff --git a/projects/zajsf-material/src/public_api.ts b/projects/ng-formworks-material/src/public_api.ts similarity index 78% rename from projects/zajsf-material/src/public_api.ts rename to projects/ng-formworks-material/src/public_api.ts index a5af190..e8e5699 100644 --- a/projects/zajsf-material/src/public_api.ts +++ b/projects/ng-formworks-material/src/public_api.ts @@ -1,5 +1,5 @@ /* - * Public API Surface of @zajsf/material-framework + * Public API Surface of @ng-formworks/material-framework */ export * from './lib/material-design-framework.component'; diff --git a/projects/zajsf-material/src/test.ts b/projects/ng-formworks-material/src/test.ts similarity index 100% rename from projects/zajsf-material/src/test.ts rename to projects/ng-formworks-material/src/test.ts diff --git a/projects/zajsf-material/tailwind-input.css b/projects/ng-formworks-material/tailwind-input.css similarity index 100% rename from projects/zajsf-material/tailwind-input.css rename to projects/ng-formworks-material/tailwind-input.css diff --git a/projects/zajsf-material/tailwind.config.js b/projects/ng-formworks-material/tailwind.config.js similarity index 79% rename from projects/zajsf-material/tailwind.config.js rename to projects/ng-formworks-material/tailwind.config.js index 7bba316..a7587af 100644 --- a/projects/zajsf-material/tailwind.config.js +++ b/projects/ng-formworks-material/tailwind.config.js @@ -3,7 +3,7 @@ module.exports = { content: [ "./src/**/*.{html,ts}", - "./projects/zajsf-material/**/*.{html,ts}" + "./projects/ng-formworks-material/**/*.{html,ts}" ], theme: { extend: {}, diff --git a/projects/zajsf-material/tsconfig.lib.json b/projects/ng-formworks-material/tsconfig.lib.json similarity index 100% rename from projects/zajsf-material/tsconfig.lib.json rename to projects/ng-formworks-material/tsconfig.lib.json diff --git a/projects/zajsf-material/tsconfig.lib.prod.json b/projects/ng-formworks-material/tsconfig.lib.prod.json similarity index 100% rename from projects/zajsf-material/tsconfig.lib.prod.json rename to projects/ng-formworks-material/tsconfig.lib.prod.json diff --git a/projects/zajsf-material/tsconfig.spec.json b/projects/ng-formworks-material/tsconfig.spec.json similarity index 100% rename from projects/zajsf-material/tsconfig.spec.json rename to projects/ng-formworks-material/tsconfig.spec.json diff --git a/projects/zajsf-material/tslint.json b/projects/ng-formworks-material/tslint.json similarity index 100% rename from projects/zajsf-material/tslint.json rename to projects/ng-formworks-material/tslint.json diff --git a/projects/zajsf-cssframework/README.md b/projects/zajsf-cssframework/README.md deleted file mode 100644 index 886fc08..0000000 --- a/projects/zajsf-cssframework/README.md +++ /dev/null @@ -1,28 +0,0 @@ -# @zajsf/cssframework - -This module is a dependency of the [zajsf project][npm_core_ver] and not intended to be consumed independently see [@zajsf/core][npm_core_ver] for more details. -Below is information regarding the development tasks and not related to the module's installation, it should automatically be installed when a framework module is installed. - -## Code scaffolding - -Run `ng generate component component-name --project @zajsf/cssframework` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project @zajsf/cssframework`. -> Note: Don't forget to add `--project @zajsf/cssframework` or else it will be added to the default project in your `angular.json` file. - -## Build - -Run `ng build @zajsf/cssframework` to build the project. The build artifacts will be stored in the `dist/` directory. - -## Publishing - -After building your library with `ng build @zajsf/cssframework`, go to the dist folder `cd dist/@zajsf/cssframework` and run `npm publish`. - -## Running unit tests - -Run `ng test @zajsf/cssframework` to execute the unit tests via [Karma](https://karma-runner.github.io). - -## Further help - -To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page. - - -[npm_core_ver]:https://www.npmjs.com/package/@zajsf/core \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 2738e60..ee46aa9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -28,47 +28,47 @@ "lodash/*": [ "node_modules/@types/lodash-es/*" ], - "@zajsf/core": [ - "dist/@zajsf/core" + "@ng-formworks/core": [ + "dist/@ng-formworks/core" ], - "@zajsf/core/*": [ - "dist/@zajsf/core/*" + "@ng-formworks/core/*": [ + "dist/@ng-formworks/core/*" ], - "@zajsf/bootstrap3": [ - "dist/@zajsf/bootstrap3" + "@ng-formworks/bootstrap3": [ + "dist/@ng-formworks/bootstrap3" ], - "@zajsf/bootstrap3/*": [ - "dist/@zajsf/bootstrap3/*" + "@ng-formworks/bootstrap3/*": [ + "dist/@ng-formworks/bootstrap3/*" ], - "@zajsf/bootstrap4": [ - "dist/@zajsf/bootstrap4" + "@ng-formworks/bootstrap4": [ + "dist/@ng-formworks/bootstrap4" ], - "@zajsf/bootstrap4/*": [ - "dist/@zajsf/bootstrap4/*" + "@ng-formworks/bootstrap4/*": [ + "dist/@ng-formworks/bootstrap4/*" ], - "@zajsf/bootstrap5": [ - "dist/@zajsf/bootstrap5" + "@ng-formworks/bootstrap5": [ + "dist/@ng-formworks/bootstrap5" ], - "@zajsf/bootstrap5/*": [ - "dist/@zajsf/bootstrap5/*" + "@ng-formworks/bootstrap5/*": [ + "dist/@ng-formworks/bootstrap5/*" ], - "@zajsf/material": [ - "dist/@zajsf/material" + "@ng-formworks/material": [ + "dist/@ng-formworks/material" ], - "@zajsf/material/*": [ - "dist/@zajsf/material/*" + "@ng-formworks/material/*": [ + "dist/@ng-formworks/material/*" ], - "@zajsf/daisyui": [ - "dist/@zajsf/daisyui" + "@ng-formworks/daisyui": [ + "dist/@ng-formworks/daisyui" ], - "@zajsf/daisyui/*": [ - "dist/@zajsf/daisyui/*" + "@ng-formworks/daisyui/*": [ + "dist/@ng-formworks/daisyui/*" ], - "@zajsf/cssframework": [ - "dist/@zajsf/cssframework" + "@ng-formworks/cssframework": [ + "dist/@ng-formworks/cssframework" ], - "@zajsf/cssframework/*": [ - "dist/@zajsf/cssframework/*" + "@ng-formworks/cssframework/*": [ + "dist/@ng-formworks/cssframework/*" ] }, "useDefineForClassFields": false