@abpjs/theme-basic 3.1.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * CurrentUserComponent
3
- * Translated from @abp/ng.theme.basic/lib/components/nav-items/current-user.component.ts v3.0.0
3
+ * Translated from @abp/ng.theme.basic/lib/components/nav-items/current-user.component.ts v4.0.0
4
4
  *
5
5
  * Public API component for displaying the current user nav item.
6
6
  * Can be replaced using the component replacement system with eThemeBasicComponents.CurrentUser.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * LanguagesComponent
3
- * Translated from @abp/ng.theme.basic/lib/components/nav-items/languages.component.ts v3.0.0
3
+ * Translated from @abp/ng.theme.basic/lib/components/nav-items/languages.component.ts v4.0.0
4
4
  *
5
5
  * Public API component for displaying the language selector nav item.
6
6
  * Can be replaced using the component replacement system with eThemeBasicComponents.Languages.
package/dist/index.d.ts CHANGED
@@ -2,10 +2,27 @@
2
2
  * @abpjs/theme-basic
3
3
  *
4
4
  * ABP Framework Theme Basic components for React.
5
- * Translated from @abp/ng.theme.basic v3.0.0
5
+ * Translated from @abp/ng.theme.basic v4.0.0
6
6
  *
7
7
  * This package provides the basic theme layout components for ABP React applications.
8
8
  *
9
+ * Changes in v4.0.0:
10
+ * - LogoComponent: Angular now uses EnvironmentService + ApplicationInfo instead of Store + Config.Application
11
+ * (React: no change needed, uses useBranding() context which already abstracts data source)
12
+ * - CurrentUserComponent: Angular now uses ConfigStateService + EnvironmentService + CurrentUserDto
13
+ * (React: no change needed, already uses useConfig() + useAuth() hooks)
14
+ * - LanguagesComponent: Angular now uses SessionStateService + ConfigStateService + LanguageInfo
15
+ * (React: updated type from deprecated ApplicationConfiguration.Language to LanguageInfo)
16
+ * - RoutesComponent: Angular renamed 'routes' property to 'routesService'
17
+ * (React: no change needed, uses useConfig().routes hook)
18
+ * - Dependency update to @abp/ng.theme.shared v4.0.0
19
+ *
20
+ * Changes in v3.2.0:
21
+ * - Reduced .abp-loading background opacity from 0.1 to 0.05 for better UX
22
+ * - Angular: RoutesComponent added closeDropdown() method (React handles via state/events)
23
+ * - Angular: StylesProvider now uses ReplaceableComponentsService instead of Store (React uses hooks)
24
+ * - Dependency update to @abp/ng.theme.shared v3.2.0
25
+ *
9
26
  * Changes in v3.0.0:
10
27
  * - Added CurrentUserComponent and LanguagesComponent as public API components
11
28
  * - Added nav-item.provider and styles.provider for initialization
@@ -45,7 +62,7 @@
45
62
  * - Dependency update to @abp/ng.theme.shared v2.2.0
46
63
  * - No functional code changes
47
64
  *
48
- * @version 3.0.0
65
+ * @version 4.0.0
49
66
  * @since 2.0.0 - Removed legacy .abp-confirm styles (no impact on React - we use Chakra UI)
50
67
  * @since 2.1.0 - Angular: OAuthService replaced with AuthService (already using useAuth in React)
51
68
  * - Angular: Added styles for loading, modal-backdrop, confirmation (handled by Chakra UI)
