complexqa_frontend_core 1.0.2 → 1.0.4

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.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "core of web ",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,7 +1,5 @@
1
-
2
- import i18next from 'i18next';
3
- import axios from "axios";
4
- import * as qs from "query-string/base";
1
+ import { Api } from "./api";
2
+ import { serviceTranslate } from "./services/serviceTranslate";
5
3
 
6
4
  /**
7
5
  * Прототип идеи, пока не уверен, что именно так надо
@@ -43,7 +41,11 @@ export class App
43
41
  this.service.translate = new serviceTranslate();
44
42
  }
45
43
  }
46
-
44
+
45
+ import { clone_object, echo, is_array } from "../utils/utils";
46
+ import axios from "axios";
47
+ import * as qs from "query-string/base";
48
+ import { ApiException } from "../exceptions/ApiException";
47
49
 
48
50
  /**
49
51
  * Общие методы для всех типизированных элементов
@@ -238,6 +240,24 @@ export class ApiAbstractElementClass
238
240
  throw new Error('Error #10-1152 in ApiAbstractClass');
239
241
  }
240
242
 
243
+ if (this.stage === 'development')
244
+ {
245
+ return {
246
+ response: payload,
247
+ payload : payload
248
+ };
249
+ }
250
+
251
+ let url = `/${ this.api_prefix }/${ this.module_prefix }/update_property`;
252
+
253
+ payload = this.#handle_request_payload(payload);
254
+ let response = this.#api_request(url, payload);
255
+ response = this.#handle_response(response);
256
+
257
+ return {
258
+ response: response,
259
+ payload : payload
260
+ };
241
261
  }
242
262
 
243
263
 
@@ -253,6 +273,24 @@ export class ApiAbstractElementClass
253
273
  throw new Error('Error #10-1152 in ApiAbstractClass');
254
274
  }
255
275
 
276
+ if (this.stage === 'development')
277
+ {
278
+ return {
279
+ response: payload,
280
+ payload : payload
281
+ };
282
+ }
283
+
284
+ let url = `/${ this.api_prefix }/${ this.module_prefix }/delete`;
285
+
286
+ payload = this.#handle_request_payload(payload);
287
+ let response = this.#api_request(url, payload);
288
+ response = this.#handle_response(response);
289
+
290
+ return {
291
+ response: response,
292
+ payload : payload
293
+ };
256
294
  }
257
295
 
258
296
 
@@ -429,7 +467,9 @@ export class ApiAbstractElementClass
429
467
 
430
468
  return response;
431
469
  }
432
- }
470
+ }
471
+ import { ApiAbstractElementClass } from "./api_abstract_element_class";
472
+ import { typeFunctional } from "../types/family_elements/typeFunctional";
433
473
 
434
474
 
435
475
  /**
@@ -445,7 +485,11 @@ export class FunctionalApi extends ApiAbstractElementClass
445
485
  super(options);
446
486
  this.set_element_class_instance(typeFunctional);
447
487
  }
448
- }
488
+ }
489
+ import { TestPlanApi } from "./test_plan_api";
490
+ import { ProjectApi } from "./project_api";
491
+ import { ServiceApi } from "./service_api";
492
+ import { TestCaseApi } from "./test_case_api";
449
493
 
450
494
  /**
451
495
  * Обертка над axios
@@ -551,8 +595,11 @@ export class Api
551
595
  this.test_plan = new TestPlanApi(payload);
552
596
  this.project = new ProjectApi(payload);
553
597
  this.service = new ServiceApi(payload);
598
+ this.test_case = new TestCaseApi(payload);
554
599
  }
555
- }
600
+ }
601
+ import { ApiAbstractElementClass } from "./api_abstract_element_class";
602
+ import { typeProject } from "../types/family_elements/typeProject";
556
603
 
557
604
  /**
558
605
  *
@@ -567,7 +614,7 @@ export class ProjectApi extends ApiAbstractElementClass
567
614
  super(options);
568
615
  this.set_element_class_instance(typeProject);
569
616
  }
570
- }
617
+ }
571
618
 
572
619
  // тут нужен свой класс, не для типов
573
620
  export class ServiceApi
@@ -587,7 +634,9 @@ export class ServiceApi
587
634
  {
588
635
  return [];
589
636
  }
590
- }
637
+ }
638
+ import { ApiAbstractElementClass } from "./api_abstract_element_class";
639
+ import { typeTeamMember } from "../types/family_elements/typeTeamMember";
591
640
 
592
641
 
593
642
  /**
@@ -603,7 +652,9 @@ export class TeamMemberApi extends ApiAbstractElementClass
603
652
  super(options);
604
653
  this.set_element_class_instance(typeTeamMember);
605
654
  }
606
- }
655
+ }
656
+ import { ApiAbstractElementClass } from "./api_abstract_element_class";
657
+ import { typeTestCase } from "../types/family_elements/typeTestCase";
607
658
 
608
659
 
609
660
  /**
@@ -619,7 +670,9 @@ export class TestCaseApi extends ApiAbstractElementClass
619
670
  super(options);
620
671
  this.set_element_class_instance(typeTestCase);
621
672
  }
622
- }
673
+ }
674
+ import { typeTestCaseStep } from "../types/family_elements/typeTestCaseStep";
675
+ import { ApiAbstractElementClass } from "./api_abstract_element_class";
623
676
 
624
677
 
625
678
  /**
@@ -635,7 +688,9 @@ export class TestCaseStepApi extends ApiAbstractElementClass
635
688
  super(options);
636
689
  this.set_element_class_instance(typeTestCaseStep);
637
690
  }
638
- }
691
+ }
692
+ import { ApiAbstractElementClass } from "./api_abstract_element_class";
693
+ import { typeTestPlan } from "../types/family_elements/typeTestPlan";
639
694
 
640
695
 
641
696
  /**
@@ -651,7 +706,9 @@ export class TestPlanApi extends ApiAbstractElementClass
651
706
  super(options);
652
707
  this.set_element_class_instance(typeTestPlan);
653
708
  }
654
- }
709
+ }
710
+ import { ApiAbstractElementClass } from "./api_abstract_element_class";
711
+ import { typeTestRun } from "../types/family_elements/typeTestRun";
655
712
 
656
713
  export class TestRunApi extends ApiAbstractElementClass
657
714
  {
@@ -662,7 +719,9 @@ export class TestRunApi extends ApiAbstractElementClass
662
719
  super(options);
663
720
  this.set_element_class_instance(typeTestRun);
664
721
  }
665
- }
722
+ }
723
+ import { ApiAbstractElementClass } from "./api_abstract_element_class";
724
+ import { typeTestRunResult } from "../types/family_elements/typeTestRunResult";
666
725
 
667
726
 
668
727
  /**
@@ -678,7 +737,9 @@ export class TestRunResultApi extends ApiAbstractElementClass
678
737
  super(options);
679
738
  this.set_element_class_instance(typeTestRunResult);
680
739
  }
681
- }
740
+ }
741
+ import { ApiAbstractElementClass } from "./api_abstract_element_class";
742
+ import { typeTestSuite } from "../types/family_elements/typeTestSuite";
682
743
 
683
744
 
684
745
  /**
@@ -694,7 +755,7 @@ export class TestSuiteApi extends ApiAbstractElementClass
694
755
  super(options);
695
756
  this.set_element_class_instance(typeTestSuite);
696
757
  }
697
- }
758
+ }
698
759
  export class ApiException extends Error
699
760
  {
700
761
  /**
@@ -763,7 +824,7 @@ export class ApiException extends Error
763
824
  return this.#message;
764
825
  }
765
826
  }
766
- }
827
+ }
767
828
  /**
768
829
  *
769
830
  * @version v.0.1 (25/06/2024)
@@ -799,7 +860,10 @@ export class abstractService
799
860
  {
800
861
 
801
862
  }*/
