@ovh-ux/ng-ovh-contacts 5.3.1 → 5.3.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 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.3.2](https://github.com/ovh/manager/compare/@ovh-ux/ng-ovh-contacts@5.3.1...@ovh-ux/ng-ovh-contacts@5.3.2) (2024-08-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * add ng-inject ([#12633](https://github.com/ovh/manager/issues/12633)) ([4ef3118](https://github.com/ovh/manager/commit/4ef3118e4f1b845023e893353ae2a4955623a2d8))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [5.3.1](https://github.com/ovh/manager/compare/@ovh-ux/ng-ovh-contacts@5.3.0...@ovh-ux/ng-ovh-contacts@5.3.1) (2024-05-06)
7
18
 
8
19
  **Note:** Version bump only for package @ovh-ux/ng-ovh-contacts
package/dist/cjs/index.js CHANGED
@@ -20,6 +20,20 @@ require('@ovh-ux/ui-kit');
20
20
  require('@ovh-ux/ng-ovh-api-wrappers');
21
21
  var moment = require('moment');
22
22
 
23
+ function _toPrimitive(t, r) {
24
+ if ("object" != typeof t || !t) return t;
25
+ var e = t[Symbol.toPrimitive];
26
+ if (void 0 !== e) {
27
+ var i = e.call(t, r || "default");
28
+ if ("object" != typeof i) return i;
29
+ throw new TypeError("@@toPrimitive must return a primitive value.");
30
+ }
31
+ return ("string" === r ? String : Number)(t);
32
+ }
33
+ function _toPropertyKey(t) {
34
+ var i = _toPrimitive(t, "string");
35
+ return "symbol" == typeof i ? i : i + "";
36
+ }
23
37
  function _typeof(o) {
24
38
  "@babel/helpers - typeof";
25
39
 
@@ -51,20 +65,6 @@ function _createClass(Constructor, protoProps, staticProps) {
51
65
  });
52
66
  return Constructor;
53
67
  }
54
- function _toPrimitive(input, hint) {
55
- if (typeof input !== "object" || input === null) return input;
56
- var prim = input[Symbol.toPrimitive];
57
- if (prim !== undefined) {
58
- var res = prim.call(input, hint || "default");
59
- if (typeof res !== "object") return res;
60
- throw new TypeError("@@toPrimitive must return a primitive value.");
61
- }
62
- return (hint === "string" ? String : Number)(input);
63
- }
64
- function _toPropertyKey(arg) {
65
- var key = _toPrimitive(arg, "string");
66
- return typeof key === "symbol" ? key : String(key);
67
- }
68
68
 
69
69
  /**
70
70
  * Removes all key-value entries from the list cache.
@@ -4155,7 +4155,7 @@ var OvhContactsHelper = /*#__PURE__*/function () {
4155
4155
  function OvhContactsHelper() {
4156
4156
  _classCallCheck(this, OvhContactsHelper);
4157
4157
  }
4158
- _createClass(OvhContactsHelper, null, [{
4158
+ return _createClass(OvhContactsHelper, null, [{
4159
4159
  key: "filterSimilarContacts",
4160
4160
  value:
4161
4161
  /**
@@ -4378,7 +4378,6 @@ var OvhContactsHelper = /*#__PURE__*/function () {
4378
4378
  return contactProps;
4379
4379
  }
4380
4380
  }]);
4381
- return OvhContactsHelper;
4382
4381
  }();
4383
4382
 
4384
4383
  var OvhContact = /*#__PURE__*/function () {
@@ -4430,18 +4429,18 @@ var OvhContact = /*#__PURE__*/function () {
4430
4429
  };
4431
4430
  }
4432
4431
  }
4433
- _createClass(OvhContact, [{
4432
+ return _createClass(OvhContact, [{
4434
4433
  key: "fullName",
4435
4434
  get: function get() {
4436
4435
  return "".concat(this.firstName, " ").concat(this.lastName);
4437
4436
  }
4438
4437
  }]);
4439
- return OvhContact;
4440
4438
  }();
4441
4439
 
4442
4440
  var connectedNic;
4443
4441
  var meSchemas;
4444
4442
  var OvhContactsService = /*#__PURE__*/function () {
4443
+ OvhContactsService.$inject = ["$q", "$translate", "OvhApiMe", "OvhApiNewAccount", "target", "iceberg"];
4445
4444
  // @see /src/ovh-contacts.provider.js for dependency injections
4446
4445
  function OvhContactsService($q, $translate, OvhApiMe, OvhApiNewAccount, target, iceberg) {
4447
4446
  _classCallCheck(this, OvhContactsService);
@@ -4459,7 +4458,7 @@ var OvhContactsService = /*#__PURE__*/function () {
4459
4458
  * If none provided, it will transform the current connected nic.
4460
4459
  * @return {Promise} That returns an Object representing a contact.
4461
4460
  */
4462
- _createClass(OvhContactsService, [{
4461
+ return _createClass(OvhContactsService, [{
4463
4462
  key: "convertNicToContact",
4464
4463
  value: function convertNicToContact() {
4465
4464
  var nicToConvert = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
@@ -4661,7 +4660,6 @@ var OvhContactsService = /*#__PURE__*/function () {
4661
4660
  });
4662
4661
  }
4663
4662
  }]);
4664
- return OvhContactsService;
4665
4663
  }();
4666
4664
 
4667
4665
  var ovhContactsProvider = /*#__PURE__*/function () {
@@ -4669,7 +4667,7 @@ var ovhContactsProvider = /*#__PURE__*/function () {
4669
4667
  _classCallCheck(this, ovhContactsProvider);
4670
4668
  this.target = 'EU';
4671
4669
  }
4672
- _createClass(ovhContactsProvider, [{
4670
+ return _createClass(ovhContactsProvider, [{
4673
4671
  key: "setTarget",
4674
4672
  value: function setTarget(target) {
4675
4673
  if (angular.isString(target)) {
@@ -4683,7 +4681,6 @@ var ovhContactsProvider = /*#__PURE__*/function () {
4683
4681
  return new OvhContactsService($q, $translate, OvhApiMe, OvhApiNewAccount, this.target, iceberg);
4684
4682
  }]
4685
4683
  }]);
4686
- return ovhContactsProvider;
4687
4684
  }();
4688
4685
 
4689
4686
  /**
@@ -4810,7 +4807,7 @@ var OvhContactsFormCtrl = /*#__PURE__*/function () {
4810
4807
  message: null
4811
4808
  };
4812
4809
  }
4813
- _createClass(OvhContactsFormCtrl, [{
4810
+ return _createClass(OvhContactsFormCtrl, [{
4814
4811
  key: "onCountryChange",
4815
4812
  value: /* ---------- Events ---------- */
4816
4813
 
@@ -4975,7 +4972,6 @@ var OvhContactsFormCtrl = /*#__PURE__*/function () {
4975
4972
  return phoneNumber;
4976
4973
  }
4977
4974
  }]);
4978
- return OvhContactsFormCtrl;
4979
4975
  }();
4980
4976
 
4981
4977
  var ovhContactFormDirective = (function () {