Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pitaya-components/app

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pitaya-components/app - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

7

dist/commonjs/elements/pi-app.d.ts
import { NavigationInstruction, PipelineResult } from "aurelia-router";
export declare class NavigationLevelHistory
{
get current(): number | undefined;
get previous(): number | undefined;
}
export declare class PiApp

@@ -4,0 +11,0 @@ {

23

dist/commonjs/elements/pi-app.js

@@ -34,2 +34,15 @@ "use strict";

let currentInstance;
const navigationLevel = {
current: undefined,
previous: undefined
};
class NavigationLevelHistory {
get current() {
return navigationLevel.current;
}
get previous() {
return navigationLevel.previous;
}
}
exports.NavigationLevelHistory = NavigationLevelHistory;
let PiApp = class PiApp {

@@ -40,6 +53,2 @@ constructor(_eventAggregator, _router, _routerConfiguration) {

this._routerConfiguration = _routerConfiguration;
this.navigationLevel = {
current: 0,
previous: 0
};
this._transitionAnimationClass = "pi-app--transition-equal-to-equal";

@@ -124,2 +133,4 @@ this._isOnline = navigator.onLine;

if (isFirstRoute) {
const nextLevel = (instruction.config.navModel.settings.level || 0);
navigationLevel.current = nextLevel;
return;

@@ -130,4 +141,4 @@ }

const nextLevel = (instruction.config.navModel.settings.level || 0);
this.navigationLevel.previous = previousLevel;
this.navigationLevel.current = nextLevel;
navigationLevel.previous = previousLevel;
navigationLevel.current = nextLevel;
if (previousLevel > nextLevel) {

@@ -134,0 +145,0 @@ return this._transitionAnimationClass = "pi-app--transition-lower-to-higher";

@@ -32,5 +32,5 @@ "use strict";

let PiView = class PiView {
constructor(_rootElement, _parentComponentApp, _queue, _router, _pitayaConfig) {
constructor(_rootElement, _levelHistory, _queue, _router, _pitayaConfig) {
this._rootElement = _rootElement;
this._parentComponentApp = _parentComponentApp;
this._levelHistory = _levelHistory;
this._queue = _queue;

@@ -91,3 +91,4 @@ this._router = _router;

if (scrollHistoryMode === "onlyBack") {
const higherToLower = this._parentComponentApp.navigationLevel.previous < this._level;
const higherToLower = this._levelHistory.previous < this._level;
debugger;
if (higherToLower) {

@@ -169,3 +170,3 @@ return;

__metadata("design:paramtypes", [Element,
pi_app_1.PiApp,
pi_app_1.NavigationLevelHistory,
aurelia_framework_1.TaskQueue,

@@ -172,0 +173,0 @@ aurelia_router_1.Router,

import { NavigationInstruction, PipelineResult } from "aurelia-router";
export declare class NavigationLevelHistory
{
get current(): number | undefined;
get previous(): number | undefined;
}
export declare class PiApp

@@ -4,0 +11,0 @@ {

@@ -32,2 +32,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

let currentInstance;
const navigationLevel = {
current: undefined,
previous: undefined
};
export class NavigationLevelHistory {
get current() {
return navigationLevel.current;
}
get previous() {
return navigationLevel.previous;
}
}
let PiApp = class PiApp {

@@ -38,6 +50,2 @@ constructor(_eventAggregator, _router, _routerConfiguration) {

this._routerConfiguration = _routerConfiguration;
this.navigationLevel = {
current: 0,
previous: 0
};
this._transitionAnimationClass = "pi-app--transition-equal-to-equal";

@@ -122,2 +130,4 @@ this._isOnline = navigator.onLine;

if (isFirstRoute) {
const nextLevel = (instruction.config.navModel.settings.level || 0);
navigationLevel.current = nextLevel;
return;

@@ -128,4 +138,4 @@ }

const nextLevel = (instruction.config.navModel.settings.level || 0);
this.navigationLevel.previous = previousLevel;
this.navigationLevel.current = nextLevel;
navigationLevel.previous = previousLevel;
navigationLevel.current = nextLevel;
if (previousLevel > nextLevel) {

@@ -132,0 +142,0 @@ return this._transitionAnimationClass = "pi-app--transition-lower-to-higher";

@@ -24,3 +24,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

import { PitayaConfiguration } from "../configuration";
import { PiApp } from "../elements/pi-app";
import { NavigationLevelHistory } from "../elements/pi-app";
usePropertyTypeForBindable(true);

@@ -31,5 +31,5 @@ usePropertyTypeForObservable(true);

let PiView = class PiView {
constructor(_rootElement, _parentComponentApp, _queue, _router, _pitayaConfig) {
constructor(_rootElement, _levelHistory, _queue, _router, _pitayaConfig) {
this._rootElement = _rootElement;
this._parentComponentApp = _parentComponentApp;
this._levelHistory = _levelHistory;
this._queue = _queue;

@@ -90,3 +90,4 @@ this._router = _router;

if (scrollHistoryMode === "onlyBack") {
const higherToLower = this._parentComponentApp.navigationLevel.previous < this._level;
const higherToLower = this._levelHistory.previous < this._level;
debugger;
if (higherToLower) {

@@ -168,3 +169,3 @@ return;

__metadata("design:paramtypes", [Element,
PiApp,
NavigationLevelHistory,
TaskQueue,

@@ -171,0 +172,0 @@ Router,

{
"name": "@pitaya-components/app",
"version": "0.0.11",
"version": "0.0.12",
"description": "Aurelia plugin which helps building faster views and provides additional utility functionality.",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc