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

@advanced-rest-client/arc-fit-mixin

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@advanced-rest-client/arc-fit-mixin - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

.vscode/settings.json

20

CHANGELOG.md

@@ -134,1 +134,21 @@ ## [1.0.2](https://github.com/advanced-rest-client/arc-fit-mixin/compare/1.0.0...1.0.2) (2019-07-25)

<a name="1.2.1"></a>
## [1.2.1](https://github.com/advanced-rest-client/arc-fit-mixin/compare/1.1.0...1.2.1) (2020-10-02)
### Build
* bump version [edfc5d0](https://github.com/advanced-rest-client/arc-fit-mixin/commit/edfc5d0cf001e0240b7549267c58741d22b751db) by Carolina Wright
### Update
* updating typpings [9f362c1](https://github.com/advanced-rest-client/arc-fit-mixin/commit/9f362c12f280c5e1cf48eaebbd35507a4f378503) by Pawel
* [ci skip] automated merge master->stage. syncing main branches [4a0135c](https://github.com/advanced-rest-client/arc-fit-mixin/commit/4a0135ca9569fe3368009bbe1362c1f426a20353) by Ci agent
* [ci skip] automated merge master->stage. syncing main branches [ebb9bc4](https://github.com/advanced-rest-client/arc-fit-mixin/commit/ebb9bc4880489f2833c2b0557878e836267be335) by Ci agent
### Features
* APIC-400 fit width to position target [6269568](https://github.com/advanced-rest-client/arc-fit-mixin/commit/626956896384afa8864a1882a9209519f45c2375) by Carolina Wright

2

index.d.ts

@@ -1,1 +0,1 @@

export {ArcFitMixin} from './src/ArcFitMixin';
export {ArcFitMixin, ArcFitMixinConstructor} from './src/ArcFitMixin';
{
"name": "@advanced-rest-client/arc-fit-mixin",
"description": "arc-fit-mixin is a port of iron-fit-behavior that works with web components",
"version": "1.2.0",
"version": "1.2.1",
"license": "Apache-2.0",

@@ -34,7 +34,5 @@ "main": "index.js",

"format:eslint": "eslint --ext .js,.html . --fix --ignore-path .gitignore",
"lint:prettier": "prettier \"**/*.js\" --check --ignore-path .gitignore",
"format:prettier": "prettier \"**/*.js\" --write --ignore-path .gitignore",
"lint:types": "tsc",
"lint": "npm run lint:eslint && npm run lint:prettier",
"format": "npm run format:eslint && npm run format:prettier",
"lint": "npm run lint:eslint",
"format": "npm run format:eslint",
"test": "karma start --coverage",

@@ -45,21 +43,20 @@ "test:watch": "karma start --auto-watch=true --single-run=false",

"dependencies": {
"@open-wc/dedupe-mixin": "^1.2.17"
"@open-wc/dedupe-mixin": "^1.3.0"
},
"devDependencies": {
"@advanced-rest-client/arc-demo-helper": "^2.0.0",
"@advanced-rest-client/testing-karma-sl": "^1.3.1",
"@open-wc/eslint-config": "^2.0.0",
"@open-wc/testing": "^2.5.17",
"@open-wc/testing-karma": "^3.4.2",
"@advanced-rest-client/arc-demo-helper": "^2.2.0",
"@advanced-rest-client/testing-karma-sl": "^1.4.2",
"@open-wc/eslint-config": "^3.0.0",
"@open-wc/testing": "^2.5.27",
"@open-wc/testing-karma": "^4.0.7",
"deepmerge": "^4.2.2",
"es-dev-server": "^1.54.1",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.11.0",
"husky": "^4.2.5",
"lint-staged": "^10.2.6",
"lit-element": "^2.3.1",
"lit-html": "^1.2.1",
"prettier": "^2.0.5",
"sinon": "^9.0.2",
"typescript": "^3.9.2",
"es-dev-server": "^1.57.6",
"eslint": "^7.10.0",
"eslint-config-prettier": "^6.12.0",
"husky": "^4.3.0",
"lint-staged": "^10.4.0",
"lit-element": "^2.4.0",
"lit-html": "^1.3.0",
"sinon": "^9.1.0",
"typescript": "^4.0.3",
"typescript-lit-html-plugin": "^0.9.0"

@@ -88,6 +85,2 @@ },

},
"prettier": {
"singleQuote": true,
"arrowParens": "always"
},
"husky": {

@@ -94,0 +87,0 @@ "hooks": {

@@ -49,2 +49,3 @@ declare function ArcFitMixin<T extends new (...args: any[]) => {}>(base: T): T & ArcFitMixinConstructor;

* it.
* @attribute
*/

@@ -62,2 +63,3 @@ noOverlap: boolean;

* "center", "auto".
* @attribute
*/

@@ -69,2 +71,3 @@ horizontalAlign: string;

* "middle", "auto".
* @attribute
*/

@@ -76,2 +79,3 @@ verticalAlign: string;

* values which minimize the cropping.
* @attribute
*/

@@ -92,2 +96,3 @@ dynamicAlign: boolean;

* offset will move the dropdown to the right; a positive one, to the left.
* @attribute
*/

@@ -108,2 +113,3 @@ horizontalOffset: number;

* offset will move the dropdown downwards; a positive one, upwards.
* @attribute
*/

@@ -114,4 +120,10 @@ verticalOffset: number;

* Set to true to auto-fit on attach.
* @attribute
*/
autoFitOnAttach: boolean;
/**
* When set it fits the positioning target width.
* @attribute
*/
fitPositionTarget: boolean;

@@ -118,0 +130,0 @@ _fitInfo: FitInfo;

@@ -100,3 +100,6 @@ import { dedupeMixin } from '@open-wc/dedupe-mixin';

_fitInfo: { type: Object },
fitPositionTarget: { type: Boolean }
/**
* When set it fits the positioning target width.
*/
fitPositionTarget: { type: Boolean },
};

@@ -113,2 +116,3 @@ }

} else {
// @ts-ignore
fitWidth = this.fitInto.getBoundingClientRect().width;

@@ -127,2 +131,4 @@ }

} else {
// @ts-ignore
// @ts-ignore
fitHeight = this.fitInto.getBoundingClientRect().height;

@@ -141,2 +147,3 @@ }

} else {
// @ts-ignore
fitLeft = this.fitInto.getBoundingClientRect().left;

@@ -155,2 +162,3 @@ }

} else {
// @ts-ignore
fitTop = this.fitInto.getBoundingClientRect().top;

@@ -319,3 +327,3 @@ }

}
// Memoize this to avoid expensive calculations & relayouts.
// Memorize this to avoid expensive calculations & relayouts.
// Make sure we do it only once

@@ -348,3 +356,2 @@ if (typeof this._isRTL === 'undefined') {

super();
this.sizingTarget = this;

@@ -355,2 +362,3 @@ this.fitInto = window;

this.autoFitOnAttach = false;
this.fitPositionTarget = false;
}

@@ -357,0 +365,0 @@

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