@saltcorn/server 1.6.0-beta.4 → 1.6.0-beta.6

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 (1071) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/app.js +10 -4
  3. package/auth/routes.js +108 -60
  4. package/docs/assets/hierarchy.js +1 -1
  5. package/docs/assets/navigation.js +1 -1
  6. package/docs/assets/search.js +1 -1
  7. package/docs/classes/_saltcorn_admin-models.models_snapshot.Snapshot.html +2 -2
  8. package/docs/classes/_saltcorn_common-code.relations_relation.Relation.html +3 -3
  9. package/docs/classes/_saltcorn_common-code.relations_relations_finder.RelationsFinder.html +5 -5
  10. package/docs/classes/_saltcorn_data.diagram_cy_raster.CytoscapeRaster.html +4 -4
  11. package/docs/classes/_saltcorn_data.diagram_nodes_dummy_node.DummyNode.html +4 -4
  12. package/docs/classes/_saltcorn_data.diagram_nodes_node.Node.html +4 -4
  13. package/docs/classes/_saltcorn_data.diagram_nodes_page_node.PageNode.html +4 -4
  14. package/docs/classes/_saltcorn_data.diagram_nodes_table_node.TableNode.html +4 -4
  15. package/docs/classes/_saltcorn_data.diagram_nodes_trigger_node.TriggerNode.html +4 -4
  16. package/docs/classes/_saltcorn_data.diagram_nodes_view_node.ViewNode.html +4 -4
  17. package/docs/classes/_saltcorn_data.mobile-mocks_node_async_hooks.AsyncLocalStorage.html +2 -2
  18. package/docs/classes/_saltcorn_data.models_crash.Crash.html +2 -2
  19. package/docs/classes/_saltcorn_data.models_eventlog.EventLog.html +2 -2
  20. package/docs/classes/_saltcorn_data.models_field.Field.html +9 -9
  21. package/docs/classes/_saltcorn_data.models_fieldrepeat.FieldRepeat.html +2 -2
  22. package/docs/classes/_saltcorn_data.models_file.File.html +21 -21
  23. package/docs/classes/_saltcorn_data.models_form.Form.html +2 -2
  24. package/docs/classes/_saltcorn_data.models_internal_mail_queue.MailQueue.html +4 -4
  25. package/docs/classes/_saltcorn_data.models_internal_push_message_helper.PushMessageHelper.html +7 -7
  26. package/docs/classes/_saltcorn_data.models_library.Library.html +2 -2
  27. package/docs/classes/_saltcorn_data.models_model.Model.html +2 -2
  28. package/docs/classes/_saltcorn_data.models_model_instance.ModelInstance.html +2 -2
  29. package/docs/classes/_saltcorn_data.models_notification.Notification.html +2 -2
  30. package/docs/classes/_saltcorn_data.models_page.Page.html +12 -11
  31. package/docs/classes/_saltcorn_data.models_page_group.PageGroup.html +16 -16
  32. package/docs/classes/_saltcorn_data.models_page_group_member.PageGroupMember.html +8 -8
  33. package/docs/classes/_saltcorn_data.models_plugin.Plugin.html +44 -10
  34. package/docs/classes/_saltcorn_data.models_role.Role.html +2 -2
  35. package/docs/classes/_saltcorn_data.models_table.Table.html +67 -65
  36. package/docs/classes/_saltcorn_data.models_table_constraints.TableConstraint.html +2 -2
  37. package/docs/classes/_saltcorn_data.models_tag.Tag.html +2 -2
  38. package/docs/classes/_saltcorn_data.models_tag_entry.TagEntry.html +2 -2
  39. package/docs/classes/_saltcorn_data.models_trigger.Trigger.html +21 -20
  40. package/docs/classes/_saltcorn_data.models_user.User.html +32 -32
  41. package/docs/classes/_saltcorn_data.models_view.View.html +16 -15
  42. package/docs/classes/_saltcorn_data.models_workflow.Workflow.html +2 -2
  43. package/docs/classes/_saltcorn_data.models_workflow_run.WorkflowRun.html +2 -2
  44. package/docs/classes/_saltcorn_data.models_workflow_step.WorkflowStep.html +2 -2
  45. package/docs/classes/_saltcorn_data.models_workflow_trace.MetaData.html +2 -2
  46. package/docs/classes/_saltcorn_data.models_workflow_trace.WorkflowTrace.html +2 -2
  47. package/docs/classes/_saltcorn_mobile-builder.mobile-builder.MobileBuilder.html +2 -3
  48. package/docs/classes/_saltcorn_mobile-builder.utils_capacitor-helper.CapacitorHelper.html +2 -2
  49. package/docs/enums/_saltcorn_common-code.relations_relation_types.RelationType.html +2 -2
  50. package/docs/enums/_saltcorn_common-code.relations_relation_types.ViewDisplayType.html +2 -2
  51. package/docs/functions/_saltcorn_admin-models.models_config-check.runConfigurationCheck.html +1 -1
  52. package/docs/functions/_saltcorn_common-code.relations_relation_helpers.buildRelationPath.html +1 -1
  53. package/docs/functions/_saltcorn_common-code.relations_relation_helpers.buildTableCaches.html +1 -1
  54. package/docs/functions/_saltcorn_common-code.relations_relation_helpers.parseLegacyRelation.html +1 -1
  55. package/docs/functions/_saltcorn_common-code.relations_relation_helpers.parseRelationPath.html +1 -1
  56. package/docs/functions/_saltcorn_common-code.tests_test_data.fixturesData.html +1 -1
  57. package/docs/functions/_saltcorn_common-code.tests_test_data.withAnotherUserField.html +1 -1
  58. package/docs/functions/_saltcorn_common-code.tests_test_data.withKeyFromLayerThree.html +1 -1
  59. package/docs/functions/_saltcorn_common-code.tests_test_data.withKeyFromLayerTwo.html +1 -1
  60. package/docs/functions/_saltcorn_common-code.tests_test_data.withMultipleInbounds.html +1 -1
  61. package/docs/functions/_saltcorn_common-code.tests_test_data.withSecondTopicField.html +1 -1
  62. package/docs/functions/_saltcorn_common-code.tests_test_data.withSimplePostTopicrelation.html +1 -1
  63. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.action_link.html +1 -1
  64. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.action_url.html +1 -1
  65. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.fill_presets.html +1 -1
  66. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.getForm.html +1 -1
  67. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.get_view_link_query.html +1 -1
  68. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.get_viewable_fields.html +1 -1
  69. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.get_viewable_fields_from_layout.html +1 -1
  70. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.make_link.html +1 -1
  71. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.objToQueryString.html +1 -1
  72. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.parse_view_select.html +1 -1
  73. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.setDateLocales.html +1 -1
  74. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.splitUniques.html +1 -1
  75. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.standardBlockDispatch.html +1 -1
  76. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.standardLayoutRowVisitor.html +1 -1
  77. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.transformForm.html +1 -1
  78. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.updateViewSelect.html +1 -1
  79. package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.view_linker.html +1 -1
  80. package/docs/functions/_saltcorn_data.db_connect_mobile.getConnectObject.html +1 -1
  81. package/docs/functions/_saltcorn_data.db_reset_schema.reset.html +1 -1
  82. package/docs/functions/_saltcorn_data.diagram_cy_generate_utils.generateCyCode.html +1 -1
  83. package/docs/functions/_saltcorn_data.diagram_cy_generate_utils.genereateCyCfg.html +1 -1
  84. package/docs/functions/_saltcorn_data.diagram_node_extract_utils.buildObjectTrees.html +1 -1
  85. package/docs/functions/_saltcorn_data.diagram_node_extract_utils.extractFromColumns.html +1 -1
  86. package/docs/functions/_saltcorn_data.diagram_node_extract_utils.extractFromLayout.html +1 -1
  87. package/docs/functions/_saltcorn_data.diagram_node_extract_utils.extractViewToCreate.html +1 -1
  88. package/docs/functions/_saltcorn_data.migrate.create_blank_migration.html +1 -1
  89. package/docs/functions/_saltcorn_data.migrate.getMigrationsInDB.html +1 -1
  90. package/docs/functions/_saltcorn_data.migrate.migrate.html +1 -1
  91. package/docs/functions/_saltcorn_data.migrations_202102091312.js.html +1 -1
  92. package/docs/functions/_saltcorn_data.migrations_202210051058.js.html +1 -1
  93. package/docs/functions/_saltcorn_data.migrations_202210101540.js.html +1 -1
  94. package/docs/functions/_saltcorn_data.migrations_202304281224.js.html +1 -1
  95. package/docs/functions/_saltcorn_data.migrations_202307211459.js.html +1 -1
  96. package/docs/functions/_saltcorn_data.migrations_202502131103.js.html +1 -1
  97. package/docs/functions/_saltcorn_data.migrations_202508011455.js.html +1 -1
  98. package/docs/functions/_saltcorn_data.migrations_202510152058.js.html +1 -1
  99. package/docs/functions/_saltcorn_data.migrations_202603101553.sql_pg.html +1 -1
  100. package/docs/functions/_saltcorn_data.migrations_202604111200.js.html +1 -0
  101. package/docs/functions/_saltcorn_data.migrations_202604141200.js.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.migrations_202604141200.html +1 -0
  359. package/docs/modules/_saltcorn_data.mobile-mocks_npm_npm-registry-fetch.html +1 -0
  360. package/docs/modules/_saltcorn_data.mobile-mocks_saltcorn_admin-models-tenant.html +1 -0
  361. package/docs/modules/_saltcorn_data.mobile-mocks_saltcorn_plugins-loader-plugin-installer.html +1 -0
  362. package/docs/modules/_saltcorn_data.mobile-mocks_saltcorn_plugins-loader-stable-versioning.html +1 -0
  363. package/docs/types/_saltcorn_data.diagram_node_extract_utils.ExtractOpts.html +2 -2
  364. package/docs/types/_saltcorn_data.diagram_node_extract_utils.ExtractResult.html +2 -2
  365. package/docs/types/_saltcorn_data.diagram_nodes_node.NodeType.html +1 -1
  366. package/docs/types/_saltcorn_data.models_config.ConfigTypes.html +1 -1
  367. package/docs/types/_saltcorn_data.models_config.SingleConfig.html +1 -1
  368. package/docs/types/_saltcorn_data.models_eventlog.EventLogCfg.html +2 -2
  369. package/docs/types/_saltcorn_data.models_file.FileCfg.html +2 -2
  370. package/docs/types/_saltcorn_data.models_form.AdditionalButton.html +1 -1
  371. package/docs/types/_saltcorn_data.models_form.FormCfg.html +2 -2
  372. package/docs/types/_saltcorn_data.models_internal_push_message_helper.MobileSubscription.html +2 -2
  373. package/docs/types/_saltcorn_data.models_internal_push_message_helper.WebPushSubscription.html +2 -2
  374. package/docs/types/_saltcorn_data.models_internal_s3_helpers.S3HeadResult.html +1 -1
  375. package/docs/types/_saltcorn_data.models_internal_s3_helpers.S3ListResult.html +2 -2
  376. package/docs/types/_saltcorn_data.models_page_group.ScreenInfoParams.html +2 -2
  377. package/docs/types/_saltcorn_data.models_table.ChildRelations.html +2 -2
  378. package/docs/types/_saltcorn_data.models_table.ParentRelations.html +2 -2
  379. package/docs/types/_saltcorn_data.models_table.RelationData.html +2 -2
  380. package/docs/types/_saltcorn_data.models_tag_entry.TagEntryCfg.html +1 -1
  381. package/docs/types/_saltcorn_data.models_view.FindViewsPred.html +1 -1
  382. package/docs/types/_saltcorn_db-common.dbtypes.AggregationOptions.html +2 -2
  383. package/docs/types/_saltcorn_db-common.dbtypes.CoordOpts.html +2 -2
  384. package/docs/types/_saltcorn_db-common.dbtypes.DatabaseClient.html +2 -2
  385. package/docs/types/_saltcorn_db-common.dbtypes.JoinField.html +2 -2
  386. package/docs/types/_saltcorn_db-common.dbtypes.JoinFields.html +1 -1
  387. package/docs/types/_saltcorn_db-common.dbtypes.JoinOptions.html +1 -1
  388. package/docs/types/_saltcorn_db-common.dbtypes.JsonPath.html +1 -1
  389. package/docs/types/_saltcorn_db-common.dbtypes.JsonPathElem.html +1 -1
  390. package/docs/types/_saltcorn_db-common.dbtypes.Operator.html +1 -1
  391. package/docs/types/_saltcorn_db-common.dbtypes.PartialSome.html +1 -1
  392. package/docs/types/_saltcorn_db-common.dbtypes.PrimaryKeyValue.html +1 -1
  393. package/docs/types/_saltcorn_db-common.dbtypes.Row.html +1 -1
  394. package/docs/types/_saltcorn_db-common.dbtypes.SelectOptions.html +2 -2
  395. package/docs/types/_saltcorn_db-common.dbtypes.StrongRow.html +1 -1
  396. package/docs/types/_saltcorn_db-common.dbtypes.SubselectOptions.html +2 -2
  397. package/docs/types/_saltcorn_db-common.dbtypes.Value.html +1 -1
  398. package/docs/types/_saltcorn_db-common.dbtypes.Where.html +2 -2
  399. package/docs/types/_saltcorn_db-common.sqlite-commons.SqlAndValues.html +2 -2
  400. package/docs/types/_saltcorn_db-common.types.DbExportsType.html +2 -2
  401. package/docs/types/_saltcorn_db-common.types.GenObj.html +1 -1
  402. package/docs/types/_saltcorn_markup.emergency_layout.WrapParams.html +2 -2
  403. package/docs/types/_saltcorn_markup.helpers.CheckBoxGroupOpts.html +2 -2
  404. package/docs/types/_saltcorn_markup.helpers.PaginationOpts.html +2 -2
  405. package/docs/types/_saltcorn_markup.helpers.RadioGroupOpts.html +2 -2
  406. package/docs/types/_saltcorn_markup.helpers.SearchBarOpts.html +2 -2
  407. package/docs/types/_saltcorn_markup.layout.RenderOpts-1.html +2 -2
  408. package/docs/types/_saltcorn_markup.layout.RenderOpts.html +2 -2
  409. package/docs/types/_saltcorn_markup.mjml-layout.RenderOpts.html +2 -2
  410. package/docs/types/_saltcorn_markup.table.HeadersParams.html +2 -2
  411. package/docs/types/_saltcorn_markup.table.OptsParams.html +2 -2
  412. package/docs/types/_saltcorn_markup.types.AttributeVal.html +1 -1
  413. package/docs/types/_saltcorn_markup.types.Attributes.html +2 -2
  414. package/docs/types/_saltcorn_markup.types.ClassVal.html +1 -1
  415. package/docs/types/_saltcorn_markup.types.Element.html +1 -1
  416. package/docs/types/_saltcorn_markup.types.Falsy.html +1 -1
  417. package/docs/types/_saltcorn_markup.types.StyleVal.html +1 -1
  418. package/docs/types/_saltcorn_markup.types.TagFunction.html +1 -1
  419. package/docs/types/_saltcorn_mobile-builder.mobile-builder.IosCfg.html +2 -2
  420. package/docs/types/_saltcorn_mobile-builder.utils_capacitor-helper.CapacitorCfg.html +2 -2
  421. package/docs/types/_saltcorn_types.base_types.Action.html +3 -3
  422. package/docs/types/_saltcorn_types.base_types.AuthenticationMethod.html +2 -2
  423. package/docs/types/_saltcorn_types.base_types.CalcJoinfield.html +2 -2
  424. package/docs/types/_saltcorn_types.base_types.CapacitorPlugin.html +2 -2
  425. package/docs/types/_saltcorn_types.base_types.CodePagePack.html +2 -2
  426. package/docs/types/_saltcorn_types.base_types.Column.html +2 -2
  427. package/docs/types/_saltcorn_types.base_types.ConnectObjType.html +2 -2
  428. package/docs/types/_saltcorn_types.base_types.ConnectedObjects.html +2 -2
  429. package/docs/types/_saltcorn_types.base_types.CopilotSkill.html +2 -2
  430. package/docs/types/_saltcorn_types.base_types.ErrorObj.html +2 -2
  431. package/docs/types/_saltcorn_types.base_types.FieldLike.html +1 -1
  432. package/docs/types/_saltcorn_types.base_types.FieldView.html +1 -1
  433. package/docs/types/_saltcorn_types.base_types.Header.html +2 -2
  434. package/docs/types/_saltcorn_types.base_types.JoinFieldOption.html +2 -2
  435. package/docs/types/_saltcorn_types.base_types.Layout.html +1 -1
  436. package/docs/types/_saltcorn_types.base_types.MenuItem.html +2 -2
  437. package/docs/types/_saltcorn_types.base_types.MobileConfig.html +2 -3
  438. package/docs/types/_saltcorn_types.base_types.ModelPattern.html +6 -6
  439. package/docs/types/_saltcorn_types.base_types.Pack.html +2 -2
  440. package/docs/types/_saltcorn_types.base_types.Plugin.html +1 -1
  441. package/docs/types/_saltcorn_types.base_types.PluginFunction.html +2 -2
  442. package/docs/types/_saltcorn_types.base_types.PluginLayout.html +2 -2
  443. package/docs/types/_saltcorn_types.base_types.PluginRoute.html +2 -2
  444. package/docs/types/_saltcorn_types.base_types.PluginSourceType.html +1 -1
  445. package/docs/types/_saltcorn_types.base_types.PluginType.html +2 -2
  446. package/docs/types/_saltcorn_types.base_types.PluginWrap.html +1 -1
  447. package/docs/types/_saltcorn_types.base_types.PluginWrapArg.html +2 -2
  448. package/docs/types/_saltcorn_types.base_types.RelationOption.html +2 -2
  449. package/docs/types/_saltcorn_types.base_types.Req.html +2 -2
  450. package/docs/types/_saltcorn_types.base_types.Res.html +2 -2
  451. package/docs/types/_saltcorn_types.base_types.ResultType.html +2 -2
  452. package/docs/types/_saltcorn_types.base_types.RouteAction.html +1 -1
  453. package/docs/types/_saltcorn_types.base_types.RunExtra.html +1 -1
  454. package/docs/types/_saltcorn_types.base_types.SlugStepType.html +2 -2
  455. package/docs/types/_saltcorn_types.base_types.StepResType.html +1 -1
  456. package/docs/types/_saltcorn_types.base_types.SubField.html +2 -2
  457. package/docs/types/_saltcorn_types.base_types.TableProvider.html +2 -2
  458. package/docs/types/_saltcorn_types.base_types.TableQuery.html +2 -2
  459. package/docs/types/_saltcorn_types.base_types.Tablely.html +1 -1
  460. package/docs/types/_saltcorn_types.base_types.ViewTemplate.html +2 -2
  461. package/docs/types/_saltcorn_types.common_types.ErrorMessage.html +2 -2
  462. package/docs/types/_saltcorn_types.common_types.GenObj.html +1 -1
  463. package/docs/types/_saltcorn_types.common_types.ReqRes.html +2 -2
  464. package/docs/types/_saltcorn_types.common_types.ResultMessage.html +1 -1
  465. package/docs/types/_saltcorn_types.common_types.SuccessMessage.html +2 -2
  466. package/docs/types/_saltcorn_types.common_types.Type.html +2 -2
  467. package/docs/types/_saltcorn_types.model-abstracts_abstract_event_log.EventLogPack.html +2 -2
  468. package/docs/types/_saltcorn_types.model-abstracts_abstract_field.FieldCfg.html +2 -2
  469. package/docs/types/_saltcorn_types.model-abstracts_abstract_field.InputType.html +1 -1
  470. package/docs/types/_saltcorn_types.model-abstracts_abstract_form.AdditionalButton.html +2 -2
  471. package/docs/types/_saltcorn_types.model-abstracts_abstract_library.LibraryCfg.html +2 -2
  472. package/docs/types/_saltcorn_types.model-abstracts_abstract_library.LibraryPack.html +1 -1
  473. package/docs/types/_saltcorn_types.model-abstracts_abstract_model.ModelCfg.html +2 -2
  474. package/docs/types/_saltcorn_types.model-abstracts_abstract_model.ModelPack.html +1 -1
  475. package/docs/types/_saltcorn_types.model-abstracts_abstract_model_instance.ModelInstanceCfg.html +2 -2
  476. package/docs/types/_saltcorn_types.model-abstracts_abstract_model_instance.ModelInstancePack.html +1 -1
  477. package/docs/types/_saltcorn_types.model-abstracts_abstract_page.PageCfg.html +3 -2
  478. package/docs/types/_saltcorn_types.model-abstracts_abstract_page.PagePack.html +1 -1
  479. package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group.PageGroupCfg.html +2 -2
  480. package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group.PageGroupPack.html +1 -1
  481. package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group_member.PageGroupMemberCfg.html +2 -2
  482. package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group_member.PageGroupMemberPack.html +1 -1
  483. package/docs/types/_saltcorn_types.model-abstracts_abstract_plugin.PluginCfg.html +2 -2
  484. package/docs/types/_saltcorn_types.model-abstracts_abstract_plugin.PluginPack.html +1 -1
  485. package/docs/types/_saltcorn_types.model-abstracts_abstract_role.RoleCfg.html +1 -1
  486. package/docs/types/_saltcorn_types.model-abstracts_abstract_role.RolePack.html +1 -1
  487. package/docs/types/_saltcorn_types.model-abstracts_abstract_table.TableCfg.html +3 -2
  488. package/docs/types/_saltcorn_types.model-abstracts_abstract_table.TablePack.html +1 -1
  489. package/docs/types/_saltcorn_types.model-abstracts_abstract_tag.TagPack.html +2 -2
  490. package/docs/types/_saltcorn_types.model-abstracts_abstract_tag_entry.TagEntryPack.html +2 -2
  491. package/docs/types/_saltcorn_types.model-abstracts_abstract_trigger.TriggerCfg.html +3 -2
  492. package/docs/types/_saltcorn_types.model-abstracts_abstract_trigger.TriggerPack.html +1 -1
  493. package/docs/types/_saltcorn_types.model-abstracts_abstract_view.ViewCfg.html +3 -2
  494. package/docs/types/_saltcorn_types.model-abstracts_abstract_view.ViewPack.html +1 -1
  495. package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow.ConfigWorkflowStep.html +1 -1
  496. package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow.RunResult.html +2 -2
  497. package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_run.WorkflowRunCfg.html +2 -2
  498. package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_step.WorkflowStepCfg.html +2 -2
  499. package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_step.WorkflowStepPack.html +1 -1
  500. package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_trace.WorkflowTraceCfg.html +2 -2
  501. package/docs/variables/_saltcorn_admin-models..backup.create_backup.html +1 -1
  502. package/docs/variables/_saltcorn_admin-models..backup.create_csv_from_rows.html +1 -1
  503. package/docs/variables/_saltcorn_admin-models..backup.restore.html +1 -1
  504. package/docs/variables/_saltcorn_admin-models..pack.add_to_menu.html +1 -1
  505. package/docs/variables/_saltcorn_admin-models..pack.can_install_pack.html +1 -1
  506. package/docs/variables/_saltcorn_admin-models..pack.fetch_available_packs.html +1 -1
  507. package/docs/variables/_saltcorn_admin-models..pack.fetch_pack_by_name.html +1 -1
  508. package/docs/variables/_saltcorn_admin-models..pack.install_pack.html +1 -1
  509. package/docs/variables/_saltcorn_admin-models..pack.library_pack.html +1 -1
  510. package/docs/variables/_saltcorn_admin-models..pack.model_instance_pack.html +1 -1
  511. package/docs/variables/_saltcorn_admin-models..pack.model_pack.html +1 -1
  512. package/docs/variables/_saltcorn_admin-models..pack.page_group_pack.html +1 -1
  513. package/docs/variables/_saltcorn_admin-models..pack.page_pack.html +1 -1
  514. package/docs/variables/_saltcorn_admin-models..pack.plugin_pack.html +1 -1
  515. package/docs/variables/_saltcorn_admin-models..pack.role_pack.html +1 -1
  516. package/docs/variables/_saltcorn_admin-models..pack.table_pack.html +1 -1
  517. package/docs/variables/_saltcorn_admin-models..pack.trigger_pack.html +1 -1
  518. package/docs/variables/_saltcorn_admin-models..pack.uninstall_pack.html +1 -1
  519. package/docs/variables/_saltcorn_admin-models..pack.view_pack.html +1 -1
  520. package/docs/variables/_saltcorn_admin-models..tenant.copy_tenant_template.html +1 -1
  521. package/docs/variables/_saltcorn_admin-models..tenant.create_tenant.html +1 -1
  522. package/docs/variables/_saltcorn_admin-models..tenant.deleteTenant.html +1 -1
  523. package/docs/variables/_saltcorn_admin-models..tenant.domain_sanitize.html +1 -1
  524. package/docs/variables/_saltcorn_admin-models..tenant.eachTenant.html +1 -1
  525. package/docs/variables/_saltcorn_admin-models..tenant.getAllTenantRows.html +1 -1
  526. package/docs/variables/_saltcorn_admin-models..tenant.getAllTenants.html +1 -1
  527. package/docs/variables/_saltcorn_admin-models..tenant.insertTenant.html +1 -1
  528. package/docs/variables/_saltcorn_admin-models..tenant.switchToTenant.html +1 -1
  529. package/docs/variables/_saltcorn_admin-models.models_backup.backup.html +1 -1
  530. package/docs/variables/_saltcorn_admin-models.pack.pack.html +1 -1
  531. package/docs/variables/_saltcorn_admin-models.tenant.tenant.html +1 -1
  532. package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedFive.html +1 -1
  533. package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedFour.html +1 -1
  534. package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedOne.html +1 -1
  535. package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedSix.html +1 -1
  536. package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedThree.html +1 -1
  537. package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedTwo.html +1 -1
  538. package/docs/variables/_saltcorn_data..migrations.html +1 -1
  539. package/docs/variables/_saltcorn_data..plugin_helper.run_action_column.html +1 -1
  540. package/docs/variables/_saltcorn_data..utils.NotAuthorized.html +1 -1
  541. package/docs/variables/_saltcorn_data..utils.isPushEnabled.html +1 -1
  542. package/docs/variables/_saltcorn_data..utils.sleep.html +1 -1
  543. package/docs/variables/_saltcorn_data.base-plugin_actions.actions.html +4 -4
  544. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.fieldviews.html +3 -3
  545. package/docs/variables/_saltcorn_data.base-plugin_fileview.fileviews.html +1 -1
  546. package/docs/variables/_saltcorn_data.base-plugin_index.index.html +6 -6
  547. package/docs/variables/_saltcorn_data.base-plugin_types.types.html +1 -1
  548. package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_edit.edit.html +1 -1
  549. package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_feed.feed.html +1 -1
  550. package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_filter.filter.html +1 -1
  551. package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_list.list.html +1 -1
  552. package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_listshowlist.listshowlist.html +1 -1
  553. package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_room.room-1.html +1 -1
  554. package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_room.room.html +1 -1
  555. package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_show.show.html +1 -1
  556. package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.edit_build_in_actions.html +1 -1
  557. package/docs/variables/_saltcorn_data.contract.contract.html +1 -1
  558. package/docs/variables/_saltcorn_data.db_connect.connect.html +1 -1
  559. package/docs/variables/_saltcorn_data.db_fa5-icons.fa5Icons.html +1 -1
  560. package/docs/variables/_saltcorn_data.db_fixtures.fixtures.html +1 -1
  561. package/docs/variables/_saltcorn_data.db_index.dbExports.html +1 -1
  562. package/docs/variables/_saltcorn_data.db_state.state.html +1 -1
  563. package/docs/variables/_saltcorn_data.migrations_202005141503.sql.html +1 -1
  564. package/docs/variables/_saltcorn_data.migrations_202005241712.sql.html +1 -1
  565. package/docs/variables/_saltcorn_data.migrations_202005251037.sql.html +1 -1
  566. package/docs/variables/_saltcorn_data.migrations_202005282134.sql.html +1 -1
  567. package/docs/variables/_saltcorn_data.migrations_202006022156.sql.html +1 -1
  568. package/docs/variables/_saltcorn_data.migrations_202006051507.sql.html +1 -1
  569. package/docs/variables/_saltcorn_data.migrations_202006240906.sql.html +1 -1
  570. package/docs/variables/_saltcorn_data.migrations_202007091707.sql.html +1 -1
  571. package/docs/variables/_saltcorn_data.migrations_202007202144.sql.html +1 -1
  572. package/docs/variables/_saltcorn_data.migrations_202008031500.sql.html +1 -1
  573. package/docs/variables/_saltcorn_data.migrations_202008051415.sql.html +1 -1
  574. package/docs/variables/_saltcorn_data.migrations_202008121149.sql_pg.html +1 -1
  575. package/docs/variables/_saltcorn_data.migrations_202008121149.sql_sqlite.html +1 -1
  576. package/docs/variables/_saltcorn_data.migrations_202009112140.sql_pg.html +1 -1
  577. package/docs/variables/_saltcorn_data.migrations_202009112140.sql_sqlite.html +1 -1
  578. package/docs/variables/_saltcorn_data.migrations_202009181655.sql.html +1 -1
  579. package/docs/variables/_saltcorn_data.migrations_202009221105.sql.html +1 -1
  580. package/docs/variables/_saltcorn_data.migrations_202009231331.sql.html +1 -1
  581. package/docs/variables/_saltcorn_data.migrations_202009301531.sql.html +1 -1
  582. package/docs/variables/_saltcorn_data.migrations_202010231444.sql.html +1 -1
  583. package/docs/variables/_saltcorn_data.migrations_202010251412.sql.html +1 -1
  584. package/docs/variables/_saltcorn_data.migrations_202011021749.sql.html +1 -1
  585. package/docs/variables/_saltcorn_data.migrations_202011051353.sql.html +1 -1
  586. package/docs/variables/_saltcorn_data.migrations_202011111127.sql.html +1 -1
  587. package/docs/variables/_saltcorn_data.migrations_202012011203.sql.html +1 -1
  588. package/docs/variables/_saltcorn_data.migrations_202012100841.sql.html +1 -1
  589. package/docs/variables/_saltcorn_data.migrations_202012281835.sql.html +1 -1
  590. package/docs/variables/_saltcorn_data.migrations_202101061051.sql.html +1 -1
  591. package/docs/variables/_saltcorn_data.migrations_202101141128.sql.html +1 -1
  592. package/docs/variables/_saltcorn_data.migrations_202102091312.sql.html +1 -1
  593. package/docs/variables/_saltcorn_data.migrations_202102101624.sql.html +1 -1
  594. package/docs/variables/_saltcorn_data.migrations_202102172148.sql.html +1 -1
  595. package/docs/variables/_saltcorn_data.migrations_202102261650.sql.html +1 -1
  596. package/docs/variables/_saltcorn_data.migrations_202106102347.sql.html +1 -1
  597. package/docs/variables/_saltcorn_data.migrations_202106112120.sql.html +1 -1
  598. package/docs/variables/_saltcorn_data.migrations_202106120012.sql.html +1 -1
  599. package/docs/variables/_saltcorn_data.migrations_202106120220.sql.html +1 -1
  600. package/docs/variables/_saltcorn_data.migrations_202106121701.sql.html +1 -1
  601. package/docs/variables/_saltcorn_data.migrations_202106121703.sql_pg.html +1 -1
  602. package/docs/variables/_saltcorn_data.migrations_202106121703.sql_sqlite.html +1 -1
  603. package/docs/variables/_saltcorn_data.migrations_202106251126.sql.html +1 -1
  604. package/docs/variables/_saltcorn_data.migrations_202107281619.sql.html +1 -1
  605. package/docs/variables/_saltcorn_data.migrations_202107302158.sql_pg.html +1 -1
  606. package/docs/variables/_saltcorn_data.migrations_202107302158.sql_sqlite.html +1 -1
  607. package/docs/variables/_saltcorn_data.migrations_202108022257.sql.html +1 -1
  608. package/docs/variables/_saltcorn_data.migrations_202109201624.sql.html +1 -1
  609. package/docs/variables/_saltcorn_data.migrations_202109301031.sql_pg.html +1 -1
  610. package/docs/variables/_saltcorn_data.migrations_202109301031.sql_sqlite.html +1 -1
  611. package/docs/variables/_saltcorn_data.migrations_202111290253.sql_pg.html +1 -1
  612. package/docs/variables/_saltcorn_data.migrations_202111290253.sql_sqlite.html +1 -1
  613. package/docs/variables/_saltcorn_data.migrations_202112282254.sql_pg.html +1 -1
  614. package/docs/variables/_saltcorn_data.migrations_202112282254.sql_sqlite.html +1 -1
  615. package/docs/variables/_saltcorn_data.migrations_202207022002.sql.html +1 -1
  616. package/docs/variables/_saltcorn_data.migrations_202207252150.sql_pg.html +1 -1
  617. package/docs/variables/_saltcorn_data.migrations_202207252150.sql_sqlite.html +1 -1
  618. package/docs/variables/_saltcorn_data.migrations_202207261221.sql.html +1 -1
  619. package/docs/variables/_saltcorn_data.migrations_202208101144.sql_pg.html +1 -1
  620. package/docs/variables/_saltcorn_data.migrations_202208101144.sql_sqlite.html +1 -1
  621. package/docs/variables/_saltcorn_data.migrations_202211040031.sql.html +1 -1
  622. package/docs/variables/_saltcorn_data.migrations_202212112152.sql_pg.html +1 -1
  623. package/docs/variables/_saltcorn_data.migrations_202212112152.sql_sqlite.html +1 -1
  624. package/docs/variables/_saltcorn_data.migrations_202301130917.sql.html +1 -1
  625. package/docs/variables/_saltcorn_data.migrations_202303201126.sql_pg.html +1 -1
  626. package/docs/variables/_saltcorn_data.migrations_202303201126.sql_sqlite.html +1 -1
  627. package/docs/variables/_saltcorn_data.migrations_202303221944.sql_pg.html +1 -1
  628. package/docs/variables/_saltcorn_data.migrations_202303221944.sql_sqlite.html +1 -1
  629. package/docs/variables/_saltcorn_data.migrations_202304281224.sql.html +1 -1
  630. package/docs/variables/_saltcorn_data.migrations_202305031518.sql_pg.html +1 -1
  631. package/docs/variables/_saltcorn_data.migrations_202305031518.sql_sqlite.html +1 -1
  632. package/docs/variables/_saltcorn_data.migrations_202308211648.sql.html +1 -1
  633. package/docs/variables/_saltcorn_data.migrations_202311011755.sql_pg.html +1 -1
  634. package/docs/variables/_saltcorn_data.migrations_202311011755.sql_sqlite.html +1 -1
  635. package/docs/variables/_saltcorn_data.migrations_202311231356.sql.html +1 -1
  636. package/docs/variables/_saltcorn_data.migrations_202402071125.sql.html +1 -1
  637. package/docs/variables/_saltcorn_data.migrations_202406260915.sql.html +1 -1
  638. package/docs/variables/_saltcorn_data.migrations_202412051957.sql_pg.html +1 -1
  639. package/docs/variables/_saltcorn_data.migrations_202412051957.sql_sqlite.html +1 -1
  640. package/docs/variables/_saltcorn_data.migrations_202412111526.sql_pg.html +1 -1
  641. package/docs/variables/_saltcorn_data.migrations_202412111526.sql_sqlite.html +1 -1
  642. package/docs/variables/_saltcorn_data.migrations_202501081226.sql_pg.html +1 -1
  643. package/docs/variables/_saltcorn_data.migrations_202501081226.sql_sqlite.html +1 -1
  644. package/docs/variables/_saltcorn_data.migrations_202501201239.sql_sqlite.html +1 -1
  645. package/docs/variables/_saltcorn_data.migrations_202501262157.sql.html +1 -1
  646. package/docs/variables/_saltcorn_data.migrations_202503071353.sql_pg.html +1 -1
  647. package/docs/variables/_saltcorn_data.migrations_202506050958.sql.html +1 -1
  648. package/docs/variables/_saltcorn_data.migrations_202510110312.sql_pg.html +1 -1
  649. package/docs/variables/_saltcorn_data.migrations_202510110312.sql_sqlite.html +1 -1
  650. package/docs/variables/_saltcorn_data.migrations_202511081024.sql.html +1 -1
  651. package/docs/variables/_saltcorn_data.migrations_202604091531.sql.html +1 -0
  652. package/docs/variables/_saltcorn_data.mobile-mocks_npm_npm-registry-fetch.npmRegistryFetch.html +1 -0
  653. package/docs/variables/_saltcorn_data.mobile-mocks_saltcorn_html-pdf-node.htmlPdfNode.html +1 -1
  654. package/docs/variables/_saltcorn_data.models_config.configExports.html +1 -1
  655. package/docs/variables/_saltcorn_data.models_discovery.discovery.html +1 -1
  656. package/docs/variables/_saltcorn_data.models_email.email.html +3 -3
  657. package/docs/variables/_saltcorn_data.models_expression.expression.html +1 -1
  658. package/docs/variables/_saltcorn_data.models_index.config.available_languages.html +1 -1
  659. package/docs/variables/_saltcorn_data.models_index.config.check_email_mask.html +1 -1
  660. package/docs/variables/_saltcorn_data.models_index.config.configTypes.html +1 -1
  661. package/docs/variables/_saltcorn_data.models_index.config.deleteConfig.html +1 -1
  662. package/docs/variables/_saltcorn_data.models_index.config.getAllConfig.html +1 -1
  663. package/docs/variables/_saltcorn_data.models_index.config.getConfig.html +1 -1
  664. package/docs/variables/_saltcorn_data.models_index.config.get_base_url.html +1 -1
  665. package/docs/variables/_saltcorn_data.models_index.config.get_latest_npm_version.html +1 -1
  666. package/docs/variables/_saltcorn_data.models_index.config.remove_from_menu.html +1 -1
  667. package/docs/variables/_saltcorn_data.models_index.config.save_menu_items.html +1 -1
  668. package/docs/variables/_saltcorn_data.models_index.config.setConfig.html +1 -1
  669. package/docs/variables/_saltcorn_data.models_index.discovery.discover_tables.html +1 -1
  670. package/docs/variables/_saltcorn_data.models_index.discovery.discoverable_tables.html +1 -1
  671. package/docs/variables/_saltcorn_data.models_index.discovery.findType.html +1 -1
  672. package/docs/variables/_saltcorn_data.models_index.discovery.get_existing_views.html +1 -1
  673. package/docs/variables/_saltcorn_data.models_index.discovery.implement_discovery.html +1 -1
  674. package/docs/variables/_saltcorn_data.models_index.email.getMailTransport.html +1 -1
  675. package/docs/variables/_saltcorn_data.models_index.email.send_verification_email.html +1 -1
  676. package/docs/variables/_saltcorn_data.models_index.email.viewToEmailHtml.html +1 -1
  677. package/docs/variables/_saltcorn_data.models_index.expression.apply_calculated_fields.html +1 -1
  678. package/docs/variables/_saltcorn_data.models_index.expression.apply_calculated_fields_stored.html +1 -1
  679. package/docs/variables/_saltcorn_data.models_index.expression.eval_expression.html +9 -1
  680. package/docs/variables/_saltcorn_data.models_index.expression.expressionValidator.html +1 -1
  681. package/docs/variables/_saltcorn_data.models_index.expression.get_async_expression_function.html +1 -1
  682. package/docs/variables/_saltcorn_data.models_index.expression.get_expression_function.html +1 -1
  683. package/docs/variables/_saltcorn_data.models_index.expression.jsexprToWhere.html +1 -1
  684. package/docs/variables/_saltcorn_data.models_index.expression.recalculate_for_stored.html +1 -1
  685. package/docs/variables/_saltcorn_data.models_index.expression.transform_for_async.html +1 -1
  686. package/docs/variables/_saltcorn_data.models_index.layout.eachView.html +1 -1
  687. package/docs/variables/_saltcorn_data.models_index.layout.getStringsForI18n.html +1 -1
  688. package/docs/variables/_saltcorn_data.models_index.layout.getViews.html +1 -1
  689. package/docs/variables/_saltcorn_data.models_index.layout.translateLayout.html +1 -1
  690. package/docs/variables/_saltcorn_data.models_index.layout.traverse.html +1 -1
  691. package/docs/variables/_saltcorn_data.models_index.layout.traverseSync.html +1 -1
  692. package/docs/variables/_saltcorn_data.models_index.random.all_views.html +1 -1
  693. package/docs/variables/_saltcorn_data.models_index.random.fill_table_row.html +1 -1
  694. package/docs/variables/_saltcorn_data.models_index.random.initial_view.html +1 -1
  695. package/docs/variables/_saltcorn_data.models_index.random.random_table.html +1 -1
  696. package/docs/variables/_saltcorn_data.models_index.scheduler.runScheduler.html +1 -1
  697. package/docs/variables/_saltcorn_data.models_layout.layout.html +1 -1
  698. package/docs/variables/_saltcorn_data.models_random.random.html +1 -1
  699. package/docs/variables/_saltcorn_data.models_scheduler.scheduler.html +1 -1
  700. package/docs/variables/_saltcorn_data.plugin-helper.add_free_variables_to_joinfields.html +1 -1
  701. package/docs/variables/_saltcorn_data.tests_mocks.mocks.html +1 -1
  702. package/docs/variables/_saltcorn_data.tests_remote_query_helper.renderEditInEditConfig.html +1 -1
  703. package/docs/variables/_saltcorn_data.utils.utils.html +1 -1
  704. package/docs/variables/_saltcorn_data.web-mobile-commons.webMobileCommons.html +1 -1
  705. package/docs/variables/_saltcorn_db-common.internal.dbCommonModulePath.html +1 -1
  706. package/docs/variables/_saltcorn_db-common.multi-tenant.tenantNamespace.html +1 -1
  707. package/docs/variables/_saltcorn_db-common.tenants.tenants.html +1 -1
  708. package/docs/variables/_saltcorn_markup..export_.html +1 -1
  709. package/docs/variables/_saltcorn_markup.builder.builder.html +1 -1
  710. package/docs/variables/_saltcorn_markup.emergency_layout.EmergencyLayoutExports.html +1 -1
  711. package/docs/variables/_saltcorn_markup.form.form.html +1 -1
  712. package/docs/variables/_saltcorn_markup.helpers.HelpersExports.html +1 -1
  713. package/docs/variables/_saltcorn_markup.layout.LayoutExports-1.html +1 -1
  714. package/docs/variables/_saltcorn_markup.layout.LayoutExports.html +1 -1
  715. package/docs/variables/_saltcorn_markup.layout_utils.layoutUtils.html +1 -1
  716. package/docs/variables/_saltcorn_markup.mjml-layout.LayoutExports.html +1 -1
  717. package/docs/variables/_saltcorn_markup.mjml-tags.tagsExports.html +1 -1
  718. package/docs/variables/_saltcorn_markup.table.TableExports.html +1 -1
  719. package/docs/variables/_saltcorn_markup.tags.tagsExports.html +1 -1
  720. package/docs/variables/_saltcorn_types..generators.generateBool.html +1 -1
  721. package/docs/variables/_saltcorn_types..generators.generateString.html +1 -1
  722. package/docs/variables/_saltcorn_types..generators.num_between.html +1 -1
  723. package/docs/variables/_saltcorn_types..generators.oneOf.html +1 -1
  724. package/docs/variables/_saltcorn_types.generators.generators.html +1 -1
  725. package/help/JavaScript action code.tmd +5 -1
  726. package/load_plugins.js +7 -398
  727. package/locales/en.json +5 -1
  728. package/package.json +13 -13
  729. package/public/saltcorn-common.js +6 -2
  730. package/public/saltcorn.js +1453 -0
  731. package/routes/actions.js +199 -12
  732. package/routes/admin.js +69 -12
  733. package/routes/api.js +5 -4
  734. package/routes/delete.js +2 -5
  735. package/routes/edit.js +2 -5
  736. package/routes/entities.js +65 -1245
  737. package/routes/fields.js +4 -0
  738. package/routes/files.js +18 -4
  739. package/routes/packs.js +2 -3
  740. package/routes/plugins.js +33 -18
  741. package/routes/scapi.js +1 -2
  742. package/routes/sync.js +163 -50
  743. package/routes/tables.js +4 -0
  744. package/routes/tenant.js +3 -3
  745. package/routes/utils.js +39 -2
  746. package/serve.js +21 -21
  747. package/tests/admin.test.js +5 -5
  748. package/tests/api.test.js +218 -0
  749. package/tests/auth.test.js +230 -1
  750. package/tests/files.test.js +39 -0
  751. package/tests/plugin_install.test.js +132 -13
  752. package/tests/plugins.test.js +1 -2
  753. package/tests/sync.test.js +842 -18
  754. package/wrapper.js +1 -1
  755. package/docs/functions/_saltcorn_data.base-plugin_fieldviews.radio_select.run.html +0 -1
  756. package/docs/functions/_saltcorn_data.base-plugin_fieldviews.search_or_create.configFields.html +0 -1
  757. package/docs/functions/_saltcorn_data.base-plugin_fieldviews.search_or_create.run.html +0 -1
  758. package/docs/functions/_saltcorn_data.base-plugin_fieldviews.select.run.html +0 -1
  759. package/docs/functions/_saltcorn_data.base-plugin_fieldviews.select_from_table.fill_options.html +0 -1
  760. package/docs/functions/_saltcorn_data.base-plugin_fieldviews.select_from_table.run.html +0 -1
  761. package/docs/functions/_saltcorn_data.base-plugin_types.bool.contract.html +0 -1
  762. package/docs/functions/_saltcorn_data.base-plugin_types.bool.fieldviews.TrueFalse.run.html +0 -1
  763. package/docs/functions/_saltcorn_data.base-plugin_types.bool.fieldviews.checkboxes.run.html +0 -1
  764. package/docs/functions/_saltcorn_data.base-plugin_types.bool.fieldviews.edit.run.html +0 -1
  765. package/docs/functions/_saltcorn_data.base-plugin_types.bool.fieldviews.show.run.html +0 -1
  766. package/docs/functions/_saltcorn_data.base-plugin_types.bool.fieldviews.tristate.run.html +0 -1
  767. package/docs/functions/_saltcorn_data.base-plugin_types.bool.listAs.html +0 -1
  768. package/docs/functions/_saltcorn_data.base-plugin_types.bool.read.html +0 -1
  769. package/docs/functions/_saltcorn_data.base-plugin_types.bool.readFromDB.html +0 -1
  770. package/docs/functions/_saltcorn_data.base-plugin_types.bool.readFromFormRecord.html +0 -1
  771. package/docs/functions/_saltcorn_data.base-plugin_types.bool.validate.html +0 -1
  772. package/docs/functions/_saltcorn_data.base-plugin_types.color.contract.html +0 -1
  773. package/docs/functions/_saltcorn_data.base-plugin_types.color.fieldviews.edit.run.html +0 -1
  774. package/docs/functions/_saltcorn_data.base-plugin_types.color.fieldviews.show.run.html +0 -1
  775. package/docs/functions/_saltcorn_data.base-plugin_types.color.read.html +0 -1
  776. package/docs/functions/_saltcorn_data.base-plugin_types.color.validate.html +0 -1
  777. package/docs/functions/_saltcorn_data.base-plugin_types.date.contract.html +0 -1
  778. package/docs/functions/_saltcorn_data.base-plugin_types.date.equals.html +0 -3
  779. package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.edit.run.html +0 -1
  780. package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.editDay.run.html +0 -1
  781. package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.format.run.html +0 -1
  782. package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.relative.run.html +0 -1
  783. package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.show.run.html +0 -1
  784. package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.showDay.run.html +0 -1
  785. package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.yearsAgo.run.html +0 -1
  786. package/docs/functions/_saltcorn_data.base-plugin_types.date.presets.Now.html +0 -1
  787. package/docs/functions/_saltcorn_data.base-plugin_types.date.read.html +0 -1
  788. package/docs/functions/_saltcorn_data.base-plugin_types.date.validate.html +0 -1
  789. package/docs/functions/_saltcorn_data.base-plugin_types.float.contract.html +0 -1
  790. package/docs/functions/_saltcorn_data.base-plugin_types.float.equals.html +0 -3
  791. package/docs/functions/_saltcorn_data.base-plugin_types.float.fieldviews.edit.run.html +0 -1
  792. package/docs/functions/_saltcorn_data.base-plugin_types.float.fieldviews.show.run.html +0 -1
  793. package/docs/functions/_saltcorn_data.base-plugin_types.float.read.html +0 -1
  794. package/docs/functions/_saltcorn_data.base-plugin_types.float.validate.html +0 -1
  795. package/docs/functions/_saltcorn_data.base-plugin_types.int.contract.html +0 -1
  796. package/docs/functions/_saltcorn_data.base-plugin_types.int.read.html +0 -1
  797. package/docs/functions/_saltcorn_data.base-plugin_types.int.validate.html +0 -1
  798. package/docs/functions/_saltcorn_data.base-plugin_types.int.validate_attributes.html +0 -1
  799. package/docs/functions/_saltcorn_data.base-plugin_types.string.attributes.html +0 -1
  800. package/docs/functions/_saltcorn_data.base-plugin_types.string.contract.html +0 -1
  801. package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.as_header.run.html +0 -1
  802. package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.as_link.run.html +0 -1
  803. package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.as_text.run.html +0 -1
  804. package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.edit.configFields.html +0 -1
  805. package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.edit.run.html +0 -1
  806. package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.img_from_url.run.html +0 -1
  807. package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.password.run.html +0 -1
  808. package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.radio_group.run.html +0 -1
  809. package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.textarea.run.html +0 -1
  810. package/docs/functions/_saltcorn_data.base-plugin_types.string.presets.IP.html +0 -1
  811. package/docs/functions/_saltcorn_data.base-plugin_types.string.presets.SessionID.html +0 -1
  812. package/docs/functions/_saltcorn_data.base-plugin_types.string.read.html +0 -1
  813. package/docs/functions/_saltcorn_data.base-plugin_types.string.validate.html +0 -1
  814. package/docs/functions/_saltcorn_data.base-plugin_types.string.validate_attributes.html +0 -1
  815. package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.decodeProvisioningProfile.html +0 -1
  816. package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.copyMobileAppDirs.html +0 -1
  817. package/docs/modules/_saltcorn_admin-models.tests_backup.test.html +0 -1
  818. package/docs/modules/_saltcorn_admin-models.tests_cfgcheck.test.html +0 -1
  819. package/docs/modules/_saltcorn_admin-models.tests_pack.test.html +0 -1
  820. package/docs/modules/_saltcorn_admin-models.tests_random.test.html +0 -1
  821. package/docs/modules/_saltcorn_admin-models.tests_tenant.test.html +0 -1
  822. package/docs/modules/_saltcorn_data.base-plugin_fieldviews.radio_select.html +0 -2
  823. package/docs/modules/_saltcorn_data.base-plugin_fieldviews.search_or_create.html +0 -2
  824. package/docs/modules/_saltcorn_data.base-plugin_fieldviews.select.html +0 -2
  825. package/docs/modules/_saltcorn_data.base-plugin_fieldviews.select_from_table.html +0 -2
  826. package/docs/modules/_saltcorn_data.base-plugin_types.bool.fieldviews.TrueFalse.html +0 -2
  827. package/docs/modules/_saltcorn_data.base-plugin_types.bool.fieldviews.checkboxes.html +0 -2
  828. package/docs/modules/_saltcorn_data.base-plugin_types.bool.fieldviews.edit.html +0 -2
  829. package/docs/modules/_saltcorn_data.base-plugin_types.bool.fieldviews.html +0 -2
  830. package/docs/modules/_saltcorn_data.base-plugin_types.bool.fieldviews.show.html +0 -2
  831. package/docs/modules/_saltcorn_data.base-plugin_types.bool.fieldviews.tristate.html +0 -2
  832. package/docs/modules/_saltcorn_data.base-plugin_types.bool.html +0 -3
  833. package/docs/modules/_saltcorn_data.base-plugin_types.color.fieldviews.edit.html +0 -2
  834. package/docs/modules/_saltcorn_data.base-plugin_types.color.fieldviews.html +0 -2
  835. package/docs/modules/_saltcorn_data.base-plugin_types.color.fieldviews.show.html +0 -2
  836. package/docs/modules/_saltcorn_data.base-plugin_types.color.html +0 -4
  837. package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.edit.html +0 -2
  838. package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.editDay.html +0 -2
  839. package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.format.html +0 -2
  840. package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.html +0 -2
  841. package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.relative.html +0 -2
  842. package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.show.html +0 -2
  843. package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.showDay.html +0 -2
  844. package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.yearsAgo.html +0 -2
  845. package/docs/modules/_saltcorn_data.base-plugin_types.date.html +0 -3
  846. package/docs/modules/_saltcorn_data.base-plugin_types.date.presets.html +0 -2
  847. package/docs/modules/_saltcorn_data.base-plugin_types.float.fieldviews.edit.html +0 -2
  848. package/docs/modules/_saltcorn_data.base-plugin_types.float.fieldviews.html +0 -2
  849. package/docs/modules/_saltcorn_data.base-plugin_types.float.fieldviews.show.html +0 -2
  850. package/docs/modules/_saltcorn_data.base-plugin_types.float.html +0 -3
  851. package/docs/modules/_saltcorn_data.base-plugin_types.int.distance_operators.html +0 -2
  852. package/docs/modules/_saltcorn_data.base-plugin_types.int.html +0 -3
  853. package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.as_header.html +0 -2
  854. package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.as_link.html +0 -2
  855. package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.as_text.html +0 -2
  856. package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.edit.html +0 -2
  857. package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.html +0 -2
  858. package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.img_from_url.html +0 -2
  859. package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.password.html +0 -2
  860. package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.radio_group.html +0 -2
  861. package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.textarea.html +0 -2
  862. package/docs/modules/_saltcorn_data.base-plugin_types.string.html +0 -3
  863. package/docs/modules/_saltcorn_data.base-plugin_types.string.presets.html +0 -2
  864. package/docs/modules/_saltcorn_data.tests_actions.test.html +0 -1
  865. package/docs/modules/_saltcorn_data.tests_auth.test.html +0 -1
  866. package/docs/modules/_saltcorn_data.tests_auxtest.test.html +0 -1
  867. package/docs/modules/_saltcorn_data.tests_base.test.html +0 -1
  868. package/docs/modules/_saltcorn_data.tests_calc.test.html +0 -1
  869. package/docs/modules/_saltcorn_data.tests_composite_pk.test.html +0 -1
  870. package/docs/modules/_saltcorn_data.tests_config.test.html +0 -1
  871. package/docs/modules/_saltcorn_data.tests_db.test.html +0 -1
  872. package/docs/modules/_saltcorn_data.tests_discover.test.html +0 -1
  873. package/docs/modules/_saltcorn_data.tests_edit.test.html +0 -1
  874. package/docs/modules/_saltcorn_data.tests_email.test.html +0 -1
  875. package/docs/modules/_saltcorn_data.tests_exact_views.test.html +0 -1
  876. package/docs/modules/_saltcorn_data.tests_field.test.html +0 -1
  877. package/docs/modules/_saltcorn_data.tests_fieldviews.test.html +0 -1
  878. package/docs/modules/_saltcorn_data.tests_file.test.html +0 -1
  879. package/docs/modules/_saltcorn_data.tests_filter.test.html +0 -1
  880. package/docs/modules/_saltcorn_data.tests_form.test.html +0 -1
  881. package/docs/modules/_saltcorn_data.tests_list.test.html +0 -1
  882. package/docs/modules/_saltcorn_data.tests_models.test.html +0 -1
  883. package/docs/modules/_saltcorn_data.tests_page.test.html +0 -1
  884. package/docs/modules/_saltcorn_data.tests_page_group.test.html +0 -1
  885. package/docs/modules/_saltcorn_data.tests_plugin.test.html +0 -1
  886. package/docs/modules/_saltcorn_data.tests_show.test.html +0 -1
  887. package/docs/modules/_saltcorn_data.tests_state.test.html +0 -1
  888. package/docs/modules/_saltcorn_data.tests_table.test.html +0 -1
  889. package/docs/modules/_saltcorn_data.tests_table_history.test.html +0 -1
  890. package/docs/modules/_saltcorn_data.tests_tag.test.html +0 -1
  891. package/docs/modules/_saltcorn_data.tests_user.test.html +0 -1
  892. package/docs/modules/_saltcorn_data.tests_view.test.html +0 -1
  893. package/docs/modules/_saltcorn_data.tests_workflow.test.html +0 -1
  894. package/docs/modules/_saltcorn_data.tests_workflow_run.test.html +0 -1
  895. package/docs/modules/_saltcorn_mobile-builder.appium_tests_ui.test.html +0 -1
  896. package/docs/modules/_saltcorn_mobile-builder.tests_versioncode.test.html +0 -1
  897. package/docs/modules/_saltcorn_mobile-builder.tests_webpack.test.html +0 -1
  898. package/docs/types/_saltcorn_data.models_internal_push_message_helper.FcmSubscription.html +0 -4
  899. package/docs/types/_saltcorn_data.models_internal_push_message_helper.Subscription.html +0 -1
  900. package/docs/types/_saltcorn_db-common.internal.AggregationOptions.html +0 -11
  901. package/docs/types/_saltcorn_db-common.internal.CoordOpts.html +0 -5
  902. package/docs/types/_saltcorn_db-common.internal.DatabaseClient.html +0 -2
  903. package/docs/types/_saltcorn_db-common.internal.JoinField.html +0 -6
  904. package/docs/types/_saltcorn_db-common.internal.JoinFields.html +0 -1
  905. package/docs/types/_saltcorn_db-common.internal.JoinOptions.html +0 -1
  906. package/docs/types/_saltcorn_db-common.internal.JsonPath.html +0 -1
  907. package/docs/types/_saltcorn_db-common.internal.JsonPathElem.html +0 -1
  908. package/docs/types/_saltcorn_db-common.internal.Operator.html +0 -1
  909. package/docs/types/_saltcorn_db-common.internal.PartialSome.html +0 -1
  910. package/docs/types/_saltcorn_db-common.internal.PrimaryKeyValue.html +0 -1
  911. package/docs/types/_saltcorn_db-common.internal.Row.html +0 -1
  912. package/docs/types/_saltcorn_db-common.internal.SelectOptions.html +0 -21
  913. package/docs/types/_saltcorn_db-common.internal.StrongRow.html +0 -1
  914. package/docs/types/_saltcorn_db-common.internal.SubselectOptions.html +0 -5
  915. package/docs/types/_saltcorn_db-common.internal.Value.html +0 -1
  916. package/docs/types/_saltcorn_db-common.internal.Where.html +0 -5
  917. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.radio_select.description.html +0 -1
  918. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.radio_select.isEdit.html +0 -1
  919. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.radio_select.type.html +0 -1
  920. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.search_join_field.html +0 -1
  921. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.search_or_create.blockDisplay.html +0 -1
  922. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.search_or_create.description.html +0 -1
  923. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.search_or_create.isEdit.html +0 -1
  924. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.search_or_create.type.html +0 -1
  925. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select.blockDisplay.html +0 -1
  926. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select.configFields.html +0 -1
  927. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select.description.html +0 -1
  928. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select.isEdit.html +0 -1
  929. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select.type.html +0 -1
  930. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_by_code.html +0 -1
  931. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_by_view.html +0 -1
  932. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_from_table.blockDisplay.html +0 -1
  933. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_from_table.configFields.html +0 -1
  934. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_from_table.description.html +0 -1
  935. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_from_table.isEdit.html +0 -1
  936. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_from_table.type.html +0 -1
  937. package/docs/variables/_saltcorn_data.base-plugin_fieldviews.two_level_select.html +0 -1
  938. package/docs/variables/_saltcorn_data.base-plugin_fileview.fileview.html +0 -1
  939. package/docs/variables/_saltcorn_data.base-plugin_types.bool.attributes.html +0 -1
  940. package/docs/variables/_saltcorn_data.base-plugin_types.bool.description.html +0 -1
  941. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.TrueFalse.description.html +0 -1
  942. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.TrueFalse.isEdit.html +0 -1
  943. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.checkboxes.description.html +0 -1
  944. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.checkboxes.isEdit.html +0 -1
  945. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.edit.configFields.html +0 -1
  946. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.edit.description.html +0 -1
  947. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.edit.isEdit.html +0 -1
  948. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.show.description.html +0 -1
  949. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.show.isEdit.html +0 -1
  950. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.show_with_html.html +0 -1
  951. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.switch.html +0 -1
  952. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.thumbs_up_down.html +0 -1
  953. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.tristate.configFields.html +0 -1
  954. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.tristate.description.html +0 -1
  955. package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.tristate.isEdit.html +0 -1
  956. package/docs/variables/_saltcorn_data.base-plugin_types.bool.js_type.html +0 -1
  957. package/docs/variables/_saltcorn_data.base-plugin_types.bool.name.html +0 -1
  958. package/docs/variables/_saltcorn_data.base-plugin_types.bool.sql_name.html +0 -1
  959. package/docs/variables/_saltcorn_data.base-plugin_types.color.attributes.html +0 -1
  960. package/docs/variables/_saltcorn_data.base-plugin_types.color.description.html +0 -1
  961. package/docs/variables/_saltcorn_data.base-plugin_types.color.fieldviews.edit.blockDisplay.html +0 -1
  962. package/docs/variables/_saltcorn_data.base-plugin_types.color.fieldviews.edit.description.html +0 -1
  963. package/docs/variables/_saltcorn_data.base-plugin_types.color.fieldviews.edit.isEdit.html +0 -1
  964. package/docs/variables/_saltcorn_data.base-plugin_types.color.fieldviews.show.description.html +0 -1
  965. package/docs/variables/_saltcorn_data.base-plugin_types.color.fieldviews.show.isEdit.html +0 -1
  966. package/docs/variables/_saltcorn_data.base-plugin_types.color.fieldviews.show_with_html.html +0 -1
  967. package/docs/variables/_saltcorn_data.base-plugin_types.color.js_type.html +0 -1
  968. package/docs/variables/_saltcorn_data.base-plugin_types.color.name.html +0 -1
  969. package/docs/variables/_saltcorn_data.base-plugin_types.color.sql_name.html +0 -1
  970. package/docs/variables/_saltcorn_data.base-plugin_types.date.attributes.html +0 -1
  971. package/docs/variables/_saltcorn_data.base-plugin_types.date.description.html +0 -1
  972. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.edit.blockDisplay.html +0 -1
  973. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.edit.configFields.html +0 -1
  974. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.edit.description.html +0 -1
  975. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.edit.isEdit.html +0 -1
  976. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.editDay.blockDisplay.html +0 -1
  977. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.editDay.configFields.html +0 -1
  978. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.editDay.description.html +0 -1
  979. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.editDay.isEdit.html +0 -1
  980. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.format.configFields.html +0 -1
  981. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.format.description.html +0 -1
  982. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.format.isEdit.html +0 -1
  983. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.relative.description.html +0 -1
  984. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.relative.isEdit.html +0 -1
  985. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.show.description.html +0 -1
  986. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.show.isEdit.html +0 -1
  987. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.showDay.description.html +0 -1
  988. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.showDay.isEdit.html +0 -1
  989. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.show_with_html.html +0 -1
  990. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.yearsAgo.description.html +0 -1
  991. package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.yearsAgo.isEdit.html +0 -1
  992. package/docs/variables/_saltcorn_data.base-plugin_types.date.js_type.html +0 -1
  993. package/docs/variables/_saltcorn_data.base-plugin_types.date.name.html +0 -1
  994. package/docs/variables/_saltcorn_data.base-plugin_types.date.sql_name.html +0 -1
  995. package/docs/variables/_saltcorn_data.base-plugin_types.float.attributes.html +0 -1
  996. package/docs/variables/_saltcorn_data.base-plugin_types.float.description.html +0 -1
  997. package/docs/variables/_saltcorn_data.base-plugin_types.float.distance_operators.html +0 -1
  998. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.above_input.html +0 -1
  999. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.below_input.html +0 -1
  1000. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.edit.blockDisplay.html +0 -1
  1001. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.edit.configFields.html +0 -1
  1002. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.edit.description.html +0 -1
  1003. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.edit.isEdit.html +0 -1
  1004. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.heat_cell.html +0 -1
  1005. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.number_slider.html +0 -1
  1006. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.progress_bar.html +0 -1
  1007. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.range_interval.html +0 -1
  1008. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.show.description.html +0 -1
  1009. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.show.isEdit.html +0 -1
  1010. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.show_with_html.html +0 -1
  1011. package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.to_locale_string.html +0 -1
  1012. package/docs/variables/_saltcorn_data.base-plugin_types.float.js_type.html +0 -1
  1013. package/docs/variables/_saltcorn_data.base-plugin_types.float.name.html +0 -1
  1014. package/docs/variables/_saltcorn_data.base-plugin_types.float.sql_name.html +0 -1
  1015. package/docs/variables/_saltcorn_data.base-plugin_types.int.attributes.html +0 -1
  1016. package/docs/variables/_saltcorn_data.base-plugin_types.int.description.html +0 -1
  1017. package/docs/variables/_saltcorn_data.base-plugin_types.int.distance_operators.near.html +0 -1
  1018. package/docs/variables/_saltcorn_data.base-plugin_types.int.fieldviews.html +0 -3
  1019. package/docs/variables/_saltcorn_data.base-plugin_types.int.js_type.html +0 -1
  1020. package/docs/variables/_saltcorn_data.base-plugin_types.int.name.html +0 -1
  1021. package/docs/variables/_saltcorn_data.base-plugin_types.int.primaryKey.html +0 -1
  1022. package/docs/variables/_saltcorn_data.base-plugin_types.int.sql_name.html +0 -1
  1023. package/docs/variables/_saltcorn_data.base-plugin_types.string.description.html +0 -1
  1024. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_header.description.html +0 -1
  1025. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_header.isEdit.html +0 -1
  1026. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_link.configFields.html +0 -1
  1027. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_link.description.html +0 -1
  1028. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_link.isEdit.html +0 -1
  1029. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_text.description.html +0 -1
  1030. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_text.isEdit.html +0 -1
  1031. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.checkbox_group.html +0 -1
  1032. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.code.html +0 -1
  1033. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.code_editor.html +0 -1
  1034. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.edit.blockDisplay.html +0 -1
  1035. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.edit.description.html +0 -1
  1036. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.edit.isEdit.html +0 -1
  1037. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.ellipsize.html +0 -1
  1038. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.fill_formula_btn.html +0 -1
  1039. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.img_from_url.description.html +0 -1
  1040. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.img_from_url.isEdit.html +0 -1
  1041. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.make_unique.html +0 -1
  1042. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.monospace_block.html +0 -1
  1043. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.password.blockDisplay.html +0 -1
  1044. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.password.configFields.html +0 -1
  1045. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.password.description.html +0 -1
  1046. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.password.isEdit.html +0 -1
  1047. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.preFormatted.html +0 -1
  1048. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.radio_group.configFields.html +0 -1
  1049. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.radio_group.description.html +0 -1
  1050. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.radio_group.isEdit.html +0 -1
  1051. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.select_by_code.html +0 -1
  1052. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.show_with_html.html +0 -1
  1053. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.textarea.blockDisplay.html +0 -1
  1054. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.textarea.configFields.html +0 -1
  1055. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.textarea.description.html +0 -1
  1056. package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.textarea.isEdit.html +0 -1
  1057. package/docs/variables/_saltcorn_data.base-plugin_types.string.js_type.html +0 -1
  1058. package/docs/variables/_saltcorn_data.base-plugin_types.string.name.html +0 -1
  1059. package/docs/variables/_saltcorn_data.base-plugin_types.string.sql_name.html +0 -1
  1060. package/docs/variables/_saltcorn_data.contract.fieldlike.html +0 -1
  1061. package/docs/variables/_saltcorn_data.contract.is_column.html +0 -1
  1062. package/docs/variables/_saltcorn_data.contract.is_header.html +0 -1
  1063. package/docs/variables/_saltcorn_data.contract.is_pack.html +0 -1
  1064. package/docs/variables/_saltcorn_data.contract.is_plugin.html +0 -1
  1065. package/docs/variables/_saltcorn_data.contract.is_plugin_layout.html +0 -1
  1066. package/docs/variables/_saltcorn_data.contract.is_plugin_type.html +0 -1
  1067. package/docs/variables/_saltcorn_data.contract.is_plugin_wrap.html +0 -1
  1068. package/docs/variables/_saltcorn_data.contract.is_plugin_wrap_arg.html +0 -1
  1069. package/docs/variables/_saltcorn_data.contract.is_table_query.html +0 -1
  1070. package/docs/variables/_saltcorn_data.contract.is_tablely.html +0 -1
  1071. package/docs/variables/_saltcorn_data.contract.is_viewtemplate.html +0 -1
