@saltcorn/server 1.3.0-beta.1 → 1.3.0-beta.3
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/app.js +14 -1
- package/docs/classes/_saltcorn_common_code.Relation.html +10 -10
- package/docs/classes/_saltcorn_common_code.RelationsFinder.html +5 -5
- package/docs/classes/_saltcorn_data.models.Crash.html +17 -17
- package/docs/classes/_saltcorn_data.models.EventLog-1.html +19 -19
- package/docs/classes/_saltcorn_data.models.Field.html +73 -73
- package/docs/classes/_saltcorn_data.models.FieldRepeat.html +16 -16
- package/docs/classes/_saltcorn_data.models.File-1.html +48 -48
- package/docs/classes/_saltcorn_data.models.Form-1.html +38 -38
- package/docs/classes/_saltcorn_data.models.Library.html +13 -13
- package/docs/classes/_saltcorn_data.models.Page.html +24 -24
- package/docs/classes/_saltcorn_data.models.PageGroup-1.html +25 -25
- package/docs/classes/_saltcorn_data.models.Plugin.html +25 -25
- package/docs/classes/_saltcorn_data.models.Role.html +9 -9
- package/docs/classes/_saltcorn_data.models.Table-1.html +92 -92
- package/docs/classes/_saltcorn_data.models.TableConstraint.html +14 -14
- package/docs/classes/_saltcorn_data.models.Trigger.html +36 -36
- package/docs/classes/_saltcorn_data.models.User.html +48 -48
- package/docs/classes/_saltcorn_data.models.View-1.html +52 -52
- package/docs/classes/_saltcorn_data.models.Workflow.html +17 -17
- package/docs/classes/_saltcorn_data.models.WorkflowRun.html +35 -35
- package/docs/classes/_saltcorn_data.models.WorkflowStep.html +25 -25
- package/docs/classes/_saltcorn_data.models.WorkflowTrace.html +18 -18
- package/docs/classes/_saltcorn_mobile_builder.MobileBuilder.html +36 -36
- package/docs/enums/_saltcorn_common_code.RelationType.html +7 -7
- package/docs/enums/_saltcorn_common_code.ViewDisplayType.html +4 -4
- package/docs/functions/_saltcorn_admin_models.backup.create_backup.html +1 -1
- package/docs/functions/_saltcorn_admin_models.backup.create_csv_from_rows.html +1 -1
- package/docs/functions/_saltcorn_admin_models.backup.restore.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.add_to_menu.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.can_install_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.fetch_available_packs.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.fetch_pack_by_name.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.install_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.library_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.model_instance_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.model_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.page_group_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.page_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.plugin_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.role_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.table_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.trigger_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.uninstall_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.pack.view_pack.html +1 -1
- package/docs/functions/_saltcorn_admin_models.tenant.copy_tenant_template.html +1 -1
- package/docs/functions/_saltcorn_admin_models.tenant.create_tenant.html +1 -1
- package/docs/functions/_saltcorn_admin_models.tenant.deleteTenant.html +1 -1
- package/docs/functions/_saltcorn_admin_models.tenant.domain_sanitize.html +1 -1
- package/docs/functions/_saltcorn_admin_models.tenant.eachTenant.html +1 -1
- package/docs/functions/_saltcorn_admin_models.tenant.getAllTenantRows.html +1 -1
- package/docs/functions/_saltcorn_admin_models.tenant.getAllTenants.html +1 -1
- package/docs/functions/_saltcorn_admin_models.tenant.insertTenant.html +1 -1
- package/docs/functions/_saltcorn_admin_models.tenant.switchToTenant.html +1 -1
- package/docs/functions/_saltcorn_common_code.buildTableCaches.html +1 -1
- package/docs/functions/_saltcorn_common_code.parseLegacyRelation.html +1 -1
- package/docs/functions/_saltcorn_common_code.parseRelationPath.html +1 -1
- package/docs/functions/_saltcorn_data.models.config.check_email_mask.html +1 -1
- package/docs/functions/_saltcorn_data.models.config.deleteConfig.html +1 -1
- package/docs/functions/_saltcorn_data.models.config.getAllConfig.html +1 -1
- package/docs/functions/_saltcorn_data.models.config.getConfig.html +1 -1
- package/docs/functions/_saltcorn_data.models.config.get_base_url.html +1 -1
- package/docs/functions/_saltcorn_data.models.config.get_latest_npm_version.html +1 -1
- package/docs/functions/_saltcorn_data.models.config.remove_from_menu.html +1 -1
- package/docs/functions/_saltcorn_data.models.config.save_menu_items.html +1 -1
- package/docs/functions/_saltcorn_data.models.config.setConfig.html +1 -1
- package/docs/functions/_saltcorn_data.models.discovery.discover_tables.html +1 -1
- package/docs/functions/_saltcorn_data.models.discovery.discoverable_tables.html +1 -1
- package/docs/functions/_saltcorn_data.models.discovery.findType.html +1 -1
- package/docs/functions/_saltcorn_data.models.discovery.get_existing_views.html +1 -1
- package/docs/functions/_saltcorn_data.models.discovery.implement_discovery.html +1 -1
- package/docs/functions/_saltcorn_data.models.email.getMailTransport.html +1 -1
- package/docs/functions/_saltcorn_data.models.email.send_verification_email.html +1 -1
- package/docs/functions/_saltcorn_data.models.email.viewToEmailHtml.html +1 -1
- package/docs/functions/_saltcorn_data.models.expression.apply_calculated_fields.html +1 -1
- package/docs/functions/_saltcorn_data.models.expression.apply_calculated_fields_stored.html +1 -1
- package/docs/functions/_saltcorn_data.models.expression.eval_expression.html +1 -1
- package/docs/functions/_saltcorn_data.models.expression.expressionValidator.html +1 -1
- package/docs/functions/_saltcorn_data.models.expression.get_async_expression_function.html +1 -1
- package/docs/functions/_saltcorn_data.models.expression.get_expression_function.html +1 -1
- package/docs/functions/_saltcorn_data.models.expression.jsexprToWhere.html +1 -1
- package/docs/functions/_saltcorn_data.models.expression.recalculate_for_stored.html +1 -1
- package/docs/functions/_saltcorn_data.models.expression.transform_for_async.html +1 -1
- package/docs/functions/_saltcorn_data.models.layout.eachView.html +1 -1
- package/docs/functions/_saltcorn_data.models.layout.getStringsForI18n.html +1 -1
- package/docs/functions/_saltcorn_data.models.layout.getViews.html +1 -1
- package/docs/functions/_saltcorn_data.models.layout.translateLayout.html +1 -1
- package/docs/functions/_saltcorn_data.models.layout.traverse.html +1 -1
- package/docs/functions/_saltcorn_data.models.layout.traverseSync.html +1 -1
- package/docs/functions/_saltcorn_data.models.random.all_views.html +1 -1
- package/docs/functions/_saltcorn_data.models.random.fill_table_row.html +1 -1
- package/docs/functions/_saltcorn_data.models.random.initial_view.html +1 -1
- package/docs/functions/_saltcorn_data.models.random.random_table.html +1 -1
- package/docs/functions/_saltcorn_db_common.buildInsertBulkSql.html +1 -1
- package/docs/functions/_saltcorn_db_common.buildInsertSql.html +1 -1
- package/docs/functions/_saltcorn_db_common.doCount.html +1 -1
- package/docs/functions/_saltcorn_db_common.doDeleteWhere.html +1 -1
- package/docs/functions/_saltcorn_db_common.doListScTables.html +1 -1
- package/docs/functions/_saltcorn_db_common.doListTables.html +1 -1
- package/docs/functions/_saltcorn_db_common.doListUserDefinedTables.html +1 -1
- package/docs/functions/_saltcorn_db_common.do_add_index.html +1 -1
- package/docs/functions/_saltcorn_db_common.do_drop_index.html +1 -1
- package/docs/functions/_saltcorn_db_common.ftsFieldsSqlExpr.html +1 -1
- package/docs/functions/_saltcorn_db_common.mkSelectOptions.html +1 -1
- package/docs/functions/_saltcorn_db_common.mkVal.html +1 -1
- package/docs/functions/_saltcorn_db_common.mkWhere.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.orderByIsObject.html +1 -1
- package/docs/functions/_saltcorn_db_common.orderByIsOperator.html +1 -1
- package/docs/functions/_saltcorn_db_common.prefixFieldsInWhere.html +1 -1
- package/docs/functions/_saltcorn_db_common.reprAsJson.html +1 -1
- package/docs/functions/_saltcorn_db_common.slugify.html +1 -1
- package/docs/functions/_saltcorn_db_common.sqlBinOp.html +1 -1
- package/docs/functions/_saltcorn_db_common.sqlFun.html +1 -1
- package/docs/functions/_saltcorn_db_common.sqlsanitize.html +1 -1
- package/docs/functions/_saltcorn_db_common.sqlsanitizeAllowDots.html +1 -1
- package/docs/functions/_saltcorn_db_common.subSelectWhere.html +1 -1
- package/docs/functions/_saltcorn_db_common.tryCatchInTransaction.html +1 -1
- package/docs/functions/_saltcorn_db_common.withTransaction.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.androidFeatures.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.androidPermissions.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.buildTablesFile.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.copyPrepopulatedDb.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.copyServerFiles.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.copyShareExtFiles.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.copySiteLogo.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.copyTranslationFiles.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.createSqliteDb.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.decodeProvisioningProfile.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.extractDomain.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.generateAndroidVersionCode.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.modifyAndroidManifest.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.modifyConfigXml.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.modifyGradleConfig.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.modifyInfoPlist.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.modifyXcodeProjectFile.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.prepAppIcon.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.prepareAppIcon.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.prepareBuildDir.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.prepareExportOptionsPlist.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.prepareSplashIcon.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.prepareSplashPage.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.writeCapacitorConfig.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.writeCfgFile.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.writeDataExtractionRules.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.writeNetworkSecurityConfig.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.writePodfile.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.common_build_utils.writePrivacyInfo.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.package_bundle_utils.bundleMobileAppCode.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.package_bundle_utils.bundlePackagesAndPlugins.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.package_bundle_utils.copyMobileAppDirs.html +1 -1
- package/docs/functions/_saltcorn_mobile_builder.package_bundle_utils.copyPublicDirs.html +1 -1
- package/docs/functions/_saltcorn_sqlite.add_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite.add_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite.begin.html +1 -1
- package/docs/functions/_saltcorn_sqlite.changeConnection.html +1 -1
- package/docs/functions/_saltcorn_sqlite.close.html +1 -1
- package/docs/functions/_saltcorn_sqlite.commit.html +1 -1
- package/docs/functions/_saltcorn_sqlite.count.html +1 -1
- package/docs/functions/_saltcorn_sqlite.deleteWhere.html +1 -1
- package/docs/functions/_saltcorn_sqlite.dropTable.html +1 -1
- package/docs/functions/_saltcorn_sqlite.dropTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.drop_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite.drop_reset_schema.html +1 -1
- package/docs/functions/_saltcorn_sqlite.drop_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite.getVersion.html +1 -1
- package/docs/functions/_saltcorn_sqlite.get_db_filepath.html +1 -1
- package/docs/functions/_saltcorn_sqlite.get_sql_logging.html +1 -1
- package/docs/functions/_saltcorn_sqlite.init.html +1 -1
- package/docs/functions/_saltcorn_sqlite.insert.html +1 -1
- package/docs/functions/_saltcorn_sqlite.listScTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.listTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.listUserDefinedTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.query.html +1 -1
- package/docs/functions/_saltcorn_sqlite.rollback.html +1 -1
- package/docs/functions/_saltcorn_sqlite.select.html +1 -1
- package/docs/functions/_saltcorn_sqlite.selectMaybeOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite.selectOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite.set_sql_logging.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sql_log.html +1 -1
- package/docs/functions/_saltcorn_sqlite.update.html +1 -1
- package/docs/functions/_saltcorn_sqlite.updateWhere.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.add_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.add_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.count.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.deleteWhere.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.drop_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.drop_reset_schema.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.drop_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.init.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.insert.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.insertRows.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.listScTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.listTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.listUserDefinedTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.query.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.select.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.selectMaybeOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.selectOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.setConnectionObject.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.tableExists.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.time.html +1 -1
- package/docs/functions/_saltcorn_sqlite_mobile.update.html +1 -1
- package/docs/functions/_saltcorn_types.ModelAbstracts.abstract_field.instanceOfField.html +1 -1
- package/docs/functions/_saltcorn_types.ModelAbstracts.abstract_page.instanceOfPage.html +1 -1
- package/docs/functions/_saltcorn_types.ModelAbstracts.abstract_view.instanceOfView.html +1 -1
- package/docs/functions/_saltcorn_types.Types.base_types.instanceOWithHtmlFile.html +1 -1
- package/docs/functions/_saltcorn_types.Types.common_types.instanceOfErrorMsg.html +1 -1
- package/docs/functions/_saltcorn_types.Types.common_types.instanceOfSuccessMsg.html +1 -1
- package/docs/functions/_saltcorn_types.Types.common_types.instanceOfType.html +1 -1
- package/docs/functions/_saltcorn_types.generators.generateBool.html +1 -1
- package/docs/functions/_saltcorn_types.generators.generateString.html +1 -1
- package/docs/functions/_saltcorn_types.generators.num_between.html +1 -1
- package/docs/functions/_saltcorn_types.generators.oneOf.html +1 -1
- package/docs/interfaces/_saltcorn_mobile_builder.common_build_utils.ScCapacitorConfig.html +10 -10
- package/docs/interfaces/_saltcorn_types.ModelAbstracts.abstract_field.AbstractField.html +15 -15
- package/docs/interfaces/_saltcorn_types.ModelAbstracts.abstract_field.AbstractFieldRepeat.html +3 -3
- package/docs/interfaces/_saltcorn_types.ModelAbstracts.abstract_form.AbstractForm.html +26 -26
- package/docs/interfaces/_saltcorn_types.ModelAbstracts.abstract_page.AbstractPage.html +7 -7
- package/docs/interfaces/_saltcorn_types.ModelAbstracts.abstract_role.AbstractRole.html +3 -3
- package/docs/interfaces/_saltcorn_types.ModelAbstracts.abstract_table.AbstractTable.html +11 -11
- package/docs/interfaces/_saltcorn_types.ModelAbstracts.abstract_trigger.AbstractTrigger.html +16 -16
- package/docs/interfaces/_saltcorn_types.ModelAbstracts.abstract_view.AbstractView.html +10 -10
- package/docs/interfaces/_saltcorn_types.ModelAbstracts.abstract_workflow.AbstractWorkflow.html +13 -13
- package/docs/modules/_saltcorn_admin_models.backup.html +1 -1
- package/docs/modules/_saltcorn_admin_models.html +1 -1
- package/docs/modules/_saltcorn_admin_models.pack.html +1 -1
- package/docs/modules/_saltcorn_admin_models.tenant.html +1 -1
- package/docs/modules/_saltcorn_common_code.html +1 -1
- package/docs/modules/_saltcorn_data.html +3 -3
- package/docs/modules/_saltcorn_data.models.EventLog.html +2 -2
- package/docs/modules/_saltcorn_data.models.File.html +2 -2
- package/docs/modules/_saltcorn_data.models.Form.html +2 -2
- package/docs/modules/_saltcorn_data.models.PageGroup.html +2 -2
- package/docs/modules/_saltcorn_data.models.Table.html +2 -2
- package/docs/modules/_saltcorn_data.models.View.html +2 -2
- package/docs/modules/_saltcorn_data.models.config.html +1 -1
- package/docs/modules/_saltcorn_data.models.discovery.html +1 -1
- package/docs/modules/_saltcorn_data.models.email.html +1 -1
- package/docs/modules/_saltcorn_data.models.expression.html +1 -1
- package/docs/modules/_saltcorn_data.models.html +1 -1
- package/docs/modules/_saltcorn_data.models.layout.html +1 -1
- package/docs/modules/_saltcorn_data.models.random.html +1 -1
- package/docs/modules/_saltcorn_data.models.scheduler.html +1 -1
- package/docs/modules/_saltcorn_data.plugin_helper.html +1 -1
- package/docs/modules/_saltcorn_data.utils.html +1 -1
- package/docs/modules/_saltcorn_db_common.html +2 -2
- package/docs/modules/_saltcorn_db_common.multi_tenant.html +1 -1
- package/docs/modules/_saltcorn_markup.html +2 -2
- package/docs/modules/_saltcorn_mobile_builder.common_build_utils.html +1 -1
- package/docs/modules/_saltcorn_mobile_builder.html +1 -1
- package/docs/modules/_saltcorn_mobile_builder.package_bundle_utils.html +1 -1
- package/docs/modules/_saltcorn_sqlite.html +1 -1
- package/docs/modules/_saltcorn_sqlite_mobile.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_field.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_form.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_library.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_page.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_plugin.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_role.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_table.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_trigger.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_view.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.abstract_workflow.html +1 -1
- package/docs/modules/_saltcorn_types.ModelAbstracts.html +1 -1
- package/docs/modules/_saltcorn_types.Types.base_types.html +1 -1
- package/docs/modules/_saltcorn_types.Types.common_types.html +1 -1
- package/docs/modules/_saltcorn_types.Types.html +1 -1
- package/docs/modules/_saltcorn_types.generators.html +1 -1
- package/docs/modules/_saltcorn_types.html +1 -1
- package/docs/types/_saltcorn_data.models.EventLog.EventLogCfg.html +1 -1
- package/docs/types/_saltcorn_data.models.File.FileCfg.html +1 -1
- package/docs/types/_saltcorn_data.models.Form.AdditionalButton.html +1 -1
- package/docs/types/_saltcorn_data.models.Form.FormCfg.html +1 -1
- package/docs/types/_saltcorn_data.models.PageGroup.ScreenInfoParams.html +1 -1
- package/docs/types/_saltcorn_data.models.Table.ChildRelations.html +1 -1
- package/docs/types/_saltcorn_data.models.Table.ParentRelations.html +1 -1
- package/docs/types/_saltcorn_data.models.Table.RelationData.html +1 -1
- package/docs/types/_saltcorn_data.models.View.FindViewsPred.html +1 -1
- package/docs/types/_saltcorn_db_common.AggregationOptions.html +1 -1
- package/docs/types/_saltcorn_db_common.CoordOpts.html +1 -1
- package/docs/types/_saltcorn_db_common.DatabaseClient.html +1 -1
- package/docs/types/_saltcorn_db_common.JoinField.html +1 -1
- package/docs/types/_saltcorn_db_common.JoinFields.html +1 -1
- package/docs/types/_saltcorn_db_common.JoinOptions.html +1 -1
- package/docs/types/_saltcorn_db_common.JsonPath.html +1 -1
- package/docs/types/_saltcorn_db_common.JsonPathElem.html +1 -1
- package/docs/types/_saltcorn_db_common.Operator.html +1 -1
- package/docs/types/_saltcorn_db_common.PartialSome.html +1 -1
- package/docs/types/_saltcorn_db_common.PrimaryKeyValue.html +1 -1
- package/docs/types/_saltcorn_db_common.Row.html +1 -1
- package/docs/types/_saltcorn_db_common.SelectOptions.html +1 -1
- package/docs/types/_saltcorn_db_common.SqlAndValues.html +1 -1
- package/docs/types/_saltcorn_db_common.StrongRow.html +1 -1
- package/docs/types/_saltcorn_db_common.SubselectOptions.html +1 -1
- package/docs/types/_saltcorn_db_common.Value.html +1 -1
- package/docs/types/_saltcorn_db_common.Where.html +1 -1
- package/docs/types/_saltcorn_mobile_builder.IosCfg.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_field.FieldCfg.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_field.InputType.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_form.AdditionalButton.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_library.LibraryCfg.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_library.LibraryPack.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_page.PageCfg.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_page.PagePack.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_plugin.PluginCfg.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_plugin.PluginPack.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_role.RoleCfg.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_role.RolePack.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_table.TableCfg.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_table.TablePack.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_trigger.TriggerCfg.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_trigger.TriggerPack.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_view.ViewCfg.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_view.ViewPack.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_workflow.ConfigWorkflowStep.html +1 -1
- package/docs/types/_saltcorn_types.ModelAbstracts.abstract_workflow.RunResult.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.Action.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.AuthenticationMethod.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.CalcJoinfield.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.CapacitorPlugin.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.CodePagePack.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.Column.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.ConnectObjType.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.ConnectedObjects.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.CopilotSkill.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.ErrorObj.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.FieldLike.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.FieldView.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.Header.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.JoinFieldOption.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.Layout.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.MobileConfig.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.ModelPattern.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.Pack.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.Plugin.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.PluginFunction.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.PluginLayout.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.PluginRoute.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.PluginSourceType.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.PluginType.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.PluginWrap.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.PluginWrapArg.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.RelationOption.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.Req.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.Res.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.ResultType.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.RouteAction.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.RunExtra.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.SlugStepType.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.StepResType.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.SubField.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.TableProvider.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.TableQuery.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.Tablely.html +1 -1
- package/docs/types/_saltcorn_types.Types.base_types.ViewTemplate.html +1 -1
- package/docs/types/_saltcorn_types.Types.common_types.ErrorMessage.html +1 -1
- package/docs/types/_saltcorn_types.Types.common_types.GenObj.html +1 -1
- package/docs/types/_saltcorn_types.Types.common_types.ReqRes.html +1 -1
- package/docs/types/_saltcorn_types.Types.common_types.ResultMessage.html +1 -1
- package/docs/types/_saltcorn_types.Types.common_types.SuccessMessage.html +1 -1
- package/docs/types/_saltcorn_types.Types.common_types.Type.html +1 -1
- package/docs/variables/_saltcorn_data.db.html +1 -1
- package/docs/variables/_saltcorn_data.migrations.html +1 -1
- package/docs/variables/_saltcorn_data.models.config.available_languages.html +1 -1
- package/docs/variables/_saltcorn_data.models.config.configTypes.html +1 -1
- package/docs/variables/_saltcorn_data.models.scheduler.runScheduler.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.sleep.html +1 -1
- package/docs/variables/_saltcorn_db_common.multi_tenant.tenantNamespace.html +1 -1
- package/locales/en.json +6 -1
- package/locales/pt.json +2 -2
- package/package.json +9 -9
- package/public/assets/databases/databases.json +3 -0
- package/public/assets/databases/prepopulated.db +0 -0
- package/public/assets/sql-wasm.wasm +0 -0
- package/public/saltcorn-common.js +61 -25
- package/public/saltcorn.js +1 -1
- package/routes/admin.js +51 -26
- package/tests/clientjs.test.js +16 -0
|
@@ -151,6 +151,21 @@ function valid_js_var_name(s) {
|
|
|
151
151
|
return !!s.match(/^[a-zA-Z_$][a-zA-Z_$0-9]*$/);
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
+
function add_extra_state(base_url, extra_state_fml, row) {
|
|
155
|
+
//console.log("add_extra_state", { base_url, extra_state_fml, row });
|
|
156
|
+
if (!extra_state_fml) return base_url;
|
|
157
|
+
let extra_state = new Function(
|
|
158
|
+
"row",
|
|
159
|
+
`{${Object.keys(row).join(",")}}`,
|
|
160
|
+
"return " + extra_state_fml
|
|
161
|
+
)(row, row);
|
|
162
|
+
let qs = Object.entries(extra_state)
|
|
163
|
+
.map(([k, v]) => `${k}=${encodeURIComponent(v)}`)
|
|
164
|
+
.join("&");
|
|
165
|
+
let sepChar = base_url.includes("?") ? "&" : "?";
|
|
166
|
+
return base_url + sepChar + qs;
|
|
167
|
+
}
|
|
168
|
+
|
|
154
169
|
const apply_showif_fetching_urls = new Set();
|
|
155
170
|
|
|
156
171
|
function apply_showif() {
|
|
@@ -428,6 +443,49 @@ function apply_showif() {
|
|
|
428
443
|
});
|
|
429
444
|
});
|
|
430
445
|
});
|
|
446
|
+
$("[data-view-source]").each(function (ix, element) {
|
|
447
|
+
const e = $(element);
|
|
448
|
+
const rec = get_form_record(e);
|
|
449
|
+
const current = e.attr("data-view-source-current");
|
|
450
|
+
const encFml = e.attr("data-view-source");
|
|
451
|
+
const needFields = e.attr("data-view-source-need-fields");
|
|
452
|
+
if (needFields) {
|
|
453
|
+
const isSet = (v) => v !== null && v !== "" && typeof v !== "undefined";
|
|
454
|
+
if (needFields.split(",").some((k) => !isSet(rec[k]))) return;
|
|
455
|
+
}
|
|
456
|
+
const fml = decodeURIComponent(encFml);
|
|
457
|
+
//console.log("fml", fml);
|
|
458
|
+
|
|
459
|
+
const viewname = e.attr("data-sc-embed-viewname");
|
|
460
|
+
|
|
461
|
+
const newUrl = new Function("row", "return " + fml)(rec);
|
|
462
|
+
//console.log("current-new", current, newUrl);
|
|
463
|
+
|
|
464
|
+
if (current && current == newUrl) return;
|
|
465
|
+
|
|
466
|
+
e.attr("data-view-source-current", newUrl); // to prevent concurrent fetches
|
|
467
|
+
$.ajax(newUrl, {
|
|
468
|
+
headers: {
|
|
469
|
+
pjaxpageload: "true",
|
|
470
|
+
localizedstate: "true", //no admin bar
|
|
471
|
+
},
|
|
472
|
+
success: function (res, textStatus, request) {
|
|
473
|
+
const newE = `<div class="d-inline"
|
|
474
|
+
data-sc-embed-viewname="${viewname}"
|
|
475
|
+
data-sc-view-source="${newUrl}"
|
|
476
|
+
data-view-source-current="${newUrl}"
|
|
477
|
+
data-view-source-need-fields="${needFields}"
|
|
478
|
+
data-view-source="${encFml}">${res}</div>`;
|
|
479
|
+
|
|
480
|
+
e.replaceWith(newE);
|
|
481
|
+
initialize_page();
|
|
482
|
+
},
|
|
483
|
+
error: function (res) {
|
|
484
|
+
if (!checkNetworkError(res))
|
|
485
|
+
notifyAlert({ type: "danger", text: res.responseText });
|
|
486
|
+
},
|
|
487
|
+
});
|
|
488
|
+
});
|
|
431
489
|
$("[data-source-url]").each(function (ix, element) {
|
|
432
490
|
const e = $(element);
|
|
433
491
|
const rec0 = get_form_record(e);
|
|
@@ -1741,7 +1799,7 @@ async function common_done(res, viewnameOrElem0, isWeb = true) {
|
|
|
1741
1799
|
form.append(
|
|
1742
1800
|
`<input type="hidden" name="id" value="${res.set_fields[k]}">`
|
|
1743
1801
|
);
|
|
1744
|
-
|
|
1802
|
+
apply_showif();
|
|
1745
1803
|
return;
|
|
1746
1804
|
}
|
|
1747
1805
|
if (input.attr("type") === "checkbox")
|
|
@@ -1830,29 +1888,6 @@ function editAllowedAuthByRole(id, event) {
|
|
|
1830
1888
|
);
|
|
1831
1889
|
}
|
|
1832
1890
|
|
|
1833
|
-
function reloadEmbeddedEditOwnViews(form, id) {
|
|
1834
|
-
form.find("div[sc-load-on-assign-id]").each(function () {
|
|
1835
|
-
const $e = $(this);
|
|
1836
|
-
const viewname = $e.attr("sc-load-on-assign-id");
|
|
1837
|
-
const newUrl = `/view/${viewname}?id=${id}`;
|
|
1838
|
-
$.ajax(newUrl, {
|
|
1839
|
-
headers: {
|
|
1840
|
-
pjaxpageload: "true",
|
|
1841
|
-
localizedstate: "true", //no admin bar
|
|
1842
|
-
},
|
|
1843
|
-
success: function (res, textStatus, request) {
|
|
1844
|
-
const newE = `<div class="d-inline" data-sc-embed-viewname="${viewname}" data-sc-view-source="${newUrl}">${res}</div>`;
|
|
1845
|
-
$e.replaceWith(newE);
|
|
1846
|
-
initialize_page();
|
|
1847
|
-
},
|
|
1848
|
-
error: function (res) {
|
|
1849
|
-
if (!checkNetworkError(res))
|
|
1850
|
-
notifyAlert({ type: "danger", text: res.responseText });
|
|
1851
|
-
},
|
|
1852
|
-
});
|
|
1853
|
-
});
|
|
1854
|
-
}
|
|
1855
|
-
|
|
1856
1891
|
const repeaterCopyValuesToForm = (form, editor, noTriggerChange) => {
|
|
1857
1892
|
const vs = JSON.parse(editor.getString());
|
|
1858
1893
|
|
|
@@ -1981,7 +2016,8 @@ function unique_field_from_rows(
|
|
|
1981
2016
|
.filter((v) => v !== value)
|
|
1982
2017
|
.map((s) => s.replace(value_wspace, ""))
|
|
1983
2018
|
.map((s) => (numtype ? +s : s))
|
|
1984
|
-
.
|
|
2019
|
+
.filter((s) => (numtype ? !isNaN(s) : true))
|
|
2020
|
+
.sort((a, b) => a - b);
|
|
1985
2021
|
if (stripped.length === 0) newname = `${value_wspace}${gen_char(start)}`;
|
|
1986
2022
|
else {
|
|
1987
2023
|
const i = char_to_i(stripped[stripped.length - 1]);
|
package/public/saltcorn.js
CHANGED
|
@@ -538,7 +538,7 @@ function saveAndContinue(e, k, event) {
|
|
|
538
538
|
form.append(
|
|
539
539
|
`<input type="hidden" class="form-control " name="id" value="${res.id}">`
|
|
540
540
|
);
|
|
541
|
-
|
|
541
|
+
apply_showif();
|
|
542
542
|
}
|
|
543
543
|
common_done(res, form.attr("data-viewname"));
|
|
544
544
|
if (focusedEl) focusedEl.setAttribute("previous-val", focusedEl.value);
|
package/routes/admin.js
CHANGED
|
@@ -487,18 +487,18 @@ router.get(
|
|
|
487
487
|
backupForm.values.auto_backup_expire_days = getState().getConfig(
|
|
488
488
|
"auto_backup_expire_days"
|
|
489
489
|
);
|
|
490
|
-
backupForm.values.
|
|
491
|
-
"
|
|
490
|
+
backupForm.values.backup_s3_bucket =
|
|
491
|
+
getState().getConfig("backup_s3_bucket");
|
|
492
|
+
backupForm.values.backup_s3_endpoint =
|
|
493
|
+
getState().getConfig("backup_s3_endpoint");
|
|
494
|
+
backupForm.values.backup_s3_access_key = getState().getConfig(
|
|
495
|
+
"backup_s3_access_key"
|
|
492
496
|
);
|
|
493
|
-
backupForm.values.
|
|
494
|
-
"
|
|
495
|
-
);
|
|
496
|
-
backupForm.values.storage_s3_access_secret = getState().getConfig(
|
|
497
|
-
"storage_s3_access_secret"
|
|
498
|
-
);
|
|
499
|
-
backupForm.values.storage_s3_region = getState().getConfig(
|
|
500
|
-
"storage_s3_region"
|
|
497
|
+
backupForm.values.backup_s3_access_secret = getState().getConfig(
|
|
498
|
+
"backup_s3_access_secret"
|
|
501
499
|
);
|
|
500
|
+
backupForm.values.backup_s3_region =
|
|
501
|
+
getState().getConfig("backup_s3_region");
|
|
502
502
|
aBackupFilePrefixForm.values.backup_with_event_log = getState().getConfig(
|
|
503
503
|
"backup_with_event_log"
|
|
504
504
|
);
|
|
@@ -1089,18 +1089,6 @@ const autoBackupForm = (req) => {
|
|
|
1089
1089
|
//auto_backup_destination: "Local directory",
|
|
1090
1090
|
},
|
|
1091
1091
|
},
|
|
1092
|
-
{
|
|
1093
|
-
type: "Integer",
|
|
1094
|
-
label: req.__("Expiration in days"),
|
|
1095
|
-
sublabel: req.__(
|
|
1096
|
-
"Delete old backup files in this directory after the set number of days"
|
|
1097
|
-
),
|
|
1098
|
-
name: "auto_backup_expire_days",
|
|
1099
|
-
showIf: {
|
|
1100
|
-
auto_backup_frequency: ["Daily", "Weekly"],
|
|
1101
|
-
auto_backup_destination: "Local directory",
|
|
1102
|
-
},
|
|
1103
|
-
},
|
|
1104
1092
|
...(isRoot
|
|
1105
1093
|
? [
|
|
1106
1094
|
{
|
|
@@ -1114,10 +1102,19 @@ const autoBackupForm = (req) => {
|
|
|
1114
1102
|
},
|
|
1115
1103
|
]
|
|
1116
1104
|
: []),
|
|
1105
|
+
{
|
|
1106
|
+
type: "String",
|
|
1107
|
+
label: req.__("S3 Endpoint"),
|
|
1108
|
+
name: "backup_s3_endpoint",
|
|
1109
|
+
showIf: {
|
|
1110
|
+
auto_backup_frequency: ["Daily", "Weekly"],
|
|
1111
|
+
auto_backup_destination: "S3",
|
|
1112
|
+
},
|
|
1113
|
+
},
|
|
1117
1114
|
{
|
|
1118
1115
|
type: "String",
|
|
1119
1116
|
label: req.__("S3 Bucket Name"),
|
|
1120
|
-
name: "
|
|
1117
|
+
name: "backup_s3_bucket",
|
|
1121
1118
|
showIf: {
|
|
1122
1119
|
auto_backup_frequency: ["Daily", "Weekly"],
|
|
1123
1120
|
auto_backup_destination: "S3",
|
|
@@ -1126,7 +1123,7 @@ const autoBackupForm = (req) => {
|
|
|
1126
1123
|
{
|
|
1127
1124
|
type: "String",
|
|
1128
1125
|
label: req.__("S3 Access Key"),
|
|
1129
|
-
name: "
|
|
1126
|
+
name: "backup_s3_access_key",
|
|
1130
1127
|
showIf: {
|
|
1131
1128
|
auto_backup_frequency: ["Daily", "Weekly"],
|
|
1132
1129
|
auto_backup_destination: "S3",
|
|
@@ -1136,7 +1133,7 @@ const autoBackupForm = (req) => {
|
|
|
1136
1133
|
type: "String",
|
|
1137
1134
|
label: req.__("S3 Secret Key"),
|
|
1138
1135
|
fieldview: "password",
|
|
1139
|
-
name: "
|
|
1136
|
+
name: "backup_s3_access_secret",
|
|
1140
1137
|
showIf: {
|
|
1141
1138
|
auto_backup_frequency: ["Daily", "Weekly"],
|
|
1142
1139
|
auto_backup_destination: "S3",
|
|
@@ -1145,12 +1142,24 @@ const autoBackupForm = (req) => {
|
|
|
1145
1142
|
{
|
|
1146
1143
|
type: "String",
|
|
1147
1144
|
label: req.__("S3 Region"),
|
|
1148
|
-
name: "
|
|
1145
|
+
name: "backup_s3_region",
|
|
1149
1146
|
showIf: {
|
|
1150
1147
|
auto_backup_frequency: ["Daily", "Weekly"],
|
|
1151
1148
|
auto_backup_destination: "S3",
|
|
1152
1149
|
},
|
|
1153
1150
|
},
|
|
1151
|
+
{
|
|
1152
|
+
type: "Integer",
|
|
1153
|
+
label: req.__("Expiration in days"),
|
|
1154
|
+
sublabel: req.__(
|
|
1155
|
+
"Delete old backup files in this directory after the set number of days"
|
|
1156
|
+
),
|
|
1157
|
+
name: "auto_backup_expire_days",
|
|
1158
|
+
showIf: {
|
|
1159
|
+
auto_backup_frequency: ["Daily", "Weekly"],
|
|
1160
|
+
auto_backup_destination: ["Local directory", "S3"],
|
|
1161
|
+
},
|
|
1162
|
+
},
|
|
1154
1163
|
],
|
|
1155
1164
|
});
|
|
1156
1165
|
};
|
|
@@ -3832,6 +3841,22 @@ router.post(
|
|
|
3832
3841
|
spawnParams.push("--androidKeyStoreAlias", keystoreAlias);
|
|
3833
3842
|
if (keystorePassword)
|
|
3834
3843
|
spawnParams.push("--androidKeystorePassword", keystorePassword);
|
|
3844
|
+
|
|
3845
|
+
// if builDir exists, remove it
|
|
3846
|
+
if (
|
|
3847
|
+
await fs.promises
|
|
3848
|
+
.access(buildDir)
|
|
3849
|
+
.then(() => true)
|
|
3850
|
+
.catch(() => false)
|
|
3851
|
+
) {
|
|
3852
|
+
try {
|
|
3853
|
+
await fs.promises.rm(buildDir, { recursive: true, force: true });
|
|
3854
|
+
getState().log(5, `Removed existing build directory: ${buildDir}`);
|
|
3855
|
+
} catch (error) {
|
|
3856
|
+
getState().log(4, `Error removing build directory: ${error.message}`);
|
|
3857
|
+
}
|
|
3858
|
+
}
|
|
3859
|
+
|
|
3835
3860
|
// end http call, return the out directory name, the build directory path and the mode
|
|
3836
3861
|
// the gui polls for results
|
|
3837
3862
|
res.json({
|
package/tests/clientjs.test.js
CHANGED
|
@@ -253,4 +253,20 @@ test("unique_field_from_rows test", () => {
|
|
|
253
253
|
"bar"
|
|
254
254
|
);
|
|
255
255
|
expect($("#mkuniq11").val()).toBe("bar104");
|
|
256
|
+
$("body").append(`<input id="mkuniq12" value="YPL240724A"></div>`);
|
|
257
|
+
unique_field_from_rows(
|
|
258
|
+
[
|
|
259
|
+
{ foo: "YPL240724A2" },
|
|
260
|
+
{ foo: "YPL240724A1_COPY-1" },
|
|
261
|
+
{ foo: "YPL240724A1" },
|
|
262
|
+
],
|
|
263
|
+
"mkuniq12",
|
|
264
|
+
"foo",
|
|
265
|
+
false,
|
|
266
|
+
1,
|
|
267
|
+
true,
|
|
268
|
+
"Digits",
|
|
269
|
+
"YPL240724A"
|
|
270
|
+
);
|
|
271
|
+
expect($("#mkuniq12").val()).toBe("YPL240724A3");
|
|
256
272
|
});
|