@saltcorn/server 1.6.0-beta.3 → 1.6.0-beta.5

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.
Files changed (1069) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/app.js +14 -5
  3. package/auth/routes.js +175 -60
  4. package/auth/testhelp.js +9 -19
  5. package/docs/assets/hierarchy.js +1 -1
  6. package/docs/assets/navigation.js +1 -1
  7. package/docs/assets/search.js +1 -1
  8. package/docs/classes/_saltcorn_admin-models.models_snapshot.Snapshot.html +2 -2
  9. package/docs/classes/_saltcorn_common-code.relations_relation.Relation.html +3 -3
  10. package/docs/classes/_saltcorn_common-code.relations_relations_finder.RelationsFinder.html +5 -5
  11. package/docs/classes/_saltcorn_data.diagram_cy_raster.CytoscapeRaster.html +4 -4
  12. package/docs/classes/_saltcorn_data.diagram_nodes_dummy_node.DummyNode.html +4 -4
  13. package/docs/classes/_saltcorn_data.diagram_nodes_node.Node.html +4 -4
  14. package/docs/classes/_saltcorn_data.diagram_nodes_page_node.PageNode.html +4 -4
  15. package/docs/classes/_saltcorn_data.diagram_nodes_table_node.TableNode.html +4 -4
  16. package/docs/classes/_saltcorn_data.diagram_nodes_trigger_node.TriggerNode.html +4 -4
  17. package/docs/classes/_saltcorn_data.diagram_nodes_view_node.ViewNode.html +4 -4
  18. package/docs/classes/_saltcorn_data.mobile-mocks_node_async_hooks.AsyncLocalStorage.html +2 -2
  19. package/docs/classes/_saltcorn_data.models_crash.Crash.html +2 -2
  20. package/docs/classes/_saltcorn_data.models_eventlog.EventLog.html +2 -2
  21. package/docs/classes/_saltcorn_data.models_field.Field.html +9 -9
  22. package/docs/classes/_saltcorn_data.models_fieldrepeat.FieldRepeat.html +2 -2
  23. package/docs/classes/_saltcorn_data.models_file.File.html +21 -21
  24. package/docs/classes/_saltcorn_data.models_form.Form.html +2 -2
  25. package/docs/classes/_saltcorn_data.models_internal_mail_queue.MailQueue.html +4 -4
  26. package/docs/classes/_saltcorn_data.models_internal_push_message_helper.PushMessageHelper.html +7 -7
  27. package/docs/classes/_saltcorn_data.models_library.Library.html +2 -2
  28. package/docs/classes/_saltcorn_data.models_model.Model.html +2 -2
  29. package/docs/classes/_saltcorn_data.models_model_instance.ModelInstance.html +2 -2
  30. package/docs/classes/_saltcorn_data.models_notification.Notification.html +2 -2
  31. package/docs/classes/_saltcorn_data.models_page.Page.html +12 -11
  32. package/docs/classes/_saltcorn_data.models_page_group.PageGroup.html +16 -16
  33. package/docs/classes/_saltcorn_data.models_page_group_member.PageGroupMember.html +8 -8
  34. package/docs/classes/_saltcorn_data.models_plugin.Plugin.html +44 -10
  35. package/docs/classes/_saltcorn_data.models_role.Role.html +2 -2
  36. package/docs/classes/_saltcorn_data.models_table.Table.html +67 -65
  37. package/docs/classes/_saltcorn_data.models_table_constraints.TableConstraint.html +2 -2
  38. package/docs/classes/_saltcorn_data.models_tag.Tag.html +2 -2
  39. package/docs/classes/_saltcorn_data.models_tag_entry.TagEntry.html +2 -2
  40. package/docs/classes/_saltcorn_data.models_trigger.Trigger.html +21 -20
  41. package/docs/classes/_saltcorn_data.models_user.User.html +32 -32
  42. package/docs/classes/_saltcorn_data.models_view.View.html +16 -15
  43. package/docs/classes/_saltcorn_data.models_workflow.Workflow.html +2 -2
  44. package/docs/classes/_saltcorn_data.models_workflow_run.WorkflowRun.html +2 -2
  45. package/docs/classes/_saltcorn_data.models_workflow_step.WorkflowStep.html +2 -2
  46. package/docs/classes/_saltcorn_data.models_workflow_trace.MetaData.html +2 -2
  47. package/docs/classes/_saltcorn_data.models_workflow_trace.WorkflowTrace.html +2 -2
  48. package/docs/classes/_saltcorn_mobile-builder.mobile-builder.MobileBuilder.html +2 -2
  49. package/docs/classes/_saltcorn_mobile-builder.utils_capacitor-helper.CapacitorHelper.html +2 -2
  50. package/docs/enums/_saltcorn_common-code.relations_relation_types.RelationType.html +2 -2
  51. package/docs/enums/_saltcorn_common-code.relations_relation_types.ViewDisplayType.html +2 -2
  52. package/docs/functions/_saltcorn_admin-models.models_config-check.runConfigurationCheck.html +1 -1
  53. package/docs/functions/_saltcorn_common-code.relations_relation_helpers.buildRelationPath.html +1 -1
  54. package/docs/functions/_saltcorn_common-code.relations_relation_helpers.buildTableCaches.html +1 -1
  55. package/docs/functions/_saltcorn_common-code.relations_relation_helpers.parseLegacyRelation.html +1 -1
  56. package/docs/functions/_saltcorn_common-code.relations_relation_helpers.parseRelationPath.html +1 -1
  57. package/docs/functions/_saltcorn_common-code.tests_test_data.fixturesData.html +1 -1
  58. package/docs/functions/_saltcorn_common-code.tests_test_data.withAnotherUserField.html +1 -1
  59. package/docs/functions/_saltcorn_common-code.tests_test_data.withKeyFromLayerThree.html +1 -1
  60. package/docs/functions/_saltcorn_common-code.tests_test_data.withKeyFromLayerTwo.html +1 -1
  61. package/docs/functions/_saltcorn_common-code.tests_test_data.withMultipleInbounds.html +1 -1
  62. package/docs/functions/_saltcorn_common-code.tests_test_data.withSecondTopicField.html +1 -1
  63. package/docs/functions/_saltcorn_common-code.tests_test_data.withSimplePostTopicrelation.html +1 -1
  64. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.action_link.html +1 -1
  65. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.action_url.html +1 -1
  66. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.fill_presets.html +1 -1
  67. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.getForm.html +1 -1
  68. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.get_view_link_query.html +1 -1
  69. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.get_viewable_fields.html +1 -1
  70. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.get_viewable_fields_from_layout.html +1 -1
  71. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.make_link.html +1 -1
  72. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.objToQueryString.html +1 -1
  73. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.parse_view_select.html +1 -1
  74. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.setDateLocales.html +1 -1
  75. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.splitUniques.html +1 -1
  76. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.standardBlockDispatch.html +1 -1
  77. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.standardLayoutRowVisitor.html +1 -1
  78. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.transformForm.html +1 -1
  79. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.updateViewSelect.html +1 -1
  80. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.view_linker.html +1 -1
  81. package/docs/functions/_saltcorn_data.db_connect_mobile.getConnectObject.html +1 -1
  82. package/docs/functions/_saltcorn_data.db_reset_schema.reset.html +1 -1
  83. package/docs/functions/_saltcorn_data.diagram_cy_generate_utils.generateCyCode.html +1 -1
  84. package/docs/functions/_saltcorn_data.diagram_cy_generate_utils.genereateCyCfg.html +1 -1
  85. package/docs/functions/_saltcorn_data.diagram_node_extract_utils.buildObjectTrees.html +1 -1
  86. package/docs/functions/_saltcorn_data.diagram_node_extract_utils.extractFromColumns.html +1 -1
  87. package/docs/functions/_saltcorn_data.diagram_node_extract_utils.extractFromLayout.html +1 -1
  88. package/docs/functions/_saltcorn_data.diagram_node_extract_utils.extractViewToCreate.html +1 -1
  89. package/docs/functions/_saltcorn_data.migrate.create_blank_migration.html +1 -1
  90. package/docs/functions/_saltcorn_data.migrate.getMigrationsInDB.html +1 -1
  91. package/docs/functions/_saltcorn_data.migrate.migrate.html +1 -1
  92. package/docs/functions/_saltcorn_data.migrations_202102091312.js.html +1 -1
  93. package/docs/functions/_saltcorn_data.migrations_202210051058.js.html +1 -1
  94. package/docs/functions/_saltcorn_data.migrations_202210101540.js.html +1 -1
  95. package/docs/functions/_saltcorn_data.migrations_202304281224.js.html +1 -1
  96. package/docs/functions/_saltcorn_data.migrations_202307211459.js.html +1 -1
  97. package/docs/functions/_saltcorn_data.migrations_202502131103.js.html +1 -1
  98. package/docs/functions/_saltcorn_data.migrations_202508011455.js.html +1 -1
  99. package/docs/functions/_saltcorn_data.migrations_202510152058.js.html +1 -1
  100. package/docs/functions/_saltcorn_data.migrations_202603101553.sql_pg.html +1 -1
  101. package/docs/functions/_saltcorn_data.migrations_202604111200.sql_pg.html +1 -0
  102. package/docs/functions/_saltcorn_data.mobile-mocks_node_child_process.execSync.html +1 -1
  103. package/docs/functions/_saltcorn_data.mobile-mocks_node_fs.createReadStream.html +1 -1
  104. package/docs/functions/_saltcorn_data.mobile-mocks_node_fs.readdirSync.html +1 -1
  105. package/docs/functions/_saltcorn_data.mobile-mocks_node_fs.writeFileSync.html +1 -1
  106. package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.mkdir.html +1 -1
  107. package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.readFile.html +1 -1
  108. package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.readdir.html +1 -1
  109. package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.stat.html +1 -1
  110. package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.unlink.html +1 -1
  111. package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.writeFile.html +1 -1
  112. package/docs/functions/_saltcorn_data.mobile-mocks_node_latest-version.latestVersion.html +1 -1
  113. package/docs/functions/_saltcorn_data.mobile-mocks_node_v8.deserialize.html +1 -1
  114. package/docs/functions/_saltcorn_data.mobile-mocks_node_v8.serialize.html +1 -1
  115. package/docs/functions/_saltcorn_data.mobile-mocks_npm_env-paths.envPaths.html +1 -1
  116. package/docs/functions/_saltcorn_data.model-helper.get_predictor.html +1 -1
  117. package/docs/functions/_saltcorn_data.model-helper.run_jupyter_model.html +1 -1
  118. package/docs/functions/_saltcorn_data.model-helper.shorten_trackback.html +1 -1
  119. package/docs/functions/_saltcorn_data.model-helper.write_csv.html +1 -1
  120. package/docs/functions/_saltcorn_data.models_internal_async_json_stream.async_json_stream.html +1 -1
  121. package/docs/functions/_saltcorn_data.models_internal_query.aggregation_query_fields.html +1 -1
  122. package/docs/functions/_saltcorn_data.models_internal_query.getAggAndField.html +1 -1
  123. package/docs/functions/_saltcorn_data.models_internal_query.joinfield_renamer.html +1 -1
  124. package/docs/functions/_saltcorn_data.models_internal_query.process_aggregations.html +1 -1
  125. package/docs/functions/_saltcorn_data.models_internal_s3_helpers.buildKeyFromRelative.html +1 -1
  126. package/docs/functions/_saltcorn_data.models_internal_s3_helpers.copyObject.html +1 -1
  127. package/docs/functions/_saltcorn_data.models_internal_s3_helpers.deleteObject.html +1 -1
  128. package/docs/functions/_saltcorn_data.models_internal_s3_helpers.downloadBuffer.html +1 -1
  129. package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getPublicFileUrl.html +1 -1
  130. package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getResolvedBucket.html +1 -1
  131. package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getS3Client.html +1 -1
  132. package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getServeUrl.html +1 -1
  133. package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getSignedFileUrl.html +1 -1
  134. package/docs/functions/_saltcorn_data.models_internal_s3_helpers.headObject.html +1 -1
  135. package/docs/functions/_saltcorn_data.models_internal_s3_helpers.isS3Enabled.html +1 -1
  136. package/docs/functions/_saltcorn_data.models_internal_s3_helpers.listS3Folder.html +1 -1
  137. package/docs/functions/_saltcorn_data.models_internal_s3_helpers.publicUrlToRelativePath.html +1 -1
  138. package/docs/functions/_saltcorn_data.models_internal_s3_helpers.relativeKeyToPath.html +1 -1
  139. package/docs/functions/_saltcorn_data.models_internal_s3_helpers.setObjectMetadata.html +1 -1
  140. package/docs/functions/_saltcorn_data.models_internal_s3_helpers.uploadBuffer.html +1 -1
  141. package/docs/functions/_saltcorn_data.models_internal_table_helper.boolExamples.html +1 -1
  142. package/docs/functions/_saltcorn_data.models_internal_table_helper.colorExamples.html +1 -1
  143. package/docs/functions/_saltcorn_data.models_internal_table_helper.floatExamples.html +1 -1
  144. package/docs/functions/_saltcorn_data.models_internal_table_helper.get_formula_examples.html +1 -1
  145. package/docs/functions/_saltcorn_data.models_internal_table_helper.intExamples.html +1 -1
  146. package/docs/functions/_saltcorn_data.models_internal_table_helper.stringExamples.html +1 -1
  147. package/docs/functions/_saltcorn_data.plugin-helper.build_schema_data.html +1 -1
  148. package/docs/functions/_saltcorn_data.plugin-helper.calcfldViewConfig.html +1 -1
  149. package/docs/functions/_saltcorn_data.plugin-helper.calcfldViewOptions.html +1 -1
  150. package/docs/functions/_saltcorn_data.plugin-helper.calcrelViewOptions.html +1 -1
  151. package/docs/functions/_saltcorn_data.plugin-helper.displayType.html +1 -1
  152. package/docs/functions/_saltcorn_data.plugin-helper.field_picker_fields.html +1 -1
  153. package/docs/functions/_saltcorn_data.plugin-helper.generate_joined_query.html +1 -1
  154. package/docs/functions/_saltcorn_data.plugin-helper.getActionConfigFields.html +1 -1
  155. package/docs/functions/_saltcorn_data.plugin-helper.get_child_views.html +1 -1
  156. package/docs/functions/_saltcorn_data.plugin-helper.get_inbound_relation_opts.html +1 -1
  157. package/docs/functions/_saltcorn_data.plugin-helper.get_inbound_self_relation_opts.html +1 -1
  158. package/docs/functions/_saltcorn_data.plugin-helper.get_link_view_opts.html +1 -1
  159. package/docs/functions/_saltcorn_data.plugin-helper.get_many_to_many_relation_opts.html +1 -1
  160. package/docs/functions/_saltcorn_data.plugin-helper.get_parent_views.html +1 -1
  161. package/docs/functions/_saltcorn_data.plugin-helper.initial_config_all_fields.html +1 -1
  162. package/docs/functions/_saltcorn_data.plugin-helper.json_list_to_external_table.html +1 -1
  163. package/docs/functions/_saltcorn_data.plugin-helper.link_view.html +1 -1
  164. package/docs/functions/_saltcorn_data.plugin-helper.pathToState.html +1 -1
  165. package/docs/functions/_saltcorn_data.plugin-helper.picked_fields_to_query.html +1 -1
  166. package/docs/functions/_saltcorn_data.plugin-helper.readState.html +1 -1
  167. package/docs/functions/_saltcorn_data.plugin-helper.readStateStrict.html +1 -1
  168. package/docs/functions/_saltcorn_data.plugin-helper.runCollabEvents.html +1 -1
  169. package/docs/functions/_saltcorn_data.plugin-helper.run_action_column.html +1 -1
  170. package/docs/functions/_saltcorn_data.plugin-helper.stateFieldsToQuery.html +1 -1
  171. package/docs/functions/_saltcorn_data.plugin-helper.stateFieldsToWhere.html +1 -1
  172. package/docs/functions/_saltcorn_data.plugin-helper.stateToQueryString.html +1 -1
  173. package/docs/functions/_saltcorn_data.plugin-helper.strictParseInt.html +1 -1
  174. package/docs/functions/_saltcorn_data.plugin-testing.auto_test_plugin.html +1 -1
  175. package/docs/functions/_saltcorn_data.plugin-testing.check_view_columns.html +1 -1
  176. package/docs/functions/_saltcorn_data.plugin-testing.generate_attributes.html +1 -1
  177. package/docs/functions/_saltcorn_data.standard-menu.create_standard_menu.html +1 -1
  178. package/docs/functions/_saltcorn_data.tests_assertions.assertIsErrorMsg.html +1 -1
  179. package/docs/functions/_saltcorn_data.tests_assertions.assertIsErrorsMsg.html +1 -1
  180. package/docs/functions/_saltcorn_data.tests_assertions.assertIsRow.html +1 -1
  181. package/docs/functions/_saltcorn_data.tests_assertions.assertIsSet.html +1 -1
  182. package/docs/functions/_saltcorn_data.tests_assertions.assertIsType.html +1 -1
  183. package/docs/functions/_saltcorn_data.tests_assertions.assertsIsSuccessMessage.html +1 -1
  184. package/docs/functions/_saltcorn_data.tests_assertions.assertsObjectIsUser.html +1 -1
  185. package/docs/functions/_saltcorn_data.tests_common_helpers.createAnotherUserField.html +1 -1
  186. package/docs/functions/_saltcorn_data.tests_common_helpers.createKeyFromLevelTwo.html +1 -1
  187. package/docs/functions/_saltcorn_data.tests_common_helpers.createLevelThreeInbound.html +1 -1
  188. package/docs/functions/_saltcorn_data.tests_common_helpers.createMultipleInbounds.html +1 -1
  189. package/docs/functions/_saltcorn_data.tests_common_helpers.createSecondTopicField.html +1 -1
  190. package/docs/functions/_saltcorn_data.tests_common_helpers.prepareEmployeeDepartment.html +1 -1
  191. package/docs/functions/_saltcorn_data.tests_common_helpers.prepareSimpleTopicPostRelation.html +1 -1
  192. package/docs/functions/_saltcorn_data.tests_remote_query_helper.deleteViewFromServer.html +1 -1
  193. package/docs/functions/_saltcorn_data.tests_remote_query_helper.prepareQueryEnviroment.html +1 -1
  194. package/docs/functions/_saltcorn_data.tests_remote_query_helper.sendViewToServer.html +1 -1
  195. package/docs/functions/_saltcorn_data.translate.hasLLM.html +1 -1
  196. package/docs/functions/_saltcorn_data.translate.translate.html +1 -1
  197. package/docs/functions/_saltcorn_db-common.internal.ftsFieldsSqlExpr.html +1 -1
  198. package/docs/functions/_saltcorn_db-common.internal.mkSelectOptions.html +1 -1
  199. package/docs/functions/_saltcorn_db-common.internal.mkWhere.html +1 -1
  200. package/docs/functions/_saltcorn_db-common.internal.orderByIsObject.html +1 -1
  201. package/docs/functions/_saltcorn_db-common.internal.orderByIsOperator.html +1 -1
  202. package/docs/functions/_saltcorn_db-common.internal.prefixFieldsInWhere.html +1 -1
  203. package/docs/functions/_saltcorn_db-common.internal.sqlBinOp.html +1 -1
  204. package/docs/functions/_saltcorn_db-common.internal.sqlFun.html +1 -1
  205. package/docs/functions/_saltcorn_db-common.internal.sqlsanitize.html +1 -1
  206. package/docs/functions/_saltcorn_db-common.internal.sqlsanitizeAllowDots.html +1 -1
  207. package/docs/functions/_saltcorn_db-common.internal.subSelectWhere.html +1 -1
  208. package/docs/functions/_saltcorn_db-common.multi-tenant.enable_multi_tenant.html +1 -1
  209. package/docs/functions/_saltcorn_db-common.multi-tenant.getRequestContext.html +1 -1
  210. package/docs/functions/_saltcorn_db-common.multi-tenant.getTenantSchema.html +1 -1
  211. package/docs/functions/_saltcorn_db-common.multi-tenant.init.html +1 -1
  212. package/docs/functions/_saltcorn_db-common.multi-tenant.is_it_multi_tenant.html +1 -1
  213. package/docs/functions/_saltcorn_db-common.multi-tenant.runWithTenant.html +1 -1
  214. package/docs/functions/_saltcorn_db-common.sqlite-commons.buildInsertBulkSql.html +1 -1
  215. package/docs/functions/_saltcorn_db-common.sqlite-commons.buildInsertSql.html +1 -1
  216. package/docs/functions/_saltcorn_db-common.sqlite-commons.commitAndBeginNewTransaction.html +1 -1
  217. package/docs/functions/_saltcorn_db-common.sqlite-commons.doCount.html +1 -1
  218. package/docs/functions/_saltcorn_db-common.sqlite-commons.doDeleteWhere.html +1 -1
  219. package/docs/functions/_saltcorn_db-common.sqlite-commons.doListScTables.html +1 -1
  220. package/docs/functions/_saltcorn_db-common.sqlite-commons.doListTables.html +1 -1
  221. package/docs/functions/_saltcorn_db-common.sqlite-commons.doListUserDefinedTables.html +1 -1
  222. package/docs/functions/_saltcorn_db-common.sqlite-commons.do_add_index.html +1 -1
  223. package/docs/functions/_saltcorn_db-common.sqlite-commons.do_drop_index.html +1 -1
  224. package/docs/functions/_saltcorn_db-common.sqlite-commons.mkVal.html +1 -1
  225. package/docs/functions/_saltcorn_db-common.sqlite-commons.openOrUseTransaction.html +1 -1
  226. package/docs/functions/_saltcorn_db-common.sqlite-commons.reprAsJson.html +1 -1
  227. package/docs/functions/_saltcorn_db-common.sqlite-commons.slugify.html +1 -1
  228. package/docs/functions/_saltcorn_db-common.sqlite-commons.tryCatchInTransaction.html +1 -1
  229. package/docs/functions/_saltcorn_db-common.sqlite-commons.whenTransactionisFree.html +1 -1
  230. package/docs/functions/_saltcorn_db-common.sqlite-commons.withTransaction.html +1 -1
  231. package/docs/functions/_saltcorn_markup.mktag.mkTag.html +1 -1
  232. package/docs/functions/_saltcorn_markup.tabs.tabs.html +1 -1
  233. package/docs/functions/_saltcorn_markup.workflow.renderWorkflow.html +1 -1
  234. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.androidFeatures.html +1 -1
  235. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.androidPermissions.html +1 -1
  236. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.buildTablesFile.html +1 -1
  237. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copyPrepopulatedDb.html +1 -1
  238. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copyServerFiles.html +1 -1
  239. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copyShareExtFiles.html +1 -1
  240. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copySiteLogo.html +1 -1
  241. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copyTranslationFiles.html +1 -1
  242. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.createSqliteDb.html +1 -1
  243. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.extractDomain.html +1 -1
  244. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.generateAndroidVersionCode.html +1 -1
  245. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.hasAuthMethod.html +1 -1
  246. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyAndroidManifest.html +1 -1
  247. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyAppDelegate.html +1 -1
  248. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyConfigXml.html +1 -1
  249. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyGradleConfig.html +1 -1
  250. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyInfoPlist.html +1 -1
  251. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyShareViewController.html +1 -1
  252. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyXcodeProjectFile.html +1 -1
  253. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepAppIcon.html +1 -1
  254. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareAppIcon.html +1 -1
  255. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareBuildDir.html +1 -1
  256. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareExportOptionsPlist.html +1 -1
  257. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareSplashIcon.html +1 -1
  258. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareSplashPage.html +1 -1
  259. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.runAddEntitlementsScript.html +1 -1
  260. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeCapacitorConfig.html +1 -1
  261. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeCfgFile.html +1 -1
  262. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeDataExtractionRules.html +1 -1
  263. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeEntitlementsPlist.html +1 -1
  264. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeNetworkSecurityConfig.html +1 -1
  265. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writePodfile.html +1 -1
  266. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writePrivacyInfo.html +1 -1
  267. package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.bundleMobileAppCode.html +1 -1
  268. package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.bundlePackagesAndPlugins.html +1 -1
  269. package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.copyOptionalSource.html +1 -1
  270. package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.copyPluginMobileAppDirs.html +1 -1
  271. package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.copyPublicDirs.html +1 -1
  272. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.add_index.html +1 -1
  273. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.add_unique_constraint.html +1 -1
  274. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.count.html +1 -1
  275. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.deleteWhere.html +1 -1
  276. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.drop_index.html +1 -1
  277. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.drop_reset_schema.html +1 -1
  278. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.drop_unique_constraint.html +1 -1
  279. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.init.html +1 -1
  280. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.insert.html +1 -1
  281. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.insertRows.html +1 -1
  282. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.listScTables.html +1 -1
  283. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.listTables.html +1 -1
  284. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.listUserDefinedTables.html +1 -1
  285. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.query.html +1 -1
  286. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.select.html +1 -1
  287. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.selectMaybeOne.html +1 -1
  288. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.selectOne.html +1 -1
  289. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.setConnectionObject.html +1 -1
  290. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.tableExists.html +1 -1
  291. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.time.html +1 -1
  292. package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.update.html +1 -1
  293. package/docs/functions/_saltcorn_sqlite.sqlite.add_index.html +1 -1
  294. package/docs/functions/_saltcorn_sqlite.sqlite.add_unique_constraint.html +1 -1
  295. package/docs/functions/_saltcorn_sqlite.sqlite.begin.html +1 -1
  296. package/docs/functions/_saltcorn_sqlite.sqlite.changeConnection.html +1 -1
  297. package/docs/functions/_saltcorn_sqlite.sqlite.close.html +1 -1
  298. package/docs/functions/_saltcorn_sqlite.sqlite.commit.html +1 -1
  299. package/docs/functions/_saltcorn_sqlite.sqlite.count.html +1 -1
  300. package/docs/functions/_saltcorn_sqlite.sqlite.deleteWhere.html +1 -1
  301. package/docs/functions/_saltcorn_sqlite.sqlite.dropTable.html +1 -1
  302. package/docs/functions/_saltcorn_sqlite.sqlite.dropTables.html +1 -1
  303. package/docs/functions/_saltcorn_sqlite.sqlite.drop_index.html +1 -1
  304. package/docs/functions/_saltcorn_sqlite.sqlite.drop_reset_schema.html +1 -1
  305. package/docs/functions/_saltcorn_sqlite.sqlite.drop_unique_constraint.html +1 -1
  306. package/docs/functions/_saltcorn_sqlite.sqlite.getVersion.html +1 -1
  307. package/docs/functions/_saltcorn_sqlite.sqlite.get_db_filepath.html +1 -1
  308. package/docs/functions/_saltcorn_sqlite.sqlite.get_sql_logging.html +1 -1
  309. package/docs/functions/_saltcorn_sqlite.sqlite.init.html +1 -1
  310. package/docs/functions/_saltcorn_sqlite.sqlite.insert.html +1 -1
  311. package/docs/functions/_saltcorn_sqlite.sqlite.listScTables.html +1 -1
  312. package/docs/functions/_saltcorn_sqlite.sqlite.listTables.html +1 -1
  313. package/docs/functions/_saltcorn_sqlite.sqlite.listUserDefinedTables.html +1 -1
  314. package/docs/functions/_saltcorn_sqlite.sqlite.query.html +1 -1
  315. package/docs/functions/_saltcorn_sqlite.sqlite.rollback.html +1 -1
  316. package/docs/functions/_saltcorn_sqlite.sqlite.select.html +1 -1
  317. package/docs/functions/_saltcorn_sqlite.sqlite.selectMaybeOne.html +1 -1
  318. package/docs/functions/_saltcorn_sqlite.sqlite.selectOne.html +1 -1
  319. package/docs/functions/_saltcorn_sqlite.sqlite.set_sql_logging.html +1 -1
  320. package/docs/functions/_saltcorn_sqlite.sqlite.sql_log.html +1 -1
  321. package/docs/functions/_saltcorn_sqlite.sqlite.update.html +1 -1
  322. package/docs/functions/_saltcorn_sqlite.sqlite.updateWhere.html +1 -1
  323. package/docs/functions/_saltcorn_types.base_types.instanceOWithHtmlFile.html +1 -1
  324. package/docs/functions/_saltcorn_types.base_types.instanceOfFieldViewEdit.html +1 -1
  325. package/docs/functions/_saltcorn_types.base_types.instanceOfFieldViewShow.html +1 -1
  326. package/docs/functions/_saltcorn_types.base_types.instanceOfPack.html +1 -1
  327. package/docs/functions/_saltcorn_types.common_types.instanceOfErrorMsg.html +1 -1
  328. package/docs/functions/_saltcorn_types.common_types.instanceOfSuccessMsg.html +1 -1
  329. package/docs/functions/_saltcorn_types.common_types.instanceOfType.html +1 -1
  330. package/docs/functions/_saltcorn_types.model-abstracts_abstract_field.instanceOfField.html +1 -1
  331. package/docs/functions/_saltcorn_types.model-abstracts_abstract_page.instanceOfPage.html +1 -1
  332. package/docs/functions/_saltcorn_types.model-abstracts_abstract_plugin.instanceOfPlugin.html +1 -1
  333. package/docs/functions/_saltcorn_types.model-abstracts_abstract_table.instanceOfTable.html +1 -1
  334. package/docs/functions/_saltcorn_types.model-abstracts_abstract_view.instanceOfView.html +1 -1
  335. package/docs/hierarchy.html +1 -1
  336. package/docs/interfaces/_saltcorn_db-common.dbtypes.UserLike.html +2 -2
  337. package/docs/interfaces/_saltcorn_markup.types.TagExports.html +2 -2
  338. package/docs/interfaces/_saltcorn_mobile-builder.utils_common-build-utils.ScCapacitorConfig.html +2 -2
  339. package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_field.AbstractField.html +2 -2
  340. package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_field.AbstractFieldRepeat.html +2 -2
  341. package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_form.AbstractForm.html +2 -2
  342. package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_page.AbstractPage.html +2 -2
  343. package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_page_group.AbstractPageGroup.html +2 -2
  344. package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_page_group_member.AbstractPageGroupMember.html +2 -2
  345. package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_plugin.AbstractPlugin.html +2 -2
  346. package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_role.AbstractRole.html +2 -2
  347. package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_table.AbstractTable.html +2 -2
  348. package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_tag.AbstractTag.html +2 -2
  349. package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_tag_entry.AbstractTagEntry.html +2 -2
  350. package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_trigger.AbstractTrigger.html +2 -2
  351. package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_user.AbstractUser.html +2 -2
  352. package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_user.ForUserRequest.html +2 -2
  353. package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_view.AbstractView.html +2 -2
  354. package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_workflow.AbstractWorkflow.html +2 -2
  355. package/docs/modules/_saltcorn_data.html +1 -1
  356. package/docs/modules/_saltcorn_data.migrations_202604091531.html +1 -0
  357. package/docs/modules/_saltcorn_data.migrations_202604111200.html +1 -0
  358. package/docs/modules/_saltcorn_data.mobile-mocks_npm_npm-registry-fetch.html +1 -0
  359. package/docs/modules/_saltcorn_data.mobile-mocks_saltcorn_admin-models-tenant.html +1 -0
  360. package/docs/modules/_saltcorn_data.mobile-mocks_saltcorn_plugins-loader-plugin-installer.html +1 -0
  361. package/docs/modules/_saltcorn_data.mobile-mocks_saltcorn_plugins-loader-stable-versioning.html +1 -0
  362. package/docs/types/_saltcorn_data.diagram_node_extract_utils.ExtractOpts.html +2 -2
  363. package/docs/types/_saltcorn_data.diagram_node_extract_utils.ExtractResult.html +2 -2
  364. package/docs/types/_saltcorn_data.diagram_nodes_node.NodeType.html +1 -1
  365. package/docs/types/_saltcorn_data.models_config.ConfigTypes.html +1 -1
  366. package/docs/types/_saltcorn_data.models_config.SingleConfig.html +1 -1
  367. package/docs/types/_saltcorn_data.models_eventlog.EventLogCfg.html +2 -2
  368. package/docs/types/_saltcorn_data.models_file.FileCfg.html +2 -2
  369. package/docs/types/_saltcorn_data.models_form.AdditionalButton.html +1 -1
  370. package/docs/types/_saltcorn_data.models_form.FormCfg.html +2 -2
  371. package/docs/types/_saltcorn_data.models_internal_push_message_helper.MobileSubscription.html +2 -2
  372. package/docs/types/_saltcorn_data.models_internal_push_message_helper.WebPushSubscription.html +2 -2
  373. package/docs/types/_saltcorn_data.models_internal_s3_helpers.S3HeadResult.html +1 -1
  374. package/docs/types/_saltcorn_data.models_internal_s3_helpers.S3ListResult.html +2 -2
  375. package/docs/types/_saltcorn_data.models_page_group.ScreenInfoParams.html +2 -2
  376. package/docs/types/_saltcorn_data.models_table.ChildRelations.html +2 -2
  377. package/docs/types/_saltcorn_data.models_table.ParentRelations.html +2 -2
  378. package/docs/types/_saltcorn_data.models_table.RelationData.html +2 -2
  379. package/docs/types/_saltcorn_data.models_tag_entry.TagEntryCfg.html +1 -1
  380. package/docs/types/_saltcorn_data.models_view.FindViewsPred.html +1 -1
  381. package/docs/types/_saltcorn_db-common.dbtypes.AggregationOptions.html +2 -2
  382. package/docs/types/_saltcorn_db-common.dbtypes.CoordOpts.html +2 -2
  383. package/docs/types/_saltcorn_db-common.dbtypes.DatabaseClient.html +2 -2
  384. package/docs/types/_saltcorn_db-common.dbtypes.JoinField.html +2 -2
  385. package/docs/types/_saltcorn_db-common.dbtypes.JoinFields.html +1 -1
  386. package/docs/types/_saltcorn_db-common.dbtypes.JoinOptions.html +1 -1
  387. package/docs/types/_saltcorn_db-common.dbtypes.JsonPath.html +1 -1
  388. package/docs/types/_saltcorn_db-common.dbtypes.JsonPathElem.html +1 -1
  389. package/docs/types/_saltcorn_db-common.dbtypes.Operator.html +1 -1
  390. package/docs/types/_saltcorn_db-common.dbtypes.PartialSome.html +1 -1
  391. package/docs/types/_saltcorn_db-common.dbtypes.PrimaryKeyValue.html +1 -1
  392. package/docs/types/_saltcorn_db-common.dbtypes.Row.html +1 -1
  393. package/docs/types/_saltcorn_db-common.dbtypes.SelectOptions.html +2 -2
  394. package/docs/types/_saltcorn_db-common.dbtypes.StrongRow.html +1 -1
  395. package/docs/types/_saltcorn_db-common.dbtypes.SubselectOptions.html +2 -2
  396. package/docs/types/_saltcorn_db-common.dbtypes.Value.html +1 -1
  397. package/docs/types/_saltcorn_db-common.dbtypes.Where.html +2 -2
  398. package/docs/types/_saltcorn_db-common.sqlite-commons.SqlAndValues.html +2 -2
  399. package/docs/types/_saltcorn_db-common.types.DbExportsType.html +2 -2
  400. package/docs/types/_saltcorn_db-common.types.GenObj.html +1 -1
  401. package/docs/types/_saltcorn_markup.emergency_layout.WrapParams.html +2 -2
  402. package/docs/types/_saltcorn_markup.helpers.CheckBoxGroupOpts.html +2 -2
  403. package/docs/types/_saltcorn_markup.helpers.PaginationOpts.html +2 -2
  404. package/docs/types/_saltcorn_markup.helpers.RadioGroupOpts.html +2 -2
  405. package/docs/types/_saltcorn_markup.helpers.SearchBarOpts.html +2 -2
  406. package/docs/types/_saltcorn_markup.layout.RenderOpts-1.html +2 -2
  407. package/docs/types/_saltcorn_markup.layout.RenderOpts.html +2 -2
  408. package/docs/types/_saltcorn_markup.mjml-layout.RenderOpts.html +2 -2
  409. package/docs/types/_saltcorn_markup.table.HeadersParams.html +2 -2
  410. package/docs/types/_saltcorn_markup.table.OptsParams.html +2 -2
  411. package/docs/types/_saltcorn_markup.types.AttributeVal.html +1 -1
  412. package/docs/types/_saltcorn_markup.types.Attributes.html +2 -2
  413. package/docs/types/_saltcorn_markup.types.ClassVal.html +1 -1
  414. package/docs/types/_saltcorn_markup.types.Element.html +1 -1
  415. package/docs/types/_saltcorn_markup.types.Falsy.html +1 -1
  416. package/docs/types/_saltcorn_markup.types.StyleVal.html +1 -1
  417. package/docs/types/_saltcorn_markup.types.TagFunction.html +1 -1
  418. package/docs/types/_saltcorn_mobile-builder.mobile-builder.IosCfg.html +2 -2
  419. package/docs/types/_saltcorn_mobile-builder.utils_capacitor-helper.CapacitorCfg.html +2 -2
  420. package/docs/types/_saltcorn_types.base_types.Action.html +3 -3
  421. package/docs/types/_saltcorn_types.base_types.AuthenticationMethod.html +2 -2
  422. package/docs/types/_saltcorn_types.base_types.CalcJoinfield.html +2 -2
  423. package/docs/types/_saltcorn_types.base_types.CapacitorPlugin.html +2 -2
  424. package/docs/types/_saltcorn_types.base_types.CodePagePack.html +2 -2
  425. package/docs/types/_saltcorn_types.base_types.Column.html +2 -2
  426. package/docs/types/_saltcorn_types.base_types.ConnectObjType.html +2 -2
  427. package/docs/types/_saltcorn_types.base_types.ConnectedObjects.html +2 -2
  428. package/docs/types/_saltcorn_types.base_types.CopilotSkill.html +2 -2
  429. package/docs/types/_saltcorn_types.base_types.ErrorObj.html +2 -2
  430. package/docs/types/_saltcorn_types.base_types.FieldLike.html +1 -1
  431. package/docs/types/_saltcorn_types.base_types.FieldView.html +1 -1
  432. package/docs/types/_saltcorn_types.base_types.Header.html +2 -2
  433. package/docs/types/_saltcorn_types.base_types.JoinFieldOption.html +2 -2
  434. package/docs/types/_saltcorn_types.base_types.Layout.html +1 -1
  435. package/docs/types/_saltcorn_types.base_types.MenuItem.html +2 -2
  436. package/docs/types/_saltcorn_types.base_types.MobileConfig.html +2 -2
  437. package/docs/types/_saltcorn_types.base_types.ModelPattern.html +6 -6
  438. package/docs/types/_saltcorn_types.base_types.Pack.html +2 -2
  439. package/docs/types/_saltcorn_types.base_types.Plugin.html +1 -1
  440. package/docs/types/_saltcorn_types.base_types.PluginFunction.html +2 -2
  441. package/docs/types/_saltcorn_types.base_types.PluginLayout.html +2 -2
  442. package/docs/types/_saltcorn_types.base_types.PluginRoute.html +2 -2
  443. package/docs/types/_saltcorn_types.base_types.PluginSourceType.html +1 -1
  444. package/docs/types/_saltcorn_types.base_types.PluginType.html +2 -2
  445. package/docs/types/_saltcorn_types.base_types.PluginWrap.html +1 -1
  446. package/docs/types/_saltcorn_types.base_types.PluginWrapArg.html +2 -2
  447. package/docs/types/_saltcorn_types.base_types.RelationOption.html +2 -2
  448. package/docs/types/_saltcorn_types.base_types.Req.html +2 -2
  449. package/docs/types/_saltcorn_types.base_types.Res.html +2 -2
  450. package/docs/types/_saltcorn_types.base_types.ResultType.html +2 -2
  451. package/docs/types/_saltcorn_types.base_types.RouteAction.html +1 -1
  452. package/docs/types/_saltcorn_types.base_types.RunExtra.html +1 -1
  453. package/docs/types/_saltcorn_types.base_types.SlugStepType.html +2 -2
  454. package/docs/types/_saltcorn_types.base_types.StepResType.html +1 -1
  455. package/docs/types/_saltcorn_types.base_types.SubField.html +2 -2
  456. package/docs/types/_saltcorn_types.base_types.TableProvider.html +2 -2
  457. package/docs/types/_saltcorn_types.base_types.TableQuery.html +2 -2
  458. package/docs/types/_saltcorn_types.base_types.Tablely.html +1 -1
  459. package/docs/types/_saltcorn_types.base_types.ViewTemplate.html +2 -2
  460. package/docs/types/_saltcorn_types.common_types.ErrorMessage.html +2 -2
  461. package/docs/types/_saltcorn_types.common_types.GenObj.html +1 -1
  462. package/docs/types/_saltcorn_types.common_types.ReqRes.html +2 -2
  463. package/docs/types/_saltcorn_types.common_types.ResultMessage.html +1 -1
  464. package/docs/types/_saltcorn_types.common_types.SuccessMessage.html +2 -2
  465. package/docs/types/_saltcorn_types.common_types.Type.html +2 -2
  466. package/docs/types/_saltcorn_types.model-abstracts_abstract_event_log.EventLogPack.html +2 -2
  467. package/docs/types/_saltcorn_types.model-abstracts_abstract_field.FieldCfg.html +2 -2
  468. package/docs/types/_saltcorn_types.model-abstracts_abstract_field.InputType.html +1 -1
  469. package/docs/types/_saltcorn_types.model-abstracts_abstract_form.AdditionalButton.html +2 -2
  470. package/docs/types/_saltcorn_types.model-abstracts_abstract_library.LibraryCfg.html +2 -2
  471. package/docs/types/_saltcorn_types.model-abstracts_abstract_library.LibraryPack.html +1 -1
  472. package/docs/types/_saltcorn_types.model-abstracts_abstract_model.ModelCfg.html +2 -2
  473. package/docs/types/_saltcorn_types.model-abstracts_abstract_model.ModelPack.html +1 -1
  474. package/docs/types/_saltcorn_types.model-abstracts_abstract_model_instance.ModelInstanceCfg.html +2 -2
  475. package/docs/types/_saltcorn_types.model-abstracts_abstract_model_instance.ModelInstancePack.html +1 -1
  476. package/docs/types/_saltcorn_types.model-abstracts_abstract_page.PageCfg.html +3 -2
  477. package/docs/types/_saltcorn_types.model-abstracts_abstract_page.PagePack.html +1 -1
  478. package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group.PageGroupCfg.html +2 -2
  479. package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group.PageGroupPack.html +1 -1
  480. package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group_member.PageGroupMemberCfg.html +2 -2
  481. package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group_member.PageGroupMemberPack.html +1 -1
  482. package/docs/types/_saltcorn_types.model-abstracts_abstract_plugin.PluginCfg.html +2 -2
  483. package/docs/types/_saltcorn_types.model-abstracts_abstract_plugin.PluginPack.html +1 -1
  484. package/docs/types/_saltcorn_types.model-abstracts_abstract_role.RoleCfg.html +1 -1
  485. package/docs/types/_saltcorn_types.model-abstracts_abstract_role.RolePack.html +1 -1
  486. package/docs/types/_saltcorn_types.model-abstracts_abstract_table.TableCfg.html +3 -2
  487. package/docs/types/_saltcorn_types.model-abstracts_abstract_table.TablePack.html +1 -1
  488. package/docs/types/_saltcorn_types.model-abstracts_abstract_tag.TagPack.html +2 -2
  489. package/docs/types/_saltcorn_types.model-abstracts_abstract_tag_entry.TagEntryPack.html +2 -2
  490. package/docs/types/_saltcorn_types.model-abstracts_abstract_trigger.TriggerCfg.html +3 -2
  491. package/docs/types/_saltcorn_types.model-abstracts_abstract_trigger.TriggerPack.html +1 -1
  492. package/docs/types/_saltcorn_types.model-abstracts_abstract_view.ViewCfg.html +3 -2
  493. package/docs/types/_saltcorn_types.model-abstracts_abstract_view.ViewPack.html +1 -1
  494. package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow.ConfigWorkflowStep.html +1 -1
  495. package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow.RunResult.html +2 -2
  496. package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_run.WorkflowRunCfg.html +2 -2
  497. package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_step.WorkflowStepCfg.html +2 -2
  498. package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_step.WorkflowStepPack.html +1 -1
  499. package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_trace.WorkflowTraceCfg.html +2 -2
  500. package/docs/variables/_saltcorn_admin-models..backup.create_backup.html +1 -1
  501. package/docs/variables/_saltcorn_admin-models..backup.create_csv_from_rows.html +1 -1
  502. package/docs/variables/_saltcorn_admin-models..backup.restore.html +1 -1
  503. package/docs/variables/_saltcorn_admin-models..pack.add_to_menu.html +1 -1
  504. package/docs/variables/_saltcorn_admin-models..pack.can_install_pack.html +1 -1
  505. package/docs/variables/_saltcorn_admin-models..pack.fetch_available_packs.html +1 -1
  506. package/docs/variables/_saltcorn_admin-models..pack.fetch_pack_by_name.html +1 -1
  507. package/docs/variables/_saltcorn_admin-models..pack.install_pack.html +1 -1
  508. package/docs/variables/_saltcorn_admin-models..pack.library_pack.html +1 -1
  509. package/docs/variables/_saltcorn_admin-models..pack.model_instance_pack.html +1 -1
  510. package/docs/variables/_saltcorn_admin-models..pack.model_pack.html +1 -1
  511. package/docs/variables/_saltcorn_admin-models..pack.page_group_pack.html +1 -1
  512. package/docs/variables/_saltcorn_admin-models..pack.page_pack.html +1 -1
  513. package/docs/variables/_saltcorn_admin-models..pack.plugin_pack.html +1 -1
  514. package/docs/variables/_saltcorn_admin-models..pack.role_pack.html +1 -1
  515. package/docs/variables/_saltcorn_admin-models..pack.table_pack.html +1 -1
  516. package/docs/variables/_saltcorn_admin-models..pack.trigger_pack.html +1 -1
  517. package/docs/variables/_saltcorn_admin-models..pack.uninstall_pack.html +1 -1
  518. package/docs/variables/_saltcorn_admin-models..pack.view_pack.html +1 -1
  519. package/docs/variables/_saltcorn_admin-models..tenant.copy_tenant_template.html +1 -1
  520. package/docs/variables/_saltcorn_admin-models..tenant.create_tenant.html +1 -1
  521. package/docs/variables/_saltcorn_admin-models..tenant.deleteTenant.html +1 -1
  522. package/docs/variables/_saltcorn_admin-models..tenant.domain_sanitize.html +1 -1
  523. package/docs/variables/_saltcorn_admin-models..tenant.eachTenant.html +1 -1
  524. package/docs/variables/_saltcorn_admin-models..tenant.getAllTenantRows.html +1 -1
  525. package/docs/variables/_saltcorn_admin-models..tenant.getAllTenants.html +1 -1
  526. package/docs/variables/_saltcorn_admin-models..tenant.insertTenant.html +1 -1
  527. package/docs/variables/_saltcorn_admin-models..tenant.switchToTenant.html +1 -1
  528. package/docs/variables/_saltcorn_admin-models.models_backup.backup.html +1 -1
  529. package/docs/variables/_saltcorn_admin-models.pack.pack.html +1 -1
  530. package/docs/variables/_saltcorn_admin-models.tenant.tenant.html +1 -1
  531. package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedFive.html +1 -1
  532. package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedFour.html +1 -1
  533. package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedOne.html +1 -1
  534. package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedSix.html +1 -1
  535. package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedThree.html +1 -1
  536. package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedTwo.html +1 -1
  537. package/docs/variables/_saltcorn_data..migrations.html +1 -1
  538. package/docs/variables/_saltcorn_data..plugin_helper.run_action_column.html +1 -1
  539. package/docs/variables/_saltcorn_data..utils.NotAuthorized.html +1 -1
  540. package/docs/variables/_saltcorn_data..utils.isPushEnabled.html +1 -1
  541. package/docs/variables/_saltcorn_data..utils.sleep.html +1 -1
  542. package/docs/variables/_saltcorn_data.base-plugin_actions.actions.html +1 -1
  543. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.fieldviews.html +1 -1
  544. package/docs/variables/_saltcorn_data.base-plugin_fileview.fileviews.html +1 -1
  545. package/docs/variables/_saltcorn_data.base-plugin_index.index.html +1 -1
  546. package/docs/variables/_saltcorn_data.base-plugin_types.types.html +1 -1
  547. package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_edit.edit.html +1 -1
  548. package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_feed.feed.html +1 -1
  549. package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_filter.filter.html +1 -1
  550. package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_list.list.html +1 -1
  551. package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_listshowlist.listshowlist.html +1 -1
  552. package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_room.room-1.html +1 -1
  553. package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_room.room.html +1 -1
  554. package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_show.show.html +1 -1
  555. package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.edit_build_in_actions.html +1 -1
  556. package/docs/variables/_saltcorn_data.contract.contract.html +1 -1
  557. package/docs/variables/_saltcorn_data.db_connect.connect.html +1 -1
  558. package/docs/variables/_saltcorn_data.db_fa5-icons.fa5Icons.html +1 -1
  559. package/docs/variables/_saltcorn_data.db_fixtures.fixtures.html +1 -1
  560. package/docs/variables/_saltcorn_data.db_index.dbExports.html +1 -1
  561. package/docs/variables/_saltcorn_data.db_state.state.html +1 -1
  562. package/docs/variables/_saltcorn_data.migrations_202005141503.sql.html +1 -1
  563. package/docs/variables/_saltcorn_data.migrations_202005241712.sql.html +1 -1
  564. package/docs/variables/_saltcorn_data.migrations_202005251037.sql.html +1 -1
  565. package/docs/variables/_saltcorn_data.migrations_202005282134.sql.html +1 -1
  566. package/docs/variables/_saltcorn_data.migrations_202006022156.sql.html +1 -1
  567. package/docs/variables/_saltcorn_data.migrations_202006051507.sql.html +1 -1
  568. package/docs/variables/_saltcorn_data.migrations_202006240906.sql.html +1 -1
  569. package/docs/variables/_saltcorn_data.migrations_202007091707.sql.html +1 -1
  570. package/docs/variables/_saltcorn_data.migrations_202007202144.sql.html +1 -1
  571. package/docs/variables/_saltcorn_data.migrations_202008031500.sql.html +1 -1
  572. package/docs/variables/_saltcorn_data.migrations_202008051415.sql.html +1 -1
  573. package/docs/variables/_saltcorn_data.migrations_202008121149.sql_pg.html +1 -1
  574. package/docs/variables/_saltcorn_data.migrations_202008121149.sql_sqlite.html +1 -1
  575. package/docs/variables/_saltcorn_data.migrations_202009112140.sql_pg.html +1 -1
  576. package/docs/variables/_saltcorn_data.migrations_202009112140.sql_sqlite.html +1 -1
  577. package/docs/variables/_saltcorn_data.migrations_202009181655.sql.html +1 -1
  578. package/docs/variables/_saltcorn_data.migrations_202009221105.sql.html +1 -1
  579. package/docs/variables/_saltcorn_data.migrations_202009231331.sql.html +1 -1
  580. package/docs/variables/_saltcorn_data.migrations_202009301531.sql.html +1 -1
  581. package/docs/variables/_saltcorn_data.migrations_202010231444.sql.html +1 -1
  582. package/docs/variables/_saltcorn_data.migrations_202010251412.sql.html +1 -1
  583. package/docs/variables/_saltcorn_data.migrations_202011021749.sql.html +1 -1
  584. package/docs/variables/_saltcorn_data.migrations_202011051353.sql.html +1 -1
  585. package/docs/variables/_saltcorn_data.migrations_202011111127.sql.html +1 -1
  586. package/docs/variables/_saltcorn_data.migrations_202012011203.sql.html +1 -1
  587. package/docs/variables/_saltcorn_data.migrations_202012100841.sql.html +1 -1
  588. package/docs/variables/_saltcorn_data.migrations_202012281835.sql.html +1 -1
  589. package/docs/variables/_saltcorn_data.migrations_202101061051.sql.html +1 -1
  590. package/docs/variables/_saltcorn_data.migrations_202101141128.sql.html +1 -1
  591. package/docs/variables/_saltcorn_data.migrations_202102091312.sql.html +1 -1
  592. package/docs/variables/_saltcorn_data.migrations_202102101624.sql.html +1 -1
  593. package/docs/variables/_saltcorn_data.migrations_202102172148.sql.html +1 -1
  594. package/docs/variables/_saltcorn_data.migrations_202102261650.sql.html +1 -1
  595. package/docs/variables/_saltcorn_data.migrations_202106102347.sql.html +1 -1
  596. package/docs/variables/_saltcorn_data.migrations_202106112120.sql.html +1 -1
  597. package/docs/variables/_saltcorn_data.migrations_202106120012.sql.html +1 -1
  598. package/docs/variables/_saltcorn_data.migrations_202106120220.sql.html +1 -1
  599. package/docs/variables/_saltcorn_data.migrations_202106121701.sql.html +1 -1
  600. package/docs/variables/_saltcorn_data.migrations_202106121703.sql_pg.html +1 -1
  601. package/docs/variables/_saltcorn_data.migrations_202106121703.sql_sqlite.html +1 -1
  602. package/docs/variables/_saltcorn_data.migrations_202106251126.sql.html +1 -1
  603. package/docs/variables/_saltcorn_data.migrations_202107281619.sql.html +1 -1
  604. package/docs/variables/_saltcorn_data.migrations_202107302158.sql_pg.html +1 -1
  605. package/docs/variables/_saltcorn_data.migrations_202107302158.sql_sqlite.html +1 -1
  606. package/docs/variables/_saltcorn_data.migrations_202108022257.sql.html +1 -1
  607. package/docs/variables/_saltcorn_data.migrations_202109201624.sql.html +1 -1
  608. package/docs/variables/_saltcorn_data.migrations_202109301031.sql_pg.html +1 -1
  609. package/docs/variables/_saltcorn_data.migrations_202109301031.sql_sqlite.html +1 -1
  610. package/docs/variables/_saltcorn_data.migrations_202111290253.sql_pg.html +1 -1
  611. package/docs/variables/_saltcorn_data.migrations_202111290253.sql_sqlite.html +1 -1
  612. package/docs/variables/_saltcorn_data.migrations_202112282254.sql_pg.html +1 -1
  613. package/docs/variables/_saltcorn_data.migrations_202112282254.sql_sqlite.html +1 -1
  614. package/docs/variables/_saltcorn_data.migrations_202207022002.sql.html +1 -1
  615. package/docs/variables/_saltcorn_data.migrations_202207252150.sql_pg.html +1 -1
  616. package/docs/variables/_saltcorn_data.migrations_202207252150.sql_sqlite.html +1 -1
  617. package/docs/variables/_saltcorn_data.migrations_202207261221.sql.html +1 -1
  618. package/docs/variables/_saltcorn_data.migrations_202208101144.sql_pg.html +1 -1
  619. package/docs/variables/_saltcorn_data.migrations_202208101144.sql_sqlite.html +1 -1
  620. package/docs/variables/_saltcorn_data.migrations_202211040031.sql.html +1 -1
  621. package/docs/variables/_saltcorn_data.migrations_202212112152.sql_pg.html +1 -1
  622. package/docs/variables/_saltcorn_data.migrations_202212112152.sql_sqlite.html +1 -1
  623. package/docs/variables/_saltcorn_data.migrations_202301130917.sql.html +1 -1
  624. package/docs/variables/_saltcorn_data.migrations_202303201126.sql_pg.html +1 -1
  625. package/docs/variables/_saltcorn_data.migrations_202303201126.sql_sqlite.html +1 -1
  626. package/docs/variables/_saltcorn_data.migrations_202303221944.sql_pg.html +1 -1
  627. package/docs/variables/_saltcorn_data.migrations_202303221944.sql_sqlite.html +1 -1
  628. package/docs/variables/_saltcorn_data.migrations_202304281224.sql.html +1 -1
  629. package/docs/variables/_saltcorn_data.migrations_202305031518.sql_pg.html +1 -1
  630. package/docs/variables/_saltcorn_data.migrations_202305031518.sql_sqlite.html +1 -1
  631. package/docs/variables/_saltcorn_data.migrations_202308211648.sql.html +1 -1
  632. package/docs/variables/_saltcorn_data.migrations_202311011755.sql_pg.html +1 -1
  633. package/docs/variables/_saltcorn_data.migrations_202311011755.sql_sqlite.html +1 -1
  634. package/docs/variables/_saltcorn_data.migrations_202311231356.sql.html +1 -1
  635. package/docs/variables/_saltcorn_data.migrations_202402071125.sql.html +1 -1
  636. package/docs/variables/_saltcorn_data.migrations_202406260915.sql.html +1 -1
  637. package/docs/variables/_saltcorn_data.migrations_202412051957.sql_pg.html +1 -1
  638. package/docs/variables/_saltcorn_data.migrations_202412051957.sql_sqlite.html +1 -1
  639. package/docs/variables/_saltcorn_data.migrations_202412111526.sql_pg.html +1 -1
  640. package/docs/variables/_saltcorn_data.migrations_202412111526.sql_sqlite.html +1 -1
  641. package/docs/variables/_saltcorn_data.migrations_202501081226.sql_pg.html +1 -1
  642. package/docs/variables/_saltcorn_data.migrations_202501081226.sql_sqlite.html +1 -1
  643. package/docs/variables/_saltcorn_data.migrations_202501201239.sql_sqlite.html +1 -1
  644. package/docs/variables/_saltcorn_data.migrations_202501262157.sql.html +1 -1
  645. package/docs/variables/_saltcorn_data.migrations_202503071353.sql_pg.html +1 -1
  646. package/docs/variables/_saltcorn_data.migrations_202506050958.sql.html +1 -1
  647. package/docs/variables/_saltcorn_data.migrations_202510110312.sql_pg.html +1 -1
  648. package/docs/variables/_saltcorn_data.migrations_202510110312.sql_sqlite.html +1 -1
  649. package/docs/variables/_saltcorn_data.migrations_202511081024.sql.html +1 -1
  650. package/docs/variables/_saltcorn_data.migrations_202604091531.sql.html +1 -0
  651. package/docs/variables/_saltcorn_data.mobile-mocks_npm_npm-registry-fetch.npmRegistryFetch.html +1 -0
  652. package/docs/variables/_saltcorn_data.mobile-mocks_saltcorn_html-pdf-node.htmlPdfNode.html +1 -1
  653. package/docs/variables/_saltcorn_data.models_config.configExports.html +1 -1
  654. package/docs/variables/_saltcorn_data.models_discovery.discovery.html +1 -1
  655. package/docs/variables/_saltcorn_data.models_email.email.html +1 -1
  656. package/docs/variables/_saltcorn_data.models_expression.expression.html +1 -1
  657. package/docs/variables/_saltcorn_data.models_index.config.available_languages.html +1 -1
  658. package/docs/variables/_saltcorn_data.models_index.config.check_email_mask.html +1 -1
  659. package/docs/variables/_saltcorn_data.models_index.config.configTypes.html +1 -1
  660. package/docs/variables/_saltcorn_data.models_index.config.deleteConfig.html +1 -1
  661. package/docs/variables/_saltcorn_data.models_index.config.getAllConfig.html +1 -1
  662. package/docs/variables/_saltcorn_data.models_index.config.getConfig.html +1 -1
  663. package/docs/variables/_saltcorn_data.models_index.config.get_base_url.html +1 -1
  664. package/docs/variables/_saltcorn_data.models_index.config.get_latest_npm_version.html +1 -1
  665. package/docs/variables/_saltcorn_data.models_index.config.remove_from_menu.html +1 -1
  666. package/docs/variables/_saltcorn_data.models_index.config.save_menu_items.html +1 -1
  667. package/docs/variables/_saltcorn_data.models_index.config.setConfig.html +1 -1
  668. package/docs/variables/_saltcorn_data.models_index.discovery.discover_tables.html +1 -1
  669. package/docs/variables/_saltcorn_data.models_index.discovery.discoverable_tables.html +1 -1
  670. package/docs/variables/_saltcorn_data.models_index.discovery.findType.html +1 -1
  671. package/docs/variables/_saltcorn_data.models_index.discovery.get_existing_views.html +1 -1
  672. package/docs/variables/_saltcorn_data.models_index.discovery.implement_discovery.html +1 -1
  673. package/docs/variables/_saltcorn_data.models_index.email.getMailTransport.html +1 -1
  674. package/docs/variables/_saltcorn_data.models_index.email.send_verification_email.html +1 -1
  675. package/docs/variables/_saltcorn_data.models_index.email.viewToEmailHtml.html +1 -1
  676. package/docs/variables/_saltcorn_data.models_index.expression.apply_calculated_fields.html +1 -1
  677. package/docs/variables/_saltcorn_data.models_index.expression.apply_calculated_fields_stored.html +1 -1
  678. package/docs/variables/_saltcorn_data.models_index.expression.eval_expression.html +9 -1
  679. package/docs/variables/_saltcorn_data.models_index.expression.expressionValidator.html +1 -1
  680. package/docs/variables/_saltcorn_data.models_index.expression.get_async_expression_function.html +1 -1
  681. package/docs/variables/_saltcorn_data.models_index.expression.get_expression_function.html +1 -1
  682. package/docs/variables/_saltcorn_data.models_index.expression.jsexprToWhere.html +1 -1
  683. package/docs/variables/_saltcorn_data.models_index.expression.recalculate_for_stored.html +1 -1
  684. package/docs/variables/_saltcorn_data.models_index.expression.transform_for_async.html +1 -1
  685. package/docs/variables/_saltcorn_data.models_index.layout.eachView.html +1 -1
  686. package/docs/variables/_saltcorn_data.models_index.layout.getStringsForI18n.html +1 -1
  687. package/docs/variables/_saltcorn_data.models_index.layout.getViews.html +1 -1
  688. package/docs/variables/_saltcorn_data.models_index.layout.translateLayout.html +1 -1
  689. package/docs/variables/_saltcorn_data.models_index.layout.traverse.html +1 -1
  690. package/docs/variables/_saltcorn_data.models_index.layout.traverseSync.html +1 -1
  691. package/docs/variables/_saltcorn_data.models_index.random.all_views.html +1 -1
  692. package/docs/variables/_saltcorn_data.models_index.random.fill_table_row.html +1 -1
  693. package/docs/variables/_saltcorn_data.models_index.random.initial_view.html +1 -1
  694. package/docs/variables/_saltcorn_data.models_index.random.random_table.html +1 -1
  695. package/docs/variables/_saltcorn_data.models_index.scheduler.runScheduler.html +1 -1
  696. package/docs/variables/_saltcorn_data.models_layout.layout.html +1 -1
  697. package/docs/variables/_saltcorn_data.models_random.random.html +1 -1
  698. package/docs/variables/_saltcorn_data.models_scheduler.scheduler.html +1 -1
  699. package/docs/variables/_saltcorn_data.plugin-helper.add_free_variables_to_joinfields.html +1 -1
  700. package/docs/variables/_saltcorn_data.tests_mocks.mocks.html +1 -1
  701. package/docs/variables/_saltcorn_data.tests_remote_query_helper.renderEditInEditConfig.html +1 -1
  702. package/docs/variables/_saltcorn_data.utils.utils.html +1 -1
  703. package/docs/variables/_saltcorn_data.web-mobile-commons.webMobileCommons.html +1 -1
  704. package/docs/variables/_saltcorn_db-common.internal.dbCommonModulePath.html +1 -1
  705. package/docs/variables/_saltcorn_db-common.multi-tenant.tenantNamespace.html +1 -1
  706. package/docs/variables/_saltcorn_db-common.tenants.tenants.html +1 -1
  707. package/docs/variables/_saltcorn_markup..export_.html +1 -1
  708. package/docs/variables/_saltcorn_markup.builder.builder.html +1 -1
  709. package/docs/variables/_saltcorn_markup.emergency_layout.EmergencyLayoutExports.html +1 -1
  710. package/docs/variables/_saltcorn_markup.form.form.html +1 -1
  711. package/docs/variables/_saltcorn_markup.helpers.HelpersExports.html +1 -1
  712. package/docs/variables/_saltcorn_markup.layout.LayoutExports-1.html +1 -1
  713. package/docs/variables/_saltcorn_markup.layout.LayoutExports.html +1 -1
  714. package/docs/variables/_saltcorn_markup.layout_utils.layoutUtils.html +1 -1
  715. package/docs/variables/_saltcorn_markup.mjml-layout.LayoutExports.html +1 -1
  716. package/docs/variables/_saltcorn_markup.mjml-tags.tagsExports.html +1 -1
  717. package/docs/variables/_saltcorn_markup.table.TableExports.html +1 -1
  718. package/docs/variables/_saltcorn_markup.tags.tagsExports.html +1 -1
  719. package/docs/variables/_saltcorn_types..generators.generateBool.html +1 -1
  720. package/docs/variables/_saltcorn_types..generators.generateString.html +1 -1
  721. package/docs/variables/_saltcorn_types..generators.num_between.html +1 -1
  722. package/docs/variables/_saltcorn_types..generators.oneOf.html +1 -1
  723. package/docs/variables/_saltcorn_types.generators.generators.html +1 -1
  724. package/load_plugins.js +7 -398
  725. package/locales/en.json +5 -1
  726. package/package.json +12 -12
  727. package/public/saltcorn-common.js +1 -0
  728. package/public/saltcorn.js +1433 -0
  729. package/routes/actions.js +190 -4
  730. package/routes/admin.js +3 -5
  731. package/routes/api.js +59 -26
  732. package/routes/delete.js +2 -5
  733. package/routes/edit.js +2 -5
  734. package/routes/entities.js +65 -1245
  735. package/routes/eventlog.js +47 -0
  736. package/routes/fields.js +3 -0
  737. package/routes/files.js +23 -3
  738. package/routes/packs.js +2 -3
  739. package/routes/plugins.js +14 -16
  740. package/routes/scapi.js +1 -2
  741. package/routes/sync.js +161 -45
  742. package/routes/tables.js +4 -0
  743. package/routes/tenant.js +3 -3
  744. package/routes/utils.js +36 -2
  745. package/routes/viewedit.js +2 -2
  746. package/serve.js +9 -14
  747. package/tests/api.test.js +268 -2
  748. package/tests/auth.test.js +230 -1
  749. package/tests/files.test.js +4 -7
  750. package/tests/plugin_install.test.js +12 -13
  751. package/tests/plugins.test.js +1 -2
  752. package/tests/sync.test.js +868 -2
  753. package/docs/functions/_saltcorn_data.base-plugin_fieldviews.radio_select.run.html +0 -1
  754. package/docs/functions/_saltcorn_data.base-plugin_fieldviews.search_or_create.configFields.html +0 -1
  755. package/docs/functions/_saltcorn_data.base-plugin_fieldviews.search_or_create.run.html +0 -1
  756. package/docs/functions/_saltcorn_data.base-plugin_fieldviews.select.run.html +0 -1
  757. package/docs/functions/_saltcorn_data.base-plugin_fieldviews.select_from_table.fill_options.html +0 -1
  758. package/docs/functions/_saltcorn_data.base-plugin_fieldviews.select_from_table.run.html +0 -1
  759. package/docs/functions/_saltcorn_data.base-plugin_types.bool.contract.html +0 -1
  760. package/docs/functions/_saltcorn_data.base-plugin_types.bool.fieldviews.TrueFalse.run.html +0 -1
  761. package/docs/functions/_saltcorn_data.base-plugin_types.bool.fieldviews.checkboxes.run.html +0 -1
  762. package/docs/functions/_saltcorn_data.base-plugin_types.bool.fieldviews.edit.run.html +0 -1
  763. package/docs/functions/_saltcorn_data.base-plugin_types.bool.fieldviews.show.run.html +0 -1
  764. package/docs/functions/_saltcorn_data.base-plugin_types.bool.fieldviews.tristate.run.html +0 -1
  765. package/docs/functions/_saltcorn_data.base-plugin_types.bool.listAs.html +0 -1
  766. package/docs/functions/_saltcorn_data.base-plugin_types.bool.read.html +0 -1
  767. package/docs/functions/_saltcorn_data.base-plugin_types.bool.readFromDB.html +0 -1
  768. package/docs/functions/_saltcorn_data.base-plugin_types.bool.readFromFormRecord.html +0 -1
  769. package/docs/functions/_saltcorn_data.base-plugin_types.bool.validate.html +0 -1
  770. package/docs/functions/_saltcorn_data.base-plugin_types.color.contract.html +0 -1
  771. package/docs/functions/_saltcorn_data.base-plugin_types.color.fieldviews.edit.run.html +0 -1
  772. package/docs/functions/_saltcorn_data.base-plugin_types.color.fieldviews.show.run.html +0 -1
  773. package/docs/functions/_saltcorn_data.base-plugin_types.color.read.html +0 -1
  774. package/docs/functions/_saltcorn_data.base-plugin_types.color.validate.html +0 -1
  775. package/docs/functions/_saltcorn_data.base-plugin_types.date.contract.html +0 -1
  776. package/docs/functions/_saltcorn_data.base-plugin_types.date.equals.html +0 -3
  777. package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.edit.run.html +0 -1
  778. package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.editDay.run.html +0 -1
  779. package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.format.run.html +0 -1
  780. package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.relative.run.html +0 -1
  781. package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.show.run.html +0 -1
  782. package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.showDay.run.html +0 -1
  783. package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.yearsAgo.run.html +0 -1
  784. package/docs/functions/_saltcorn_data.base-plugin_types.date.presets.Now.html +0 -1
  785. package/docs/functions/_saltcorn_data.base-plugin_types.date.read.html +0 -1
  786. package/docs/functions/_saltcorn_data.base-plugin_types.date.validate.html +0 -1
  787. package/docs/functions/_saltcorn_data.base-plugin_types.float.contract.html +0 -1
  788. package/docs/functions/_saltcorn_data.base-plugin_types.float.equals.html +0 -3
  789. package/docs/functions/_saltcorn_data.base-plugin_types.float.fieldviews.edit.run.html +0 -1
  790. package/docs/functions/_saltcorn_data.base-plugin_types.float.fieldviews.show.run.html +0 -1
  791. package/docs/functions/_saltcorn_data.base-plugin_types.float.read.html +0 -1
  792. package/docs/functions/_saltcorn_data.base-plugin_types.float.validate.html +0 -1
  793. package/docs/functions/_saltcorn_data.base-plugin_types.int.contract.html +0 -1
  794. package/docs/functions/_saltcorn_data.base-plugin_types.int.read.html +0 -1
  795. package/docs/functions/_saltcorn_data.base-plugin_types.int.validate.html +0 -1
  796. package/docs/functions/_saltcorn_data.base-plugin_types.int.validate_attributes.html +0 -1
  797. package/docs/functions/_saltcorn_data.base-plugin_types.string.attributes.html +0 -1
  798. package/docs/functions/_saltcorn_data.base-plugin_types.string.contract.html +0 -1
  799. package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.as_header.run.html +0 -1
  800. package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.as_link.run.html +0 -1
  801. package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.as_text.run.html +0 -1
  802. package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.edit.configFields.html +0 -1
  803. package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.edit.run.html +0 -1
  804. package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.img_from_url.run.html +0 -1
  805. package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.password.run.html +0 -1
  806. package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.radio_group.run.html +0 -1
  807. package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.textarea.run.html +0 -1
  808. package/docs/functions/_saltcorn_data.base-plugin_types.string.presets.IP.html +0 -1
  809. package/docs/functions/_saltcorn_data.base-plugin_types.string.presets.SessionID.html +0 -1
  810. package/docs/functions/_saltcorn_data.base-plugin_types.string.read.html +0 -1
  811. package/docs/functions/_saltcorn_data.base-plugin_types.string.validate.html +0 -1
  812. package/docs/functions/_saltcorn_data.base-plugin_types.string.validate_attributes.html +0 -1
  813. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.decodeProvisioningProfile.html +0 -1
  814. package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.copyMobileAppDirs.html +0 -1
  815. package/docs/modules/_saltcorn_admin-models.tests_backup.test.html +0 -1
  816. package/docs/modules/_saltcorn_admin-models.tests_cfgcheck.test.html +0 -1
  817. package/docs/modules/_saltcorn_admin-models.tests_pack.test.html +0 -1
  818. package/docs/modules/_saltcorn_admin-models.tests_random.test.html +0 -1
  819. package/docs/modules/_saltcorn_admin-models.tests_tenant.test.html +0 -1
  820. package/docs/modules/_saltcorn_data.base-plugin_fieldviews.radio_select.html +0 -2
  821. package/docs/modules/_saltcorn_data.base-plugin_fieldviews.search_or_create.html +0 -2
  822. package/docs/modules/_saltcorn_data.base-plugin_fieldviews.select.html +0 -2
  823. package/docs/modules/_saltcorn_data.base-plugin_fieldviews.select_from_table.html +0 -2
  824. package/docs/modules/_saltcorn_data.base-plugin_types.bool.fieldviews.TrueFalse.html +0 -2
  825. package/docs/modules/_saltcorn_data.base-plugin_types.bool.fieldviews.checkboxes.html +0 -2
  826. package/docs/modules/_saltcorn_data.base-plugin_types.bool.fieldviews.edit.html +0 -2
  827. package/docs/modules/_saltcorn_data.base-plugin_types.bool.fieldviews.html +0 -2
  828. package/docs/modules/_saltcorn_data.base-plugin_types.bool.fieldviews.show.html +0 -2
  829. package/docs/modules/_saltcorn_data.base-plugin_types.bool.fieldviews.tristate.html +0 -2
  830. package/docs/modules/_saltcorn_data.base-plugin_types.bool.html +0 -3
  831. package/docs/modules/_saltcorn_data.base-plugin_types.color.fieldviews.edit.html +0 -2
  832. package/docs/modules/_saltcorn_data.base-plugin_types.color.fieldviews.html +0 -2
  833. package/docs/modules/_saltcorn_data.base-plugin_types.color.fieldviews.show.html +0 -2
  834. package/docs/modules/_saltcorn_data.base-plugin_types.color.html +0 -4
  835. package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.edit.html +0 -2
  836. package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.editDay.html +0 -2
  837. package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.format.html +0 -2
  838. package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.html +0 -2
  839. package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.relative.html +0 -2
  840. package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.show.html +0 -2
  841. package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.showDay.html +0 -2
  842. package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.yearsAgo.html +0 -2
  843. package/docs/modules/_saltcorn_data.base-plugin_types.date.html +0 -3
  844. package/docs/modules/_saltcorn_data.base-plugin_types.date.presets.html +0 -2
  845. package/docs/modules/_saltcorn_data.base-plugin_types.float.fieldviews.edit.html +0 -2
  846. package/docs/modules/_saltcorn_data.base-plugin_types.float.fieldviews.html +0 -2
  847. package/docs/modules/_saltcorn_data.base-plugin_types.float.fieldviews.show.html +0 -2
  848. package/docs/modules/_saltcorn_data.base-plugin_types.float.html +0 -3
  849. package/docs/modules/_saltcorn_data.base-plugin_types.int.distance_operators.html +0 -2
  850. package/docs/modules/_saltcorn_data.base-plugin_types.int.html +0 -3
  851. package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.as_header.html +0 -2
  852. package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.as_link.html +0 -2
  853. package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.as_text.html +0 -2
  854. package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.edit.html +0 -2
  855. package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.html +0 -2
  856. package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.img_from_url.html +0 -2
  857. package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.password.html +0 -2
  858. package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.radio_group.html +0 -2
  859. package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.textarea.html +0 -2
  860. package/docs/modules/_saltcorn_data.base-plugin_types.string.html +0 -3
  861. package/docs/modules/_saltcorn_data.base-plugin_types.string.presets.html +0 -2
  862. package/docs/modules/_saltcorn_data.tests_actions.test.html +0 -1
  863. package/docs/modules/_saltcorn_data.tests_auth.test.html +0 -1
  864. package/docs/modules/_saltcorn_data.tests_auxtest.test.html +0 -1
  865. package/docs/modules/_saltcorn_data.tests_base.test.html +0 -1
  866. package/docs/modules/_saltcorn_data.tests_calc.test.html +0 -1
  867. package/docs/modules/_saltcorn_data.tests_composite_pk.test.html +0 -1
  868. package/docs/modules/_saltcorn_data.tests_config.test.html +0 -1
  869. package/docs/modules/_saltcorn_data.tests_db.test.html +0 -1
  870. package/docs/modules/_saltcorn_data.tests_discover.test.html +0 -1
  871. package/docs/modules/_saltcorn_data.tests_edit.test.html +0 -1
  872. package/docs/modules/_saltcorn_data.tests_email.test.html +0 -1
  873. package/docs/modules/_saltcorn_data.tests_exact_views.test.html +0 -1
  874. package/docs/modules/_saltcorn_data.tests_field.test.html +0 -1
  875. package/docs/modules/_saltcorn_data.tests_fieldviews.test.html +0 -1
  876. package/docs/modules/_saltcorn_data.tests_file.test.html +0 -1
  877. package/docs/modules/_saltcorn_data.tests_filter.test.html +0 -1
  878. package/docs/modules/_saltcorn_data.tests_form.test.html +0 -1
  879. package/docs/modules/_saltcorn_data.tests_list.test.html +0 -1
  880. package/docs/modules/_saltcorn_data.tests_models.test.html +0 -1
  881. package/docs/modules/_saltcorn_data.tests_page.test.html +0 -1
  882. package/docs/modules/_saltcorn_data.tests_page_group.test.html +0 -1
  883. package/docs/modules/_saltcorn_data.tests_plugin.test.html +0 -1
  884. package/docs/modules/_saltcorn_data.tests_show.test.html +0 -1
  885. package/docs/modules/_saltcorn_data.tests_state.test.html +0 -1
  886. package/docs/modules/_saltcorn_data.tests_table.test.html +0 -1
  887. package/docs/modules/_saltcorn_data.tests_table_history.test.html +0 -1
  888. package/docs/modules/_saltcorn_data.tests_tag.test.html +0 -1
  889. package/docs/modules/_saltcorn_data.tests_user.test.html +0 -1
  890. package/docs/modules/_saltcorn_data.tests_view.test.html +0 -1
  891. package/docs/modules/_saltcorn_data.tests_workflow.test.html +0 -1
  892. package/docs/modules/_saltcorn_data.tests_workflow_run.test.html +0 -1
  893. package/docs/modules/_saltcorn_mobile-builder.appium_tests_ui.test.html +0 -1
  894. package/docs/modules/_saltcorn_mobile-builder.tests_versioncode.test.html +0 -1
  895. package/docs/modules/_saltcorn_mobile-builder.tests_webpack.test.html +0 -1
  896. package/docs/types/_saltcorn_data.models_internal_push_message_helper.FcmSubscription.html +0 -4
  897. package/docs/types/_saltcorn_data.models_internal_push_message_helper.Subscription.html +0 -1
  898. package/docs/types/_saltcorn_db-common.internal.AggregationOptions.html +0 -11
  899. package/docs/types/_saltcorn_db-common.internal.CoordOpts.html +0 -5
  900. package/docs/types/_saltcorn_db-common.internal.DatabaseClient.html +0 -2
  901. package/docs/types/_saltcorn_db-common.internal.JoinField.html +0 -6
  902. package/docs/types/_saltcorn_db-common.internal.JoinFields.html +0 -1
  903. package/docs/types/_saltcorn_db-common.internal.JoinOptions.html +0 -1
  904. package/docs/types/_saltcorn_db-common.internal.JsonPath.html +0 -1
  905. package/docs/types/_saltcorn_db-common.internal.JsonPathElem.html +0 -1
  906. package/docs/types/_saltcorn_db-common.internal.Operator.html +0 -1
  907. package/docs/types/_saltcorn_db-common.internal.PartialSome.html +0 -1
  908. package/docs/types/_saltcorn_db-common.internal.PrimaryKeyValue.html +0 -1
  909. package/docs/types/_saltcorn_db-common.internal.Row.html +0 -1
  910. package/docs/types/_saltcorn_db-common.internal.SelectOptions.html +0 -21
  911. package/docs/types/_saltcorn_db-common.internal.StrongRow.html +0 -1
  912. package/docs/types/_saltcorn_db-common.internal.SubselectOptions.html +0 -5
  913. package/docs/types/_saltcorn_db-common.internal.Value.html +0 -1
  914. package/docs/types/_saltcorn_db-common.internal.Where.html +0 -5
  915. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.radio_select.description.html +0 -1
  916. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.radio_select.isEdit.html +0 -1
  917. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.radio_select.type.html +0 -1
  918. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.search_join_field.html +0 -1
  919. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.search_or_create.blockDisplay.html +0 -1
  920. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.search_or_create.description.html +0 -1
  921. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.search_or_create.isEdit.html +0 -1
  922. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.search_or_create.type.html +0 -1
  923. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select.blockDisplay.html +0 -1
  924. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select.configFields.html +0 -1
  925. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select.description.html +0 -1
  926. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select.isEdit.html +0 -1
  927. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select.type.html +0 -1
  928. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_by_code.html +0 -1
  929. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_by_view.html +0 -1
  930. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_from_table.blockDisplay.html +0 -1
  931. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_from_table.configFields.html +0 -1
  932. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_from_table.description.html +0 -1
  933. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_from_table.isEdit.html +0 -1
  934. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_from_table.type.html +0 -1
  935. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.two_level_select.html +0 -1
  936. package/docs/variables/_saltcorn_data.base-plugin_fileview.fileview.html +0 -1
  937. package/docs/variables/_saltcorn_data.base-plugin_types.bool.attributes.html +0 -1
  938. package/docs/variables/_saltcorn_data.base-plugin_types.bool.description.html +0 -1
  939. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.TrueFalse.description.html +0 -1
  940. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.TrueFalse.isEdit.html +0 -1
  941. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.checkboxes.description.html +0 -1
  942. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.checkboxes.isEdit.html +0 -1
  943. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.edit.configFields.html +0 -1
  944. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.edit.description.html +0 -1
  945. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.edit.isEdit.html +0 -1
  946. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.show.description.html +0 -1
  947. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.show.isEdit.html +0 -1
  948. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.show_with_html.html +0 -1
  949. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.switch.html +0 -1
  950. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.thumbs_up_down.html +0 -1
  951. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.tristate.configFields.html +0 -1
  952. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.tristate.description.html +0 -1
  953. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.tristate.isEdit.html +0 -1
  954. package/docs/variables/_saltcorn_data.base-plugin_types.bool.js_type.html +0 -1
  955. package/docs/variables/_saltcorn_data.base-plugin_types.bool.name.html +0 -1
  956. package/docs/variables/_saltcorn_data.base-plugin_types.bool.sql_name.html +0 -1
  957. package/docs/variables/_saltcorn_data.base-plugin_types.color.attributes.html +0 -1
  958. package/docs/variables/_saltcorn_data.base-plugin_types.color.description.html +0 -1
  959. package/docs/variables/_saltcorn_data.base-plugin_types.color.fieldviews.edit.blockDisplay.html +0 -1
  960. package/docs/variables/_saltcorn_data.base-plugin_types.color.fieldviews.edit.description.html +0 -1
  961. package/docs/variables/_saltcorn_data.base-plugin_types.color.fieldviews.edit.isEdit.html +0 -1
  962. package/docs/variables/_saltcorn_data.base-plugin_types.color.fieldviews.show.description.html +0 -1
  963. package/docs/variables/_saltcorn_data.base-plugin_types.color.fieldviews.show.isEdit.html +0 -1
  964. package/docs/variables/_saltcorn_data.base-plugin_types.color.fieldviews.show_with_html.html +0 -1
  965. package/docs/variables/_saltcorn_data.base-plugin_types.color.js_type.html +0 -1
  966. package/docs/variables/_saltcorn_data.base-plugin_types.color.name.html +0 -1
  967. package/docs/variables/_saltcorn_data.base-plugin_types.color.sql_name.html +0 -1
  968. package/docs/variables/_saltcorn_data.base-plugin_types.date.attributes.html +0 -1
  969. package/docs/variables/_saltcorn_data.base-plugin_types.date.description.html +0 -1
  970. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.edit.blockDisplay.html +0 -1
  971. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.edit.configFields.html +0 -1
  972. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.edit.description.html +0 -1
  973. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.edit.isEdit.html +0 -1
  974. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.editDay.blockDisplay.html +0 -1
  975. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.editDay.configFields.html +0 -1
  976. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.editDay.description.html +0 -1
  977. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.editDay.isEdit.html +0 -1
  978. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.format.configFields.html +0 -1
  979. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.format.description.html +0 -1
  980. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.format.isEdit.html +0 -1
  981. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.relative.description.html +0 -1
  982. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.relative.isEdit.html +0 -1
  983. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.show.description.html +0 -1
  984. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.show.isEdit.html +0 -1
  985. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.showDay.description.html +0 -1
  986. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.showDay.isEdit.html +0 -1
  987. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.show_with_html.html +0 -1
  988. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.yearsAgo.description.html +0 -1
  989. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.yearsAgo.isEdit.html +0 -1
  990. package/docs/variables/_saltcorn_data.base-plugin_types.date.js_type.html +0 -1
  991. package/docs/variables/_saltcorn_data.base-plugin_types.date.name.html +0 -1
  992. package/docs/variables/_saltcorn_data.base-plugin_types.date.sql_name.html +0 -1
  993. package/docs/variables/_saltcorn_data.base-plugin_types.float.attributes.html +0 -1
  994. package/docs/variables/_saltcorn_data.base-plugin_types.float.description.html +0 -1
  995. package/docs/variables/_saltcorn_data.base-plugin_types.float.distance_operators.html +0 -1
  996. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.above_input.html +0 -1
  997. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.below_input.html +0 -1
  998. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.edit.blockDisplay.html +0 -1
  999. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.edit.configFields.html +0 -1
  1000. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.edit.description.html +0 -1
  1001. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.edit.isEdit.html +0 -1
  1002. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.heat_cell.html +0 -1
  1003. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.number_slider.html +0 -1
  1004. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.progress_bar.html +0 -1
  1005. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.range_interval.html +0 -1
  1006. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.show.description.html +0 -1
  1007. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.show.isEdit.html +0 -1
  1008. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.show_with_html.html +0 -1
  1009. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.to_locale_string.html +0 -1
  1010. package/docs/variables/_saltcorn_data.base-plugin_types.float.js_type.html +0 -1
  1011. package/docs/variables/_saltcorn_data.base-plugin_types.float.name.html +0 -1
  1012. package/docs/variables/_saltcorn_data.base-plugin_types.float.sql_name.html +0 -1
  1013. package/docs/variables/_saltcorn_data.base-plugin_types.int.attributes.html +0 -1
  1014. package/docs/variables/_saltcorn_data.base-plugin_types.int.description.html +0 -1
  1015. package/docs/variables/_saltcorn_data.base-plugin_types.int.distance_operators.near.html +0 -1
  1016. package/docs/variables/_saltcorn_data.base-plugin_types.int.fieldviews.html +0 -3
  1017. package/docs/variables/_saltcorn_data.base-plugin_types.int.js_type.html +0 -1
  1018. package/docs/variables/_saltcorn_data.base-plugin_types.int.name.html +0 -1
  1019. package/docs/variables/_saltcorn_data.base-plugin_types.int.primaryKey.html +0 -1
  1020. package/docs/variables/_saltcorn_data.base-plugin_types.int.sql_name.html +0 -1
  1021. package/docs/variables/_saltcorn_data.base-plugin_types.string.description.html +0 -1
  1022. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_header.description.html +0 -1
  1023. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_header.isEdit.html +0 -1
  1024. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_link.configFields.html +0 -1
  1025. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_link.description.html +0 -1
  1026. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_link.isEdit.html +0 -1
  1027. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_text.description.html +0 -1
  1028. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_text.isEdit.html +0 -1
  1029. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.checkbox_group.html +0 -1
  1030. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.code.html +0 -1
  1031. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.code_editor.html +0 -1
  1032. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.edit.blockDisplay.html +0 -1
  1033. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.edit.description.html +0 -1
  1034. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.edit.isEdit.html +0 -1
  1035. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.ellipsize.html +0 -1
  1036. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.fill_formula_btn.html +0 -1
  1037. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.img_from_url.description.html +0 -1
  1038. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.img_from_url.isEdit.html +0 -1
  1039. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.make_unique.html +0 -1
  1040. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.monospace_block.html +0 -1
  1041. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.password.blockDisplay.html +0 -1
  1042. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.password.configFields.html +0 -1
  1043. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.password.description.html +0 -1
  1044. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.password.isEdit.html +0 -1
  1045. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.preFormatted.html +0 -1
  1046. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.radio_group.configFields.html +0 -1
  1047. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.radio_group.description.html +0 -1
  1048. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.radio_group.isEdit.html +0 -1
  1049. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.select_by_code.html +0 -1
  1050. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.show_with_html.html +0 -1
  1051. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.textarea.blockDisplay.html +0 -1
  1052. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.textarea.configFields.html +0 -1
  1053. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.textarea.description.html +0 -1
  1054. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.textarea.isEdit.html +0 -1
  1055. package/docs/variables/_saltcorn_data.base-plugin_types.string.js_type.html +0 -1
  1056. package/docs/variables/_saltcorn_data.base-plugin_types.string.name.html +0 -1
  1057. package/docs/variables/_saltcorn_data.base-plugin_types.string.sql_name.html +0 -1
  1058. package/docs/variables/_saltcorn_data.contract.fieldlike.html +0 -1
  1059. package/docs/variables/_saltcorn_data.contract.is_column.html +0 -1
  1060. package/docs/variables/_saltcorn_data.contract.is_header.html +0 -1
  1061. package/docs/variables/_saltcorn_data.contract.is_pack.html +0 -1
  1062. package/docs/variables/_saltcorn_data.contract.is_plugin.html +0 -1
  1063. package/docs/variables/_saltcorn_data.contract.is_plugin_layout.html +0 -1
  1064. package/docs/variables/_saltcorn_data.contract.is_plugin_type.html +0 -1
  1065. package/docs/variables/_saltcorn_data.contract.is_plugin_wrap.html +0 -1
  1066. package/docs/variables/_saltcorn_data.contract.is_plugin_wrap_arg.html +0 -1
  1067. package/docs/variables/_saltcorn_data.contract.is_table_query.html +0 -1
  1068. package/docs/variables/_saltcorn_data.contract.is_tablely.html +0 -1
  1069. package/docs/variables/_saltcorn_data.contract.is_viewtemplate.html +0 -1
