@saltcorn/server 1.6.0-beta.3 → 1.6.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/app.js +14 -5
- package/auth/routes.js +175 -60
- package/auth/testhelp.js +9 -19
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/_saltcorn_admin-models.models_snapshot.Snapshot.html +2 -2
- package/docs/classes/_saltcorn_common-code.relations_relation.Relation.html +3 -3
- package/docs/classes/_saltcorn_common-code.relations_relations_finder.RelationsFinder.html +5 -5
- package/docs/classes/_saltcorn_data.diagram_cy_raster.CytoscapeRaster.html +4 -4
- package/docs/classes/_saltcorn_data.diagram_nodes_dummy_node.DummyNode.html +4 -4
- package/docs/classes/_saltcorn_data.diagram_nodes_node.Node.html +4 -4
- package/docs/classes/_saltcorn_data.diagram_nodes_page_node.PageNode.html +4 -4
- package/docs/classes/_saltcorn_data.diagram_nodes_table_node.TableNode.html +4 -4
- package/docs/classes/_saltcorn_data.diagram_nodes_trigger_node.TriggerNode.html +4 -4
- package/docs/classes/_saltcorn_data.diagram_nodes_view_node.ViewNode.html +4 -4
- package/docs/classes/_saltcorn_data.mobile-mocks_node_async_hooks.AsyncLocalStorage.html +2 -2
- package/docs/classes/_saltcorn_data.models_crash.Crash.html +2 -2
- package/docs/classes/_saltcorn_data.models_eventlog.EventLog.html +2 -2
- package/docs/classes/_saltcorn_data.models_field.Field.html +9 -9
- package/docs/classes/_saltcorn_data.models_fieldrepeat.FieldRepeat.html +2 -2
- package/docs/classes/_saltcorn_data.models_file.File.html +21 -21
- package/docs/classes/_saltcorn_data.models_form.Form.html +2 -2
- package/docs/classes/_saltcorn_data.models_internal_mail_queue.MailQueue.html +4 -4
- package/docs/classes/_saltcorn_data.models_internal_push_message_helper.PushMessageHelper.html +7 -7
- package/docs/classes/_saltcorn_data.models_library.Library.html +2 -2
- package/docs/classes/_saltcorn_data.models_model.Model.html +2 -2
- package/docs/classes/_saltcorn_data.models_model_instance.ModelInstance.html +2 -2
- package/docs/classes/_saltcorn_data.models_notification.Notification.html +2 -2
- package/docs/classes/_saltcorn_data.models_page.Page.html +12 -11
- package/docs/classes/_saltcorn_data.models_page_group.PageGroup.html +16 -16
- package/docs/classes/_saltcorn_data.models_page_group_member.PageGroupMember.html +8 -8
- package/docs/classes/_saltcorn_data.models_plugin.Plugin.html +44 -10
- package/docs/classes/_saltcorn_data.models_role.Role.html +2 -2
- package/docs/classes/_saltcorn_data.models_table.Table.html +67 -65
- package/docs/classes/_saltcorn_data.models_table_constraints.TableConstraint.html +2 -2
- package/docs/classes/_saltcorn_data.models_tag.Tag.html +2 -2
- package/docs/classes/_saltcorn_data.models_tag_entry.TagEntry.html +2 -2
- package/docs/classes/_saltcorn_data.models_trigger.Trigger.html +21 -20
- package/docs/classes/_saltcorn_data.models_user.User.html +32 -32
- package/docs/classes/_saltcorn_data.models_view.View.html +16 -15
- package/docs/classes/_saltcorn_data.models_workflow.Workflow.html +2 -2
- package/docs/classes/_saltcorn_data.models_workflow_run.WorkflowRun.html +2 -2
- package/docs/classes/_saltcorn_data.models_workflow_step.WorkflowStep.html +2 -2
- package/docs/classes/_saltcorn_data.models_workflow_trace.MetaData.html +2 -2
- package/docs/classes/_saltcorn_data.models_workflow_trace.WorkflowTrace.html +2 -2
- package/docs/classes/_saltcorn_mobile-builder.mobile-builder.MobileBuilder.html +2 -2
- package/docs/classes/_saltcorn_mobile-builder.utils_capacitor-helper.CapacitorHelper.html +2 -2
- package/docs/enums/_saltcorn_common-code.relations_relation_types.RelationType.html +2 -2
- package/docs/enums/_saltcorn_common-code.relations_relation_types.ViewDisplayType.html +2 -2
- package/docs/functions/_saltcorn_admin-models.models_config-check.runConfigurationCheck.html +1 -1
- package/docs/functions/_saltcorn_common-code.relations_relation_helpers.buildRelationPath.html +1 -1
- package/docs/functions/_saltcorn_common-code.relations_relation_helpers.buildTableCaches.html +1 -1
- package/docs/functions/_saltcorn_common-code.relations_relation_helpers.parseLegacyRelation.html +1 -1
- package/docs/functions/_saltcorn_common-code.relations_relation_helpers.parseRelationPath.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.fixturesData.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.withAnotherUserField.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.withKeyFromLayerThree.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.withKeyFromLayerTwo.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.withMultipleInbounds.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.withSecondTopicField.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.withSimplePostTopicrelation.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.action_link.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.action_url.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.fill_presets.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.getForm.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.get_view_link_query.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.get_viewable_fields.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.get_viewable_fields_from_layout.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.make_link.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.objToQueryString.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.parse_view_select.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.setDateLocales.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.splitUniques.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.standardBlockDispatch.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.standardLayoutRowVisitor.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.transformForm.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.updateViewSelect.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.view_linker.html +1 -1
- package/docs/functions/_saltcorn_data.db_connect_mobile.getConnectObject.html +1 -1
- package/docs/functions/_saltcorn_data.db_reset_schema.reset.html +1 -1
- package/docs/functions/_saltcorn_data.diagram_cy_generate_utils.generateCyCode.html +1 -1
- package/docs/functions/_saltcorn_data.diagram_cy_generate_utils.genereateCyCfg.html +1 -1
- package/docs/functions/_saltcorn_data.diagram_node_extract_utils.buildObjectTrees.html +1 -1
- package/docs/functions/_saltcorn_data.diagram_node_extract_utils.extractFromColumns.html +1 -1
- package/docs/functions/_saltcorn_data.diagram_node_extract_utils.extractFromLayout.html +1 -1
- package/docs/functions/_saltcorn_data.diagram_node_extract_utils.extractViewToCreate.html +1 -1
- package/docs/functions/_saltcorn_data.migrate.create_blank_migration.html +1 -1
- package/docs/functions/_saltcorn_data.migrate.getMigrationsInDB.html +1 -1
- package/docs/functions/_saltcorn_data.migrate.migrate.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202102091312.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202210051058.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202210101540.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202304281224.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202307211459.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202502131103.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202508011455.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202510152058.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202603101553.sql_pg.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202604111200.sql_pg.html +1 -0
- package/docs/functions/_saltcorn_data.mobile-mocks_node_child_process.execSync.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs.createReadStream.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs.readdirSync.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs.writeFileSync.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.mkdir.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.readFile.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.readdir.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.stat.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.unlink.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.writeFile.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_latest-version.latestVersion.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_v8.deserialize.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_v8.serialize.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_npm_env-paths.envPaths.html +1 -1
- package/docs/functions/_saltcorn_data.model-helper.get_predictor.html +1 -1
- package/docs/functions/_saltcorn_data.model-helper.run_jupyter_model.html +1 -1
- package/docs/functions/_saltcorn_data.model-helper.shorten_trackback.html +1 -1
- package/docs/functions/_saltcorn_data.model-helper.write_csv.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_async_json_stream.async_json_stream.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_query.aggregation_query_fields.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_query.getAggAndField.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_query.joinfield_renamer.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_query.process_aggregations.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.buildKeyFromRelative.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.copyObject.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.deleteObject.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.downloadBuffer.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getPublicFileUrl.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getResolvedBucket.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getS3Client.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getServeUrl.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getSignedFileUrl.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.headObject.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.isS3Enabled.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.listS3Folder.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.publicUrlToRelativePath.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.relativeKeyToPath.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.setObjectMetadata.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.uploadBuffer.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_table_helper.boolExamples.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_table_helper.colorExamples.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_table_helper.floatExamples.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_table_helper.get_formula_examples.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_table_helper.intExamples.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_table_helper.stringExamples.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.build_schema_data.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.calcfldViewConfig.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.calcfldViewOptions.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.calcrelViewOptions.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.displayType.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.field_picker_fields.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.generate_joined_query.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.getActionConfigFields.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.get_child_views.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.get_inbound_relation_opts.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.get_inbound_self_relation_opts.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.get_link_view_opts.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.get_many_to_many_relation_opts.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.get_parent_views.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.initial_config_all_fields.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.json_list_to_external_table.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.link_view.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.pathToState.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.picked_fields_to_query.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.readState.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.readStateStrict.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.runCollabEvents.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.run_action_column.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.stateFieldsToQuery.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.stateFieldsToWhere.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.stateToQueryString.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.strictParseInt.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-testing.auto_test_plugin.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-testing.check_view_columns.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-testing.generate_attributes.html +1 -1
- package/docs/functions/_saltcorn_data.standard-menu.create_standard_menu.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertIsErrorMsg.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertIsErrorsMsg.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertIsRow.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertIsSet.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertIsType.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertsIsSuccessMessage.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertsObjectIsUser.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.createAnotherUserField.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.createKeyFromLevelTwo.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.createLevelThreeInbound.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.createMultipleInbounds.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.createSecondTopicField.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.prepareEmployeeDepartment.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.prepareSimpleTopicPostRelation.html +1 -1
- package/docs/functions/_saltcorn_data.tests_remote_query_helper.deleteViewFromServer.html +1 -1
- package/docs/functions/_saltcorn_data.tests_remote_query_helper.prepareQueryEnviroment.html +1 -1
- package/docs/functions/_saltcorn_data.tests_remote_query_helper.sendViewToServer.html +1 -1
- package/docs/functions/_saltcorn_data.translate.hasLLM.html +1 -1
- package/docs/functions/_saltcorn_data.translate.translate.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.ftsFieldsSqlExpr.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.mkSelectOptions.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.mkWhere.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.orderByIsObject.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.orderByIsOperator.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.prefixFieldsInWhere.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.sqlBinOp.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.sqlFun.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.sqlsanitize.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.sqlsanitizeAllowDots.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.subSelectWhere.html +1 -1
- package/docs/functions/_saltcorn_db-common.multi-tenant.enable_multi_tenant.html +1 -1
- package/docs/functions/_saltcorn_db-common.multi-tenant.getRequestContext.html +1 -1
- package/docs/functions/_saltcorn_db-common.multi-tenant.getTenantSchema.html +1 -1
- package/docs/functions/_saltcorn_db-common.multi-tenant.init.html +1 -1
- package/docs/functions/_saltcorn_db-common.multi-tenant.is_it_multi_tenant.html +1 -1
- package/docs/functions/_saltcorn_db-common.multi-tenant.runWithTenant.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.buildInsertBulkSql.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.buildInsertSql.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.commitAndBeginNewTransaction.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.doCount.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.doDeleteWhere.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.doListScTables.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.doListTables.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.doListUserDefinedTables.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.do_add_index.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.do_drop_index.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.mkVal.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.openOrUseTransaction.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.reprAsJson.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.slugify.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.tryCatchInTransaction.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.whenTransactionisFree.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.withTransaction.html +1 -1
- package/docs/functions/_saltcorn_markup.mktag.mkTag.html +1 -1
- package/docs/functions/_saltcorn_markup.tabs.tabs.html +1 -1
- package/docs/functions/_saltcorn_markup.workflow.renderWorkflow.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.androidFeatures.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.androidPermissions.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.buildTablesFile.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copyPrepopulatedDb.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copyServerFiles.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copyShareExtFiles.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copySiteLogo.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copyTranslationFiles.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.createSqliteDb.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.extractDomain.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.generateAndroidVersionCode.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.hasAuthMethod.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyAndroidManifest.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyAppDelegate.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyConfigXml.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyGradleConfig.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyInfoPlist.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyShareViewController.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyXcodeProjectFile.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepAppIcon.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareAppIcon.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareBuildDir.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareExportOptionsPlist.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareSplashIcon.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareSplashPage.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.runAddEntitlementsScript.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeCapacitorConfig.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeCfgFile.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeDataExtractionRules.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeEntitlementsPlist.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeNetworkSecurityConfig.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writePodfile.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writePrivacyInfo.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.bundleMobileAppCode.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.bundlePackagesAndPlugins.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.copyOptionalSource.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.copyPluginMobileAppDirs.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.copyPublicDirs.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.add_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.add_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.count.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.deleteWhere.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.drop_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.drop_reset_schema.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.drop_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.init.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.insert.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.insertRows.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.listScTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.listTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.listUserDefinedTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.query.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.select.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.selectMaybeOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.selectOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.setConnectionObject.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.tableExists.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.time.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.update.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.add_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.add_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.begin.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.changeConnection.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.close.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.commit.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.count.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.deleteWhere.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.dropTable.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.dropTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.drop_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.drop_reset_schema.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.drop_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.getVersion.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.get_db_filepath.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.get_sql_logging.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.init.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.insert.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.listScTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.listTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.listUserDefinedTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.query.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.rollback.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.select.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.selectMaybeOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.selectOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.set_sql_logging.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.sql_log.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.update.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.updateWhere.html +1 -1
- package/docs/functions/_saltcorn_types.base_types.instanceOWithHtmlFile.html +1 -1
- package/docs/functions/_saltcorn_types.base_types.instanceOfFieldViewEdit.html +1 -1
- package/docs/functions/_saltcorn_types.base_types.instanceOfFieldViewShow.html +1 -1
- package/docs/functions/_saltcorn_types.base_types.instanceOfPack.html +1 -1
- package/docs/functions/_saltcorn_types.common_types.instanceOfErrorMsg.html +1 -1
- package/docs/functions/_saltcorn_types.common_types.instanceOfSuccessMsg.html +1 -1
- package/docs/functions/_saltcorn_types.common_types.instanceOfType.html +1 -1
- package/docs/functions/_saltcorn_types.model-abstracts_abstract_field.instanceOfField.html +1 -1
- package/docs/functions/_saltcorn_types.model-abstracts_abstract_page.instanceOfPage.html +1 -1
- package/docs/functions/_saltcorn_types.model-abstracts_abstract_plugin.instanceOfPlugin.html +1 -1
- package/docs/functions/_saltcorn_types.model-abstracts_abstract_table.instanceOfTable.html +1 -1
- package/docs/functions/_saltcorn_types.model-abstracts_abstract_view.instanceOfView.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/interfaces/_saltcorn_db-common.dbtypes.UserLike.html +2 -2
- package/docs/interfaces/_saltcorn_markup.types.TagExports.html +2 -2
- package/docs/interfaces/_saltcorn_mobile-builder.utils_common-build-utils.ScCapacitorConfig.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_field.AbstractField.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_field.AbstractFieldRepeat.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_form.AbstractForm.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_page.AbstractPage.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_page_group.AbstractPageGroup.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_page_group_member.AbstractPageGroupMember.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_plugin.AbstractPlugin.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_role.AbstractRole.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_table.AbstractTable.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_tag.AbstractTag.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_tag_entry.AbstractTagEntry.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_trigger.AbstractTrigger.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_user.AbstractUser.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_user.ForUserRequest.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_view.AbstractView.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_workflow.AbstractWorkflow.html +2 -2
- package/docs/modules/_saltcorn_data.html +1 -1
- package/docs/modules/_saltcorn_data.migrations_202604091531.html +1 -0
- package/docs/modules/_saltcorn_data.migrations_202604111200.html +1 -0
- package/docs/modules/_saltcorn_data.mobile-mocks_npm_npm-registry-fetch.html +1 -0
- package/docs/modules/_saltcorn_data.mobile-mocks_saltcorn_admin-models-tenant.html +1 -0
- package/docs/modules/_saltcorn_data.mobile-mocks_saltcorn_plugins-loader-plugin-installer.html +1 -0
- package/docs/modules/_saltcorn_data.mobile-mocks_saltcorn_plugins-loader-stable-versioning.html +1 -0
- package/docs/types/_saltcorn_data.diagram_node_extract_utils.ExtractOpts.html +2 -2
- package/docs/types/_saltcorn_data.diagram_node_extract_utils.ExtractResult.html +2 -2
- package/docs/types/_saltcorn_data.diagram_nodes_node.NodeType.html +1 -1
- package/docs/types/_saltcorn_data.models_config.ConfigTypes.html +1 -1
- package/docs/types/_saltcorn_data.models_config.SingleConfig.html +1 -1
- package/docs/types/_saltcorn_data.models_eventlog.EventLogCfg.html +2 -2
- package/docs/types/_saltcorn_data.models_file.FileCfg.html +2 -2
- package/docs/types/_saltcorn_data.models_form.AdditionalButton.html +1 -1
- package/docs/types/_saltcorn_data.models_form.FormCfg.html +2 -2
- package/docs/types/_saltcorn_data.models_internal_push_message_helper.MobileSubscription.html +2 -2
- package/docs/types/_saltcorn_data.models_internal_push_message_helper.WebPushSubscription.html +2 -2
- package/docs/types/_saltcorn_data.models_internal_s3_helpers.S3HeadResult.html +1 -1
- package/docs/types/_saltcorn_data.models_internal_s3_helpers.S3ListResult.html +2 -2
- package/docs/types/_saltcorn_data.models_page_group.ScreenInfoParams.html +2 -2
- package/docs/types/_saltcorn_data.models_table.ChildRelations.html +2 -2
- package/docs/types/_saltcorn_data.models_table.ParentRelations.html +2 -2
- package/docs/types/_saltcorn_data.models_table.RelationData.html +2 -2
- package/docs/types/_saltcorn_data.models_tag_entry.TagEntryCfg.html +1 -1
- package/docs/types/_saltcorn_data.models_view.FindViewsPred.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.AggregationOptions.html +2 -2
- package/docs/types/_saltcorn_db-common.dbtypes.CoordOpts.html +2 -2
- package/docs/types/_saltcorn_db-common.dbtypes.DatabaseClient.html +2 -2
- package/docs/types/_saltcorn_db-common.dbtypes.JoinField.html +2 -2
- package/docs/types/_saltcorn_db-common.dbtypes.JoinFields.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.JoinOptions.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.JsonPath.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.JsonPathElem.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.Operator.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.PartialSome.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.PrimaryKeyValue.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.Row.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.SelectOptions.html +2 -2
- package/docs/types/_saltcorn_db-common.dbtypes.StrongRow.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.SubselectOptions.html +2 -2
- package/docs/types/_saltcorn_db-common.dbtypes.Value.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.Where.html +2 -2
- package/docs/types/_saltcorn_db-common.sqlite-commons.SqlAndValues.html +2 -2
- package/docs/types/_saltcorn_db-common.types.DbExportsType.html +2 -2
- package/docs/types/_saltcorn_db-common.types.GenObj.html +1 -1
- package/docs/types/_saltcorn_markup.emergency_layout.WrapParams.html +2 -2
- package/docs/types/_saltcorn_markup.helpers.CheckBoxGroupOpts.html +2 -2
- package/docs/types/_saltcorn_markup.helpers.PaginationOpts.html +2 -2
- package/docs/types/_saltcorn_markup.helpers.RadioGroupOpts.html +2 -2
- package/docs/types/_saltcorn_markup.helpers.SearchBarOpts.html +2 -2
- package/docs/types/_saltcorn_markup.layout.RenderOpts-1.html +2 -2
- package/docs/types/_saltcorn_markup.layout.RenderOpts.html +2 -2
- package/docs/types/_saltcorn_markup.mjml-layout.RenderOpts.html +2 -2
- package/docs/types/_saltcorn_markup.table.HeadersParams.html +2 -2
- package/docs/types/_saltcorn_markup.table.OptsParams.html +2 -2
- package/docs/types/_saltcorn_markup.types.AttributeVal.html +1 -1
- package/docs/types/_saltcorn_markup.types.Attributes.html +2 -2
- package/docs/types/_saltcorn_markup.types.ClassVal.html +1 -1
- package/docs/types/_saltcorn_markup.types.Element.html +1 -1
- package/docs/types/_saltcorn_markup.types.Falsy.html +1 -1
- package/docs/types/_saltcorn_markup.types.StyleVal.html +1 -1
- package/docs/types/_saltcorn_markup.types.TagFunction.html +1 -1
- package/docs/types/_saltcorn_mobile-builder.mobile-builder.IosCfg.html +2 -2
- package/docs/types/_saltcorn_mobile-builder.utils_capacitor-helper.CapacitorCfg.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Action.html +3 -3
- package/docs/types/_saltcorn_types.base_types.AuthenticationMethod.html +2 -2
- package/docs/types/_saltcorn_types.base_types.CalcJoinfield.html +2 -2
- package/docs/types/_saltcorn_types.base_types.CapacitorPlugin.html +2 -2
- package/docs/types/_saltcorn_types.base_types.CodePagePack.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Column.html +2 -2
- package/docs/types/_saltcorn_types.base_types.ConnectObjType.html +2 -2
- package/docs/types/_saltcorn_types.base_types.ConnectedObjects.html +2 -2
- package/docs/types/_saltcorn_types.base_types.CopilotSkill.html +2 -2
- package/docs/types/_saltcorn_types.base_types.ErrorObj.html +2 -2
- package/docs/types/_saltcorn_types.base_types.FieldLike.html +1 -1
- package/docs/types/_saltcorn_types.base_types.FieldView.html +1 -1
- package/docs/types/_saltcorn_types.base_types.Header.html +2 -2
- package/docs/types/_saltcorn_types.base_types.JoinFieldOption.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Layout.html +1 -1
- package/docs/types/_saltcorn_types.base_types.MenuItem.html +2 -2
- package/docs/types/_saltcorn_types.base_types.MobileConfig.html +2 -2
- package/docs/types/_saltcorn_types.base_types.ModelPattern.html +6 -6
- package/docs/types/_saltcorn_types.base_types.Pack.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Plugin.html +1 -1
- package/docs/types/_saltcorn_types.base_types.PluginFunction.html +2 -2
- package/docs/types/_saltcorn_types.base_types.PluginLayout.html +2 -2
- package/docs/types/_saltcorn_types.base_types.PluginRoute.html +2 -2
- package/docs/types/_saltcorn_types.base_types.PluginSourceType.html +1 -1
- package/docs/types/_saltcorn_types.base_types.PluginType.html +2 -2
- package/docs/types/_saltcorn_types.base_types.PluginWrap.html +1 -1
- package/docs/types/_saltcorn_types.base_types.PluginWrapArg.html +2 -2
- package/docs/types/_saltcorn_types.base_types.RelationOption.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Req.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Res.html +2 -2
- package/docs/types/_saltcorn_types.base_types.ResultType.html +2 -2
- package/docs/types/_saltcorn_types.base_types.RouteAction.html +1 -1
- package/docs/types/_saltcorn_types.base_types.RunExtra.html +1 -1
- package/docs/types/_saltcorn_types.base_types.SlugStepType.html +2 -2
- package/docs/types/_saltcorn_types.base_types.StepResType.html +1 -1
- package/docs/types/_saltcorn_types.base_types.SubField.html +2 -2
- package/docs/types/_saltcorn_types.base_types.TableProvider.html +2 -2
- package/docs/types/_saltcorn_types.base_types.TableQuery.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Tablely.html +1 -1
- package/docs/types/_saltcorn_types.base_types.ViewTemplate.html +2 -2
- package/docs/types/_saltcorn_types.common_types.ErrorMessage.html +2 -2
- package/docs/types/_saltcorn_types.common_types.GenObj.html +1 -1
- package/docs/types/_saltcorn_types.common_types.ReqRes.html +2 -2
- package/docs/types/_saltcorn_types.common_types.ResultMessage.html +1 -1
- package/docs/types/_saltcorn_types.common_types.SuccessMessage.html +2 -2
- package/docs/types/_saltcorn_types.common_types.Type.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_event_log.EventLogPack.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_field.FieldCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_field.InputType.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_form.AdditionalButton.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_library.LibraryCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_library.LibraryPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_model.ModelCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_model.ModelPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_model_instance.ModelInstanceCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_model_instance.ModelInstancePack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_page.PageCfg.html +3 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_page.PagePack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group.PageGroupCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group.PageGroupPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group_member.PageGroupMemberCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group_member.PageGroupMemberPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_plugin.PluginCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_plugin.PluginPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_role.RoleCfg.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_role.RolePack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_table.TableCfg.html +3 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_table.TablePack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_tag.TagPack.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_tag_entry.TagEntryPack.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_trigger.TriggerCfg.html +3 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_trigger.TriggerPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_view.ViewCfg.html +3 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_view.ViewPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow.ConfigWorkflowStep.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow.RunResult.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_run.WorkflowRunCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_step.WorkflowStepCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_step.WorkflowStepPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_trace.WorkflowTraceCfg.html +2 -2
- package/docs/variables/_saltcorn_admin-models..backup.create_backup.html +1 -1
- package/docs/variables/_saltcorn_admin-models..backup.create_csv_from_rows.html +1 -1
- package/docs/variables/_saltcorn_admin-models..backup.restore.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.add_to_menu.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.can_install_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.fetch_available_packs.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.fetch_pack_by_name.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.install_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.library_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.model_instance_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.model_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.page_group_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.page_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.plugin_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.role_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.table_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.trigger_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.uninstall_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.view_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.copy_tenant_template.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.create_tenant.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.deleteTenant.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.domain_sanitize.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.eachTenant.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.getAllTenantRows.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.getAllTenants.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.insertTenant.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.switchToTenant.html +1 -1
- package/docs/variables/_saltcorn_admin-models.models_backup.backup.html +1 -1
- package/docs/variables/_saltcorn_admin-models.pack.pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models.tenant.tenant.html +1 -1
- package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedFive.html +1 -1
- package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedFour.html +1 -1
- package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedOne.html +1 -1
- package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedSix.html +1 -1
- package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedThree.html +1 -1
- package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedTwo.html +1 -1
- package/docs/variables/_saltcorn_data..migrations.html +1 -1
- package/docs/variables/_saltcorn_data..plugin_helper.run_action_column.html +1 -1
- package/docs/variables/_saltcorn_data..utils.NotAuthorized.html +1 -1
- package/docs/variables/_saltcorn_data..utils.isPushEnabled.html +1 -1
- package/docs/variables/_saltcorn_data..utils.sleep.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_actions.actions.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.fieldviews.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_fileview.fileviews.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_index.index.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.types.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_edit.edit.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_feed.feed.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_filter.filter.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_list.list.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_listshowlist.listshowlist.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_room.room-1.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_room.room.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_show.show.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.edit_build_in_actions.html +1 -1
- package/docs/variables/_saltcorn_data.contract.contract.html +1 -1
- package/docs/variables/_saltcorn_data.db_connect.connect.html +1 -1
- package/docs/variables/_saltcorn_data.db_fa5-icons.fa5Icons.html +1 -1
- package/docs/variables/_saltcorn_data.db_fixtures.fixtures.html +1 -1
- package/docs/variables/_saltcorn_data.db_index.dbExports.html +1 -1
- package/docs/variables/_saltcorn_data.db_state.state.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202005141503.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202005241712.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202005251037.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202005282134.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202006022156.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202006051507.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202006240906.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202007091707.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202007202144.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202008031500.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202008051415.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202008121149.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202008121149.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202009112140.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202009112140.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202009181655.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202009221105.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202009231331.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202009301531.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202010231444.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202010251412.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202011021749.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202011051353.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202011111127.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202012011203.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202012100841.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202012281835.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202101061051.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202101141128.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202102091312.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202102101624.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202102172148.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202102261650.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106102347.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106112120.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106120012.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106120220.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106121701.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106121703.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106121703.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106251126.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202107281619.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202107302158.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202107302158.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202108022257.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202109201624.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202109301031.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202109301031.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202111290253.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202111290253.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202112282254.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202112282254.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202207022002.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202207252150.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202207252150.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202207261221.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202208101144.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202208101144.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202211040031.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202212112152.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202212112152.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202301130917.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202303201126.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202303201126.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202303221944.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202303221944.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202304281224.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202305031518.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202305031518.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202308211648.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202311011755.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202311011755.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202311231356.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202402071125.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202406260915.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202412051957.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202412051957.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202412111526.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202412111526.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202501081226.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202501081226.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202501201239.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202501262157.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202503071353.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202506050958.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202510110312.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202510110312.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202511081024.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202604091531.sql.html +1 -0
- package/docs/variables/_saltcorn_data.mobile-mocks_npm_npm-registry-fetch.npmRegistryFetch.html +1 -0
- package/docs/variables/_saltcorn_data.mobile-mocks_saltcorn_html-pdf-node.htmlPdfNode.html +1 -1
- package/docs/variables/_saltcorn_data.models_config.configExports.html +1 -1
- package/docs/variables/_saltcorn_data.models_discovery.discovery.html +1 -1
- package/docs/variables/_saltcorn_data.models_email.email.html +1 -1
- package/docs/variables/_saltcorn_data.models_expression.expression.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.available_languages.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.check_email_mask.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.configTypes.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.deleteConfig.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.getAllConfig.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.getConfig.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.get_base_url.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.get_latest_npm_version.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.remove_from_menu.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.save_menu_items.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.setConfig.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.discovery.discover_tables.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.discovery.discoverable_tables.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.discovery.findType.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.discovery.get_existing_views.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.discovery.implement_discovery.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.email.getMailTransport.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.email.send_verification_email.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.email.viewToEmailHtml.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.apply_calculated_fields.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.apply_calculated_fields_stored.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.eval_expression.html +9 -1
- package/docs/variables/_saltcorn_data.models_index.expression.expressionValidator.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.get_async_expression_function.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.get_expression_function.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.jsexprToWhere.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.recalculate_for_stored.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.transform_for_async.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.layout.eachView.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.layout.getStringsForI18n.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.layout.getViews.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.layout.translateLayout.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.layout.traverse.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.layout.traverseSync.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.random.all_views.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.random.fill_table_row.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.random.initial_view.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.random.random_table.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.scheduler.runScheduler.html +1 -1
- package/docs/variables/_saltcorn_data.models_layout.layout.html +1 -1
- package/docs/variables/_saltcorn_data.models_random.random.html +1 -1
- package/docs/variables/_saltcorn_data.models_scheduler.scheduler.html +1 -1
- package/docs/variables/_saltcorn_data.plugin-helper.add_free_variables_to_joinfields.html +1 -1
- package/docs/variables/_saltcorn_data.tests_mocks.mocks.html +1 -1
- package/docs/variables/_saltcorn_data.tests_remote_query_helper.renderEditInEditConfig.html +1 -1
- package/docs/variables/_saltcorn_data.utils.utils.html +1 -1
- package/docs/variables/_saltcorn_data.web-mobile-commons.webMobileCommons.html +1 -1
- package/docs/variables/_saltcorn_db-common.internal.dbCommonModulePath.html +1 -1
- package/docs/variables/_saltcorn_db-common.multi-tenant.tenantNamespace.html +1 -1
- package/docs/variables/_saltcorn_db-common.tenants.tenants.html +1 -1
- package/docs/variables/_saltcorn_markup..export_.html +1 -1
- package/docs/variables/_saltcorn_markup.builder.builder.html +1 -1
- package/docs/variables/_saltcorn_markup.emergency_layout.EmergencyLayoutExports.html +1 -1
- package/docs/variables/_saltcorn_markup.form.form.html +1 -1
- package/docs/variables/_saltcorn_markup.helpers.HelpersExports.html +1 -1
- package/docs/variables/_saltcorn_markup.layout.LayoutExports-1.html +1 -1
- package/docs/variables/_saltcorn_markup.layout.LayoutExports.html +1 -1
- package/docs/variables/_saltcorn_markup.layout_utils.layoutUtils.html +1 -1
- package/docs/variables/_saltcorn_markup.mjml-layout.LayoutExports.html +1 -1
- package/docs/variables/_saltcorn_markup.mjml-tags.tagsExports.html +1 -1
- package/docs/variables/_saltcorn_markup.table.TableExports.html +1 -1
- package/docs/variables/_saltcorn_markup.tags.tagsExports.html +1 -1
- package/docs/variables/_saltcorn_types..generators.generateBool.html +1 -1
- package/docs/variables/_saltcorn_types..generators.generateString.html +1 -1
- package/docs/variables/_saltcorn_types..generators.num_between.html +1 -1
- package/docs/variables/_saltcorn_types..generators.oneOf.html +1 -1
- package/docs/variables/_saltcorn_types.generators.generators.html +1 -1
- package/load_plugins.js +7 -398
- package/locales/en.json +5 -1
- package/package.json +12 -12
- package/public/saltcorn-common.js +1 -0
- package/public/saltcorn.js +1433 -0
- package/routes/actions.js +190 -4
- package/routes/admin.js +3 -5
- package/routes/api.js +59 -26
- package/routes/delete.js +2 -5
- package/routes/edit.js +2 -5
- package/routes/entities.js +65 -1245
- package/routes/eventlog.js +47 -0
- package/routes/fields.js +3 -0
- package/routes/files.js +23 -3
- package/routes/packs.js +2 -3
- package/routes/plugins.js +14 -16
- package/routes/scapi.js +1 -2
- package/routes/sync.js +161 -45
- package/routes/tables.js +4 -0
- package/routes/tenant.js +3 -3
- package/routes/utils.js +36 -2
- package/routes/viewedit.js +2 -2
- package/serve.js +9 -14
- package/tests/api.test.js +268 -2
- package/tests/auth.test.js +230 -1
- package/tests/files.test.js +4 -7
- package/tests/plugin_install.test.js +12 -13
- package/tests/plugins.test.js +1 -2
- package/tests/sync.test.js +868 -2
- package/docs/functions/_saltcorn_data.base-plugin_fieldviews.radio_select.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_fieldviews.search_or_create.configFields.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_fieldviews.search_or_create.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_fieldviews.select.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_fieldviews.select_from_table.fill_options.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_fieldviews.select_from_table.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.bool.contract.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.bool.fieldviews.TrueFalse.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.bool.fieldviews.checkboxes.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.bool.fieldviews.edit.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.bool.fieldviews.show.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.bool.fieldviews.tristate.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.bool.listAs.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.bool.read.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.bool.readFromDB.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.bool.readFromFormRecord.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.bool.validate.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.color.contract.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.color.fieldviews.edit.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.color.fieldviews.show.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.color.read.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.color.validate.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.date.contract.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.date.equals.html +0 -3
- package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.edit.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.editDay.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.format.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.relative.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.show.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.showDay.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.date.fieldviews.yearsAgo.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.date.presets.Now.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.date.read.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.date.validate.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.float.contract.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.float.equals.html +0 -3
- package/docs/functions/_saltcorn_data.base-plugin_types.float.fieldviews.edit.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.float.fieldviews.show.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.float.read.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.float.validate.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.int.contract.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.int.read.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.int.validate.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.int.validate_attributes.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.string.attributes.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.string.contract.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.as_header.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.as_link.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.as_text.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.edit.configFields.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.edit.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.img_from_url.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.password.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.radio_group.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.string.fieldviews.textarea.run.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.string.presets.IP.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.string.presets.SessionID.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.string.read.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.string.validate.html +0 -1
- package/docs/functions/_saltcorn_data.base-plugin_types.string.validate_attributes.html +0 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.decodeProvisioningProfile.html +0 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.copyMobileAppDirs.html +0 -1
- package/docs/modules/_saltcorn_admin-models.tests_backup.test.html +0 -1
- package/docs/modules/_saltcorn_admin-models.tests_cfgcheck.test.html +0 -1
- package/docs/modules/_saltcorn_admin-models.tests_pack.test.html +0 -1
- package/docs/modules/_saltcorn_admin-models.tests_random.test.html +0 -1
- package/docs/modules/_saltcorn_admin-models.tests_tenant.test.html +0 -1
- package/docs/modules/_saltcorn_data.base-plugin_fieldviews.radio_select.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_fieldviews.search_or_create.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_fieldviews.select.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_fieldviews.select_from_table.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.bool.fieldviews.TrueFalse.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.bool.fieldviews.checkboxes.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.bool.fieldviews.edit.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.bool.fieldviews.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.bool.fieldviews.show.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.bool.fieldviews.tristate.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.bool.html +0 -3
- package/docs/modules/_saltcorn_data.base-plugin_types.color.fieldviews.edit.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.color.fieldviews.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.color.fieldviews.show.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.color.html +0 -4
- package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.edit.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.editDay.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.format.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.relative.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.show.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.showDay.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.date.fieldviews.yearsAgo.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.date.html +0 -3
- package/docs/modules/_saltcorn_data.base-plugin_types.date.presets.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.float.fieldviews.edit.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.float.fieldviews.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.float.fieldviews.show.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.float.html +0 -3
- package/docs/modules/_saltcorn_data.base-plugin_types.int.distance_operators.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.int.html +0 -3
- package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.as_header.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.as_link.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.as_text.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.edit.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.img_from_url.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.password.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.radio_group.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.string.fieldviews.textarea.html +0 -2
- package/docs/modules/_saltcorn_data.base-plugin_types.string.html +0 -3
- package/docs/modules/_saltcorn_data.base-plugin_types.string.presets.html +0 -2
- package/docs/modules/_saltcorn_data.tests_actions.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_auth.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_auxtest.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_base.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_calc.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_composite_pk.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_config.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_db.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_discover.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_edit.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_email.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_exact_views.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_field.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_fieldviews.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_file.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_filter.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_form.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_list.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_models.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_page.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_page_group.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_plugin.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_show.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_state.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_table.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_table_history.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_tag.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_user.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_view.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_workflow.test.html +0 -1
- package/docs/modules/_saltcorn_data.tests_workflow_run.test.html +0 -1
- package/docs/modules/_saltcorn_mobile-builder.appium_tests_ui.test.html +0 -1
- package/docs/modules/_saltcorn_mobile-builder.tests_versioncode.test.html +0 -1
- package/docs/modules/_saltcorn_mobile-builder.tests_webpack.test.html +0 -1
- package/docs/types/_saltcorn_data.models_internal_push_message_helper.FcmSubscription.html +0 -4
- package/docs/types/_saltcorn_data.models_internal_push_message_helper.Subscription.html +0 -1
- package/docs/types/_saltcorn_db-common.internal.AggregationOptions.html +0 -11
- package/docs/types/_saltcorn_db-common.internal.CoordOpts.html +0 -5
- package/docs/types/_saltcorn_db-common.internal.DatabaseClient.html +0 -2
- package/docs/types/_saltcorn_db-common.internal.JoinField.html +0 -6
- package/docs/types/_saltcorn_db-common.internal.JoinFields.html +0 -1
- package/docs/types/_saltcorn_db-common.internal.JoinOptions.html +0 -1
- package/docs/types/_saltcorn_db-common.internal.JsonPath.html +0 -1
- package/docs/types/_saltcorn_db-common.internal.JsonPathElem.html +0 -1
- package/docs/types/_saltcorn_db-common.internal.Operator.html +0 -1
- package/docs/types/_saltcorn_db-common.internal.PartialSome.html +0 -1
- package/docs/types/_saltcorn_db-common.internal.PrimaryKeyValue.html +0 -1
- package/docs/types/_saltcorn_db-common.internal.Row.html +0 -1
- package/docs/types/_saltcorn_db-common.internal.SelectOptions.html +0 -21
- package/docs/types/_saltcorn_db-common.internal.StrongRow.html +0 -1
- package/docs/types/_saltcorn_db-common.internal.SubselectOptions.html +0 -5
- package/docs/types/_saltcorn_db-common.internal.Value.html +0 -1
- package/docs/types/_saltcorn_db-common.internal.Where.html +0 -5
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.radio_select.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.radio_select.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.radio_select.type.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.search_join_field.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.search_or_create.blockDisplay.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.search_or_create.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.search_or_create.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.search_or_create.type.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select.blockDisplay.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select.configFields.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select.type.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_by_code.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_by_view.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_from_table.blockDisplay.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_from_table.configFields.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_from_table.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_from_table.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.select_from_table.type.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.two_level_select.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_fileview.fileview.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.attributes.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.TrueFalse.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.TrueFalse.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.checkboxes.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.checkboxes.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.edit.configFields.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.edit.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.edit.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.show.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.show.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.show_with_html.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.switch.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.thumbs_up_down.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.tristate.configFields.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.tristate.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.fieldviews.tristate.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.js_type.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.name.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.bool.sql_name.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.color.attributes.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.color.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.color.fieldviews.edit.blockDisplay.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.color.fieldviews.edit.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.color.fieldviews.edit.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.color.fieldviews.show.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.color.fieldviews.show.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.color.fieldviews.show_with_html.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.color.js_type.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.color.name.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.color.sql_name.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.attributes.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.edit.blockDisplay.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.edit.configFields.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.edit.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.edit.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.editDay.blockDisplay.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.editDay.configFields.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.editDay.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.editDay.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.format.configFields.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.format.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.format.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.relative.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.relative.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.show.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.show.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.showDay.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.showDay.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.show_with_html.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.yearsAgo.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.fieldviews.yearsAgo.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.js_type.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.name.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.date.sql_name.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.attributes.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.distance_operators.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.above_input.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.below_input.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.edit.blockDisplay.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.edit.configFields.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.edit.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.edit.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.heat_cell.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.number_slider.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.progress_bar.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.range_interval.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.show.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.show.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.show_with_html.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.fieldviews.to_locale_string.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.js_type.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.name.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.float.sql_name.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.int.attributes.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.int.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.int.distance_operators.near.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.int.fieldviews.html +0 -3
- package/docs/variables/_saltcorn_data.base-plugin_types.int.js_type.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.int.name.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.int.primaryKey.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.int.sql_name.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_header.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_header.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_link.configFields.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_link.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_link.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_text.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.as_text.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.checkbox_group.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.code.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.code_editor.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.edit.blockDisplay.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.edit.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.edit.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.ellipsize.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.fill_formula_btn.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.img_from_url.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.img_from_url.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.make_unique.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.monospace_block.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.password.blockDisplay.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.password.configFields.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.password.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.password.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.preFormatted.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.radio_group.configFields.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.radio_group.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.radio_group.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.select_by_code.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.show_with_html.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.textarea.blockDisplay.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.textarea.configFields.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.textarea.description.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.fieldviews.textarea.isEdit.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.js_type.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.name.html +0 -1
- package/docs/variables/_saltcorn_data.base-plugin_types.string.sql_name.html +0 -1
- package/docs/variables/_saltcorn_data.contract.fieldlike.html +0 -1
- package/docs/variables/_saltcorn_data.contract.is_column.html +0 -1
- package/docs/variables/_saltcorn_data.contract.is_header.html +0 -1
- package/docs/variables/_saltcorn_data.contract.is_pack.html +0 -1
- package/docs/variables/_saltcorn_data.contract.is_plugin.html +0 -1
- package/docs/variables/_saltcorn_data.contract.is_plugin_layout.html +0 -1
- package/docs/variables/_saltcorn_data.contract.is_plugin_type.html +0 -1
- package/docs/variables/_saltcorn_data.contract.is_plugin_wrap.html +0 -1
- package/docs/variables/_saltcorn_data.contract.is_plugin_wrap_arg.html +0 -1
- package/docs/variables/_saltcorn_data.contract.is_table_query.html +0 -1
- package/docs/variables/_saltcorn_data.contract.is_tablely.html +0 -1
- package/docs/variables/_saltcorn_data.contract.is_viewtemplate.html +0 -1
package/routes/entities.js
CHANGED
|
@@ -411,6 +411,7 @@ const getAllEntities = async () => {
|
|
|
411
411
|
type: "table",
|
|
412
412
|
name: t.name,
|
|
413
413
|
id: t.id,
|
|
414
|
+
updated_at: t.updated_at ? new Date(t.updated_at).toISOString() : null,
|
|
414
415
|
viewLink: `/table/${t.id}`,
|
|
415
416
|
editLink: `/table/${t.id}`,
|
|
416
417
|
metadata: {
|
|
@@ -435,6 +436,7 @@ const getAllEntities = async () => {
|
|
|
435
436
|
type: "view",
|
|
436
437
|
name: v.name,
|
|
437
438
|
id: v.id,
|
|
439
|
+
updated_at: v.updated_at ? new Date(v.updated_at).toISOString() : null,
|
|
438
440
|
viewLink: `/view/${encodeURIComponent(v.name)}`,
|
|
439
441
|
editLink: v.singleton
|
|
440
442
|
? null
|
|
@@ -456,6 +458,7 @@ const getAllEntities = async () => {
|
|
|
456
458
|
type: "page",
|
|
457
459
|
name: p.name,
|
|
458
460
|
id: p.id,
|
|
461
|
+
updated_at: p.updated_at ? new Date(p.updated_at).toISOString() : null,
|
|
459
462
|
viewLink: `/page/${encodeURIComponent(p.name)}`,
|
|
460
463
|
editLink: `/pageedit/edit/${encodeURIComponent(p.name)}`,
|
|
461
464
|
metadata: {
|
|
@@ -471,6 +474,7 @@ const getAllEntities = async () => {
|
|
|
471
474
|
type: "trigger",
|
|
472
475
|
name: tr.name,
|
|
473
476
|
id: tr.id,
|
|
477
|
+
updated_at: tr.updated_at ? new Date(tr.updated_at).toISOString() : null,
|
|
474
478
|
viewLink: `/actions/configure/${tr.id}`,
|
|
475
479
|
editLink: `/actions/configure/${tr.id}`,
|
|
476
480
|
metadata: {
|
|
@@ -669,10 +673,10 @@ const tableActionsDropdown = (entity, req, user_can_edit_tables) => {
|
|
|
669
673
|
};
|
|
670
674
|
|
|
671
675
|
/**
|
|
672
|
-
*
|
|
676
|
+
* Deep search index endpoint. loaded lazily on check
|
|
673
677
|
*/
|
|
674
678
|
router.get(
|
|
675
|
-
"/",
|
|
679
|
+
"/deep-search-index",
|
|
676
680
|
isAdminOrHasConfigMinRole("min_role_edit_views"),
|
|
677
681
|
error_catcher(async (req, res) => {
|
|
678
682
|
const entities = await getAllEntities();
|
|
@@ -719,6 +723,18 @@ router.get(
|
|
|
719
723
|
);
|
|
720
724
|
}
|
|
721
725
|
}
|
|
726
|
+
res.json(deepSearchIndex);
|
|
727
|
+
})
|
|
728
|
+
);
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Main entities list page
|
|
732
|
+
*/
|
|
733
|
+
router.get(
|
|
734
|
+
"/",
|
|
735
|
+
isAdminOrHasConfigMinRole("min_role_edit_views"),
|
|
736
|
+
error_catcher(async (req, res) => {
|
|
737
|
+
const entities = await getAllEntities();
|
|
722
738
|
// fetch roles and tags
|
|
723
739
|
const roles = await User.get_roles();
|
|
724
740
|
const tags = await Tag.find();
|
|
@@ -1099,11 +1115,6 @@ router.get(
|
|
|
1099
1115
|
entity.type === "view" ? (entity.id ?? entity.name) : entity.id
|
|
1100
1116
|
}`;
|
|
1101
1117
|
const tagIds = tagsByEntityKey.get(key) || [];
|
|
1102
|
-
const deepSearchable =
|
|
1103
|
-
deepSearchIndex[key] ||
|
|
1104
|
-
(entity.type === "view"
|
|
1105
|
-
? deepSearchIndex[`${entity.type}:${entity.name}`]
|
|
1106
|
-
: undefined);
|
|
1107
1118
|
const tagBadges = tagIds.map((tid) =>
|
|
1108
1119
|
a(
|
|
1109
1120
|
{
|
|
@@ -1235,6 +1246,9 @@ router.get(
|
|
|
1235
1246
|
typeof minRole !== "undefined" ? String(minRole) : "",
|
|
1236
1247
|
"data-external":
|
|
1237
1248
|
typeof external !== "undefined" ? String(external) : "",
|
|
1249
|
+
...(entity.updated_at
|
|
1250
|
+
? { "data-updated-at": entity.updated_at }
|
|
1251
|
+
: {}),
|
|
1238
1252
|
},
|
|
1239
1253
|
td(entityTypeBadge(entity.type)),
|
|
1240
1254
|
td(
|
|
@@ -1270,7 +1284,14 @@ router.get(
|
|
|
1270
1284
|
class: "table table-sm table-hover align-middle",
|
|
1271
1285
|
},
|
|
1272
1286
|
thead(headerRow),
|
|
1273
|
-
tbody(
|
|
1287
|
+
tbody({ id: "entities-recent-body", class: "d-none" }),
|
|
1288
|
+
tbody(
|
|
1289
|
+
{
|
|
1290
|
+
id: "entities-main-body",
|
|
1291
|
+
...(initially_hidden ? { style: { opacity: "0" } } : {}),
|
|
1292
|
+
},
|
|
1293
|
+
...bodyRows
|
|
1294
|
+
)
|
|
1274
1295
|
)
|
|
1275
1296
|
);
|
|
1276
1297
|
|
|
@@ -1283,935 +1304,6 @@ router.get(
|
|
|
1283
1304
|
div(req.__("Try adjusting your search or filter options"))
|
|
1284
1305
|
);
|
|
1285
1306
|
|
|
1286
|
-
const clientScript = /*js*/ `
|
|
1287
|
-
const searchInput = document.getElementById("entity-search");
|
|
1288
|
-
const deepSearchToggle = document.getElementById("entity-deep-search");
|
|
1289
|
-
const entitiesList = document.getElementById("entities-list");
|
|
1290
|
-
const noResults = document.getElementById("no-results");
|
|
1291
|
-
const filterButtons = document.querySelectorAll(".entity-filter-btn");
|
|
1292
|
-
const filterButtonsByType = {};
|
|
1293
|
-
filterButtons.forEach((btn) => {
|
|
1294
|
-
const type = btn.dataset.entityType;
|
|
1295
|
-
if (type) filterButtonsByType[type] = btn;
|
|
1296
|
-
});
|
|
1297
|
-
const tagButtons = document.querySelectorAll(".tag-filter-btn");
|
|
1298
|
-
const LEGACY_LINK_META = ${JSON.stringify(legacyLinkMeta)};
|
|
1299
|
-
const filtersRow = document.getElementById("entity-filters-row");
|
|
1300
|
-
const selectionBar = document.getElementById("entity-selection-bar");
|
|
1301
|
-
const selectionCountEl = document.getElementById("entity-selection-count");
|
|
1302
|
-
const clearSelectionBtn = document.getElementById("entity-clear-selection");
|
|
1303
|
-
const bulkDeleteBtn = document.getElementById("entity-bulk-delete");
|
|
1304
|
-
const bulkTagSelect = document.getElementById("entity-bulk-tag-select");
|
|
1305
|
-
const bulkApplyTagBtn = document.getElementById("entity-bulk-apply-tag");
|
|
1306
|
-
const bulkDownloadPackBtn = document.getElementById("entity-bulk-download-pack");
|
|
1307
|
-
const bulkRoleReadSelect = document.getElementById("entity-bulk-role-read-select");
|
|
1308
|
-
const bulkApplyRoleReadBtn = document.getElementById("entity-bulk-apply-role-read");
|
|
1309
|
-
const bulkRoleWriteSelect = document.getElementById("entity-bulk-role-write-select");
|
|
1310
|
-
const bulkApplyRoleWriteBtn = document.getElementById("entity-bulk-apply-role-write");
|
|
1311
|
-
const bulkRoleReadGroup = document.getElementById("entity-bulk-role-read-group");
|
|
1312
|
-
const bulkRoleWriteGroup = document.getElementById("entity-bulk-role-write-group");
|
|
1313
|
-
const entitiesTbody = entitiesList ? entitiesList.querySelector("tbody") : null;
|
|
1314
|
-
const TAGS_BY_ID = ${JSON.stringify(Object.fromEntries(tags.map((t) => [t.id, t.name])))};
|
|
1315
|
-
const ROLES_BY_ID = ${JSON.stringify(Object.fromEntries(roles.map((r) => [r.id, r.role])))};
|
|
1316
|
-
|
|
1317
|
-
const TXT_SELECTED = ${JSON.stringify(req.__("selected"))};
|
|
1318
|
-
const TXT_DELETE_SELECTED_CONFIRM = ${JSON.stringify(req.__("Delete %s selected items?"))};
|
|
1319
|
-
const TXT_DELETE_SELECTED_FALLBACK = ${JSON.stringify(req.__("Delete selected items?"))};
|
|
1320
|
-
const TXT_DELETE_FAILED = ${JSON.stringify(req.__("Failed to delete selected items"))};
|
|
1321
|
-
|
|
1322
|
-
const BASE_TYPES = ["table","view","page","trigger"];
|
|
1323
|
-
const EXTENDED_TYPES = window.ENTITY_EXTENDED_TYPES || ["module","user"];
|
|
1324
|
-
const ALL_TYPES = BASE_TYPES.concat(EXTENDED_TYPES);
|
|
1325
|
-
|
|
1326
|
-
const selectedKeys = new Set();
|
|
1327
|
-
let lastSelectedIndex = null;
|
|
1328
|
-
|
|
1329
|
-
const isRowSelectable = (row) => {
|
|
1330
|
-
if (!row) return false;
|
|
1331
|
-
const type = row.dataset.entityType;
|
|
1332
|
-
const installed = row.dataset.installed !== 'false';
|
|
1333
|
-
const moduleKind = (row.dataset.moduleKind || '').toLowerCase();
|
|
1334
|
-
if (type === 'module' && !installed) return false;
|
|
1335
|
-
return true;
|
|
1336
|
-
};
|
|
1337
|
-
|
|
1338
|
-
const findRowByKey = (key) =>
|
|
1339
|
-
Array.from(document.querySelectorAll('.entity-row')).find(
|
|
1340
|
-
(row) => row.dataset.entityKey === key
|
|
1341
|
-
);
|
|
1342
|
-
|
|
1343
|
-
const selectionPayloadFromRow = (row) => {
|
|
1344
|
-
if (!row) return null;
|
|
1345
|
-
return {
|
|
1346
|
-
key: row.dataset.entityKey,
|
|
1347
|
-
type: row.dataset.entityType,
|
|
1348
|
-
id: row.dataset.entityId || null,
|
|
1349
|
-
name: row.dataset.entityLabel || row.dataset.entityName || "",
|
|
1350
|
-
installed: row.dataset.installed,
|
|
1351
|
-
moduleKind: row.dataset.moduleKind,
|
|
1352
|
-
};
|
|
1353
|
-
};
|
|
1354
|
-
|
|
1355
|
-
const getVisibleRows = () =>
|
|
1356
|
-
Array.from(document.querySelectorAll('.entity-row')).filter(
|
|
1357
|
-
(row) => row.style.display !== 'none'
|
|
1358
|
-
);
|
|
1359
|
-
|
|
1360
|
-
const getSelectableVisibleRows = () =>
|
|
1361
|
-
getVisibleRows().filter((row) => isRowSelectable(row));
|
|
1362
|
-
|
|
1363
|
-
const isTypingTarget = (el) => {
|
|
1364
|
-
if (!el) return false;
|
|
1365
|
-
if (el.isContentEditable) return true;
|
|
1366
|
-
const tag = el.tagName;
|
|
1367
|
-
if (!tag) return false;
|
|
1368
|
-
const tagName = tag.toUpperCase();
|
|
1369
|
-
if (tagName === 'INPUT' || tagName === 'TEXTAREA' || tagName === 'SELECT') return true;
|
|
1370
|
-
return !!el.closest('[contenteditable="true"]');
|
|
1371
|
-
};
|
|
1372
|
-
|
|
1373
|
-
const refreshSelectionStyles = () => {
|
|
1374
|
-
document.querySelectorAll('.entity-row').forEach((row) => {
|
|
1375
|
-
const key = row.dataset.entityKey;
|
|
1376
|
-
if (!isRowSelectable(row) && selectedKeys.has(key)) {
|
|
1377
|
-
selectedKeys.delete(key);
|
|
1378
|
-
}
|
|
1379
|
-
if (selectedKeys.has(key)) {
|
|
1380
|
-
row.classList.add('table-active', 'entity-row-selected');
|
|
1381
|
-
} else {
|
|
1382
|
-
row.classList.remove('table-active', 'entity-row-selected');
|
|
1383
|
-
}
|
|
1384
|
-
});
|
|
1385
|
-
};
|
|
1386
|
-
|
|
1387
|
-
const syncSelectBorder = (el, varName) => {
|
|
1388
|
-
if (!el) return;
|
|
1389
|
-
const disabledBorder =
|
|
1390
|
-
'color-mix(in srgb, var(--bs-btn-disabled-color, var(--bs-secondary)) 70%, transparent)';
|
|
1391
|
-
const enabledBorder = 'var(--bs-secondary)';
|
|
1392
|
-
const borderColor = el.disabled ? disabledBorder : enabledBorder;
|
|
1393
|
-
el.style.setProperty(varName, borderColor);
|
|
1394
|
-
};
|
|
1395
|
-
|
|
1396
|
-
const markSelectChangedByUser = (sel) => {
|
|
1397
|
-
if (sel) sel.dataset.userSelected = 'true';
|
|
1398
|
-
};
|
|
1399
|
-
|
|
1400
|
-
const resetSelectUserFlag = (sel) => {
|
|
1401
|
-
if (sel) sel.dataset.userSelected = '';
|
|
1402
|
-
};
|
|
1403
|
-
|
|
1404
|
-
const updateSelectionUI = () => {
|
|
1405
|
-
refreshSelectionStyles();
|
|
1406
|
-
const count = selectedKeys.size ?? 0;
|
|
1407
|
-
if (selectionCountEl) {
|
|
1408
|
-
const suffix = TXT_SELECTED || 'selected';
|
|
1409
|
-
selectionCountEl.textContent = count + ' ' + suffix;
|
|
1410
|
-
}
|
|
1411
|
-
if (filtersRow && selectionBar) {
|
|
1412
|
-
if (count > 0) {
|
|
1413
|
-
filtersRow.classList.add('d-none');
|
|
1414
|
-
selectionBar.classList.remove('d-none');
|
|
1415
|
-
} else {
|
|
1416
|
-
filtersRow.classList.remove('d-none');
|
|
1417
|
-
selectionBar.classList.add('d-none');
|
|
1418
|
-
}
|
|
1419
|
-
}
|
|
1420
|
-
if (bulkDeleteBtn) bulkDeleteBtn.disabled = count === 0;
|
|
1421
|
-
if (clearSelectionBtn) clearSelectionBtn.disabled = count === 0;
|
|
1422
|
-
const items = Array.from(selectedKeys)
|
|
1423
|
-
.map((key) => selectionPayloadFromRow(findRowByKey(key)))
|
|
1424
|
-
.filter(Boolean);
|
|
1425
|
-
const hasTaggable = items.some((item) => isTaggableType(item.type));
|
|
1426
|
-
const hasDownloadable = items.some((item) => isDownloadableEntity(item));
|
|
1427
|
-
const hasAccessRoleEntities = items.some((item) =>
|
|
1428
|
-
["table","view","page"].includes(item.type)
|
|
1429
|
-
);
|
|
1430
|
-
const hasWriteRoleEntities = items.some((item) => item.type === "table");
|
|
1431
|
-
if (items.length === 1) {
|
|
1432
|
-
const only = items[0];
|
|
1433
|
-
const row = findRowByKey(only.key);
|
|
1434
|
-
if (row && bulkRoleReadSelect && bulkRoleReadSelect.dataset.userSelected !== 'true') {
|
|
1435
|
-
const initRead =
|
|
1436
|
-
only.type === 'table'
|
|
1437
|
-
? row.dataset.minRoleRead || ''
|
|
1438
|
-
: row.dataset.minRole || '';
|
|
1439
|
-
bulkRoleReadSelect.value = initRead || '';
|
|
1440
|
-
}
|
|
1441
|
-
if (row && bulkRoleWriteSelect && only.type === 'table' && bulkRoleWriteSelect.dataset.userSelected !== 'true') {
|
|
1442
|
-
const initWrite = row.dataset.minRoleWrite || '';
|
|
1443
|
-
bulkRoleWriteSelect.value = initWrite || '';
|
|
1444
|
-
}
|
|
1445
|
-
} else if (items.length === 0) {
|
|
1446
|
-
if (bulkRoleReadSelect) {
|
|
1447
|
-
bulkRoleReadSelect.value = '';
|
|
1448
|
-
resetSelectUserFlag(bulkRoleReadSelect);
|
|
1449
|
-
}
|
|
1450
|
-
if (bulkRoleWriteSelect) {
|
|
1451
|
-
bulkRoleWriteSelect.value = '';
|
|
1452
|
-
resetSelectUserFlag(bulkRoleWriteSelect);
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
if (bulkTagSelect) {
|
|
1456
|
-
bulkTagSelect.disabled = !(count > 0 && hasTaggable);
|
|
1457
|
-
syncSelectBorder(bulkTagSelect, '--entity-bulk-tag-border');
|
|
1458
|
-
}
|
|
1459
|
-
if (bulkApplyTagBtn) {
|
|
1460
|
-
const tagSelected = bulkTagSelect && bulkTagSelect.value;
|
|
1461
|
-
bulkApplyTagBtn.disabled = !(count > 0 && hasTaggable && tagSelected);
|
|
1462
|
-
}
|
|
1463
|
-
if (bulkRoleReadSelect) {
|
|
1464
|
-
bulkRoleReadSelect.disabled = !(count > 0 && hasAccessRoleEntities);
|
|
1465
|
-
syncSelectBorder(bulkRoleReadSelect, '--entity-bulk-role-border');
|
|
1466
|
-
}
|
|
1467
|
-
if (bulkApplyRoleReadBtn) {
|
|
1468
|
-
const roleSelected = bulkRoleReadSelect && bulkRoleReadSelect.value;
|
|
1469
|
-
bulkApplyRoleReadBtn.disabled = !(count > 0 && hasAccessRoleEntities && roleSelected);
|
|
1470
|
-
}
|
|
1471
|
-
if (bulkRoleWriteSelect) {
|
|
1472
|
-
bulkRoleWriteSelect.disabled = !(count > 0 && hasWriteRoleEntities);
|
|
1473
|
-
syncSelectBorder(bulkRoleWriteSelect, '--entity-bulk-role-border');
|
|
1474
|
-
}
|
|
1475
|
-
if (bulkApplyRoleWriteBtn) {
|
|
1476
|
-
const roleSelected = bulkRoleWriteSelect && bulkRoleWriteSelect.value;
|
|
1477
|
-
bulkApplyRoleWriteBtn.disabled = !(count > 0 && hasWriteRoleEntities && roleSelected);
|
|
1478
|
-
}
|
|
1479
|
-
if (bulkRoleWriteGroup) {
|
|
1480
|
-
if (hasWriteRoleEntities) bulkRoleWriteGroup.classList.remove('d-none');
|
|
1481
|
-
else bulkRoleWriteGroup.classList.add('d-none');
|
|
1482
|
-
}
|
|
1483
|
-
if (bulkDownloadPackBtn) {
|
|
1484
|
-
// bulkDownloadPackBtn.disabled = !(count > 0 && hasDownloadable);
|
|
1485
|
-
bulkDownloadPackBtn.disabled = !(count > 0);
|
|
1486
|
-
}
|
|
1487
|
-
};
|
|
1488
|
-
|
|
1489
|
-
const clearSelection = () => {
|
|
1490
|
-
selectedKeys.clear();
|
|
1491
|
-
lastSelectedIndex = null;
|
|
1492
|
-
updateSelectionUI();
|
|
1493
|
-
};
|
|
1494
|
-
|
|
1495
|
-
// Track active filters
|
|
1496
|
-
const activeFilters = new Set([]);
|
|
1497
|
-
const activeTags = new Set([]);
|
|
1498
|
-
const isModulesFilterExclusive = () =>
|
|
1499
|
-
activeFilters.size === 1 && activeFilters.has("module");
|
|
1500
|
-
window.isModulesFilterExclusive = isModulesFilterExclusive;
|
|
1501
|
-
|
|
1502
|
-
const isTaggableType = (type) => ["table","view","page","trigger"].includes(type);
|
|
1503
|
-
const isDownloadableEntity = (item) => {
|
|
1504
|
-
if (!item) return false;
|
|
1505
|
-
return ["table","view","page","trigger"].includes(item.type);
|
|
1506
|
-
};
|
|
1507
|
-
|
|
1508
|
-
const updateRowTags = (row, tagId, tagName, entityType) => {
|
|
1509
|
-
if (!row || !tagId) return;
|
|
1510
|
-
const tagsCell = row.querySelector('td:nth-child(6)');
|
|
1511
|
-
if (!tagsCell) return;
|
|
1512
|
-
const dropdown = tagsCell.querySelector('.dropdown');
|
|
1513
|
-
const currentTags = (row.dataset.tags || '').split(' ').filter(Boolean);
|
|
1514
|
-
if (!currentTags.includes(String(tagId))) currentTags.push(String(tagId));
|
|
1515
|
-
row.dataset.tags = currentTags.join(' ');
|
|
1516
|
-
tagsCell.innerHTML = '';
|
|
1517
|
-
const pluralMap = { table: 'tables', view: 'views', page: 'pages', trigger: 'triggers' };
|
|
1518
|
-
currentTags.forEach((tid) => {
|
|
1519
|
-
const name = TAGS_BY_ID[tid] || tagName || tid;
|
|
1520
|
-
const plural = pluralMap[entityType] || 'tables';
|
|
1521
|
-
const badge = document.createElement('a');
|
|
1522
|
-
badge.className = 'badge bg-secondary me-1';
|
|
1523
|
-
badge.setAttribute('href', '/tag/' + encodeURIComponent(tid) + '?show_list=' + plural);
|
|
1524
|
-
badge.textContent = name;
|
|
1525
|
-
tagsCell.appendChild(badge);
|
|
1526
|
-
});
|
|
1527
|
-
if (dropdown) tagsCell.appendChild(dropdown);
|
|
1528
|
-
};
|
|
1529
|
-
|
|
1530
|
-
// URL state helpers
|
|
1531
|
-
const updateUrl = () => {
|
|
1532
|
-
const params = new URLSearchParams(window.location.search);
|
|
1533
|
-
// search
|
|
1534
|
-
if (searchInput.value) params.set('q', searchInput.value);
|
|
1535
|
-
else params.delete('q');
|
|
1536
|
-
if (deepSearchToggle && deepSearchToggle.checked) params.set('deep', 'on');
|
|
1537
|
-
else params.delete('deep');
|
|
1538
|
-
// types
|
|
1539
|
-
ALL_TYPES.forEach(t => {
|
|
1540
|
-
if (activeFilters.has(t)) params.set(t+'s', 'on');
|
|
1541
|
-
else params.delete(t+'s');
|
|
1542
|
-
});
|
|
1543
|
-
// extended flag
|
|
1544
|
-
if (typeof isExtendedExpanded !== 'undefined' && isExtendedExpanded) {
|
|
1545
|
-
params.set('extended', 'on');
|
|
1546
|
-
} else {
|
|
1547
|
-
params.delete('extended');
|
|
1548
|
-
}
|
|
1549
|
-
// tags (comma-separated ids)
|
|
1550
|
-
if (activeTags.size > 0) params.set('tags', Array.from(activeTags).join(','));
|
|
1551
|
-
else params.delete('tags');
|
|
1552
|
-
const newUrl = window.location.pathname + (params.toString() ? ('?' + params.toString()) : '');
|
|
1553
|
-
window.history.replaceState(null, '', newUrl);
|
|
1554
|
-
};
|
|
1555
|
-
|
|
1556
|
-
const getCurrentOnDoneTarget = () => {
|
|
1557
|
-
const path = window.location.pathname.startsWith("/")
|
|
1558
|
-
? window.location.pathname.slice(1)
|
|
1559
|
-
: window.location.pathname;
|
|
1560
|
-
return path + window.location.search;
|
|
1561
|
-
};
|
|
1562
|
-
|
|
1563
|
-
const shouldSkipOnDoneHref = (raw) => {
|
|
1564
|
-
if (!raw) return true;
|
|
1565
|
-
const trimmed = raw.trim();
|
|
1566
|
-
const lowered = trimmed.toLowerCase();
|
|
1567
|
-
return trimmed === "#" || trimmed === "" || lowered.startsWith("javascript:");
|
|
1568
|
-
};
|
|
1569
|
-
|
|
1570
|
-
const toRelativeHrefWithOnDone = (raw) => {
|
|
1571
|
-
if (shouldSkipOnDoneHref(raw)) return null;
|
|
1572
|
-
try {
|
|
1573
|
-
const url = new URL(raw, window.location.origin);
|
|
1574
|
-
url.searchParams.set("on_done_redirect", getCurrentOnDoneTarget());
|
|
1575
|
-
return url.pathname + url.search + url.hash;
|
|
1576
|
-
} catch (e) {
|
|
1577
|
-
return null;
|
|
1578
|
-
}
|
|
1579
|
-
};
|
|
1580
|
-
|
|
1581
|
-
const updateElementOnDoneHref = (el, attr) => {
|
|
1582
|
-
const raw = el.getAttribute(attr) || el[attr];
|
|
1583
|
-
const updated = toRelativeHrefWithOnDone(raw);
|
|
1584
|
-
if (updated) el.setAttribute(attr, updated);
|
|
1585
|
-
};
|
|
1586
|
-
|
|
1587
|
-
const ensureOnDoneHiddenInput = (form) => {
|
|
1588
|
-
if (form.querySelector('input[name="on_done_redirect"]')) return;
|
|
1589
|
-
const hidden = document.createElement('input');
|
|
1590
|
-
hidden.type = 'hidden';
|
|
1591
|
-
hidden.name = 'on_done_redirect';
|
|
1592
|
-
hidden.value = getCurrentOnDoneTarget();
|
|
1593
|
-
form.appendChild(hidden);
|
|
1594
|
-
};
|
|
1595
|
-
|
|
1596
|
-
const updateOnDoneRedirectTargets = () => {
|
|
1597
|
-
document
|
|
1598
|
-
.querySelectorAll('a[href*="on_done_redirect="]')
|
|
1599
|
-
.forEach((link) => updateElementOnDoneHref(link, "href"));
|
|
1600
|
-
document
|
|
1601
|
-
.querySelectorAll('form[action*="on_done_redirect="]')
|
|
1602
|
-
.forEach((form) => updateElementOnDoneHref(form, "action"));
|
|
1603
|
-
};
|
|
1604
|
-
|
|
1605
|
-
const updateLegacyButton = () => {
|
|
1606
|
-
const legacyButton = document.getElementById("legacy-entity-link");
|
|
1607
|
-
const legacyLabel = legacyButton ? legacyButton.querySelector(".legacy-label") : null;
|
|
1608
|
-
if (!legacyButton) return;
|
|
1609
|
-
const activeTypes = Array.from(activeFilters);
|
|
1610
|
-
if (activeTypes.length === 1) {
|
|
1611
|
-
const meta = LEGACY_LINK_META[activeTypes[0]];
|
|
1612
|
-
if (meta) {
|
|
1613
|
-
legacyButton.classList.remove("d-none");
|
|
1614
|
-
legacyButton.setAttribute("href", meta.href);
|
|
1615
|
-
if (legacyLabel) legacyLabel.textContent = meta.label;
|
|
1616
|
-
return;
|
|
1617
|
-
}
|
|
1618
|
-
}
|
|
1619
|
-
legacyButton.classList.add("d-none");
|
|
1620
|
-
};
|
|
1621
|
-
|
|
1622
|
-
const initFromUrl = () => {
|
|
1623
|
-
const params = new URLSearchParams(window.location.search);
|
|
1624
|
-
// search
|
|
1625
|
-
const q = params.get('q') || '';
|
|
1626
|
-
if (q) searchInput.value = q;
|
|
1627
|
-
const deep = params.get('deep') === 'on';
|
|
1628
|
-
if (deep && deepSearchToggle) deepSearchToggle.checked = true;
|
|
1629
|
-
const shouldExpandExtended =
|
|
1630
|
-
params.get('extended') === 'on' ||
|
|
1631
|
-
EXTENDED_TYPES.some((t) => params.get(t + 's') === 'on');
|
|
1632
|
-
// types
|
|
1633
|
-
ALL_TYPES.forEach(t => {
|
|
1634
|
-
if (params.get(t+'s') === 'on') activeFilters.add(t);
|
|
1635
|
-
});
|
|
1636
|
-
// apply button classes for types
|
|
1637
|
-
filterButtons.forEach((btn) => {
|
|
1638
|
-
const t = btn.dataset.entityType;
|
|
1639
|
-
if (activeFilters.has(t)) {
|
|
1640
|
-
btn.classList.add('btn-primary');
|
|
1641
|
-
btn.classList.remove('btn-outline-primary');
|
|
1642
|
-
}
|
|
1643
|
-
});
|
|
1644
|
-
// tags
|
|
1645
|
-
const tagsParam = params.get('tags');
|
|
1646
|
-
if (tagsParam) {
|
|
1647
|
-
tagsParam.split(',').filter(Boolean).forEach(id => activeTags.add(id));
|
|
1648
|
-
}
|
|
1649
|
-
// apply button classes for tags
|
|
1650
|
-
tagButtons.forEach((btn) => {
|
|
1651
|
-
const id = btn.dataset.tagId;
|
|
1652
|
-
if (activeTags.has(id)) {
|
|
1653
|
-
btn.classList.add('active', 'btn-secondary');
|
|
1654
|
-
btn.classList.remove('btn-outline-secondary');
|
|
1655
|
-
}
|
|
1656
|
-
});
|
|
1657
|
-
return { shouldExpandExtended };
|
|
1658
|
-
};
|
|
1659
|
-
|
|
1660
|
-
// Filter function
|
|
1661
|
-
function filterEntities() {
|
|
1662
|
-
const entityRows = document.querySelectorAll(".entity-row");
|
|
1663
|
-
const searchTerm = searchInput.value.toLowerCase();
|
|
1664
|
-
const useDeep = deepSearchToggle && deepSearchToggle.checked;
|
|
1665
|
-
let visibleCount = 0;
|
|
1666
|
-
const visibleKeys = new Set();
|
|
1667
|
-
const allowAllModules = isModulesFilterExclusive();
|
|
1668
|
-
const canShowAllModules =
|
|
1669
|
-
allowAllModules && typeof isExtendedExpanded !== "undefined" && isExtendedExpanded;
|
|
1670
|
-
if (
|
|
1671
|
-
canShowAllModules &&
|
|
1672
|
-
typeof ensureAllModulesLoaded === "function" &&
|
|
1673
|
-
typeof hasLoadedAllModules !== "undefined" &&
|
|
1674
|
-
!hasLoadedAllModules
|
|
1675
|
-
) {
|
|
1676
|
-
ensureAllModulesLoaded();
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
entityRows.forEach((row, id) => {
|
|
1680
|
-
const entityType = row.dataset.entityType;
|
|
1681
|
-
const key = row.dataset.entityKey;
|
|
1682
|
-
const deepText =
|
|
1683
|
-
useDeep && window.ENTITY_DEEP_SEARCH
|
|
1684
|
-
? window.ENTITY_DEEP_SEARCH[key]
|
|
1685
|
-
: null;
|
|
1686
|
-
const searchableText = useDeep ? deepText || row.dataset.deepSearchable || "" : row.dataset.searchable || "";
|
|
1687
|
-
|
|
1688
|
-
const rowTags = (row.dataset.tags || "").split(" ").filter(Boolean);
|
|
1689
|
-
const rowInstalled = row.dataset.installed !== "false";
|
|
1690
|
-
|
|
1691
|
-
// Check if entity type is active
|
|
1692
|
-
const typeMatch = activeFilters.has(entityType);
|
|
1693
|
-
|
|
1694
|
-
// Check if search term matches
|
|
1695
|
-
let searchMatch = true;
|
|
1696
|
-
if (searchTerm) {
|
|
1697
|
-
searchMatch = searchableText.includes(searchTerm);
|
|
1698
|
-
}
|
|
1699
|
-
|
|
1700
|
-
// Check tag match (OR across selected tags). If none selected, match all
|
|
1701
|
-
let tagMatch = true;
|
|
1702
|
-
if (activeTags.size > 0) {
|
|
1703
|
-
tagMatch = rowTags.some((tid) => activeTags.has(tid));
|
|
1704
|
-
}
|
|
1705
|
-
|
|
1706
|
-
const moduleVisibilityOk =
|
|
1707
|
-
entityType !== "module" || rowInstalled || canShowAllModules;
|
|
1708
|
-
|
|
1709
|
-
// Show/hide row
|
|
1710
|
-
if (
|
|
1711
|
-
(activeFilters.size === 0 || typeMatch) &&
|
|
1712
|
-
searchMatch &&
|
|
1713
|
-
tagMatch &&
|
|
1714
|
-
moduleVisibilityOk
|
|
1715
|
-
) {
|
|
1716
|
-
row.style.display = "";
|
|
1717
|
-
visibleKeys.add(row.dataset.entityKey);
|
|
1718
|
-
visibleCount++;
|
|
1719
|
-
} else {
|
|
1720
|
-
row.style.display = "none";
|
|
1721
|
-
}
|
|
1722
|
-
});
|
|
1723
|
-
|
|
1724
|
-
selectedKeys.forEach((key) => {
|
|
1725
|
-
if (!visibleKeys.has(key)) selectedKeys.delete(key);
|
|
1726
|
-
});
|
|
1727
|
-
|
|
1728
|
-
// Show/hide no results message
|
|
1729
|
-
if (visibleCount === 0) {
|
|
1730
|
-
entitiesList.parentElement.classList.add("d-none");
|
|
1731
|
-
noResults.classList.remove("d-none");
|
|
1732
|
-
} else {
|
|
1733
|
-
entitiesList.parentElement.classList.remove("d-none");
|
|
1734
|
-
noResults.classList.add("d-none");
|
|
1735
|
-
}
|
|
1736
|
-
|
|
1737
|
-
updateUrl();
|
|
1738
|
-
updateOnDoneRedirectTargets();
|
|
1739
|
-
updateLegacyButton();
|
|
1740
|
-
updateSelectionUI();
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1743
|
-
// Search input handler
|
|
1744
|
-
searchInput.addEventListener("input", filterEntities);
|
|
1745
|
-
searchInput.addEventListener("keydown", (e) => {
|
|
1746
|
-
if (e.key === "Escape" || e.key === "Esc") {
|
|
1747
|
-
e.preventDefault();
|
|
1748
|
-
searchInput.blur();
|
|
1749
|
-
}
|
|
1750
|
-
});
|
|
1751
|
-
if (deepSearchToggle) {
|
|
1752
|
-
deepSearchToggle.addEventListener("change", filterEntities);
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1755
|
-
// Filter button handlers
|
|
1756
|
-
filterButtons.forEach((btn) => {
|
|
1757
|
-
btn.addEventListener("click", function () {
|
|
1758
|
-
const entityType = this.dataset.entityType;
|
|
1759
|
-
|
|
1760
|
-
if (!activeFilters.has(entityType)) {
|
|
1761
|
-
activeFilters.add(entityType);
|
|
1762
|
-
this.classList.add("btn-primary");
|
|
1763
|
-
this.classList.remove("btn-outline-primary");
|
|
1764
|
-
} else {
|
|
1765
|
-
activeFilters.delete(entityType);
|
|
1766
|
-
this.classList.remove("btn-primary");
|
|
1767
|
-
this.classList.add("btn-outline-primary");
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1770
|
-
filterEntities();
|
|
1771
|
-
if (searchInput && typeof searchInput.focus === 'function') {
|
|
1772
|
-
searchInput.focus({ preventScroll: true });
|
|
1773
|
-
}
|
|
1774
|
-
});
|
|
1775
|
-
});
|
|
1776
|
-
|
|
1777
|
-
// Tag filter handlers (multi-select, OR). No "All" button needed
|
|
1778
|
-
tagButtons.forEach((btn) => {
|
|
1779
|
-
btn.addEventListener("click", function () {
|
|
1780
|
-
const tid = this.dataset.tagId;
|
|
1781
|
-
if (!activeTags.has(tid)) {
|
|
1782
|
-
activeTags.add(tid);
|
|
1783
|
-
this.classList.add("active", "btn-secondary");
|
|
1784
|
-
this.classList.remove("btn-outline-secondary");
|
|
1785
|
-
} else {
|
|
1786
|
-
activeTags.delete(tid);
|
|
1787
|
-
this.classList.remove("active", "btn-secondary");
|
|
1788
|
-
this.classList.add("btn-outline-secondary");
|
|
1789
|
-
}
|
|
1790
|
-
filterEntities();
|
|
1791
|
-
});
|
|
1792
|
-
});
|
|
1793
|
-
|
|
1794
|
-
const keyboardShortcutTypeMap = {
|
|
1795
|
-
KeyT: "table",
|
|
1796
|
-
KeyV: "view",
|
|
1797
|
-
KeyP: "page",
|
|
1798
|
-
KeyR: "trigger",
|
|
1799
|
-
KeyM: "module",
|
|
1800
|
-
KeyU: "user",
|
|
1801
|
-
};
|
|
1802
|
-
|
|
1803
|
-
document.addEventListener("keydown", async (e) => {
|
|
1804
|
-
const isFromSearchInput = e.target === searchInput;
|
|
1805
|
-
const typingTarget = isTypingTarget(e.target);
|
|
1806
|
-
|
|
1807
|
-
if (e.altKey && !e.ctrlKey && !e.metaKey) {
|
|
1808
|
-
const type = keyboardShortcutTypeMap[e.code];
|
|
1809
|
-
if (type) {
|
|
1810
|
-
e.preventDefault();
|
|
1811
|
-
const isExtendedType = EXTENDED_TYPES.includes(type);
|
|
1812
|
-
if (
|
|
1813
|
-
isExtendedType &&
|
|
1814
|
-
typeof isExtendedExpanded !== "undefined" &&
|
|
1815
|
-
!isExtendedExpanded &&
|
|
1816
|
-
typeof toggleEntityExpanded === "function"
|
|
1817
|
-
) {
|
|
1818
|
-
await toggleEntityExpanded(true);
|
|
1819
|
-
}
|
|
1820
|
-
const btn = filterButtonsByType[type];
|
|
1821
|
-
if (btn) {
|
|
1822
|
-
btn.click();
|
|
1823
|
-
if (searchInput && typeof searchInput.focus === 'function') {
|
|
1824
|
-
searchInput.focus({ preventScroll: true });
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1827
|
-
return;
|
|
1828
|
-
}
|
|
1829
|
-
if (deepSearchToggle && e.code === "KeyS") {
|
|
1830
|
-
e.preventDefault();
|
|
1831
|
-
deepSearchToggle.checked = !deepSearchToggle.checked;
|
|
1832
|
-
filterEntities();
|
|
1833
|
-
if (searchInput && typeof searchInput.focus === 'function') {
|
|
1834
|
-
searchInput.focus({ preventScroll: true });
|
|
1835
|
-
}
|
|
1836
|
-
}
|
|
1837
|
-
return;
|
|
1838
|
-
}
|
|
1839
|
-
if (typingTarget && !isFromSearchInput) return;
|
|
1840
|
-
|
|
1841
|
-
const isSelectAllKey = e.key === "a" || e.key === "A";
|
|
1842
|
-
if ((e.metaKey || e.ctrlKey) && !e.altKey && isSelectAllKey) {
|
|
1843
|
-
const visibleRows = getSelectableVisibleRows();
|
|
1844
|
-
if (!visibleRows.length) return;
|
|
1845
|
-
e.preventDefault();
|
|
1846
|
-
visibleRows.forEach((row) => {
|
|
1847
|
-
const key = row.dataset.entityKey;
|
|
1848
|
-
if (key) selectedKeys.add(key);
|
|
1849
|
-
});
|
|
1850
|
-
lastSelectedIndex = visibleRows.length - 1;
|
|
1851
|
-
updateSelectionUI();
|
|
1852
|
-
}
|
|
1853
|
-
});
|
|
1854
|
-
|
|
1855
|
-
if (clearSelectionBtn) {
|
|
1856
|
-
clearSelectionBtn.addEventListener('click', () => {
|
|
1857
|
-
clearSelection();
|
|
1858
|
-
filterEntities();
|
|
1859
|
-
});
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
|
-
if(bulkTagSelect) {
|
|
1863
|
-
bulkTagSelect.addEventListener('change', () => updateSelectionUI());
|
|
1864
|
-
}
|
|
1865
|
-
|
|
1866
|
-
if (bulkRoleReadSelect) {
|
|
1867
|
-
bulkRoleReadSelect.addEventListener('change', () => {
|
|
1868
|
-
markSelectChangedByUser(bulkRoleReadSelect);
|
|
1869
|
-
updateSelectionUI();
|
|
1870
|
-
});
|
|
1871
|
-
}
|
|
1872
|
-
|
|
1873
|
-
if (bulkRoleWriteSelect) {
|
|
1874
|
-
bulkRoleWriteSelect.addEventListener('change', () => {
|
|
1875
|
-
markSelectChangedByUser(bulkRoleWriteSelect);
|
|
1876
|
-
updateSelectionUI();
|
|
1877
|
-
});
|
|
1878
|
-
}
|
|
1879
|
-
|
|
1880
|
-
const doBulkApplyTag = async () => {
|
|
1881
|
-
if(!bulkApplyTagBtn || !bulkTagSelect) return;
|
|
1882
|
-
const tagId = bulkTagSelect.value;
|
|
1883
|
-
if (!tagId) return;
|
|
1884
|
-
const items = collectSelectionItems().filter((item) => isTaggableType(item.type));
|
|
1885
|
-
if (!items.length) return;
|
|
1886
|
-
bulkApplyTagBtn.disabled = true;
|
|
1887
|
-
try {
|
|
1888
|
-
const res = await fetch('/entities/bulk-apply-tag', {
|
|
1889
|
-
method: 'POST',
|
|
1890
|
-
headers: {
|
|
1891
|
-
"Content-Type": "application/json",
|
|
1892
|
-
'CSRF-Token': window._sc_globalCsrf || '',
|
|
1893
|
-
},
|
|
1894
|
-
body: JSON.stringify({ tag_id: tagId, items }),
|
|
1895
|
-
});
|
|
1896
|
-
if (!res.ok) throw new Error(await res.text());
|
|
1897
|
-
await res.json();
|
|
1898
|
-
const tagName = TAGS_BY_ID[tagId] || '';
|
|
1899
|
-
items.forEach((item) => {
|
|
1900
|
-
const row = findRowByKey(item.key);
|
|
1901
|
-
if (row) updateRowTags(row, tagId, tagName, item.type);
|
|
1902
|
-
});
|
|
1903
|
-
filterEntities();
|
|
1904
|
-
} catch (e) {
|
|
1905
|
-
console.error('Failed to apply tag to selected items', e);
|
|
1906
|
-
alert("Failed to apply tag to selected items");
|
|
1907
|
-
}
|
|
1908
|
-
bulkApplyTagBtn.disabled = false;
|
|
1909
|
-
};
|
|
1910
|
-
|
|
1911
|
-
if(bulkApplyTagBtn) {
|
|
1912
|
-
bulkApplyTagBtn.addEventListener('click', doBulkApplyTag);
|
|
1913
|
-
}
|
|
1914
|
-
|
|
1915
|
-
const triggerDownload = (filename, content) => {
|
|
1916
|
-
const blob = new Blob([content], { type: 'application/json' });
|
|
1917
|
-
const url = URL.createObjectURL(blob);
|
|
1918
|
-
const a = document.createElement('a');
|
|
1919
|
-
a.href = url;
|
|
1920
|
-
a.download = filename;
|
|
1921
|
-
document.body.appendChild(a);
|
|
1922
|
-
a.click();
|
|
1923
|
-
document.body.removeChild(a);
|
|
1924
|
-
URL.revokeObjectURL(url);
|
|
1925
|
-
};
|
|
1926
|
-
|
|
1927
|
-
const doBulkDownloadPack = async () => {
|
|
1928
|
-
if (!bulkDownloadPackBtn) return;
|
|
1929
|
-
const items = collectSelectionItems()
|
|
1930
|
-
// .filter((item) => isDownloadableEntity(item));
|
|
1931
|
-
if (!items.length) return;
|
|
1932
|
-
bulkDownloadPackBtn.disabled = true;
|
|
1933
|
-
try {
|
|
1934
|
-
const res = await fetch('/entities/download-pack', {
|
|
1935
|
-
method: 'POST',
|
|
1936
|
-
headers: {
|
|
1937
|
-
'Content-Type': 'application/json',
|
|
1938
|
-
'CSRF-Token': window._sc_globalCsrf || '',
|
|
1939
|
-
},
|
|
1940
|
-
body: JSON.stringify({ items }),
|
|
1941
|
-
});
|
|
1942
|
-
if (!res.ok) throw new Error(await res.text());
|
|
1943
|
-
const payload = await res.json();
|
|
1944
|
-
if (Array.isArray(payload?.packs)) {
|
|
1945
|
-
payload.packs.forEach((pack) => {
|
|
1946
|
-
if (pack && pack.name && pack.content) {
|
|
1947
|
-
const content =
|
|
1948
|
-
typeof pack.content === 'string'
|
|
1949
|
-
? pack.content
|
|
1950
|
-
: JSON.stringify(pack.content, null, 2);
|
|
1951
|
-
triggerDownload(pack.name + '.json', content);
|
|
1952
|
-
}
|
|
1953
|
-
});
|
|
1954
|
-
}
|
|
1955
|
-
} catch (e) {
|
|
1956
|
-
console.error('Failed to download pack(s)', e);
|
|
1957
|
-
alert("Failed to download pack for selected items");
|
|
1958
|
-
}
|
|
1959
|
-
bulkDownloadPackBtn.disabled = false;
|
|
1960
|
-
};
|
|
1961
|
-
|
|
1962
|
-
if (bulkDownloadPackBtn) {
|
|
1963
|
-
bulkDownloadPackBtn.addEventListener('click', doBulkDownloadPack);
|
|
1964
|
-
}
|
|
1965
|
-
|
|
1966
|
-
if (bulkApplyRoleReadBtn) {
|
|
1967
|
-
bulkApplyRoleReadBtn.addEventListener('click', () => doBulkApplyRole('read'));
|
|
1968
|
-
}
|
|
1969
|
-
|
|
1970
|
-
if (bulkApplyRoleWriteBtn) {
|
|
1971
|
-
bulkApplyRoleWriteBtn.addEventListener('click', () => doBulkApplyRole('write'));
|
|
1972
|
-
}
|
|
1973
|
-
|
|
1974
|
-
const collectSelectionItems = () =>
|
|
1975
|
-
Array.from(selectedKeys)
|
|
1976
|
-
.map((key) => selectionPayloadFromRow(findRowByKey(key)))
|
|
1977
|
-
.filter(Boolean);
|
|
1978
|
-
|
|
1979
|
-
const getRoleName = (rid) => {
|
|
1980
|
-
if (typeof rid === 'undefined') return '';
|
|
1981
|
-
const key = String(rid);
|
|
1982
|
-
if (!ROLES_BY_ID) return '';
|
|
1983
|
-
return Object.prototype.hasOwnProperty.call(ROLES_BY_ID, key) ? ROLES_BY_ID[key] : '?';
|
|
1984
|
-
};
|
|
1985
|
-
|
|
1986
|
-
const toNumberOrUndefined = (val) => {
|
|
1987
|
-
if (val === '' || typeof val === 'undefined' || val === null) return undefined;
|
|
1988
|
-
const num = Number(val);
|
|
1989
|
-
return Number.isNaN(num) ? undefined : num;
|
|
1990
|
-
};
|
|
1991
|
-
|
|
1992
|
-
const updateRowAccess = (row, payload) => {
|
|
1993
|
-
if (!row) return;
|
|
1994
|
-
if (typeof payload.min_role_read !== 'undefined') row.dataset.minRoleRead = String(payload.min_role_read ?? '');
|
|
1995
|
-
if (typeof payload.min_role_write !== 'undefined') row.dataset.minRoleWrite = String(payload.min_role_write ?? '');
|
|
1996
|
-
if (typeof payload.min_role !== 'undefined') row.dataset.minRole = String(payload.min_role ?? '');
|
|
1997
|
-
const cell = row.querySelector('td:nth-child(5)');
|
|
1998
|
-
if (cell) {
|
|
1999
|
-
const label = (() => {
|
|
2000
|
-
if (payload.type === 'table') {
|
|
2001
|
-
const ext = row.dataset.external === 'true';
|
|
2002
|
-
const rr = toNumberOrUndefined(payload.min_role_read);
|
|
2003
|
-
const rw = toNumberOrUndefined(payload.min_role_write);
|
|
2004
|
-
if (ext) return getRoleName(rr) + " (read only)";
|
|
2005
|
-
if (typeof rr !== 'undefined' && typeof rw !== 'undefined') return getRoleName(rr) + "/" + getRoleName(rw);
|
|
2006
|
-
return '';
|
|
2007
|
-
}
|
|
2008
|
-
const mr = toNumberOrUndefined(payload.min_role);
|
|
2009
|
-
return typeof mr !== 'undefined' ? getRoleName(mr) : '';
|
|
2010
|
-
})();
|
|
2011
|
-
cell.textContent = label;
|
|
2012
|
-
}
|
|
2013
|
-
};
|
|
2014
|
-
|
|
2015
|
-
const doBulkApplyRole = async (mode) => {
|
|
2016
|
-
const isWriteMode = mode === 'write';
|
|
2017
|
-
const selectEl = isWriteMode ? bulkRoleWriteSelect : bulkRoleReadSelect;
|
|
2018
|
-
const buttonEl = isWriteMode ? bulkApplyRoleWriteBtn : bulkApplyRoleReadBtn;
|
|
2019
|
-
if (!selectEl || !buttonEl) return;
|
|
2020
|
-
const roleId = selectEl.value;
|
|
2021
|
-
if (!roleId) return;
|
|
2022
|
-
const items = collectSelectionItems().filter((item) => {
|
|
2023
|
-
if (isWriteMode) return item.type === 'table';
|
|
2024
|
-
return ['table', 'view', 'page'].includes(item.type);
|
|
2025
|
-
});
|
|
2026
|
-
if (!items.length) return;
|
|
2027
|
-
buttonEl.disabled = true;
|
|
2028
|
-
try {
|
|
2029
|
-
const res = await fetch('/entities/bulk-set-role', {
|
|
2030
|
-
method: 'POST',
|
|
2031
|
-
headers: {
|
|
2032
|
-
'Content-Type': 'application/json',
|
|
2033
|
-
'CSRF-Token': window._sc_globalCsrf || '',
|
|
2034
|
-
},
|
|
2035
|
-
body: JSON.stringify({ items, role_id: roleId, mode }),
|
|
2036
|
-
});
|
|
2037
|
-
if (!res.ok) throw new Error(await res.text());
|
|
2038
|
-
const payload = await res.json();
|
|
2039
|
-
const updatedKeys = new Set(payload?.updatedKeys || []);
|
|
2040
|
-
const errors = payload?.errors || [];
|
|
2041
|
-
if (errors.length) {
|
|
2042
|
-
console.error('Failed to set role for some items', errors);
|
|
2043
|
-
alert('Failed to set role for some selected items');
|
|
2044
|
-
}
|
|
2045
|
-
items.forEach((item) => {
|
|
2046
|
-
if (updatedKeys.size && !updatedKeys.has(item.key)) return;
|
|
2047
|
-
const row = findRowByKey(item.key);
|
|
2048
|
-
if (!row) return;
|
|
2049
|
-
if (isWriteMode && item.type === 'table') {
|
|
2050
|
-
updateRowAccess(row, { type: 'table', min_role_write: Number(roleId), min_role_read: toNumberOrUndefined(row.dataset.minRoleRead) });
|
|
2051
|
-
} else if (!isWriteMode) {
|
|
2052
|
-
if (item.type === 'table') {
|
|
2053
|
-
updateRowAccess(row, { type: 'table', min_role_read: Number(roleId), min_role_write: toNumberOrUndefined(row.dataset.minRoleWrite) });
|
|
2054
|
-
} else if (item.type === 'view') {
|
|
2055
|
-
updateRowAccess(row, { type: 'view', min_role: Number(roleId) });
|
|
2056
|
-
} else if (item.type === 'page') {
|
|
2057
|
-
updateRowAccess(row, { type: 'page', min_role: Number(roleId) });
|
|
2058
|
-
}
|
|
2059
|
-
}
|
|
2060
|
-
});
|
|
2061
|
-
} catch (e) {
|
|
2062
|
-
console.error('Failed to set role for selected items', e);
|
|
2063
|
-
alert('Failed to set role for selected items');
|
|
2064
|
-
}
|
|
2065
|
-
buttonEl.disabled = false;
|
|
2066
|
-
updateSelectionUI();
|
|
2067
|
-
};
|
|
2068
|
-
|
|
2069
|
-
const formatDeleteError = (err) => {
|
|
2070
|
-
const displayType = err?.isPack
|
|
2071
|
-
? "Pack"
|
|
2072
|
-
: (() => {
|
|
2073
|
-
const t = (err?.type || "").toString();
|
|
2074
|
-
if (!t) return "Item";
|
|
2075
|
-
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
2076
|
-
})();
|
|
2077
|
-
const label = err?.name || err?.id || err?.key || "(unknown)";
|
|
2078
|
-
const message = err?.message || TXT_DELETE_FAILED || "Failed to delete selected items";
|
|
2079
|
-
return displayType + " (" + label + "): " + message;
|
|
2080
|
-
};
|
|
2081
|
-
|
|
2082
|
-
const showBulkDeleteErrors = (errs) => {
|
|
2083
|
-
if (!errs || !errs.length) return;
|
|
2084
|
-
const body = errs
|
|
2085
|
-
.map((e) => formatDeleteError(e))
|
|
2086
|
-
.join("\\n-----\\n");
|
|
2087
|
-
alert(body);
|
|
2088
|
-
};
|
|
2089
|
-
|
|
2090
|
-
const removeRowsByKeys = (keysToRemove) => {
|
|
2091
|
-
if (!keysToRemove || !keysToRemove.size) return;
|
|
2092
|
-
document.querySelectorAll('.entity-row').forEach((row) => {
|
|
2093
|
-
if (keysToRemove.has(row.dataset.entityKey)) row.remove();
|
|
2094
|
-
});
|
|
2095
|
-
};
|
|
2096
|
-
|
|
2097
|
-
const refreshExtendedEntitiesAfterDelete = async () => {
|
|
2098
|
-
if (typeof isExtendedExpanded !== 'undefined' && !isExtendedExpanded) return;
|
|
2099
|
-
if (typeof loadExtendedEntities !== 'function' || typeof renderExtendedEntityRows !== 'function') return;
|
|
2100
|
-
const tbody = document.querySelector('#entities-list tbody');
|
|
2101
|
-
if (!tbody) return;
|
|
2102
|
-
const shouldLoadAll = typeof window.isModulesFilterExclusive === 'function'
|
|
2103
|
-
? window.isModulesFilterExclusive()
|
|
2104
|
-
: false;
|
|
2105
|
-
try {
|
|
2106
|
-
const extendedEntities = await loadExtendedEntities(shouldLoadAll);
|
|
2107
|
-
window.extendedEntities = extendedEntities;
|
|
2108
|
-
renderExtendedEntityRows(extendedEntities, tbody);
|
|
2109
|
-
} catch (err) {
|
|
2110
|
-
console.error('Failed to refresh extended entities after delete:', err);
|
|
2111
|
-
}
|
|
2112
|
-
};
|
|
2113
|
-
|
|
2114
|
-
if (bulkDeleteBtn) {
|
|
2115
|
-
bulkDeleteBtn.addEventListener('click', async () => {
|
|
2116
|
-
const items = collectSelectionItems();
|
|
2117
|
-
if (!items.length) return;
|
|
2118
|
-
const template = TXT_DELETE_SELECTED_CONFIRM || TXT_DELETE_SELECTED_FALLBACK;
|
|
2119
|
-
const msg = template.includes('%s')
|
|
2120
|
-
? template.replace('%s', items.length)
|
|
2121
|
-
: template;
|
|
2122
|
-
if (!window.confirm(msg)) return;
|
|
2123
|
-
bulkDeleteBtn.disabled = true;
|
|
2124
|
-
try {
|
|
2125
|
-
const res = await fetch('/entities/bulk-delete', {
|
|
2126
|
-
method: 'POST',
|
|
2127
|
-
headers: {
|
|
2128
|
-
'Content-Type': 'application/json',
|
|
2129
|
-
'CSRF-Token': window._sc_globalCsrf || '',
|
|
2130
|
-
},
|
|
2131
|
-
body: JSON.stringify({ items }),
|
|
2132
|
-
});
|
|
2133
|
-
if (!res.ok) throw new Error(await res.text());
|
|
2134
|
-
const payload = await res.json();
|
|
2135
|
-
const keysToRemove = new Set(
|
|
2136
|
-
(payload.deletedKeys && payload.deletedKeys.length
|
|
2137
|
-
? payload.deletedKeys
|
|
2138
|
-
: items.map((i) => i.key))
|
|
2139
|
-
);
|
|
2140
|
-
removeRowsByKeys(keysToRemove);
|
|
2141
|
-
if (payload.errors && payload.errors.length) {
|
|
2142
|
-
console.error('Bulk delete errors', payload.errors);
|
|
2143
|
-
showBulkDeleteErrors(payload.errors);
|
|
2144
|
-
}
|
|
2145
|
-
clearSelection();
|
|
2146
|
-
await refreshExtendedEntitiesAfterDelete();
|
|
2147
|
-
filterEntities();
|
|
2148
|
-
} catch (e) {
|
|
2149
|
-
console.error(e);
|
|
2150
|
-
alert(TXT_DELETE_FAILED || 'Failed to delete selected items');
|
|
2151
|
-
}
|
|
2152
|
-
bulkDeleteBtn.disabled = false;
|
|
2153
|
-
});
|
|
2154
|
-
}
|
|
2155
|
-
|
|
2156
|
-
if (entitiesTbody) {
|
|
2157
|
-
entitiesTbody.addEventListener('click', (e) => {
|
|
2158
|
-
const row = e.target.closest('.entity-row');
|
|
2159
|
-
if (!row) return;
|
|
2160
|
-
if (e.target.closest('a, button, input, select, textarea, label'))
|
|
2161
|
-
return;
|
|
2162
|
-
if (!isRowSelectable(row)) {
|
|
2163
|
-
lastSelectedIndex = null;
|
|
2164
|
-
return;
|
|
2165
|
-
}
|
|
2166
|
-
const visibleRows = getSelectableVisibleRows();
|
|
2167
|
-
const index = visibleRows.indexOf(row);
|
|
2168
|
-
const key = row.dataset.entityKey;
|
|
2169
|
-
if (!key) return;
|
|
2170
|
-
const isShift = e.shiftKey;
|
|
2171
|
-
const isMeta = e.metaKey || e.ctrlKey;
|
|
2172
|
-
|
|
2173
|
-
if (isShift && lastSelectedIndex !== null && visibleRows[lastSelectedIndex]) {
|
|
2174
|
-
selectedKeys.clear();
|
|
2175
|
-
const start = Math.min(lastSelectedIndex, index);
|
|
2176
|
-
const end = Math.max(lastSelectedIndex, index);
|
|
2177
|
-
for (let i = start; i <= end; i++) {
|
|
2178
|
-
const rangeKey = visibleRows[i].dataset.entityKey;
|
|
2179
|
-
if (rangeKey) selectedKeys.add(rangeKey);
|
|
2180
|
-
}
|
|
2181
|
-
} else if (isMeta) {
|
|
2182
|
-
if (selectedKeys.has(key)) {
|
|
2183
|
-
selectedKeys.delete(key);
|
|
2184
|
-
} else {
|
|
2185
|
-
selectedKeys.add(key);
|
|
2186
|
-
}
|
|
2187
|
-
lastSelectedIndex = index;
|
|
2188
|
-
} else {
|
|
2189
|
-
const onlyThisSelected = selectedKeys.size === 1 && selectedKeys.has(key);
|
|
2190
|
-
selectedKeys.clear();
|
|
2191
|
-
if (!onlyThisSelected) {
|
|
2192
|
-
selectedKeys.add(key);
|
|
2193
|
-
lastSelectedIndex = index;
|
|
2194
|
-
} else {
|
|
2195
|
-
lastSelectedIndex = null;
|
|
2196
|
-
}
|
|
2197
|
-
}
|
|
2198
|
-
updateSelectionUI();
|
|
2199
|
-
});
|
|
2200
|
-
}
|
|
2201
|
-
|
|
2202
|
-
// Init from URL and run first filter
|
|
2203
|
-
const { shouldExpandExtended } = initFromUrl();
|
|
2204
|
-
if (shouldExpandExtended) {
|
|
2205
|
-
toggleEntityExpanded(true);
|
|
2206
|
-
} else {
|
|
2207
|
-
filterEntities();
|
|
2208
|
-
}
|
|
2209
|
-
// Focus search on load
|
|
2210
|
-
searchInput.focus();
|
|
2211
|
-
updateSelectionUI();
|
|
2212
|
-
setTimeout(updateLegacyButton,200);
|
|
2213
|
-
`;
|
|
2214
|
-
|
|
2215
1307
|
const styles = `
|
|
2216
1308
|
<style>
|
|
2217
1309
|
/* Temporary fallback selection bg color */
|
|
@@ -2241,6 +1333,26 @@ router.get(
|
|
|
2241
1333
|
#entity-less-btn:not(.d-none) {
|
|
2242
1334
|
max-width: 80px;
|
|
2243
1335
|
}
|
|
1336
|
+
.entity-section-header-row td {
|
|
1337
|
+
padding: 3px 8px;
|
|
1338
|
+
font-size: 0.7rem;
|
|
1339
|
+
font-weight: 600;
|
|
1340
|
+
text-transform: uppercase;
|
|
1341
|
+
letter-spacing: 0.06em;
|
|
1342
|
+
color: var(--bs-secondary-color, #6c757d);
|
|
1343
|
+
background: var(--bs-secondary-bg, #f8f9fa);
|
|
1344
|
+
border-bottom: 1px solid var(--bs-border-color, #dee2e6);
|
|
1345
|
+
user-select: none;
|
|
1346
|
+
}
|
|
1347
|
+
.entity-row-recent td { opacity: 0.88; }
|
|
1348
|
+
@keyframes entity-row-flash {
|
|
1349
|
+
0% { background-color: var(--bs-warning-bg-subtle, #fff3cd); }
|
|
1350
|
+
100% { background-color: var(--bs-table-bg, transparent); }
|
|
1351
|
+
}
|
|
1352
|
+
#entities-list .entity-row-flash > td,
|
|
1353
|
+
#entities-list .entity-row-flash > th {
|
|
1354
|
+
animation: entity-row-flash 2.5s ease-out;
|
|
1355
|
+
}
|
|
2244
1356
|
</style>
|
|
2245
1357
|
`;
|
|
2246
1358
|
|
|
@@ -2267,8 +1379,8 @@ router.get(
|
|
|
2267
1379
|
noResultsMessage
|
|
2268
1380
|
)
|
|
2269
1381
|
),
|
|
2270
|
-
|
|
2271
|
-
|
|
1382
|
+
script(
|
|
1383
|
+
domReady(/*js*/ `
|
|
2272
1384
|
window.ENTITY_ROLES = ${JSON.stringify(roles)};
|
|
2273
1385
|
window.TXT_DISABLED = ${JSON.stringify(req.__("Disabled"))};
|
|
2274
1386
|
window.TXT_CONFIGURABLE = ${JSON.stringify(req.__("Configurable"))};
|
|
@@ -2280,311 +1392,20 @@ router.get(
|
|
|
2280
1392
|
window.TXT_INFO = ${JSON.stringify(req.__("Info"))};
|
|
2281
1393
|
window.TXT_AUTH = ${JSON.stringify(req.__("Authentication"))};
|
|
2282
1394
|
window.TXT_MOBILE = ${JSON.stringify(req.__("Mobile"))};
|
|
2283
|
-
window.ENTITY_DEEP_SEARCH =
|
|
2284
|
-
|
|
2285
|
-
document.
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
const btn = document.querySelector('.entity-filter-btn[data-entity-type="' + type + '"]');
|
|
2298
|
-
if (btn) {
|
|
2299
|
-
btn.classList.remove('btn-primary');
|
|
2300
|
-
btn.classList.add('btn-outline-primary');
|
|
2301
|
-
}
|
|
2302
|
-
}
|
|
2303
|
-
});
|
|
2304
|
-
};
|
|
2305
|
-
// Fetch extended entities via AJAX
|
|
2306
|
-
const loadExtendedEntities = async (includeAllModules = false) => {
|
|
2307
|
-
try {
|
|
2308
|
-
const query = includeAllModules ? '?include_all_modules=1' : '';
|
|
2309
|
-
const res = await fetch('/entities/extended' + query);
|
|
2310
|
-
const data = await res.json();
|
|
2311
|
-
return data.entities || [];
|
|
2312
|
-
} catch (e) {
|
|
2313
|
-
console.error('Failed to load extended entities:', e);
|
|
2314
|
-
return [];
|
|
2315
|
-
}
|
|
2316
|
-
};
|
|
2317
|
-
|
|
2318
|
-
const renderExtendedEntityRows = (extendedEntities, tbody) => {
|
|
2319
|
-
document
|
|
2320
|
-
.querySelectorAll('[data-is-extended]')
|
|
2321
|
-
.forEach((row) => row.remove());
|
|
2322
|
-
extendedEntities.forEach((entity) => {
|
|
2323
|
-
const row = createExtendedEntityRow(entity);
|
|
2324
|
-
tbody.appendChild(row);
|
|
2325
|
-
});
|
|
2326
|
-
if (typeof updateSelectionUI === 'function') updateSelectionUI();
|
|
2327
|
-
};
|
|
2328
|
-
|
|
2329
|
-
const ensureAllModulesLoaded = async () => {
|
|
2330
|
-
if (hasLoadedAllModules || isLoadingAllModules) return;
|
|
2331
|
-
if (!isExtendedExpanded) return;
|
|
2332
|
-
isLoadingAllModules = true;
|
|
2333
|
-
let updated = false;
|
|
2334
|
-
try {
|
|
2335
|
-
const extendedEntities = await loadExtendedEntities(true);
|
|
2336
|
-
window.extendedEntities = extendedEntities;
|
|
2337
|
-
const tbody = document.querySelector('#entities-list tbody');
|
|
2338
|
-
renderExtendedEntityRows(extendedEntities, tbody);
|
|
2339
|
-
hasLoadedAllModules = true;
|
|
2340
|
-
updated = true;
|
|
2341
|
-
} catch (e) {
|
|
2342
|
-
console.error('Failed to load all modules:', e);
|
|
2343
|
-
} finally {
|
|
2344
|
-
isLoadingAllModules = false;
|
|
2345
|
-
if (updated && typeof filterEntities === 'function') filterEntities();
|
|
2346
|
-
}
|
|
2347
|
-
};
|
|
2348
|
-
|
|
2349
|
-
// Toggle expanded state
|
|
2350
|
-
window.toggleEntityExpanded = async (expand) => {
|
|
2351
|
-
const moreBtn = document.getElementById('entity-more-btn');
|
|
2352
|
-
const lessBtn = document.getElementById('entity-less-btn');
|
|
2353
|
-
const extendedButtons = document.querySelectorAll('.entity-extended-btn');
|
|
2354
|
-
const tbody = document.querySelector('#entities-list tbody');
|
|
2355
|
-
|
|
2356
|
-
if (expand) {
|
|
2357
|
-
if (isExtendedExpanded) return;
|
|
2358
|
-
extendedButtons.forEach(btn => btn.classList.remove('d-none'));
|
|
2359
|
-
moreBtn.classList.add('d-none');
|
|
2360
|
-
lessBtn.classList.remove('d-none');
|
|
2361
|
-
isExtendedExpanded = true;
|
|
2362
|
-
const shouldLoadAll = typeof window.isModulesFilterExclusive === 'function'
|
|
2363
|
-
? window.isModulesFilterExclusive()
|
|
2364
|
-
: false;
|
|
2365
|
-
// Load extended entities
|
|
2366
|
-
const extendedEntities = await loadExtendedEntities(shouldLoadAll);
|
|
2367
|
-
window.extendedEntities = extendedEntities;
|
|
2368
|
-
renderExtendedEntityRows(extendedEntities, tbody);
|
|
2369
|
-
hasLoadedAllModules = shouldLoadAll;
|
|
2370
|
-
filterEntities();
|
|
2371
|
-
} else {
|
|
2372
|
-
if (!isExtendedExpanded) return;
|
|
2373
|
-
extendedButtons.forEach(btn => btn.classList.add('d-none'));
|
|
2374
|
-
moreBtn.classList.remove('d-none');
|
|
2375
|
-
lessBtn.classList.add('d-none');
|
|
2376
|
-
isExtendedExpanded = false;
|
|
2377
|
-
hasLoadedAllModules = false;
|
|
2378
|
-
isLoadingAllModules = false;
|
|
2379
|
-
window.extendedEntities = [];
|
|
2380
|
-
renderExtendedEntityRows([], tbody);
|
|
2381
|
-
clearExtendedTypeFilters();
|
|
2382
|
-
// Update filter
|
|
2383
|
-
filterEntities();
|
|
2384
|
-
}
|
|
2385
|
-
};
|
|
2386
|
-
|
|
2387
|
-
// Helper to create entity row for extended entities
|
|
2388
|
-
const createExtendedEntityRow = (entity) => {
|
|
2389
|
-
const tr = document.createElement('tr');
|
|
2390
|
-
tr.className = 'entity-row';
|
|
2391
|
-
tr.dataset.entityType = entity.type;
|
|
2392
|
-
tr.dataset.entityName = entity.name.toLowerCase();
|
|
2393
|
-
if (entity.id) {
|
|
2394
|
-
tr.dataset.entityId = entity.id;
|
|
2395
|
-
} else {
|
|
2396
|
-
tr.dataset.entityId = '';
|
|
2397
|
-
}
|
|
2398
|
-
tr.dataset.entityLabel = entity.name;
|
|
2399
|
-
const key = entity.type + ':' + (entity.type === 'module' ? entity.name : entity.id);
|
|
2400
|
-
tr.dataset.entityKey = key;
|
|
2401
|
-
let searchable = ((entity.name || '').toLowerCase() + ' ' + entity.type).trim();
|
|
2402
|
-
if (entity.metadata) {
|
|
2403
|
-
Object.keys(entity.metadata).forEach((key) => {
|
|
2404
|
-
const val = entity.metadata[key];
|
|
2405
|
-
const shouldSkipDescription =
|
|
2406
|
-
entity.type === 'module' && key === 'description';
|
|
2407
|
-
const shouldSkipForSearchable =
|
|
2408
|
-
entity.type === 'user' && key === 'username';
|
|
2409
|
-
if (!shouldSkipDescription && !shouldSkipForSearchable && val && typeof val === 'string') {
|
|
2410
|
-
searchable += ' ' + val.toLowerCase();
|
|
2411
|
-
}
|
|
2412
|
-
});
|
|
2413
|
-
}
|
|
2414
|
-
tr.dataset.tags = '';
|
|
2415
|
-
tr.dataset.isExtended = 'true';
|
|
2416
|
-
tr.dataset.installed =
|
|
2417
|
-
entity.metadata && entity.metadata.installed === false
|
|
2418
|
-
? 'false'
|
|
2419
|
-
: 'true';
|
|
2420
|
-
tr.dataset.moduleKind = entity.metadata && entity.metadata.type ? entity.metadata.type : '';
|
|
2421
|
-
|
|
2422
|
-
if (!isRowSelectable(tr)) {
|
|
2423
|
-
tr.classList.add('entity-row-selection-disabled');
|
|
2424
|
-
tr.setAttribute('aria-disabled', 'true');
|
|
2425
|
-
}
|
|
2426
|
-
|
|
2427
|
-
// Type badge
|
|
2428
|
-
const badges = {
|
|
2429
|
-
module: { class: "secondary", icon: "cube", label: "Module" },
|
|
2430
|
-
user: { class: "dark", icon: "user", label: "User" },
|
|
2431
|
-
};
|
|
2432
|
-
const badge = badges[entity.type];
|
|
2433
|
-
const typeBadge = document.createElement('td');
|
|
2434
|
-
typeBadge.innerHTML = '<span class="badge bg-' + badge.class + ' me-2"><i class="fas fa-' + badge.icon + ' me-1"></i>' + badge.label + '</span>';
|
|
2435
|
-
tr.appendChild(typeBadge);
|
|
2436
|
-
|
|
2437
|
-
const hasConfig = entity.metadata && entity.metadata.hasConfig;
|
|
2438
|
-
const isInstalled = entity.metadata && entity.metadata.installed;
|
|
2439
|
-
|
|
2440
|
-
// Name
|
|
2441
|
-
const nameTd = document.createElement('td');
|
|
2442
|
-
const isStaticModule = entity.type === 'module' && !hasConfig;
|
|
2443
|
-
const nameLink = document.createElement(isStaticModule ? 'span' : 'a');
|
|
2444
|
-
if (!isStaticModule) {
|
|
2445
|
-
const baseHref = entity.editLink || '#';
|
|
2446
|
-
const updatedHref = toRelativeHrefWithOnDone(baseHref);
|
|
2447
|
-
nameLink.setAttribute('href', updatedHref || baseHref);
|
|
2448
|
-
}
|
|
2449
|
-
nameLink.className = 'fw-bold';
|
|
2450
|
-
nameLink.textContent = entity.name;
|
|
2451
|
-
nameTd.appendChild(nameLink);
|
|
2452
|
-
tr.appendChild(nameTd);
|
|
2453
|
-
|
|
2454
|
-
// Run cell (info link for modules)
|
|
2455
|
-
const runTd = document.createElement('td');
|
|
2456
|
-
if (
|
|
2457
|
-
entity.type === 'module' &&
|
|
2458
|
-
entity.metadata &&
|
|
2459
|
-
entity.metadata.type !== 'pack' &&
|
|
2460
|
-
entity.viewLink &&
|
|
2461
|
-
isInstalled
|
|
2462
|
-
) {
|
|
2463
|
-
const infoLink = document.createElement('a');
|
|
2464
|
-
infoLink.className = 'link-primary text-decoration-none';
|
|
2465
|
-
infoLink.innerHTML =
|
|
2466
|
-
// '<i class="fas fa-info-circle me-1"></i>' +
|
|
2467
|
-
(window.TXT_INFO || 'Info');
|
|
2468
|
-
const updatedInfoHref = toRelativeHrefWithOnDone(entity.viewLink);
|
|
2469
|
-
infoLink.setAttribute('href', updatedInfoHref || entity.viewLink);
|
|
2470
|
-
runTd.appendChild(infoLink);
|
|
2471
|
-
}
|
|
2472
|
-
tr.appendChild(runTd);
|
|
2473
|
-
|
|
2474
|
-
// Details cell
|
|
2475
|
-
const detailsTd = document.createElement('td');
|
|
2476
|
-
let detailsHtml = '';
|
|
2477
|
-
if (entity.type === 'user') {
|
|
2478
|
-
const disabled = entity.metadata && entity.metadata.disabled;
|
|
2479
|
-
const roleId = entity.metadata && entity.metadata.role_id;
|
|
2480
|
-
if (Array.isArray(window.ENTITY_ROLES)) {
|
|
2481
|
-
const role = window.ENTITY_ROLES.find(function (r) {
|
|
2482
|
-
return String(r.id) === String(roleId);
|
|
2483
|
-
});
|
|
2484
|
-
if (role && role.role) {
|
|
2485
|
-
detailsHtml += '<span class="text-muted small me-2">' + role.role + '</span>';
|
|
2486
|
-
}
|
|
2487
|
-
}
|
|
2488
|
-
if (disabled) {
|
|
2489
|
-
detailsHtml += '<span class="badge bg-danger me-1">' + (window.TXT_DISABLED || 'Disabled') + '</span>';
|
|
2490
|
-
searchable += ' disabled';
|
|
2491
|
-
}
|
|
2492
|
-
} else if (entity.type === 'module') {
|
|
2493
|
-
const version = entity.metadata && entity.metadata.version;
|
|
2494
|
-
const hasTheme = entity.metadata && entity.metadata.has_theme;
|
|
2495
|
-
const hasAuth = entity.metadata && entity.metadata.has_auth;
|
|
2496
|
-
const isReadyForMobile = entity.metadata && entity.metadata.ready_for_mobile;
|
|
2497
|
-
const isLocal = entity.metadata && entity.metadata.local;
|
|
2498
|
-
const isPack = entity.metadata && entity.metadata.type === 'pack';
|
|
2499
|
-
if (version) {
|
|
2500
|
-
detailsHtml += '<span class="text-muted small me-2">v' + version + '</span>';
|
|
2501
|
-
}
|
|
2502
|
-
if (isPack) {
|
|
2503
|
-
detailsHtml += '<span class="badge bg-secondary me-1">' + (window.TXT_PACK || 'Pack') + '</span>';
|
|
2504
|
-
}
|
|
2505
|
-
if (hasTheme) {
|
|
2506
|
-
detailsHtml += '<span class="badge bg-secondary me-1">' + (window.TXT_THEME || 'Theme') + '</span>';
|
|
2507
|
-
searchable += ' theme';
|
|
2508
|
-
}
|
|
2509
|
-
if (isLocal) {
|
|
2510
|
-
detailsHtml += '<span class="badge bg-secondary me-1">' + (window.TXT_LOCAL || 'Local') + '</span>';
|
|
2511
|
-
searchable += ' local';
|
|
2512
|
-
}
|
|
2513
|
-
if (isInstalled) {
|
|
2514
|
-
detailsHtml += '<span class="badge bg-secondary me-1">' + (window.TXT_INSTALLED || 'Installed') + '</span>';
|
|
2515
|
-
searchable += ' installed';
|
|
2516
|
-
}
|
|
2517
|
-
if (hasAuth) {
|
|
2518
|
-
detailsHtml += '<span class="badge bg-secondary me-1">' + (window.TXT_AUTH || 'Authentication') + '</span>';
|
|
2519
|
-
searchable += ' authentication auth';
|
|
2520
|
-
}
|
|
2521
|
-
if (isReadyForMobile) {
|
|
2522
|
-
detailsHtml += '<span class="badge bg-secondary me-1">' + (window.TXT_MOBILE || 'Mobile') + '</span>';
|
|
2523
|
-
searchable += ' mobile';
|
|
2524
|
-
}
|
|
2525
|
-
}
|
|
2526
|
-
if (detailsHtml) detailsTd.innerHTML = detailsHtml;
|
|
2527
|
-
tr.appendChild(detailsTd);
|
|
2528
|
-
|
|
2529
|
-
// Access cell (empty for extended entities)
|
|
2530
|
-
const accessTd = document.createElement('td');
|
|
2531
|
-
tr.appendChild(accessTd);
|
|
2532
|
-
|
|
2533
|
-
// Tags cell
|
|
2534
|
-
const tagsTd = document.createElement('td');
|
|
2535
|
-
tr.appendChild(tagsTd);
|
|
2536
|
-
|
|
2537
|
-
// Actions cell (empty for extended entities)
|
|
2538
|
-
const actionsTd = document.createElement('td');
|
|
2539
|
-
if (entity.actionsHtml) {
|
|
2540
|
-
actionsTd.innerHTML = entity.actionsHtml;
|
|
2541
|
-
actionsTd
|
|
2542
|
-
.querySelectorAll('a')
|
|
2543
|
-
.forEach((link) => {
|
|
2544
|
-
const href = link.getAttribute('href');
|
|
2545
|
-
const updated = toRelativeHrefWithOnDone(href);
|
|
2546
|
-
if (updated) link.setAttribute('href', updated);
|
|
2547
|
-
});
|
|
2548
|
-
actionsTd
|
|
2549
|
-
.querySelectorAll('form')
|
|
2550
|
-
.forEach((form) => {
|
|
2551
|
-
const action = form.getAttribute('action');
|
|
2552
|
-
const updated = toRelativeHrefWithOnDone(action);
|
|
2553
|
-
if (updated) form.setAttribute('action', updated);
|
|
2554
|
-
if (entity.type === 'user') ensureOnDoneHiddenInput(form);
|
|
2555
|
-
});
|
|
2556
|
-
const dropdownToggle = actionsTd.querySelector('[data-bs-toggle="dropdown"]');
|
|
2557
|
-
if (dropdownToggle && window.bootstrap && window.bootstrap.Dropdown) {
|
|
2558
|
-
window.bootstrap.Dropdown.getOrCreateInstance(dropdownToggle);
|
|
2559
|
-
}
|
|
2560
|
-
}
|
|
2561
|
-
tr.appendChild(actionsTd);
|
|
2562
|
-
|
|
2563
|
-
tr.dataset.searchable = searchable.trim();
|
|
2564
|
-
let deepSearchable = (entity.deepSearchable || searchable).trim();
|
|
2565
|
-
if (entity.type === 'module') {
|
|
2566
|
-
const description =
|
|
2567
|
-
entity.metadata && typeof entity.metadata.description === 'string'
|
|
2568
|
-
? entity.metadata.description.toLowerCase()
|
|
2569
|
-
: '';
|
|
2570
|
-
if (description && !deepSearchable.includes(description)) {
|
|
2571
|
-
deepSearchable = (deepSearchable + ' ' + description).trim();
|
|
2572
|
-
}
|
|
2573
|
-
} else if (entity.type === 'user' && entity.metadata && typeof entity.metadata.username === 'string') {
|
|
2574
|
-
const usernameLower = entity.metadata.username.toLowerCase();
|
|
2575
|
-
if (!deepSearchable.includes(usernameLower)) {
|
|
2576
|
-
deepSearchable = (deepSearchable + ' ' + usernameLower).trim();
|
|
2577
|
-
}
|
|
2578
|
-
}
|
|
2579
|
-
tr.dataset.deepSearchable = deepSearchable;
|
|
2580
|
-
if (window.ENTITY_DEEP_SEARCH) {
|
|
2581
|
-
window.ENTITY_DEEP_SEARCH[key] = tr.dataset.deepSearchable;
|
|
2582
|
-
}
|
|
2583
|
-
return tr;
|
|
2584
|
-
};
|
|
2585
|
-
|
|
2586
|
-
${clientScript}
|
|
2587
|
-
`),
|
|
1395
|
+
window.ENTITY_DEEP_SEARCH = null;
|
|
1396
|
+
|
|
1397
|
+
document.getElementById("entities-main-body").style.opacity = "1";
|
|
1398
|
+
entitiesListInit({
|
|
1399
|
+
LEGACY_LINK_META: ${JSON.stringify(legacyLinkMeta)},
|
|
1400
|
+
TAGS_BY_ID: ${JSON.stringify(Object.fromEntries(tags.map((t) => [t.id, t.name])))},
|
|
1401
|
+
ROLES_BY_ID: ${JSON.stringify(Object.fromEntries(roles.map((r) => [r.id, r.role])))},
|
|
1402
|
+
TXT_SELECTED: ${JSON.stringify(req.__("selected"))},
|
|
1403
|
+
TXT_DELETE_SELECTED_CONFIRM: ${JSON.stringify(req.__("Delete %s selected items?"))},
|
|
1404
|
+
TXT_DELETE_SELECTED_FALLBACK: ${JSON.stringify(req.__("Delete selected items?"))},
|
|
1405
|
+
TXT_DELETE_FAILED: ${JSON.stringify(req.__("Failed to delete selected items"))},
|
|
1406
|
+
});
|
|
1407
|
+
`)
|
|
1408
|
+
),
|
|
2588
1409
|
],
|
|
2589
1410
|
footer: div(
|
|
2590
1411
|
{
|
|
@@ -2850,7 +1671,6 @@ router.post(
|
|
|
2850
1671
|
const view =
|
|
2851
1672
|
(id !== null ? View.findOne({ id }) : null) ||
|
|
2852
1673
|
View.findOne({ name: item?.name });
|
|
2853
|
-
console.log({ view });
|
|
2854
1674
|
if (!view) throw new Error("View not found");
|
|
2855
1675
|
if (view.id && typeof view.id !== "undefined") {
|
|
2856
1676
|
await View.update({ min_role: roleIdNum }, id);
|