@seniorsistemas/angular-components 17.31.7 → 17.31.9

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.
@@ -646,11 +646,60 @@
646
646
  freeDistanceToRight: freeDistanceToRight,
647
647
  };
648
648
  };
649
- var deepClone = function (obj) {
650
- if (typeof structuredClone === "function")
651
- return structuredClone(obj);
652
- return JSON.parse(JSON.stringify(obj));
653
- };
649
+ function deepClone(value, weakMap) {
650
+ if (weakMap === void 0) { weakMap = new WeakMap(); }
651
+ if (value !== null && typeof value === "object") {
652
+ if (weakMap.has(value))
653
+ return weakMap.get(value);
654
+ }
655
+ if (value === null || typeof value !== "object" || value instanceof Function) {
656
+ return value;
657
+ }
658
+ if (value instanceof Date) {
659
+ return new Date(value.getTime());
660
+ }
661
+ if (Array.isArray(value)) {
662
+ var arr_1 = [];
663
+ weakMap.set(value, arr_1);
664
+ value.forEach(function (item, i) {
665
+ arr_1[i] = deepClone(item, weakMap);
666
+ });
667
+ return arr_1;
668
+ }
669
+ if (value instanceof Map) {
670
+ var result_1 = new Map();
671
+ weakMap.set(value, result_1);
672
+ value.forEach(function (v, k) {
673
+ result_1.set(deepClone(k, weakMap), deepClone(v, weakMap));
674
+ });
675
+ return result_1;
676
+ }
677
+ if (value instanceof Set) {
678
+ var result_2 = new Set();
679
+ weakMap.set(value, result_2);
680
+ value.forEach(function (v) {
681
+ result_2.add(deepClone(v, weakMap));
682
+ });
683
+ return result_2;
684
+ }
685
+ if (ArrayBuffer.isView(value)) {
686
+ return new value.constructor(value);
687
+ }
688
+ if (value instanceof ArrayBuffer) {
689
+ return value.slice(0);
690
+ }
691
+ var obj = Object.create(Object.getPrototypeOf(value));
692
+ weakMap.set(value, obj);
693
+ var keys = Reflect.ownKeys(value);
694
+ keys.forEach(function (key) {
695
+ var desc = Object.getOwnPropertyDescriptor(value, key);
696
+ if ("value" in desc) {
697
+ desc.value = deepClone(value[key], weakMap);
698
+ }
699
+ Object.defineProperty(obj, key, desc);
700
+ });
701
+ return obj;
702
+ }
654
703
 
655
704
  var MobileBehavior;
656
705
  (function (MobileBehavior) {
@@ -12459,12 +12508,12 @@
12459
12508
  };
12460
12509
  Object.defineProperty(TextFieldComponent.prototype, "inputElement", {
12461
12510
  get: function () {
12462
- var _a, _b;
12511
+ var _a, _b, _c;
12463
12512
  if (this.inputRef instanceof inputmask.InputMask) {
12464
12513
  return (_b = (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.inputViewChild) === null || _b === void 0 ? void 0 : _b.nativeElement;
12465
12514
  }
12466
12515
  else {
12467
- return this.inputRef;
12516
+ return (_c = this.inputRef) === null || _c === void 0 ? void 0 : _c.nativeElement;
12468
12517
  }
12469
12518
  },
12470
12519
  enumerable: true,
@@ -12980,7 +13029,7 @@
12980
13029
  FieldLabelComponent = __decorate([
12981
13030
  core.Component({
12982
13031
  selector: 's-field-label',
12983
- template: "<!--\n Caso esse componente seja alterado/removido/movido,\n alterar a label no row.component.ts e dynamic-field.component.ts\n-->\n\n<span *ngIf=\"field.label\">\n <label\n *sInfoSign=\"field.infoSign; displayTime: field.displayTimeInfoSign; focusedInputRef: fieldContainerRef; useFocusedInputRef: field.useInfoSignFocusedInputRef\"\n [for]=\"field.name\"\n [ngClass]=\"{ required: field.required() }\"\n >\n {{ field.label }}\n </label>\n</span>\n"
13032
+ template: "<!--\n Caso esse componente seja alterado/removido/movido,\n alterar a label no row.component.ts e dynamic-field.component.ts\n-->\n\n<span *ngIf=\"field.label\">\n <label\n *sInfoSign=\"\n field.infoSign;\n displayTime: field.displayTimeInfoSign;\n focusedInputRef: fieldContainerRef;\n useFocusedInputRef: field.useInfoSignFocusedInputRef\n \"\n [for]=\"field.name\"\n [ngClass]=\"{ required: field.required() }\"\n >\n {{ field.label }}\n </label>\n</span>\n"
12984
13033
  })
12985
13034
  ], FieldLabelComponent);
12986
13035
  return FieldLabelComponent;