802
- }
863
+ }
864
+ import { abstractService } from "./abstractService";
865
+ import i18next from 'i18next';
866
+ import { Api } from "../api";
803
867
 
804
868
  /**
805
869
  *
@@ -894,8 +958,9 @@ export class serviceTranslate extends abstractService
894
958
  {
895
959
  return this.#vendor_instance.t(group + '.' + key);
896
960
  }
897
- }
898
-
961
+ }
962
+ import { abstractService } from "./abstractService";
963
+ import { MockUserService } from "./mock_data/MockUserService";
899
964
 
900
965
  /**
901
966
  *
@@ -1023,7 +1088,7 @@ export class UserService extends abstractService
1023
1088
  UserService.current_language = current_language;
1024
1089
  }
1025
1090
  }
1026
-
1091
+
1027
1092
  /**
1028
1093
  *
1029
1094
  * @param {object} object
@@ -1213,7 +1278,7 @@ export function in_array(value, array, strict = false)
1213
1278
  export function cls()
1214
1279
  {
1215
1280
  console.clear();
1216
- }
1281
+ }
1217
1282
  export class MockUserService
1218
1283
  {
1219
1284
  static mock_attributes = [ {
@@ -1243,7 +1308,8 @@ export class MockUserService
1243
1308
  },
1244
1309
  ];
1245
1310
 
1246
- }
1311
+ }
1312
+ import { clone_object, in_array, is_array } from "../../utils/utils";
1247
1313
 
1248
1314
  /**
1249
1315
  * Базовый абстрактный класс для всех типов
@@ -1507,7 +1573,7 @@ export class familyGeneralElement
1507
1573
  alert('Error #267-001 Not implemented method');
1508
1574
  return false;
1509
1575
  }
1510
- }
1576
+ }
1511
1577
  /**
1512
1578
  * Заготовка - логи действий
1513
1579
  *
@@ -1516,7 +1582,9 @@ export class familyGeneralElement
1516
1582
  export class typeActionLog
1517
1583
  {
1518
1584
 
1519
- }
1585
+ }
1586
+ import { familyGeneralElement } from "./0_familyGeneralElement";
1587
+ import { is_object } from "../../utils/utils";
1520
1588
 
1521
1589
 
1522
1590
  /**
@@ -1610,7 +1678,9 @@ export class typeFunctional extends familyGeneralElement
1610
1678
  }
1611
1679
 
1612
1680
 
1613
- }
1681
+ }
1682
+ import { familyGeneralElement } from "./0_familyGeneralElement";
1683
+ import { is_object } from "../../utils/utils";
1614
1684
 
1615
1685
 
1616
1686
  /**
@@ -1703,7 +1773,9 @@ export class typeFunctionalGroup extends familyGeneralElement
1703
1773
  }
1704
1774
 
1705
1775
 
1706
- }
1776
+ }
1777
+ import { familyGeneralElement } from "./0_familyGeneralElement";
1778
+ import { is_object } from "../../utils/utils";
1707
1779
 
1708
1780
  /**
1709
1781
  *
@@ -1794,7 +1866,10 @@ export class typeMilestone extends familyGeneralElement
1794
1866
  }
1795
1867
 
1796
1868
 
1797
- }
1869
+ }
1870
+ import { familyGeneralElement } from "./0_familyGeneralElement";
1871
+ import { echo, is_object } from "../../utils/utils";
1872
+ import { MockDataTypeProject } from "./mock_data/mock_data_typeProject";
1798
1873
 
1799
1874
 
1800
1875
  /**
@@ -1958,7 +2033,9 @@ export class typeProject extends familyGeneralElement
1958
2033
  member_get() {}
1959
2034
 
1960
2035
 
1961
- }
2036
+ }
2037
+ import { familyGeneralElement } from "./0_familyGeneralElement";
2038
+ import { is_object } from "../../utils/utils";
1962
2039
 
1963
2040
  /**
1964
2041
  * (идея) - у проекта должна быть тестовая документация
@@ -2036,7 +2113,9 @@ export class typeProjectDocument extends familyGeneralElement
2036
2113
  {
2037
2114
 
2038
2115
  }
2039
- }
2116
+ }
2117
+ import { familyGeneralElement } from "./0_familyGeneralElement";
2118
+ import { is_object } from "../../utils/utils";
2040
2119
 
2041
2120
  /**
2042
2121
  * Тестовые аккаунты
@@ -2093,7 +2172,9 @@ export class typeProjectTestAccount extends familyGeneralElement
2093
2172
 
2094
2173
  return this;
2095
2174
  }
2096
- }
2175
+ }
2176
+ import { familyGeneralElement } from "./0_familyGeneralElement";
2177
+ import { is_object } from "../../utils/utils";
2097
2178
 
2098
2179
  /**
2099
2180
  * Тестовые данные
@@ -2134,7 +2215,9 @@ export class typeProjectTestData extends familyGeneralElement
2134
2215
 
2135
2216
  return this;
2136
2217
  }
2137
- }
2218
+ }
2219
+ import { familyGeneralElement } from "./0_familyGeneralElement";
2220
+ import { is_object } from "../../utils/utils";
2138
2221
 
2139
2222
  /**
2140
2223
  * Роли в проекте
@@ -2187,7 +2270,9 @@ export class typeProjectUserRole extends familyGeneralElement
2187
2270
 
2188
2271
  return this;
2189
2272
  }
2190
- }
2273
+ }
2274
+ import { familyGeneralElement } from "./0_familyGeneralElement";
2275
+ import { is_object } from "../../utils/utils";
2191
2276
 
2192
2277
 
2193
2278
  /**
@@ -2263,7 +2348,9 @@ export class typeTask extends familyGeneralElement
2263
2348
 
2264
2349
  return this;
2265
2350
  }
2266
- }
2351
+ }
2352
+ import { familyGeneralElement } from "./0_familyGeneralElement";
2353
+ import { is_object } from "../../utils/utils";
2267
2354
 
2268
2355
 
2269
2356
  /**
@@ -2366,7 +2453,10 @@ export class typeTeam extends familyGeneralElement
2366
2453
  user_delete() {}
2367
2454
 
2368
2455
  users_get() {}
2369
- }
2456
+ }
2457
+ import { familyGeneralElement } from "./0_familyGeneralElement";
2458
+ import { is_object } from "../../utils/utils";
2459
+
2370
2460
 
2371
2461
  /**
2372
2462
  * @version v.0.2 (11/11/2024)
@@ -2421,7 +2511,9 @@ export class typeTeamMember extends familyGeneralElement
2421
2511
 
2422
2512
  return this;
2423
2513
  }
2424
- }
2514
+ }
2515
+ import { familyGeneralElement } from "./0_familyGeneralElement";
2516
+ import { is_object } from "../../utils/utils";
2425
2517
 
2426
2518
  /**
2427
2519
  * Роль пользователя в команде
@@ -2475,7 +2567,9 @@ export class typeTeamUserRole extends familyGeneralElement
2475
2567
 
2476
2568
  return this;
2477
2569
  }
2478
- }
2570
+ }
2571
+ import { familyGeneralElement } from "./0_familyGeneralElement";
2572
+ import { echo, is_object } from "../../utils/utils";
2479
2573
 
2480
2574
 
2481
2575
  /**
@@ -2515,13 +2609,13 @@ export class typeTestCase extends familyGeneralElement
2515
2609
  project_id : 'integer | require',
2516
2610
  team_id : 'integer | require',
2517
2611
  functional_id : 'integer | optional',
2518
- test_case_title : 'string | require',
2612
+ test_case_title : 'string | require',
2519
2613
  test_case_descriptions : 'string | require',
2520
2614
  test_case_time_to_execute: 'integer | optional',
2521
2615
  test_case_complexity : 'string | enum | optional',
2522
2616
  test_case_importance : 'string | enum | optional',
2523
- created_at : 'timestamp | require',
2524
- updated_at : 'timestamp | optional',
2617
+ created_at : 'timestamp | require',
2618
+ updated_at : 'timestamp | optional',
2525
2619
  };
2526
2620
 
2527
2621
  available_enum_values = {
@@ -2560,33 +2654,184 @@ export class typeTestCase extends familyGeneralElement
2560
2654
 
2561
2655
  /**
2562
2656
  *
2563
- * @version v.0.1 (07/07/2024)
2657
+ * @param {familyGeneralElement|object} payload
2658
+ *
2659
+ * @param {typeFunctionCallback|object|false} callback
2660
+ *
2661
+ * @param {?function} callback.before
2662
+ * @param {?function} callback.success
2663
+ * @param {?function} callback.error
2664
+ * @param {?function} callback.final
2665
+ *
2666
+ * @version v.0.1 (17/05/2025)
2564
2667
  */
