@kris701/ez-ui 1.1.17 → 1.1.18

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.
@@ -5168,6 +5168,8 @@ class EzUISideBar {
5168
5168
  ...(ngDevMode ? [{ debugName: "sidebarFooterItems" }] : /* istanbul ignore next */ []));
5169
5169
  haveMoved = signal(false, /* @ts-ignore */
5170
5170
  ...(ngDevMode ? [{ debugName: "haveMoved" }] : /* istanbul ignore next */ []));
5171
+ baseRoute = signal("/", /* @ts-ignore */
5172
+ ...(ngDevMode ? [{ debugName: "baseRoute" }] : /* istanbul ignore next */ []));
5171
5173
  constructor(layoutService, router) {
5172
5174
  this.layoutService = layoutService;
5173
5175
  this.router = router;
@@ -5180,7 +5182,7 @@ class EzUISideBar {
5180
5182
  var sidebarFooterItems = [...this.sidebarFooterItems()];
5181
5183
  this.hideEmptySections(sidebarItems);
5182
5184
  this.hideEmptySections(sidebarFooterItems);
5183
- if (!this.haveMoved() && this.router.routerState.snapshot.url == '/')
5185
+ if (!this.haveMoved() && this.router.routerState.snapshot.url == this.baseRoute())
5184
5186
  this.gotoFirstPage(sidebarItems);
5185
5187
  this.setActiveRoute(sidebarItems);
5186
5188
  this.setActiveRoute(sidebarFooterItems);
@@ -5223,7 +5225,7 @@ class EzUISideBar {
5223
5225
  }
5224
5226
  }
5225
5227
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: EzUISideBar, deps: [{ token: EzUILayoutService }, { token: i2$2.Router }], target: i0.ɵɵFactoryTarget.Component });
5226
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: EzUISideBar, isStandalone: true, selector: "ezui-sidebar", inputs: { sidebarItems: "sidebarItems", sidebarFooterItems: "sidebarFooterItems" }, ngImport: i0, template: `
5228
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: EzUISideBar, isStandalone: true, selector: "ezui-sidebar", inputs: { sidebarItems: "sidebarItems", sidebarFooterItems: "sidebarFooterItems", baseRoute: "baseRoute" }, ngImport: i0, template: `
5227
5229
  <aside
5228
5230
  style="height:100%"
5229
5231
  tuitheme=""
@@ -5269,6 +5271,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
5269
5271
  type: Input
5270
5272
  }], sidebarFooterItems: [{
5271
5273
  type: Input
5274
+ }], baseRoute: [{
5275
+ type: Input
5272
5276
  }] } });
5273
5277
 
