osi-cards-lib 1.5.50 → 1.5.51
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.
- package/README.md +3 -29
- package/fesm2022/{osi-cards-lib-osi-cards-lib-Cg-ENr-a.mjs → osi-cards-lib-osi-cards-lib-BLZhabZB.mjs} +8 -8
- package/fesm2022/{osi-cards-lib-osi-cards-lib-Cg-ENr-a.mjs.map → osi-cards-lib-osi-cards-lib-BLZhabZB.mjs.map} +1 -1
- package/fesm2022/{osi-cards-lib-overview-section.component-BcpudPjx.mjs → osi-cards-lib-overview-section.component-B_Sgus2D.mjs} +2 -2
- package/fesm2022/{osi-cards-lib-overview-section.component-BcpudPjx.mjs.map → osi-cards-lib-overview-section.component-B_Sgus2D.mjs.map} +1 -1
- package/fesm2022/osi-cards-lib.mjs +1 -1
- package/index.d.ts +5 -5
- package/package.json +1 -3
package/README.md
CHANGED
|
@@ -46,16 +46,15 @@ npm install @angular/common@^17.0.0 @angular/core@^17.0.0 @angular/animations@^1
|
|
|
46
46
|
|
|
47
47
|
### Optional Dependencies (for charts and maps)
|
|
48
48
|
|
|
49
|
-
**Important:** These dependencies are optional but **required** if you use
|
|
49
|
+
**Important:** These dependencies are optional but **required** if you use map sections in your cards.
|
|
50
50
|
|
|
51
51
|
```bash
|
|
52
|
-
npm install
|
|
52
|
+
npm install leaflet
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
- **frappe-charts**: Required for `chart` section type (bar, line, pie, doughnut, area charts)
|
|
56
55
|
- **leaflet**: Required for `map` section type (geographic location maps)
|
|
57
56
|
|
|
58
|
-
**Note:** If you use
|
|
57
|
+
**Note:** If you use map sections without installing this dependency, you'll see error messages in the console and the sections will display error states. The library will gracefully handle missing dependencies, but functionality will be limited.
|
|
59
58
|
|
|
60
59
|
---
|
|
61
60
|
|
|
@@ -449,31 +448,6 @@ npm install lucide-angular@^0.292.0
|
|
|
449
448
|
- The `[theme]` input automatically sets the `data-theme` attribute
|
|
450
449
|
- Check browser console for any errors
|
|
451
450
|
|
|
452
|
-
### Chart sections not rendering / "Failed to resolve import 'frappe-charts'" error
|
|
453
|
-
|
|
454
|
-
If you're using chart sections (`type: "chart"`) and encounter build errors or see error messages in the console:
|
|
455
|
-
|
|
456
|
-
1. **Install frappe-charts:**
|
|
457
|
-
```bash
|
|
458
|
-
npm install frappe-charts
|
|
459
|
-
```
|
|
460
|
-
|
|
461
|
-
2. **Verify installation:**
|
|
462
|
-
- Check that `frappe-charts` appears in your `package.json` dependencies
|
|
463
|
-
- Ensure `node_modules/frappe-charts` exists
|
|
464
|
-
|
|
465
|
-
3. **Rebuild your application:**
|
|
466
|
-
```bash
|
|
467
|
-
npm install # If you just added the dependency
|
|
468
|
-
ng serve # Restart dev server
|
|
469
|
-
# or
|
|
470
|
-
ng build # Rebuild
|
|
471
|
-
```
|
|
472
|
-
|
|
473
|
-
4. **If using Vite/Angular 17+**: The library now handles missing dependencies gracefully. If you see "frappe-charts is not installed" in the console, simply install it as shown above.
|
|
474
|
-
|
|
475
|
-
**Note:** Chart sections will display an error state if `frappe-charts` is not installed. The library handles this gracefully, but charts won't render until the dependency is installed.
|
|
476
|
-
|
|
477
451
|
### Map sections not rendering
|
|
478
452
|
|
|
479
453
|
Similar to charts, map sections require `leaflet` to be installed:
|
|
@@ -3093,7 +3093,7 @@ class SectionFactory {
|
|
|
3093
3093
|
},
|
|
3094
3094
|
{
|
|
3095
3095
|
type: 'overview',
|
|
3096
|
-
loader: () => import('./osi-cards-lib-overview-section.component-
|
|
3096
|
+
loader: () => import('./osi-cards-lib-overview-section.component-B_Sgus2D.mjs').then((m) => m.OverviewSectionComponent),
|
|
3097
3097
|
metadata: {
|
|
3098
3098
|
type: 'overview',
|
|
3099
3099
|
displayName: 'Overview',
|
|
@@ -4904,8 +4904,8 @@ function getSectionsRequiringExternalLibs() {
|
|
|
4904
4904
|
* Manifest metadata
|
|
4905
4905
|
*/
|
|
4906
4906
|
const MANIFEST_META = {
|
|
4907
|
-
generatedAt: '2026-01-08T15:
|
|
4908
|
-
registryVersion: '1.5.
|
|
4907
|
+
generatedAt: '2026-01-08T15:44:05.321Z',
|
|
4908
|
+
registryVersion: '1.5.50',
|
|
4909
4909
|
totalSections: 20,
|
|
4910
4910
|
publicSections: 20
|
|
4911
4911
|
};
|
|
@@ -25604,11 +25604,11 @@ function generateBriefSummary(card) {
|
|
|
25604
25604
|
* Do not edit manually - generated by scripts/generate-version.js
|
|
25605
25605
|
*
|
|
25606
25606
|
* Source of truth: version.config.json
|
|
25607
|
-
* Last synced: 2026-01-08T15:
|
|
25607
|
+
* Last synced: 2026-01-08T15:54:52.794Z
|
|
25608
25608
|
*/
|
|
25609
|
-
const VERSION = '1.5.
|
|
25610
|
-
const BUILD_DATE = '2026-01-08T15:
|
|
25611
|
-
const BUILD_HASH = '
|
|
25609
|
+
const VERSION = '1.5.51';
|
|
25610
|
+
const BUILD_DATE = '2026-01-08T15:54:52.794Z';
|
|
25611
|
+
const BUILD_HASH = '5c9afa0';
|
|
25612
25612
|
const BUILD_BRANCH = 'main';
|
|
25613
25613
|
const VERSION_INFO = {
|
|
25614
25614
|
version: VERSION,
|
|
@@ -36193,4 +36193,4 @@ class SubscriptionPool {
|
|
|
36193
36193
|
*/
|
|
36194
36194
|
|
|
36195
36195
|
export { CachedSectionNormalizationService as $, ANIMATION_PRESETS as A, BaseSectionComponent as B, CardTypeGuards as C, DEFAULT_LOADING_MESSAGES as D, EmptyStateComponent as E, isMobileViewport as F, GRID_CONFIG as G, isStreamingPlaceholder as H, ICON_SIZE as I, isTabletViewport as J, prefersReducedMotion as K, LucideIconsModule as L, MASONRY_CONFIG as M, ActionFactory as N, CardFactory as O, PARTICLE_CONFIG as P, FieldFactory as Q, ItemFactory as R, SectionLayoutPreferenceService as S, TILT_CONFIG as T, SectionFactory$1 as U, SectionFactory as V, LogValidationErrors as W, validateField as X, validateSection as Y, Z_INDEX as Z, AccessibilityService as _, SectionHeaderComponent as a, DEFAULT_GRID_CONFIG as a$, CardFacadeService as a0, DynamicSectionLoaderService as a1, EmailHandlerService as a2, ErrorTrackingService as a3, EventBusService as a4, EventMiddlewareService as a5, FEATURE_FLAG_META as a6, FeatureFlagsService as a7, I18nService as a8, IconService as a9, ListSectionComponent as aA, MapSectionComponent as aB, NetworkCardSectionComponent as aC, NewsSectionComponent as aD, ProductSectionComponent as aE, QuotationSectionComponent as aF, SocialMediaSectionComponent as aG, SolutionsSectionComponent as aH, TextReferenceSectionComponent as aI, Memoize as aJ, MemoizeLRU as aK, MemoizeTTL as aL, ObjectPool as aM, PerfectBinPacker as aN, packWithZeroGapsGuarantee as aO, debounce as aP, throttle as aQ, FlipAnimator as aR, createFlipList as aS, recordPositions as aT, CardUtil as aU, createSafeAsyncFunction as aV, createSafeFunction as aW, tryCatch as aX, useErrorBoundary as aY, AutoUnsubscribe as aZ, SubscriptionTracker as a_, KeyboardShortcutsService as aa, LayoutCalculationService as ab, LayoutStateManager as ac, LayoutWorkerService as ad, LoggerService as ae, MagneticTiltService as af, OSICardsStreamingService as ag, OSI_FEATURE_FLAGS as ah, SectionNormalizationService as ai, SectionPluginRegistry as aj, SectionUtilsService as ak, ToastService as al, createLogger as am, DEFAULT_THEME_CONFIG as an, OSI_THEME_CONFIG as ao, ThemeService as ap, provideOSICardsTheme as aq, AICardRendererComponent as ar, CardStreamingIndicatorComponent as as, ErrorBoundaryComponent as at, AnalyticsSectionComponent as au, BrandColorsSectionComponent as av, ChartSectionComponent as aw, ContactCardSectionComponent as ax, EventSectionComponent as ay, FinancialsSectionComponent as az, ANIMATION_TIMING as b, SECTION_METADATA as b$, calculateColumnWidth as b0, calculateColumns as b1, getPreferredColumns as b2, resolveColumnSpan as b3, BUILD_BRANCH as b4, BUILD_DATE as b5, BUILD_HASH as b6, VERSION as b7, VERSION_INFO as b8, getBuildInfo as b9, generateFieldId as bA, generateItemId as bB, generateActionId as bC, BrandedIds as bD, isCardId as bE, isSectionId as bF, isFieldId as bG, isItemId as bH, isAnalyticsSection as bI, isContactCardSection as bJ, isNetworkCardSection as bK, isMapSection as bL, isFinancialsSection as bM, isEventSection as bN, isListSection as bO, isChartSection as bP, isProductSection as bQ, isSolutionsSection as bR, isQuotationSection as bS, isTextReferenceSection as bT, isBrandColorsSection as bU, isNewsSection as bV, isSocialMediaSection as bW, hasFields as bX, hasItems as bY, hasChartData as bZ, assertNever as b_, getShortVersion as ba, getVersionString as bb, isPrerelease as bc, isProductionBuild as bd, isValidCardId as be, isValidSectionId as bf, isValidFieldId as bg, isValidItemId as bh, isValidPercentage as bi, isValidHexColor as bj, isValidUrl as bk, isValidEmail as bl, createCardId as bm, createSectionId as bn, createFieldId as bo, createItemId as bp, createActionId as bq, createPluginId as br, createPercentage as bs, createHexColor as bt, createUrl as bu, createEmail as bv, createPixels as bw, createMilliseconds as bx, generateCardId as by, generateSectionId as bz, BORDER_RADIUS as c, ScopedStateService as c$, SECTION_TYPE_ALIASES as c0, resolveSectionType as c1, isValidSectionType as c2, getSectionMetadata as c3, PUBLIC_SECTION_TYPES as c4, ALL_SECTION_TYPES as c5, DECORATED_SECTION_COMPONENTS as c6, SectionComponent as c7, getRegisteredSectionComponents as c8, hasRegisteredComponent as c9, DEFAULT_STREAMING_CONFIG as cA, OSI_STREAMING_CONFIG as cB, DEFAULT_ANIMATION_CONFIG as cC, OSI_ANIMATION_CONFIG as cD, DEFAULT_LAYOUT_CONFIG as cE, OSI_LAYOUT_CONFIG as cF, DEFAULT_LOGGING_CONFIG as cG, OSI_LOGGING_CONFIG as cH, DEFAULT_OSI_THEME_CONFIG as cI, OSI_THEME_CONFIG_TOKEN as cJ, DEFAULT_ACCESSIBILITY_CONFIG as cK, OSI_ACCESSIBILITY_CONFIG as cL, OSI_CUSTOM_SECTIONS as cM, DEFAULT_ERROR_CONFIG as cN, OSI_ERROR_CONFIG as cO, DEFAULT_OSI_CARDS_FULL_CONFIG as cP, OSI_FULL_CONFIG as cQ, DEFAULT_CSS_ISOLATION_MODE as cR, CSS_ISOLATION_MODE as cS, DEFAULT_THEME as cT, SCOPED_ANIMATION_SERVICE as cU, ScopedAnimationService as cV, provideScopedAnimationService as cW, SCOPED_SELECTION_SERVICE as cX, ScopedSelectionService as cY, provideScopedSelectionService as cZ, SCOPED_STATE_SERVICE as c_, getRegisteredComponent as ca, getRegisteredSectionTypes as cb, SECTION_MANIFEST as cc, getManifestEntry as cd, getPublicSectionTypes as ce, getSectionsRequiringExternalLibs as cf, MANIFEST_META as cg, OSI_EVENTS as ch, createFieldClickEvent as ci, createItemClickEvent as cj, createActionClickEvent as ck, createCardInteractionEvent as cl, createThemeChangeEvent as cm, createStreamingStateEvent as cn, createSectionRenderedEvent as co, isOSIFieldClickEvent as cp, isOSIItemClickEvent as cq, isOSIActionClickEvent as cr, isOSICardInteractionEvent as cs, provideLucideIcons as ct, ICONS as cu, provideOsiCardsCore as cv, provideOsiCards as cw, provideOsiCardsMinimal as cx, provideOsiCardsAdvanced as cy, provideOsiCardsTesting as cz, BREAKPOINTS$1 as d, provideScopedStateService as d0, createCompanyCard as d1, createEnhancedCompanyCard as d2, createContactCard as d3, createAnalyticsDashboard as d4, PresetFactory as d5, createCompanyPreset as d6, createContactPreset as d7, createAnalyticsPreset as d8, CardPreviewComponent as d9, RequiredFieldError as dA, LayoutError as dB, WorkerError as dC, PluginRegistrationError as dD, isOSICardsError as dE, wrapError as dF, getUserMessage as dG, CardSkeletonComponent as da, MasonryGridComponent as db, OsiCardsComponent as dc, OsiCardsContainerComponent as dd, SectionRendererComponent as de, BadgeComponent as df, TrendIndicatorComponent as dg, ProgressBarComponent as dh, CardActionsComponent as di, CardBodyComponent as dj, CardFooterComponent as dk, CardHeaderComponent as dl, CardSectionListComponent as dm, CopyToClipboardDirective as dn, LazyRenderDirective as dp, TooltipDirective as dq, OsiThemeDirective as dr, SectionDesignDirective as ds, OSICardsError as dt, SectionRenderError as du, UnknownSectionTypeError as dv, StreamingError as dw, StreamingTimeoutError as dx, StreamingParseError as dy, ValidationError as dz, CARD_SIZES as e, CARD_SPACING as f, COLUMNS_BY_BREAKPOINT as g, CONTAINER_CONFIG as h, EASING as i, EMPTY_STATE_CONFIG as j, PLACEHOLDER_TEXT as k, SHADOWS as l, SKELETON_CONFIG as m, SPACING as n, STAGGER_DELAYS as o, STREAMING_CONFIG as p, STREAMING_PROGRESS as q, STREAMING_STAGES as r, calculateChunkDelay as s, generateStreamingId as t, getAnimationTiming as u, getColumnsForBreakpoint$1 as v, getCurrentBreakpoint as w, getEasing as x, getRandomLoadingMessage as y, isDesktopViewport as z };
|
|
36196
|
-
//# sourceMappingURL=osi-cards-lib-osi-cards-lib-
|
|
36196
|
+
//# sourceMappingURL=osi-cards-lib-osi-cards-lib-BLZhabZB.mjs.map
|