2565
- async create()
2566
- {}
2668
+ async create(payload, callback)
2669
+ {
2670
+ if (typeof callback?.before === 'function')
2671
+ {
2672
+ callback?.before({ payload });
2673
+ }
2674
+
2675
+ payload = this.normalize_payload(payload);
2676
+
2677
+
2678
+ /**
2679
+ * {Api} ApiService
2680
+ */
2681
+ return ApiService.test_case.create(payload).then((response) =>
2682
+ {
2683
+ if (typeof callback?.success === 'function')
2684
+ {
2685
+ callback?.success({ response, payload })
2686
+ }
2687
+ }).catch((error) =>
2688
+ {
2689
+ echo({ error });
2690
+ if (typeof callback?.error === 'function')
2691
+ {
2692
+ callback?.error({ error, payload })
2693
+ }
2694
+ }).finally((response) =>
2695
+ {
2696
+ if (typeof callback?.final === 'function')
2697
+ {
2698
+ callback?.final({ response, payload })
2699
+ }
2700
+ });
2701
+ }
2567
2702
 
2568
2703
 
2569
2704
  /**
2570
2705
  *
2571
2706
  * @version v.0.1 (07/07/2024)
2572
2707
  */
2573
- async update()
2708
+ async update(payload, callback)
2574
2709
  {
2710
+ if (typeof callback?.before === 'function')
2711
+ {
2712
+ callback?.before({ payload });
2713
+ }
2575
2714
 
2715
+ payload = this.normalize_payload(payload);
2716
+
2717
+
2718
+ /**
2719
+ * {Api} ApiService
2720
+ */
2721
+ return ApiService.test_case.update(payload).then((response) =>
2722
+ {
2723
+ if (typeof callback?.success === 'function')
2724
+ {
2725
+ callback?.success({ response, payload })
2726
+ }
2727
+ }).catch((error) =>
2728
+ {
2729
+ echo({ error });
2730
+ if (typeof callback?.error === 'function')
2731
+ {
2732
+ callback?.error({ error, payload })
2733
+ }
2734
+ }).finally((response) =>
2735
+ {
2736
+ if (typeof callback?.final === 'function')
2737
+ {
2738
+ callback?.final({ response, payload })
2739
+ }
2740
+ });
2576
2741
  }
