sdc_client 0.57.12 → 0.57.15

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.
@@ -179,7 +179,7 @@ export class Model {
179
179
  });
180
180
  }
181
181
 
182
- listView(filter = {}, cb_resolve = null, cb_reject = null) {
182
+ listView(filter = {}, cb_resolve = null, cb_reject = null, template_context = {}) {
183
183
  let $div_list = $('<div class="container-fluid">');
184
184
  this.isConnected().then(() => {
185
185
  const id = uuidv4();
@@ -190,7 +190,8 @@ export class Model {
190
190
  args: {
191
191
  model_name: this.model_name,
192
192
  model_query: this.model_query,
193
- filter: filter
193
+ filter,
194
+ template_context
194
195
  }
195
196
  }));
196
197
 
@@ -207,7 +208,8 @@ export class Model {
207
208
  return $div_list;
208
209
  }
209
210
 
210
- detailView(pk = -1, cb_resolve = null, cb_reject = null) {
211
+ detailView(pk = null, cb_resolve = null, cb_reject = null, template_context = {}) {
212
+ pk = pk ?? -1;
211
213
  pk = parseInt(pk);
212
214
  if (isNaN(pk)) {
213
215
  pk = -1;
@@ -233,7 +235,8 @@ export class Model {
233
235
  args: {
234
236
  model_name: this.model_name,
235
237
  model_query: this.model_query,
236
- pk: pk
238
+ pk,
239
+ template_context
237
240
  }
238
241
  }));
239
242
 
@@ -86,7 +86,7 @@ const copyProps = (targetClass, sourceClass) => {
86
86
  *
87
87
  * @param {typeof AbstractSDC} baseClass
88
88
  * @param {typeof AbstractSDC} mixins
89
- * @returns {AbstractSDC}
89
+ * @returns {typeof AbstractSDC}
90
90
  */
91
91
  export function agileAggregation(baseClass, ...mixins) {
92
92