@@ -1136,6 +1136,26 @@ function build_mobile_app(button) {
1136
1136
  (option) => option.value
1137
1137
  );
1138
1138
 
1139
+ ajax_post("/admin/build-mobile-app/validate-synced-tables", {
1140
+ data: { synchedTables: params.synchedTables },
1141
+ success: (data) => {
1142
+ if (
1143
+ data.warnings &&
1144
+ data.warnings.length > 0 &&
1145
+ !confirm(
1146
+ "Warning: some tables referenced by synced tables are not synced:\n\n" +
1147
+ data.warnings.join("\n") +
1148
+ "\n\nDo you really want to continue?"
1149
+ )
1150
+ ) {
1151
+ return;
1152
+ }
1153
+ _do_build_mobile_app(button, params);
1154
+ },
1155
+ });
1156
+ }
1157
+
1158
+ function _do_build_mobile_app(button, params) {
1139
1159
  if (
1140
1160
  params.useDocker &&
1141
1161
  !window.capacitorBuilderAvailable &&
@@ -1687,3 +1707,1436 @@ function ensure_css_loaded(src) {
1687
1707
  return i(a, b, g, h, c, !0);
1688
1708
  };
1689
1709
  })(this);
1710
+
1711
+ // Entities list page
1712
+ function entitiesListInit(config) {
1713
+ const {
1714
+ LEGACY_LINK_META,
1715
+ TAGS_BY_ID,
1716
+ ROLES_BY_ID,
1717
+ TXT_SELECTED,
1718
+ TXT_DELETE_SELECTED_CONFIRM,
1719
+ TXT_DELETE_SELECTED_FALLBACK,
1720
+ TXT_DELETE_FAILED,
1721
+ } = config;
1722
+
1723
+ // DOM refs
1724
+ const searchInput = document.getElementById("entity-search");
1725
+ const deepSearchToggle = document.getElementById("entity-deep-search");
1726
+ const entitiesList = document.getElementById("entities-list");
1727
+ const noResults = document.getElementById("no-results");
1728
+ const filterButtons = document.querySelectorAll(".entity-filter-btn");
1729
+ const filterButtonsByType = {};
1730
+ filterButtons.forEach((btn) => {
1731
+ const type = btn.dataset.entityType;
1732
+ if (type) filterButtonsByType[type] = btn;
1733
+ });
1734
+ const tagButtons = document.querySelectorAll(".tag-filter-btn");
1735
+ const filtersRow = document.getElementById("entity-filters-row");
1736
+ const selectionBar = document.getElementById("entity-selection-bar");
1737
+ const selectionCountEl = document.getElementById("entity-selection-count");
1738
+ const clearSelectionBtn = document.getElementById("entity-clear-selection");
1739
+ const bulkDeleteBtn = document.getElementById("entity-bulk-delete");
1740
+ const bulkTagSelect = document.getElementById("entity-bulk-tag-select");
1741
+ const bulkApplyTagBtn = document.getElementById("entity-bulk-apply-tag");
1742
+ const bulkDownloadPackBtn = document.getElementById(
1743
+ "entity-bulk-download-pack"
1744
+ );
1745
+ const bulkRoleReadSelect = document.getElementById(
1746
+ "entity-bulk-role-read-select"
1747
+ );
1748
+ const bulkApplyRoleReadBtn = document.getElementById(
1749
+ "entity-bulk-apply-role-read"
1750
+ );
1751
+ const bulkRoleWriteSelect = document.getElementById(
1752
+ "entity-bulk-role-write-select"
1753
+ );
1754
+ const bulkApplyRoleWriteBtn = document.getElementById(
1755
+ "entity-bulk-apply-role-write"
1756
+ );
1757
+ const bulkRoleReadGroup = document.getElementById(
1758
+ "entity-bulk-role-read-group"
1759
+ );
1760
+ const bulkRoleWriteGroup = document.getElementById(
1761
+ "entity-bulk-role-write-group"
1762
+ );
1763
+ const entitiesTbody = document.getElementById("entities-main-body");
1764
+ const recentTbody = document.getElementById("entities-recent-body");
1765
+
1766
+ // Type constants
1767
+ const BASE_TYPES = ["table", "view", "page", "trigger"];
1768
+ const EXTENDED_TYPES = ["module", "user"];
1769
+ const ALL_TYPES = BASE_TYPES.concat(EXTENDED_TYPES);
1770
+ window.ENTITY_EXTENDED_TYPES = EXTENDED_TYPES;
1771
+
1772
+ // Selection state
1773
+ const selectedKeys = new Set();
1774
+ let lastSelectedIndex = null;
1775
+
1776
+ // Filter state
1777
+ const activeFilters = new Set([]);
1778
+ const activeTags = new Set([]);
1779
+
1780
+ // Extended entity state
1781
+ let isExtendedExpanded = false;
1782
+ let hasLoadedAllModules = false;
1783
+ let isLoadingAllModules = false;
1784
+
1785
+ // --- Row helpers ---
1786
+
1787
+ const isRowSelectable = (row) => {
1788
+ if (!row) return false;
1789
+ const type = row.dataset.entityType;
1790
+ if (type === "module" && row.dataset.installed === "false") return false;
1791
+ return true;
1792
+ };
1793
+
1794
+ const findRowByKey = (key) =>
1795
+ Array.from(document.querySelectorAll(".entity-row")).find(
1796
+ (row) => row.dataset.entityKey === key
1797
+ );
1798
+
1799
+ const selectionPayloadFromRow = (row) => {
1800
+ if (!row) return null;
1801
+ return {
1802
+ key: row.dataset.entityKey,
1803
+ type: row.dataset.entityType,
1804
+ id: row.dataset.entityId || null,
1805
+ name: row.dataset.entityLabel || row.dataset.entityName || "",
1806
+ installed: row.dataset.installed,
1807
+ moduleKind: row.dataset.moduleKind,
1808
+ };
1809
+ };
1810
+
1811
+ const getVisibleRows = () =>
1812
+ Array.from(document.querySelectorAll(".entity-row")).filter(
1813
+ (row) => row.style.display !== "none"
1814
+ );
1815
+
1816
+ const getSelectableVisibleRows = () =>
1817
+ getVisibleRows().filter((row) => isRowSelectable(row));
1818
+
1819
+ const isTypingTarget = (el) => {
1820
+ if (!el) return false;
1821
+ if (el.isContentEditable) return true;
1822
+ const tag = el.tagName;
1823
+ if (!tag) return false;
1824
+ const tagName = tag.toUpperCase();
1825
+ if (tagName === "INPUT" || tagName === "TEXTAREA" || tagName === "SELECT")
1826
+ return true;
1827
+ return !!el.closest('[contenteditable="true"]');
1828
+ };
1829
+
1830
+ const refreshSelectionStyles = () => {
1831
+ document.querySelectorAll(".entity-row").forEach((row) => {
1832
+ const key = row.dataset.entityKey;
1833
+ if (!isRowSelectable(row) && selectedKeys.has(key))
1834
+ selectedKeys.delete(key);
1835
+ if (selectedKeys.has(key)) {
1836
+ row.classList.add("table-active", "entity-row-selected");
1837
+ } else {
1838
+ row.classList.remove("table-active", "entity-row-selected");
1839
+ }
1840
+ });
1841
+ };
1842
+
1843
+ const syncSelectBorder = (el, varName) => {
1844
+ if (!el) return;
1845
+ const disabledBorder =
1846
+ "color-mix(in srgb, var(--bs-btn-disabled-color, var(--bs-secondary)) 70%, transparent)";
1847
+ const enabledBorder = "var(--bs-secondary)";
1848
+ el.style.setProperty(varName, el.disabled ? disabledBorder : enabledBorder);
1849
+ };
1850
+
1851
+ const markSelectChangedByUser = (sel) => {
1852
+ if (sel) sel.dataset.userSelected = "true";
1853
+ };
1854
+ const resetSelectUserFlag = (sel) => {
1855
+ if (sel) sel.dataset.userSelected = "";
1856
+ };
1857
+
1858
+ const isTaggableType = (type) =>
1859
+ ["table", "view", "page", "trigger"].includes(type);
1860
+ const isDownloadableEntity = (item) =>
1861
+ !!item && ["table", "view", "page", "trigger"].includes(item.type);
1862
+
1863
+ const isModulesFilterExclusive = () =>
1864
+ activeFilters.size === 1 && activeFilters.has("module");
1865
+ window.isModulesFilterExclusive = isModulesFilterExclusive;
1866
+
1867
+ const collectSelectionItems = () =>
1868
+ Array.from(selectedKeys)
1869
+ .map((key) => selectionPayloadFromRow(findRowByKey(key)))
1870
+ .filter(Boolean);
1871
+
1872
+ const getRoleName = (rid) => {
1873
+ if (typeof rid === "undefined") return "";
1874
+ const key = String(rid);
1875
+ if (!ROLES_BY_ID) return "";
1876
+ return Object.prototype.hasOwnProperty.call(ROLES_BY_ID, key)
1877
+ ? ROLES_BY_ID[key]
1878
+ : "?";
1879
+ };
1880
+
1881
+ const toNumberOrUndefined = (val) => {
1882
+ if (val === "" || typeof val === "undefined" || val === null)
1883
+ return undefined;
1884
+ const num = Number(val);
1885
+ return Number.isNaN(num) ? undefined : num;
1886
+ };
1887
+
1888
+ const updateRowAccess = (row, payload) => {
1889
+ if (!row) return;
1890
+ if (typeof payload.min_role_read !== "undefined")
1891
+ row.dataset.minRoleRead = String(payload.min_role_read ?? "");
1892
+ if (typeof payload.min_role_write !== "undefined")
1893
+ row.dataset.minRoleWrite = String(payload.min_role_write ?? "");
1894
+ if (typeof payload.min_role !== "undefined")
1895
+ row.dataset.minRole = String(payload.min_role ?? "");
1896
+ const cell = row.querySelector("td:nth-child(5)");
1897
+ if (cell) {
1898
+ const label = (() => {
1899
+ if (payload.type === "table") {
1900
+ const ext = row.dataset.external === "true";
1901
+ const rr = toNumberOrUndefined(payload.min_role_read);
1902
+ const rw = toNumberOrUndefined(payload.min_role_write);
1903
+ if (ext) return getRoleName(rr) + " (read only)";
1904
+ if (typeof rr !== "undefined" && typeof rw !== "undefined")
1905
+ return getRoleName(rr) + "/" + getRoleName(rw);
1906
+ return "";
1907
+ }
1908
+ const mr = toNumberOrUndefined(payload.min_role);
1909
+ return typeof mr !== "undefined" ? getRoleName(mr) : "";
1910
+ })();
1911
+ cell.textContent = label;
1912
+ }
1913
+ };
1914
+
1915
+ const updateSelectionUI = () => {
1916
+ refreshSelectionStyles();
1917
+ const count = selectedKeys.size ?? 0;
1918
+ if (selectionCountEl) {
1919
+ selectionCountEl.textContent = count + " " + (TXT_SELECTED || "selected");
1920
+ }
1921
+ if (filtersRow && selectionBar) {
1922
+ if (count > 0) {
1923
+ filtersRow.classList.add("d-none");
1924
+ selectionBar.classList.remove("d-none");
1925
+ } else {
1926
+ filtersRow.classList.remove("d-none");
1927
+ selectionBar.classList.add("d-none");
1928
+ }
1929
+ }
1930
+ if (bulkDeleteBtn) bulkDeleteBtn.disabled = count === 0;
1931
+ if (clearSelectionBtn) clearSelectionBtn.disabled = count === 0;
1932
+ const items = collectSelectionItems();
1933
+ const hasTaggable = items.some((item) => isTaggableType(item.type));
1934
+ const hasAccessRoleEntities = items.some((item) =>
1935
+ ["table", "view", "page"].includes(item.type)
1936
+ );
1937
+ const hasWriteRoleEntities = items.some((item) => item.type === "table");
1938
+ if (items.length === 1) {
1939
+ const only = items[0];
1940
+ const row = findRowByKey(only.key);
1941
+ if (
1942
+ row &&
1943
+ bulkRoleReadSelect &&
1944
+ bulkRoleReadSelect.dataset.userSelected !== "true"
1945
+ ) {
1946
+ const initRead =
1947
+ only.type === "table"
1948
+ ? row.dataset.minRoleRead || ""
1949
+ : row.dataset.minRole || "";
1950
+ bulkRoleReadSelect.value = initRead || "";
1951
+ }
1952
+ if (
1953
+ row &&
1954
+ bulkRoleWriteSelect &&
1955
+ only.type === "table" &&
1956
+ bulkRoleWriteSelect.dataset.userSelected !== "true"
1957
+ ) {
1958
+ bulkRoleWriteSelect.value = row.dataset.minRoleWrite || "";
1959
+ }
1960
+ } else if (items.length === 0) {
1961
+ if (bulkRoleReadSelect) {
1962
+ bulkRoleReadSelect.value = "";
1963
+ resetSelectUserFlag(bulkRoleReadSelect);
1964
+ }
1965
+ if (bulkRoleWriteSelect) {
1966
+ bulkRoleWriteSelect.value = "";
1967
+ resetSelectUserFlag(bulkRoleWriteSelect);
1968
+ }
1969
+ }
1970
+ if (bulkTagSelect) {
1971
+ bulkTagSelect.disabled = !(count > 0 && hasTaggable);
1972
+ syncSelectBorder(bulkTagSelect, "--entity-bulk-tag-border");
1973
+ }
1974
+ if (bulkApplyTagBtn) {
1975
+ bulkApplyTagBtn.disabled = !(
1976
+ count > 0 &&
1977
+ hasTaggable &&
1978
+ bulkTagSelect &&
1979
+ bulkTagSelect.value
1980
+ );
1981
+ }
1982
+ if (bulkRoleReadSelect) {
1983
+ bulkRoleReadSelect.disabled = !(count > 0 && hasAccessRoleEntities);
1984
+ syncSelectBorder(bulkRoleReadSelect, "--entity-bulk-role-border");
1985
+ }
1986
+ if (bulkApplyRoleReadBtn) {
1987
+ bulkApplyRoleReadBtn.disabled = !(
1988
+ count > 0 &&
1989
+ hasAccessRoleEntities &&
1990
+ bulkRoleReadSelect &&
1991
+ bulkRoleReadSelect.value
1992
+ );
1993
+ }
1994
+ if (bulkRoleWriteSelect) {
1995
+ bulkRoleWriteSelect.disabled = !(count > 0 && hasWriteRoleEntities);
1996
+ syncSelectBorder(bulkRoleWriteSelect, "--entity-bulk-role-border");
1997
+ }
1998
+ if (bulkApplyRoleWriteBtn) {
1999
+ bulkApplyRoleWriteBtn.disabled = !(
2000
+ count > 0 &&
2001
+ hasWriteRoleEntities &&
2002
+ bulkRoleWriteSelect &&
2003
+ bulkRoleWriteSelect.value
2004
+ );
2005
+ }
2006
+ if (bulkRoleWriteGroup) {
2007
+ if (hasWriteRoleEntities) bulkRoleWriteGroup.classList.remove("d-none");
2008
+ else bulkRoleWriteGroup.classList.add("d-none");
2009
+ }
2010
+ if (bulkDownloadPackBtn) bulkDownloadPackBtn.disabled = !(count > 0);
2011
+ };
2012
+
2013
+ const clearSelection = () => {
2014
+ selectedKeys.clear();
2015
+ lastSelectedIndex = null;
2016
+ updateSelectionUI();
2017
+ };
2018
+
2019
+ const updateRowTags = (row, tagId, tagName, entityType) => {
2020
+ if (!row || !tagId) return;
2021
+ const tagsCell = row.querySelector("td:nth-child(6)");
2022
+ if (!tagsCell) return;
2023
+ const dropdown = tagsCell.querySelector(".dropdown");
2024
+ const currentTags = (row.dataset.tags || "").split(" ").filter(Boolean);
2025
+ if (!currentTags.includes(String(tagId))) currentTags.push(String(tagId));
2026
+ row.dataset.tags = currentTags.join(" ");
2027
+ tagsCell.innerHTML = "";
2028
+ const pluralMap = {
2029
+ table: "tables",
2030
+ view: "views",
2031
+ page: "pages",
2032
+ trigger: "triggers",
2033
+ };
2034
+ currentTags.forEach((tid) => {
2035
+ const name = TAGS_BY_ID[tid] || tagName || tid;
2036
+ const plural = pluralMap[entityType] || "tables";
2037
+ const badge = document.createElement("a");
2038
+ badge.className = "badge bg-secondary me-1";
2039
+ badge.setAttribute(
2040
+ "href",
2041
+ "/tag/" + encodeURIComponent(tid) + "?show_list=" + plural
2042
+ );
2043
+ badge.textContent = name;
2044
+ tagsCell.appendChild(badge);
2045
+ });
2046
+ if (dropdown) tagsCell.appendChild(dropdown);
2047
+ };
2048
+
2049
+ // --- URL / on-done helpers ---
2050
+
2051
+ const getCurrentOnDoneTarget = () => {
2052
+ const path = window.location.pathname.startsWith("/")
2053
+ ? window.location.pathname.slice(1)
2054
+ : window.location.pathname;
2055
+ return path + window.location.search;
2056
+ };
2057
+
2058
+ const shouldSkipOnDoneHref = (raw) => {
2059
+ if (!raw) return true;
2060
+ const trimmed = raw.trim();
2061
+ return (
2062
+ trimmed === "#" ||
2063
+ trimmed === "" ||
2064
+ trimmed.toLowerCase().startsWith("javascript:")
2065
+ );
2066
+ };
2067
+
2068
+ const toRelativeHrefWithOnDone = (raw) => {
2069
+ if (shouldSkipOnDoneHref(raw)) return null;
2070
+ try {
2071
+ const url = new URL(raw, window.location.origin);
2072
+ url.searchParams.set("on_done_redirect", getCurrentOnDoneTarget());
2073
+ return url.pathname + url.search + url.hash;
2074
+ } catch (e) {
2075
+ return null;
2076
+ }
2077
+ };
2078
+
2079
+ const updateElementOnDoneHref = (el, attr) => {
2080
+ const raw = el.getAttribute(attr) || el[attr];
2081
+ const updated = toRelativeHrefWithOnDone(raw);
2082
+ if (updated) el.setAttribute(attr, updated);
2083
+ };
2084
+
2085
+ const ensureOnDoneHiddenInput = (form) => {
2086
+ if (form.querySelector('input[name="on_done_redirect"]')) return;
2087
+ const hidden = document.createElement("input");
2088
+ hidden.type = "hidden";
2089
+ hidden.name = "on_done_redirect";
2090
+ hidden.value = getCurrentOnDoneTarget();
2091
+ form.appendChild(hidden);
2092
+ };
2093
+
2094
+ const updateOnDoneRedirectTargets = () => {
2095
+ document
2096
+ .querySelectorAll('a[href*="on_done_redirect="]')
2097
+ .forEach((link) => updateElementOnDoneHref(link, "href"));
2098
+ document
2099
+ .querySelectorAll('form[action*="on_done_redirect="]')
2100
+ .forEach((form) => updateElementOnDoneHref(form, "action"));
2101
+ };
2102
+
2103
+ const updateLegacyButton = () => {
2104
+ const legacyButton = document.getElementById("legacy-entity-link");
2105
+ const legacyLabel = legacyButton
2106
+ ? legacyButton.querySelector(".legacy-label")
2107
+ : null;
2108
+ if (!legacyButton) return;
2109
+ const activeTypes = Array.from(activeFilters);
2110
+ if (activeTypes.length === 1) {
2111
+ const meta = LEGACY_LINK_META[activeTypes[0]];
2112
+ if (meta) {
2113
+ legacyButton.classList.remove("d-none");
2114
+ legacyButton.setAttribute("href", meta.href);
2115
+ if (legacyLabel) legacyLabel.textContent = meta.label;
2116
+ return;
2117
+ }
2118
+ }
2119
+ legacyButton.classList.add("d-none");
2120
+ };
2121
+
2122
+ const updateUrl = () => {
2123
+ const params = new URLSearchParams(window.location.search);
2124
+ if (searchInput.value) params.set("q", searchInput.value);
2125
+ else params.delete("q");
2126
+ if (deepSearchToggle && deepSearchToggle.checked) params.set("deep", "on");
2127
+ else params.delete("deep");
2128
+ ALL_TYPES.forEach((t) => {
2129
+ if (activeFilters.has(t)) params.set(t + "s", "on");
2130
+ else params.delete(t + "s");
2131
+ });
2132
+ if (isExtendedExpanded) params.set("extended", "on");
2133
+ else params.delete("extended");
2134
+ if (activeTags.size > 0)
2135
+ params.set("tags", Array.from(activeTags).join(","));
2136
+ else params.delete("tags");
2137
+ const newUrl =
2138
+ window.location.pathname +
2139
+ (params.toString() ? "?" + params.toString() : "");
2140
+ window.history.replaceState(null, "", newUrl);
2141
+ };
2142
+
2143
+ // --- Extended entity functions ---
2144
+
2145
+ const clearExtendedTypeFilters = () => {
2146
+ EXTENDED_TYPES.forEach((type) => {
2147
+ if (activeFilters.has(type)) {
2148
+ activeFilters.delete(type);
2149
+ const btn = document.querySelector(
2150
+ '.entity-filter-btn[data-entity-type="' + type + '"]'
2151
+ );
2152
+ if (btn) {
2153
+ btn.classList.remove("btn-primary");
2154
+ btn.classList.add("btn-outline-primary");
2155
+ }
2156
+ }
2157
+ });
2158
+ };
2159
+
2160
+ const loadExtendedEntities = async (includeAllModules = false) => {
2161
+ try {
2162
+ const query = includeAllModules ? "?include_all_modules=1" : "";
2163
+ const res = await fetch("/entities/extended" + query);
2164
+ const data = await res.json();
2165
+ return data.entities || [];
2166
+ } catch (e) {
2167
+ console.error("Failed to load extended entities:", e);
2168
+ return [];
2169
+ }
2170
+ };
2171
+
2172
+ const renderExtendedEntityRows = (extendedEntities, tbody) => {
2173
+ document
2174
+ .querySelectorAll("[data-is-extended]")
2175
+ .forEach((row) => row.remove());
2176
+ extendedEntities.forEach((entity) =>
2177
+ tbody.appendChild(createExtendedEntityRow(entity))
2178
+ );
2179
+ updateSelectionUI();
2180
+ };
2181
+
2182
+ const ensureAllModulesLoaded = async () => {
2183
+ if (hasLoadedAllModules || isLoadingAllModules || !isExtendedExpanded)
2184
+ return;
2185
+ isLoadingAllModules = true;
2186
+ let updated = false;
2187
+ try {
2188
+ const extendedEntities = await loadExtendedEntities(true);
2189
+ window.extendedEntities = extendedEntities;
2190
+ const tbody = entitiesTbody;
2191
+ renderExtendedEntityRows(extendedEntities, tbody);
2192
+ hasLoadedAllModules = true;
2193
+ updated = true;
2194
+ } catch (e) {
2195
+ console.error("Failed to load all modules:", e);
2196
+ } finally {
2197
+ isLoadingAllModules = false;
2198
+ if (updated) filterEntities();
2199
+ }
2200
+ };
2201
+
2202
+ window.toggleEntityExpanded = async (expand) => {
2203
+ const moreBtn = document.getElementById("entity-more-btn");
2204
+ const lessBtn = document.getElementById("entity-less-btn");
2205
+ const extendedButtons = document.querySelectorAll(".entity-extended-btn");
2206
+ const tbody = entitiesTbody;
2207
+
2208
+ if (expand) {
2209
+ if (isExtendedExpanded) return;
2210
+ extendedButtons.forEach((btn) => btn.classList.remove("d-none"));
2211
+ moreBtn.classList.add("d-none");
2212
+ lessBtn.classList.remove("d-none");
2213
+ isExtendedExpanded = true;
2214
+ const shouldLoadAll = isModulesFilterExclusive();
2215
+ const extendedEntities = await loadExtendedEntities(shouldLoadAll);
2216
+ window.extendedEntities = extendedEntities;
2217
+ renderExtendedEntityRows(extendedEntities, tbody);
2218
+ hasLoadedAllModules = shouldLoadAll;
2219
+ filterEntities();
2220
+ } else {
2221
+ if (!isExtendedExpanded) return;
2222
+ extendedButtons.forEach((btn) => btn.classList.add("d-none"));
2223
+ moreBtn.classList.remove("d-none");
2224
+ lessBtn.classList.add("d-none");
2225
+ isExtendedExpanded = false;
2226
+ hasLoadedAllModules = false;
2227
+ isLoadingAllModules = false;
2228
+ window.extendedEntities = [];
2229
+ renderExtendedEntityRows([], tbody);
2230
+ clearExtendedTypeFilters();
2231
+ filterEntities();
2232
+ }
2233
+ };
2234
+
2235
+ const createExtendedEntityRow = (entity) => {
2236
+ const tr = document.createElement("tr");
2237
+ tr.className = "entity-row";
2238
+ tr.dataset.entityType = entity.type;
2239
+ tr.dataset.entityName = entity.name.toLowerCase();
2240
+ tr.dataset.entityId = entity.id ? entity.id : "";
2241
+ tr.dataset.entityLabel = entity.name;
2242
+ const key =
2243
+ entity.type + ":" + (entity.type === "module" ? entity.name : entity.id);
2244
+ tr.dataset.entityKey = key;
2245
+ let searchable = (
2246
+ (entity.name || "").toLowerCase() +
2247
+ " " +
2248
+ entity.type
2249
+ ).trim();
2250
+ if (entity.metadata) {
2251
+ Object.keys(entity.metadata).forEach((k) => {
2252
+ const val = entity.metadata[k];
2253
+ const skipDescription = entity.type === "module" && k === "description";
2254
+ const skipUsername = entity.type === "user" && k === "username";
2255
+ if (
2256
+ !skipDescription &&
2257
+ !skipUsername &&
2258
+ val &&
2259
+ typeof val === "string"
2260
+ ) {
2261
+ searchable += " " + val.toLowerCase();
2262
+ }
2263
+ });
2264
+ }
2265
+ tr.dataset.tags = "";
2266
+ tr.dataset.isExtended = "true";
2267
+ tr.dataset.installed =
2268
+ entity.metadata && entity.metadata.installed === false ? "false" : "true";
2269
+ tr.dataset.moduleKind =
2270
+ entity.metadata && entity.metadata.type ? entity.metadata.type : "";
2271
+
2272
+ if (!isRowSelectable(tr)) {
2273
+ tr.classList.add("entity-row-selection-disabled");
2274
+ tr.setAttribute("aria-disabled", "true");
2275
+ }
2276
+
2277
+ // Type badge
2278
+ const badges = {
2279
+ module: { class: "secondary", icon: "cube", label: "Module" },
2280
+ user: { class: "dark", icon: "user", label: "User" },
2281
+ };
2282
+ const badge = badges[entity.type];
2283
+ const typeBadge = document.createElement("td");
2284
+ typeBadge.innerHTML =
2285
+ '<span class="badge bg-' +
2286
+ badge.class +
2287
+ ' me-2"><i class="fas fa-' +
2288
+ badge.icon +
2289
+ ' me-1"></i>' +
2290
+ badge.label +
2291
+ "</span>";
2292
+ tr.appendChild(typeBadge);
2293
+
2294
+ const hasConfig = entity.metadata && entity.metadata.hasConfig;
2295
+ const isInstalled = entity.metadata && entity.metadata.installed;
2296
+
2297
+ // Name
2298
+ const nameTd = document.createElement("td");
2299
+ const isStaticModule = entity.type === "module" && !hasConfig;
2300
+ const nameLink = document.createElement(isStaticModule ? "span" : "a");
2301
+ if (!isStaticModule) {
2302
+ const baseHref = entity.editLink || "#";
2303
+ const updatedHref = toRelativeHrefWithOnDone(baseHref);
2304
+ nameLink.setAttribute("href", updatedHref || baseHref);
2305
+ }
2306
+ nameLink.className = "fw-bold";
2307
+ nameLink.textContent = entity.name;
2308
+ nameTd.appendChild(nameLink);
2309
+ tr.appendChild(nameTd);
2310
+
2311
+ // Run / info cell
2312
+ const runTd = document.createElement("td");
2313
+ if (
2314
+ entity.type === "module" &&
2315
+ entity.metadata &&
2316
+ entity.metadata.type !== "pack" &&
2317
+ entity.viewLink &&
2318
+ isInstalled
2319
+ ) {
2320
+ const infoLink = document.createElement("a");
2321
+ infoLink.className = "link-primary text-decoration-none";
2322
+ infoLink.innerHTML = window.TXT_INFO || "Info";
2323
+ const updatedInfoHref = toRelativeHrefWithOnDone(entity.viewLink);
2324
+ infoLink.setAttribute("href", updatedInfoHref || entity.viewLink);
2325
+ runTd.appendChild(infoLink);
2326
+ }
2327
+ tr.appendChild(runTd);
2328
+
2329
+ // Details cell
2330
+ const detailsTd = document.createElement("td");
2331
+ let detailsHtml = "";
2332
+ if (entity.type === "user") {
2333
+ const disabled = entity.metadata && entity.metadata.disabled;
2334
+ const roleId = entity.metadata && entity.metadata.role_id;
2335
+ if (Array.isArray(window.ENTITY_ROLES)) {
2336
+ const role = window.ENTITY_ROLES.find(
2337
+ (r) => String(r.id) === String(roleId)
2338
+ );
2339
+ if (role && role.role) {
2340
+ detailsHtml +=
2341
+ '<span class="text-muted small me-2">' + role.role + "</span>";
2342
+ }
2343
+ }
2344
+ if (disabled) {
2345
+ detailsHtml +=
2346
+ '<span class="badge bg-danger me-1">' +
2347
+ (window.TXT_DISABLED || "Disabled") +
2348
+ "</span>";
2349
+ searchable += " disabled";
2350
+ }
2351
+ } else if (entity.type === "module") {
2352
+ const version = entity.metadata && entity.metadata.version;
2353
+ const hasTheme = entity.metadata && entity.metadata.has_theme;
2354
+ const hasAuth = entity.metadata && entity.metadata.has_auth;
2355
+ const isReadyForMobile =
2356
+ entity.metadata && entity.metadata.ready_for_mobile;
2357
+ const isLocal = entity.metadata && entity.metadata.local;
2358
+ const isPack = entity.metadata && entity.metadata.type === "pack";
2359
+ if (version)
2360
+ detailsHtml +=
2361
+ '<span class="text-muted small me-2">v' + version + "</span>";
2362
+ if (isPack)
2363
+ detailsHtml +=
2364
+ '<span class="badge bg-secondary me-1">' +
2365
+ (window.TXT_PACK || "Pack") +
2366
+ "</span>";
2367
+ if (hasTheme) {
2368
+ detailsHtml +=
2369
+ '<span class="badge bg-secondary me-1">' +
2370
+ (window.TXT_THEME || "Theme") +
2371
+ "</span>";
2372
+ searchable += " theme";
2373
+ }
2374
+ if (isLocal) {
2375
+ detailsHtml +=
2376
+ '<span class="badge bg-secondary me-1">' +
2377
+ (window.TXT_LOCAL || "Local") +
2378
+ "</span>";
2379
+ searchable += " local";
2380
+ }
2381
+ if (isInstalled) {
2382
+ detailsHtml +=
2383
+ '<span class="badge bg-secondary me-1">' +
2384
+ (window.TXT_INSTALLED || "Installed") +
2385
+ "</span>";
2386
+ searchable += " installed";
2387
+ }
2388
+ if (hasAuth) {
2389
+ detailsHtml +=
2390
+ '<span class="badge bg-secondary me-1">' +
2391
+ (window.TXT_AUTH || "Authentication") +
2392
+ "</span>";
2393
+ searchable += " authentication auth";
2394
+ }
2395
+ if (isReadyForMobile) {
2396
+ detailsHtml +=
2397
+ '<span class="badge bg-secondary me-1">' +
2398
+ (window.TXT_MOBILE || "Mobile") +
2399
+ "</span>";
2400
+ searchable += " mobile";
2401
+ }
2402
+ }
2403
+ if (detailsHtml) detailsTd.innerHTML = detailsHtml;
2404
+ tr.appendChild(detailsTd);
2405
+
2406
+ tr.appendChild(document.createElement("td")); // access
2407
+ tr.appendChild(document.createElement("td")); // tags
2408
+
2409
+ // Actions cell
2410
+ const actionsTd = document.createElement("td");
2411
+ if (entity.actionsHtml) {
2412
+ actionsTd.innerHTML = entity.actionsHtml;
2413
+ actionsTd.querySelectorAll("a").forEach((link) => {
2414
+ const updated = toRelativeHrefWithOnDone(link.getAttribute("href"));
2415
+ if (updated) link.setAttribute("href", updated);
2416
+ });
2417
+ actionsTd.querySelectorAll("form").forEach((form) => {
2418
+ const updated = toRelativeHrefWithOnDone(form.getAttribute("action"));
2419
+ if (updated) form.setAttribute("action", updated);
2420
+ if (entity.type === "user") ensureOnDoneHiddenInput(form);
2421
+ });
2422
+ const dropdownToggle = actionsTd.querySelector(
2423
+ '[data-bs-toggle="dropdown"]'
2424
+ );
2425
+ if (dropdownToggle && window.bootstrap && window.bootstrap.Dropdown) {
2426
+ window.bootstrap.Dropdown.getOrCreateInstance(dropdownToggle);
2427
+ }
2428
+ }
2429
+ tr.appendChild(actionsTd);
2430
+
2431
+ tr.dataset.searchable = searchable.trim();
2432
+ let deepSearchable = (entity.deepSearchable || searchable).trim();
2433
+ if (entity.type === "module") {
2434
+ const description =
2435
+ entity.metadata && typeof entity.metadata.description === "string"
2436
+ ? entity.metadata.description.toLowerCase()
2437
+ : "";
2438
+ if (description && !deepSearchable.includes(description)) {
2439
+ deepSearchable = (deepSearchable + " " + description).trim();
2440
+ }
2441
+ } else if (
2442
+ entity.type === "user" &&
2443
+ entity.metadata &&
2444
+ typeof entity.metadata.username === "string"
2445
+ ) {
2446
+ const usernameLower = entity.metadata.username.toLowerCase();
2447
+ if (!deepSearchable.includes(usernameLower)) {
2448
+ deepSearchable = (deepSearchable + " " + usernameLower).trim();
2449
+ }
2450
+ }
2451
+ tr.dataset.deepSearchable = deepSearchable;
2452
+ if (window.ENTITY_DEEP_SEARCH) {
2453
+ window.ENTITY_DEEP_SEARCH[key] = deepSearchable;
2454
+ }
2455
+ return tr;
2456
+ };
2457
+
2458
+ // Recently edited
2459
+
2460
+ const relativeTime = (isoStr) => {
2461
+ if (!isoStr) return "";
2462
+ const diff = Date.now() - new Date(isoStr).getTime();
2463
+ const m = Math.floor(diff / 60000);
2464
+ if (m < 1) return "just now";
2465
+ if (m < 60) return m + "m ago";
2466
+ const h = Math.floor(m / 60);
2467
+ if (h < 24) return h + "h ago";
2468
+ const d = Math.floor(h / 24);
2469
+ if (d < 30) return d + "d ago";
2470
+ const mo = Math.floor(d / 30);
2471
+ return mo + "mo ago";
2472
+ };
2473
+
2474
+ const RECENT_COUNT = 5;
2475
+
2476
+ const updateRecentlyEdited = () => {
2477
+ if (!recentTbody) return;
2478
+
2479
+ // Only show when there is no active search
2480
+ const hasSearch = searchInput && searchInput.value.trim().length > 0;
2481
+
2482
+ // Collect visible main rows that have an updated_at timestamp
2483
+ const candidates = Array.from(
2484
+ entitiesTbody ? entitiesTbody.querySelectorAll(".entity-row") : []
2485
+ ).filter((r) => r.style.display !== "none" && r.dataset.updatedAt);
2486
+
2487
+ if (hasSearch || candidates.length === 0) {
2488
+ Array.from(
2489
+ recentTbody.querySelectorAll(
2490
+ ".entity-row-clone, .entity-section-header-row"
2491
+ )
2492
+ ).forEach((r) => r.remove());
2493
+ recentTbody.classList.add("d-none");
2494
+ return;
2495
+ }
2496
+
2497
+ // Sort by updated_at descending, take top N
2498
+ candidates.sort(
2499
+ (a, b) => new Date(b.dataset.updatedAt) - new Date(a.dataset.updatedAt)
2500
+ );
2501
+ const recent = candidates.slice(0, RECENT_COUNT);
2502
+
2503
+ // Clear previous clones (keep the section header rows)
2504
+ Array.from(recentTbody.querySelectorAll(".entity-row-clone")).forEach((r) =>
2505
+ r.remove()
2506
+ );
2507
+ Array.from(
2508
+ recentTbody.querySelectorAll(".entity-section-header-row")
2509
+ ).forEach((r) => r.remove());
2510
+
2511
+ // Build section header row for recent
2512
+ const recentHeaderTr = document.createElement("tr");
2513
+ recentHeaderTr.className = "entity-section-header-row";
2514
+ const recentHeaderTd = document.createElement("td");
2515
+ recentHeaderTd.colSpan = 7;
2516
+ recentHeaderTd.textContent = "Recently edited";
2517
+ recentHeaderTr.appendChild(recentHeaderTd);
2518
+ recentTbody.appendChild(recentHeaderTr);
2519
+
2520
+ // Insert clones
2521
+ recent.forEach((originalRow) => {
2522
+ const clone = originalRow.cloneNode(true);
2523
+ clone.dataset.recentClone = "true";
2524
+ clone.classList.remove("entity-row");
2525
+ clone.classList.add("entity-row-clone", "entity-row-recent");
2526
+
2527
+ const tds = clone.querySelectorAll("td");
2528
+
2529
+ const detailsTd = tds[3];
2530
+ if (detailsTd) {
2531
+ const timeBadge = document.createElement("span");
2532
+ timeBadge.className =
2533
+ "badge bg-secondary-subtle text-secondary fw-normal me-1 ms-1";
2534
+ timeBadge.textContent = relativeTime(originalRow.dataset.updatedAt);
2535
+ // detailsContent wraps badges in a div; insert inside it so they stay inline
2536
+ const detailsDiv = detailsTd.querySelector("div");
2537
+ if (detailsDiv) {
2538
+ // detailsDiv.insertBefore(timeBadge, detailsDiv.firstChild);
2539
+ detailsDiv.lastChild.after(timeBadge);
2540
+ } else {
2541
+ // detailsTd.insertBefore(timeBadge, detailsTd.firstChild);
2542
+ detailsTd.appendChild(timeBadge);
2543
+ }
2544
+ }
2545
+
2546
+ // Remove add-tag dropdown from tags cell to avoid duplicate IDs
2547
+ const tagsTd = tds[tds.length - 2];
2548
+ if (tagsTd) {
2549
+ const dropdown = tagsTd.querySelector(".dropdown");
2550
+ if (dropdown) dropdown.remove();
2551
+ }
2552
+
2553
+ // On row click (not a link/button), scroll to + flash the original
2554
+ clone.addEventListener("click", (e) => {
2555
+ if (e.target.closest("a, button, input, select, textarea, label"))
2556
+ return;
2557
+ const original = entitiesTbody
2558
+ ? entitiesTbody.querySelector(
2559
+ '.entity-row[data-entity-key="' +
2560
+ originalRow.dataset.entityKey.replace(/"/g, '\\"') +
2561
+ '"]'
2562
+ )
2563
+ : null;
2564
+ if (original) {
2565
+ original.scrollIntoView({ behavior: "smooth", block: "center" });
2566
+ original.classList.remove("entity-row-flash");
2567
+ void original.offsetWidth; // reflow to restart animation
2568
+ original.classList.add("entity-row-flash");
2569
+ setTimeout(() => original.classList.remove("entity-row-flash"), 1500);
2570
+ }
2571
+ });
2572
+
2573
+ recentTbody.appendChild(clone);
2574
+ });
2575
+
2576
+ // Build "All entities" separator at bottom of recent section
2577
+ const allHeaderTr = document.createElement("tr");
2578
+ allHeaderTr.className = "entity-section-header-row";
2579
+ const allHeaderTd = document.createElement("td");
2580
+ allHeaderTd.colSpan = 7;
2581
+ allHeaderTd.textContent = "All entities";
2582
+ allHeaderTr.appendChild(allHeaderTd);
2583
+ recentTbody.appendChild(allHeaderTr);
2584
+
2585
+ recentTbody.classList.remove("d-none");
2586
+ };
2587
+
2588
+ // --- Main filter function ---
2589
+
2590
+ function filterEntities() {
2591
+ const entityRows = document.querySelectorAll(".entity-row");
2592
+ const searchTerm = searchInput.value.toLowerCase();
2593
+ const useDeep = deepSearchToggle && deepSearchToggle.checked;
2594
+ let visibleCount = 0;
2595
+ const visibleKeys = new Set();
2596
+ const allowAllModules = isModulesFilterExclusive();
2597
+ const canShowAllModules = allowAllModules && isExtendedExpanded;
2598
+ if (canShowAllModules && !hasLoadedAllModules) {
2599
+ ensureAllModulesLoaded();
2600
+ }
2601
+
2602
+ entityRows.forEach((row) => {
2603
+ const entityType = row.dataset.entityType;
2604
+ const key = row.dataset.entityKey;
2605
+ const deepText =
2606
+ useDeep && window.ENTITY_DEEP_SEARCH
2607
+ ? window.ENTITY_DEEP_SEARCH[key]
2608
+ : null;
2609
+ const searchableText = useDeep
2610
+ ? deepText || row.dataset.deepSearchable || ""
2611
+ : row.dataset.searchable || "";
2612
+
2613
+ const rowTags = (row.dataset.tags || "").split(" ").filter(Boolean);
2614
+ const rowInstalled = row.dataset.installed !== "false";
2615
+ const typeMatch = activeFilters.has(entityType);
2616
+ const searchMatch = !searchTerm || searchableText.includes(searchTerm);
2617
+ const tagMatch =
2618
+ activeTags.size === 0 || rowTags.some((tid) => activeTags.has(tid));
2619
+ const moduleVisibilityOk =
2620
+ entityType !== "module" || rowInstalled || canShowAllModules;
2621
+
2622
+ if (
2623
+ (activeFilters.size === 0 || typeMatch) &&
2624
+ searchMatch &&
2625
+ tagMatch &&
2626
+ moduleVisibilityOk
2627
+ ) {
2628
+ row.style.display = "";
2629
+ visibleKeys.add(key);
2630
+ visibleCount++;
2631
+ } else {
2632
+ row.style.display = "none";
2633
+ }
2634
+ });
2635
+
2636
+ selectedKeys.forEach((key) => {
2637
+ if (!visibleKeys.has(key)) selectedKeys.delete(key);
2638
+ });
2639
+
2640
+ if (visibleCount === 0) {
2641
+ entitiesList.parentElement.classList.add("d-none");
2642
+ noResults.classList.remove("d-none");
2643
+ } else {
2644
+ entitiesList.parentElement.classList.remove("d-none");
2645
+ noResults.classList.add("d-none");
2646
+ }
2647
+
2648
+ updateUrl();
2649
+ updateOnDoneRedirectTargets();
2650
+ updateLegacyButton();
2651
+ updateSelectionUI();
2652
+ updateRecentlyEdited();
2653
+ }
2654
+
2655
+ // --- Bulk action helpers ---
2656
+
2657
+ const triggerDownload = (filename, content) => {
2658
+ const blob = new Blob([content], { type: "application/json" });
2659
+ const url = URL.createObjectURL(blob);
2660
+ const a = document.createElement("a");
2661
+ a.href = url;
2662
+ a.download = filename;
2663
+ document.body.appendChild(a);
2664
+ a.click();
2665
+ document.body.removeChild(a);
2666
+ URL.revokeObjectURL(url);
2667
+ };
2668
+
2669
+ const formatDeleteError = (err) => {
2670
+ const displayType =
2671
+ err && err.isPack
2672
+ ? "Pack"
2673
+ : (() => {
2674
+ const t = ((err && err.type) || "").toString();
2675
+ if (!t) return "Item";
2676
+ return t.charAt(0).toUpperCase() + t.slice(1);
2677
+ })();
2678
+ const label = (err && (err.name || err.id || err.key)) || "(unknown)";
2679
+ const message =
2680
+ (err && err.message) ||
2681
+ TXT_DELETE_FAILED ||
2682
+ "Failed to delete selected items";
2683
+ return displayType + " (" + label + "): " + message;
2684
+ };
2685
+
2686
+ const showBulkDeleteErrors = (errs) => {
2687
+ if (!errs || !errs.length) return;
2688
+ alert(errs.map((e) => formatDeleteError(e)).join("\n-----\n"));
2689
+ };
2690
+
2691
+ const removeRowsByKeys = (keysToRemove) => {
2692
+ if (!keysToRemove || !keysToRemove.size) return;
2693
+ document.querySelectorAll(".entity-row").forEach((row) => {
2694
+ if (keysToRemove.has(row.dataset.entityKey)) row.remove();
2695
+ });
2696
+ };
2697
+
2698
+ const refreshExtendedEntitiesAfterDelete = async () => {
2699
+ if (!isExtendedExpanded) return;
2700
+ const tbody = entitiesTbody;
2701
+ if (!tbody) return;
2702
+ try {
2703
+ const extendedEntities = await loadExtendedEntities(
2704
+ isModulesFilterExclusive()
2705
+ );
2706
+ window.extendedEntities = extendedEntities;
2707
+ renderExtendedEntityRows(extendedEntities, tbody);
2708
+ } catch (err) {
2709
+ console.error("Failed to refresh extended entities after delete:", err);
2710
+ }
2711
+ };
2712
+
2713
+ const doBulkApplyTag = async () => {
2714
+ if (!bulkApplyTagBtn || !bulkTagSelect) return;
2715
+ const tagId = bulkTagSelect.value;
2716
+ if (!tagId) return;
2717
+ const items = collectSelectionItems().filter((item) =>
2718
+ isTaggableType(item.type)
2719
+ );
2720
+ if (!items.length) return;
2721
+ bulkApplyTagBtn.disabled = true;
2722
+ try {
2723
+ const res = await fetch("/entities/bulk-apply-tag", {
2724
+ method: "POST",
2725
+ headers: {
2726
+ "Content-Type": "application/json",
2727
+ "CSRF-Token": window._sc_globalCsrf || "",
2728
+ },
2729
+ body: JSON.stringify({ tag_id: tagId, items }),
2730
+ });
2731
+ if (!res.ok) throw new Error(await res.text());
2732
+ await res.json();
2733
+ const tagName = TAGS_BY_ID[tagId] || "";
2734
+ items.forEach((item) => {
2735
+ const row = findRowByKey(item.key);
2736
+ if (row) updateRowTags(row, tagId, tagName, item.type);
2737
+ });
2738
+ filterEntities();
2739
+ } catch (e) {
2740
+ console.error("Failed to apply tag to selected items", e);
2741
+ alert("Failed to apply tag to selected items");
2742
+ }
2743
+ bulkApplyTagBtn.disabled = false;
2744
+ };
2745
+
2746
+ const doBulkDownloadPack = async () => {
2747
+ if (!bulkDownloadPackBtn) return;
2748
+ const items = collectSelectionItems();
2749
+ if (!items.length) return;
2750
+ bulkDownloadPackBtn.disabled = true;
2751
+ try {
2752
+ const res = await fetch("/entities/download-pack", {
2753
+ method: "POST",
2754
+ headers: {
2755
+ "Content-Type": "application/json",
2756
+ "CSRF-Token": window._sc_globalCsrf || "",
2757
+ },
2758
+ body: JSON.stringify({ items }),
2759
+ });
2760
+ if (!res.ok) throw new Error(await res.text());
2761
+ const payload = await res.json();
2762
+ if (Array.isArray(payload && payload.packs)) {
2763
+ payload.packs.forEach((pack) => {
2764
+ if (pack && pack.name && pack.content) {
2765
+ const content =
2766
+ typeof pack.content === "string"
2767
+ ? pack.content
2768
+ : JSON.stringify(pack.content, null, 2);
2769
+ triggerDownload(pack.name + ".json", content);
2770
+ }
2771
+ });
2772
+ }
2773
+ } catch (e) {
2774
+ console.error("Failed to download pack(s)", e);
2775
+ alert("Failed to download pack for selected items");
2776
+ }
2777
+ bulkDownloadPackBtn.disabled = false;
2778
+ };
2779
+
2780
+ const doBulkApplyRole = async (mode) => {
2781
+ const isWriteMode = mode === "write";
2782
+ const selectEl = isWriteMode ? bulkRoleWriteSelect : bulkRoleReadSelect;
2783
+ const buttonEl = isWriteMode ? bulkApplyRoleWriteBtn : bulkApplyRoleReadBtn;
2784
+ if (!selectEl || !buttonEl) return;
2785
+ const roleId = selectEl.value;
2786
+ if (!roleId) return;
2787
+ const items = collectSelectionItems().filter((item) =>
2788
+ isWriteMode
2789
+ ? item.type === "table"
2790
+ : ["table", "view", "page"].includes(item.type)
2791
+ );
2792
+ if (!items.length) return;
2793
+ buttonEl.disabled = true;
2794
+ try {
2795
+ const res = await fetch("/entities/bulk-set-role", {
2796
+ method: "POST",
2797
+ headers: {
2798
+ "Content-Type": "application/json",
2799
+ "CSRF-Token": window._sc_globalCsrf || "",
2800
+ },
2801
+ body: JSON.stringify({ items, role_id: roleId, mode }),
2802
+ });
2803
+ if (!res.ok) throw new Error(await res.text());
2804
+ const payload = await res.json();
2805
+ const updatedKeys = new Set((payload && payload.updatedKeys) || []);
2806
+ const errors = (payload && payload.errors) || [];
2807
+ if (errors.length) {
2808
+ console.error("Failed to set role for some items", errors);
2809
+ alert("Failed to set role for some selected items");
2810
+ }
2811
+ items.forEach((item) => {
2812
+ if (updatedKeys.size && !updatedKeys.has(item.key)) return;
2813
+ const row = findRowByKey(item.key);
2814
+ if (!row) return;
2815
+ if (isWriteMode && item.type === "table") {
2816
+ updateRowAccess(row, {
2817
+ type: "table",
2818
+ min_role_write: Number(roleId),
2819
+ min_role_read: toNumberOrUndefined(row.dataset.minRoleRead),
2820
+ });
2821
+ } else if (!isWriteMode) {
2822
+ if (item.type === "table") {
2823
+ updateRowAccess(row, {
2824
+ type: "table",
2825
+ min_role_read: Number(roleId),
2826
+ min_role_write: toNumberOrUndefined(row.dataset.minRoleWrite),
2827
+ });
2828
+ } else if (item.type === "view") {
2829
+ updateRowAccess(row, { type: "view", min_role: Number(roleId) });
2830
+ } else if (item.type === "page") {
2831
+ updateRowAccess(row, { type: "page", min_role: Number(roleId) });
2832
+ }
2833
+ }
2834
+ });
2835
+ } catch (e) {
2836
+ console.error("Failed to set role for selected items", e);
2837
+ alert("Failed to set role for selected items");
2838
+ }
2839
+ buttonEl.disabled = false;
2840
+ updateSelectionUI();
2841
+ };
2842
+
2843
+ // --- URL state restore ---
2844
+
2845
+ const initFromUrl = () => {
2846
+ const params = new URLSearchParams(window.location.search);
2847
+ const q = params.get("q") || "";
2848
+ if (q) searchInput.value = q;
2849
+ const deep = params.get("deep") === "on";
2850
+ if (deep && deepSearchToggle) {
2851
+ deepSearchToggle.checked = true;
2852
+ deepSearchToggle.dispatchEvent(new Event("change"));
2853
+ }
2854
+ const shouldExpandExtended =
2855
+ params.get("extended") === "on" ||
2856
+ EXTENDED_TYPES.some((t) => params.get(t + "s") === "on");
2857
+ ALL_TYPES.forEach((t) => {
2858
+ if (params.get(t + "s") === "on") activeFilters.add(t);
2859
+ });
2860
+ filterButtons.forEach((btn) => {
2861
+ const t = btn.dataset.entityType;
2862
+ if (activeFilters.has(t)) {
2863
+ btn.classList.add("btn-primary");
2864
+ btn.classList.remove("btn-outline-primary");
2865
+ }
2866
+ });
2867
+ const tagsParam = params.get("tags");
2868
+ if (tagsParam) {
2869
+ tagsParam
2870
+ .split(",")
2871
+ .filter(Boolean)
2872
+ .forEach((id) => activeTags.add(id));
2873
+ }
2874
+ tagButtons.forEach((btn) => {
2875
+ const id = btn.dataset.tagId;
2876
+ if (activeTags.has(id)) {
2877
+ btn.classList.add("active", "btn-secondary");
2878
+ btn.classList.remove("btn-outline-secondary");
2879
+ }
2880
+ });
2881
+ return { shouldExpandExtended };
2882
+ };
2883
+
2884
+ // --- Event listeners ---
2885
+
2886
+ searchInput.addEventListener("input", filterEntities);
2887
+ searchInput.addEventListener("keydown", (e) => {
2888
+ if (e.key === "Escape" || e.key === "Esc") {
2889
+ e.preventDefault();
2890
+ searchInput.blur();
2891
+ }
2892
+ });
2893
+
2894
+ if (deepSearchToggle) {
2895
+ let deepSearchLoading = false;
2896
+ deepSearchToggle.addEventListener("change", function () {
2897
+ if (this.checked && !window.ENTITY_DEEP_SEARCH && !deepSearchLoading) {
2898
+ deepSearchLoading = true;
2899
+ fetch("/entities/deep-search-index")
2900
+ .then((r) => r.json())
2901
+ .then((data) => {
2902
+ window.ENTITY_DEEP_SEARCH = data;
2903
+ deepSearchLoading = false;
2904
+ filterEntities();
2905
+ })
2906
+ .catch(() => {
2907
+ deepSearchLoading = false;
2908
+ });
2909
+ } else {
2910
+ filterEntities();
2911
+ }
2912
+ });
2913
+ }
2914
+
2915
+ filterButtons.forEach((btn) => {
2916
+ btn.addEventListener("click", function () {
2917
+ const entityType = this.dataset.entityType;
2918
+ if (!activeFilters.has(entityType)) {
2919
+ activeFilters.add(entityType);
2920
+ this.classList.add("btn-primary");
2921
+ this.classList.remove("btn-outline-primary");
2922
+ } else {
2923
+ activeFilters.delete(entityType);
2924
+ this.classList.remove("btn-primary");
2925
+ this.classList.add("btn-outline-primary");
2926
+ }
2927
+ filterEntities();
2928
+ if (searchInput && typeof searchInput.focus === "function") {
2929
+ searchInput.focus({ preventScroll: true });
2930
+ }
2931
+ });
2932
+ });
2933
+
2934
+ tagButtons.forEach((btn) => {
2935
+ btn.addEventListener("click", function () {
2936
+ const tid = this.dataset.tagId;
2937
+ if (!activeTags.has(tid)) {
2938
+ activeTags.add(tid);
2939
+ this.classList.add("active", "btn-secondary");
2940
+ this.classList.remove("btn-outline-secondary");
2941
+ } else {
2942
+ activeTags.delete(tid);
2943
+ this.classList.remove("active", "btn-secondary");
2944
+ this.classList.add("btn-outline-secondary");
2945
+ }
2946
+ filterEntities();
2947
+ });
2948
+ });
2949
+
2950
+ const keyboardShortcutTypeMap = {
2951
+ KeyT: "table",
2952
+ KeyV: "view",
2953
+ KeyP: "page",
2954
+ KeyR: "trigger",
2955
+ KeyM: "module",
2956
+ KeyU: "user",
2957
+ };
2958
+
2959
+ document.addEventListener("keydown", async (e) => {
2960
+ const isFromSearchInput = e.target === searchInput;
2961
+ const typingTarget = isTypingTarget(e.target);
2962
+
2963
+ if (e.altKey && !e.ctrlKey && !e.metaKey) {
2964
+ const type = keyboardShortcutTypeMap[e.code];
2965
+ if (type) {
2966
+ e.preventDefault();
2967
+ if (EXTENDED_TYPES.includes(type) && !isExtendedExpanded) {
2968
+ await window.toggleEntityExpanded(true);
2969
+ }
2970
+ const btn = filterButtonsByType[type];
2971
+ if (btn) {
2972
+ btn.click();
2973
+ if (searchInput && typeof searchInput.focus === "function") {
2974
+ searchInput.focus({ preventScroll: true });
2975
+ }
2976
+ }
2977
+ return;
2978
+ }
2979
+ if (deepSearchToggle && e.code === "KeyS") {
2980
+ e.preventDefault();
2981
+ deepSearchToggle.checked = !deepSearchToggle.checked;
2982
+ deepSearchToggle.dispatchEvent(new Event("change"));
2983
+ if (searchInput && typeof searchInput.focus === "function") {
2984
+ searchInput.focus({ preventScroll: true });
2985
+ }
2986
+ }
2987
+ return;
2988
+ }
2989
+ if (typingTarget && !isFromSearchInput) return;
2990
+
2991
+ if (
2992
+ (e.metaKey || e.ctrlKey) &&
2993
+ !e.altKey &&
2994
+ (e.key === "a" || e.key === "A")
2995
+ ) {
2996
+ const visibleRows = getSelectableVisibleRows();
2997
+ if (!visibleRows.length) return;
2998
+ e.preventDefault();
2999
+ visibleRows.forEach((row) => {
3000
+ if (row.dataset.entityKey) selectedKeys.add(row.dataset.entityKey);
3001
+ });
3002
+ lastSelectedIndex = visibleRows.length - 1;
3003
+ updateSelectionUI();
3004
+ }
3005
+ });
3006
+
3007
+ if (clearSelectionBtn) {
3008
+ clearSelectionBtn.addEventListener("click", () => {
3009
+ clearSelection();
3010
+ filterEntities();
3011
+ });
3012
+ }
3013
+ if (bulkTagSelect) {
3014
+ bulkTagSelect.addEventListener("change", () => updateSelectionUI());
3015
+ }
3016
+ if (bulkRoleReadSelect) {
3017
+ bulkRoleReadSelect.addEventListener("change", () => {
3018
+ markSelectChangedByUser(bulkRoleReadSelect);
3019
+ updateSelectionUI();
3020
+ });
3021
+ }
3022
+ if (bulkRoleWriteSelect) {
3023
+ bulkRoleWriteSelect.addEventListener("change", () => {
3024
+ markSelectChangedByUser(bulkRoleWriteSelect);
3025
+ updateSelectionUI();
3026
+ });
3027
+ }
3028
+ if (bulkApplyTagBtn)
3029
+ bulkApplyTagBtn.addEventListener("click", doBulkApplyTag);
3030
+ if (bulkDownloadPackBtn)
3031
+ bulkDownloadPackBtn.addEventListener("click", doBulkDownloadPack);
3032
+ if (bulkApplyRoleReadBtn) {
3033
+ bulkApplyRoleReadBtn.addEventListener("click", () =>
3034
+ doBulkApplyRole("read")
3035
+ );
3036
+ }
3037
+ if (bulkApplyRoleWriteBtn) {
3038
+ bulkApplyRoleWriteBtn.addEventListener("click", () =>
3039
+ doBulkApplyRole("write")
3040
+ );
3041
+ }
3042
+
3043
+ if (bulkDeleteBtn) {
3044
+ bulkDeleteBtn.addEventListener("click", async () => {
3045
+ const items = collectSelectionItems();
3046
+ if (!items.length) return;
3047
+ const template =
3048
+ TXT_DELETE_SELECTED_CONFIRM || TXT_DELETE_SELECTED_FALLBACK;
3049
+ const msg = template.includes("%s")
3050
+ ? template.replace("%s", items.length)
3051
+ : template;
3052
+ if (!window.confirm(msg)) return;
3053
+ bulkDeleteBtn.disabled = true;
3054
+ try {
3055
+ const res = await fetch("/entities/bulk-delete", {
3056
+ method: "POST",
3057
+ headers: {
3058
+ "Content-Type": "application/json",
3059
+ "CSRF-Token": window._sc_globalCsrf || "",
3060
+ },
3061
+ body: JSON.stringify({ items }),
3062
+ });
3063
+ if (!res.ok) throw new Error(await res.text());
3064
+ const payload = await res.json();
3065
+ const keysToRemove = new Set(
3066
+ payload.deletedKeys && payload.deletedKeys.length
3067
+ ? payload.deletedKeys
3068
+ : items.map((i) => i.key)
3069
+ );
3070
+ removeRowsByKeys(keysToRemove);
3071
+ if (payload.errors && payload.errors.length) {
3072
+ console.error("Bulk delete errors", payload.errors);
3073
+ showBulkDeleteErrors(payload.errors);
3074
+ }
3075
+ clearSelection();
3076
+ await refreshExtendedEntitiesAfterDelete();
3077
+ filterEntities();
3078
+ } catch (e) {
3079
+ console.error(e);
3080
+ alert(TXT_DELETE_FAILED || "Failed to delete selected items");
3081
+ }
3082
+ bulkDeleteBtn.disabled = false;
3083
+ });
3084
+ }
3085
+
3086
+ if (entitiesTbody) {
3087
+ entitiesTbody.addEventListener("click", (e) => {
3088
+ const row = e.target.closest(".entity-row");
3089
+ if (!row) return;
3090
+ if (e.target.closest("a, button, input, select, textarea, label")) return;
3091
+ if (!isRowSelectable(row)) {
3092
+ lastSelectedIndex = null;
3093
+ return;
3094
+ }
3095
+ const visibleRows = getSelectableVisibleRows();
3096
+ const index = visibleRows.indexOf(row);
3097
+ const key = row.dataset.entityKey;
3098
+ if (!key) return;
3099
+
3100
+ if (
3101
+ e.shiftKey &&
3102
+ lastSelectedIndex !== null &&
3103
+ visibleRows[lastSelectedIndex]
3104
+ ) {
3105
+ selectedKeys.clear();
3106
+ const start = Math.min(lastSelectedIndex, index);
3107
+ const end = Math.max(lastSelectedIndex, index);
3108
+ for (let i = start; i <= end; i++) {
3109
+ const rangeKey = visibleRows[i].dataset.entityKey;
3110
+ if (rangeKey) selectedKeys.add(rangeKey);
3111
+ }
3112
+ } else if (e.metaKey || e.ctrlKey) {
3113
+ if (selectedKeys.has(key)) selectedKeys.delete(key);
3114
+ else selectedKeys.add(key);
3115
+ lastSelectedIndex = index;
3116
+ } else {
3117
+ const onlyThisSelected =
3118
+ selectedKeys.size === 1 && selectedKeys.has(key);
3119
+ selectedKeys.clear();
3120
+ if (!onlyThisSelected) {
3121
+ selectedKeys.add(key);
3122
+ lastSelectedIndex = index;
3123
+ } else {
3124
+ lastSelectedIndex = null;
3125
+ }
3126
+ }
3127
+ updateSelectionUI();
3128
+ });
3129
+ }
3130
+
3131
+ // --- Init ---
3132
+
3133
+ const { shouldExpandExtended } = initFromUrl();
3134
+ if (shouldExpandExtended) {
3135
+ window.toggleEntityExpanded(true);
3136
+ } else {
3137
+ filterEntities();
3138
+ }
3139
+ searchInput.focus();
3140
+ updateSelectionUI();
3141
+ setTimeout(updateLegacyButton, 200);
3142
+ }