2577
2742
 
2578
2743
 
2579
2744
  /**
2580
2745
  *
2581
- * @version v.0.1 (07/07/2024)
2746
+ * @param key
2747
+ * @param value
2748
+ * @param callback
2749
+ * @returns {Promise<>}
2582
2750
  */
2583
- async delete()
2751
+ async update_property(key, value, callback)
2752
+ {
2753
+ let payload = {
2754
+ key : key,
2755
+ value : value,
2756
+ test_case_id: this.test_case_id
2757
+ };
2758
+
2759
+ if (typeof callback?.before === 'function')
2760
+ {
2761
+ callback?.before({ payload });
2762
+ }
2763
+
2764
+ /**
2765
+ * {Api} ApiService
2766
+ */
2767
+ return ApiService.test_case.update_property(payload).then((response) =>
2768
+ {
2769
+ if (typeof callback?.success === 'function')
2770
+ {
2771
+ callback?.success({ response, payload })
2772
+ }
2773
+ }).catch((error) =>
2774
+ {
2775
+ echo({ error });
2776
+ if (typeof callback?.error === 'function')
2777
+ {
2778
+ callback?.error({ error, payload })
2779
+ }
2780
+ }).finally((response) =>
2781
+ {
2782
+ if (typeof callback?.final === 'function')
2783
+ {
2784
+ callback?.final({ response, payload })
2785
+ }
2786
+ });
2787
+ }
2788
+
2789
+
2790
+ /**
2791
+ *
2792
+ * @version v.0.1 (17/05/2025)
2793
+ */
2794
+ async delete(element = false, callback = {})
2584
2795
  {
2796
+ if (!element)
2797
+ {
2798
+ element = this;
2799
+ }
2800
+
2801
+ let payload = {
2802
+ test_case_id: element.test_case_id
2803
+ };
2804
+
2805
+ if (typeof callback?.before === 'function')
2806
+ {
2807
+ callback?.before({ payload });
2808
+ }
2585
2809
 
2810
+ return ApiService.test_case.delete(payload).then((response) =>
2811
+ {
2812
+ if (typeof callback?.success === 'function')
2813
+ {
2814
+ callback?.success({ response, payload })
2815
+ }
2816
+ }).catch((error) =>
2817
+ {
2818
+ echo({ error });
2819
+ if (typeof callback?.error === 'function')
2820
+ {
2821
+ callback?.error({ error, payload })
2822
+ }
2823
+ }).finally((response) =>
2824
+ {
2825
+ if (typeof callback?.final === 'function')
2826
+ {
2827
+ callback?.final({ response, payload })
2828
+ }
2829
+ });
2586
2830
  }