5274
5278
  class EzUITopBar {
@@ -5342,6 +5346,8 @@ class EzUILayout {
5342
5346
  ...(ngDevMode ? [{ debugName: "sidebarItems" }] : /* istanbul ignore next */ []));
5343
5347
  sidebarFooterItems = signal([], /* @ts-ignore */
5344
5348
  ...(ngDevMode ? [{ debugName: "sidebarFooterItems" }] : /* istanbul ignore next */ []));
5349
+ baseRoute = signal("/", /* @ts-ignore */
5350
+ ...(ngDevMode ? [{ debugName: "baseRoute" }] : /* istanbul ignore next */ []));
5345
5351
  topbarright;
5346
5352
  topbarlogo;
5347
5353
  sidebar = viewChild("sidebar", /* @ts-ignore */
@@ -5349,12 +5355,12 @@ class EzUILayout {
5349
5355
  topbar = viewChild("topbar", /* @ts-ignore */
5350
5356
  ...(ngDevMode ? [{ debugName: "topbar" }] : /* istanbul ignore next */ []));
5351
5357
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: EzUILayout, deps: [], target: i0.ɵɵFactoryTarget.Component });
5352
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.0", type: EzUILayout, isStandalone: true, selector: "ezui-layout", inputs: { sidebarItems: "sidebarItems", sidebarFooterItems: "sidebarFooterItems" }, queries: [{ propertyName: "topbarright", first: true, predicate: ["topbarright"], descendants: true }, { propertyName: "topbarlogo", first: true, predicate: ["topbarlogo"], descendants: true }], viewQueries: [{ propertyName: "sidebar", first: true, predicate: ["sidebar"], descendants: true, isSignal: true }, { propertyName: "topbar", first: true, predicate: ["topbar"], descendants: true, isSignal: true }], ngImport: i0, template: `
5358
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.0", type: EzUILayout, isStandalone: true, selector: "ezui-layout", inputs: { sidebarItems: "sidebarItems", sidebarFooterItems: "sidebarFooterItems", baseRoute: "baseRoute" }, queries: [{ propertyName: "topbarright", first: true, predicate: ["topbarright"], descendants: true }, { propertyName: "topbarlogo", first: true, predicate: ["topbarlogo"], descendants: true }], viewQueries: [{ propertyName: "sidebar", first: true, predicate: ["sidebar"], descendants: true, isSignal: true }, { propertyName: "topbar", first: true, predicate: ["topbar"], descendants: true, isSignal: true }], ngImport: i0, template: `
5353
5359
  <tui-root class="rootContainer">
5354
5360
  <div class="layout-wrapper">
5355
5361
  <ezui-topbar #topbar></ezui-topbar>
5356
5362
  <div class="layout-wrapper-split">
5357
- <ezui-sidebar [sidebarItems]="sidebarItems" [sidebarFooterItems]="sidebarFooterItems" #sidebar></ezui-sidebar>
5363
+ <ezui-sidebar [sidebarItems]="sidebarItems" [sidebarFooterItems]="sidebarFooterItems" [baseRoute]="baseRoute" #sidebar></ezui-sidebar>
5358
5364
  <div class="layout-main-container">
5359
5365
  <tui-scrollbar class="layout-main">
5360
5366
  <router-outlet></router-outlet>
@@ -5363,7 +5369,7 @@ class EzUILayout {
5363
5369
  </div>
5364
5370
  </div>
5365
5371
  </tui-root>
5366
- `, isInline: true, styles: ["::ng-deep .rootContainer .t-root-content{display:flex;height:100vh;width:100vw}.layout-wrapper{display:flex;flex-direction:column;height:100vh;min-height:100vh;max-height:100vh}.layout-wrapper-split{display:flex;flex-direction:row;width:100%;height:100%;overflow:hidden;max-width:100vw}.layout-main-container{display:flex;flex-direction:column;min-height:inherit;max-height:inherit;width:100%;justify-content:space-between;overflow:hidden}.layout-main{flex:1 1 auto;display:flex}::ng-deep .layout-main>.t-content{padding:1rem;display:flex;block-size:auto!important;box-sizing:border-box}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$2.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: EzUITopBar, selector: "ezui-topbar" }, { kind: "component", type: EzUISideBar, selector: "ezui-sidebar", inputs: ["sidebarItems", "sidebarFooterItems"] }, { kind: "component", type: TuiScrollbar, selector: "tui-scrollbar" }, { kind: "component", type: TuiRoot, selector: "tui-root" }] });
5372
+ `, isInline: true, styles: ["::ng-deep .rootContainer .t-root-content{display:flex;height:100vh;width:100vw}.layout-wrapper{display:flex;flex-direction:column;height:100vh;min-height:100vh;max-height:100vh}.layout-wrapper-split{display:flex;flex-direction:row;width:100%;height:100%;overflow:hidden;max-width:100vw}.layout-main-container{display:flex;flex-direction:column;min-height:inherit;max-height:inherit;width:100%;justify-content:space-between;overflow:hidden}.layout-main{flex:1 1 auto;display:flex}::ng-deep .layout-main>.t-content{padding:1rem;display:flex;block-size:auto!important;box-sizing:border-box}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$2.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: EzUITopBar, selector: "ezui-topbar" }, { kind: "component", type: EzUISideBar, selector: "ezui-sidebar", inputs: ["sidebarItems", "sidebarFooterItems", "baseRoute"] }, { kind: "component", type: TuiScrollbar, selector: "tui-scrollbar" }, { kind: "component", type: TuiRoot, selector: "tui-root" }] });
5367
5373
  }
5368
5374
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: EzUILayout, decorators: [{
5369
5375
  type: Component,
@@ -5372,7 +5378,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
5372
5378
  <div class="layout-wrapper">
5373
5379
  <ezui-topbar #topbar></ezui-topbar>
5374
5380
  <div class="layout-wrapper-split">
5375
- <ezui-sidebar [sidebarItems]="sidebarItems" [sidebarFooterItems]="sidebarFooterItems" #sidebar></ezui-sidebar>
5381
+ <ezui-sidebar [sidebarItems]="sidebarItems" [sidebarFooterItems]="sidebarFooterItems" [baseRoute]="baseRoute" #sidebar></ezui-sidebar>
5376
5382
  <div class="layout-main-container">
5377
5383
  <tui-scrollbar class="layout-main">
5378
5384
  <router-outlet></router-outlet>
@@ -5386,6 +5392,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
5386
5392
  type: Input
5387
5393
  }], sidebarFooterItems: [{
5388
5394
  type: Input
5395
+ }], baseRoute: [{
5396
+ type: Input
5389
5397
  }], topbarright: [{
5390
5398
  type: ContentChild,
5391
5399
  args: ['topbarright', { static: false }]