@aurigma/design-atoms-model 7.0.22 → 7.0.24

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.
@@ -1,4 +1,6 @@
1
+ import { Color, IColor } from "../../Colors";
1
2
  export declare class ColorDictionaryEntry {
2
- keyColor: string;
3
- valueColor: string;
3
+ keyColor: IColor;
4
+ valueColor: IColor;
5
+ constructor(keyColor: Color, valueColor: Color);
4
6
  }
@@ -1,5 +1,7 @@
1
1
  var ColorDictionaryEntry = /** @class */ (function () {
2
- function ColorDictionaryEntry() {
2
+ function ColorDictionaryEntry(keyColor, valueColor) {
3
+ this.keyColor = keyColor.getData();
4
+ this.valueColor = valueColor.getData();
3
5
  }
4
6
  return ColorDictionaryEntry;
5
7
  }());
@@ -1 +1 @@
1
- {"version":3,"file":"ColorDictionaryEntry.js","sourceRoot":"","sources":["../../../../src/design-atoms-model/Product/Effects/ColorDictionaryEntry.ts"],"names":[],"mappings":"AAAA;IAAA;IAGA,CAAC;IAAD,2BAAC;AAAD,CAAC,AAHD,IAGC"}
1
+ {"version":3,"file":"ColorDictionaryEntry.js","sourceRoot":"","sources":["../../../../src/design-atoms-model/Product/Effects/ColorDictionaryEntry.ts"],"names":[],"mappings":"AAEA;IAII,8BAAY,QAAe,EAAE,UAAiB;QAC1C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,EAAE,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC;IAC3C,CAAC;IACL,2BAAC;AAAD,CAAC,AARD,IAQC"}
@@ -16,7 +16,18 @@ export declare class NDEffects implements IEqualsReady {
16
16
  None: {};
17
17
  Recolor: {
18
18
  defaultColorReplacements: import("../..").Collection<import("./ColorDictionaryEntry").ColorDictionaryEntry>;
19
- colorReplacementDictionary: import("../..").Collection<import("./ColorDictionaryEntry").ColorDictionaryEntry>;
19
+ currentColorReplacements: import("../..").Collection<import("./ColorDictionaryEntry").ColorDictionaryEntry>;
20
+ reducedColorImageSource: {
21
+ id: string;
22
+ width: number;
23
+ height: number;
24
+ isVector: boolean;
25
+ pageIndex: number;
26
+ url: string;
27
+ actualSize: boolean;
28
+ saveAspectRatio: boolean;
29
+ origin: import("..").ImageItem.ImageSource.Origin;
30
+ };
20
31
  };
21
32
  };
22
33
  }
@@ -3,13 +3,16 @@ import { IEqualsReady } from "../../Utils";
3
3
  import { EffectParameters } from "./NDEffectParameters";
4
4
  import { Collection } from "../../Collection";
5
5
  import { ColorDictionaryEntry } from "./ColorDictionaryEntry";
6
+ import { ImageItem } from "../Items";
6
7
  export interface IRawRecolorEffectParameters {
7
8
  defaultColorReplacements: ColorDictionaryEntry[];
8
9
  currentColorReplacements: ColorDictionaryEntry[];
10
+ reducedColorImageSource: any;
9
11
  }
