@prof-dev/improved-select
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -84,3 +84,3 @@ "use strict"; | ||
var dom_1 = require("@floating-ui/dom"); | ||
var utils_1 = require("./utils"); | ||
var lodash_1 = require("lodash"); | ||
var improvedSelectElementsMap = new Map(); | ||
@@ -313,3 +313,3 @@ var Select = /** @class */ (function (_super) { | ||
}); | ||
this.element.classList.toggle("is-changed", (0, utils_1.arrayEqual)(this.defaultSelection, selectedOptions_1.map(function (option) { return option.index; })) === false); | ||
this.element.classList.toggle("is-changed", (0, lodash_1.isEqual)(this.defaultSelection, selectedOptions_1.map(function (option) { return option.index; })) === false); | ||
} | ||
@@ -427,3 +427,3 @@ }; | ||
for (var improvedSelectElementsMap_1 = __values(improvedSelectElementsMap), improvedSelectElementsMap_1_1 = improvedSelectElementsMap_1.next(); !improvedSelectElementsMap_1_1.done; improvedSelectElementsMap_1_1 = improvedSelectElementsMap_1.next()) { | ||
var _b = __read(improvedSelectElementsMap_1_1.value, 2), _ = _b[0], improvedSelect = _b[1]; | ||
var _b = __read(improvedSelectElementsMap_1_1.value, 2), _1 = _b[0], improvedSelect = _b[1]; | ||
var _c = improvedSelect.info(), element = _c.element, isActive = _c.isActive; | ||
@@ -430,0 +430,0 @@ if (isActive === true && |
{ | ||
"name": "@prof-dev/improved-select", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Helper for live clicks events management", | ||
@@ -27,2 +27,3 @@ "main": "lib/ImprovedSelect.js", | ||
"devDependencies": { | ||
"@types/lodash": "^4.14.191", | ||
"rimraf": "^3.0.2", | ||
@@ -34,4 +35,5 @@ "sass": "^1.57.1", | ||
"@floating-ui/dom": "^1.1.0", | ||
"@prof-dev/event-emitter": "^1.0.9" | ||
"@prof-dev/event-emitter": "^1.0.9", | ||
"lodash": "^4.17.21" | ||
} | ||
} |
@@ -9,3 +9,3 @@ import { EventEmitter } from "@prof-dev/event-emitter"; | ||
} from "@floating-ui/dom"; | ||
import { arrayEqual } from "./utils"; | ||
import { isEqual } from "lodash"; | ||
@@ -215,3 +215,3 @@ type ImprovedSelectInfo = { | ||
"is-changed", | ||
arrayEqual( | ||
isEqual( | ||
this.defaultSelection, | ||
@@ -218,0 +218,0 @@ selectedOptions.map((option) => option.index), |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83142
3
4
10
1443
+ Addedlodash@^4.17.21
+ Addedlodash@4.17.21(transitive)