@saltcorn/server 1.6.0-beta.5 → 1.6.0-beta.7
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 +14 -0
- package/app.js +9 -5
- package/auth/routes.js +2 -1
- 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 +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 +17 -16
- package/docs/classes/_saltcorn_data.models_role.Role.html +2 -2
- package/docs/classes/_saltcorn_data.models_table.Table.html +66 -66
- 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 -3
- 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.js.html +1 -0
- package/docs/functions/_saltcorn_data.migrations_202604141200.js.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_202604111200.html +1 -1
- package/docs/modules/_saltcorn_data.migrations_202604141200.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 -3
- 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 +3 -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 +3 -3
- package/docs/variables/_saltcorn_data.base-plugin_fileview.fileviews.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_index.index.html +6 -6
- 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 +3 -3
- 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 -1
- package/docs/variables/_saltcorn_data.mobile-mocks_npm_npm-registry-fetch.npmRegistryFetch.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 +3 -3
- package/docs/variables/_saltcorn_data.models_expression.expression.html +3 -3
- 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 +10 -4
- 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/help/JavaScript action code.tmd +5 -1
- package/locales/en.json +3 -1
- package/package.json +13 -13
- package/public/saltcorn-common.js +5 -2
- package/public/saltcorn.js +23 -0
- package/routes/actions.js +9 -8
- package/routes/admin.js +67 -8
- package/routes/api.js +40 -37
- package/routes/fields.js +114 -10
- package/routes/files.js +13 -1
- package/routes/list.js +5 -4
- package/routes/plugins.js +29 -3
- package/routes/sync.js +45 -32
- package/routes/tables.js +166 -0
- package/routes/utils.js +9 -32
- package/serve.js +26 -9
- package/tests/admin.test.js +5 -5
- package/tests/api.test.js +130 -1
- package/tests/files.test.js +39 -0
- package/tests/plugin_install.test.js +120 -0
- package/tests/sync.test.js +62 -46
- package/tests/view.test.js +32 -0
- package/wrapper.js +1 -1
- package/docs/functions/_saltcorn_data.migrations_202604111200.sql_pg.html +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/server",
|
|
3
|
-
"version": "1.6.0-beta.
|
|
3
|
+
"version": "1.6.0-beta.7",
|
|
4
4
|
"description": "Server app for Saltcorn, open-source no-code platform",
|
|
5
5
|
"homepage": "https://saltcorn.com",
|
|
6
6
|
"main": "index.js",
|
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
"@aws-sdk/client-s3": "^3.735.0",
|
|
10
10
|
"@aws-sdk/s3-request-presigner": "^3.940.0",
|
|
11
11
|
"@dr.pogodin/csurf": "1.15.0",
|
|
12
|
-
"@saltcorn/admin-models": "1.6.0-beta.
|
|
13
|
-
"@saltcorn/base-plugin": "1.6.0-beta.
|
|
14
|
-
"@saltcorn/builder": "1.6.0-beta.
|
|
15
|
-
"@saltcorn/workflow-editor": "1.6.0-beta.
|
|
16
|
-
"@saltcorn/data": "1.6.0-beta.
|
|
17
|
-
"@saltcorn/filemanager": "1.6.0-beta.
|
|
18
|
-
"@saltcorn/markup": "1.6.0-beta.
|
|
19
|
-
"@saltcorn/plugins-loader": "1.6.0-beta.
|
|
20
|
-
"@saltcorn/sbadmin2": "1.6.0-beta.
|
|
12
|
+
"@saltcorn/admin-models": "1.6.0-beta.7",
|
|
13
|
+
"@saltcorn/base-plugin": "1.6.0-beta.7",
|
|
14
|
+
"@saltcorn/builder": "1.6.0-beta.7",
|
|
15
|
+
"@saltcorn/workflow-editor": "1.6.0-beta.7",
|
|
16
|
+
"@saltcorn/data": "1.6.0-beta.7",
|
|
17
|
+
"@saltcorn/filemanager": "1.6.0-beta.7",
|
|
18
|
+
"@saltcorn/markup": "1.6.0-beta.7",
|
|
19
|
+
"@saltcorn/plugins-loader": "1.6.0-beta.7",
|
|
20
|
+
"@saltcorn/sbadmin2": "1.6.0-beta.7",
|
|
21
21
|
"@socket.io/cluster-adapter": "^0.2.1",
|
|
22
22
|
"@socket.io/sticky": "^1.0.1",
|
|
23
23
|
"adm-zip": "0.5.16",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"cors": "2.8.5",
|
|
32
32
|
"csv-stringify": "^6.5.2",
|
|
33
33
|
"csvtojson": "^2.0.10",
|
|
34
|
-
"dompurify": "3.
|
|
34
|
+
"dompurify": "3.4.0",
|
|
35
35
|
"express": "^5.0.1",
|
|
36
36
|
"express-fileupload": "^1.5.1",
|
|
37
37
|
"express-promise-router": "^3.0.3",
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
"uuid": "^11.0.5",
|
|
71
71
|
"fs-extra": "^11.3.0",
|
|
72
72
|
"env-paths": "^2.2.1",
|
|
73
|
-
"@saltcorn/db-common": "1.6.0-beta.
|
|
73
|
+
"@saltcorn/db-common": "1.6.0-beta.7",
|
|
74
74
|
"web-push": "^3.6.7",
|
|
75
|
-
"@saltcorn/types": "1.6.0-beta.
|
|
75
|
+
"@saltcorn/types": "1.6.0-beta.7",
|
|
76
76
|
"dayjs": "^1.11.13"
|
|
77
77
|
},
|
|
78
78
|
"optionalDependencies": {
|
|
@@ -280,7 +280,7 @@ function apply_showif() {
|
|
|
280
280
|
} else {
|
|
281
281
|
e.append(
|
|
282
282
|
$(
|
|
283
|
-
`<option ${
|
|
283
|
+
`<option ${o.disabled? "disabled ":""}${
|
|
284
284
|
`${current}` === `${o.value}` ? "selected" : ""
|
|
285
285
|
} value="${o.value}">${o.label}</option>`
|
|
286
286
|
)
|
|
@@ -2114,13 +2114,16 @@ function enable_monaco(codes, f) {
|
|
|
2114
2114
|
const hasUser = codes
|
|
2115
2115
|
.find((c) => c.getAttribute("user"))
|
|
2116
2116
|
?.getAttribute?.("user");
|
|
2117
|
+
const nojoins = codes
|
|
2118
|
+
.find((c) => c.getAttribute("nojoins"))
|
|
2119
|
+
?.getAttribute?.("nojoins");
|
|
2117
2120
|
const isWorkflow = codes
|
|
2118
2121
|
.find((c) => c.getAttribute("workflow"))
|
|
2119
2122
|
?.getAttribute?.("workflow");
|
|
2120
2123
|
const codepage = $(textarea).attr("codepage");
|
|
2121
2124
|
|
|
2122
2125
|
$.ajax({
|
|
2123
|
-
url: `/admin/ts-declares?${tableName ? `table=${tableName}` : ""}&${hasUser ? `user=${hasUser}` : ""}&${codepage ? `codepage=${codepage}` : ""}&${isWorkflow ? `workflow=${isWorkflow}` : ""}`,
|
|
2126
|
+
url: `/admin/ts-declares?${tableName ? `table=${tableName}` : ""}&${hasUser ? `user=${hasUser}` : ""}&${codepage ? `codepage=${codepage}` : ""}&${isWorkflow ? `workflow=${isWorkflow}` : ""}&${nojoins ? `nojoins=${nojoins}` : ""}`,
|
|
2124
2127
|
success: (ds) => {
|
|
2125
2128
|
$.ajax({
|
|
2126
2129
|
url: `/static_assets/${_sc_version_tag}/monaco/loader.js`,
|
package/public/saltcorn.js
CHANGED
|
@@ -439,8 +439,11 @@ function expand_thumbnail(img_id, filename) {
|
|
|
439
439
|
|
|
440
440
|
function ajax_modal(url, opts = {}) {
|
|
441
441
|
$.ajax(url, {
|
|
442
|
+
...(opts.method ? { method: opts.method } : {}),
|
|
442
443
|
headers: {
|
|
443
444
|
SaltcornModalRequest: "true",
|
|
445
|
+
"Page-Load-Tag": _sc_pageloadtag,
|
|
446
|
+
...(opts.method === "POST" ? { "CSRF-Token": _sc_globalCsrf } : {}),
|
|
444
447
|
},
|
|
445
448
|
success: function (res, textStatus, request) {
|
|
446
449
|
ensure_modal_exists_and_closed();
|
|
@@ -1136,6 +1139,26 @@ function build_mobile_app(button) {
|
|
|
1136
1139
|
(option) => option.value
|
|
1137
1140
|
);
|
|
1138
1141
|
|
|
1142
|
+
ajax_post("/admin/build-mobile-app/validate-synced-tables", {
|
|
1143
|
+
data: { synchedTables: params.synchedTables },
|
|
1144
|
+
success: (data) => {
|
|
1145
|
+
if (
|
|
1146
|
+
data.warnings &&
|
|
1147
|
+
data.warnings.length > 0 &&
|
|
1148
|
+
!confirm(
|
|
1149
|
+
"Warning: some tables referenced by synced tables are not synced:\n\n" +
|
|
1150
|
+
data.warnings.join("\n") +
|
|
1151
|
+
"\n\nDo you really want to continue?"
|
|
1152
|
+
)
|
|
1153
|
+
) {
|
|
1154
|
+
return;
|
|
1155
|
+
}
|
|
1156
|
+
_do_build_mobile_app(button, params);
|
|
1157
|
+
},
|
|
1158
|
+
});
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
function _do_build_mobile_app(button, params) {
|
|
1139
1162
|
if (
|
|
1140
1163
|
params.useDocker &&
|
|
1141
1164
|
!window.capacitorBuilderAvailable &&
|
package/routes/actions.js
CHANGED
|
@@ -2393,9 +2393,9 @@ router.get(
|
|
|
2393
2393
|
error_catcher(async (req, res) => {
|
|
2394
2394
|
const { id } = req.params;
|
|
2395
2395
|
|
|
2396
|
-
const run = await WorkflowRun.findOne({ id });
|
|
2396
|
+
const run = await WorkflowRun.findOne({ id: +id });
|
|
2397
2397
|
|
|
2398
|
-
if (!run.user_allowed_to_fill_form(req.user)) {
|
|
2398
|
+
if (!run || !run.user_allowed_to_fill_form(req.user)) {
|
|
2399
2399
|
if (req.xhr) res.json({ error: "Not authorized" });
|
|
2400
2400
|
else {
|
|
2401
2401
|
req.flash("danger", req.__("Not authorized"));
|
|
@@ -2435,7 +2435,8 @@ const workflowRunPromiseHandler = (promise, run, req) => {
|
|
|
2435
2435
|
...retDirs,
|
|
2436
2436
|
page_load_tag: req.headers["page-load-tag"],
|
|
2437
2437
|
};
|
|
2438
|
-
|
|
2438
|
+
const userIds = req.user ? [req.user.id] : null;
|
|
2439
|
+
getState().emitDynamicUpdate(db.getTenantSchema(), emitData, userIds);
|
|
2439
2440
|
if (
|
|
2440
2441
|
!emitData.resume_workflow &&
|
|
2441
2442
|
!emitData.popup?.startsWith?.("/actions/fill-workflow-form/")
|
|
@@ -2443,14 +2444,14 @@ const workflowRunPromiseHandler = (promise, run, req) => {
|
|
|
2443
2444
|
getState().emitDynamicUpdate(db.getTenantSchema(), {
|
|
2444
2445
|
eval_js: "reset_spinners()",
|
|
2445
2446
|
page_load_tag: req.headers["page-load-tag"],
|
|
2446
|
-
});
|
|
2447
|
+
}, userIds);
|
|
2447
2448
|
})
|
|
2448
2449
|
.catch((e) => {
|
|
2449
2450
|
console.error(e);
|
|
2450
2451
|
getState().emitDynamicUpdate(db.getTenantSchema(), {
|
|
2451
2452
|
error: e.message,
|
|
2452
2453
|
page_load_tag: req.headers["page-load-tag"],
|
|
2453
|
-
});
|
|
2454
|
+
}, req.user ? [req.user.id] : null);
|
|
2454
2455
|
});
|
|
2455
2456
|
};
|
|
2456
2457
|
|
|
@@ -2460,7 +2461,7 @@ router.post(
|
|
|
2460
2461
|
const { id } = req.params;
|
|
2461
2462
|
|
|
2462
2463
|
const run = await WorkflowRun.findOne({ id });
|
|
2463
|
-
if (!run.user_allowed_to_fill_form(req.user)) {
|
|
2464
|
+
if (!run || !run.user_allowed_to_fill_form(req.user)) {
|
|
2464
2465
|
if (req.xhr) res.json({ error: "Not authorized" });
|
|
2465
2466
|
else {
|
|
2466
2467
|
req.flash("danger", req.__("Not authorized"));
|
|
@@ -2518,9 +2519,9 @@ router.post(
|
|
|
2518
2519
|
error_catcher(async (req, res) => {
|
|
2519
2520
|
const { id } = req.params;
|
|
2520
2521
|
|
|
2521
|
-
const run = await WorkflowRun.findOne({ id });
|
|
2522
|
+
const run = await WorkflowRun.findOne({ id: +id });
|
|
2522
2523
|
//TODO session if not logged in
|
|
2523
|
-
if (run.started_by !== req.user?.id) {
|
|
2524
|
+
if (!run || run.started_by !== req.user?.id) {
|
|
2524
2525
|
if (req.xhr) res.json({ error: "Not authorized" });
|
|
2525
2526
|
else {
|
|
2526
2527
|
req.flash("danger", req.__("Not authorized"));
|
package/routes/admin.js
CHANGED
|
@@ -907,7 +907,12 @@ router.get(
|
|
|
907
907
|
]),
|
|
908
908
|
error_catcher(async (req, res) => {
|
|
909
909
|
const { type, name } = req.params;
|
|
910
|
-
const
|
|
910
|
+
const snapOffset = parseInt(req.query.snap_offset) || 0;
|
|
911
|
+
const { history: snaps, hasMore } = await Snapshot.entity_history(
|
|
912
|
+
type,
|
|
913
|
+
name,
|
|
914
|
+
snapOffset
|
|
915
|
+
);
|
|
911
916
|
const locale = getState().getConfig("default_locale", "en");
|
|
912
917
|
const auth = checkEditPermission(type + "s", req.user);
|
|
913
918
|
if (!auth) {
|
|
@@ -915,6 +920,9 @@ router.get(
|
|
|
915
920
|
return;
|
|
916
921
|
}
|
|
917
922
|
res.set("Page-Title", `Restore ${text(name)}`);
|
|
923
|
+
let olderUrl = `/admin/snapshot-restore/${type}/${encodeURIComponent(name)}?snap_offset=${snapOffset + 100}`;
|
|
924
|
+
if (req.query.on_done_redirect)
|
|
925
|
+
olderUrl += `&on_done_redirect=${encodeURIComponent(req.query.on_done_redirect)}`;
|
|
918
926
|
res.send(
|
|
919
927
|
mkTable(
|
|
920
928
|
[
|
|
@@ -945,7 +953,10 @@ router.get(
|
|
|
945
953
|
},
|
|
946
954
|
],
|
|
947
955
|
snaps
|
|
948
|
-
)
|
|
956
|
+
) +
|
|
957
|
+
(hasMore
|
|
958
|
+
? `<div class="mt-2 text-center"><button class="btn btn-secondary btn-sm" onclick="ajax_modal('${olderUrl}')">${req.__("Load older snapshots")}</button></div>`
|
|
959
|
+
: "")
|
|
949
960
|
);
|
|
950
961
|
})
|
|
951
962
|
);
|
|
@@ -2027,9 +2038,7 @@ router.post(
|
|
|
2027
2038
|
error_catcher(async (req, res) => {
|
|
2028
2039
|
const newPath = File.get_new_path();
|
|
2029
2040
|
await req.files.file.mv(newPath);
|
|
2030
|
-
const err = await restore(newPath, (p) =>
|
|
2031
|
-
Plugin.loadAndSaveNewPlugin(p)
|
|
2032
|
-
);
|
|
2041
|
+
const err = await restore(newPath, (p) => Plugin.loadAndSaveNewPlugin(p));
|
|
2033
2042
|
if (err) req.flash("error", err);
|
|
2034
2043
|
else req.flash("success", req.__("Successfully restored backup"));
|
|
2035
2044
|
await getState().refresh_plugins();
|
|
@@ -4548,6 +4557,54 @@ router.post(
|
|
|
4548
4557
|
})
|
|
4549
4558
|
);
|
|
4550
4559
|
|
|
4560
|
+
/**
|
|
4561
|
+
* Validate synced tables: check that all tables reachable via FK from the
|
|
4562
|
+
* selected synced tables are also included in the synced set.
|
|
4563
|
+
*/
|
|
4564
|
+
router.post(
|
|
4565
|
+
"/build-mobile-app/validate-synced-tables",
|
|
4566
|
+
isAdmin,
|
|
4567
|
+
error_catcher(async (req, res) => {
|
|
4568
|
+
const { synchedTables } = req.body || {};
|
|
4569
|
+
if (!Array.isArray(synchedTables) || synchedTables.length === 0) {
|
|
4570
|
+
return res.json({ warnings: [] });
|
|
4571
|
+
}
|
|
4572
|
+
|
|
4573
|
+
const syncedSet = new Set(synchedTables);
|
|
4574
|
+
const visited = new Set();
|
|
4575
|
+
const queue = [...synchedTables];
|
|
4576
|
+
const missing = new Set();
|
|
4577
|
+
|
|
4578
|
+
while (queue.length > 0) {
|
|
4579
|
+
const tblName = queue.shift();
|
|
4580
|
+
if (visited.has(tblName)) continue;
|
|
4581
|
+
visited.add(tblName);
|
|
4582
|
+
|
|
4583
|
+
const table = Table.findOne({ name: tblName });
|
|
4584
|
+
if (!table) continue;
|
|
4585
|
+
|
|
4586
|
+
for (const field of table.getFields()) {
|
|
4587
|
+
if (field.reftable_name && !field.calculated) {
|
|
4588
|
+
const refName = field.reftable_name;
|
|
4589
|
+
if (refName === "users") continue;
|
|
4590
|
+
if (!syncedSet.has(refName)) {
|
|
4591
|
+
missing.add(refName);
|
|
4592
|
+
}
|
|
4593
|
+
if (!visited.has(refName)) {
|
|
4594
|
+
queue.push(refName);
|
|
4595
|
+
}
|
|
4596
|
+
}
|
|
4597
|
+
}
|
|
4598
|
+
}
|
|
4599
|
+
|
|
4600
|
+
const warnings = [...missing].map(
|
|
4601
|
+
(tblName) =>
|
|
4602
|
+
`Table "${tblName}" is referenced by a synced table but is not itself synced.`
|
|
4603
|
+
);
|
|
4604
|
+
res.json({ warnings });
|
|
4605
|
+
})
|
|
4606
|
+
);
|
|
4607
|
+
|
|
4551
4608
|
/**
|
|
4552
4609
|
* Do Build Mobile App
|
|
4553
4610
|
*/
|
|
@@ -5252,7 +5309,8 @@ router.get(
|
|
|
5252
5309
|
declare var console: Console;
|
|
5253
5310
|
function setTimeout(f:Function, timeout?:number)
|
|
5254
5311
|
declare const page_load_tag: string
|
|
5255
|
-
function emit_to_client(message: object, to_user_ids?: number | number[])
|
|
5312
|
+
function emit_to_client(message: object, to_user_ids?: number | number[] | null)
|
|
5313
|
+
function emitEvent(eventType: ${Trigger.when_options.map(o=>`"${o}"`).join(" | ")}, channel?: string, payload?: any)
|
|
5256
5314
|
async function sleep(milliseconds: number)
|
|
5257
5315
|
function interpolate(s: string,
|
|
5258
5316
|
row: Row,
|
|
@@ -5363,7 +5421,7 @@ async function refreshSystemCache(entities?: "codepages" | "tables" | "views" |
|
|
|
5363
5421
|
}
|
|
5364
5422
|
});
|
|
5365
5423
|
};
|
|
5366
|
-
addTsFields(table, "", 2);
|
|
5424
|
+
addTsFields(table, "", req.query.nojoins ? -1 : 2);
|
|
5367
5425
|
ds.push(`declare const table: Table`);
|
|
5368
5426
|
ds.push(`declare const row: {
|
|
5369
5427
|
${tsFields.join("\n")}
|
|
@@ -5631,7 +5689,8 @@ router.post(
|
|
|
5631
5689
|
//ignore
|
|
5632
5690
|
}
|
|
5633
5691
|
try {
|
|
5634
|
-
res.json({ success: true, code: stripTypes(`async () =>{${code}
|
|
5692
|
+
res.json({ success: true, code: stripTypes(`async () =>{${code}
|
|
5693
|
+
}`) });
|
|
5635
5694
|
} catch (error) {
|
|
5636
5695
|
res.json({ success: false, error: error.message });
|
|
5637
5696
|
}
|
package/routes/api.js
CHANGED
|
@@ -527,44 +527,47 @@ router.get(
|
|
|
527
527
|
})
|
|
528
528
|
);
|
|
529
529
|
|
|
530
|
-
router.get(
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
["api-bearer", "jwt"],
|
|
546
|
-
{ session: false },
|
|
547
|
-
async function (err, user, info) {
|
|
548
|
-
if (potentiallyAccessAllowedRead(req, user, table)) {
|
|
549
|
-
const tbl_fields = table.getFields();
|
|
550
|
-
readState(req_query, tbl_fields, req);
|
|
551
|
-
const qstate = stateFieldsToWhere({
|
|
552
|
-
fields: tbl_fields,
|
|
553
|
-
approximate: !!approximate,
|
|
554
|
-
state: req_query,
|
|
555
|
-
table,
|
|
556
|
-
prefix: "a.",
|
|
557
|
-
user: req.user || user
|
|
558
|
-
});
|
|
559
|
-
const count = await table.countRows(qstate);
|
|
560
|
-
res.json({ success: count });
|
|
561
|
-
} else {
|
|
562
|
-
getState().log(3, `API get ${table.name} not authorized`);
|
|
563
|
-
res.status(401).json({ error: req.__("Not authorized") });
|
|
564
|
-
}
|
|
530
|
+
router.get(
|
|
531
|
+
"/:tableName/count",
|
|
532
|
+
error_catcher(async (req, res, next) => {
|
|
533
|
+
const { tableName } = req.params;
|
|
534
|
+
const { approximate, ...req_query } = req.query;
|
|
535
|
+
|
|
536
|
+
const table = Table.findOne(
|
|
537
|
+
strictParseInt(tableName)
|
|
538
|
+
? { id: strictParseInt(tableName) }
|
|
539
|
+
: { name: tableName }
|
|
540
|
+
);
|
|
541
|
+
if (!table) {
|
|
542
|
+
getState().log(3, `API get ${tableName} table not found`);
|
|
543
|
+
res.status(404).json({ error: req.__("Not found") });
|
|
544
|
+
return;
|
|
565
545
|
}
|
|
566
|
-
|
|
567
|
-
|
|
546
|
+
await passport.authenticate(
|
|
547
|
+
["api-bearer", "jwt"],
|
|
548
|
+
{ session: false },
|
|
549
|
+
async function (err, user, info) {
|
|
550
|
+
if (potentiallyAccessAllowedRead(req, user, table)) {
|
|
551
|
+
const tbl_fields = table.getFields();
|
|
552
|
+
readState(req_query, tbl_fields, req);
|
|
553
|
+
const qstate = stateFieldsToWhere({
|
|
554
|
+
fields: tbl_fields,
|
|
555
|
+
approximate: !!approximate,
|
|
556
|
+
state: req_query,
|
|
557
|
+
table,
|
|
558
|
+
prefix: "a.",
|
|
559
|
+
user: req.user || user,
|
|
560
|
+
});
|
|
561
|
+
const count = await table.countRows(qstate);
|
|
562
|
+
res.json({ success: count });
|
|
563
|
+
} else {
|
|
564
|
+
getState().log(3, `API get ${table.name} not authorized`);
|
|
565
|
+
res.status(401).json({ error: req.__("Not authorized") });
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
)(req, res, next);
|
|
569
|
+
})
|
|
570
|
+
);
|
|
568
571
|
|
|
569
572
|
/**
|
|
570
573
|
* Emit Event using POST
|
package/routes/fields.js
CHANGED
|
@@ -248,7 +248,20 @@ const fieldFlow = (req) =>
|
|
|
248
248
|
onDone: async (context) => {
|
|
249
249
|
//const thetype = getState().types[context.type];
|
|
250
250
|
const attributes = context.attributes || {};
|
|
251
|
-
attributes.default = context.default;
|
|
251
|
+
// attributes.default = context.default;
|
|
252
|
+
|
|
253
|
+
const setDefault =
|
|
254
|
+
context.set_default === undefined || context.set_default === true;
|
|
255
|
+
if (setDefault && context.default_type === "expression") {
|
|
256
|
+
attributes.default_expression = context.default_expression;
|
|
257
|
+
attributes.default = undefined;
|
|
258
|
+
} else if (setDefault) {
|
|
259
|
+
attributes.default = context.default;
|
|
260
|
+
attributes.default_expression = undefined;
|
|
261
|
+
} else {
|
|
262
|
+
attributes.default = undefined;
|
|
263
|
+
attributes.default_expression = undefined;
|
|
264
|
+
}
|
|
252
265
|
attributes.summary_field = context.summary_field;
|
|
253
266
|
attributes.include_fts = context.include_fts;
|
|
254
267
|
attributes.on_delete_cascade = context.on_delete_cascade;
|
|
@@ -753,10 +766,9 @@ const fieldFlow = (req) =>
|
|
|
753
766
|
const nrows = await table.countRows();
|
|
754
767
|
const formfield = new Field({
|
|
755
768
|
name: "default",
|
|
756
|
-
label: req.__("Default"),
|
|
757
|
-
// todo sublabel
|
|
769
|
+
label: req.__("Default value"),
|
|
758
770
|
type: context.type,
|
|
759
|
-
required:
|
|
771
|
+
required: false,
|
|
760
772
|
attributes: {
|
|
761
773
|
summary_field: context.summary_field,
|
|
762
774
|
...(context.attributes || {}),
|
|
@@ -764,7 +776,61 @@ const fieldFlow = (req) =>
|
|
|
764
776
|
});
|
|
765
777
|
await formfield.fill_fkey_options();
|
|
766
778
|
const defaultOptional = nrows === 0 || context.id;
|
|
767
|
-
|
|
779
|
+
const setDefaultShowIf = defaultOptional
|
|
780
|
+
? { set_default: true }
|
|
781
|
+
: undefined;
|
|
782
|
+
|
|
783
|
+
if (setDefaultShowIf)
|
|
784
|
+
formfield.showIf = {
|
|
785
|
+
...setDefaultShowIf,
|
|
786
|
+
default_type: "fixed",
|
|
787
|
+
};
|
|
788
|
+
else formfield.showIf = { default_type: "fixed" };
|
|
789
|
+
|
|
790
|
+
const defaultTypeOptions = [
|
|
791
|
+
{ label: req.__("Fixed value"), name: "fixed" },
|
|
792
|
+
{ label: req.__("Expression"), name: "expression" },
|
|
793
|
+
];
|
|
794
|
+
|
|
795
|
+
const expressionShowIf = setDefaultShowIf
|
|
796
|
+
? { ...setDefaultShowIf, default_type: "expression" }
|
|
797
|
+
: { default_type: "expression" };
|
|
798
|
+
|
|
799
|
+
const attrEscape = (s) =>
|
|
800
|
+
s.replace(/&/g, "&").replace(/"/g, """);
|
|
801
|
+
const presets = [
|
|
802
|
+
{
|
|
803
|
+
label: req.__("Current user ID"),
|
|
804
|
+
expr: "user && user.id",
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
label: req.__("Current user email"),
|
|
808
|
+
expr: "user && user.email",
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
label: req.__("Current timestamp"),
|
|
812
|
+
expr: "new Date()",
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
label: req.__("Current date (ISO)"),
|
|
816
|
+
expr: "new Date().toISOString().substring(0, 10)",
|
|
817
|
+
},
|
|
818
|
+
];
|
|
819
|
+
const presetButtons = presets
|
|
820
|
+
.map(
|
|
821
|
+
(p) =>
|
|
822
|
+
`<button type="button" class="btn btn-sm btn-outline-secondary me-1 mb-1" onclick="setDefaultExpressionValue(${attrEscape(JSON.stringify(p.expr))})">${p.label}</button>`
|
|
823
|
+
)
|
|
824
|
+
.join("");
|
|
825
|
+
const setterScript = `<script>
|
|
826
|
+
function setDefaultExpressionValue(val) {
|
|
827
|
+
var ta = document.querySelector('[name="default_expression"]');
|
|
828
|
+
if (!ta) return;
|
|
829
|
+
var monacoDiv = ta.nextElementSibling;
|
|
830
|
+
var ed = monacoDiv && $(monacoDiv).data && $(monacoDiv).data("monaco-editor");
|
|
831
|
+
if (ed) { ed.setValue(val); } else { ta.value = val; }
|
|
832
|
+
}
|
|
833
|
+
</script>`;
|
|
768
834
|
|
|
769
835
|
const form = new Form({
|
|
770
836
|
blurb: defaultOptional
|
|
@@ -774,16 +840,53 @@ const fieldFlow = (req) =>
|
|
|
774
840
|
),
|
|
775
841
|
fields: [
|
|
776
842
|
...(defaultOptional
|
|
777
|
-
? [
|
|
843
|
+
? [
|
|
844
|
+
{
|
|
845
|
+
name: "set_default",
|
|
846
|
+
label: req.__("Set Default"),
|
|
847
|
+
type: "Bool",
|
|
848
|
+
},
|
|
849
|
+
]
|
|
778
850
|
: []),
|
|
851
|
+
{
|
|
852
|
+
name: "default_type",
|
|
853
|
+
label: req.__("Default type"),
|
|
854
|
+
type: "String",
|
|
855
|
+
attributes: {
|
|
856
|
+
options: defaultTypeOptions,
|
|
857
|
+
},
|
|
858
|
+
showIf: setDefaultShowIf,
|
|
859
|
+
},
|
|
779
860
|
formfield,
|
|
861
|
+
{
|
|
862
|
+
name: "default_expression",
|
|
863
|
+
label: req.__("Expression"),
|
|
864
|
+
sublabel:
|
|
865
|
+
req.__(
|
|
866
|
+
"JavaScript expression. Available: <code>user</code> (current user). Can be async."
|
|
867
|
+
) +
|
|
868
|
+
`<div class="mt-1">${presetButtons}</div>${setterScript}`,
|
|
869
|
+
input_type: "code",
|
|
870
|
+
attributes: {
|
|
871
|
+
mode: "application/javascript",
|
|
872
|
+
user: true,
|
|
873
|
+
},
|
|
874
|
+
showIf: expressionShowIf,
|
|
875
|
+
},
|
|
876
|
+
|
|
780
877
|
],
|
|
781
878
|
});
|
|
782
|
-
|
|
879
|
+
const hasExprDefault = !!context.default_expression;
|
|
880
|
+
const hasFixedDefault =
|
|
783
881
|
typeof context.default !== "undefined" &&
|
|
784
|
-
context.default !== null
|
|
785
|
-
|
|
882
|
+
context.default !== null &&
|
|
883
|
+
!hasExprDefault;
|
|
884
|
+
if (hasExprDefault || hasFixedDefault) {
|
|
786
885
|
form.values.set_default = true;
|
|
886
|
+
form.values.default_type = hasExprDefault ? "expression" : "fixed";
|
|
887
|
+
} else {
|
|
888
|
+
form.values.default_type = "fixed";
|
|
889
|
+
}
|
|
787
890
|
return form;
|
|
788
891
|
},
|
|
789
892
|
},
|
|
@@ -1003,7 +1106,7 @@ router.post(
|
|
|
1003
1106
|
try {
|
|
1004
1107
|
if (stored) {
|
|
1005
1108
|
const f = get_async_expression_function(formula, fields);
|
|
1006
|
-
result = await f(rows[0]);
|
|
1109
|
+
result = await f(rows[0], req.user);
|
|
1007
1110
|
} else {
|
|
1008
1111
|
const f = get_expression_function(formula, fields);
|
|
1009
1112
|
result = f(rows[0]);
|
|
@@ -1348,6 +1451,7 @@ router.post(
|
|
|
1348
1451
|
undefined,
|
|
1349
1452
|
req.user
|
|
1350
1453
|
);
|
|
1454
|
+
if (fv?.fill_options) await fv.fill_options(field);
|
|
1351
1455
|
if (!fv && field.type === "Key" && fieldview === "select")
|
|
1352
1456
|
res.send(
|
|
1353
1457
|
`<input ${
|
package/routes/files.js
CHANGED
|
@@ -183,10 +183,11 @@ router.get(
|
|
|
183
183
|
file.location = file.isDirectory ? file.path_to_serve : file.field_value;
|
|
184
184
|
}
|
|
185
185
|
if (file_exts) {
|
|
186
|
+
const escapeRegex = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
186
187
|
const re = new RegExp(
|
|
187
188
|
`\\.(${file_exts
|
|
188
189
|
.split(",")
|
|
189
|
-
.map((s) => s.trim())
|
|
190
|
+
.map((s) => escapeRegex(s.trim()))
|
|
190
191
|
.join("|")})$`,
|
|
191
192
|
"i"
|
|
192
193
|
);
|
|
@@ -487,6 +488,17 @@ router.get(
|
|
|
487
488
|
const width = strictParseInt(width_str);
|
|
488
489
|
const height =
|
|
489
490
|
height_str && height_str !== "0" ? strictParseInt(height_str) : null;
|
|
491
|
+
if (
|
|
492
|
+
file.mimetype === "image/svg+xml" ||
|
|
493
|
+
file.mimetype === "application/mathml+xml"
|
|
494
|
+
) {
|
|
495
|
+
const window = new JSDOM("").window;
|
|
496
|
+
const DOMPurify = createDOMPurify(window);
|
|
497
|
+
const contents = await fs.promises.readFile(file.location);
|
|
498
|
+
const clean = DOMPurify.sanitize(contents);
|
|
499
|
+
res.send(clean);
|
|
500
|
+
return;
|
|
501
|
+
}
|
|
490
502
|
if (!width) {
|
|
491
503
|
res.sendFile(file.location, { dotfiles: "allow" });
|
|
492
504
|
return;
|
package/routes/list.js
CHANGED
|
@@ -181,10 +181,11 @@ const typeToGridType = (t, field) => {
|
|
|
181
181
|
format: "iso",
|
|
182
182
|
};
|
|
183
183
|
jsgField.editor = "__flatpickerEditor";
|
|
184
|
-
jsgField.formatter = "datetime";
|
|
185
|
-
jsgField.formatterParams = {
|
|
186
|
-
|
|
187
|
-
};
|
|
184
|
+
// jsgField.formatter = "datetime";
|
|
185
|
+
// jsgField.formatterParams = {
|
|
186
|
+
// inputFormat: "iso",
|
|
187
|
+
// };
|
|
188
|
+
jsgField.formatter = "__isoDateTimeFormatter";
|
|
188
189
|
|
|
189
190
|
if (field.attributes?.day_only) {
|
|
190
191
|
jsgField.editorParams = { dayOnly: true };
|