complexqa_frontend_core 1.21.6 → 1.21.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "complexqa_frontend_core",
3
- "version": "1.21.6",
3
+ "version": "1.21.8",
4
4
  "description": "core of web ",
5
5
  "type": "module",
6
6
  "exports": {
@@ -593,6 +593,7 @@ export class familyGeneralElement
593
593
  */
594
594
  async delete(element = false, callback = {})
595
595
  {
596
+ echo({element});
596
597
  if (!this.api_key)
597
598
  {
598
599
  throw new Error('Error #404-2215 - element has no api_key');
@@ -608,9 +609,18 @@ export class familyGeneralElement
608
609
  return false;
609
610
  }
610
611
 
611
- let payload = {};
612
+ let payload = typeof element.get_pure_data === 'function'
613
+ ? element.get_pure_data()
614
+ : false;
612
615
 
613
- payload[ this.get_primary_key() ] = element[ this.get_primary_key() ];
616
+ if (!payload)
617
+ {
618
+ payload = element;
619
+ //payload[ this.get_primary_key() ] = element[ this.get_primary_key() ];
620
+ }
621
+ echo({payload});
622
+
623
+ payload = this.normalize_payload(payload);
614
624
 
615
625
  if (typeof callback?.before === 'function')
616
626
  {
@@ -532,9 +532,17 @@ export class familyGeneralElement
532
532
  return false;
533
533
  }
534
534
 
535
- let payload = {};
535
+ let payload = typeof element.get_pure_data === 'function'
536
+ ? element.get_pure_data()
537
+ : false;
536
538
 
537
- payload[ this.get_primary_key() ] = element[ this.get_primary_key() ];
539
+ if (!payload)
540
+ {
541
+ payload = {};
542
+ payload[ this.get_primary_key() ] = element[ this.get_primary_key() ];
543
+ }
544
+
545
+ payload = this.normalize_payload(payload);
538
546
 
539
547
  if (typeof callback?.before === 'function')
540
548
  {
@@ -6,6 +6,8 @@ import { typeFile_i18n } from "../element_translate/typeFile.i18n.js";
6
6
  /**
7
7
  * Базовый тип файла File App (wire + URL helpers).
8
8
  *
9
+ * @see docs/File App Layer/typeFile-docs.MD
10
+ *
9
11
  * @version v.1.0 (28/06/2026)
10
12
  */
11
13
  export class typeFile extends familyFile