@@ -411,6 +411,7 @@ const getAllEntities = async () => {
411
411
  type: "table",
412
412
  name: t.name,
413
413
  id: t.id,
414
+ updated_at: t.updated_at ? new Date(t.updated_at).toISOString() : null,
414
415
  viewLink: `/table/${t.id}`,
415
416
  editLink: `/table/${t.id}`,
416
417
  metadata: {
@@ -435,6 +436,7 @@ const getAllEntities = async () => {
435
436
  type: "view",
436
437
  name: v.name,
437
438
  id: v.id,
439
+ updated_at: v.updated_at ? new Date(v.updated_at).toISOString() : null,
438
440
  viewLink: `/view/${encodeURIComponent(v.name)}`,
439
441
  editLink: v.singleton
440
442
  ? null
@@ -456,6 +458,7 @@ const getAllEntities = async () => {
456
458
  type: "page",
457
459
  name: p.name,
458
460
  id: p.id,
461
+ updated_at: p.updated_at ? new Date(p.updated_at).toISOString() : null,
459
462
  viewLink: `/page/${encodeURIComponent(p.name)}`,
460
463
  editLink: `/pageedit/edit/${encodeURIComponent(p.name)}`,
461
464
  metadata: {
@@ -471,6 +474,7 @@ const getAllEntities = async () => {
471
474
  type: "trigger",
472
475
  name: tr.name,
473
476
  id: tr.id,
477
+ updated_at: tr.updated_at ? new Date(tr.updated_at).toISOString() : null,
474
478
  viewLink: `/actions/configure/${tr.id}`,
475
479
  editLink: `/actions/configure/${tr.id}`,
476
480
  metadata: {
@@ -669,10 +673,10 @@ const tableActionsDropdown = (entity, req, user_can_edit_tables) => {
669
673
  };
670
674
 
671
675
  /**
672
- * Main entities list page
676
+ * Deep search index endpoint. loaded lazily on check
673
677
  */
674
678
  router.get(
675
- "/",
679
+ "/deep-search-index",
676
680
  isAdminOrHasConfigMinRole("min_role_edit_views"),
677
681
  error_catcher(async (req, res) => {
678
682
  const entities = await getAllEntities();
@@ -719,6 +723,18 @@ router.get(
719
723
  );
720
724
  }
721
725
  }
726
+ res.json(deepSearchIndex);
727
+ })
728
+ );
729
+
730
+ /**
731
+ * Main entities list page
732
+ */
733
+ router.get(
734
+ "/",
735
+ isAdminOrHasConfigMinRole("min_role_edit_views"),
736
+ error_catcher(async (req, res) => {
737
+ const entities = await getAllEntities();
722
738
  // fetch roles and tags
723
739
  const roles = await User.get_roles();
724
740
  const tags = await Tag.find();
@@ -1099,11 +1115,6 @@ router.get(
1099
1115
  entity.type === "view" ? (entity.id ?? entity.name) : entity.id
1100
1116
  }`;
1101
1117
  const tagIds = tagsByEntityKey.get(key) || [];
1102
- const deepSearchable =
1103
- deepSearchIndex[key] ||
1104
- (entity.type === "view"
1105
- ? deepSearchIndex[`${entity.type}:${entity.name}`]
1106
- : undefined);
1107
1118
  const tagBadges = tagIds.map((tid) =>
1108
1119
  a(
1109
1120
  {
@@ -1235,6 +1246,9 @@ router.get(
1235
1246
  typeof minRole !== "undefined" ? String(minRole) : "",
1236
1247
  "data-external":
1237
1248
  typeof external !== "undefined" ? String(external) : "",
1249
+ ...(entity.updated_at
1250
+ ? { "data-updated-at": entity.updated_at }
1251
+ : {}),
1238
1252
  },
1239
1253
  td(entityTypeBadge(entity.type)),
1240
1254
  td(
@@ -1270,7 +1284,14 @@ router.get(
1270
1284
  class: "table table-sm table-hover align-middle",
1271
1285
  },
1272
1286
  thead(headerRow),
1273
- tbody(initially_hidden ? { style: { opacity: "0" } } : {}, ...bodyRows)
1287
+ tbody({ id: "entities-recent-body", class: "d-none" }),
1288
+ tbody(
1289
+ {
1290
+ id: "entities-main-body",
1291
+ ...(initially_hidden ? { style: { opacity: "0" } } : {}),
1292
+ },
1293
+ ...bodyRows
1294
+ )
1274
1295
  )
1275
1296
  );
1276
1297
 
@@ -1283,935 +1304,6 @@ router.get(
1283
1304
  div(req.__("Try adjusting your search or filter options"))
1284
1305
  );
1285
1306
 
1286
- const clientScript = /*js*/ `
1287
- const searchInput = document.getElementById("entity-search");
1288
- const deepSearchToggle = document.getElementById("entity-deep-search");
1289
- const entitiesList = document.getElementById("entities-list");
1290
- const noResults = document.getElementById("no-results");
1291
- const filterButtons = document.querySelectorAll(".entity-filter-btn");
1292
- const filterButtonsByType = {};
1293
- filterButtons.forEach((btn) => {
1294
- const type = btn.dataset.entityType;
1295
- if (type) filterButtonsByType[type] = btn;
1296
- });
1297
- const tagButtons = document.querySelectorAll(".tag-filter-btn");
1298
- const LEGACY_LINK_META = ${JSON.stringify(legacyLinkMeta)};
1299
- const filtersRow = document.getElementById("entity-filters-row");
1300
- const selectionBar = document.getElementById("entity-selection-bar");
1301
- const selectionCountEl = document.getElementById("entity-selection-count");
1302
- const clearSelectionBtn = document.getElementById("entity-clear-selection");
1303
- const bulkDeleteBtn = document.getElementById("entity-bulk-delete");
1304
- const bulkTagSelect = document.getElementById("entity-bulk-tag-select");
1305
- const bulkApplyTagBtn = document.getElementById("entity-bulk-apply-tag");
1306
- const bulkDownloadPackBtn = document.getElementById("entity-bulk-download-pack");
1307
- const bulkRoleReadSelect = document.getElementById("entity-bulk-role-read-select");
1308
- const bulkApplyRoleReadBtn = document.getElementById("entity-bulk-apply-role-read");
1309
- const bulkRoleWriteSelect = document.getElementById("entity-bulk-role-write-select");
1310
- const bulkApplyRoleWriteBtn = document.getElementById("entity-bulk-apply-role-write");
1311
- const bulkRoleReadGroup = document.getElementById("entity-bulk-role-read-group");
1312
- const bulkRoleWriteGroup = document.getElementById("entity-bulk-role-write-group");
1313
- const entitiesTbody = entitiesList ? entitiesList.querySelector("tbody") : null;
1314
- const TAGS_BY_ID = ${JSON.stringify(Object.fromEntries(tags.map((t) => [t.id, t.name])))};
1315
- const ROLES_BY_ID = ${JSON.stringify(Object.fromEntries(roles.map((r) => [r.id, r.role])))};
1316
-
1317
- const TXT_SELECTED = ${JSON.stringify(req.__("selected"))};
1318
- const TXT_DELETE_SELECTED_CONFIRM = ${JSON.stringify(req.__("Delete %s selected items?"))};
1319
- const TXT_DELETE_SELECTED_FALLBACK = ${JSON.stringify(req.__("Delete selected items?"))};
1320
- const TXT_DELETE_FAILED = ${JSON.stringify(req.__("Failed to delete selected items"))};
1321
-
1322
- const BASE_TYPES = ["table","view","page","trigger"];
1323
- const EXTENDED_TYPES = window.ENTITY_EXTENDED_TYPES || ["module","user"];
1324
- const ALL_TYPES = BASE_TYPES.concat(EXTENDED_TYPES);
1325
-
1326
- const selectedKeys = new Set();
1327
- let lastSelectedIndex = null;
1328
-
1329
- const isRowSelectable = (row) => {
1330
- if (!row) return false;
1331
- const type = row.dataset.entityType;
1332
- const installed = row.dataset.installed !== 'false';
1333
- const moduleKind = (row.dataset.moduleKind || '').toLowerCase();
1334
- if (type === 'module' && !installed) return false;
1335
- return true;
1336
- };
1337
-
1338
- const findRowByKey = (key) =>
1339
- Array.from(document.querySelectorAll('.entity-row')).find(
1340
- (row) => row.dataset.entityKey === key
1341
- );
1342
-
1343
- const selectionPayloadFromRow = (row) => {
1344
- if (!row) return null;
1345
- return {
1346
- key: row.dataset.entityKey,
1347
- type: row.dataset.entityType,
1348
- id: row.dataset.entityId || null,
1349
- name: row.dataset.entityLabel || row.dataset.entityName || "",
1350
- installed: row.dataset.installed,
1351
- moduleKind: row.dataset.moduleKind,
1352
- };
1353
- };
1354
-
1355
- const getVisibleRows = () =>
1356
- Array.from(document.querySelectorAll('.entity-row')).filter(
1357
- (row) => row.style.display !== 'none'
1358
- );
1359
-
1360
- const getSelectableVisibleRows = () =>
1361
- getVisibleRows().filter((row) => isRowSelectable(row));
1362
-
1363
- const isTypingTarget = (el) => {
1364
- if (!el) return false;
1365
- if (el.isContentEditable) return true;
1366
- const tag = el.tagName;
1367
- if (!tag) return false;
1368
- const tagName = tag.toUpperCase();
1369
- if (tagName === 'INPUT' || tagName === 'TEXTAREA' || tagName === 'SELECT') return true;
1370
- return !!el.closest('[contenteditable="true"]');
1371
- };
1372
-
1373
- const refreshSelectionStyles = () => {
1374
- document.querySelectorAll('.entity-row').forEach((row) => {
1375
- const key = row.dataset.entityKey;
1376
- if (!isRowSelectable(row) && selectedKeys.has(key)) {
1377
- selectedKeys.delete(key);
1378
- }
1379
- if (selectedKeys.has(key)) {
1380
- row.classList.add('table-active', 'entity-row-selected');
1381
- } else {
1382
- row.classList.remove('table-active', 'entity-row-selected');
1383
- }
1384
- });
1385
- };
1386
-
1387
- const syncSelectBorder = (el, varName) => {
1388
- if (!el) return;
1389
- const disabledBorder =
1390
- 'color-mix(in srgb, var(--bs-btn-disabled-color, var(--bs-secondary)) 70%, transparent)';
1391
- const enabledBorder = 'var(--bs-secondary)';
1392
- const borderColor = el.disabled ? disabledBorder : enabledBorder;
1393
- el.style.setProperty(varName, borderColor);
1394
- };
1395
-
1396
- const markSelectChangedByUser = (sel) => {
1397
- if (sel) sel.dataset.userSelected = 'true';
1398
- };
1399
-
1400
- const resetSelectUserFlag = (sel) => {
1401
- if (sel) sel.dataset.userSelected = '';
1402
- };
1403
-
1404
- const updateSelectionUI = () => {
1405
- refreshSelectionStyles();
1406
- const count = selectedKeys.size ?? 0;
1407
- if (selectionCountEl) {
1408
- const suffix = TXT_SELECTED || 'selected';
1409
- selectionCountEl.textContent = count + ' ' + suffix;
1410
- }
1411
- if (filtersRow && selectionBar) {
1412
- if (count > 0) {
1413
- filtersRow.classList.add('d-none');
1414
- selectionBar.classList.remove('d-none');
1415
- } else {
1416
- filtersRow.classList.remove('d-none');
1417
- selectionBar.classList.add('d-none');
1418
- }
1419
- }
1420
- if (bulkDeleteBtn) bulkDeleteBtn.disabled = count === 0;
1421
- if (clearSelectionBtn) clearSelectionBtn.disabled = count === 0;
1422
- const items = Array.from(selectedKeys)
1423
- .map((key) => selectionPayloadFromRow(findRowByKey(key)))
1424
- .filter(Boolean);
1425
- const hasTaggable = items.some((item) => isTaggableType(item.type));
1426
- const hasDownloadable = items.some((item) => isDownloadableEntity(item));
1427
- const hasAccessRoleEntities = items.some((item) =>
1428
- ["table","view","page"].includes(item.type)
1429
- );
1430
- const hasWriteRoleEntities = items.some((item) => item.type === "table");
1431
- if (items.length === 1) {
1432
- const only = items[0];
1433
- const row = findRowByKey(only.key);
1434
- if (row && bulkRoleReadSelect && bulkRoleReadSelect.dataset.userSelected !== 'true') {
1435
- const initRead =
1436
- only.type === 'table'
1437
- ? row.dataset.minRoleRead || ''
1438
- : row.dataset.minRole || '';
1439
- bulkRoleReadSelect.value = initRead || '';
1440
- }
1441
- if (row && bulkRoleWriteSelect && only.type === 'table' && bulkRoleWriteSelect.dataset.userSelected !== 'true') {
1442
- const initWrite = row.dataset.minRoleWrite || '';
1443
- bulkRoleWriteSelect.value = initWrite || '';
1444
- }
1445
- } else if (items.length === 0) {
1446
- if (bulkRoleReadSelect) {
1447
- bulkRoleReadSelect.value = '';
1448
- resetSelectUserFlag(bulkRoleReadSelect);
1449
- }
1450
- if (bulkRoleWriteSelect) {
1451
- bulkRoleWriteSelect.value = '';
1452
- resetSelectUserFlag(bulkRoleWriteSelect);
1453
- }
1454
- }
1455
- if (bulkTagSelect) {
1456
- bulkTagSelect.disabled = !(count > 0 && hasTaggable);
1457
- syncSelectBorder(bulkTagSelect, '--entity-bulk-tag-border');
1458
- }
1459
- if (bulkApplyTagBtn) {
1460
- const tagSelected = bulkTagSelect && bulkTagSelect.value;
1461
- bulkApplyTagBtn.disabled = !(count > 0 && hasTaggable && tagSelected);
1462
- }
1463
- if (bulkRoleReadSelect) {
1464
- bulkRoleReadSelect.disabled = !(count > 0 && hasAccessRoleEntities);
1465
- syncSelectBorder(bulkRoleReadSelect, '--entity-bulk-role-border');
1466
- }
1467
- if (bulkApplyRoleReadBtn) {
1468
- const roleSelected = bulkRoleReadSelect && bulkRoleReadSelect.value;
1469
- bulkApplyRoleReadBtn.disabled = !(count > 0 && hasAccessRoleEntities && roleSelected);
1470
- }
1471
- if (bulkRoleWriteSelect) {
1472
- bulkRoleWriteSelect.disabled = !(count > 0 && hasWriteRoleEntities);
1473
- syncSelectBorder(bulkRoleWriteSelect, '--entity-bulk-role-border');
1474
- }
1475
- if (bulkApplyRoleWriteBtn) {
1476
- const roleSelected = bulkRoleWriteSelect && bulkRoleWriteSelect.value;
1477
- bulkApplyRoleWriteBtn.disabled = !(count > 0 && hasWriteRoleEntities && roleSelected);
1478
- }
1479
- if (bulkRoleWriteGroup) {
1480
- if (hasWriteRoleEntities) bulkRoleWriteGroup.classList.remove('d-none');
1481
- else bulkRoleWriteGroup.classList.add('d-none');
1482
- }
1483
- if (bulkDownloadPackBtn) {
1484
- // bulkDownloadPackBtn.disabled = !(count > 0 && hasDownloadable);
1485
- bulkDownloadPackBtn.disabled = !(count > 0);
1486
- }
1487
- };
1488
-
1489
- const clearSelection = () => {
1490
- selectedKeys.clear();
1491
- lastSelectedIndex = null;
1492
- updateSelectionUI();
1493
- };
1494
-
1495
- // Track active filters
1496
- const activeFilters = new Set([]);
1497
- const activeTags = new Set([]);
1498
- const isModulesFilterExclusive = () =>
1499
- activeFilters.size === 1 && activeFilters.has("module");
1500
- window.isModulesFilterExclusive = isModulesFilterExclusive;
1501
-
1502
- const isTaggableType = (type) => ["table","view","page","trigger"].includes(type);
1503
- const isDownloadableEntity = (item) => {
1504
- if (!item) return false;
1505
- return ["table","view","page","trigger"].includes(item.type);
1506
- };
1507
-
1508
- const updateRowTags = (row, tagId, tagName, entityType) => {
1509
- if (!row || !tagId) return;
1510
- const tagsCell = row.querySelector('td:nth-child(6)');
1511
- if (!tagsCell) return;
1512
- const dropdown = tagsCell.querySelector('.dropdown');
1513
- const currentTags = (row.dataset.tags || '').split(' ').filter(Boolean);
1514
- if (!currentTags.includes(String(tagId))) currentTags.push(String(tagId));
1515
- row.dataset.tags = currentTags.join(' ');
1516
- tagsCell.innerHTML = '';
1517
- const pluralMap = { table: 'tables', view: 'views', page: 'pages', trigger: 'triggers' };
1518
- currentTags.forEach((tid) => {
1519
- const name = TAGS_BY_ID[tid] || tagName || tid;
1520
- const plural = pluralMap[entityType] || 'tables';
1521
- const badge = document.createElement('a');
1522
- badge.className = 'badge bg-secondary me-1';
1523
- badge.setAttribute('href', '/tag/' + encodeURIComponent(tid) + '?show_list=' + plural);
1524
- badge.textContent = name;
1525
- tagsCell.appendChild(badge);
1526
- });
1527
- if (dropdown) tagsCell.appendChild(dropdown);
1528
- };
1529
-
1530
- // URL state helpers
1531
- const updateUrl = () => {
1532
- const params = new URLSearchParams(window.location.search);
1533
- // search
1534
- if (searchInput.value) params.set('q', searchInput.value);
1535
- else params.delete('q');
1536
- if (deepSearchToggle && deepSearchToggle.checked) params.set('deep', 'on');
1537
- else params.delete('deep');
1538
- // types
1539
- ALL_TYPES.forEach(t => {
1540
- if (activeFilters.has(t)) params.set(t+'s', 'on');
1541
- else params.delete(t+'s');
1542
- });
1543
- // extended flag
1544
- if (typeof isExtendedExpanded !== 'undefined' && isExtendedExpanded) {
1545
- params.set('extended', 'on');
1546
- } else {
1547
- params.delete('extended');
1548
- }
1549
- // tags (comma-separated ids)
1550
- if (activeTags.size > 0) params.set('tags', Array.from(activeTags).join(','));
1551
- else params.delete('tags');
1552
- const newUrl = window.location.pathname + (params.toString() ? ('?' + params.toString()) : '');
1553
- window.history.replaceState(null, '', newUrl);
1554
- };
1555
-
1556
- const getCurrentOnDoneTarget = () => {
1557
- const path = window.location.pathname.startsWith("/")
1558
- ? window.location.pathname.slice(1)
1559
- : window.location.pathname;
1560
- return path + window.location.search;
1561
- };
1562
-
1563
- const shouldSkipOnDoneHref = (raw) => {
1564
- if (!raw) return true;
1565
- const trimmed = raw.trim();
1566
- const lowered = trimmed.toLowerCase();
1567
- return trimmed === "#" || trimmed === "" || lowered.startsWith("javascript:");
1568
- };
1569
-
1570
- const toRelativeHrefWithOnDone = (raw) => {
1571
- if (shouldSkipOnDoneHref(raw)) return null;
1572
- try {
1573
- const url = new URL(raw, window.location.origin);
1574
- url.searchParams.set("on_done_redirect", getCurrentOnDoneTarget());
1575
- return url.pathname + url.search + url.hash;
1576
- } catch (e) {
1577
- return null;
1578
- }
1579
- };
1580
-
1581
- const updateElementOnDoneHref = (el, attr) => {
1582
- const raw = el.getAttribute(attr) || el[attr];
1583
- const updated = toRelativeHrefWithOnDone(raw);
1584
- if (updated) el.setAttribute(attr, updated);
1585
- };
1586
-
1587
- const ensureOnDoneHiddenInput = (form) => {
1588
- if (form.querySelector('input[name="on_done_redirect"]')) return;
1589
- const hidden = document.createElement('input');
1590
- hidden.type = 'hidden';
1591
- hidden.name = 'on_done_redirect';
1592
- hidden.value = getCurrentOnDoneTarget();
1593
- form.appendChild(hidden);
1594
- };
1595
-
1596
- const updateOnDoneRedirectTargets = () => {
1597
- document
1598
- .querySelectorAll('a[href*="on_done_redirect="]')
1599
- .forEach((link) => updateElementOnDoneHref(link, "href"));
1600
- document
1601
- .querySelectorAll('form[action*="on_done_redirect="]')
1602
- .forEach((form) => updateElementOnDoneHref(form, "action"));
1603
- };
1604
-
1605
- const updateLegacyButton = () => {
1606
- const legacyButton = document.getElementById("legacy-entity-link");
1607
- const legacyLabel = legacyButton ? legacyButton.querySelector(".legacy-label") : null;
1608
- if (!legacyButton) return;
1609
- const activeTypes = Array.from(activeFilters);
1610
- if (activeTypes.length === 1) {
1611
- const meta = LEGACY_LINK_META[activeTypes[0]];
1612
- if (meta) {
1613
- legacyButton.classList.remove("d-none");
1614
- legacyButton.setAttribute("href", meta.href);
1615
- if (legacyLabel) legacyLabel.textContent = meta.label;
1616
- return;
1617
- }
1618
- }
1619
- legacyButton.classList.add("d-none");
1620
- };
1621
-
1622
- const initFromUrl = () => {
1623
- const params = new URLSearchParams(window.location.search);
1624
- // search
1625
- const q = params.get('q') || '';
1626
- if (q) searchInput.value = q;
1627
- const deep = params.get('deep') === 'on';
1628
- if (deep && deepSearchToggle) deepSearchToggle.checked = true;
1629
- const shouldExpandExtended =
1630
- params.get('extended') === 'on' ||
1631
- EXTENDED_TYPES.some((t) => params.get(t + 's') === 'on');
1632
- // types
1633
- ALL_TYPES.forEach(t => {
1634
- if (params.get(t+'s') === 'on') activeFilters.add(t);
1635
- });
1636
- // apply button classes for types
1637
- filterButtons.forEach((btn) => {
1638
- const t = btn.dataset.entityType;
1639
- if (activeFilters.has(t)) {
1640
- btn.classList.add('btn-primary');
1641
- btn.classList.remove('btn-outline-primary');
1642
- }
1643
- });
1644
- // tags
1645
- const tagsParam = params.get('tags');
1646
- if (tagsParam) {
1647
- tagsParam.split(',').filter(Boolean).forEach(id => activeTags.add(id));
1648
- }
1649
- // apply button classes for tags
1650
- tagButtons.forEach((btn) => {
1651
- const id = btn.dataset.tagId;
1652
- if (activeTags.has(id)) {
1653
- btn.classList.add('active', 'btn-secondary');
1654
- btn.classList.remove('btn-outline-secondary');
1655
- }
1656
- });
1657
- return { shouldExpandExtended };
1658
- };
1659
-
1660
- // Filter function
1661
- function filterEntities() {
1662
- const entityRows = document.querySelectorAll(".entity-row");
1663
- const searchTerm = searchInput.value.toLowerCase();
1664
- const useDeep = deepSearchToggle && deepSearchToggle.checked;
1665
- let visibleCount = 0;
1666
- const visibleKeys = new Set();
1667
- const allowAllModules = isModulesFilterExclusive();
1668
- const canShowAllModules =
1669
- allowAllModules && typeof isExtendedExpanded !== "undefined" && isExtendedExpanded;
1670
- if (
1671
- canShowAllModules &&
1672
- typeof ensureAllModulesLoaded === "function" &&
1673
- typeof hasLoadedAllModules !== "undefined" &&
1674
- !hasLoadedAllModules
1675
- ) {
1676
- ensureAllModulesLoaded();
1677
- }
1678
-
1679
- entityRows.forEach((row, id) => {
1680
- const entityType = row.dataset.entityType;
1681
- const key = row.dataset.entityKey;
1682
- const deepText =
1683
- useDeep && window.ENTITY_DEEP_SEARCH
1684
- ? window.ENTITY_DEEP_SEARCH[key]
1685
- : null;
1686
- const searchableText = useDeep ? deepText || row.dataset.deepSearchable || "" : row.dataset.searchable || "";
1687
-
1688
- const rowTags = (row.dataset.tags || "").split(" ").filter(Boolean);
1689
- const rowInstalled = row.dataset.installed !== "false";
1690
-
1691
- // Check if entity type is active
1692
- const typeMatch = activeFilters.has(entityType);
1693
-
1694
- // Check if search term matches
1695
- let searchMatch = true;
1696
- if (searchTerm) {
1697
- searchMatch = searchableText.includes(searchTerm);
1698
- }
1699
-
1700
- // Check tag match (OR across selected tags). If none selected, match all
1701
- let tagMatch = true;
1702
- if (activeTags.size > 0) {
1703
- tagMatch = rowTags.some((tid) => activeTags.has(tid));
1704
- }
1705
-
1706
- const moduleVisibilityOk =
1707
- entityType !== "module" || rowInstalled || canShowAllModules;
1708
-
1709
- // Show/hide row
1710
- if (
1711
- (activeFilters.size === 0 || typeMatch) &&
1712
- searchMatch &&
1713
- tagMatch &&
1714
- moduleVisibilityOk
1715
- ) {
1716
- row.style.display = "";
1717
- visibleKeys.add(row.dataset.entityKey);
1718
- visibleCount++;
1719
- } else {
1720
- row.style.display = "none";
1721
- }
1722
- });
1723
-
1724
- selectedKeys.forEach((key) => {
1725
- if (!visibleKeys.has(key)) selectedKeys.delete(key);
1726
- });
1727
-
1728
- // Show/hide no results message
1729
- if (visibleCount === 0) {
1730
- entitiesList.parentElement.classList.add("d-none");
1731
- noResults.classList.remove("d-none");
1732
- } else {
1733
- entitiesList.parentElement.classList.remove("d-none");
1734
- noResults.classList.add("d-none");
1735
- }
1736
-
1737
- updateUrl();
1738
- updateOnDoneRedirectTargets();
1739
- updateLegacyButton();
1740
- updateSelectionUI();
1741
- }
1742
-
1743
- // Search input handler
1744
- searchInput.addEventListener("input", filterEntities);
1745
- searchInput.addEventListener("keydown", (e) => {
1746
- if (e.key === "Escape" || e.key === "Esc") {
1747
- e.preventDefault();
1748
- searchInput.blur();
1749
- }
1750
- });
1751
- if (deepSearchToggle) {
1752
- deepSearchToggle.addEventListener("change", filterEntities);
1753
- }
1754
-
1755
- // Filter button handlers
1756
- filterButtons.forEach((btn) => {
1757
- btn.addEventListener("click", function () {
1758
- const entityType = this.dataset.entityType;
1759
-
1760
- if (!activeFilters.has(entityType)) {
1761
- activeFilters.add(entityType);
1762
- this.classList.add("btn-primary");
1763
- this.classList.remove("btn-outline-primary");
1764
- } else {
1765
- activeFilters.delete(entityType);
1766
- this.classList.remove("btn-primary");
1767
- this.classList.add("btn-outline-primary");
1768
- }
1769
-
1770
- filterEntities();
1771
- if (searchInput && typeof searchInput.focus === 'function') {
1772
- searchInput.focus({ preventScroll: true });
1773
- }
1774
- });
1775
- });
1776
-
1777
- // Tag filter handlers (multi-select, OR). No "All" button needed
1778
- tagButtons.forEach((btn) => {
1779
- btn.addEventListener("click", function () {
1780
- const tid = this.dataset.tagId;
1781
- if (!activeTags.has(tid)) {
1782
- activeTags.add(tid);
1783
- this.classList.add("active", "btn-secondary");
1784
- this.classList.remove("btn-outline-secondary");
1785
- } else {
1786
- activeTags.delete(tid);
1787
- this.classList.remove("active", "btn-secondary");
1788
- this.classList.add("btn-outline-secondary");
1789
- }
1790
- filterEntities();
1791
- });
1792
- });
1793
-
1794
- const keyboardShortcutTypeMap = {
1795
- KeyT: "table",
1796
- KeyV: "view",
1797
- KeyP: "page",
1798
- KeyR: "trigger",
1799
- KeyM: "module",
1800
- KeyU: "user",
1801
- };
1802
-
1803
- document.addEventListener("keydown", async (e) => {
1804
- const isFromSearchInput = e.target === searchInput;
1805
- const typingTarget = isTypingTarget(e.target);
1806
-
1807
- if (e.altKey && !e.ctrlKey && !e.metaKey) {
1808
- const type = keyboardShortcutTypeMap[e.code];
1809
- if (type) {
1810
- e.preventDefault();
1811
- const isExtendedType = EXTENDED_TYPES.includes(type);
1812
- if (
1813
- isExtendedType &&
1814
- typeof isExtendedExpanded !== "undefined" &&
1815
- !isExtendedExpanded &&
1816
- typeof toggleEntityExpanded === "function"
1817
- ) {
1818
- await toggleEntityExpanded(true);
1819
- }
1820
- const btn = filterButtonsByType[type];
1821
- if (btn) {
1822
- btn.click();
1823
- if (searchInput && typeof searchInput.focus === 'function') {
1824
- searchInput.focus({ preventScroll: true });
1825
- }
1826
- }
1827
- return;
1828
- }
1829
- if (deepSearchToggle && e.code === "KeyS") {
1830
- e.preventDefault();
1831
- deepSearchToggle.checked = !deepSearchToggle.checked;
1832
- filterEntities();
1833
- if (searchInput && typeof searchInput.focus === 'function') {
1834
- searchInput.focus({ preventScroll: true });
1835
- }
1836
- }
1837
- return;
1838
- }
1839
- if (typingTarget && !isFromSearchInput) return;
1840
-
1841
- const isSelectAllKey = e.key === "a" || e.key === "A";
1842
- if ((e.metaKey || e.ctrlKey) && !e.altKey && isSelectAllKey) {
1843
- const visibleRows = getSelectableVisibleRows();
1844
- if (!visibleRows.length) return;
1845
- e.preventDefault();
1846
- visibleRows.forEach((row) => {
1847
- const key = row.dataset.entityKey;
1848
- if (key) selectedKeys.add(key);
1849
- });
1850
- lastSelectedIndex = visibleRows.length - 1;
1851
- updateSelectionUI();
1852
- }
1853
- });
1854
-
1855
- if (clearSelectionBtn) {
1856
- clearSelectionBtn.addEventListener('click', () => {
1857
- clearSelection();
1858
- filterEntities();
1859
- });
1860
- }
1861
-
1862
- if(bulkTagSelect) {
1863
- bulkTagSelect.addEventListener('change', () => updateSelectionUI());
1864
- }
1865
-
1866
- if (bulkRoleReadSelect) {
1867
- bulkRoleReadSelect.addEventListener('change', () => {
1868
- markSelectChangedByUser(bulkRoleReadSelect);
1869
- updateSelectionUI();
1870
- });
1871
- }
1872
-
1873
- if (bulkRoleWriteSelect) {
1874
- bulkRoleWriteSelect.addEventListener('change', () => {
1875
- markSelectChangedByUser(bulkRoleWriteSelect);
1876
- updateSelectionUI();
1877
- });
1878
- }
1879
-
1880
- const doBulkApplyTag = async () => {
1881
- if(!bulkApplyTagBtn || !bulkTagSelect) return;
1882
- const tagId = bulkTagSelect.value;
1883
- if (!tagId) return;
1884
- const items = collectSelectionItems().filter((item) => isTaggableType(item.type));
1885
- if (!items.length) return;
1886
- bulkApplyTagBtn.disabled = true;
1887
- try {
1888
- const res = await fetch('/entities/bulk-apply-tag', {
1889
- method: 'POST',
1890
- headers: {
1891
- "Content-Type": "application/json",
1892
- 'CSRF-Token': window._sc_globalCsrf || '',
1893
- },
1894
- body: JSON.stringify({ tag_id: tagId, items }),
1895
- });
1896
- if (!res.ok) throw new Error(await res.text());
1897
- await res.json();
1898
- const tagName = TAGS_BY_ID[tagId] || '';
1899
- items.forEach((item) => {
1900
- const row = findRowByKey(item.key);
1901
- if (row) updateRowTags(row, tagId, tagName, item.type);
1902
- });
1903
- filterEntities();
1904
- } catch (e) {
1905
- console.error('Failed to apply tag to selected items', e);
1906
- alert("Failed to apply tag to selected items");
1907
- }
1908
- bulkApplyTagBtn.disabled = false;
1909
- };
1910
-
1911
- if(bulkApplyTagBtn) {
1912
- bulkApplyTagBtn.addEventListener('click', doBulkApplyTag);
1913
- }
1914
-
1915
- const triggerDownload = (filename, content) => {
1916
- const blob = new Blob([content], { type: 'application/json' });
1917
- const url = URL.createObjectURL(blob);
1918
- const a = document.createElement('a');
1919
- a.href = url;
1920
- a.download = filename;
1921
- document.body.appendChild(a);
1922
- a.click();
1923
- document.body.removeChild(a);
1924
- URL.revokeObjectURL(url);
1925
- };
1926
-
1927
- const doBulkDownloadPack = async () => {
1928
- if (!bulkDownloadPackBtn) return;
1929
- const items = collectSelectionItems()
1930
- // .filter((item) => isDownloadableEntity(item));
1931
- if (!items.length) return;
1932
- bulkDownloadPackBtn.disabled = true;
1933
- try {
1934
- const res = await fetch('/entities/download-pack', {
1935
- method: 'POST',
1936
- headers: {
1937
- 'Content-Type': 'application/json',
1938
- 'CSRF-Token': window._sc_globalCsrf || '',
1939
- },
1940
- body: JSON.stringify({ items }),
1941
- });
1942
- if (!res.ok) throw new Error(await res.text());
1943
- const payload = await res.json();
1944
- if (Array.isArray(payload?.packs)) {
1945
- payload.packs.forEach((pack) => {
1946
- if (pack && pack.name && pack.content) {
1947
- const content =
1948
- typeof pack.content === 'string'
1949
- ? pack.content
1950
- : JSON.stringify(pack.content, null, 2);
1951
- triggerDownload(pack.name + '.json', content);
1952
- }
1953
- });
1954
- }
1955
- } catch (e) {
1956
- console.error('Failed to download pack(s)', e);
1957
- alert("Failed to download pack for selected items");
1958
- }
1959
- bulkDownloadPackBtn.disabled = false;
1960
- };
1961
-
1962
- if (bulkDownloadPackBtn) {
1963
- bulkDownloadPackBtn.addEventListener('click', doBulkDownloadPack);
1964
- }
1965
-
1966
- if (bulkApplyRoleReadBtn) {
1967
- bulkApplyRoleReadBtn.addEventListener('click', () => doBulkApplyRole('read'));
1968
- }
1969
-
1970
- if (bulkApplyRoleWriteBtn) {
1971
- bulkApplyRoleWriteBtn.addEventListener('click', () => doBulkApplyRole('write'));
1972
- }
1973
-
1974
- const collectSelectionItems = () =>
1975
- Array.from(selectedKeys)
1976
- .map((key) => selectionPayloadFromRow(findRowByKey(key)))
1977
- .filter(Boolean);
1978
-
1979
- const getRoleName = (rid) => {
1980
- if (typeof rid === 'undefined') return '';
1981
- const key = String(rid);
1982
- if (!ROLES_BY_ID) return '';
1983
- return Object.prototype.hasOwnProperty.call(ROLES_BY_ID, key) ? ROLES_BY_ID[key] : '?';
1984
- };
1985
-
1986
- const toNumberOrUndefined = (val) => {
1987
- if (val === '' || typeof val === 'undefined' || val === null) return undefined;
1988
- const num = Number(val);
1989
- return Number.isNaN(num) ? undefined : num;
1990
- };
1991
-
1992
- const updateRowAccess = (row, payload) => {
1993
- if (!row) return;
1994
- if (typeof payload.min_role_read !== 'undefined') row.dataset.minRoleRead = String(payload.min_role_read ?? '');
1995
- if (typeof payload.min_role_write !== 'undefined') row.dataset.minRoleWrite = String(payload.min_role_write ?? '');
1996
- if (typeof payload.min_role !== 'undefined') row.dataset.minRole = String(payload.min_role ?? '');
1997
- const cell = row.querySelector('td:nth-child(5)');
1998
- if (cell) {
1999
- const label = (() => {
2000
- if (payload.type === 'table') {
2001
- const ext = row.dataset.external === 'true';
2002
- const rr = toNumberOrUndefined(payload.min_role_read);
2003
- const rw = toNumberOrUndefined(payload.min_role_write);
2004
- if (ext) return getRoleName(rr) + " (read only)";
2005
- if (typeof rr !== 'undefined' && typeof rw !== 'undefined') return getRoleName(rr) + "/" + getRoleName(rw);
2006
- return '';
2007
- }
2008
- const mr = toNumberOrUndefined(payload.min_role);
2009
- return typeof mr !== 'undefined' ? getRoleName(mr) : '';
2010
- })();
2011
- cell.textContent = label;
2012
- }
2013
- };
2014
-
2015
- const doBulkApplyRole = async (mode) => {
2016
- const isWriteMode = mode === 'write';
2017
- const selectEl = isWriteMode ? bulkRoleWriteSelect : bulkRoleReadSelect;
2018
- const buttonEl = isWriteMode ? bulkApplyRoleWriteBtn : bulkApplyRoleReadBtn;
2019
- if (!selectEl || !buttonEl) return;
2020
- const roleId = selectEl.value;
2021
- if (!roleId) return;
2022
- const items = collectSelectionItems().filter((item) => {
2023
- if (isWriteMode) return item.type === 'table';
2024
- return ['table', 'view', 'page'].includes(item.type);
2025
- });
2026
- if (!items.length) return;
2027
- buttonEl.disabled = true;
2028
- try {
2029
- const res = await fetch('/entities/bulk-set-role', {
2030
- method: 'POST',
2031
- headers: {
2032
- 'Content-Type': 'application/json',
2033
- 'CSRF-Token': window._sc_globalCsrf || '',
2034
- },
2035
- body: JSON.stringify({ items, role_id: roleId, mode }),
2036
- });
2037
- if (!res.ok) throw new Error(await res.text());
2038
- const payload = await res.json();
2039
- const updatedKeys = new Set(payload?.updatedKeys || []);
2040
- const errors = payload?.errors || [];
2041
- if (errors.length) {
2042
- console.error('Failed to set role for some items', errors);
2043
- alert('Failed to set role for some selected items');
2044
- }
2045
- items.forEach((item) => {
2046
- if (updatedKeys.size && !updatedKeys.has(item.key)) return;
2047
- const row = findRowByKey(item.key);
2048
- if (!row) return;
2049
- if (isWriteMode && item.type === 'table') {
2050
- updateRowAccess(row, { type: 'table', min_role_write: Number(roleId), min_role_read: toNumberOrUndefined(row.dataset.minRoleRead) });
2051
- } else if (!isWriteMode) {
2052
- if (item.type === 'table') {
2053
- updateRowAccess(row, { type: 'table', min_role_read: Number(roleId), min_role_write: toNumberOrUndefined(row.dataset.minRoleWrite) });
2054
- } else if (item.type === 'view') {
2055
- updateRowAccess(row, { type: 'view', min_role: Number(roleId) });
2056
- } else if (item.type === 'page') {
2057
- updateRowAccess(row, { type: 'page', min_role: Number(roleId) });
2058
- }
2059
- }
2060
- });
2061
- } catch (e) {
2062
- console.error('Failed to set role for selected items', e);
2063
- alert('Failed to set role for selected items');
2064
- }
2065
- buttonEl.disabled = false;
2066
- updateSelectionUI();
2067
- };
2068
-
2069
- const formatDeleteError = (err) => {
2070
- const displayType = err?.isPack
2071
- ? "Pack"
2072
- : (() => {
2073
- const t = (err?.type || "").toString();
2074
- if (!t) return "Item";
2075
- return t.charAt(0).toUpperCase() + t.slice(1);
2076
- })();
2077
- const label = err?.name || err?.id || err?.key || "(unknown)";
2078
- const message = err?.message || TXT_DELETE_FAILED || "Failed to delete selected items";
2079
- return displayType + " (" + label + "): " + message;
2080
- };
2081
-
2082
- const showBulkDeleteErrors = (errs) => {
2083
- if (!errs || !errs.length) return;
2084
- const body = errs
2085
- .map((e) => formatDeleteError(e))
2086
- .join("\\n-----\\n");
2087
- alert(body);
2088
- };
2089
-
2090
- const removeRowsByKeys = (keysToRemove) => {
2091
- if (!keysToRemove || !keysToRemove.size) return;
2092
- document.querySelectorAll('.entity-row').forEach((row) => {
2093
- if (keysToRemove.has(row.dataset.entityKey)) row.remove();
2094
- });
2095
- };
2096
-
2097
- const refreshExtendedEntitiesAfterDelete = async () => {
2098
- if (typeof isExtendedExpanded !== 'undefined' && !isExtendedExpanded) return;
2099
- if (typeof loadExtendedEntities !== 'function' || typeof renderExtendedEntityRows !== 'function') return;
2100
- const tbody = document.querySelector('#entities-list tbody');
2101
- if (!tbody) return;
2102
- const shouldLoadAll = typeof window.isModulesFilterExclusive === 'function'
2103
- ? window.isModulesFilterExclusive()
2104
- : false;
2105
- try {
2106
- const extendedEntities = await loadExtendedEntities(shouldLoadAll);
2107
- window.extendedEntities = extendedEntities;
2108
- renderExtendedEntityRows(extendedEntities, tbody);
2109
- } catch (err) {
2110
- console.error('Failed to refresh extended entities after delete:', err);
2111
- }
2112
- };
2113
-
2114
- if (bulkDeleteBtn) {
2115
- bulkDeleteBtn.addEventListener('click', async () => {
2116
- const items = collectSelectionItems();
2117
- if (!items.length) return;
2118
- const template = TXT_DELETE_SELECTED_CONFIRM || TXT_DELETE_SELECTED_FALLBACK;
2119
- const msg = template.includes('%s')
2120
- ? template.replace('%s', items.length)
2121
- : template;
2122
- if (!window.confirm(msg)) return;
2123
- bulkDeleteBtn.disabled = true;
2124
- try {
2125
- const res = await fetch('/entities/bulk-delete', {
2126
- method: 'POST',
2127
- headers: {
2128
- 'Content-Type': 'application/json',
2129
- 'CSRF-Token': window._sc_globalCsrf || '',
2130
- },
2131
- body: JSON.stringify({ items }),
2132
- });
2133
- if (!res.ok) throw new Error(await res.text());
2134
- const payload = await res.json();
2135
- const keysToRemove = new Set(
2136
- (payload.deletedKeys && payload.deletedKeys.length
2137
- ? payload.deletedKeys
2138
- : items.map((i) => i.key))
2139
- );
2140
- removeRowsByKeys(keysToRemove);
2141
- if (payload.errors && payload.errors.length) {
2142
- console.error('Bulk delete errors', payload.errors);
2143
- showBulkDeleteErrors(payload.errors);
2144
- }
2145
- clearSelection();
2146
- await refreshExtendedEntitiesAfterDelete();
2147
- filterEntities();
2148
- } catch (e) {
2149
- console.error(e);
2150
- alert(TXT_DELETE_FAILED || 'Failed to delete selected items');
2151
- }
2152
- bulkDeleteBtn.disabled = false;
2153
- });
2154
- }
2155
-
2156
- if (entitiesTbody) {
2157
- entitiesTbody.addEventListener('click', (e) => {
2158
- const row = e.target.closest('.entity-row');
2159
- if (!row) return;
2160
- if (e.target.closest('a, button, input, select, textarea, label'))
2161
- return;
2162
- if (!isRowSelectable(row)) {
2163
- lastSelectedIndex = null;
2164
- return;
2165
- }
2166
- const visibleRows = getSelectableVisibleRows();
2167
- const index = visibleRows.indexOf(row);
2168
- const key = row.dataset.entityKey;
2169
- if (!key) return;
2170
- const isShift = e.shiftKey;
2171
- const isMeta = e.metaKey || e.ctrlKey;
2172
-
2173
- if (isShift && lastSelectedIndex !== null && visibleRows[lastSelectedIndex]) {
2174
- selectedKeys.clear();
2175
- const start = Math.min(lastSelectedIndex, index);
2176
- const end = Math.max(lastSelectedIndex, index);
2177
- for (let i = start; i <= end; i++) {
2178
- const rangeKey = visibleRows[i].dataset.entityKey;
2179
- if (rangeKey) selectedKeys.add(rangeKey);
2180
- }
2181
- } else if (isMeta) {
2182
- if (selectedKeys.has(key)) {
2183
- selectedKeys.delete(key);
2184
- } else {
2185
- selectedKeys.add(key);
2186
- }
2187
- lastSelectedIndex = index;
2188
- } else {
2189
- const onlyThisSelected = selectedKeys.size === 1 && selectedKeys.has(key);
2190
- selectedKeys.clear();
2191
- if (!onlyThisSelected) {
2192
- selectedKeys.add(key);
2193
- lastSelectedIndex = index;
2194
- } else {
2195
- lastSelectedIndex = null;
2196
- }
2197
- }
2198
- updateSelectionUI();
2199
- });
2200
- }
2201
-
2202
- // Init from URL and run first filter
2203
- const { shouldExpandExtended } = initFromUrl();
2204
- if (shouldExpandExtended) {
2205
- toggleEntityExpanded(true);
2206
- } else {
2207
- filterEntities();
2208
- }
2209
- // Focus search on load
2210
- searchInput.focus();
2211
- updateSelectionUI();
2212
- setTimeout(updateLegacyButton,200);
2213
- `;
2214
-
2215
1307
  const styles = `
2216
1308
  <style>
2217
1309
  /* Temporary fallback selection bg color */
@@ -2241,6 +1333,26 @@ router.get(
2241
1333
  #entity-less-btn:not(.d-none) {
2242
1334
  max-width: 80px;
2243
1335
  }
1336
+ .entity-section-header-row td {
1337
+ padding: 3px 8px;
1338
+ font-size: 0.7rem;
1339
+ font-weight: 600;
1340
+ text-transform: uppercase;
1341
+ letter-spacing: 0.06em;
1342
+ color: var(--bs-secondary-color, #6c757d);
1343
+ background: var(--bs-secondary-bg, #f8f9fa);
1344
+ border-bottom: 1px solid var(--bs-border-color, #dee2e6);
1345
+ user-select: none;
1346
+ }
1347
+ .entity-row-recent td { opacity: 0.88; }
1348
+ @keyframes entity-row-flash {
1349
+ 0% { background-color: var(--bs-warning-bg-subtle, #fff3cd); }
1350
+ 100% { background-color: var(--bs-table-bg, transparent); }
1351
+ }
1352
+ #entities-list .entity-row-flash > td,
1353
+ #entities-list .entity-row-flash > th {
1354
+ animation: entity-row-flash 2.5s ease-out;
1355
+ }
2244
1356
  </style>
2245
1357
  `;
2246
1358
 
@@ -2267,8 +1379,8 @@ router.get(
2267
1379
  noResultsMessage
2268
1380
  )
2269
1381
  ),
2270
- // clientScript,
2271
- script(/*js*/ `
1382
+ script(
1383
+ domReady(/*js*/ `
2272
1384
  window.ENTITY_ROLES = ${JSON.stringify(roles)};
2273
1385
  window.TXT_DISABLED = ${JSON.stringify(req.__("Disabled"))};
2274
1386
  window.TXT_CONFIGURABLE = ${JSON.stringify(req.__("Configurable"))};
@@ -2280,311 +1392,20 @@ router.get(
2280
1392
  window.TXT_INFO = ${JSON.stringify(req.__("Info"))};
2281
1393
  window.TXT_AUTH = ${JSON.stringify(req.__("Authentication"))};
2282
1394
  window.TXT_MOBILE = ${JSON.stringify(req.__("Mobile"))};
2283
- window.ENTITY_DEEP_SEARCH = ${JSON.stringify(deepSearchIndex)};
2284
-
2285
- document.querySelector("#entities-list tbody").style.opacity = "1";
2286
-
2287
- const EXTENDED_ENTITY_TYPES = ["module","user"];
2288
- window.ENTITY_EXTENDED_TYPES = EXTENDED_ENTITY_TYPES;
2289
- let isExtendedExpanded = false;
2290
- let hasLoadedAllModules = false;
2291
- let isLoadingAllModules = false;
2292
- const clearExtendedTypeFilters = () => {
2293
- if (typeof activeFilters === 'undefined') return;
2294
- EXTENDED_ENTITY_TYPES.forEach((type) => {
2295
- if (activeFilters.has(type)) {
2296
- activeFilters.delete(type);
2297
- const btn = document.querySelector('.entity-filter-btn[data-entity-type="' + type + '"]');
2298
- if (btn) {
2299
- btn.classList.remove('btn-primary');
2300
- btn.classList.add('btn-outline-primary');
2301
- }
2302
- }
2303
- });
2304
- };
2305
- // Fetch extended entities via AJAX
2306
- const loadExtendedEntities = async (includeAllModules = false) => {
2307
- try {
2308
- const query = includeAllModules ? '?include_all_modules=1' : '';
2309
- const res = await fetch('/entities/extended' + query);
2310
- const data = await res.json();
2311
- return data.entities || [];
2312
- } catch (e) {
2313
- console.error('Failed to load extended entities:', e);
2314
- return [];
2315
- }
2316
- };
2317
-
2318
- const renderExtendedEntityRows = (extendedEntities, tbody) => {
2319
- document
2320
- .querySelectorAll('[data-is-extended]')
2321
- .forEach((row) => row.remove());
2322
- extendedEntities.forEach((entity) => {
2323
- const row = createExtendedEntityRow(entity);
2324
- tbody.appendChild(row);
2325
- });
2326
- if (typeof updateSelectionUI === 'function') updateSelectionUI();
2327
- };
2328
-
2329
- const ensureAllModulesLoaded = async () => {
2330
- if (hasLoadedAllModules || isLoadingAllModules) return;
2331
- if (!isExtendedExpanded) return;
2332
- isLoadingAllModules = true;
2333
- let updated = false;
2334
- try {
2335
- const extendedEntities = await loadExtendedEntities(true);
2336
- window.extendedEntities = extendedEntities;
2337
- const tbody = document.querySelector('#entities-list tbody');
2338
- renderExtendedEntityRows(extendedEntities, tbody);
2339
- hasLoadedAllModules = true;
2340
- updated = true;
2341
- } catch (e) {
2342
- console.error('Failed to load all modules:', e);
2343
- } finally {
2344
- isLoadingAllModules = false;
2345
- if (updated && typeof filterEntities === 'function') filterEntities();
2346
- }
2347
- };
2348
-
2349
- // Toggle expanded state
2350
- window.toggleEntityExpanded = async (expand) => {
2351
- const moreBtn = document.getElementById('entity-more-btn');
2352
- const lessBtn = document.getElementById('entity-less-btn');
2353
- const extendedButtons = document.querySelectorAll('.entity-extended-btn');
2354
- const tbody = document.querySelector('#entities-list tbody');
2355
-
2356
- if (expand) {
2357
- if (isExtendedExpanded) return;
2358
- extendedButtons.forEach(btn => btn.classList.remove('d-none'));
2359
- moreBtn.classList.add('d-none');
2360
- lessBtn.classList.remove('d-none');
2361
- isExtendedExpanded = true;
2362
- const shouldLoadAll = typeof window.isModulesFilterExclusive === 'function'
2363
- ? window.isModulesFilterExclusive()
2364
- : false;
2365
- // Load extended entities
2366
- const extendedEntities = await loadExtendedEntities(shouldLoadAll);
2367
- window.extendedEntities = extendedEntities;
2368
- renderExtendedEntityRows(extendedEntities, tbody);
2369
- hasLoadedAllModules = shouldLoadAll;
2370
- filterEntities();
2371
- } else {
2372
- if (!isExtendedExpanded) return;
2373
- extendedButtons.forEach(btn => btn.classList.add('d-none'));
2374
- moreBtn.classList.remove('d-none');
2375
- lessBtn.classList.add('d-none');
2376
- isExtendedExpanded = false;
2377
- hasLoadedAllModules = false;
2378
- isLoadingAllModules = false;
2379
- window.extendedEntities = [];
2380
- renderExtendedEntityRows([], tbody);
2381
- clearExtendedTypeFilters();
2382
- // Update filter
2383
- filterEntities();
2384
- }
2385
- };
2386
-
2387
- // Helper to create entity row for extended entities
2388
- const createExtendedEntityRow = (entity) => {
2389
- const tr = document.createElement('tr');
2390
- tr.className = 'entity-row';
2391
- tr.dataset.entityType = entity.type;
2392
- tr.dataset.entityName = entity.name.toLowerCase();
2393
- if (entity.id) {
2394
- tr.dataset.entityId = entity.id;
2395
- } else {
2396
- tr.dataset.entityId = '';
2397
- }
2398
- tr.dataset.entityLabel = entity.name;
2399
- const key = entity.type + ':' + (entity.type === 'module' ? entity.name : entity.id);
2400
- tr.dataset.entityKey = key;
2401
- let searchable = ((entity.name || '').toLowerCase() + ' ' + entity.type).trim();
2402
- if (entity.metadata) {
2403
- Object.keys(entity.metadata).forEach((key) => {
2404
- const val = entity.metadata[key];
2405
- const shouldSkipDescription =
2406
- entity.type === 'module' && key === 'description';
2407
- const shouldSkipForSearchable =
2408
- entity.type === 'user' && key === 'username';
2409
- if (!shouldSkipDescription && !shouldSkipForSearchable && val && typeof val === 'string') {
2410
- searchable += ' ' + val.toLowerCase();
2411
- }
2412
- });
2413
- }
2414
- tr.dataset.tags = '';
2415
- tr.dataset.isExtended = 'true';
2416
- tr.dataset.installed =
2417
- entity.metadata && entity.metadata.installed === false
2418
- ? 'false'
2419
- : 'true';
2420
- tr.dataset.moduleKind = entity.metadata && entity.metadata.type ? entity.metadata.type : '';
2421
-
2422
- if (!isRowSelectable(tr)) {
2423
- tr.classList.add('entity-row-selection-disabled');
2424
- tr.setAttribute('aria-disabled', 'true');
2425
- }
2426
-
2427
- // Type badge
2428
- const badges = {
2429
- module: { class: "secondary", icon: "cube", label: "Module" },
2430
- user: { class: "dark", icon: "user", label: "User" },
2431
- };
2432
- const badge = badges[entity.type];
2433
- const typeBadge = document.createElement('td');
2434
- typeBadge.innerHTML = '<span class="badge bg-' + badge.class + ' me-2"><i class="fas fa-' + badge.icon + ' me-1"></i>' + badge.label + '</span>';
2435
- tr.appendChild(typeBadge);
2436
-
2437
- const hasConfig = entity.metadata && entity.metadata.hasConfig;
2438
- const isInstalled = entity.metadata && entity.metadata.installed;
2439
-
2440
- // Name
2441
- const nameTd = document.createElement('td');
2442
- const isStaticModule = entity.type === 'module' && !hasConfig;
2443
- const nameLink = document.createElement(isStaticModule ? 'span' : 'a');
2444
- if (!isStaticModule) {
2445
- const baseHref = entity.editLink || '#';
2446
- const updatedHref = toRelativeHrefWithOnDone(baseHref);
2447
- nameLink.setAttribute('href', updatedHref || baseHref);
2448
- }
2449
- nameLink.className = 'fw-bold';
2450
- nameLink.textContent = entity.name;
2451
- nameTd.appendChild(nameLink);
2452
- tr.appendChild(nameTd);
2453
-
2454
- // Run cell (info link for modules)
2455
- const runTd = document.createElement('td');
2456
- if (
2457
- entity.type === 'module' &&
2458
- entity.metadata &&
2459
- entity.metadata.type !== 'pack' &&
2460
- entity.viewLink &&
2461
- isInstalled
2462
- ) {
2463
- const infoLink = document.createElement('a');
2464
- infoLink.className = 'link-primary text-decoration-none';
2465
- infoLink.innerHTML =
2466
- // '<i class="fas fa-info-circle me-1"></i>' +
2467
- (window.TXT_INFO || 'Info');
2468
- const updatedInfoHref = toRelativeHrefWithOnDone(entity.viewLink);
2469
- infoLink.setAttribute('href', updatedInfoHref || entity.viewLink);
2470
- runTd.appendChild(infoLink);
2471
- }
2472
- tr.appendChild(runTd);
2473
-
2474
- // Details cell
2475
- const detailsTd = document.createElement('td');
2476
- let detailsHtml = '';
2477
- if (entity.type === 'user') {
2478
- const disabled = entity.metadata && entity.metadata.disabled;
2479
- const roleId = entity.metadata && entity.metadata.role_id;
2480
- if (Array.isArray(window.ENTITY_ROLES)) {
2481
- const role = window.ENTITY_ROLES.find(function (r) {
2482
- return String(r.id) === String(roleId);
2483
- });
2484
- if (role && role.role) {
2485
- detailsHtml += '<span class="text-muted small me-2">' + role.role + '</span>';
2486
- }
2487
- }
2488
- if (disabled) {
2489
- detailsHtml += '<span class="badge bg-danger me-1">' + (window.TXT_DISABLED || 'Disabled') + '</span>';
2490
- searchable += ' disabled';
2491
- }
2492
- } else if (entity.type === 'module') {
2493
- const version = entity.metadata && entity.metadata.version;
2494
- const hasTheme = entity.metadata && entity.metadata.has_theme;
2495
- const hasAuth = entity.metadata && entity.metadata.has_auth;
2496
- const isReadyForMobile = entity.metadata && entity.metadata.ready_for_mobile;
2497
- const isLocal = entity.metadata && entity.metadata.local;
2498
- const isPack = entity.metadata && entity.metadata.type === 'pack';
2499
- if (version) {
2500
- detailsHtml += '<span class="text-muted small me-2">v' + version + '</span>';
2501
- }
2502
- if (isPack) {
2503
- detailsHtml += '<span class="badge bg-secondary me-1">' + (window.TXT_PACK || 'Pack') + '</span>';
2504
- }
2505
- if (hasTheme) {
2506
- detailsHtml += '<span class="badge bg-secondary me-1">' + (window.TXT_THEME || 'Theme') + '</span>';
2507
- searchable += ' theme';
2508
- }
2509
- if (isLocal) {
2510
- detailsHtml += '<span class="badge bg-secondary me-1">' + (window.TXT_LOCAL || 'Local') + '</span>';
2511
- searchable += ' local';
2512
- }
2513
- if (isInstalled) {
2514
- detailsHtml += '<span class="badge bg-secondary me-1">' + (window.TXT_INSTALLED || 'Installed') + '</span>';
2515
- searchable += ' installed';
2516
- }
2517
- if (hasAuth) {
2518
- detailsHtml += '<span class="badge bg-secondary me-1">' + (window.TXT_AUTH || 'Authentication') + '</span>';
2519
- searchable += ' authentication auth';
2520
- }
2521
- if (isReadyForMobile) {
2522
- detailsHtml += '<span class="badge bg-secondary me-1">' + (window.TXT_MOBILE || 'Mobile') + '</span>';
2523
- searchable += ' mobile';
2524
- }
2525
- }
2526
- if (detailsHtml) detailsTd.innerHTML = detailsHtml;
2527
- tr.appendChild(detailsTd);
2528
-
2529
- // Access cell (empty for extended entities)
2530
- const accessTd = document.createElement('td');
2531
- tr.appendChild(accessTd);
2532
-
2533
- // Tags cell
2534
- const tagsTd = document.createElement('td');
2535
- tr.appendChild(tagsTd);
2536
-
2537
- // Actions cell (empty for extended entities)
2538
- const actionsTd = document.createElement('td');
2539
- if (entity.actionsHtml) {
2540
- actionsTd.innerHTML = entity.actionsHtml;
2541
- actionsTd
2542
- .querySelectorAll('a')
2543
- .forEach((link) => {
2544
- const href = link.getAttribute('href');
2545
- const updated = toRelativeHrefWithOnDone(href);
2546
- if (updated) link.setAttribute('href', updated);
2547
- });
2548
- actionsTd
2549
- .querySelectorAll('form')
2550
- .forEach((form) => {
2551
- const action = form.getAttribute('action');
2552
- const updated = toRelativeHrefWithOnDone(action);
2553
- if (updated) form.setAttribute('action', updated);
2554
- if (entity.type === 'user') ensureOnDoneHiddenInput(form);
2555
- });
2556
- const dropdownToggle = actionsTd.querySelector('[data-bs-toggle="dropdown"]');
2557
- if (dropdownToggle && window.bootstrap && window.bootstrap.Dropdown) {
2558
- window.bootstrap.Dropdown.getOrCreateInstance(dropdownToggle);
2559
- }
2560
- }
2561
- tr.appendChild(actionsTd);
2562
-
2563
- tr.dataset.searchable = searchable.trim();
2564
- let deepSearchable = (entity.deepSearchable || searchable).trim();
2565
- if (entity.type === 'module') {
2566
- const description =
2567
- entity.metadata && typeof entity.metadata.description === 'string'
2568
- ? entity.metadata.description.toLowerCase()
2569
- : '';
2570
- if (description && !deepSearchable.includes(description)) {
2571
- deepSearchable = (deepSearchable + ' ' + description).trim();
2572
- }
2573
- } else if (entity.type === 'user' && entity.metadata && typeof entity.metadata.username === 'string') {
2574
- const usernameLower = entity.metadata.username.toLowerCase();
2575
- if (!deepSearchable.includes(usernameLower)) {
2576
- deepSearchable = (deepSearchable + ' ' + usernameLower).trim();
2577
- }
2578
- }
2579
- tr.dataset.deepSearchable = deepSearchable;
2580
- if (window.ENTITY_DEEP_SEARCH) {
2581
- window.ENTITY_DEEP_SEARCH[key] = tr.dataset.deepSearchable;
2582
- }
2583
- return tr;
2584
- };
2585
-
2586
- ${clientScript}
2587
- `),
1395
+ window.ENTITY_DEEP_SEARCH = null;
1396
+
1397
+ document.getElementById("entities-main-body").style.opacity = "1";
1398
+ entitiesListInit({
1399
+ LEGACY_LINK_META: ${JSON.stringify(legacyLinkMeta)},
1400
+ TAGS_BY_ID: ${JSON.stringify(Object.fromEntries(tags.map((t) => [t.id, t.name])))},
1401
+ ROLES_BY_ID: ${JSON.stringify(Object.fromEntries(roles.map((r) => [r.id, r.role])))},
1402
+ TXT_SELECTED: ${JSON.stringify(req.__("selected"))},
1403
+ TXT_DELETE_SELECTED_CONFIRM: ${JSON.stringify(req.__("Delete %s selected items?"))},
1404
+ TXT_DELETE_SELECTED_FALLBACK: ${JSON.stringify(req.__("Delete selected items?"))},
1405
+ TXT_DELETE_FAILED: ${JSON.stringify(req.__("Failed to delete selected items"))},
1406
+ });
1407
+ `)
1408
+ ),
2588
1409
  ],
2589
1410
  footer: div(
2590
1411
  {
@@ -2850,7 +1671,6 @@ router.post(
2850
1671
  const view =
2851
1672
  (id !== null ? View.findOne({ id }) : null) ||
2852
1673
  View.findOne({ name: item?.name });
2853
- console.log({ view });
2854
1674
  if (!view) throw new Error("View not found");
2855
1675
  if (view.id && typeof view.id !== "undefined") {
2856
1676
  await View.update({ min_role: roleIdNum }, id);