2587
2831
 
2588
2832
 
2589
- }
2833
+ }
2834
+ import { familyGeneralElement } from "./0_familyGeneralElement";
2590
2835
 
2591
2836
 
2592
2837
  /**
@@ -2606,7 +2851,9 @@ export class typeTestCaseStep extends familyGeneralElement
2606
2851
  available_enum_values = {
2607
2852
  test_case_step_type: [ 'TEST_CASE_STEP', 'TEST_CASE_PRESTEP' ],
2608
2853
  };
2609
- }
2854
+ }
2855
+ import { familyGeneralElement } from "./0_familyGeneralElement";
2856
+ import { is_object } from "../../utils/utils";
2610
2857
 
2611
2858
 
2612
2859
  /**
@@ -2639,7 +2886,9 @@ export class typeTestPlan extends familyGeneralElement
2639
2886
 
2640
2887
  return this;
2641
2888
  }
2642
- }
2889
+ }
2890
+ import { familyGeneralElement } from "./0_familyGeneralElement";
2891
+ import { is_object } from "../../utils/utils";
2643
2892
 
2644
2893
  /**
2645
2894
  * Коллекция тестов для работы, она же parent для typeTestRunResult
@@ -2693,7 +2942,9 @@ export class typeTestRun extends familyGeneralElement
2693
2942
 
2694
2943
  return this;
2695
2944
  }
2696
- }
2945
+ }
2946
+ import { familyGeneralElement } from "./0_familyGeneralElement";
2947
+ import { is_object } from "../../utils/utils";
2697
2948
 
2698
2949
  /**
2699
2950
  * 1 результат по каждому тест кейсу
@@ -2763,7 +3014,9 @@ export class typeTestRunResult extends familyGeneralElement
2763
3014
 
2764
3015
  return this;
2765
3016
  }
2766
- }
3017
+ }
3018
+ import { familyGeneralElement } from "./0_familyGeneralElement";
3019
+ import { is_object } from "../../utils/utils";
2767
3020
 
2768
3021
  /**
2769
3022
  * Структурная коллекция тестов
@@ -2847,7 +3100,9 @@ export class typeTestSuite extends familyGeneralElement
2847
3100
  }
2848
3101
 
2849
3102
 
2850
- }
3103
+ }
3104
+ import { familyGeneralElement } from "./0_familyGeneralElement";
3105
+ import { is_object } from "../../utils/utils";
2851
3106
 
2852
3107
 
2853
3108
  /**
@@ -2901,7 +3156,7 @@ export class typeUser extends familyGeneralElement
2901
3156
 
2902
3157
  return this;
2903
3158
  }
2904
- }
3159
+ }
2905
3160
  /**
2906
3161
  * базовый тип для всех служебных типов
2907
3162
  * @version v.0.1 (26/05/2024)
@@ -2909,7 +3164,47 @@ export class typeUser extends familyGeneralElement
2909
3164
  export class familyService
2910
3165
  {
2911
3166
  //
2912
- }
3167
+ }
3168
+ import { familyService } from "./familyService";
3169
+
3170
+ /**
3171
+ * Общее конфигурирование приложений
3172
+ *
3173
+ * @version v.0.1 (26/04/2025)
3174
+ */
3175
+ export class typeAppConfiguration extends familyService
3176
+ {
3177
+ /**
3178
+ *
3179
+ * @type {false|array<'PROTOTYPE','DEVELOPMENT','DEPRECATED','TESTING','PRODUCTION'>}
3180
+ */
3181
+ app_stage = false;
3182
+
3183
+ /**
3184
+ *
3185
+ * @type {false|number}
3186
+ */
3187
+ app_id = false;
3188
+
3189
+
3190
+ constructor(data = false)
3191
+ {
3192
+ super();
3193
+ if (data && typeof data === 'object')
3194
+ {
3195
+ _.mapObject(data, (value, key) =>
3196
+ {
3197
+ if (this.hasOwnProperty(key))
3198
+ {
3199
+ this [ key ] = value;
3200
+ }
3201
+ });
3202
+ }
3203
+
3204
+ return this;
3205
+ }
3206
+ }
3207
+ import { familyService } from "./familyService";
2913
3208
 
