@saltcorn/server 1.6.0-alpha.11 → 1.6.0-alpha.13
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/auth/routes.js +10 -4
- package/docs/assets/hierarchy.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 +11 -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 +11 -11
- package/docs/classes/_saltcorn_data.models_role.Role.html +2 -2
- package/docs/classes/_saltcorn_data.models_table.Table.html +66 -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 +19 -19
- package/docs/classes/_saltcorn_data.models_user.User.html +32 -32
- package/docs/classes/_saltcorn_data.models_view.View.html +15 -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.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.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/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 +3 -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 +2 -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 +2 -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 +2 -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 +2 -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 +4 -4
- 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 +4 -4
- 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.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 +1 -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 +3 -3
- 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 +12 -8
- package/locales/en.json +10 -6
- package/markup/admin.js +9 -2
- package/package.json +12 -12
- package/public/saltcorn-builder.css +18 -0
- package/public/saltcorn-common.js +1 -0
- package/public/saltcorn.css +51 -1
- package/public/saltcorn.js +20 -3
- package/routes/actions.js +45 -23
- package/routes/admin.js +1 -0
- package/routes/entities.js +0 -1
- package/routes/fields.js +4 -0
- package/routes/homepage.js +8 -1
- package/routes/pageedit.js +12 -2
- package/routes/tables.js +5 -2
- package/routes/viewedit.js +19 -1
- package/serve.js +50 -4
- package/tests/page.test.js +45 -0
package/public/saltcorn.css
CHANGED
|
@@ -1005,4 +1005,54 @@ input[type="file"].file-has-existing {
|
|
|
1005
1005
|
overflow: auto;
|
|
1006
1006
|
display: flex;
|
|
1007
1007
|
flex-direction: column-reverse;
|
|
1008
|
-
}
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
span.copy-to-clipboard {
|
|
1011
|
+
position: relative;
|
|
1012
|
+
cursor: pointer;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
span.copy-to-clipboard::before {
|
|
1016
|
+
content: "";
|
|
1017
|
+
position: absolute;
|
|
1018
|
+
right: 0;
|
|
1019
|
+
top: 0;
|
|
1020
|
+
height: 100%;
|
|
1021
|
+
width: 2em;
|
|
1022
|
+
background: linear-gradient(to right, transparent, #fff);
|
|
1023
|
+
pointer-events: none;
|
|
1024
|
+
opacity: 0;
|
|
1025
|
+
transition: opacity 0.2s ease;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
span.copy-to-clipboard:hover::before {
|
|
1029
|
+
opacity: 1;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
span.copy-to-clipboard::after {
|
|
1033
|
+
content: "";
|
|
1034
|
+
position: absolute;
|
|
1035
|
+
right: 0;
|
|
1036
|
+
top: 50%;
|
|
1037
|
+
transform: translateY(-50%);
|
|
1038
|
+
font-size: 0.9em;
|
|
1039
|
+
line-height: 1;
|
|
1040
|
+
pointer-events: none;
|
|
1041
|
+
opacity: 0;
|
|
1042
|
+
transition: opacity 0.2s ease;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
span.copy-to-clipboard:hover::after {
|
|
1046
|
+
content: "📋";
|
|
1047
|
+
opacity: 1;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
span.copy-to-clipboard.copied::before {
|
|
1051
|
+
opacity: 1;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
span.copy-to-clipboard.copied::after {
|
|
1055
|
+
content: "✔";
|
|
1056
|
+
color: #2a9d5c;
|
|
1057
|
+
opacity: 1;
|
|
1058
|
+
}
|
package/public/saltcorn.js
CHANGED
|
@@ -620,6 +620,7 @@ function saveAndContinue(e, k, event) {
|
|
|
620
620
|
},
|
|
621
621
|
data: form_data,
|
|
622
622
|
success: function (res) {
|
|
623
|
+
$(`[toast-title="Save error"]`).removeClass("show");
|
|
623
624
|
ajax_indicator(false);
|
|
624
625
|
form.removeAttr("data-unsaved-changes");
|
|
625
626
|
form.parent().find(".full-form-error").text("");
|
|
@@ -637,7 +638,11 @@ function saveAndContinue(e, k, event) {
|
|
|
637
638
|
var ct = request.getResponseHeader("content-type") || "";
|
|
638
639
|
if (checkNetworkError(request)) {
|
|
639
640
|
} else if (ct.startsWith && ct.startsWith("application/json")) {
|
|
640
|
-
notifyAlert({
|
|
641
|
+
notifyAlert({
|
|
642
|
+
type: "danger",
|
|
643
|
+
text: request.responseJSON.error,
|
|
644
|
+
toast_title: "Save error",
|
|
645
|
+
});
|
|
641
646
|
} else {
|
|
642
647
|
$("#page-inner-content").html(request.responseText);
|
|
643
648
|
initialize_page();
|
|
@@ -1572,6 +1577,18 @@ function cfu_translate(that) {
|
|
|
1572
1577
|
}
|
|
1573
1578
|
}
|
|
1574
1579
|
|
|
1580
|
+
$(document).on("click", "span.copy-to-clipboard", function () {
|
|
1581
|
+
var $el = $(this);
|
|
1582
|
+
var text = $el.text().trim();
|
|
1583
|
+
|
|
1584
|
+
navigator.clipboard.writeText(text).then(function () {
|
|
1585
|
+
$el.addClass("copied");
|
|
1586
|
+
setTimeout(function () {
|
|
1587
|
+
$el.removeClass("copied");
|
|
1588
|
+
}, 1000);
|
|
1589
|
+
});
|
|
1590
|
+
});
|
|
1591
|
+
|
|
1575
1592
|
function ensure_script_loaded(src, callback) {
|
|
1576
1593
|
//https://stackoverflow.com/questions/26331600/load-js-script-only-when-it-has-not-been-loaded-already-and-then-only-once
|
|
1577
1594
|
let scripts = Array.from(document.querySelectorAll("script")).map(
|
|
@@ -1679,14 +1696,14 @@ function ensure_css_loaded(src) {
|
|
|
1679
1696
|
l = function (a, b) {
|
|
1680
1697
|
d = setTimeout(function () {
|
|
1681
1698
|
d = !1;
|
|
1682
|
-
if (h || c) e.apply(a, b), c && (j = +new Date());
|
|
1699
|
+
if (h || c) (e.apply(a, b), c && (j = +new Date()));
|
|
1683
1700
|
i && g.apply(a, b);
|
|
1684
1701
|
}, f);
|
|
1685
1702
|
},
|
|
1686
1703
|
k = function () {
|
|
1687
1704
|
if (!d || a) {
|
|
1688
1705
|
if (!d && !h && (!c || +new Date() - j > f))
|
|
1689
|
-
e.apply(this, arguments), c && (j = +new Date());
|
|
1706
|
+
(e.apply(this, arguments), c && (j = +new Date()));
|
|
1690
1707
|
(a || !c) && clearTimeout(d);
|
|
1691
1708
|
l(this, arguments);
|
|
1692
1709
|
}
|
package/routes/actions.js
CHANGED
|
@@ -74,6 +74,7 @@ const {
|
|
|
74
74
|
h2,
|
|
75
75
|
h4,
|
|
76
76
|
p,
|
|
77
|
+
style,
|
|
77
78
|
} = require("@saltcorn/markup/tags");
|
|
78
79
|
const Table = require("@saltcorn/data/models/table");
|
|
79
80
|
const { getActionConfigFields } = require("@saltcorn/data/plugin-helper");
|
|
@@ -139,7 +140,7 @@ const workflowStrings = (req, trigger) => ({
|
|
|
139
140
|
onlyIf: req.__("Only if"),
|
|
140
141
|
loopBody: req.__("Loop body"),
|
|
141
142
|
openRuns: req.__("Show runs »"),
|
|
142
|
-
configure: req.__(
|
|
143
|
+
configure: req.__(`Configure trigger %s`, trigger.name),
|
|
143
144
|
copyStep: req.__("Copy"),
|
|
144
145
|
});
|
|
145
146
|
|
|
@@ -359,6 +360,7 @@ const triggerForm = async (req, trigger) => {
|
|
|
359
360
|
help: { topic: "Actions" },
|
|
360
361
|
attributes: {
|
|
361
362
|
calcOptions: ["when_trigger", action_options],
|
|
363
|
+
onChange: "$('select[name=action]').val(event.target.value)",
|
|
362
364
|
},
|
|
363
365
|
showIf: {
|
|
364
366
|
when_trigger: Trigger.when_options.filter((t) => t !== "Never"),
|
|
@@ -373,6 +375,7 @@ const triggerForm = async (req, trigger) => {
|
|
|
373
375
|
help: { topic: "Actions" },
|
|
374
376
|
attributes: {
|
|
375
377
|
options: actionsNotRequiringRow,
|
|
378
|
+
onChange: "$('select[name=action]').val(event.target.value)",
|
|
376
379
|
},
|
|
377
380
|
showIf: {
|
|
378
381
|
when_trigger: "Never",
|
|
@@ -388,6 +391,7 @@ const triggerForm = async (req, trigger) => {
|
|
|
388
391
|
help: { topic: "Actions" },
|
|
389
392
|
attributes: {
|
|
390
393
|
options: allActions,
|
|
394
|
+
onChange: "$('select[name=action]').val(event.target.value)",
|
|
391
395
|
},
|
|
392
396
|
showIf: {
|
|
393
397
|
when_trigger: "Never",
|
|
@@ -400,6 +404,7 @@ const triggerForm = async (req, trigger) => {
|
|
|
400
404
|
label: req.__("Description"),
|
|
401
405
|
type: "String",
|
|
402
406
|
fieldview: "textarea",
|
|
407
|
+
attributes: { rows: 2 },
|
|
403
408
|
sublabel: req.__(
|
|
404
409
|
"Description allows you to give more information about the action"
|
|
405
410
|
),
|
|
@@ -635,6 +640,7 @@ const getWorkflowConfig = async (req, id, table, trigger) => {
|
|
|
635
640
|
onChange: "saveAndContinue(this)",
|
|
636
641
|
noSubmitButton: true,
|
|
637
642
|
formStyle: "vert",
|
|
643
|
+
class: "compact-form-group",
|
|
638
644
|
fields: [
|
|
639
645
|
{
|
|
640
646
|
name: "save_traces",
|
|
@@ -671,14 +677,28 @@ const getWorkflowConfig = async (req, id, table, trigger) => {
|
|
|
671
677
|
renderWorkflow(workflowData, db.connectObj.version_tag) +
|
|
672
678
|
div(
|
|
673
679
|
{ class: "mt-3" },
|
|
674
|
-
|
|
680
|
+
div(
|
|
675
681
|
{
|
|
676
|
-
|
|
677
|
-
|
|
682
|
+
class:
|
|
683
|
+
"d-flex justify-content-between align-items-center flex-wrap gap-2",
|
|
678
684
|
},
|
|
679
|
-
req.
|
|
685
|
+
renderForm(trigCfgForm, req.csrfToken()),
|
|
686
|
+
a(
|
|
687
|
+
{
|
|
688
|
+
href: `/actions/runs/?trigger=${trigger.id}`,
|
|
689
|
+
class: "d-inline-block",
|
|
690
|
+
},
|
|
691
|
+
req.__("Show runs »")
|
|
692
|
+
)
|
|
680
693
|
),
|
|
681
|
-
|
|
694
|
+
style(/*css*/ `
|
|
695
|
+
.compact-form-group > .form-group {
|
|
696
|
+
margin-bottom: 0;
|
|
697
|
+
}
|
|
698
|
+
.compact-form-group form {
|
|
699
|
+
margin-bottom: 0;
|
|
700
|
+
}
|
|
701
|
+
`)
|
|
682
702
|
)
|
|
683
703
|
);
|
|
684
704
|
};
|
|
@@ -997,19 +1017,6 @@ const getWorkflowStepForm = async (
|
|
|
997
1017
|
|
|
998
1018
|
const form = new Form({
|
|
999
1019
|
action: addOnDoneRedirect(`/actions/stepedit/${trigger.id}`, req),
|
|
1000
|
-
// submitLabel: step_id ? req.__("Done") : undefined,
|
|
1001
|
-
// submitLabel: null,
|
|
1002
|
-
// onSubmit: "press_store_button(this)",
|
|
1003
|
-
// additionalButtons: step_id
|
|
1004
|
-
// ? [
|
|
1005
|
-
// {
|
|
1006
|
-
// label: req.__("Delete"),
|
|
1007
|
-
// class: "btn btn-outline-danger",
|
|
1008
|
-
// onclick: `ajax_post('/actions/delete-step/${+step_id}')`,
|
|
1009
|
-
// afterSave: true,
|
|
1010
|
-
// },
|
|
1011
|
-
// ]
|
|
1012
|
-
// : undefined,
|
|
1013
1020
|
noSubmitButton: true,
|
|
1014
1021
|
fields: [
|
|
1015
1022
|
{
|
|
@@ -1217,10 +1224,14 @@ router.get(
|
|
|
1217
1224
|
active_sub: "Triggers",
|
|
1218
1225
|
sub2_page: "Configure",
|
|
1219
1226
|
page_title: req.__(`%s configuration`, trigger.name),
|
|
1227
|
+
requestFluidLayout: true,
|
|
1220
1228
|
contents: {
|
|
1221
1229
|
type: "card",
|
|
1222
1230
|
titleAjaxIndicator: true,
|
|
1223
|
-
title: req.__(
|
|
1231
|
+
title: req.__(
|
|
1232
|
+
"Configure trigger %s",
|
|
1233
|
+
span({ class: "copy-to-clipboard" }, trigger.name)
|
|
1234
|
+
),
|
|
1224
1235
|
subtitle,
|
|
1225
1236
|
contents: wfCfg,
|
|
1226
1237
|
},
|
|
@@ -1237,7 +1248,10 @@ router.get(
|
|
|
1237
1248
|
contents: {
|
|
1238
1249
|
type: "card",
|
|
1239
1250
|
titleAjaxIndicator: true,
|
|
1240
|
-
title: req.__(
|
|
1251
|
+
title: req.__(
|
|
1252
|
+
"Configure trigger %s",
|
|
1253
|
+
span({ class: "copy-to-clipboard" }, trigger.name)
|
|
1254
|
+
),
|
|
1241
1255
|
subtitle,
|
|
1242
1256
|
contents: renderForm(form, req.csrfToken()),
|
|
1243
1257
|
},
|
|
@@ -1271,7 +1285,10 @@ router.get(
|
|
|
1271
1285
|
contents: {
|
|
1272
1286
|
type: "card",
|
|
1273
1287
|
titleAjaxIndicator: true,
|
|
1274
|
-
title: req.__(
|
|
1288
|
+
title: req.__(
|
|
1289
|
+
"Configure trigger %s",
|
|
1290
|
+
span({ class: "copy-to-clipboard" }, trigger.name)
|
|
1291
|
+
),
|
|
1275
1292
|
subtitle,
|
|
1276
1293
|
contents: {
|
|
1277
1294
|
widths: [8, 4],
|
|
@@ -1345,7 +1362,10 @@ router.get(
|
|
|
1345
1362
|
contents: {
|
|
1346
1363
|
type: "card",
|
|
1347
1364
|
titleAjaxIndicator: true,
|
|
1348
|
-
title: req.__(
|
|
1365
|
+
title: req.__(
|
|
1366
|
+
"Configure trigger %s",
|
|
1367
|
+
span({ class: "copy-to-clipboard" }, trigger.name)
|
|
1368
|
+
),
|
|
1349
1369
|
subtitle,
|
|
1350
1370
|
contents: renderForm(form, req.csrfToken()),
|
|
1351
1371
|
},
|
|
@@ -1639,6 +1659,8 @@ router.get(
|
|
|
1639
1659
|
before_step,
|
|
1640
1660
|
after_step_for
|
|
1641
1661
|
);
|
|
1662
|
+
if (+req.query.vw < 1000 && req.query.render === "dialog")
|
|
1663
|
+
form.formStyle = "vert";
|
|
1642
1664
|
|
|
1643
1665
|
if (initial_step) form.values.wf_initial_step = true;
|
|
1644
1666
|
if (!step_id) {
|
package/routes/admin.js
CHANGED
|
@@ -2034,6 +2034,7 @@ router.post(
|
|
|
2034
2034
|
if (err) req.flash("error", err);
|
|
2035
2035
|
else req.flash("success", req.__("Successfully restored backup"));
|
|
2036
2036
|
await getState().refresh_plugins();
|
|
2037
|
+
Trigger.emitEvent("Startup");
|
|
2037
2038
|
fs.unlink(newPath, function () {});
|
|
2038
2039
|
res.redirect(`/admin`);
|
|
2039
2040
|
})
|
package/routes/entities.js
CHANGED
|
@@ -1219,7 +1219,6 @@ router.get(
|
|
|
1219
1219
|
: "",
|
|
1220
1220
|
"data-module-kind": entity.metadata?.type || "",
|
|
1221
1221
|
"data-searchable": searchableValues.join(" "),
|
|
1222
|
-
"data-deep-searchable": deepSearchable || searchableValues.join(" "),
|
|
1223
1222
|
"data-tags": tagIds.join(" "),
|
|
1224
1223
|
"data-min-role-read":
|
|
1225
1224
|
typeof minRoleRead !== "undefined" ? String(minRoleRead) : "",
|
package/routes/fields.js
CHANGED
|
@@ -99,6 +99,10 @@ const fieldForm = async (req, fkey_opts, existing_names, id, hasData) => {
|
|
|
99
99
|
return req.__("Column %s already exists", s);
|
|
100
100
|
if (Field.labelToName(s) === "row")
|
|
101
101
|
return req.__("Not a valid field name");
|
|
102
|
+
if (s.length > 63)
|
|
103
|
+
return req.__(
|
|
104
|
+
"Field names are limited to 63 characters"
|
|
105
|
+
);
|
|
102
106
|
try {
|
|
103
107
|
new Function(Field.labelToName(s), "return;");
|
|
104
108
|
} catch {
|
package/routes/homepage.js
CHANGED
|
@@ -524,7 +524,10 @@ const welcome_page = async (req) => {
|
|
|
524
524
|
const no_views_logged_in = async (req, res) => {
|
|
525
525
|
const role = req.user && req.user.id ? req.user.role_id : 100;
|
|
526
526
|
if (role > 1 || req.user.tenant !== db.getTenantSchema())
|
|
527
|
-
res.sendWrap(
|
|
527
|
+
res.sendWrap(
|
|
528
|
+
req.__("Hello"),
|
|
529
|
+
req.__("Welcome to %s!", getState().getConfig("site_name", "Saltcorn"))
|
|
530
|
+
);
|
|
528
531
|
else {
|
|
529
532
|
const airgap = getState().getConfig("airgap", false);
|
|
530
533
|
const isRoot = db.getTenantSchema() === db.connectObj.default_schema;
|
|
@@ -638,6 +641,10 @@ const get_config_response = async (role_id, res, req) => {
|
|
|
638
641
|
let homeCfg = modernCfg && modernCfg[role_id];
|
|
639
642
|
if (typeof homeCfg !== "string")
|
|
640
643
|
homeCfg = getState().getConfig(legacy_role + "_home");
|
|
644
|
+
if (homeCfg === "_sc_entities_list") {
|
|
645
|
+
res.redirect("/entities");
|
|
646
|
+
return true;
|
|
647
|
+
}
|
|
641
648
|
if (homeCfg) {
|
|
642
649
|
const db_page = Page.findOne({ name: homeCfg });
|
|
643
650
|
if (db_page) {
|
package/routes/pageedit.js
CHANGED
|
@@ -272,6 +272,7 @@ const pageBuilderData = async (req, context) => {
|
|
|
272
272
|
pages,
|
|
273
273
|
page_groups,
|
|
274
274
|
actions: actionsNotRequiringRow,
|
|
275
|
+
has_copilot_generate: !!getState().functions.copilot_generate_layout,
|
|
275
276
|
builtInActions: ["GoBack"],
|
|
276
277
|
triggerActions,
|
|
277
278
|
library,
|
|
@@ -316,12 +317,20 @@ const getRootPageForm = (pages, pageGroups, roles, req) => {
|
|
|
316
317
|
label: r.role,
|
|
317
318
|
input_type: "select",
|
|
318
319
|
options: [
|
|
319
|
-
"",
|
|
320
|
+
r.id === 1 ? { label: req.__("Admin dashboard"), value: "" } : "",
|
|
320
321
|
...pages.filter((p) => p.min_role >= r.id).map((p) => p.name),
|
|
321
322
|
...pageGroups.map((g) => ({
|
|
322
323
|
label: `${g.name} (group)`,
|
|
323
324
|
value: g.name,
|
|
324
325
|
})),
|
|
326
|
+
...(r.id === 1
|
|
327
|
+
? [
|
|
328
|
+
{
|
|
329
|
+
label: req.__("All entities list"),
|
|
330
|
+
value: "_sc_entities_list",
|
|
331
|
+
},
|
|
332
|
+
]
|
|
333
|
+
: []),
|
|
325
334
|
],
|
|
326
335
|
})
|
|
327
336
|
),
|
|
@@ -436,7 +445,8 @@ const wrap = (contents, noCard, req, page) => ({
|
|
|
436
445
|
? { href: `/page/${encodeURIComponent(page.name)}`, text: page.name }
|
|
437
446
|
: { text: req.__("New") },
|
|
438
447
|
],
|
|
439
|
-
right:
|
|
448
|
+
right:
|
|
449
|
+
'<div id="builder-header-actions" class="d-flex align-items-center gap-2"></div>',
|
|
440
450
|
},
|
|
441
451
|
{
|
|
442
452
|
type: noCard ? "container" : "card",
|
package/routes/tables.js
CHANGED
|
@@ -894,7 +894,10 @@ router.get(
|
|
|
894
894
|
label: req.__("Attributes"),
|
|
895
895
|
key: (r) => attribBadges(r),
|
|
896
896
|
},
|
|
897
|
-
{
|
|
897
|
+
{
|
|
898
|
+
label: req.__("Variable name"),
|
|
899
|
+
key: (t) => span({ class: "copy-to-clipboard" }, code(t.name)),
|
|
900
|
+
},
|
|
898
901
|
...(table.external || !user_can_edit_tables || table.provider_name
|
|
899
902
|
? []
|
|
900
903
|
: [
|
|
@@ -1206,7 +1209,7 @@ router.get(
|
|
|
1206
1209
|
{
|
|
1207
1210
|
text: span(
|
|
1208
1211
|
{ class: "fw-bold text-body" },
|
|
1209
|
-
table.name,
|
|
1212
|
+
span({ class: "copy-to-clipboard" }, table.name),
|
|
1210
1213
|
table.provider_name && ` (${table.provider_name} provider)`
|
|
1211
1214
|
),
|
|
1212
1215
|
},
|
package/routes/viewedit.js
CHANGED
|
@@ -635,7 +635,8 @@ const respondWorkflow = (view, wf, wfres, req, res, table) => {
|
|
|
635
635
|
},
|
|
636
636
|
{ workflow: wf, step: wfres },
|
|
637
637
|
],
|
|
638
|
-
right:
|
|
638
|
+
right:
|
|
639
|
+
'<div id="builder-header-actions" class="d-flex align-items-center gap-2"></div>',
|
|
639
640
|
},
|
|
640
641
|
{
|
|
641
642
|
type: noCard ? "container" : "card",
|
|
@@ -1012,3 +1013,20 @@ router.post(
|
|
|
1012
1013
|
res.json({ view });
|
|
1013
1014
|
})
|
|
1014
1015
|
);
|
|
1016
|
+
|
|
1017
|
+
router.post(
|
|
1018
|
+
"/copilot-generate-layout",
|
|
1019
|
+
isAdminOrHasConfigMinRole(["min_role_edit_views", "min_role_edit_pages"]),
|
|
1020
|
+
error_catcher(async (req, res) => {
|
|
1021
|
+
const { mode, table, prompt } = req.body;
|
|
1022
|
+
const f = getState().functions.copilot_generate_layout;
|
|
1023
|
+
if (!f) {
|
|
1024
|
+
res.json({
|
|
1025
|
+
error: `Copilot layout generator not found. Copilot module 0.7.2 or later required`,
|
|
1026
|
+
});
|
|
1027
|
+
return;
|
|
1028
|
+
}
|
|
1029
|
+
const layout = await f.run(prompt, mode, table);
|
|
1030
|
+
res.json({ success: "ok", layout });
|
|
1031
|
+
})
|
|
1032
|
+
);
|
package/serve.js
CHANGED
|
@@ -52,7 +52,7 @@ const {
|
|
|
52
52
|
} = require("@saltcorn/admin-models/models/tenant");
|
|
53
53
|
const { auto_backup_now } = require("@saltcorn/admin-models/models/backup");
|
|
54
54
|
const Snapshot = require("@saltcorn/admin-models/models/snapshot");
|
|
55
|
-
const { writeFileSync,
|
|
55
|
+
const { writeFileSync, rmSync, readFileSync, readdirSync } = require("fs");
|
|
56
56
|
const { pathExistsSync } = require("fs-extra");
|
|
57
57
|
const envPaths = require("env-paths");
|
|
58
58
|
|
|
@@ -94,6 +94,7 @@ const ensurePluginsFolder = async () => {
|
|
|
94
94
|
"jest",
|
|
95
95
|
];
|
|
96
96
|
const allPluginFolders = new Set();
|
|
97
|
+
const localPluginParentDirs = new Set();
|
|
97
98
|
await eachTenant(async () => {
|
|
98
99
|
try {
|
|
99
100
|
const allPlugins = (await Plugin.find()).filter(
|
|
@@ -111,11 +112,29 @@ const ensurePluginsFolder = async () => {
|
|
|
111
112
|
plugin.version || "unknownversion"
|
|
112
113
|
);
|
|
113
114
|
allPluginFolders.add(pluginDir);
|
|
115
|
+
if (plugin.source === "local") {
|
|
116
|
+
localPluginParentDirs.add(
|
|
117
|
+
path.join(rootFolder, "plugins_folder", ...tokens)
|
|
118
|
+
);
|
|
119
|
+
}
|
|
114
120
|
}
|
|
115
121
|
} catch {
|
|
116
122
|
//ignore
|
|
117
123
|
}
|
|
118
124
|
});
|
|
125
|
+
// Remove leftover cache-busted localversion_<timestamp> directories
|
|
126
|
+
for (const parentDir of localPluginParentDirs) {
|
|
127
|
+
try {
|
|
128
|
+
if (!pathExistsSync(parentDir)) continue;
|
|
129
|
+
for (const entry of readdirSync(parentDir)) {
|
|
130
|
+
if (/^localversion_\d+$/.test(entry)) {
|
|
131
|
+
rmSync(path.join(parentDir, entry), { recursive: true });
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
} catch (e) {
|
|
135
|
+
console.log(`Error cleaning localversion cache dirs: ${e.message || e}`);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
119
138
|
for (const folder of allPluginFolders) {
|
|
120
139
|
try {
|
|
121
140
|
if (pathExistsSync(folder)) {
|
|
@@ -131,7 +150,7 @@ const ensurePluginsFolder = async () => {
|
|
|
131
150
|
)) &&
|
|
132
151
|
!pathExistsSync(path.join(folder, "node_modules"))
|
|
133
152
|
)
|
|
134
|
-
|
|
153
|
+
rmSync(folder, { recursive: true });
|
|
135
154
|
}
|
|
136
155
|
} catch (e) {
|
|
137
156
|
console.log(`Error checking plugin folder: ${e.message || e}`);
|
|
@@ -246,7 +265,7 @@ const initMaster = async (
|
|
|
246
265
|
if (db.is_it_multi_tenant()) {
|
|
247
266
|
const tenants = await getAllTenants();
|
|
248
267
|
await init_multi_tenant(
|
|
249
|
-
loadAllPlugins,
|
|
268
|
+
() => loadAllPlugins(true),
|
|
250
269
|
disableMigrate,
|
|
251
270
|
tenants,
|
|
252
271
|
db.connectObj.multi_node ? getMultiNodeListener : null
|
|
@@ -305,6 +324,9 @@ const workerDispatchMsg = ({ tenant, ...msg }) => {
|
|
|
305
324
|
);
|
|
306
325
|
}
|
|
307
326
|
|
|
327
|
+
if (msg.reload_plugins) {
|
|
328
|
+
loadAllPlugins(cluster.isPrimary, true);
|
|
329
|
+
}
|
|
308
330
|
if (msg.refresh) {
|
|
309
331
|
if (msg.refresh === "ephemeral_config")
|
|
310
332
|
getState().refresh_ephemeral_config(msg.key, msg.value);
|
|
@@ -475,10 +497,34 @@ module.exports =
|
|
|
475
497
|
dev,
|
|
476
498
|
...appargs
|
|
477
499
|
} = {}) => {
|
|
478
|
-
if (cluster.
|
|
500
|
+
if (cluster.isPrimary) {
|
|
479
501
|
ensureJwtSecret();
|
|
480
502
|
await ensurePluginsFolder();
|
|
481
503
|
await ensureNotificationSubscriptions();
|
|
504
|
+
|
|
505
|
+
// reload plugins on SIGHUP
|
|
506
|
+
process.on("SIGHUP", async () => {
|
|
507
|
+
getState().log(
|
|
508
|
+
4,
|
|
509
|
+
"SIGHUP received: reloading plugins and state for all tenants"
|
|
510
|
+
);
|
|
511
|
+
await loadAllPlugins(true, true);
|
|
512
|
+
await getState().refresh_plugins(true);
|
|
513
|
+
Object.entries(cluster.workers || {}).forEach(([wpid, w]) => {
|
|
514
|
+
w.send({ reload_plugins: true });
|
|
515
|
+
});
|
|
516
|
+
if (db.is_it_multi_tenant()) {
|
|
517
|
+
for (const tenant of await getAllTenants()) {
|
|
518
|
+
await db.runWithTenant(tenant, async () => {
|
|
519
|
+
await loadAllPlugins(true, true);
|
|
520
|
+
await getState().refresh_plugins(true);
|
|
521
|
+
Object.entries(cluster.workers || {}).forEach(([wpid, w]) => {
|
|
522
|
+
w.send({ tenant, reload_plugins: true });
|
|
523
|
+
});
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
});
|
|
482
528
|
}
|
|
483
529
|
process.on("unhandledRejection", (reason, p) => {
|
|
484
530
|
console.error(reason, "Unhandled Rejection at Promise");
|
package/tests/page.test.js
CHANGED
|
@@ -304,6 +304,51 @@ describe("pageedit", () => {
|
|
|
304
304
|
|
|
305
305
|
.expect(toInclude("Root pages updated"));
|
|
306
306
|
});
|
|
307
|
+
it("shows Admin dashboard and All entities list options for admin role", async () => {
|
|
308
|
+
const app = await getApp({ disableCsrf: true });
|
|
309
|
+
const loginCookie = await getAdminLoginCookie();
|
|
310
|
+
await request(app)
|
|
311
|
+
.get("/pageedit")
|
|
312
|
+
.set("Cookie", loginCookie)
|
|
313
|
+
.expect(toInclude("Admin dashboard"))
|
|
314
|
+
.expect(toInclude("All entities list"));
|
|
315
|
+
});
|
|
316
|
+
it("does not show All entities list option for non-admin roles", async () => {
|
|
317
|
+
const app = await getApp({ disableCsrf: true });
|
|
318
|
+
const loginCookie = await getAdminLoginCookie();
|
|
319
|
+
const res = await request(app)
|
|
320
|
+
.get("/pageedit")
|
|
321
|
+
.set("Cookie", loginCookie)
|
|
322
|
+
.expect(200);
|
|
323
|
+
// The value _sc_entities_list should appear exactly once (only for admin field)
|
|
324
|
+
const matches = (res.text.match(/_sc_entities_list/g) || []).length;
|
|
325
|
+
expect(matches).toBe(1);
|
|
326
|
+
});
|
|
327
|
+
it("redirects to /entities when admin home is set to entities list", async () => {
|
|
328
|
+
const app = await getApp({ disableCsrf: true });
|
|
329
|
+
const loginCookie = await getAdminLoginCookie();
|
|
330
|
+
await request(app)
|
|
331
|
+
.post("/pageedit/set_root_page")
|
|
332
|
+
.send("admin=_sc_entities_list")
|
|
333
|
+
.send("public=")
|
|
334
|
+
.send("user=")
|
|
335
|
+
.send("staff=")
|
|
336
|
+
.set("Cookie", loginCookie)
|
|
337
|
+
.expect(toRedirect("/pageedit"));
|
|
338
|
+
await request(app)
|
|
339
|
+
.get("/")
|
|
340
|
+
.set("Cookie", loginCookie)
|
|
341
|
+
.expect(toRedirect("/entities"));
|
|
342
|
+
// Reset admin home
|
|
343
|
+
await request(app)
|
|
344
|
+
.post("/pageedit/set_root_page")
|
|
345
|
+
.send("admin=")
|
|
346
|
+
.send("public=")
|
|
347
|
+
.send("user=")
|
|
348
|
+
.send("staff=")
|
|
349
|
+
.set("Cookie", loginCookie)
|
|
350
|
+
.expect(toRedirect("/pageedit"));
|
|
351
|
+
});
|
|
307
352
|
it("should delete page", async () => {
|
|
308
353
|
const app = await getApp({ disableCsrf: true });
|
|
309
354
|
const loginCookie = await getAdminLoginCookie();
|