Skip to content

Commit

Permalink
Merge pull request #643 from wenzhixin/develop
Browse files Browse the repository at this point in the history
v2.0.9
  • Loading branch information
wenzhixin authored Feb 17, 2025
2 parents cd6c057 + 2fa1f02 commit b23839c
Show file tree
Hide file tree
Showing 73 changed files with 4,126 additions and 6,871 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
## Changelog

### 2.0.9

- **New:** Added `vue3` support.
- **Update:** Fixed `v-model` select bug with proxy object.
- **Update:** Fixed children's element change, not updated the select bug.
- **Update:** Fixed data without clone change refresh the select bug.
- **Update:** Fix data watch deep caused by the selected bug.
- **Update:** Improved the indentation style of multiple select with group mode.

### 1.7.0

- **New:** Added `onBeforeClick` event.
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ Multiple select is a jQuery plugin to select multiple elements with checkboxes :

To get started checkout examples and documentation at <http://multiple-select.wenzhixin.net.cn>.

> [!NOTE]
> Version 2.x of this package is compatible with Vue 3 default. If you're still on Vue 2, install the previous version with `npm i multiple-select@1`
## Examples

* http://multiple-select.wenzhixin.net.cn/examples
Expand Down
55 changes: 27 additions & 28 deletions dist/locale/multiple-select-cz-CS.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};

var check = function (it) {
return it && it.Math == Math && it;
return it && it.Math === Math && it;
};

// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
Expand All @@ -18,8 +18,9 @@
// eslint-disable-next-line no-restricted-globals -- safe
check(typeof self == 'object' && self) ||
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
// eslint-disable-next-line no-new-func -- fallback
(function () { return this; })() || commonjsGlobal || Function('return this')();
(function () { return this; })() || Function('return this')();

var objectGetOwnPropertyDescriptor = {};

Expand All @@ -36,7 +37,7 @@
// Detect IE8's incomplete defineProperty implementation
var descriptors = !fails$a(function () {
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
});

var fails$9 = fails$b;
Expand Down Expand Up @@ -115,7 +116,7 @@
// eslint-disable-next-line no-prototype-builtins -- safe
return !$Object$3('z').propertyIsEnumerable(0);
}) ? function (it) {
return classof$3(it) == 'String' ? split(it, '') : $Object$3(it);
return classof$3(it) === 'String' ? split(it, '') : $Object$3(it);
} : $Object$3;

// we can't use just `it == null` since of `document.all` special case
Expand All @@ -131,7 +132,7 @@
// `RequireObjectCoercible` abstract operation
// https://tc39.es/ecma262/#sec-requireobjectcoercible
var requireObjectCoercible$2 = function (it) {
if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it);
if (isNullOrUndefined$1(it)) throw new $TypeError$6("Can't call method on " + it);
return it;
};

Expand Down Expand Up @@ -223,7 +224,6 @@
var engineV8Version = version;

/* eslint-disable es/no-symbol -- required for testing */

var V8_VERSION$2 = engineV8Version;
var fails$7 = fails$b;
var global$8 = global$b;
Expand All @@ -232,7 +232,7 @@

// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
var symbol = Symbol();
var symbol = Symbol('symbol detection');
// Chrome 38 Symbol has incorrect toString conversion
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
Expand All @@ -243,7 +243,6 @@
});

/* eslint-disable es/no-symbol -- required for testing */

var NATIVE_SYMBOL$1 = symbolConstructorDetection;

var useSymbolAsUid = NATIVE_SYMBOL$1
Expand Down Expand Up @@ -282,7 +281,7 @@
// `Assert: IsCallable(argument) is true`
var aCallable$1 = function (argument) {
if (isCallable$8(argument)) return argument;
throw $TypeError$5(tryToString(argument) + ' is not a function');
throw new $TypeError$5(tryToString(argument) + ' is not a function');
};

var aCallable = aCallable$1;
Expand All @@ -308,7 +307,7 @@
if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val;
if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val;
if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val;
throw $TypeError$4("Can't convert object to primitive value");
throw new $TypeError$4("Can't convert object to primitive value");
};

var shared$3 = {exports: {}};
Expand Down Expand Up @@ -339,10 +338,10 @@
(shared$3.exports = function (key, value) {
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
})('versions', []).push({
version: '3.30.2',
version: '3.33.3',
mode: 'global',
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE',
license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
source: 'https://github.com/zloirock/core-js'
});