package/dist/index.js CHANGED
@@ -1210,8 +1210,8 @@ function LanguagesComponent({
1210
1210
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react26.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react26.Menu.Positioner, { style: { zIndex: menuZIndex }, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react26.Menu.Content, { children: dropdownLanguages.map((lang) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1211
1211
  import_react26.Menu.Item,
1212
1212
  {
1213
- value: lang.cultureName,
1214
- onClick: () => handleChangeLang(lang.cultureName),
1213
+ value: lang.cultureName ?? "",
1214
+ onClick: () => handleChangeLang(lang.cultureName ?? ""),
1215
1215
  children: lang.displayName || lang.cultureName
1216
1216
  },
1217
1217
  lang.cultureName
@@ -1453,9 +1453,9 @@ var THEME_BASIC_STYLES = `
1453
1453
  margin-top: -1px;
1454
1454
  }
1455
1455
 
1456
- /* Loading overlay */
1456
+ /* Loading overlay (v3.2.0: reduced opacity from 0.1 to 0.05) */
1457
1457
  .abp-loading {
1458
- background: rgba(0, 0, 0, 0.1);
1458
+ background: rgba(0, 0, 0, 0.05);
1459
1459
  }
1460
1460
 
1461
1461
  /* Modal backdrop */
package/dist/index.mjs CHANGED
@@ -1167,8 +1167,8 @@ function LanguagesComponent({
1167
1167
  /* @__PURE__ */ jsx20(Portal5, { children: /* @__PURE__ */ jsx20(Menu4.Positioner, { style: { zIndex: menuZIndex }, children: /* @__PURE__ */ jsx20(Menu4.Content, { children: dropdownLanguages.map((lang) => /* @__PURE__ */ jsx20(
1168
1168
  Menu4.Item,
1169
1169
  {
1170
- value: lang.cultureName,
1171
- onClick: () => handleChangeLang(lang.cultureName),
1170
+ value: lang.cultureName ?? "",
1171
+ onClick: () => handleChangeLang(lang.cultureName ?? ""),
1172
1172
  children: lang.displayName || lang.cultureName
1173
1173
  },
1174
1174
  lang.cultureName
@@ -1410,9 +1410,9 @@ var THEME_BASIC_STYLES = `
1410
1410
  margin-top: -1px;
1411
1411
  }
1412
1412
 
1413
- /* Loading overlay */
1413
+ /* Loading overlay (v3.2.0: reduced opacity from 0.1 to 0.05) */
1414
1414
  .abp-loading {
1415
- background: rgba(0, 0, 0, 0.1);
1415
+ background: rgba(0, 0, 0, 0.05);
1416
1416
  }
1417
1417
 
1418
1418
  /* Modal backdrop */
@@ -15,7 +15,7 @@
15
15
  *
16
16
  * @since 3.0.0
17
17
  */
18
- export declare const THEME_BASIC_STYLES = "\n/* Content header styles */\n.content-header-title {\n font-size: 24px;\n}\n\n.entry-row {\n margin-bottom: 15px;\n}\n\n/* Input validation styles */\n.input-validation-error {\n border-color: #dc3545;\n}\n\n.field-validation-error {\n font-size: 0.8em;\n}\n\n/* Table styles */\n.ui-table .ui-table-tbody > tr.empty-row > div.empty-row-content {\n border: 1px solid #c8c8c8;\n}\n\n.ui-table .pagination-wrapper {\n background-color: #f4f4f4;\n border: 1px solid #c8c8c8;\n}\n\n/* Bordered datatable styles (added in v3.0.0) */\n.bordered .datatable-body-row {\n border-top: 1px solid #eee;\n margin-top: -1px;\n}\n\n/* Loading overlay */\n.abp-loading {\n background: rgba(0, 0, 0, 0.1);\n}\n\n/* Modal backdrop */\n.modal-backdrop {\n background-color: rgba(0, 0, 0, 0.6);\n}\n";
18
+ export declare const THEME_BASIC_STYLES = "\n/* Content header styles */\n.content-header-title {\n font-size: 24px;\n}\n\n.entry-row {\n margin-bottom: 15px;\n}\n\n/* Input validation styles */\n.input-validation-error {\n border-color: #dc3545;\n}\n\n.field-validation-error {\n font-size: 0.8em;\n}\n\n/* Table styles */\n.ui-table .ui-table-tbody > tr.empty-row > div.empty-row-content {\n border: 1px solid #c8c8c8;\n}\n\n.ui-table .pagination-wrapper {\n background-color: #f4f4f4;\n border: 1px solid #c8c8c8;\n}\n\n/* Bordered datatable styles (added in v3.0.0) */\n.bordered .datatable-body-row {\n border-top: 1px solid #eee;\n margin-top: -1px;\n}\n\n/* Loading overlay (v3.2.0: reduced opacity from 0.1 to 0.05) */\n.abp-loading {\n background: rgba(0, 0, 0, 0.05);\n}\n\n/* Modal backdrop */\n.modal-backdrop {\n background-color: rgba(0, 0, 0, 0.6);\n}\n";
19
19
  /**
20
20
  * Injects the theme-basic styles into the document head.
21
21
  * Call this function during app initialization if you need the global CSS styles.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abpjs/theme-basic",
3
- "version": "3.1.0",
3
+ "version": "4.0.0",
4
4
  "description": "ABP Framework Theme Basic components for React - translated from @abp/ng.theme.basic",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -27,11 +27,11 @@
27
27
  "lucide-react": "^0.400.0",
28
28
  "react-hook-form": "^7.48.0",
29
29
  "react-icons": "^5.0.0",
30
- "@abpjs/core": "3.1.0",
31
- "@abpjs/theme-shared": "3.1.0"
30
+ "@abpjs/theme-shared": "4.0.0",
31
+ "@abpjs/core": "4.0.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@abp/ng.theme.basic": "3.1.0",
34
+ "@abp/ng.theme.basic": "4.0.0",
35
35
  "@testing-library/jest-dom": "^6.6.3",
36
36
  "@testing-library/react": "^16.1.0",
37
37
  "@vitest/coverage-v8": "^1.6.0",