From 3a498b51bee589475f7c5dcb1910508ce8eb3c59 Mon Sep 17 00:00:00 2001 From: Zurab Developer <75216044+ZurabDev@users.noreply.github.com> Date: Thu, 3 Oct 2024 14:13:00 +0300 Subject: [PATCH 01/18] feat(chore): up versions #0 --- .../prepare_release_for_5.md | 2 +- .../src/app/version-manager/current.const.ts | 2 +- .../app/version-manager/versions.constants.ts | 21 +++++++++---------- libs/ast/package.json | 2 +- libs/charts/base/package.json | 6 +++--- libs/components/package.json | 19 ++++++++--------- libs/core/package.json | 2 +- libs/helpers/package.json | 2 +- libs/i18n/package.json | 2 +- libs/icons/base/package.json | 4 ++-- libs/icons/flags/package.json | 4 ++-- libs/icons/loader/package.json | 4 ++-- libs/nxmv/package.json | 8 +++---- libs/plugin/package.json | 4 ++-- libs/schematics/package.json | 2 +- libs/theme/package.json | 6 +++--- local/package.json | 2 +- package-lock.json | 2 +- package.json | 2 +- 19 files changed, 47 insertions(+), 49 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE/prepare_release_for_5.md b/.github/PULL_REQUEST_TEMPLATE/prepare_release_for_5.md index 075246057f..f102b60086 100644 --- a/.github/PULL_REQUEST_TEMPLATE/prepare_release_for_5.md +++ b/.github/PULL_REQUEST_TEMPLATE/prepare_release_for_5.md @@ -26,7 +26,7 @@ - [ ] Изменить версии в соответствующем массиве на ветке V4 - apps/doc/src/app/version-manager/versions.constants.ts -- [ ] Изменить version на текущий в файле nxmv.json и запустив команду `npx nx generate nx-mv:apply -n v18 --var-version 5.0.0` важно передавать --var-version нужную версию +- [ ] Изменить version на текущий в файле nxmv.json и запустив команду `npx nx generate nx-mv:apply -n v18 --var-version 5.2.0` важно передавать --var-version нужную версию - [ ] Добавить в каждый тип ваши изменения в этом PR - [ ] Удалите не нужные группы изменений для этого PR (Features, Bug Fixes, Breacking Changes, Refactor) - [ ] Добавить изменения в changelog о новой версии diff --git a/apps/doc/src/app/version-manager/current.const.ts b/apps/doc/src/app/version-manager/current.const.ts index 8ce6069155..d698108ea2 100644 --- a/apps/doc/src/app/version-manager/current.const.ts +++ b/apps/doc/src/app/version-manager/current.const.ts @@ -1 +1 @@ -export const PRIZM_CURRENT_VERSION = '5.0.0'; +export const PRIZM_CURRENT_VERSION = '5.1.0'; diff --git a/apps/doc/src/app/version-manager/versions.constants.ts b/apps/doc/src/app/version-manager/versions.constants.ts index f7698300fd..6e227e3802 100644 --- a/apps/doc/src/app/version-manager/versions.constants.ts +++ b/apps/doc/src/app/version-manager/versions.constants.ts @@ -39,19 +39,18 @@ export const PRIZM_VERSIONS_META: readonly PrizmVersionMeta[] = [ }, }, { - label: '4.3.8 (ng17)', - version: '4.3.8', + label: '4.3.7 (ng17)', + version: '4.3.7', stackblitz: 'https://stackblitz.com/edit/prizm-v4-demo', - link: getDocSite.bind(null, 'https://doc.prizm.zyfra.com', 'http://prizm.site'), - - otherLinks: [new URL('https://prizm-v4.web.app')], + link: getDocSite.bind(null, 'http://4.3.7.doc.prizm.site', 'https://prizm-v4.web.app'), + otherLinks: [], cb: (hostName: string, current: PrizmVersionMeta) => { return hostName.startsWith('prizm-v4--'); }, }, { - label: '3.15.1 (ng16)', - version: '3.15.1', + label: '3.15.0 (ng16)', + version: '3.15.0', stackblitz: 'https://stackblitz.com/edit/prizm-v3-demo', link: getDocSite.bind(null, 'http://3.14.0.doc.prizm.site', 'https://prizm-v3.web.app'), otherLinks: [], @@ -60,8 +59,8 @@ export const PRIZM_VERSIONS_META: readonly PrizmVersionMeta[] = [ }, }, { - label: '2.16.1 (ng15)', - version: '2.16.1', + label: '2.16.0 (ng15)', + version: '2.16.0', stackblitz: 'https://stackblitz.com/edit/prizm-v2-demo', link: getDocSite.bind(null, 'http://2.15.0.doc.prizm.site', 'https://prizm-v2.web.app'), otherLinks: [], @@ -70,8 +69,8 @@ export const PRIZM_VERSIONS_META: readonly PrizmVersionMeta[] = [ }, }, { - label: '1.19.1 (ng14)', - version: '1.19.1', + label: '1.19.0 (ng14)', + version: '1.19.0', stackblitz: 'https://stackblitz.com/edit/prizm-v1-demo', link: getDocSite.bind(null, 'http://1.18.0.doc.prizm.site', 'https://prizm-v1.web.app'), otherLinks: [], diff --git a/libs/ast/package.json b/libs/ast/package.json index ed21bd9b9a..842c10309d 100644 --- a/libs/ast/package.json +++ b/libs/ast/package.json @@ -1,6 +1,6 @@ { "name": "@prizm-ui/ast", - "version": "5.0.0", + "version": "5.1.0", "private": false, "publishConfig": { "access": "public", diff --git a/libs/charts/base/package.json b/libs/charts/base/package.json index 0609b67e3d..e77a6e7682 100644 --- a/libs/charts/base/package.json +++ b/libs/charts/base/package.json @@ -1,6 +1,6 @@ { "name": "@prizm-ui/charts", - "version": "5.0.0", + "version": "5.1.0", "license": "MIT", "private": false, "publishConfig": { @@ -10,8 +10,8 @@ "peerDependencies": { "@angular/common": "^18.1.3", "@angular/core": "^18.1.3", - "@prizm-ui/theme": "^5.0.0", - "@prizm-ui/helpers": "^5.0.0" + "@prizm-ui/theme": "^5.1.0", + "@prizm-ui/helpers": "^5.1.0" }, "dependencies": { "tslib": "^2.3.0", diff --git a/libs/components/package.json b/libs/components/package.json index 10c7f29da2..fadf01c583 100644 --- a/libs/components/package.json +++ b/libs/components/package.json @@ -1,6 +1,6 @@ { "name": "@prizm-ui/components", - "version": "4.3.8", + "version": "5.1.0", "description": "Prizm UI system design components library http://prizm.zyfra.com", "license": "MIT", "private": false, @@ -9,17 +9,16 @@ "registry": "https://registry.npmjs.org/" }, "peerDependencies": { - "@angular/common": "^17.1.0", - "@angular/core": "^17.1.0", - "@angular/cdk": "^17.1.0", - "@prizm-ui/helpers": "^4.3.8", - "@prizm-ui/core": "^4.3.8", - "@prizm-ui/i18n": "^4.3.8", - "@prizm-ui/theme": "^4.3.8", - "@prizm-ui/icons": "^4.3.8" + "@angular/common": "^18.1.3", + "@angular/core": "^18.1.3", + "@angular/cdk": "^18.1.3", + "@prizm-ui/helpers": "^5.1.0", + "@prizm-ui/core": "^5.1.0", + "@prizm-ui/i18n": "^5.1.0", + "@prizm-ui/theme": "^5.1.0" }, "dependencies": { - "tslib": "^2.4.0", + "tslib": "^2.3.0", "ngx-mask": "17.0.4", "@ng-web-apis/common": "^3.0.0", "@ng-web-apis/resize-observer": "^3.0.0", diff --git a/libs/core/package.json b/libs/core/package.json index 19dc6afe81..b46eb629de 100644 --- a/libs/core/package.json +++ b/libs/core/package.json @@ -1,6 +1,6 @@ { "name": "@prizm-ui/core", - "version": "5.0.0", + "version": "5.1.0", "license": "MIT", "description": "The main library for creating Angular components and elements using Prizm.", "private": false, diff --git a/libs/helpers/package.json b/libs/helpers/package.json index 96b51d6720..81783a7226 100644 --- a/libs/helpers/package.json +++ b/libs/helpers/package.json @@ -1,6 +1,6 @@ { "name": "@prizm-ui/helpers", - "version": "5.0.0", + "version": "5.1.0", "license": "MIT", "description": "Library to make it easy to create Angular applications. Contains Injectables Service, RxJS utilities, directives, and standard pipes.", "private": false, diff --git a/libs/i18n/package.json b/libs/i18n/package.json index bc21d08e83..23a7b124e0 100644 --- a/libs/i18n/package.json +++ b/libs/i18n/package.json @@ -1,6 +1,6 @@ { "name": "@prizm-ui/i18n", - "version": "5.0.0", + "version": "5.1.0", "peerDependencies": { "@angular/common": "^18.1.3", "@angular/core": "^18.1.3" diff --git a/libs/icons/base/package.json b/libs/icons/base/package.json index b0b5f11aaa..6f1c22e0bd 100644 --- a/libs/icons/base/package.json +++ b/libs/icons/base/package.json @@ -1,6 +1,6 @@ { "name": "@prizm-ui/icons", - "version": "5.0.0", + "version": "5.1.0", "description": "Prizm UI base icon pack library http://prizm.zyfra.com", "private": false, "publishConfig": { @@ -10,7 +10,7 @@ "peerDependencies": { "@angular/common": "^18.1.3", "@angular/core": "^18.1.3", - "@prizm-ui/core": "^5.0.0" + "@prizm-ui/core": "^5.1.0" }, "dependencies": { "tslib": "^2.3.0" diff --git a/libs/icons/flags/package.json b/libs/icons/flags/package.json index f20750b80c..f45a458c27 100644 --- a/libs/icons/flags/package.json +++ b/libs/icons/flags/package.json @@ -1,6 +1,6 @@ { "name": "@prizm-ui/flag-icons", - "version": "5.0.0", + "version": "5.1.0", "description": "Prizm UI flags icon pack library http://prizm.zyfra.com", "private": false, "publishConfig": { @@ -10,7 +10,7 @@ "peerDependencies": { "@angular/common": "^18.1.3", "@angular/core": "^18.1.3", - "@prizm-ui/core": "^5.0.0" + "@prizm-ui/core": "^5.1.0" }, "dependencies": { "tslib": "^2.3.0" diff --git a/libs/icons/loader/package.json b/libs/icons/loader/package.json index 3636b6ba5b..baf21b131e 100644 --- a/libs/icons/loader/package.json +++ b/libs/icons/loader/package.json @@ -1,6 +1,6 @@ { "name": "@prizm-ui/icons-loader", - "version": "5.0.0", + "version": "5.1.0", "private": false, "publishConfig": { "access": "public", @@ -9,7 +9,7 @@ "peerDependencies": { "@angular/common": "^18.1.3", "@angular/core": "^18.1.3", - "@prizm-ui/icons": "^5.0.0" + "@prizm-ui/icons": "^5.1.0" }, "dependencies": { "tslib": "^2.3.0" diff --git a/libs/nxmv/package.json b/libs/nxmv/package.json index d4fc0b8a92..0f66cee114 100644 --- a/libs/nxmv/package.json +++ b/libs/nxmv/package.json @@ -1,18 +1,18 @@ { "name": "@prizm-ui/nx-mv", - "version": "5.0.0", + "version": "5.1.0", "main": "src/index.js", "private": false, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }, + "generators": "./generators.json", + "executors": "./executors.json", "dependencies": { "tslib": "^2.3.0" }, "devDependencies": { "ejs": "^3.1.10" - }, - "generators": "./generators.json", - "executors": "./executors.json" + } } diff --git a/libs/plugin/package.json b/libs/plugin/package.json index 965cb2c9ad..7e2f211b71 100644 --- a/libs/plugin/package.json +++ b/libs/plugin/package.json @@ -1,6 +1,6 @@ { "name": "@prizm-ui/nx-plugin", - "version": "5.0.0", + "version": "5.1.0", "main": "src/index.js", "private": false, "publishConfig": { @@ -10,6 +10,6 @@ "generators": "./generators.json", "executors": "./executors.json", "peerDependencies": { - "@prizm-ui/ast": "^5.0.0" + "@prizm-ui/ast": "^5.1.0" } } diff --git a/libs/schematics/package.json b/libs/schematics/package.json index cd59c3f90e..0991931805 100644 --- a/libs/schematics/package.json +++ b/libs/schematics/package.json @@ -1,6 +1,6 @@ { "name": "@prizm-ui/install", - "version": "5.0.0", + "version": "5.1.0", "description": "Package installer @prizm-ui/* , Angular schematic ng-add", "schematics": "./src/collection.json", "private": false, diff --git a/libs/theme/package.json b/libs/theme/package.json index d6b5dea207..94cabf0746 100644 --- a/libs/theme/package.json +++ b/libs/theme/package.json @@ -1,11 +1,11 @@ { "name": "@prizm-ui/theme", - "version": "5.0.0", + "version": "5.1.0", "peerDependencies": { "@angular/common": "^18.1.3", "@angular/core": "^18.1.3", - "@prizm-ui/core": "^5.0.0", - "@prizm-ui/helpers": "^5.0.0" + "@prizm-ui/core": "^5.1.0", + "@prizm-ui/helpers": "^5.1.0" }, "dependencies": { "tslib": "^2.3.0" diff --git a/local/package.json b/local/package.json index 2364a630f9..6ba7d880e5 100644 --- a/local/package.json +++ b/local/package.json @@ -1,6 +1,6 @@ { "name": "@prizm-ui/local", - "version": "5.0.0", + "version": "5.1.0", "dependencies": { "@nx/devkit": "19.5.6", "tslib": "^2.3.0" diff --git a/package-lock.json b/package-lock.json index b06ef745ed..ad5c8c28e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@prizm-ui/sdk", - "version": "5.0.0", + "version": "5.1.0", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 03360ff7bb..e07bf1c02b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@prizm-ui/sdk", - "version": "5.0.0", + "version": "5.1.0", "license": "MIT", "husky": { "hooks": { From d4bb5648199c547d271c8794065a1a8b87f52c76 Mon Sep 17 00:00:00 2001 From: ickisIckis Date: Tue, 8 Oct 2024 12:18:34 +0300 Subject: [PATCH 02/18] fix(doc/changelog): add missing changelog for 5.0 #2083 --- .../app/about-prizm/changelog/CHANGELOG.md | 193 ++++++++++++++++++ 1 file changed, 193 insertions(+) diff --git a/apps/doc/src/app/about-prizm/changelog/CHANGELOG.md b/apps/doc/src/app/about-prizm/changelog/CHANGELOG.md index b0b0ba990b..60a21750f2 100644 --- a/apps/doc/src/app/about-prizm/changelog/CHANGELOG.md +++ b/apps/doc/src/app/about-prizm/changelog/CHANGELOG.md @@ -2,6 +2,199 @@ All notable changes to this project will be documented in this file. +## [5.0.0](https://github.com/zyfra/Prizm) (22-08-2024) + +### Features + +feat(components): remove deprecated function prizmCreateDateMask BREACKING CHANGE +feat(components): remove deprecated exports #1849 +feat(components): remove deprecated exports with spelling mistakes: PrizmSelectValueTransformver, GridItemComponent, GridComponent, IndicatorComponent, SwitcherItemComponent, CallFuncPipe, ToTypePipe #1849 BREACKING CHANGE + +### Bug fixes + +fix(components/chips): fix spelling error in css variable name for --prizm-chips-item-height BREACKING CHANGE + +### [Demo Stand](https://prizm-v5.web.app/) + +### Release Notes - Major Update for Prizm Libraries to 5.0.0 + +To allow for early use and feedback, we have released **5.0.0-rc.1** as a release candidate. + +_We are excited to announce a major update for Prizm libraries! This release includes a significant number of changes, including the removal of deprecated modules and functions, as well as the introduction of standalone components and directives._ + +--- + +### Angular Support Update + +With this major release, we are officially supporting Angular from 18.1.3. This version is the latest stable release at the time of our update and includes valuable new features such as the @let syntax and many more improvements. Please note that we will not be able to use new Angular updates for the next two years, so we encourage you to align your projects with this version to take advantage of its enhancements. + +Certainly! Here’s a draft for your release notes in English: + +--- + +### Need migrate from removed component PrizmIconsSvgComponent + +**Component Library Update: Removal of PrizmIconsSvgComponent** + +We have officially removed the deprecated `PrizmIconsSvgComponent` from our PRIZM component library. + +To replace it, please use the current components: + +- `PrizmIconsComponent` +- `PrizmIconsFullComponent` + +As the icon names have changed, we have created a convenient migration guide, which you can find on our [migration page](https://prizm-v5.web.app/components/icon#migrate). + +For an easy transition, utilize our name conversion function: `prizmIconsProvideOldSvgNameTransformer`. + +Feel free to adjust any parts as needed! + +--- + +### New Feature: Enhanced File Update Tool @prizm-ui/nx-mv:apply + +We are excited to announce the release of an enhanced version of our file update tool, `@prizm-ui/nx-mv:apply`, starting from version 5.0.0. + +**Key Updates:** + +- **File and Folder Extension Handling:** The tool now supports updating files and folders based on specific extensions defined in the configuration file (`extFile` for files and `extFolder` for folders). +- **Dynamic Content Rendering:** Enhanced support for EJS templating in files, allowing for dynamic content generation based on provided variables and constants. +- **Selective Project Updates:** New configuration options for selectively updating projects or applying changes across all projects in the workspace. +- **Root Directory Changes:** Ability to apply changes to files in the root directory of the project. +- **File Removal:** Support for removing specified files before applying updates. +- **Ignore File Handling:** Improved handling of files and directories to be ignored during the update process via the `nxmv.ignore` file. +- **Command Line Variables:** The tool now accepts variables from the terminal command with the `--var-` prefix, allowing for dynamic usage in templates. + +**Example Command:** + +``` +npx nx generate @prizm-ui/nx-mv:apply -n v18 --var-version 5.0.0 +``` + +For more detailed information and examples, please visit our documentation page at https://prizm-v5.web.app/tools/nxmv. + +Upgrade to version 5.0.0 to take advantage of these new features and streamline your project update processes. + +--- + +This summary includes the new feature that accepts variables from the terminal command with the `--var-` prefix for use in templates, along with an example command to demonstrate this capability. + +#### Breaking Changes + +1. **Module Removals and Standalone Replacements:** + + - **PrizmCounterModule**: Removed. Use standalone. + - **PrizmButtonModule**: Removed. Use standalone. + - **PrizmCheckedModule**: Removed. Use standalone `PrizmCheckedDirective`. + - **PrizmAutoResizeModule**: Removed. Use standalone `PrizmAutoResizeDirective`. + - **PrizmAutoFocusModule**: Removed. Use standalone `PrizmAutoFocusDirective`. + - **PrizmStopPropagationModule**: Removed. Use standalone `PrizmStopPropagationDirective`. + - **PrizmZoneEventModule**: Removed. Use standalone `PrizmZoneEventDirective`. + - **PrizmCalendarSheetModule**: Removed. Use standalone `PrizmCalendarSheetPipe`. + - **PrizmMapperModule**: Removed. Use standalone `PrizmMapperPipe`. + - **PrizmMonthModule**: Removed. Use standalone `PrizmMonthPipe`. + - **PrizmChartsAreaModule**: Removed. Use standalone `PrizmChartsAreaComponent`. + - **PrizmChartsBarModule**: Removed. Use standalone `PrizmChartsBarComponent`. + - **PrizmChartsColumnModule**: Removed. Use standalone `PrizmChartsColumnComponent`. + - **PrizmChartsGaugeModule**: Removed. Use standalone `PrizmChartsGaugeComponent`. + - **PrizmChartsLineModule**: Removed. Use standalone `PrizmChartsLineComponent`. + - **PrizmChartsPieModule**: Removed. Use standalone `PrizmChartsPieComponent`. + - **PrizmChartsRadarModule**: Removed. Use standalone `PrizmChartsRadarComponent`. + - **PrizmChartsRadialBarModule**: Removed. Use standalone `PrizmChartsRadialBarComponent`. + - **PrizmChartsScatterModule**: Removed. Use standalone `PrizmChartsScatterComponent`. + - **PrizmChartsTreemapModule**: Removed. Use standalone `PrizmChartsTreemapComponent`. + - **PrizmChartsWaterfallModule**: Removed. Use standalone `PrizmChartsWaterfallComponent`. + - **PrizmPanelModule**: Removed. Use standalone `PrizmPanelComponent`. + - **PrizmPrimitiveCalendarRangeModule**: Removed. Use standalone `PrizmPrimitiveCalendarRangeComponent`. + - **PrizmPrimitiveSpinButtonModule**: Removed. Use standalone `PrizmPrimitiveSpinButtonComponent`. + - **PrizmInputCorrectorModule**: Removed. Use standalone `PrizmInputCorrectorDirective`. + - **PrizmInputHintModule**: Removed. Use standalone `PrizmInputHintDirective`. + - **PrizmInputAllowedSymbolsModule**: Removed. Use standalone `PrizmInputAllowedSymbolsDirective`. + - **PrizmErrorPageModule**: Removed. Use standalone `PrizmErrorPageComponent`. + +2. **Deprecated Modules and Functions Removed:** + + - **Removed deprecated interface `PrizmTabItem`** + - **Removed deprecated function `prizmCreateDateMask`** + - **PrizmFlagIconsModule** + - **PrizmCallFuncModule** + - **PrizmPluckModule** + - **PrizmToObservableModule** + - **PrizmToTypeModule** + - **PrizmOverlayModule** + - **PrizmLetModule** + - **prizmCreateTimeMask** + - **prizmCreateTimePartMask** + - **prizmExtractI18n** + - **PRIZM_DATE_RANGE_FILLER**, **PRIZM_DATE_FILLER** (tokens) + - **PrizmBaseColor**, **PrizmSupportColor** (enums) + - **PrizmSkeletonModule** + - **PrizmWrapperModule** + - **PrizmScrollIntoViewModule** + - **PrizmRepeatTimesModule** + - **PrizmPreventDefaultModule** + - **PrizmPressedModule** + - **PrizmOverscrollModule** + - **PrizmInputNativeValueModule** + - **PrizmMutationObserveModule** + - **PrizmLifecycleModule** + - **PrizmHoveredModule** + - **PrizmFocusedModule** + - **PrizmFocusableModule** + - **PrizmFocusTrapModule** + - **PrizmDropdownZoneModule** + - **PrizmDroppableModule** + - **PrizmElementReadyModule** + - **PrizmDropdownControllerModule** + - **PrizmIconsSvgModule** + - **PrizmShadowModule** + - **PrizmWidgetModule** + - **PrizmTreeButtonModule** + - **PrizmToggleModule** + - **PrizmSwitcherModule** + - **PrizmSpinnerModule** + - **PrizmRadioButtonModule** + - **PrizmPaginatorModule** + - **PrizmLoaderModule** + - **PrizmLinkModule** + - **PrizmPrimitiveCalendarModule** + - **PrizmPrimitiveMonthPickerModule** + - **PrizmPrimitiveYearMonthPaginationModule** + - **PrizmPrimitiveYearPickerModule** + - **PrizmCardModule** + - **PrizmHintModule** + - **PrizmIconsSvgComponent** + - **PrizmScrollControlsModule** + - **PrizmInputIconButtonModule** + - **PrizmInputDateMultiModule** + - **PrizmIndicatorModule** + - **PrizmDialogModule** + - **PrizmDialogConfirmModule** + - **PrizmCronHumanReadableModule** + - **PrizmFileUploadModule** + - **PrizmCalendarMonthModule** + - **PrizmCalendarRangeModule** + - **PrizmSidebarModule** + - **PrizmColumnSettingsModule** + - **prizmCreateDateMask** + +3. **Renamed Components:** + + - **PanelComponent** renamed to `PrizmPanelComponent`. + +4. **Spelling Corrections in Exports:** + - **ToTypePipe** (use `PrizmToTypePipe`) + - **CallFuncPipe** (use `PrizmCallFuncPipe`) + - **PrizmSelectValueTransformver** corrected to `PrizmSelectValueTransformer`. + - **GridItemComponent** corrected to `PrizmGridItemComponent`. + - **GridComponent** corrected to `PrizmGridComponent`. + - **IndicatorComponent** corrected to `PrizmIndicatorComponent`. + - **SwitcherItemComponent** corrected to `PrizmSwitcherItemComponent`. + - **fix(components/chips)**: Corrected spelling error in CSS variable name for `--prizm-chips-item-height`. + - **feat(components)**: update spelling in sidebar and confirm result enums [#1548](https://github.com/zyfra/Prizm/issues/1548) `PrizmConfirmDialogResultDefaultType.confirmed` to `PrizmConfirmDialogResultDefaultType.confirm` and `PrizmSidebarResultDefaultType.confirmed` to `PrizmSidebarResultDefaultType.confirm` +5. **Replace inner prizm-svg-icon to prizm-icons in PrizmNavigationMenuComponent** + - **Update icon names to prizm-icons or inject our [converter](https://prizm-v5.web.app/components/icon#migrate)** + ## [4.3.8](https://github.com/zyfra/Prizm) (12-08-2024) ### Bug fixes From 99d20d3140dd9adf5f47950435fc49483ecb2da6 Mon Sep 17 00:00:00 2001 From: ickisIckis Date: Tue, 8 Oct 2024 13:29:51 +0300 Subject: [PATCH 03/18] feat(doc/changelog): update chagelog for 5.1.0 #000 --- .../app/about-prizm/changelog/CHANGELOG.md | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/apps/doc/src/app/about-prizm/changelog/CHANGELOG.md b/apps/doc/src/app/about-prizm/changelog/CHANGELOG.md index 60a21750f2..ec543a852a 100644 --- a/apps/doc/src/app/about-prizm/changelog/CHANGELOG.md +++ b/apps/doc/src/app/about-prizm/changelog/CHANGELOG.md @@ -2,6 +2,64 @@ All notable changes to this project will be documented in this file. +## [5.1.0](https://github.com/zyfra/Prizm) (09-10-2024) + +### Features + +- feat(components/file-upload): added input: files && added outputs: fileAdded, fileRemoved #1832 +- feat(components/file-upload): added custom actions && outputs: actionEvent, afterFilesChange #1832 +- feat(components/tree-select): added new component #2069 +- feat(components/tree-multi-select): added new component #2069 +- feat(components/switcher): extended switcher for pass as projection children #2069 +- feat(doc): add link to github issue page +- feat(components/input-select): fixed position of search input for dropdown #1981 Note, there are layout changes: if you overridden the --prizm-select-item-padding variable in the project, there may be a regression. +- feat(components/input-multiselect): fixed position of search input for dropdown #1981 Note, there are layout changes: if you overridden the --prizm-select-item-padding variable in the project, there may be a regression. +- feat(components/checkbox): add box shadow for disabled radio and checkbox #2024 +- feat(doc/multiselect): add example for async items in multiselect #1754 +- feat(helpers/overflow): new directives host, item to hide overflowed items +- feat(helpers/context): new directives and pipes to pass context and get context +- feat(helpers/resize-observer): new util function to get observable of resize observer +- feat(helpers/map): map with ability to get changes stream +- feat(components/input-date-time): add time restrictions for min max values #1570 +- feat(components/input-date-time-range): add time restrictions for min max values #1570 +- feat(components/tree): added css variable for tree item height +- feat(components/paginator): add left direction support #1154 +- feat(components/input-select): added input to control auto reposition dropdown window #1688 +- feat(components/input-multi-select): added input to control auto reposition dropdown window +- feat(charts/area): replace PrizmChartsAriaOptions(deprecated now) by PrizmChartsAreaOptions +- feat(charts): add color input for area, line, column, pie, radar, radial bar, scatter, treemap, waterfall #1816 +- feat(doc/charts): for line and column charts added ecamples with user's colors #1817 +- feat(doc/icons): example how to use custom icon #1841 +- feat(components/paginator): update paginator dictionary #1840 BREAKING CHANGE in dictionary - BREAKING CHANGE in dictionaries, why we do this read here +- feat(doc/slider): add form control for slider #531 +- feat(components/file-upload): add hint for browse button when its disable due max files count reached #1769 - BREAKING CHANGE in dictionaries, why we do this read [here](https://github.com/zyfra/Prizm/discussions/1617) +- feat(components/file-upload): add translations for file size unit #1789 - BREAKING CHANGE in dictionaries, why we do this read [here](https://github.com/zyfra/Prizm/discussions/1617) +- feat(chore): update mr checklist template +- feat(components/accordion): border-bottom can be dded to accordion item header #1322 +- feat(components/input-dates): added native date transformation for min max properties #1315 +- feat(components/input-dates): added date string transformation for min max properties #1573 +- feat(components/cron): added native date transformation for min max properties in date inputs #1315 +- feat(components/input-layout-date): added new provider for ISO and UTC strings transformer for input layout date #1574 +- feat(doc): remove examples for deleted prizm-input-date component +- feat(nx-mv): support up version with templates + +### Bug fixes + +- fix(doc/version): add v5 version link to v4 version manager #2035 +- fix(component/chips): chips overflows the border #1975 +- fix(components/table): table sort cursor correction #1986 +- fix(components/table): sorter count div should not reserve space when empty #2021 +- fix(components/tabs): fix Cannot read properties of undefined (reading 'disconnect') #2013 +- fix(components): added icons to peerDependencies #1989 +- fix(components/button): correct outline buttons height #1399 +- fix(components/navigation-menu): fix navigation item height #1964 +- fix(doc): missing fix #1742 info added to 4.3.6 version in changelog +- fix(components/slider): add markForCheck for setinng position from value for form control correct work #531 +- fix(components/accordion): accordion item header height should be 48px +- fix(components/tabs): view not updated for activeTabindexChage when tabs overflows #1863 +- fix(components/tabs): tabindex should recalculate on close from dropdown #1948 +- fix(components/listing-item): disabled items should not fire mouse events #1947 + ## [5.0.0](https://github.com/zyfra/Prizm) (22-08-2024) ### Features From 2255750295045ad4bce07264c6e60b3fe541d242 Mon Sep 17 00:00:00 2001 From: ickisIckis Date: Tue, 8 Oct 2024 13:34:18 +0300 Subject: [PATCH 04/18] fix(components): added icons to peerDependencies #1989 --- libs/components/package.json | 3 ++- libs/components/package.json.ng18 | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/components/package.json b/libs/components/package.json index fadf01c583..8306a3a01e 100644 --- a/libs/components/package.json +++ b/libs/components/package.json @@ -15,7 +15,8 @@ "@prizm-ui/helpers": "^5.1.0", "@prizm-ui/core": "^5.1.0", "@prizm-ui/i18n": "^5.1.0", - "@prizm-ui/theme": "^5.1.0" + "@prizm-ui/theme": "^5.1.0", + "@prizm-ui/icons": "^5.1.0" }, "dependencies": { "tslib": "^2.3.0", diff --git a/libs/components/package.json.ng18 b/libs/components/package.json.ng18 index cb5718475a..184d24bd88 100644 --- a/libs/components/package.json.ng18 +++ b/libs/components/package.json.ng18 @@ -15,7 +15,8 @@ "@prizm-ui/helpers": "^<%= version %>", "@prizm-ui/core": "^<%= version %>", "@prizm-ui/i18n": "^<%= version %>", - "@prizm-ui/theme": "^<%= version %>" + "@prizm-ui/theme": "^<%= version %>", + "@prizm-ui/icons": "^<%= version %>" }, "dependencies": { "tslib": "^2.3.0", From 79407ebfd4529a4117b897ec89a55417709324e8 Mon Sep 17 00:00:00 2001 From: Zurab Developer <75216044+ZurabDev@users.noreply.github.com> Date: Tue, 8 Oct 2024 14:20:03 +0300 Subject: [PATCH 05/18] feat(components/tree-select): added checkbox position control, auto focus for checkbox and other #0 --- ...e-select-projection-example.component.html | 2 +- .../examples/setup-module.md | 2 + .../input-tree-multi-select.component.html | 32 ++++++++++- .../input-tree-multi-select.component.ts | 53 ++++++++++++++++--- .../input-tree-multi-select.module.ts | 2 + .../input-tree-select.component.html | 10 ++++ .../input-tree-select.component.ts | 1 + .../input-tree-select.module.ts | 2 + .../lib/components/chips/chips.component.html | 2 + .../lib/components/chips/chips.component.ts | 4 ++ .../dropdowns/tree-multi-select/index.ts | 1 + .../tree-multi-select-item.component.html | 3 +- .../tree-multi-select-item.component.less | 10 ++++ .../item/tree-multi-select-item.component.ts | 2 + .../tree-multi-select-search.directive.ts | 1 + .../tree-multi-select-checkbox.directive.ts | 20 +++++++ .../tree-multi-select.component.ts | 10 +++- .../search/tree-select-search.directive.ts | 1 + ...ee-select-data-list-wrapper.component.html | 2 + ...tree-select-data-list-wrapper.component.ts | 3 +- .../tree-select/tree-select.component.ts | 9 +++- .../overflow/host/overflow-host.directive.ts | 12 ++++- .../src/lib/directives/overflow/model.ts | 4 ++ .../directives/overflow/overflow.service.ts | 16 ++++-- .../src/lib/directives/overflow/util.ts | 14 +++-- 25 files changed, 194 insertions(+), 24 deletions(-) create mode 100644 libs/components/src/lib/components/dropdowns/tree-multi-select/tree-multi-select-checkbox.directive.ts diff --git a/apps/doc/src/app/components/input/input-tree-multi-select/examples/projection/tree-select-projection-example.component.html b/apps/doc/src/app/components/input/input-tree-multi-select/examples/projection/tree-select-projection-example.component.html index 7dafdec2a7..83d28e1766 100644 --- a/apps/doc/src/app/components/input/input-tree-multi-select/examples/projection/tree-select-projection-example.component.html +++ b/apps/doc/src/app/components/input/input-tree-multi-select/examples/projection/tree-select-projection-example.component.html @@ -1,4 +1,4 @@ - +
- {{ item }} + {{ item.value }}
@@ -68,6 +71,22 @@
+ + + Checkbox Position + + + + + Search Placeholder + + + + Search Placeholder + + diff --git a/apps/doc/src/app/components/input/input-tree-select/input-tree-select.component.ts b/apps/doc/src/app/components/input/input-tree-select/input-tree-select.component.ts index e3e76bd973..3aadb7c523 100644 --- a/apps/doc/src/app/components/input/input-tree-select/input-tree-select.component.ts +++ b/apps/doc/src/app/components/input/input-tree-select/input-tree-select.component.ts @@ -70,6 +70,7 @@ export class InputTreeSelectComponent { emptyListTemplate = 'Ничего не найдено'; searchLabel = 'Не выбрано'; + searchPlaceholder = ''; prizmDropdownMinHeight = 0; prizmDropdownMaxHeight = 342; placeholder = ''; diff --git a/apps/doc/src/app/components/input/input-tree-select/input-tree-select.module.ts b/apps/doc/src/app/components/input/input-tree-select/input-tree-select.module.ts index 7c209b9185..8e8e375543 100644 --- a/apps/doc/src/app/components/input/input-tree-select/input-tree-select.module.ts +++ b/apps/doc/src/app/components/input/input-tree-select/input-tree-select.module.ts @@ -10,6 +10,7 @@ import { PrizmDataListWrapperComponent, PrizmHintOnOverflowDirective, PrizmInputCommonModule, + PrizmInputTreeMultiSelectComponent, PrizmInputTreeSelectComponent, PrizmScrollbarModule, PrizmTreeSelectItemComponent, @@ -45,6 +46,7 @@ import { PrizmTreeSelectI18nExampleComponent } from './examples/i18n/tree-select PrizmDataListWrapperComponent, PrizmHintOnOverflowDirective, PrizmHtmlRefDirective, + PrizmInputTreeMultiSelectComponent, ], declarations: [ PrizmTreeSelectI18nExampleComponent, diff --git a/libs/components/src/lib/components/chips/chips.component.html b/libs/components/src/lib/components/chips/chips.component.html index 129dc7e407..573f17398f 100644 --- a/libs/components/src/lib/components/chips/chips.component.html +++ b/libs/components/src/lib/components/chips/chips.component.html @@ -5,6 +5,8 @@ *ngIf="!!chipsList?.length" [active]="singleLine" [class.hidden]="singleLine" + [reserveSpace]="{ x: 48 }" + [host]="layoutComponent?.el?.nativeElement" prizmOverflowHost > override readonly testId_ = 'ui_chips'; + public readonly layoutComponent = inject(PrizmInputLayoutComponent, { + optional: true, + }); public accessorIsDisabled = false; public readonly stringifyDirective = inject(PrizmStringifyDirective, { host: true, diff --git a/libs/components/src/lib/components/dropdowns/tree-multi-select/index.ts b/libs/components/src/lib/components/dropdowns/tree-multi-select/index.ts index 5eb0b99657..b4fa2ded7d 100644 --- a/libs/components/src/lib/components/dropdowns/tree-multi-select/index.ts +++ b/libs/components/src/lib/components/dropdowns/tree-multi-select/index.ts @@ -2,3 +2,4 @@ export * from './tree-multi-select.component'; export * from './tree-select-multi-selected.directive'; export * from './search'; export * from './item'; +export * from './tree-multi-select-checkbox.directive'; diff --git a/libs/components/src/lib/components/dropdowns/tree-multi-select/item/tree-multi-select-item.component.html b/libs/components/src/lib/components/dropdowns/tree-multi-select/item/tree-multi-select-item.component.html index 00d563e373..fbac03d7e2 100644 --- a/libs/components/src/lib/components/dropdowns/tree-multi-select/item/tree-multi-select-item.component.html +++ b/libs/components/src/lib/components/dropdowns/tree-multi-select/item/tree-multi-select-item.component.html @@ -1,5 +1,5 @@
-
+