Expand Down Expand Up @@ -419,7 +418,7 @@
if (pref === undefined) pref = 'default';
result = call$1(exoticToPrim, input, pref);
if (!isObject$5(result) || isSymbol$1(result)) return result;
throw $TypeError$3("Can't convert object to primitive value");
throw new $TypeError$3("Can't convert object to primitive value");
}
if (pref === undefined) pref = 'number';
return ordinaryToPrimitive(input, pref);
Expand Down Expand Up @@ -455,7 +454,7 @@
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
return Object.defineProperty(createElement('div'), 'a', {
get: function () { return 7; }
}).a != 7;
}).a !== 7;
});

var DESCRIPTORS$5 = descriptors;
Expand Down Expand Up @@ -493,7 +492,7 @@
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
value: 42,
writable: false
}).prototype != 42;
}).prototype !== 42;
});

var isObject$3 = isObject$7;
Expand All @@ -504,7 +503,7 @@
// `Assert: Type(argument) is Object`
var anObject$2 = function (argument) {
if (isObject$3(argument)) return argument;
throw $TypeError$2($String$1(argument) + ' is not an object');
throw new $TypeError$2($String$1(argument) + ' is not an object');
};

var DESCRIPTORS$3 = descriptors;
Expand Down Expand Up @@ -546,7 +545,7 @@
if (IE8_DOM_DEFINE) try {
return $defineProperty(O, P, Attributes);
} catch (error) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
if ('value' in Attributes) O[P] = Attributes.value;
return O;
};
Expand Down Expand Up @@ -637,7 +636,7 @@
return function (it) {
var state;
if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
} return state;
};
};
Expand All @@ -650,7 +649,7 @@
store.set = store.set;
/* eslint-enable no-self-assign -- prototype methods protection */
set = function (it, metadata) {
if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
metadata.facade = it;
store.set(it, metadata);
return metadata;
Expand All @@ -665,7 +664,7 @@
var STATE = sharedKey('state');
hiddenKeys$2[STATE] = true;
set = function (it, metadata) {
if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
metadata.facade = it;
createNonEnumerableProperty$1(it, STATE, metadata);
return metadata;
Expand Down Expand Up @@ -838,10 +837,10 @@
var value;
// Array#includes uses SameValueZero equality algorithm
// eslint-disable-next-line no-self-compare -- NaN check
if (IS_INCLUDES && el != el) while (length > index) {
if (IS_INCLUDES && el !== el) while (length > index) {
value = O[index++];
// eslint-disable-next-line no-self-compare -- NaN check
if (value != value) return true;
if (value !== value) return true;
// Array#indexOf ignores holes, Array#includes - not
} else for (;length > index; index++) {
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
Expand Down Expand Up @@ -946,8 +945,8 @@

var isForced$1 = function (feature, detection) {
var value = data[normalize(feature)];
return value == POLYFILL ? true
: value == NATIVE ? false
return value === POLYFILL ? true
: value === NATIVE ? false
: isCallable$2(detection) ? fails$3(detection)
: !!detection;
};
Expand Down Expand Up @@ -1023,7 +1022,7 @@
// https://tc39.es/ecma262/#sec-isarray
// eslint-disable-next-line es/no-array-isarray -- safe
var isArray$2 = Array.isArray || function isArray(argument) {
return classof$2(argument) == 'Array';
return classof$2(argument) === 'Array';
};

var $TypeError = TypeError;
Expand Down Expand Up @@ -1062,7 +1061,7 @@
var $Object = Object;

// ES3 wrong here
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';

// fallback for IE11 Script Access Denied error
var tryGet = function (it, key) {
Expand All @@ -1080,7 +1079,7 @@
// builtinTag case
: CORRECT_ARGUMENTS ? classofRaw(O)
// ES3 arguments fallback
: (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
: (result = classofRaw(O)) === 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
};

var uncurryThis = functionUncurryThis;
Expand All @@ -1095,7 +1094,7 @@
var construct = getBuiltIn('Reflect', 'construct');
var constructorRegExp = /^\s*(?:class|function)\b/;
var exec = uncurryThis(constructorRegExp.exec);
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);

var isConstructorModern = function isConstructor(argument) {
if (!isCallable(argument)) return false;
Expand Down
Loading

0 comments on commit b23839c

Please sign in to comment.