@ojiepermana/angular 22.2.12 → 22.2.14
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/fesm2022/{ojiepermana-angular-navigation-navigation-dockbar-menu.component-DwOSHmKC.mjs → ojiepermana-angular-navigation-navigation-dockbar-menu.component-B2o_omfJ.mjs} +2 -2
- package/fesm2022/{ojiepermana-angular-navigation-navigation-entry-grid.component-DtRHbiBM.mjs → ojiepermana-angular-navigation-navigation-entry-grid.component-CJGBKA8c.mjs} +1 -1
- package/fesm2022/{ojiepermana-angular-navigation-navigation-flyout-menu.component-Bo2nIOJk.mjs → ojiepermana-angular-navigation-navigation-flyout-menu.component-CHVjP7ew.mjs} +2 -2
- package/fesm2022/{ojiepermana-angular-navigation-navigation-horizontal.component-DUyMjBKb.mjs → ojiepermana-angular-navigation-navigation-horizontal.component-znRwi38r.mjs} +2 -2
- package/fesm2022/{ojiepermana-angular-navigation-navigation-item.component-BKmO7Pqa.mjs → ojiepermana-angular-navigation-navigation-item.component-CIy9MVBy.mjs} +5 -2
- package/fesm2022/{ojiepermana-angular-navigation-navigation-list.component-DI-En6rE.mjs → ojiepermana-angular-navigation-navigation-list.component-BIQM2uf1.mjs} +1 -1
- package/fesm2022/ojiepermana-angular-navigation.mjs +8 -8
- package/fesm2022/ojiepermana-angular-theme-layout.mjs +1 -4
- package/fesm2022/ojiepermana-angular-theme-styles.mjs +1 -1
- package/package.json +2 -2
- package/types/ojiepermana-angular-theme-layout.d.ts +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as hasNavigationCountBadge } from "./ojiepermana-angular-navigation-navigation-badge-count.component-Bx89vXtg.mjs";
|
|
2
|
-
import { r as NavigationItemContentComponent, s as NAVIGATION_SHELL, t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-
|
|
3
|
-
import { t as NavigationListComponent } from "./ojiepermana-angular-navigation-navigation-list.component-
|
|
2
|
+
import { r as NavigationItemContentComponent, s as NAVIGATION_SHELL, t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-CIy9MVBy.mjs";
|
|
3
|
+
import { t as NavigationListComponent } from "./ojiepermana-angular-navigation-navigation-list.component-BIQM2uf1.mjs";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import { Component, ElementRef, Injector, afterNextRender, computed, inject, input, output, signal } from "@angular/core";
|
|
6
6
|
import { cn } from "@ojiepermana/angular/component/utils/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as navigationPanelId, o as NavigationItemBadgeComponent, t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-
|
|
1
|
+
import { n as navigationPanelId, o as NavigationItemBadgeComponent, t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-CIy9MVBy.mjs";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Component, computed, inject, input, output, signal } from "@angular/core";
|
|
4
4
|
import { ActivatedRoute, Router, RouterLink } from "@angular/router";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as navigationInteractiveStateClasses, r as NavigationItemContentComponent, t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-
|
|
2
|
-
import { t as NavigationEntryGridComponent } from "./ojiepermana-angular-navigation-navigation-entry-grid.component-
|
|
1
|
+
import { a as navigationInteractiveStateClasses, r as NavigationItemContentComponent, t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-CIy9MVBy.mjs";
|
|
2
|
+
import { t as NavigationEntryGridComponent } from "./ojiepermana-angular-navigation-navigation-entry-grid.component-CJGBKA8c.mjs";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import { Component, ElementRef, Injector, afterNextRender, computed, effect, inject, input, output, signal } from "@angular/core";
|
|
5
5
|
import { cn } from "@ojiepermana/angular/component/utils/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as hasNavigationCountBadge } from "./ojiepermana-angular-navigation-navigation-badge-count.component-Bx89vXtg.mjs";
|
|
2
|
-
import { t as NavigationEntryGridComponent } from "./ojiepermana-angular-navigation-navigation-entry-grid.component-
|
|
3
|
-
import { a as navigationInteractiveStateClasses, n as navigationPanelId, r as NavigationItemContentComponent, t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-
|
|
2
|
+
import { t as NavigationEntryGridComponent } from "./ojiepermana-angular-navigation-navigation-entry-grid.component-CJGBKA8c.mjs";
|
|
3
|
+
import { a as navigationInteractiveStateClasses, n as navigationPanelId, r as NavigationItemContentComponent, t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-CIy9MVBy.mjs";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import { Component, ElementRef, Injector, afterNextRender, computed, effect, inject, input, output, signal } from "@angular/core";
|
|
6
6
|
import { cn } from "@ojiepermana/angular/component/utils/core";
|
|
@@ -170,6 +170,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
172
|
const NAVIGATION_ACTIVE_PARENT_ICON_CLASSES = "isolate text-primary-foreground before:pointer-events-none before:absolute before:-inset-1 before:-z-10 before:rounded-md before:border before:border-primary before:bg-primary before:content-['']";
|
|
173
|
+
function navigationTargetLayoutClasses(orientation, level) {
|
|
174
|
+
return orientation === "horizontal" && level === 0 ? "inline-flex h-(--nav-item-height) px-(--nav-item-padding-x)" : "flex min-h-(--nav-item-height) w-full px-(--nav-item-padding-x) py-1 text-left";
|
|
175
|
+
}
|
|
173
176
|
function navigationActiveRailClasses(segment, stairsRail, firstInBranch) {
|
|
174
177
|
if (!segment || stairsRail && segment === "end") return "";
|
|
175
178
|
return cn("relative", "before:pointer-events-none before:absolute before:content-['']", stairsRail ? "before:-left-[calc(var(--nav-indent)-var(--nav-rail-offset))] before:-translate-x-1/2 before:w-px before:bg-primary before:-top-0.5" : cn("before:left-(--nav-rail-offset) before:w-0 before:-z-10 before:border-l before:border-dotted before:border-primary", firstInBranch ? "before:-top-[calc(var(--nav-item-height)/2+var(--spacing-base)*0.5)]" : "before:-top-0.5"), segment === "end" ? "before:bottom-[calc(100%-var(--nav-item-height)/2)]" : "before:-bottom-0.5");
|
|
@@ -617,10 +620,10 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
617
620
|
this.nav.closeDrawer(this.navId());
|
|
618
621
|
}
|
|
619
622
|
leafClasses(active) {
|
|
620
|
-
return cn("NavigationItem nav-text group/nav
|
|
623
|
+
return cn("NavigationItem nav-text group/nav min-w-0 items-center rounded-md transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", navigationTargetLayoutClasses(this.orientation(), this.level()), "gap-(--nav-item-gap)", this.compact() && "size-(--nav-rail-item-size) justify-center gap-0 px-0 py-0 text-center", this.interactiveStateClasses(active), this.item().disabled && "pointer-events-none opacity-50", this.item().classes?.wrapper, this.itemClass());
|
|
621
624
|
}
|
|
622
625
|
triggerClasses(active) {
|
|
623
|
-
return cn("nav-trigger nav-text group/nav
|
|
626
|
+
return cn("nav-trigger nav-text group/nav min-w-0 items-center rounded-md transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", navigationTargetLayoutClasses(this.orientation(), this.level()), "gap-(--nav-item-gap)", this.compact() && "size-(--nav-rail-item-size) justify-center gap-0 px-0 py-0 text-center", this.interactiveStateClasses(active), this.item().classes?.wrapper, this.itemClass());
|
|
624
627
|
}
|
|
625
628
|
interactiveStateClasses(active) {
|
|
626
629
|
return navigationInteractiveStateClasses(active, this.level() > 0 ? "vertical" : this.orientation(), this.compact(), this.item().children.length > 0, this.stairsRail(), this.showChildren() && this.showsStairsRailForChildren() && (this.rail() === "default" || this.lastActiveChildIndex() >= 0));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-
|
|
1
|
+
import { t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-CIy9MVBy.mjs";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Component, computed, input, output } from "@angular/core";
|
|
4
4
|
import { cn } from "@ojiepermana/angular/component/utils/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as injectNavigationBadgeTotal, o as navigationBadgeSourceKeys, r as NAVIGATION_BADGE_STREAMS, s as navigationDescendantBadgeSources } from "./ojiepermana-angular-navigation-navigation-badge-count.component-Bx89vXtg.mjs";
|
|
2
|
-
import { s as NAVIGATION_SHELL } from "./ojiepermana-angular-navigation-navigation-item.component-
|
|
3
|
-
import { t as NavigationListComponent } from "./ojiepermana-angular-navigation-navigation-list.component-
|
|
2
|
+
import { s as NAVIGATION_SHELL } from "./ojiepermana-angular-navigation-navigation-item.component-CIy9MVBy.mjs";
|
|
3
|
+
import { t as NavigationListComponent } from "./ojiepermana-angular-navigation-navigation-list.component-BIQM2uf1.mjs";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import { Component, DestroyRef, Directive, ElementRef, Injector, TemplateRef, ViewContainerRef, afterNextRender, booleanAttribute, computed, contentChild, effect, forwardRef, inject, input, isDevMode, model, output, signal } from "@angular/core";
|
|
6
6
|
import { ActivatedRoute } from "@angular/router";
|
|
@@ -820,9 +820,9 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
820
820
|
outputs: ["openedIdsChange", "itemSelected"]
|
|
821
821
|
}],
|
|
822
822
|
deferBlockDependencies: [
|
|
823
|
-
() => [import("./ojiepermana-angular-navigation-navigation-flyout-menu.component-
|
|
824
|
-
() => [import("./ojiepermana-angular-navigation-navigation-horizontal.component-
|
|
825
|
-
() => [import("./ojiepermana-angular-navigation-navigation-dockbar-menu.component-
|
|
823
|
+
() => [import("./ojiepermana-angular-navigation-navigation-flyout-menu.component-CHVjP7ew.mjs").then((m) => m.NavigationFlyoutMenuComponent)],
|
|
824
|
+
() => [import("./ojiepermana-angular-navigation-navigation-horizontal.component-znRwi38r.mjs").then((m) => m.NavigationHorizontalComponent)],
|
|
825
|
+
() => [import("./ojiepermana-angular-navigation-navigation-dockbar-menu.component-B2o_omfJ.mjs").then((m) => m.NavigationDockbarMenuComponent)]
|
|
826
826
|
]
|
|
827
827
|
});
|
|
828
828
|
};
|
|
@@ -832,9 +832,9 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
832
832
|
ngImport: i0,
|
|
833
833
|
type: NavigationContentComponent,
|
|
834
834
|
resolveDeferredDeps: () => [
|
|
835
|
-
import("./ojiepermana-angular-navigation-navigation-flyout-menu.component-
|
|
836
|
-
import("./ojiepermana-angular-navigation-navigation-horizontal.component-
|
|
837
|
-
import("./ojiepermana-angular-navigation-navigation-dockbar-menu.component-
|
|
835
|
+
import("./ojiepermana-angular-navigation-navigation-flyout-menu.component-CHVjP7ew.mjs").then((m) => m.NavigationFlyoutMenuComponent),
|
|
836
|
+
import("./ojiepermana-angular-navigation-navigation-horizontal.component-znRwi38r.mjs").then((m) => m.NavigationHorizontalComponent),
|
|
837
|
+
import("./ojiepermana-angular-navigation-navigation-dockbar-menu.component-B2o_omfJ.mjs").then((m) => m.NavigationDockbarMenuComponent)
|
|
838
838
|
],
|
|
839
839
|
resolveMetadata: (NavigationFlyoutMenuComponent, NavigationHorizontalComponent, NavigationDockbarMenuComponent) => ({
|
|
840
840
|
decorators: [{
|
|
@@ -2,7 +2,6 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import { Component, DestroyRef, ElementRef, booleanAttribute, computed, effect, inject, input } from "@angular/core";
|
|
3
3
|
import { cn } from "@ojiepermana/angular/component/utils/core";
|
|
4
4
|
import { LAYOUT_LOADING_HIDE_DELAY_MS, LAYOUT_LOADING_INITIAL_PROGRESS, LAYOUT_LOADING_SKIP, LAYOUT_LOADING_TRICKLE_CEILING, LAYOUT_LOADING_TRICKLE_INTERVAL_MS, LayoutLoadingService, LayoutLoadingService as LayoutLoadingService$1, LayoutService, LayoutService as LayoutService$1, layoutLoadingInterceptor } from "@ojiepermana/angular/theme/layout/services";
|
|
5
|
-
import { ThemeRadiusService } from "@ojiepermana/angular/theme/styles";
|
|
6
5
|
import { LAYOUT_APPEARANCES, LAYOUT_APPEARANCE_STORAGE_KEY, LAYOUT_DEFAULT_APPEARANCE, LAYOUT_DEFAULT_APPEARANCE as LAYOUT_DEFAULT_APPEARANCE$1, LAYOUT_DEFAULT_SURFACE, LAYOUT_DEFAULT_SURFACE as LAYOUT_DEFAULT_SURFACE$1, LAYOUT_DEFAULT_TYPE, LAYOUT_DEFAULT_WIDTH, LAYOUT_DEFAULT_WIDTH as LAYOUT_DEFAULT_WIDTH$1, LAYOUT_LOCKED_WIDTH, LAYOUT_LOCKED_WIDTH as LAYOUT_LOCKED_WIDTH$1, LAYOUT_SURFACES, LAYOUT_SURFACE_STORAGE_KEY, LAYOUT_TYPES, LAYOUT_TYPE_STORAGE_KEY, LAYOUT_WIDTHS, LAYOUT_WIDTH_STORAGE_KEY, isUiLayoutAppearance, isUiLayoutSurface, isUiLayoutType, isUiLayoutWidth } from "@ojiepermana/angular/theme/layout/types";
|
|
7
6
|
import { DOCUMENT } from "@angular/common";
|
|
8
7
|
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
@@ -139,7 +138,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
139
138
|
});
|
|
140
139
|
var LayoutComponent = class LayoutComponent {
|
|
141
140
|
layout = inject(LayoutService$1);
|
|
142
|
-
themeRadius = inject(ThemeRadiusService);
|
|
143
141
|
surface = input(null, ...ngDevMode ? [{ debugName: "surface" }] : /* istanbul ignore next */ []);
|
|
144
142
|
appearance = input(null, ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
145
143
|
layoutAppearanceAttribute = input(null, {
|
|
@@ -182,7 +180,6 @@ var LayoutComponent = class LayoutComponent {
|
|
|
182
180
|
const appearance = this.appearanceInput();
|
|
183
181
|
if (appearance !== null) this.layout.setAppearance(appearance, { persist: false });
|
|
184
182
|
else this.layout.registerAppearance(LAYOUT_DEFAULT_APPEARANCE$1);
|
|
185
|
-
if (this.resolvedAppearance() === "border-rail" && this.themeRadius.radius() !== "none") this.themeRadius.setRadius("none");
|
|
186
183
|
const width = this.width();
|
|
187
184
|
if (this.layout.widthLocked()) {} else if (width !== null) this.layout.setWidth(width, { persist: false });
|
|
188
185
|
else this.layout.registerWidth(LAYOUT_DEFAULT_WIDTH$1);
|
|
@@ -208,7 +205,7 @@ var LayoutComponent = class LayoutComponent {
|
|
|
208
205
|
case "wide": return "p-0 sm:p-4 lg:p-12";
|
|
209
206
|
case "container": return "p-0 sm:p-4 lg:px-0 lg:py-16";
|
|
210
207
|
case "fluid": return "p-0 sm:p-6 lg:p-8";
|
|
211
|
-
default: return "
|
|
208
|
+
default: return "";
|
|
212
209
|
}
|
|
213
210
|
}
|
|
214
211
|
frameSizeClasses() {
|
|
@@ -448,7 +448,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
448
448
|
type: ThemeSpaceService,
|
|
449
449
|
decorators: [{ type: Service }]
|
|
450
450
|
});
|
|
451
|
-
const UI_THEME_RELEASE_VERSION = "22.2.
|
|
451
|
+
const UI_THEME_RELEASE_VERSION = "22.2.14";
|
|
452
452
|
const THEME_STORAGE_VERSION_KEY = "theme-storage-version";
|
|
453
453
|
function validateThemeStorageReset(options) {
|
|
454
454
|
if ("storageVersion" in options) throw new Error("storageVersion was removed. Migrate to storageReset: { preserveKeys: [] }; the package supplies the version.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ojiepermana/angular",
|
|
3
|
-
"version": "22.2.
|
|
3
|
+
"version": "22.2.14",
|
|
4
4
|
"description": "Accessible, tree-shakable Angular 22 design system from ojiepermana: UI components, charts, navigation shells, theme tokens, and an OpenAPI SDK generator.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -508,5 +508,5 @@
|
|
|
508
508
|
"module": "fesm2022/ojiepermana-angular.mjs",
|
|
509
509
|
"typings": "types/ojiepermana-angular.d.ts",
|
|
510
510
|
"type": "module",
|
|
511
|
-
"gitHead": "
|
|
511
|
+
"gitHead": "6543e9e47023dace11af78cd9bcd430406df3e0a"
|
|
512
512
|
}
|
|
@@ -3,7 +3,6 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
import { LAYOUT_APPEARANCES, LAYOUT_APPEARANCE_STORAGE_KEY, LAYOUT_DEFAULT_APPEARANCE, LAYOUT_DEFAULT_SURFACE, LAYOUT_DEFAULT_TYPE, LAYOUT_DEFAULT_WIDTH, LAYOUT_LOCKED_WIDTH, LAYOUT_SURFACES, LAYOUT_SURFACE_STORAGE_KEY, LAYOUT_TYPES, LAYOUT_TYPE_STORAGE_KEY, LAYOUT_WIDTHS, LAYOUT_WIDTH_STORAGE_KEY, LayoutAppearance, LayoutContextValue, LayoutSurface, LayoutType, LayoutWidth, isUiLayoutAppearance, isUiLayoutSurface, isUiLayoutType, isUiLayoutWidth } from "@ojiepermana/angular/theme/layout/types";
|
|
4
4
|
export declare class LayoutComponent {
|
|
5
5
|
protected readonly layout: LayoutService$1;
|
|
6
|
-
private readonly themeRadius;
|
|
7
6
|
readonly surface: import("@angular/core").InputSignal<"flat" | "grid" | "grid-line" | "honeycomb" | "matrix" | "circuit" | "line-vertical" | "line-horizontal" | null>;
|
|
8
7
|
readonly appearance: import("@angular/core").InputSignal<"flat" | "border-rail" | null>;
|
|
9
8
|
readonly layoutAppearanceAttribute: import("@angular/core").InputSignal<"flat" | "border-rail" | null>;
|