2914
3209
  /**
2915
3210
  *
@@ -2944,7 +3239,8 @@ export class typeFOR extends familyService
2944
3239
 
2945
3240
  return this;
2946
3241
  }
2947
- }
3242
+ }
3243
+ import { familyService } from "./familyService";
2948
3244
 
2949
3245
  /**
2950
3246
  * Описание стандартного колбека типового для методов
@@ -2983,7 +3279,9 @@ export class typeFunctionCallback extends familyService
2983
3279
 
2984
3280
  return this;
2985
3281
  }
2986
- }
3282
+ }
3283
+ import { familyService } from "./familyService";
3284
+ import { is_object } from "../../utils/utils";
2987
3285
 
2988
3286
  /**
2989
3287
  * Уведомления
@@ -3017,7 +3315,100 @@ export class typeNotification extends familyService
3017
3315
 
3018
3316
  return this;
3019
3317
  }
3020
- }
3318
+ }
3319
+ import { familyService } from "./familyService";
3320
+
3321
+ /**
3322
+ *
3323
+ * @version v.0.1 (26/04/2025)
3324
+ */
3325
+ export class typeTableColumn extends familyService
3326
+ {
3327
+ header_name;
3328
+ field;
3329
+ width;
3330
+ sort_order;
3331
+ cell_classes;
3332
+ default_sort;
3333
+ is_sortable;
3334
+ is_filter;
3335
+ is_hide;
3336
+ is_editable;
3337
+
3338
+
3339
+ constructor(data = false)
3340
+ {
3341
+ super();
3342
+ if (data && typeof data === 'object')
3343
+ {
3344
+ _.mapObject(data, (value, key) =>
3345
+ {
3346
+ if (this.hasOwnProperty(key))
3347
+ {
3348
+ this [ key ] = value;
3349
+ }
3350
+ });
3351
+ }
3352
+
3353
+ return this;
3354
+ }
3355
+ }
3356
+ import { typeAppConfiguration } from "./typeAppConfiguration";
3357
+
3358
+ /**
3359
+ * Настройки таблиц (aggrid)
3360
+ *
3361
+ * @version v.0.1 (26/04/2025)
3362
+ */
3363
+ export class typeTableConfiguration extends typeAppConfiguration
3364
+ {
3365
+ /**
3366
+ * @type {array<typeTableColumn>}
3367
+ */
3368
+ columns;
3369
+
3370
+ /**
3371
+ * @type {array<typeFOR>}
3372
+ */
3373
+ for;
3374
+
3375
+
3376
+ /**
3377
+ * Элемент, в составе
3378
+ * надо ли
3379
+ */
3380
+ contained_element_type;
3381
+
3382
+
3383
+
3384
+ /**
3385
+ * под развитие
3386
+ * @type {{link: false|string, description: false|string}}
3387
+ */
3388
+ documentation = {
3389
+ description: false,
3390
+ link : false,
3391
+ };
3392
+
3393
+
3394
+
3395
+ constructor(data = false)
3396
+ {
3397
+ super();
3398
+ if (data && typeof data === 'object')
3399
+ {
3400
+ _.mapObject(data, (value, key) =>
3401
+ {
3402
+ if (this.hasOwnProperty(key))
3403
+ {
3404
+ this [ key ] = value;
3405
+ }
3406
+ });
3407
+ }
3408
+
3409
+ return this;
3410
+ }
3411
+ }
3021
3412
  /**
3022
3413
  *
3023
3414
  * @version v.0.1 (02/07/2024)
@@ -3030,7 +3421,9 @@ export class abstractMockData
3030
3421
  {
3031
3422
  this.mock_data_type = mock_data_type;
3032
3423
  }
3033
- }
3424
+ }
3425
+ import { abstractMockData } from "./abstract_mock_data";
3426
+ import { count, is_object } from "../../../utils/utils";
3034
3427
 
3035
3428
 
3036
3429
  /**