10
12
  export declare class RecolorEffectParameters extends EffectParameters implements IEqualsReady {
11
13
  defaultColorReplacements: Map<Color, Color>;
12
14
  currentColorReplacements: Map<Color, Color>;
15
+ reducedColorImageSource: ImageItem.ImageSource;
13
16
  get defaultColorReplacementValues(): Color[];
14
17
  get defaultColorReplacementKeys(): Color[];
15
18
  get currentColorReplacementValues(): Color[];
@@ -18,7 +21,18 @@ export declare class RecolorEffectParameters extends EffectParameters implements
18
21
  equals(recolorParams: RecolorEffectParameters): boolean;
19
22
  toJSON(): {
20
23
  defaultColorReplacements: Collection<ColorDictionaryEntry>;
21
- colorReplacementDictionary: Collection<ColorDictionaryEntry>;
24
+ currentColorReplacements: Collection<ColorDictionaryEntry>;
25
+ reducedColorImageSource: {
26
+ id: string;
27
+ width: number;
28
+ height: number;
29
+ isVector: boolean;
30
+ pageIndex: number;
31
+ url: string;
32
+ actualSize: boolean;
33
+ saveAspectRatio: boolean;
34
+ origin: ImageItem.ImageSource.Origin;
35
+ };
22
36
  };
23
37
  private _dictionaryToEntriesJSON;
24
38
  clone(): RecolorEffectParameters;
@@ -62,6 +62,7 @@ var RecolorEffectParameters = /** @class */ (function (_super) {
62
62
  };
63
63
  RecolorEffectParameters.prototype.equals = function (recolorParams) {
64
64
  var _this = this;
65
+ var _a;
65
66
  if (recolorParams == null)
66
67
  return false;
67
68
  var replacementKeysIsEqual = recolorParams.currentColorReplacementKeys.every(function (color, index) {
@@ -74,30 +75,30 @@ var RecolorEffectParameters = /** @class */ (function (_super) {
74
75
  var defaultValuesIsEqual = recolorParams.defaultColorReplacementValues.every(function (color, index) {
75
76
  return color.equals(_this.defaultColorReplacementValues[index]);
76
77
  });
78
+ var reducedColorImageSourceIsEqual = (_a = this.reducedColorImageSource) === null || _a === void 0 ? void 0 : _a.equals(recolorParams.reducedColorImageSource);
77
79
  return (replacementKeysIsEqual &&
78
80
  replacementValueIsEqual &&
79
81
  defaultKeysIsEqual &&
80
- defaultValuesIsEqual);
82
+ defaultValuesIsEqual &&
83
+ reducedColorImageSourceIsEqual);
81
84
  };
82
85
  RecolorEffectParameters.prototype.toJSON = function () {
86
+ var _a;
83
87
  return {
84
88
  defaultColorReplacements: this._dictionaryToEntriesJSON(this.defaultColorReplacements),
85
- colorReplacementDictionary: this._dictionaryToEntriesJSON(this.currentColorReplacements),
89
+ currentColorReplacements: this._dictionaryToEntriesJSON(this.currentColorReplacements),
90
+ reducedColorImageSource: (_a = this.reducedColorImageSource) === null || _a === void 0 ? void 0 : _a.toJSON(),
86
91
  };
87
92
  };
88
93
  RecolorEffectParameters.prototype._dictionaryToEntriesJSON = function (dictionary) {
89
94
  var result = new Collection();
90
- dictionary.forEach(function (key, value) {
91
- var newEntry = new ColorDictionaryEntry();
92
- var keyData = key.getData();
93
- newEntry.keyColor = JSON.stringify(keyData);
94
- var valueData = value.getData();
95
- newEntry.valueColor = JSON.stringify(valueData);
96
- result.add(newEntry);
95
+ dictionary.forEach(function (value, key) {
96
+ return result.add(new ColorDictionaryEntry(key, value));
97
97
  });
98
98
  return result;
99
99
  };
100
100
  RecolorEffectParameters.prototype.clone = function () {
101
+ var _a;
101
102
  var recolorEffectParameters = new RecolorEffectParameters();
102
103
  var defaultColorReplacementDictionary = new Map();
103
104
  this.defaultColorReplacements.forEach(function (key, color) {
@@ -111,6 +112,7 @@ var RecolorEffectParameters = /** @class */ (function (_super) {
111
112
  defaultColorReplacementDictionary;
112
113
  recolorEffectParameters.currentColorReplacements =
113
114
  colorReplacementDictionary;
115
+ recolorEffectParameters.reducedColorImageSource = (_a = this.reducedColorImageSource) === null || _a === void 0 ? void 0 : _a.clone();
114
116
  return recolorEffectParameters;
115
117
  };
116
118
  return RecolorEffectParameters;
@@ -1 +1 @@
1
- {"version":3,"file":"RecolorEffectParameters.js","sourceRoot":"","sources":["../../../../src/design-atoms-model/Product/Effects/RecolorEffectParameters.ts"],"names":[],"mappings":";;;;;;;;;;;;;AACA,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAO5D;IACU,2CAAgB;IAD1B;QAAA,qEA2GC;QAvGC,8BAAwB,GAAG,IAAI,GAAG,EAAgB,CAAC;QACnD,8BAAwB,GAAG,IAAI,GAAG,EAAgB,CAAC;;IAsGrD,CAAC;IApGC,sBAAI,kEAA6B;aAAjC;YACE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,MAAM,EAAE,CAAC,CAAC;QAC5D,CAAC;;;OAAA;IAED,sBAAI,gEAA2B;aAA/B;YACE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,IAAI,EAAE,CAAC,CAAC;QAC1D,CAAC;;;OAAA;IAED,sBAAI,kEAA6B;aAAjC;YACE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,MAAM,EAAE,CAAC,CAAC;QAC5D,CAAC;;;OAAA;IAED,sBAAI,gEAA2B;a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AAE,CAAC;QAAjE,CAAiE,CAClE,CAAC;QACF,IAAM,0BAA0B,GAAG,IAAI,GAAG,EAAgB,CAAC;QAC3D,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,UAAC,GAAG,EAAE,KAAK;YAC/C,OAAA,0BAA0B,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC;QAA1D,CAA0D,CAC3D,CAAC;QACF,uBAAuB,CAAC,wBAAwB;YAC9C,iCAAiC,CAAC;QACpC,uBAAuB,CAAC,wBAAwB;YAC9C,0BAA0B,CAAC;QAC7B,OAAO,uBAAuB,CAAC;IACjC,CAAC;IACH,8BAAC;AAAD,CAAC,AA3GD,CACU,gBAAgB,GA0GzB"}
1
+ {"version":3,"file":"RecolorEffectParameters.js","sourceRoot":"","sources":["../../../../src/design-atoms-model/Product/Effects/RecolorEffectParameters.ts"],"names":[],"mappings":";;;;;;;;;;;;;AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAS9D;IACU,2CAAgB;IAD1B;QAAA,qEA8GC;QA1GC,8BAAwB,GAAG,IAAI,GAAG,EAAgB,CAAC;QACnD,8BAAwB,GAAG,IAAI,GAAG,EAAgB,CAAC;;IAyGrD,CAAC;IAtGC,sBAAI,kEAA6B;aAAjC;YACE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,MAAM,EAAE,CAAC,CAAC;QAC5D,CAAC;;;OAAA;IAED,sBAAI,gEAA2B;aAA/B;YACE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,IAAI,EAAE,CAAC,CAAC;QAC1D,CAAC;;;OAAA;IA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,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC;QAAjE,CAAiE,CAClE,CAAC;QACF,IAAM,0BAA0B,GAAG,IAAI,GAAG,EAAgB,CAAC;QAC3D,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,UAAC,GAAG,EAAE,KAAK;YAC/C,OAAA,0BAA0B,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC;QAA1D,CAA0D,CAC3D,CAAC;QACF,uBAAuB,CAAC,wBAAwB;YAC9C,iCAAiC,CAAC;QACpC,uBAAuB,CAAC,wBAAwB;YAC9C,0BAA0B,CAAC;QAE7B,uBAAuB,CAAC,uBAAuB,SAC7C,IAAI,CAAC,uBAAuB,0CAAE,KAAK,EAAE,CAAC;QAExC,OAAO,uBAAuB,CAAC;IACjC,CAAC;IACH,8BAAC;AAAD,CAAC,AA9GD,CACU,gBAAgB,GA6GzB"}
@@ -0,0 +1,54 @@
1
+ import { BarcodeFormat, BarcodeSubType } from "../Items";
2
+ export declare enum VCardAddressType {
3
+ none = 0,
4
+ /** Domestic */
5
+ dom = 1,
6
+ /** International */
7
+ intl = 2,
8
+ /** For postal */
9
+ postal = 4,
10
+ /** For parcel */
11
+ parcel = 8,
12
+ /** Home address */
13
+ home = 16,
14
+ /** Work address */
15
+ work = 32,
16
+ /** Preferable */
17
+ pref = 64
18
+ }
19
+ export interface IAddressMetadata {
20
+ none: Array<any>;
21
+ dom: Array<any>;
22
+ intl: Array<any>;
23
+ postal: Array<any>;
24
+ parcel: Array<any>;
25
+ home: Array<any>;
26
+ work: Array<any>;
27
+ pref: Array<any>;
28
+ }
29
+ export interface IVCardAddress {
30
+ type?: VCardAddressType[];
31
+ POBox?: string;
32
+ extendedAddress?: string;
33
+ address?: string;
34
+ locality?: string;
35
+ state?: string;
36
+ zipCode?: string;
37
+ country?: string;
38
+ }
39
+ export interface IBarcodeData {
40
+ barcodeFormat: BarcodeFormat;
41
+ barcodeSubType: BarcodeSubType;
42
+ firstName?: string;
43
+ lastName?: string;
44
+ organization?: string;
45
+ position?: string;
46
+ email?: string;
47
+ mobilePhone?: string;
48
+ fax?: string;
49
+ addresses?: IVCardAddress[];
50
+ url?: string;
51
+ data?: string;
52
+ phone?: string;
53
+ barcodeValue?: string;
54
+ }
@@ -0,0 +1,19 @@
1
+ export var VCardAddressType;
2
+ (function (VCardAddressType) {
3
+ VCardAddressType[VCardAddressType["none"] = 0] = "none";
4
+ /** Domestic */
5
+ VCardAddressType[VCardAddressType["dom"] = 1] = "dom";
6
+ /** International */
7
+ VCardAddressType[VCardAddressType["intl"] = 2] = "intl";
8
+ /** For postal */
9
+ VCardAddressType[VCardAddressType["postal"] = 4] = "postal";
10
+ /** For parcel */
11
+ VCardAddressType[VCardAddressType["parcel"] = 8] = "parcel";
12
+ /** Home address */
13
+ VCardAddressType[VCardAddressType["home"] = 16] = "home";
14
+ /** Work address */
15
+ VCardAddressType[VCardAddressType["work"] = 32] = "work";
16
+ /** Preferable */
17
+ VCardAddressType[VCardAddressType["pref"] = 64] = "pref";
18
+ })(VCardAddressType || (VCardAddressType = {}));
19
+ //# sourceMappingURL=IBarcodeData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IBarcodeData.js","sourceRoot":"","sources":["../../../../src/design-atoms-model/Product/Interfaces/IBarcodeData.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,gBAgBX;AAhBD,WAAY,gBAAgB;IAC1B,uDAAQ,CAAA;IACR,eAAe;IACf,qDAAO,CAAA;IACP,oBAAoB;IACpB,uDAAQ,CAAA;IACR,iBAAiB;IACjB,2DAAU,CAAA;IACV,iBAAiB;IACjB,2DAAU,CAAA;IACV,mBAAmB;IACnB,wDAAS,CAAA;IACT,mBAAmB;IACnB,wDAAS,CAAA;IACT,iBAAiB;IACjB,wDAAS,CAAA;AACX,CAAC,EAhBW,gBAAgB,KAAhB,gBAAgB,QAgB3B"}
@@ -1,7 +1,23 @@
1
1
  import { BarcodeSubType } from "./BarcodeSubType";
2
2
  import { BarcodeFormat } from "./BarcodeFormat";
3
- export declare class BarcodeData {
4
- constructor(rawData?: string | Object);
3
+ import { IEqualsReady } from "../../Utils";
4
+ import { IAddressMetadata, IBarcodeData, IVCardAddress, VCardAddressType } from "../Interfaces/IBarcodeData";
5
+ export declare class VCardAddress implements IVCardAddress, IEqualsReady {
6
+ type?: VCardAddressType[];
7
+ POBox?: string;
8
+ extendedAddress?: string;
9
+ address?: string;
10
+ locality?: string;
11
+ state?: string;
12
+ zipCode?: string;
13
+ country?: string;
14
+ constructor(address?: IVCardAddress);
15
+ get isEmpty(): boolean;
16
+ equals(other: IVCardAddress): boolean;
17
+ toVCardValue(): string[];
18
+ static fromVCardValue(vCardAddress: string[], meta: IAddressMetadata): VCardAddress;
19
+ }
20
+ export declare class BarcodeData implements IBarcodeData, IEqualsReady {
5
21
  barcodeFormat: BarcodeFormat;
6
22
  barcodeSubType: BarcodeSubType;
7
23
  firstName?: string;
@@ -10,13 +26,15 @@ export declare class BarcodeData {
10
26
  position?: string;
11
27
  email?: string;
12
28
  mobilePhone?: string;
29
+ fax?: string;
30
+ addresses?: VCardAddress[];
13
31
  url?: string;
14
32
  data?: string;
15
33
  phone?: string;
16
34
  barcodeValue?: string;
17
35
  get isEmpty(): boolean;
18
- equals(other: BarcodeData): boolean;
19
- private _isEmpty;
36
+ constructor(rawData?: string | IBarcodeData);
37
+ equals(other: BarcodeData): any;
20
38
  toVCardString(): string;
21
39
  static fromVCardString(value: string): BarcodeData;
22
40
  }
@@ -1,12 +1,78 @@
1
+ var __read = (this && this.__read) || function (o, n) {
2
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
3
+ if (!m) return o;
4
+ var i = m.call(o), r, ar = [], e;
5
+ try {
6
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
7
+ }
8
+ catch (error) { e = { error: error }; }
9
+ finally {
10
+ try {
11
+ if (r && !r.done && (m = i["return"])) m.call(i);
12
+ }
13
+ finally { if (e) throw e.error; }
14
+ }
15
+ return ar;
16
+ };
1
17
  import { BarcodeSubType } from "./BarcodeSubType";
2
18
  import { BarcodeFormat } from "./BarcodeFormat";
3
19
  import * as _ from "underscore";
4
20
  import * as vcard from "vcard-parser";
21
+ import { arrayEquals } from "../../Utils";
22
+ import { VCardAddressType } from "../Interfaces/IBarcodeData";
23
+ var VCardAddress = /** @class */ (function () {
24
+ function VCardAddress(address) {
25
+ if (address === void 0) { address = {}; }
26
+ this.type = [VCardAddressType.none];
27
+ Object.assign(this, address);
28
+ }
29
+ Object.defineProperty(VCardAddress.prototype, "isEmpty", {
30
+ get: function () {
31
+ return !this.POBox &&
32
+ !this.extendedAddress &&
33
+ !this.address &&
34
+ !this.locality &&
35
+ !this.state &&
36
+ !this.zipCode &&
37
+ !this.country;
38
+ },
39
+ enumerable: true,
40
+ configurable: true
41
+ });
42
+ VCardAddress.prototype.equals = function (other) {
43
+ return this.POBox === other.POBox &&
44
+ this.extendedAddress === other.extendedAddress &&
45
+ this.address === other.address &&
46
+ this.locality === other.locality &&
47
+ this.state === other.state &&
48
+ this.zipCode === other.zipCode &&
49
+ this.country === other.country;
50
+ };
51
+ VCardAddress.prototype.toVCardValue = function () {
52
+ return [
53
+ this.POBox,
54
+ this.extendedAddress,
55
+ this.address,
56
+ this.locality,
57
+ this.state,
58
+ this.zipCode,
59
+ this.country,
60
+ ];
61
+ };
62
+ VCardAddress.fromVCardValue = function (vCardAddress, meta) {
63
+ var _a = __read(vCardAddress, 7), POBox = _a[0], extendedAddress = _a[1], address = _a[2], locality = _a[3], state = _a[4], zipCode = _a[5], country = _a[6];
64
+ var type = Object.keys(meta).map(function (key) { return VCardAddressType[key]; });
65
+ return new VCardAddress({ POBox: POBox, extendedAddress: extendedAddress, address: address, state: state, zipCode: zipCode, locality: locality, country: country, type: type });
66
+ };
67
+ return VCardAddress;
68
+ }());
69
+ export { VCardAddress };
5
70
  var BarcodeData = /** @class */ (function () {
6
71
  function BarcodeData(rawData) {
7
72
  this.barcodeFormat = BarcodeFormat.QR_CODE;
8
73
  this.barcodeSubType = BarcodeSubType.None;
9
- if (_.isString(rawData)) {
74
+ this.addresses = [];
75
+ if (typeof rawData === "string") {
10
76
  try {
11
77
  rawData = JSON.parse(rawData);
12
78
  }
@@ -15,9 +81,11 @@ var BarcodeData = /** @class */ (function () {
15
81
  rawData = null;
16
82
  }
17
83
  }
18
- if (_.isObject(rawData)) {
84
+ if (typeof rawData === "object" && rawData != null) {
19
85
  //TODO Add a validation of raw objects.
20
- _.extend(this, rawData);
86
+ Object.assign(this, rawData);
87
+ this.addresses = Array.isArray(rawData.addresses)
88
+ ? rawData.addresses.map(function (address) { return new VCardAddress(address); }) : [];
21
89
  }
22
90
  }
23
91
  Object.defineProperty(BarcodeData.prototype, "isEmpty", {
@@ -31,7 +99,9 @@ var BarcodeData = /** @class */ (function () {
31
99
  _.isEmpty(this.url) &&
32
100
  _.isEmpty(this.phone) &&
33
101
  _.isEmpty(this.data) &&
34
- _.isEmpty(this.barcodeValue);
102
+ _.isEmpty(this.barcodeValue) &&
103
+ _.isEmpty(this.fax) &&
104
+ (this.addresses == null || this.addresses.length === 0);
35
105
  },
36
106
  enumerable: true,
37
107
  configurable: true
@@ -49,10 +119,9 @@ var BarcodeData = /** @class */ (function () {
49
119
  && this.url === other.url
50
120
  && this.data === other.data
51
121
  && this.phone === other.phone
52
- && this.barcodeValue === other.barcodeValue;
53
- };
54
- BarcodeData.prototype._isEmpty = function (value) {
55
- return _.isEmpty(value != null ? value.trim() : null);
122
+ && this.barcodeValue === other.barcodeValue
123
+ && this.fax === other.fax
124
+ && arrayEquals(this.addresses, other.addresses);
56
125
  };
57
126
  BarcodeData.prototype.toVCardString = function () {
58
127
  var vCard = {
@@ -61,24 +130,32 @@ var BarcodeData = /** @class */ (function () {
61
130
  org: [{ value: this.organization }],
62
131
  "tel;cell": [{ value: this.mobilePhone }],
63
132
  "tel;work": [{ value: this.phone }],
133
+ "tel;fax": [{ value: this.fax }],
64
134
  title: [{ value: this.position }],
65
- url: [{ value: this.url }]
135
+ url: [{ value: this.url }],
66
136
  };
137
+ this.addresses.forEach(function (address) {
138
+ var types = address.type.map(function (type) { return VCardAddressType[type]; }).join(";");
139
+ vCard["adr;" + types] = [{ value: address.toVCardValue() }];
140
+ });
67
141
  return vcard.generate(vCard);
68
142
  };
69
143
  BarcodeData.fromVCardString = function (value) {
144
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
70
145
  var vCard = value != null ? vcard.parse(value) : {};
71
146
  var result = new BarcodeData();
72
147
  result.barcodeFormat = BarcodeFormat.QR_CODE;
73
148
  result.barcodeSubType = BarcodeSubType.VCard;
74
- result.email = vCard.email && vCard.email[0] && vCard.email[0].value;
75
- result.lastName = vCard.n && vCard.n[0] && vCard.n[0].value[0];
76
- result.firstName = vCard.n && vCard.n[0] && vCard.n[0].value[1];
77
- result.organization = vCard.org && vCard.org[0] && vCard.org[0].value;
78
- result.mobilePhone = vCard.tel && vCard.tel[0] && vCard.tel[0].value;
79
- result.phone = vCard.tel && vCard.tel[1] && vCard.tel[1].value;
80
- result.position = vCard.title && vCard.title[0] && vCard.title[0].value;
81
- result.url = vCard.url && vCard.url[0] && vCard.url[0].value;
149
+ result.email = (_b = (_a = vCard.email) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.value;
150
+ result.lastName = (_d = (_c = vCard.n) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.value[0];
151
+ result.firstName = (_f = (_e = vCard.n) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.value[1];
152
+ result.organization = (_h = (_g = vCard.org) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.value;
153
+ result.mobilePhone = (_k = (_j = vCard.tel) === null || _j === void 0 ? void 0 : _j[0]) === null || _k === void 0 ? void 0 : _k.value;
154
+ result.phone = (_m = (_l = vCard.tel) === null || _l === void 0 ? void 0 : _l[1]) === null || _m === void 0 ? void 0 : _m.value;
155
+ result.fax = (_p = (_o = vCard.tel) === null || _o === void 0 ? void 0 : _o[2]) === null || _p === void 0 ? void 0 : _p.value;
156
+ result.position = (_r = (_q = vCard.title) === null || _q === void 0 ? void 0 : _q[0]) === null || _r === void 0 ? void 0 : _r.value;
157
+ result.url = (_t = (_s = vCard.url) === null || _s === void 0 ? void 0 : _s[0]) === null || _t === void 0 ? void 0 : _t.value;
158
+ result.addresses = (_v = (_u = vCard.adr) === null || _u === void 0 ? void 0 : _u.map(function (adr) { return VCardAddress.fromVCardValue(adr.value, adr.meta); })) !== null && _v !== void 0 ? _v : [];
82
159
  return result;
83
160
  };
84
161
  return BarcodeData;
@@ -1 +1 @@
1
- {"version":3,"file":"BarcodeData.js","sourceRoot":"","sources":["../../../../src/design-atoms-model/Product/Items/BarcodeData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,CAAC,MAAM,YAAY,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC;IACI,qBAAY,OAAyB;QAiBrC,kBAAa,GAAkB,aAAa,CAAC,OAAO,CAAC;QACrD,mBAAc,GAAmB,cAAc,CAAC,IAAI,CAAC;QAjBjD,IAAI,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;YACrB,IAAG;gBACC,OAAO,GAAW,IAAI,CAAC,KAAK,CAAS,OAAO,CAAC,CAAC;aACjD;YACD,OAAM,CAAC,EAAC;gBACJ,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;gBACrE,OAAO,GAAG,IAAI,CAAC;aAClB;SACJ;QAED,IAAI,CAAC,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AK,0CAAG,CAAC,2CAAG,KAAK,CAAC;QACvC,MAAM,CAAC,QAAQ,eAAG,KAAK,CAAC,CAAC,0CAAG,CAAC,2CAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QACzC,MAAM,CAAC,SAAS,eAAG,KAAK,CAAC,CAAC,0CAAG,CAAC,2CAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1C,MAAM,CAAC,YAAY,eAAG,KAAK,CAAC,GAAG,0CAAG,CAAC,2CAAG,KAAK,CAAC;QAC5C,MAAM,CAAC,WAAW,eAAG,KAAK,CAAC,GAAG,0CAAG,CAAC,2CAAG,KAAK,CAAC;QAC3C,MAAM,CAAC,KAAK,eAAG,KAAK,CAAC,GAAG,0CAAG,CAAC,2CAAG,KAAK,CAAC;QACrC,MAAM,CAAC,GAAG,eAAG,KAAK,CAAC,GAAG,0CAAG,CAAC,2CAAG,KAAK,CAAC;QACnC,MAAM,CAAC,QAAQ,eAAG,KAAK,CAAC,KAAK,0CAAG,CAAC,2CAAG,KAAK,CAAC;QAC1C,MAAM,CAAC,GAAG,eAAG,KAAK,CAAC,GAAG,0CAAG,CAAC,2CAAG,KAAK,CAAC;QACnC,MAAM,CAAC,SAAS,eAAG,KAAK,CAAC,GAAG,0CAAE,GAAG,CAAC,UAAC,GAAG,IAAK,OAAA,YAAY,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,CAAC,EAAhD,CAAgD,oCAAK,EAAE,CAAA;QAElG,OAAO,MAAM,CAAC;IAClB,CAAC;IACL,kBAAC;AAAD,CAAC,AAtHD,IAsHC"}
package/Version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  /** @hidden */
2
2
  /** Don't include in docs */
3
- export declare const MODELVERSION = "7.0.22";
3
+ export declare const MODELVERSION = "7.0.24";
package/Version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /** @hidden */
2
2
  /** Don't include in docs */
3
- export var MODELVERSION = "7.0.22";
3
+ export var MODELVERSION = "7.0.24";
4
4
  //# sourceMappingURL=Version.js.map
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "7.0.22",
2
+ "version": "7.0.24",
3
3
  "name": "@aurigma/design-atoms-model",
4
4
  "license": "SEE LICENSE IN License.md",
5
5
  "description": "Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.",