@ovh-ux/ng-ovh-contact 5.2.1 → 5.2.2
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.
- package/CHANGELOG.md +11 -0
- package/dist/cjs/index.js +18 -83
- package/dist/esm/index.js +18 -83
- package/dist/umd/ng-ovh-contact.js +18 -83
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.2.2](https://github.com/ovh/manager/compare/@ovh-ux/ng-ovh-contact@5.2.1...@ovh-ux/ng-ovh-contact@5.2.2) (2024-10-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ng-ovh-contact:** fix the search field ([#13327](https://github.com/ovh/manager/issues/13327)) ([8efff22](https://github.com/ovh/manager/commit/8efff221981f608cf0deb8e96de31b005bb30bef))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [5.2.1](https://github.com/ovh/manager/compare/@ovh-ux/ng-ovh-contact@5.2.0...@ovh-ux/ng-ovh-contact@5.2.1) (2023-12-05)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @ovh-ux/ng-ovh-contact
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function cssInjecta92f4d51e7515948(css) {
|
|
2
2
|
if (!css || typeof document === 'undefined') return '';
|
|
3
3
|
const head = document.head || document.getElementsByTagName('head')[0];
|
|
4
4
|
const style = document.createElement('style');
|
|
@@ -64,6 +64,20 @@ function _objectSpread2(e) {
|
|
|
64
64
|
}
|
|
65
65
|
return e;
|
|
66
66
|
}
|
|
67
|
+
function _toPrimitive(t, r) {
|
|
68
|
+
if ("object" != typeof t || !t) return t;
|
|
69
|
+
var e = t[Symbol.toPrimitive];
|
|
70
|
+
if (void 0 !== e) {
|
|
71
|
+
var i = e.call(t, r || "default");
|
|
72
|
+
if ("object" != typeof i) return i;
|
|
73
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
74
|
+
}
|
|
75
|
+
return ("string" === r ? String : Number)(t);
|
|
76
|
+
}
|
|
77
|
+
function _toPropertyKey(t) {
|
|
78
|
+
var i = _toPrimitive(t, "string");
|
|
79
|
+
return "symbol" == typeof i ? i : i + "";
|
|
80
|
+
}
|
|
67
81
|
function _typeof(o) {
|
|
68
82
|
"@babel/helpers - typeof";
|
|
69
83
|
|
|
@@ -87,20 +101,6 @@ function _defineProperty(obj, key, value) {
|
|
|
87
101
|
}
|
|
88
102
|
return obj;
|
|
89
103
|
}
|
|
90
|
-
function _toPrimitive(input, hint) {
|
|
91
|
-
if (typeof input !== "object" || input === null) return input;
|
|
92
|
-
var prim = input[Symbol.toPrimitive];
|
|
93
|
-
if (prim !== undefined) {
|
|
94
|
-
var res = prim.call(input, hint || "default");
|
|
95
|
-
if (typeof res !== "object") return res;
|
|
96
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
97
|
-
}
|
|
98
|
-
return (hint === "string" ? String : Number)(input);
|
|
99
|
-
}
|
|
100
|
-
function _toPropertyKey(arg) {
|
|
101
|
-
var key = _toPrimitive(arg, "string");
|
|
102
|
-
return typeof key === "symbol" ? key : String(key);
|
|
103
|
-
}
|
|
104
104
|
|
|
105
105
|
/** Detect free variable `global` from Node.js. */
|
|
106
106
|
var freeGlobal = (typeof global === "undefined" ? "undefined" : _typeof(global)) == 'object' && global && global.Object === Object && global;
|
|
@@ -3814,70 +3814,6 @@ function forEach(collection, iteratee) {
|
|
|
3814
3814
|
return func(collection, castFunction(iteratee));
|
|
3815
3815
|
}
|
|
3816
3816
|
|
|
3817
|
-
/**
|
|
3818
|
-
* The base implementation of `_.filter` without support for iteratee shorthands.
|
|
3819
|
-
*
|
|
3820
|
-
* @private
|
|
3821
|
-
* @param {Array|Object} collection The collection to iterate over.
|
|
3822
|
-
* @param {Function} predicate The function invoked per iteration.
|
|
3823
|
-
* @returns {Array} Returns the new filtered array.
|
|
3824
|
-
*/
|
|
3825
|
-
function baseFilter(collection, predicate) {
|
|
3826
|
-
var result = [];
|
|
3827
|
-
baseEach$1(collection, function (value, index, collection) {
|
|
3828
|
-
if (predicate(value, index, collection)) {
|
|
3829
|
-
result.push(value);
|
|
3830
|
-
}
|
|
3831
|
-
});
|
|
3832
|
-
return result;
|
|
3833
|
-
}
|
|
3834
|
-
|
|
3835
|
-
/**
|
|
3836
|
-
* Iterates over elements of `collection`, returning an array of all elements
|
|
3837
|
-
* `predicate` returns truthy for. The predicate is invoked with three
|
|
3838
|
-
* arguments: (value, index|key, collection).
|
|
3839
|
-
*
|
|
3840
|
-
* **Note:** Unlike `_.remove`, this method returns a new array.
|
|
3841
|
-
*
|
|
3842
|
-
* @static
|
|
3843
|
-
* @memberOf _
|
|
3844
|
-
* @since 0.1.0
|
|
3845
|
-
* @category Collection
|
|
3846
|
-
* @param {Array|Object} collection The collection to iterate over.
|
|
3847
|
-
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
|
3848
|
-
* @returns {Array} Returns the new filtered array.
|
|
3849
|
-
* @see _.reject
|
|
3850
|
-
* @example
|
|
3851
|
-
*
|
|
3852
|
-
* var users = [
|
|
3853
|
-
* { 'user': 'barney', 'age': 36, 'active': true },
|
|
3854
|
-
* { 'user': 'fred', 'age': 40, 'active': false }
|
|
3855
|
-
* ];
|
|
3856
|
-
*
|
|
3857
|
-
* _.filter(users, function(o) { return !o.active; });
|
|
3858
|
-
* // => objects for ['fred']
|
|
3859
|
-
*
|
|
3860
|
-
* // The `_.matches` iteratee shorthand.
|
|
3861
|
-
* _.filter(users, { 'age': 36, 'active': true });
|
|
3862
|
-
* // => objects for ['barney']
|
|
3863
|
-
*
|
|
3864
|
-
* // The `_.matchesProperty` iteratee shorthand.
|
|
3865
|
-
* _.filter(users, ['active', false]);
|
|
3866
|
-
* // => objects for ['fred']
|
|
3867
|
-
*
|
|
3868
|
-
* // The `_.property` iteratee shorthand.
|
|
3869
|
-
* _.filter(users, 'active');
|
|
3870
|
-
* // => objects for ['barney']
|
|
3871
|
-
*
|
|
3872
|
-
* // Combining several predicates using `_.overEvery` or `_.overSome`.
|
|
3873
|
-
* _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
|
|
3874
|
-
* // => objects for ['fred', 'barney']
|
|
3875
|
-
*/
|
|
3876
|
-
function filter(collection, predicate) {
|
|
3877
|
-
var func = isArray$1(collection) ? arrayFilter : baseFilter;
|
|
3878
|
-
return func(collection, baseIteratee(predicate));
|
|
3879
|
-
}
|
|
3880
|
-
|
|
3881
3817
|
/**
|
|
3882
3818
|
* Creates a `_.find` or `_.findLast` function.
|
|
3883
3819
|
*
|
|
@@ -7482,7 +7418,6 @@ function _ngInjectExport$3($timeout, $anchorScroll, ovhContact, CONTACT_EDITION)
|
|
|
7482
7418
|
}, 100); // Setting validity on blur, right after the forcePhoneFormat has been done
|
|
7483
7419
|
};
|
|
7484
7420
|
};
|
|
7485
|
-
|
|
7486
7421
|
inputToInitialize.addEventListener('blur', getSetValidityFunction());
|
|
7487
7422
|
inputToInitialize.addEventListener('keydown', getSetValidityFunction());
|
|
7488
7423
|
inputToInitialize.addEventListener('keypress', function blockNonNumericKeys(event) {
|
|
@@ -7600,8 +7535,8 @@ function _ngInjectExport$1($q, ovhContact) {
|
|
|
7600
7535
|
}
|
|
7601
7536
|
self.searchInList = function searchInList(search) {
|
|
7602
7537
|
if (search) {
|
|
7603
|
-
return
|
|
7604
|
-
return contact.firstName.toLowerCase().
|
|
7538
|
+
return self.list.filter(function (contact) {
|
|
7539
|
+
return contact.firstName.toLowerCase().includes(search.toLowerCase()) || contact.lastName.toLowerCase().includes(search.toLowerCase());
|
|
7605
7540
|
});
|
|
7606
7541
|
}
|
|
7607
7542
|
return self.list;
|
|
@@ -8101,7 +8036,7 @@ var EDITION = {
|
|
|
8101
8036
|
var PROTOTYPE_PATH = ['organisationName', 'vat', 'spareEmail', 'email', 'birthDay', 'phone', 'cellPhone', 'fax', 'id', 'firstName', 'lastName', 'address.country', 'address.line1', 'address.line2', 'address.line3', 'address.otherDetails', 'address.zip', 'address.city', 'address.province', 'gender', 'language', 'organisationType', 'legalForm', 'birthCity', 'birthZip', 'birthCountry', 'nationality', 'nationalIdentificationNumber', 'companyNationalIdentificationNumber', 'emailConfirmation'];
|
|
8102
8037
|
var EMAIL_REGEX = "^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?.)+[a-zA-Z0-9]{2}(?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$";
|
|
8103
8038
|
|
|
8104
|
-
|
|
8039
|
+
cssInjecta92f4d51e7515948(".ovh-contact .ovh-contact-choice .ovh-contact-select {\n cursor: default;\n position: relative;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select .ui-select-match {\n height: auto;\n box-shadow: none;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select .ui-select-dropdown-container {\n position: absolute;\n left: -22px;\n right: -22px;\n border: 2px solid #e1e4df;\n border-radius: 4px;\n margin-top: -1px;\n padding: 6px 22px;\n background-color: #fff;\n z-index: 1000;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select .ui-select-dropdown-container .ui-select-dropdown {\n max-height: 200px;\n overflow-x: hidden;\n overflow-y: auto;\n border: 0;\n position: static;\n width: 100%;\n box-shadow: none;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select .ui-select-dropdown-container .ui-select-dropdown .ui-select-choices-group {\n display: block;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select.direction-up .ui-select-match {\n border-top: 0;\n margin-top: -3px;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select.direction-up .ui-select-dropdown-container {\n border-bottom: 0;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select.open:not(.direction-up) .ui-select-match {\n border-bottom: 0;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select.open:not(.direction-up) .ui-select-dropdown-container {\n border-top: 0;\n}\n.ovh-contact .ovh-contact-edit .iti {\n display: block;\n}\n.ovh-contact .ovh-contact-edit [data-ng-messages][role='alert'] {\n margin-top: 4px;\n}\n");
|
|
8105
8040
|
|
|
8106
8041
|
function __variableDynamicImportRuntime1__(path) {
|
|
8107
8042
|
switch (path) {
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function cssInjecta92f4d51e7515948(css) {
|
|
2
2
|
if (!css || typeof document === 'undefined') return '';
|
|
3
3
|
const head = document.head || document.getElementsByTagName('head')[0];
|
|
4
4
|
const style = document.createElement('style');
|
|
@@ -55,6 +55,20 @@ function _objectSpread2(e) {
|
|
|
55
55
|
}
|
|
56
56
|
return e;
|
|
57
57
|
}
|
|
58
|
+
function _toPrimitive(t, r) {
|
|
59
|
+
if ("object" != typeof t || !t) return t;
|
|
60
|
+
var e = t[Symbol.toPrimitive];
|
|
61
|
+
if (void 0 !== e) {
|
|
62
|
+
var i = e.call(t, r || "default");
|
|
63
|
+
if ("object" != typeof i) return i;
|
|
64
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
65
|
+
}
|
|
66
|
+
return ("string" === r ? String : Number)(t);
|
|
67
|
+
}
|
|
68
|
+
function _toPropertyKey(t) {
|
|
69
|
+
var i = _toPrimitive(t, "string");
|
|
70
|
+
return "symbol" == typeof i ? i : i + "";
|
|
71
|
+
}
|
|
58
72
|
function _typeof(o) {
|
|
59
73
|
"@babel/helpers - typeof";
|
|
60
74
|
|
|
@@ -78,20 +92,6 @@ function _defineProperty(obj, key, value) {
|
|
|
78
92
|
}
|
|
79
93
|
return obj;
|
|
80
94
|
}
|
|
81
|
-
function _toPrimitive(input, hint) {
|
|
82
|
-
if (typeof input !== "object" || input === null) return input;
|
|
83
|
-
var prim = input[Symbol.toPrimitive];
|
|
84
|
-
if (prim !== undefined) {
|
|
85
|
-
var res = prim.call(input, hint || "default");
|
|
86
|
-
if (typeof res !== "object") return res;
|
|
87
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
88
|
-
}
|
|
89
|
-
return (hint === "string" ? String : Number)(input);
|
|
90
|
-
}
|
|
91
|
-
function _toPropertyKey(arg) {
|
|
92
|
-
var key = _toPrimitive(arg, "string");
|
|
93
|
-
return typeof key === "symbol" ? key : String(key);
|
|
94
|
-
}
|
|
95
95
|
|
|
96
96
|
/** Detect free variable `global` from Node.js. */
|
|
97
97
|
var freeGlobal = (typeof global === "undefined" ? "undefined" : _typeof(global)) == 'object' && global && global.Object === Object && global;
|
|
@@ -3805,70 +3805,6 @@ function forEach(collection, iteratee) {
|
|
|
3805
3805
|
return func(collection, castFunction(iteratee));
|
|
3806
3806
|
}
|
|
3807
3807
|
|
|
3808
|
-
/**
|
|
3809
|
-
* The base implementation of `_.filter` without support for iteratee shorthands.
|
|
3810
|
-
*
|
|
3811
|
-
* @private
|
|
3812
|
-
* @param {Array|Object} collection The collection to iterate over.
|
|
3813
|
-
* @param {Function} predicate The function invoked per iteration.
|
|
3814
|
-
* @returns {Array} Returns the new filtered array.
|
|
3815
|
-
*/
|
|
3816
|
-
function baseFilter(collection, predicate) {
|
|
3817
|
-
var result = [];
|
|
3818
|
-
baseEach$1(collection, function (value, index, collection) {
|
|
3819
|
-
if (predicate(value, index, collection)) {
|
|
3820
|
-
result.push(value);
|
|
3821
|
-
}
|
|
3822
|
-
});
|
|
3823
|
-
return result;
|
|
3824
|
-
}
|
|
3825
|
-
|
|
3826
|
-
/**
|
|
3827
|
-
* Iterates over elements of `collection`, returning an array of all elements
|
|
3828
|
-
* `predicate` returns truthy for. The predicate is invoked with three
|
|
3829
|
-
* arguments: (value, index|key, collection).
|
|
3830
|
-
*
|
|
3831
|
-
* **Note:** Unlike `_.remove`, this method returns a new array.
|
|
3832
|
-
*
|
|
3833
|
-
* @static
|
|
3834
|
-
* @memberOf _
|
|
3835
|
-
* @since 0.1.0
|
|
3836
|
-
* @category Collection
|
|
3837
|
-
* @param {Array|Object} collection The collection to iterate over.
|
|
3838
|
-
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
|
3839
|
-
* @returns {Array} Returns the new filtered array.
|
|
3840
|
-
* @see _.reject
|
|
3841
|
-
* @example
|
|
3842
|
-
*
|
|
3843
|
-
* var users = [
|
|
3844
|
-
* { 'user': 'barney', 'age': 36, 'active': true },
|
|
3845
|
-
* { 'user': 'fred', 'age': 40, 'active': false }
|
|
3846
|
-
* ];
|
|
3847
|
-
*
|
|
3848
|
-
* _.filter(users, function(o) { return !o.active; });
|
|
3849
|
-
* // => objects for ['fred']
|
|
3850
|
-
*
|
|
3851
|
-
* // The `_.matches` iteratee shorthand.
|
|
3852
|
-
* _.filter(users, { 'age': 36, 'active': true });
|
|
3853
|
-
* // => objects for ['barney']
|
|
3854
|
-
*
|
|
3855
|
-
* // The `_.matchesProperty` iteratee shorthand.
|
|
3856
|
-
* _.filter(users, ['active', false]);
|
|
3857
|
-
* // => objects for ['fred']
|
|
3858
|
-
*
|
|
3859
|
-
* // The `_.property` iteratee shorthand.
|
|
3860
|
-
* _.filter(users, 'active');
|
|
3861
|
-
* // => objects for ['barney']
|
|
3862
|
-
*
|
|
3863
|
-
* // Combining several predicates using `_.overEvery` or `_.overSome`.
|
|
3864
|
-
* _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
|
|
3865
|
-
* // => objects for ['fred', 'barney']
|
|
3866
|
-
*/
|
|
3867
|
-
function filter(collection, predicate) {
|
|
3868
|
-
var func = isArray$1(collection) ? arrayFilter : baseFilter;
|
|
3869
|
-
return func(collection, baseIteratee(predicate));
|
|
3870
|
-
}
|
|
3871
|
-
|
|
3872
3808
|
/**
|
|
3873
3809
|
* Creates a `_.find` or `_.findLast` function.
|
|
3874
3810
|
*
|
|
@@ -7473,7 +7409,6 @@ function _ngInjectExport$3($timeout, $anchorScroll, ovhContact, CONTACT_EDITION)
|
|
|
7473
7409
|
}, 100); // Setting validity on blur, right after the forcePhoneFormat has been done
|
|
7474
7410
|
};
|
|
7475
7411
|
};
|
|
7476
|
-
|
|
7477
7412
|
inputToInitialize.addEventListener('blur', getSetValidityFunction());
|
|
7478
7413
|
inputToInitialize.addEventListener('keydown', getSetValidityFunction());
|
|
7479
7414
|
inputToInitialize.addEventListener('keypress', function blockNonNumericKeys(event) {
|
|
@@ -7591,8 +7526,8 @@ function _ngInjectExport$1($q, ovhContact) {
|
|
|
7591
7526
|
}
|
|
7592
7527
|
self.searchInList = function searchInList(search) {
|
|
7593
7528
|
if (search) {
|
|
7594
|
-
return
|
|
7595
|
-
return contact.firstName.toLowerCase().
|
|
7529
|
+
return self.list.filter(function (contact) {
|
|
7530
|
+
return contact.firstName.toLowerCase().includes(search.toLowerCase()) || contact.lastName.toLowerCase().includes(search.toLowerCase());
|
|
7596
7531
|
});
|
|
7597
7532
|
}
|
|
7598
7533
|
return self.list;
|
|
@@ -8092,7 +8027,7 @@ var EDITION = {
|
|
|
8092
8027
|
var PROTOTYPE_PATH = ['organisationName', 'vat', 'spareEmail', 'email', 'birthDay', 'phone', 'cellPhone', 'fax', 'id', 'firstName', 'lastName', 'address.country', 'address.line1', 'address.line2', 'address.line3', 'address.otherDetails', 'address.zip', 'address.city', 'address.province', 'gender', 'language', 'organisationType', 'legalForm', 'birthCity', 'birthZip', 'birthCountry', 'nationality', 'nationalIdentificationNumber', 'companyNationalIdentificationNumber', 'emailConfirmation'];
|
|
8093
8028
|
var EMAIL_REGEX = "^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?.)+[a-zA-Z0-9]{2}(?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$";
|
|
8094
8029
|
|
|
8095
|
-
|
|
8030
|
+
cssInjecta92f4d51e7515948(".ovh-contact .ovh-contact-choice .ovh-contact-select {\n cursor: default;\n position: relative;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select .ui-select-match {\n height: auto;\n box-shadow: none;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select .ui-select-dropdown-container {\n position: absolute;\n left: -22px;\n right: -22px;\n border: 2px solid #e1e4df;\n border-radius: 4px;\n margin-top: -1px;\n padding: 6px 22px;\n background-color: #fff;\n z-index: 1000;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select .ui-select-dropdown-container .ui-select-dropdown {\n max-height: 200px;\n overflow-x: hidden;\n overflow-y: auto;\n border: 0;\n position: static;\n width: 100%;\n box-shadow: none;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select .ui-select-dropdown-container .ui-select-dropdown .ui-select-choices-group {\n display: block;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select.direction-up .ui-select-match {\n border-top: 0;\n margin-top: -3px;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select.direction-up .ui-select-dropdown-container {\n border-bottom: 0;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select.open:not(.direction-up) .ui-select-match {\n border-bottom: 0;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select.open:not(.direction-up) .ui-select-dropdown-container {\n border-top: 0;\n}\n.ovh-contact .ovh-contact-edit .iti {\n display: block;\n}\n.ovh-contact .ovh-contact-edit [data-ng-messages][role='alert'] {\n margin-top: 4px;\n}\n");
|
|
8096
8031
|
|
|
8097
8032
|
function __variableDynamicImportRuntime1__(path) {
|
|
8098
8033
|
switch (path) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function cssInjecta92f4d51e7515948(css) {
|
|
2
2
|
if (!css || typeof document === 'undefined') return '';
|
|
3
3
|
const head = document.head || document.getElementsByTagName('head')[0];
|
|
4
4
|
const style = document.createElement('style');
|
|
@@ -57,6 +57,20 @@ function cssInject6c3e22e22756bed7(css) {
|
|
|
57
57
|
}
|
|
58
58
|
return e;
|
|
59
59
|
}
|
|
60
|
+
function _toPrimitive(t, r) {
|
|
61
|
+
if ("object" != typeof t || !t) return t;
|
|
62
|
+
var e = t[Symbol.toPrimitive];
|
|
63
|
+
if (void 0 !== e) {
|
|
64
|
+
var i = e.call(t, r || "default");
|
|
65
|
+
if ("object" != typeof i) return i;
|
|
66
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
67
|
+
}
|
|
68
|
+
return ("string" === r ? String : Number)(t);
|
|
69
|
+
}
|
|
70
|
+
function _toPropertyKey(t) {
|
|
71
|
+
var i = _toPrimitive(t, "string");
|
|
72
|
+
return "symbol" == typeof i ? i : i + "";
|
|
73
|
+
}
|
|
60
74
|
function _typeof(o) {
|
|
61
75
|
"@babel/helpers - typeof";
|
|
62
76
|
|
|
@@ -80,20 +94,6 @@ function cssInject6c3e22e22756bed7(css) {
|
|
|
80
94
|
}
|
|
81
95
|
return obj;
|
|
82
96
|
}
|
|
83
|
-
function _toPrimitive(input, hint) {
|
|
84
|
-
if (typeof input !== "object" || input === null) return input;
|
|
85
|
-
var prim = input[Symbol.toPrimitive];
|
|
86
|
-
if (prim !== undefined) {
|
|
87
|
-
var res = prim.call(input, hint || "default");
|
|
88
|
-
if (typeof res !== "object") return res;
|
|
89
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
90
|
-
}
|
|
91
|
-
return (hint === "string" ? String : Number)(input);
|
|
92
|
-
}
|
|
93
|
-
function _toPropertyKey(arg) {
|
|
94
|
-
var key = _toPrimitive(arg, "string");
|
|
95
|
-
return typeof key === "symbol" ? key : String(key);
|
|
96
|
-
}
|
|
97
97
|
|
|
98
98
|
/** Detect free variable `global` from Node.js. */
|
|
99
99
|
var freeGlobal = (typeof global === "undefined" ? "undefined" : _typeof(global)) == 'object' && global && global.Object === Object && global;
|
|
@@ -3807,70 +3807,6 @@ function cssInject6c3e22e22756bed7(css) {
|
|
|
3807
3807
|
return func(collection, castFunction(iteratee));
|
|
3808
3808
|
}
|
|
3809
3809
|
|
|
3810
|
-
/**
|
|
3811
|
-
* The base implementation of `_.filter` without support for iteratee shorthands.
|
|
3812
|
-
*
|
|
3813
|
-
* @private
|
|
3814
|
-
* @param {Array|Object} collection The collection to iterate over.
|
|
3815
|
-
* @param {Function} predicate The function invoked per iteration.
|
|
3816
|
-
* @returns {Array} Returns the new filtered array.
|
|
3817
|
-
*/
|
|
3818
|
-
function baseFilter(collection, predicate) {
|
|
3819
|
-
var result = [];
|
|
3820
|
-
baseEach$1(collection, function (value, index, collection) {
|
|
3821
|
-
if (predicate(value, index, collection)) {
|
|
3822
|
-
result.push(value);
|
|
3823
|
-
}
|
|
3824
|
-
});
|
|
3825
|
-
return result;
|
|
3826
|
-
}
|
|
3827
|
-
|
|
3828
|
-
/**
|
|
3829
|
-
* Iterates over elements of `collection`, returning an array of all elements
|
|
3830
|
-
* `predicate` returns truthy for. The predicate is invoked with three
|
|
3831
|
-
* arguments: (value, index|key, collection).
|
|
3832
|
-
*
|
|
3833
|
-
* **Note:** Unlike `_.remove`, this method returns a new array.
|
|
3834
|
-
*
|
|
3835
|
-
* @static
|
|
3836
|
-
* @memberOf _
|
|
3837
|
-
* @since 0.1.0
|
|
3838
|
-
* @category Collection
|
|
3839
|
-
* @param {Array|Object} collection The collection to iterate over.
|
|
3840
|
-
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
|
3841
|
-
* @returns {Array} Returns the new filtered array.
|
|
3842
|
-
* @see _.reject
|
|
3843
|
-
* @example
|
|
3844
|
-
*
|
|
3845
|
-
* var users = [
|
|
3846
|
-
* { 'user': 'barney', 'age': 36, 'active': true },
|
|
3847
|
-
* { 'user': 'fred', 'age': 40, 'active': false }
|
|
3848
|
-
* ];
|
|
3849
|
-
*
|
|
3850
|
-
* _.filter(users, function(o) { return !o.active; });
|
|
3851
|
-
* // => objects for ['fred']
|
|
3852
|
-
*
|
|
3853
|
-
* // The `_.matches` iteratee shorthand.
|
|
3854
|
-
* _.filter(users, { 'age': 36, 'active': true });
|
|
3855
|
-
* // => objects for ['barney']
|
|
3856
|
-
*
|
|
3857
|
-
* // The `_.matchesProperty` iteratee shorthand.
|
|
3858
|
-
* _.filter(users, ['active', false]);
|
|
3859
|
-
* // => objects for ['fred']
|
|
3860
|
-
*
|
|
3861
|
-
* // The `_.property` iteratee shorthand.
|
|
3862
|
-
* _.filter(users, 'active');
|
|
3863
|
-
* // => objects for ['barney']
|
|
3864
|
-
*
|
|
3865
|
-
* // Combining several predicates using `_.overEvery` or `_.overSome`.
|
|
3866
|
-
* _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
|
|
3867
|
-
* // => objects for ['fred', 'barney']
|
|
3868
|
-
*/
|
|
3869
|
-
function filter(collection, predicate) {
|
|
3870
|
-
var func = isArray$1(collection) ? arrayFilter : baseFilter;
|
|
3871
|
-
return func(collection, baseIteratee(predicate));
|
|
3872
|
-
}
|
|
3873
|
-
|
|
3874
3810
|
/**
|
|
3875
3811
|
* Creates a `_.find` or `_.findLast` function.
|
|
3876
3812
|
*
|
|
@@ -7475,7 +7411,6 @@ function cssInject6c3e22e22756bed7(css) {
|
|
|
7475
7411
|
}, 100); // Setting validity on blur, right after the forcePhoneFormat has been done
|
|
7476
7412
|
};
|
|
7477
7413
|
};
|
|
7478
|
-
|
|
7479
7414
|
inputToInitialize.addEventListener('blur', getSetValidityFunction());
|
|
7480
7415
|
inputToInitialize.addEventListener('keydown', getSetValidityFunction());
|
|
7481
7416
|
inputToInitialize.addEventListener('keypress', function blockNonNumericKeys(event) {
|
|
@@ -7593,8 +7528,8 @@ function cssInject6c3e22e22756bed7(css) {
|
|
|
7593
7528
|
}
|
|
7594
7529
|
self.searchInList = function searchInList(search) {
|
|
7595
7530
|
if (search) {
|
|
7596
|
-
return
|
|
7597
|
-
return contact.firstName.toLowerCase().
|
|
7531
|
+
return self.list.filter(function (contact) {
|
|
7532
|
+
return contact.firstName.toLowerCase().includes(search.toLowerCase()) || contact.lastName.toLowerCase().includes(search.toLowerCase());
|
|
7598
7533
|
});
|
|
7599
7534
|
}
|
|
7600
7535
|
return self.list;
|
|
@@ -8094,7 +8029,7 @@ function cssInject6c3e22e22756bed7(css) {
|
|
|
8094
8029
|
var PROTOTYPE_PATH = ['organisationName', 'vat', 'spareEmail', 'email', 'birthDay', 'phone', 'cellPhone', 'fax', 'id', 'firstName', 'lastName', 'address.country', 'address.line1', 'address.line2', 'address.line3', 'address.otherDetails', 'address.zip', 'address.city', 'address.province', 'gender', 'language', 'organisationType', 'legalForm', 'birthCity', 'birthZip', 'birthCountry', 'nationality', 'nationalIdentificationNumber', 'companyNationalIdentificationNumber', 'emailConfirmation'];
|
|
8095
8030
|
var EMAIL_REGEX = "^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?.)+[a-zA-Z0-9]{2}(?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$";
|
|
8096
8031
|
|
|
8097
|
-
|
|
8032
|
+
cssInjecta92f4d51e7515948(".ovh-contact .ovh-contact-choice .ovh-contact-select {\n cursor: default;\n position: relative;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select .ui-select-match {\n height: auto;\n box-shadow: none;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select .ui-select-dropdown-container {\n position: absolute;\n left: -22px;\n right: -22px;\n border: 2px solid #e1e4df;\n border-radius: 4px;\n margin-top: -1px;\n padding: 6px 22px;\n background-color: #fff;\n z-index: 1000;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select .ui-select-dropdown-container .ui-select-dropdown {\n max-height: 200px;\n overflow-x: hidden;\n overflow-y: auto;\n border: 0;\n position: static;\n width: 100%;\n box-shadow: none;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select .ui-select-dropdown-container .ui-select-dropdown .ui-select-choices-group {\n display: block;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select.direction-up .ui-select-match {\n border-top: 0;\n margin-top: -3px;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select.direction-up .ui-select-dropdown-container {\n border-bottom: 0;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select.open:not(.direction-up) .ui-select-match {\n border-bottom: 0;\n}\n.ovh-contact .ovh-contact-choice .ovh-contact-select.open:not(.direction-up) .ui-select-dropdown-container {\n border-top: 0;\n}\n.ovh-contact .ovh-contact-edit .iti {\n display: block;\n}\n.ovh-contact .ovh-contact-edit [data-ng-messages][role='alert'] {\n margin-top: 4px;\n}\n");
|
|
8098
8033
|
|
|
8099
8034
|
function __variableDynamicImportRuntime1__(path) {
|
|
8100
8035
|
switch (path) {
|