complexqa_frontend_core 1.0.2 → 1.0.3

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.3",
4
4
  "description": "core of web ",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,8 +1,4 @@
1
1
 
2
- import i18next from 'i18next';
3
- import axios from "axios";
4
- import * as qs from "query-string/base";
5
-
6
2
  /**
7
3
  * Прототип идеи, пока не уверен, что именно так надо
8
4
  *
@@ -896,7 +892,6 @@ export class serviceTranslate extends abstractService
896
892
  }
897
893
  }
898
894
 
899
-
900
895
  /**
901
896
  *
902
897
  * @version v.1.0 (18/11/2024)
@@ -2911,6 +2906,44 @@ export class familyService
2911
2906
  //
2912
2907
  }
2913
2908
 
2909
+ /**
2910
+ * Общее конфигурирование приложений
2911
+ *
2912
+ * @version v.0.1 (26/04/2025)
2913
+ */
2914
+ export class typeAppConfiguration extends familyService
2915
+ {
2916
+ /**
2917
+ *
2918
+ * @type {false|array<'PROTOTYPE','DEVELOPMENT','DEPRECATED','TESTING','PRODUCTION'>}
2919
+ */
2920
+ app_stage = false;
2921
+
2922
+ /**
2923
+ *
2924
+ * @type {false|number}
2925
+ */
2926
+ app_id = false;
2927
+
2928
+
2929
+ constructor(data = false)
2930
+ {
2931
+ super();
2932
+ if (data && typeof data === 'object')
2933
+ {
2934
+ _.mapObject(data, (value, key) =>
2935
+ {
2936
+ if (this.hasOwnProperty(key))
2937
+ {
2938
+ this [ key ] = value;
2939
+ }
2940
+ });
2941
+ }
2942
+
2943
+ return this;
2944
+ }
2945
+ }
2946
+
2914
2947
  /**
2915
2948
  *
2916
2949
  * @version v.0.1 (26/01/2025)
@@ -3018,6 +3051,97 @@ export class typeNotification extends familyService
3018
3051
  return this;
3019
3052
  }
3020
3053
  }
3054
+
3055
+ /**
3056
+ *
3057
+ * @version v.0.1 (26/04/2025)
3058
+ */
3059
+ export class typeTableColumn extends familyService
3060
+ {
3061
+ header_name;
3062
+ field;
3063
+ width;
3064
+ sort_order;
3065
+ cell_classes;
3066
+ default_sort;
3067
+ is_sortable;
3068
+ is_filter;
3069
+ is_hide;
3070
+ is_editable;
3071
+
3072
+
3073
+ constructor(data = false)
3074
+ {
3075
+ super();
3076
+ if (data && typeof data === 'object')
3077
+ {
3078
+ _.mapObject(data, (value, key) =>
3079
+ {
3080
+ if (this.hasOwnProperty(key))
3081
+ {
3082
+ this [ key ] = value;
3083
+ }
3084
+ });
3085
+ }
3086
+
3087
+ return this;
3088
+ }
3089
+ }
3090
+
3091
+ /**
3092
+ * Настройки таблиц (aggrid)
3093
+ *
3094
+ * @version v.0.1 (26/04/2025)
3095
+ */
3096
+ export class typeTableConfiguration extends typeAppConfiguration
3097
+ {
3098
+ /**
3099
+ * @type {array<typeTableColumn>}
3100
+ */
3101
+ columns;
3102
+
3103
+ /**
3104
+ * @type {array<typeFOR>}
3105
+ */
3106
+ for;
3107
+
3108
+
3109
+ /**
3110
+ * Элемент, в составе
3111
+ * надо ли
3112
+ */
3113
+ contained_element_type;
3114
+
3115
+
3116
+
3117
+ /**
3118
+ * под развитие
3119
+ * @type {{link: false|string, description: false|string}}
3120
+ */
3121
+ documentation = {
3122
+ description: false,
3123
+ link : false,
3124
+ };
3125
+
3126
+
3127
+
3128
+ constructor(data = false)
3129
+ {
3130
+ super();
3131
+ if (data && typeof data === 'object')
3132
+ {
3133
+ _.mapObject(data, (value, key) =>
3134
+ {
3135
+ if (this.hasOwnProperty(key))
3136
+ {
3137
+ this [ key ] = value;
3138
+ }
3139
+ });
3140
+ }
3141
+
3142
+ return this;
3143
+ }
3144
+ }
3021
3145
  /**
3022
3146
  *
3023
3147
  * @version v.0.1 (02/07/2024)