diff --git a/.github/workflows/workflow-syntax-check.yml b/.github/workflows/workflow-syntax-check.yml index e3e870a769764f..b5173617f94d25 100644 --- a/.github/workflows/workflow-syntax-check.yml +++ b/.github/workflows/workflow-syntax-check.yml @@ -22,12 +22,7 @@ jobs: COLORTERM: truecolor run: | diff_images -f --paths "docs/" "i18n/*/docusaurus-plugin-content-docs/*" - - name: Syntax check - env: - CLICOLOR_FORCE: 1 - COLORTERM: truecolor - run: | - syntax_checker --paths "docs/**/*.md" + - name: Clone syntax-checker run: git clone https://github.com/doc4d/syntax-checker.git @@ -39,4 +34,4 @@ jobs: - name: Run syntax-checker run: | - node syntax-checker/out/check.js ./docs \ No newline at end of file + node syntax-checker/out/check.js ./docs diff --git a/docs/commands-legacy/method-resolve-path.md b/docs/commands-legacy/method-resolve-path.md index b4bbdee20a8f73..b8fb8a808f16c7 100644 --- a/docs/commands-legacy/method-resolve-path.md +++ b/docs/commands-legacy/method-resolve-path.md @@ -26,6 +26,7 @@ The *methodType* parameter receives a value indicating the type of the method. Y | Constant | Type | Value | Comment | | -------------------- | ------- | ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Path class | Integer | 32 | Path of class definition. Example:
*\[class\]/Person*
*\[class\]/Student*| | Path database method | Integer | 2 | Path of database methods specified. List of these methods:
*\[databaseMethod\]/onStartup
\[databaseMethod\]/onExit
\[databaseMethod\]/onDrop
\[databaseMethod\]/onBackupStartup
\[databaseMethod\]/onBackupShutdown
\[databaseMethod\]/onWebConnection
\[databaseMethod\]/onWebAuthentication
\[databaseMethod\]/onWebSessionSuspend
\[databaseMethod\]/onServerStartup
\[databaseMethod\]/onServerShutdown
\[databaseMethod\]/onServerOpenConnection
\[databaseMethod\]/onServerCloseConnection
\[databaseMethod\]/onSystemEvent
\[databaseMethod\]/onSqlAuthentication
* *\[databaseMethod\]/* *onHostDatabaseEvent
* *\[databaseMethod\]/* *onRESTAuthentication
* *\[databaseMethod\]/* *onMobileAppAuthentication
* *\[databaseMethod\]/* *onMobileAppAction* *
* | | Path project form | Integer | 4 | Path of project form methods and all their object methods. Examples:
*\[projectForm\]/myForm/{formMethod}
\[projectForm\]/myForm/button1
\[projectForm\]/myForm/mylist
\[projectForm\]/myForm/button1* | | Path project method | Integer | 1 | Name of method.
Example: *MyProjectMethod* | diff --git a/i18n/es/docusaurus-plugin-content-docs/current/API/WebFormClass.md b/i18n/es/docusaurus-plugin-content-docs/current/API/WebFormClass.md index 63d6300fbea34a..cb044739363053 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/API/WebFormClass.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/API/WebFormClass.md @@ -18,7 +18,7 @@ La clase `WebForm` contiene funciones y propiedades que permiten manejar sus com | | | ------------------------------------------------------------------------------------------------------------------------------- | -| [](#componentname)
| +| [](#componentname)
| | [](#disablestate)
| | [](#enablestate)
| | [](#seterror)
| @@ -27,11 +27,11 @@ La clase `WebForm` contiene funciones y propiedades que permiten manejar sus com ### *.componentName* -***.componentName*** : [4D.WebFormItem](WebFormItemClass.md) +***.componentName*** : [4D.WebFormItem](WebFormItemClass.md) #### Descripción -The components of web pages are objects that are available directly as properties of these web pages. +The components of web pages are objects that are available directly as properties of these web pages. The returned objects are of the [`4D.WebFormItem`](WebFormItemClass.md) class. Estos objetos tienen funciones que puede utilizar para gestionar sus componentes de forma dinámica. diff --git a/i18n/es/docusaurus-plugin-content-docs/current/Concepts/quick-tour.md b/i18n/es/docusaurus-plugin-content-docs/current/Concepts/quick-tour.md index 408f1a621e76c4..735002976c60fd 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/Concepts/quick-tour.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/Concepts/quick-tour.md @@ -427,6 +427,6 @@ En el siguiente ejemplo, el caracter **Retorno de carro** (secuencia de escape ` Las siguientes convenciones se utilizan en la documentación del lenguaje 4D: - los caracteres{ }`(llaves) indican parámetros opcionales. Por ejemplo,`.delete( { option : Integer } )\` significa que el parámetro *option* puede omitirse al llamar a la función. -- the `{; ...*param* : Type}` notation indicates an unlimited number of parameters of the same type. For example, `.concat( value : any { ;...valueN : Text } ) : Collection` means that an unlimited number of values of any type can be passed to the function. -- the `{; ...(*param* : Type ; *param2* : Type) }` notation indicates an unlimited number of groups of parameters. For example, `COLLECTION TO ARRAY ( collection : Collection ; array : Array {; propertyName : Text}{; ...(array : Array ; propertyName : Text) } )` means that an unlimited number of couple values or type array/text can be passed to the command. - la palabra clave `any` se utiliza para parámetros que pueden ser de cualquier tipo (número, texto, booleano, fecha, hora, objeto, colección...). +- the `{; ...*param* : Type}` notation indicates an unlimited number of parameters of the same type. For example, `.concat( value : any { ;...valueN : any } ) : Collection` means that an unlimited number of values of any type can be passed to the function. +- the `{; ...(*param* : Type ; *param2* : Type) }` notation indicates an unlimited number of groups of parameters. For example, `COLLECTION TO ARRAY ( collection : Collection ; array : Array {; propertyName : Text}{; ...(array : Array ; propertyName : Text) } )` means that an unlimited number of couple values of type array/text can be passed to the command. diff --git a/i18n/es/docusaurus-plugin-content-docs/current/Desktop/building.md b/i18n/es/docusaurus-plugin-content-docs/current/Desktop/building.md index cafed46b3b55c5..b89c7f0b98333e 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/Desktop/building.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/Desktop/building.md @@ -491,13 +491,10 @@ Un módulo es una librería de código integrada que 4D utiliza para controlar f Los siguientes módulos opcionales pueden ser deseleccionados: - **CEF**: Librería integrada Chromium. Es necesario ejecutar [áreas Web](../FormObjects/webArea_overview.md) que utilizan el motor de renderizado integrado y [áreas 4D View Pro](../FormObjects/viewProArea_overview.md). La llamada a estas áreas cuando el CEF está deseleccionado mostrará áreas en blanco y/o generará errores. -- **MeCab**: librería utilizada para la indexación de textos en lengua japonesa (ver este [párrafo de propiedades](../settings/database.md#support-of-mecab-japanese-version)). Si se deselecciona este módulo, los índices de texto se reconstruirán en japonés. - -> Si deselecciona MeCab para una aplicación en lenguaje japonés utilizada en plataformas heterogéneas, asegúrese de deseleccionarlo tanto en la compilación cliente/servidor como en la [compilación de la aplicación cliente](#build-client-application) (para la plataforma concurrente), de lo contrario se producirán fallos importantes en la aplicación. - - **SpellChecker**: se utiliza para las funciones integradas de [corrección ortográfica](../FormObjects/properties_Entry.md#auto-spellcheck) y los comandos disponibles para las áreas de entrada y las áreas 4D Write Pro. - **4D Updater**: controla la [actualización automática](#what-is-a-clientserver-application) de las partes del cliente y es utilizado por el comando `SET UPDATE FOLDER` para [actualizaciones automáticas del servidor](#automatic-updating-of-server-or-single-user-applications). - **4D Qodly Pro and Data Explorer**: Includes [Qodly Studio and its web renderering features](https://developer.4d.com/qodly/) as well as the [Data Explorer](../Admin/dataExplorer.md). +- **Windows App Runtime**: Required for [Fluent UI rendering](../FormEditor/forms.md#fluent-ui-rendering) on Windows. ## Página licencias y certificados diff --git a/i18n/es/docusaurus-plugin-content-docs/current/Events/onDoubleClicked.md b/i18n/es/docusaurus-plugin-content-docs/current/Events/onDoubleClicked.md index c8fdc7d2099468..09e863e85c34b8 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/Events/onDoubleClicked.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/Events/onDoubleClicked.md @@ -7,6 +7,12 @@ title: On Double Clicked | ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ | | 13 | [Área 4D View Pro](FormObjects/viewProArea_overview.md) - [Área 4D Write Pro](FormObjects/writeProArea_overview.md) - [Botón](FormObjects/button_overview.md) - [Rejilla de botones](FormObjects/buttonGrid_overview.md) - [Casilla de verificación](FormObjects/checkbox_overview.md) - Formulario - [Lista jerárquica](FormObjects/list_overview.md) - [Entrada](FormObjects/input_overview.md) - [Lista](FormObjects/listbox_overview.md) - [Columna de lista](FormObjects/listbox_overview.md#list-box-columns) - [Botón con imagen](FormObjects/pictureButton_overview.md) - [Área de Plug-in](FormObjects/pluginArea_overview.md) - [Indicadores de progreso](FormObjects/progressIndicator.md) - [Botón de opción](FormObjects/radio_overview.md) - [Regla](FormObjects/ruler.md) - [Selector](FormObjects/spinner.md) - [Separador](FormObjects/splitters.md) - [Pasos](FormObjects/stepper.md) | Se ha efectuado un doble clic en un objeto | +:::note + +The `On Double Clicked` event is not supported with [**steppers**](FormObjects/stepper.md) on Windows when [Fluent UI](../FormEditor/forms.md#fluent-ui-rendering) rendering theme is enabled. + +::: + ## Descripción El evento `On Double Clicked` se genera cuando el usuario hace doble clic en un objeto. El tiempo máximo de separación de un doble clic se define en las preferencias del sistema. diff --git a/i18n/es/docusaurus-plugin-content-docs/current/FormEditor/createStylesheet.md b/i18n/es/docusaurus-plugin-content-docs/current/FormEditor/createStylesheet.md index 292d49e5de368c..bf60e95f693e7d 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/FormEditor/createStylesheet.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/FormEditor/createStylesheet.md @@ -64,7 +64,7 @@ Especifique el tipo de objeto, luego entre llaves, declare el estilo o los estil En el siguiente ejemplo, todos los objetos del tipo *botón* mostrarán el texto en la fuente Helvetica Neue, con un tamaño de 20 píxeles: -``` +```css button { font-family: Helvetica Neue; font-size: 20px; @@ -73,7 +73,7 @@ button { Para aplicar el mismo estilo a varios tipos de objetos, especifique los tipos de objetos separados por un "," y luego, entre llaves, declare el o los estilos a aplicar: -``` +```css text, input { text-align: left; stroke: grey; @@ -94,7 +94,7 @@ El nombre del objeto corresponde a la propiedad JSON [object name](../FormObject En el siguiente ejemplo, el texto del objeto con el nombre "okButton" se mostrará en la fuente Helvetica Neue, con un tamaño de 20 píxeles: -``` +```css #okButton { font-family: Helvetica Neue; font-size: 20px; @@ -109,7 +109,7 @@ Puede especificar las clases a utilizar con un caracter "." seguido del nombre d En el siguiente ejemplo, el texto de todos los objetos con el nombre de la clase `okButtons` se mostrará en la fuente Helvetica Neue, con un tamaño de 20 píxeles, alineado al centro: -``` +```css .okButtons { font-family: Helvetica Neue; font-size: 20px; @@ -119,7 +119,7 @@ En el siguiente ejemplo, el texto de todos los objetos con el nombre de la clase Para indicar que un estilo debe aplicarse sólo a los objetos de un tipo determinado, especifique el tipo seguido de "." y el nombre de la clase, y luego, entre llaves, declare el estilo o los estilos a aplicar. -``` +```css text.center { text-align: center; stroke: red; @@ -128,7 +128,7 @@ text.center { En la descripción del formulario 4D, se asocia un nombre de clase a un objeto mediante el atributo [CSS Class](../FormObjects/properties_Object.md#css-class). Este atributo contiene uno o varios nombres de clase, separados por un espacio: -``` +```css class: "okButtons important" ``` @@ -140,7 +140,7 @@ Indique que un estilo debe aplicarse a todos los objetos formulario con el cará En el siguiente ejemplo, todos los objetos tendrán un fondo gris: -``` +```css * { fill: gray; } @@ -165,7 +165,7 @@ Especifique el atributo entre corchetes y, a continuación, entre llaves, declar Todos los objetos con el atributo `borderStyle` tendrán líneas moradas: -``` +```css [borderStyle] { stroke: purple; @@ -174,7 +174,7 @@ Todos los objetos con el atributo `borderStyle` tendrán líneas moradas: Todos los objetos de tipo texto con un atributo texto cuyo valor sea "Hello" tendrán letras azules: -``` +```css text[text=Hello] { stroke: blue; @@ -183,7 +183,7 @@ text[text=Hello] Todos los objetos con un atributo texto cuyo valor sea "Hello" tendrán letras azules: -``` +```css [text~=Hello] { stroke: blue; @@ -193,7 +193,7 @@ Todos los objetos con un atributo texto cuyo valor sea "Hello" tendrán letras a Todos los objetos de tipo texto con un atributo texto cuyo valor comience por "Hello" tendrán letras azules: -``` +```css text[text|=Hello] { stroke: yellow; @@ -206,26 +206,28 @@ text[text|=Hello] ### Consultas de medios -Las consultas de medios se utilizan para aplicar esquemas de color a las aplicaciones. +Media queries allow you to apply styles based on specific conditions. 4D supports media queries for **color schemes** and **platform themes**. Una consulta de medios está formada por características y valores de medios (por ejemplo, `:`). -Funciones de medios disponibles: +Available media features and values: -- `prefers-color-scheme` +| Media features | Valores | Descripción | +| ---------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `prefers-color-scheme` |
  • **light**
  • **dark**
  • | Color scheme to use | +| `form-theme` |
  • **fluent-ui**
  • **win-classic**
  • | Platform theme to use (Windows). For more information on **fluent-ui** theme, refer to [this section](./forms.md#fluent-ui-rendering) | -Expresiones de funcionalidades de medios disponibles: +:::note -- **light**
    Para utilizar un esquema de luz -- **oscuro**
    Para utilizar un esquema oscuro +Color schemes are not supported with **win-classic** platform theme. -> Los esquemas de color sólo son soportados en macOS. +::: -##### Ejemplo +##### Ejemplo 1 Este CSS define una combinación de colores para el texto y el fondo del texto en el esquema claro (por defecto) y otra combinación cuando se selecciona el esquema oscuro: -``` +```css @media (prefers-color-scheme: light) { .textScheme { fill: LightGrey; @@ -241,6 +243,39 @@ Este CSS define una combinación de colores para el texto y el fondo del texto e } ``` +##### Ejemplo 2 + +```css +/* Default style (all themes and modes) */ +.textLabel { + fontFamily: "Segoe UI"; +} + +/* Fluent UI theme*/ +@media (form-theme: fluent-ui) { + .textLabel { + stroke: #2A2A2A; + fontSize: 14px; + } + + /* dark mode */ + @media (prefers-color-scheme: dark) { + .textLabel { + stroke: #E0E0E0; + } + } +} + +/* Windows classic theme */ +@media (form-theme: win-classic) { + .textLabel { + stroke: #000000; + fontSize: 12px; + } +} + +``` + ### Atributos de objetos La mayoría de los atributos del objeto formulario pueden ser definidos dentro de una hoja de estilo, excepto los siguientes atributos: @@ -270,13 +305,17 @@ Los atributos listados a continuación pueden aceptar el nombre 4D o el nombre C | `textDecoration` | `text-decoration` | | `verticalAlign` | `vertical-align` | -> Los valores específicos 4D (*por ejemplo*, `hundido`) no se soportan cuando se utilizan nombres de atributos CSS. +:::note + +Los valores específicos 4D (*por ejemplo*, `hundido`) no se soportan cuando se utilizan nombres de atributos CSS. + +::: #### Valores de atributos específicos - Para los atributos `icon`, `picture` y `customBackgroundPicture` que soportan una ruta a una imagen, la sintaxis es: -``` +```css icon: url("/RESOURCES/Images/Buttons/edit.png"); /* ruta absoluta */ icon: url("edit.png"); /* ruta relativa al archivo del formulario */ ``` @@ -323,13 +362,13 @@ Durante la ejecución, 4D prioriza automáticamente las hojas de estilo en el si - un archivo para ambas plataformas: -``` +```json "css": "" ``` - o una lista de archivos para ambas plataformas: -``` +```json "css": [ "", "" @@ -338,17 +377,21 @@ Durante la ejecución, 4D prioriza automáticamente las hojas de estilo en el si - o una lista de archivos por plataforma: -``` +```json "css": [ {"path": "", "media": "mac"}, {"path": "", "media": "windows"}, ], ``` -> Las rutas de los archivos pueden ser relativas o absolutas. -> -> - Las rutas relativas se resuelven en relación con el archivo de descripción del formulario JSON. -> - Por razones de seguridad, sólo se aceptan las rutas del sistema de archivos para las rutas absolutas. (*e.g.*, "/RESOURCES", "/DATA") +:::note + +Las rutas de los archivos pueden ser relativas o absolutas. + +- Las rutas relativas se resuelven en relación con el archivo de descripción del formulario JSON. +- For security reasons, only [filesystem paths](../Concepts/paths.md#filesystem-pathnames) are accepted for absolute paths (*e.g.*, "/RESOURCES", "/DATA"). + +::: ## Ver también diff --git a/i18n/es/docusaurus-plugin-content-docs/current/FormEditor/pictures.md b/i18n/es/docusaurus-plugin-content-docs/current/FormEditor/pictures.md index 3a4324f0b77b30..1a47728cdc7d29 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/FormEditor/pictures.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/FormEditor/pictures.md @@ -64,7 +64,7 @@ Aunque 4D prioriza automáticamente la resolución más alta, existen, sin embar *(\*) Generalmente, macOS = 72 dpi, Windows = 96 dpi* -## Imágenes en modo oscuro (sólo en macOS) +## Dark mode pictures Puede definir imágenes e iconos específicos que se utilizarán en lugar de las imágenes estándar cuando [los formularios utilicen el esquema oscuro](properties_FormProperties.md#color-scheme). @@ -77,6 +77,12 @@ En tiempo de ejecución, 4D cargará automáticamente la imagen clara u oscura s ![](../assets/en/FormEditor/darkicon.png) +:::note + +The dark mode is not available on Windows with [Classic theme](../settings/interface.md#use-fluent-ui-on-windows). + +::: + ## Coordenadas del ratón en una imagen 4D le permite recuperar las coordenadas locales del ratón en un [objeto de entrada](FormObjects/input_overview.md) asociado con una [expresión de imagen](FormObjects/properties_Object.md#expression-type), en caso de un clic o un desplazamiento, incluso si se ha aplicado un desplazamiento o zoom a la imagen. Este mecanismo, similar al de un mapa de imágenes, puede utilizarse, por ejemplo, para manejar barras de botones desplazables o la interfaz de un software de cartografía. diff --git a/i18n/es/docusaurus-plugin-content-docs/current/FormEditor/properties_FormProperties.md b/i18n/es/docusaurus-plugin-content-docs/current/FormEditor/properties_FormProperties.md index 4e1333dc27cf7a..06a35f3ccd399d 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/FormEditor/properties_FormProperties.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/FormEditor/properties_FormProperties.md @@ -7,9 +7,10 @@ title: Propiedades de los formularios ## Esquema de colores -> La propiedad de esquema de color sólo se aplica en macOS. +> Color scheme property is only applied on macOS and [Windows with Fluent UI theme](../settings/interface.md#use-fluent-ui-on-windows). +> ). -Esta propiedad define el esquema de colores para el formulario. Esta propiedad define el esquema de colores para el formulario. Esto se puede cambiar para el formulario a una de las dos opciones siguientes: +Esta propiedad define el esquema de colores para el formulario. By default when the property is not set, the value for a color scheme is **inherited** (the form uses the scheme defined at the [application level](../commands-legacy/get-application-color-scheme.md)). Esto se puede cambiar para el formulario a una de las dos opciones siguientes: - dark -- texto claro sobre fondo oscuro - light - dark text on a light background @@ -79,6 +80,32 @@ El nombre del formulario está definido por el nombre de la carpeta que contiene --- +## Form Theme on Windows + +This property allows you to select explicitely the interface theme you wish to be used when the form is executed on Windows. By default, forms inherit from the [global project theme settings](../settings/interface.md) but you can override this setting for each form. + +Valores disponibles: + +- **Inherited** (default): inherits from the project theme +- **Classic**: use the Windows classic interface theme +- **Fluent UI**: use the [Fluent UI](../FormEditor/forms.md#fluent-ui-rendering) interface theme ([when available](../FormEditor/forms.md#requirements)). + +:::note + +This property is ignored on macOS. + +::: + +#### Gramática JSON + +| Nombre | Tipos de datos | Valores posibles | +| -------- | -------------- | ---------------- | +| fluentUI | boolean | true, false | + +If the property is not defined, the "inherited" option is selected. + +--- + ## Tipo de formulario El tipo de formulario, *es decir,* su destino, define las características que tendrá el formulario. Por ejemplo, [marcadores](properties_Markers.md) sólo puede definirse para formularios tabla listados (de salida). @@ -211,4 +238,3 @@ Puede utilizar referencias dinámicas para definir los nombres de ventana de los | ----------- | -------------- | -------------------------------------------------------- | | windowTitle | string | El nombre de la ventana como texto plano o de referencia | - diff --git a/i18n/es/docusaurus-plugin-content-docs/current/FormEditor/properties_JSONref.md b/i18n/es/docusaurus-plugin-content-docs/current/FormEditor/properties_JSONref.md index 84044f2f322338..3562ca4b97c468 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/FormEditor/properties_JSONref.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/FormEditor/properties_JSONref.md @@ -22,6 +22,7 @@ Esta página ofrece una lista completa de todas las propiedades de los formulari | [`entryOrder`](formEditor.md#data-entry-order) | El orden en el cual los objetos activos son seleccionados cuando la tecla **Tab** o la tecla **Retorno de carro** se utilizan en un formulario de entrada | Colección de nombres de objetos 4D Form | | [`events`](Events/overview.md) | Lista de todos los eventos seleccionados para el objeto o el formulario | Colección de nombres de eventos, por ejemplo ["onClick", "onDataChange"...]. | | **f** | | | +| [`fluentUI`](properties_FormProperties.md#fluentui) | Use fluent UI rendering for the form on Windows | true, false | | [`formSizeAnchor`](./properties_FormSize.md#size-based-on) | Nombre del objeto cuya posición determina el tamaño del formulario. (longitud mínima: 1) | Nombre de un objeto 4D | | **h** | | | | [`height`](properties_FormSize.md#height) | Altura del formulario | mínimo: 0 | @@ -51,4 +52,4 @@ Esta página ofrece una lista completa de todas las propiedades de los formulari | [`windowMinWidth`](properties_WindowSize.md#maximum-width-minimum-width) | El menor ancho permitido de la ventana de formulario | mínimo: 0 | | [`windowSizingX`](properties_WindowSize.md#fixed-width) | Dimensionamiento vertical de la ventana del formulario | "fixed", "variable" | | [`windowSizingY`](properties_WindowSize.md#fixed-height) | Dimensionamiento horizontal de la ventana del formulario | "fixed", "variable" | -| [`windowTitle`](properties_FormProperties.md#window-title) | Designa el título de una ventana de formulario | Un nombre para la ventana de formulario | \ No newline at end of file +| [`windowTitle`](properties_FormProperties.md#window-title) | Designa el título de una ventana de formulario | Un nombre para la ventana de formulario | diff --git a/i18n/es/docusaurus-plugin-content-docs/current/FormObjects/button_overview.md b/i18n/es/docusaurus-plugin-content-docs/current/FormObjects/button_overview.md index 1e187335df4aab..3f54e1da90792c 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/FormObjects/button_overview.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/FormObjects/button_overview.md @@ -277,11 +277,13 @@ El estilo del botón Ayuda puede utilizarse para mostrar un botón de ayuda est ### Círculo -El estilo de botón Círculo aparece como un botón sistema circular. Este estilo de botón está diseñado para macOS. +El estilo de botón Círculo aparece como un botón sistema circular. ![](../assets/en/FormObjects/button_circleM.png) -En Windows, es idéntico al estilo "Ninguno" (no se tiene en cuenta el círculo del fondo). +This button style is supported on macOS and [Windows Fluent UI theme](../FormEditor/forms.md#enabling-the-fluent-ui-rendering). + +On Windows Classic UI theme, it is identical to the “None” style (the circle in the background is not taken into account). #### Ejemplo JSON: diff --git a/i18n/es/docusaurus-plugin-content-docs/current/FormObjects/properties_Appearance.md b/i18n/es/docusaurus-plugin-content-docs/current/FormObjects/properties_Appearance.md index 7a9302fe6e5cb3..1c40f12efba686 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/FormObjects/properties_Appearance.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/FormObjects/properties_Appearance.md @@ -35,6 +35,12 @@ En Windows, el concepto de "opción recomendada" no está soportado: sólo el bo Durante la ejecución, un campo o toda área introducible es delimitada por un rectángulo de selección cuando tiene el foco (a través de la tecla Tab o un simple clic). Puede ocultar este rectángulo activando esta propiedad. Ocultar el rectángulo de enfoque puede ser útil en el caso de interfaces específicas. +:::note + +The focus rectangle is only available on macOS and (for text and picture [inputs](input_overview.md)) on Windows with [Fluent UI](../FormEditor/forms.md#fluent-ui-rendering) enabled. It is not supported on Windows classic UI. + +::: + #### Gramática JSON | Nombre | Tipos de datos | Valores posibles | diff --git a/i18n/es/docusaurus-plugin-content-docs/current/Menus/sdi.md b/i18n/es/docusaurus-plugin-content-docs/current/Menus/sdi.md index 6019b3f1a6316f..19ef610867062b 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/Menus/sdi.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/Menus/sdi.md @@ -92,6 +92,6 @@ Aunque es manejado de forma transparente por 4D, el modo SDI introduce pequeñas :::info -Puede utilizar el comando [**Application info**](../commands-legacy/application-info.md) para saber el modo de ejecución actual en Windows. +Puede utilizar el comando [**Application info**](../commands/application-info.md) para saber el modo de ejecución actual en Windows. ::: \ No newline at end of file diff --git a/i18n/es/docusaurus-plugin-content-docs/current/WebServer/http-request-handler.md b/i18n/es/docusaurus-plugin-content-docs/current/WebServer/http-request-handler.md index 7a727201020ac8..05c10d7861bba0 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/WebServer/http-request-handler.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/WebServer/http-request-handler.md @@ -22,11 +22,14 @@ Los manejadores de peticiones HTTP personalizadas están soportados en el siguie - las [sesiones escalables](./sessions.md#enabling-web-sessions) o [sin sesiones](../settings/web.md#no-sessions) están activadas, - un servidor web ejecutado localmente por 4D o 4D Server, incluyendo aquellos [ejecutados por componentes](./webServerObject.md). -:::warning +### Authentication and Privileges -Por razones de seguridad, el acceso externo al datastore puede ser desautorizado en 4D. Necesita configurar los [privilegios ORDA](../ORDA/privileges.md) para permitir peticiones HTTP. +Since HTTP Request handler functions are called from standard web requests (they do not contain `/rest/xxx` pattern like REST requests), they are not subject to the [**Force login**](../REST/authUsers.md#force-login-mode) rules. It means that they can be executed without prior authentication, i.e. without a call to [`setPrivileges()`](../API/SessionClass.md#setprivileges) on the session, in which case they will be executed in a *guest* session. -::: +However, these functions need to have appropriate **permissions**, like all requests executed from web processes. When the handler function is called, the **privileges** of its web session must allow the code to run properly. Any other resources accessed within the code (data, other functions...) also need to be allowed by permissions. In [*restricted mode by default*](../ORDA/privileges.md#restriction-modes), you must configure the privileges: + +- If a HTTP Request handler can open a new, unauthenticated session (which is the case for example when your application provides **deep linking** feature), you need to make sure that the *guest* privilege is allowed to execute the handler function and access all subsequent resources. +- If a HTTP Request handler function can be executed within an already authenticated session, you need to make sure the user session is allowed to execute the handler function and access all subsequent resources. Note that this can also happen with deep linking if you copy/paste the link into a browser where you are already authenticated for the application and the session is still active (provided that the 4D session cookie is *Lax*). ## Cómo definir los gestores diff --git a/i18n/es/docusaurus-plugin-content-docs/current/assets/en/FormObjects/fluentui-setting.png b/i18n/es/docusaurus-plugin-content-docs/current/assets/en/FormObjects/fluentui-setting.png index e8c5e02f62431f..4957d89dec8ac3 100644 Binary files a/i18n/es/docusaurus-plugin-content-docs/current/assets/en/FormObjects/fluentui-setting.png and b/i18n/es/docusaurus-plugin-content-docs/current/assets/en/FormObjects/fluentui-setting.png differ diff --git a/i18n/es/docusaurus-plugin-content-docs/current/commands/command-index.md b/i18n/es/docusaurus-plugin-content-docs/current/commands/command-index.md index 3bd6a376e57d1e..f429763ea9e63d 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/commands/command-index.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/commands/command-index.md @@ -35,7 +35,7 @@ title: Comandos por nombre [`APPEND TO ARRAY`](../commands-legacy/append-to-array.md)
    [`APPEND TO LIST`](../commands-legacy/append-to-list.md)
    [`Application file`](../commands-legacy/application-file.md)
    -[`Application info`](../commands-legacy/application-info.md)
    +[`Application info`](application-info.md)
    [`Application type`](../commands-legacy/application-type.md)
    [`Application version`](../commands-legacy/application-version.md)
    [`APPLY TO SELECTION`](../commands-legacy/apply-to-selection.md)
    @@ -337,6 +337,7 @@ title: Comandos por nombre [`FORM SET OUTPUT`](../commands-legacy/form-set-output.md)
    [`FORM SET SIZE`](../commands-legacy/form-set-size.md)
    [`FORM SET VERTICAL RESIZING`](../commands-legacy/form-set-vertical-resizing.md)
    +[`FORM theme`](form-theme.md) **new 4D 21 R2**
    [`FORM UNLOAD`](../commands-legacy/form-unload.md)
    [`Formula`](formula.md)
    [`Formula from string`](formula-from-string.md)
    diff --git a/i18n/es/docusaurus-plugin-content-docs/current/commands/theme/4D_Environment.md b/i18n/es/docusaurus-plugin-content-docs/current/commands/theme/4D_Environment.md index 09c792b14d33ed..f29b53d8434aad 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/commands/theme/4D_Environment.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/commands/theme/4D_Environment.md @@ -8,7 +8,7 @@ slug: /commands/theme/4D-Environment | | | --------------------------------------------------------------------------------------------------------------------------------------------- | | [](../../commands-legacy/application-file.md)
    | -| [](../../commands-legacy/application-info.md)
    | +| [](../../commands/application-info.md)
    | | [](../../commands-legacy/application-type.md)
    | | [](../../commands-legacy/application-version.md)
    | | [](../../commands-legacy/build-application.md)
    | diff --git a/i18n/es/docusaurus-plugin-content-docs/current/commands/theme/Forms.md b/i18n/es/docusaurus-plugin-content-docs/current/commands/theme/Forms.md index 4eb3a83ab82b46..34b23d18d902f9 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/commands/theme/Forms.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/commands/theme/Forms.md @@ -31,3 +31,5 @@ slug: /commands/theme/Forms | [](../../commands-legacy/form-set-size.md)
    | | [](../../commands-legacy/form-set-vertical-resizing.md)
    | | [](../../commands-legacy/form-unload.md)
    | +| [](../../commands/form-windows-theme.md)
    | + diff --git a/i18n/es/docusaurus-plugin-content-docs/current/commands/theme/Web_Server.md b/i18n/es/docusaurus-plugin-content-docs/current/commands/theme/Web_Server.md index 3a6f378477ddc9..f6a7f7d0fc2c9e 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/commands/theme/Web_Server.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/commands/theme/Web_Server.md @@ -7,8 +7,8 @@ slug: /commands/theme/Web-Server | | | --------------------------------------------------------------------------------------------------------------------------------------- | -| [](../../commands/web-event.md)
    | -| [](../../commands/web-form.md)
    | +| [](../../commands/web-event.md)
    | +| [](../../commands/web-form.md)
    | | [](../../commands-legacy/web-get-body-part.md)
    | | [](../../commands-legacy/web-get-body-part-count.md)
    | | [](../../commands-legacy/web-get-current-session-id.md)
    | diff --git a/i18n/es/docusaurus-plugin-content-docs/current/settings/client-server.md b/i18n/es/docusaurus-plugin-content-docs/current/settings/client-server.md index a2115ea9a211c6..137cf60e3bef55 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/settings/client-server.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/settings/client-server.md @@ -74,7 +74,7 @@ Esta caja desplegable contiene 3 opciones de capa de red a elegir entre: **legac **Notas**: - Al seleccionar esta opción, se anula la opción Utilizar capa de red heredada en caso de que se haya definido mediante el comando [SET DATABASE PARAMETER](../commands-legacy/set-database-parameter.md). - - Puede saber si una aplicación 4D se está ejecutando con una capa de red QUIC utilizando el comando [Application info](../commands-legacy/application-info.md). + - Puede saber si una aplicación 4D se está ejecutando con una capa de red QUIC utilizando el comando [Application info](../commands/application-info.md). - Dado que QUIC utiliza el protocolo UDP, asegúrese de que UDP está permitido en la configuración de seguridad de su red. - QUIC se conecta automáticamente al puerto 19813 tanto para el servidor de aplicaciones como para el servidor DB4D. - Cuando se selecciona la opción de capa QUIC: diff --git a/i18n/es/docusaurus-plugin-content-docs/current/settings/interface.md b/i18n/es/docusaurus-plugin-content-docs/current/settings/interface.md index ee3a539cd2cf6c..f53a6e51d69db9 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/settings/interface.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/settings/interface.md @@ -35,7 +35,7 @@ Puede definir la [frecuencia de escritura de la caché](database.md#memory-page) - **Progreso de la impresión**: permite, durante la impresión, activar o desactivar la visualización de la caja de diálogo de progreso de la impresión. -- **Usar modo SDI en Windows**: cuando esta opción está marcada, 4D habilita automáticamente el [modo SDI (Single-Document Interface)](../Menus/sdi.md) en su aplicación cuando se ejecuta en un [contexto soportado](../Menus/sdi.md#sdi-mode-availability). Al seleccionar esta opción, en Windows el menú **Ejecutar** de la barra de menú de 4D le permite seleccionar el modo en el que desea probar la aplicación: +- **Use SDI mode on Windows**: When this option is checked, 4D enables automatically the [SDI mode (Single-Document Interface)](../Menus/sdi.md) in your application when executed in a [supported context](../Menus/sdi.md#sdi-mode-availability). Al seleccionar esta opción, en Windows el menú **Ejecutar** de la barra de menú de 4D le permite seleccionar el modo en el que desea probar la aplicación: ![](../assets/en/settings/sdi-mdi.png) @@ -45,11 +45,11 @@ Esta opción puede seleccionarse en macOS, pero se ignorará cuando la aplicaci ::: -### Apariencia +### Esquema de colores Este menú permite seleccionar la paleta de colores que se utilizará en la aplicación principal. Una paleta de colores define un conjunto global de colores de interfaz para los textos, los fondos, las ventanas, etc., utilizados en sus formularios. -> Esta opción sólo funciona en macOS. En Windows, se utiliza siempre el esquema "Light". +> This option is ignored on Windows with [Classic theme](#use-fluent-ui-on-windows). In this context, the "Light" scheme is always used. Los siguientes esquemas están disponibles: @@ -66,6 +66,16 @@ El esquema de aplicación principal se aplicará a los formularios por defecto. - por el comando [SET APPLICATION COLOR SCHEME](../commands-legacy/set-application-color-scheme.md) a nivel de la sesión de trabajo; - utilizando la propiedad de formulario [Color Scheme](../FormEditor/propertiesForm.html#color-scheme) en cada nivel de formulario (nivel de prioridad más alto). **Nota:** cuando se imprimen, los formularios utilizan siempre la paleta "Light". +### Use Fluent UI on Windows + +When this option is checked, 4D will automatically use the [Fluent UI rendering theme](../FormEditor/forms.md#fluent-ui-rendering) for all your forms on Windows, [when available](../FormEditor/forms.md#requirements). When it is unchecked, the Windows Classic UI rendering theme will be used by default. + +> This option is only used on Windows, it has no effect on macOS. + +This project setting can be overriden at form level by using the [Widget appearance](../FormEditor/propertiesForm.html#widget-appearance) form property (highest priority level). + +> Rendering themes can be handled using CSS. Para más información, consulte la sección [Media Queries](../FormEditor/createStylesheet.md#media-queries). + ## Atajos El área de Atajos directos sirve para ver y modificar los atajos por defecto para tres operaciones básicas del formulario 4D en sus aplicaciones de escritorio. Estos atajos son idénticos para ambas plataformas. Los iconos de las teclas indican las teclas correspondientes a Windows y a macOS. diff --git a/i18n/es/docusaurus-plugin-content-docs/version-21/API/WebFormClass.md b/i18n/es/docusaurus-plugin-content-docs/version-21/API/WebFormClass.md index bb60aad3a856c0..1f5c755239a863 100644 --- a/i18n/es/docusaurus-plugin-content-docs/version-21/API/WebFormClass.md +++ b/i18n/es/docusaurus-plugin-content-docs/version-21/API/WebFormClass.md @@ -18,7 +18,7 @@ La clase `WebForm` contiene funciones y propiedades que permiten manejar sus com | | | ------------------------------------------------------------------------------------------------------------------------------- | -| [](#componentname)
    | +| [](#componentname)
    | | [](#disablestate)
    | | [](#enablestate)
    | | [](#seterror)
    | @@ -27,11 +27,11 @@ La clase `WebForm` contiene funciones y propiedades que permiten manejar sus com ### *.componentName* -***.componentName*** : [4D.WebFormItem](WebFormItemClass.md) +***.componentName*** : [4D.WebFormItem](WebFormItemClass.md) #### Descripción -Los componentes de las páginas web son objetos que están disponibles directamente como propiedades de estas páginas web. +The components of web pages are objects that are available directly as properties of these web pages. Los objetos devueltos son de la clase [`4D.WebFormItem`](WebFormItemClass.md). Estos objetos tienen funciones que puede utilizar para gestionar sus componentes de forma dinámica. @@ -60,9 +60,9 @@ Aunque `myForm` puede no mostrar las propiedades típicas de un objeto cuando se -| Parámetros | Tipo | | Descripción | -| ---------- | ------ | :-: | ----------------------------------------------- | -| state | string | -> | Nombre del estado a desactivar de la página web | +| Parámetros | Tipo | | Descripción | +| ---------- | ---- | :-: | --------------------------------------------------- | +| state | Text | -> | Nombre del estado a desactivar en el formulario web | @@ -85,9 +85,9 @@ Para más información sobre los estados de las páginas web, consulte la secci -| Parámetros | Tipo | | Descripción | -| ---------- | ------ | :-: | ---------------------------------------------- | -| state | string | -> | Nombre del estado a activar en las páginas web | +| Parámetros | Tipo | | Descripción | +| ---------- | ---- | :-: | ------------------------------------------------ | +| state | Text | -> | Nombre del estado a activar en el formulario web | @@ -121,9 +121,9 @@ Function authenticationError() -| Parámetros | Tipo | | Descripción | -| ---------- | ------ | :-: | ------------------------------------------- | -| msg | string | -> | Mensaje de error a mostrar en la página web | +| Parámetros | Tipo | | Descripción | +| ---------- | ---- | :-: | ----------------------------------------------- | +| msg | Text | -> | Mensaje de error a mostrar en el formulario web | @@ -156,9 +156,9 @@ Si la funcionalidad [**Provide feedback**](https://developer.4d.com/qodly/4DQodl -| Parámetros | Tipo | | Descripción | -| ---------- | ------ | :-: | ------------------------------------------------- | -| msg | string | -> | Mensaje de información a mostrar en la página web | +| Parámetros | Tipo | | Descripción | +| ---------- | ---- | :-: | ----------------------------------------------------- | +| msg | Text | -> | Mensaje de información a mostrar en el formulario web | @@ -191,9 +191,9 @@ Si la funcionalidad [**Provide feedback**](https://developer.4d.com/qodly/4DQodl -| Parámetros | Tipo | | Descripción | -| ---------- | ------ | :-: | ---------------------------------------------------- | -| msg | string | -> | Mensaje de advertencia para mostrar en la página web | +| Parámetros | Tipo | | Descripción | +| ---------- | ---- | :-: | -------------------------------------------------------- | +| msg | Text | -> | Mensaje de advertencia para mostrar en el formulario web | @@ -224,4 +224,4 @@ Si la funcionalidad [**Provide feedback**](https://developer.4d.com/qodly/4DQodl [Web Form](../commands/web-form.md)
    [Web Event](../commands/web-event.md)
    -[WebFormItem class](../API/WebFormItemClass.md) \ No newline at end of file +[WebFormItem class](../API/WebFormItemClass.md) diff --git a/i18n/es/docusaurus-plugin-content-docs/version-21/WebServer/http-request-handler.md b/i18n/es/docusaurus-plugin-content-docs/version-21/WebServer/http-request-handler.md index 7a727201020ac8..05c10d7861bba0 100644 --- a/i18n/es/docusaurus-plugin-content-docs/version-21/WebServer/http-request-handler.md +++ b/i18n/es/docusaurus-plugin-content-docs/version-21/WebServer/http-request-handler.md @@ -22,11 +22,14 @@ Los manejadores de peticiones HTTP personalizadas están soportados en el siguie - las [sesiones escalables](./sessions.md#enabling-web-sessions) o [sin sesiones](../settings/web.md#no-sessions) están activadas, - un servidor web ejecutado localmente por 4D o 4D Server, incluyendo aquellos [ejecutados por componentes](./webServerObject.md). -:::warning +### Authentication and Privileges -Por razones de seguridad, el acceso externo al datastore puede ser desautorizado en 4D. Necesita configurar los [privilegios ORDA](../ORDA/privileges.md) para permitir peticiones HTTP. +Since HTTP Request handler functions are called from standard web requests (they do not contain `/rest/xxx` pattern like REST requests), they are not subject to the [**Force login**](../REST/authUsers.md#force-login-mode) rules. It means that they can be executed without prior authentication, i.e. without a call to [`setPrivileges()`](../API/SessionClass.md#setprivileges) on the session, in which case they will be executed in a *guest* session. -::: +However, these functions need to have appropriate **permissions**, like all requests executed from web processes. When the handler function is called, the **privileges** of its web session must allow the code to run properly. Any other resources accessed within the code (data, other functions...) also need to be allowed by permissions. In [*restricted mode by default*](../ORDA/privileges.md#restriction-modes), you must configure the privileges: + +- If a HTTP Request handler can open a new, unauthenticated session (which is the case for example when your application provides **deep linking** feature), you need to make sure that the *guest* privilege is allowed to execute the handler function and access all subsequent resources. +- If a HTTP Request handler function can be executed within an already authenticated session, you need to make sure the user session is allowed to execute the handler function and access all subsequent resources. Note that this can also happen with deep linking if you copy/paste the link into a browser where you are already authenticated for the application and the session is still active (provided that the 4D session cookie is *Lax*). ## Cómo definir los gestores diff --git a/i18n/es/docusaurus-plugin-content-docs/version-21/WebServer/sessions.md b/i18n/es/docusaurus-plugin-content-docs/version-21/WebServer/sessions.md index b9dcd05dae233b..2c6239099bf318 100644 --- a/i18n/es/docusaurus-plugin-content-docs/version-21/WebServer/sessions.md +++ b/i18n/es/docusaurus-plugin-content-docs/version-21/WebServer/sessions.md @@ -23,7 +23,7 @@ Las sesiones web permiten: Las sesiones web se utilizan para: - [Aplicaciones web](gettingStarted.md) enviando peticiones http (incluyendo peticiones [SOAP Web services](../commands/theme/Web_Services_Server.md) y [/4DACTION](../WebServer/httpRequests.md#4daction)), -- llamadas a la [REST API](../REST/authUsers.md), que utilizan [datastores remotos](../ORDA/remoteDatastores.md) y [formularios Qodly](qodly-studio.md). +- calls to the [REST API](../REST/authUsers.md), which are used by [remote datastores](../ORDA/remoteDatastores.md) and [Qodly pages](https://developer.4d.com/qodly/). ## Activando sesiones web {#enabling-web-sessions} diff --git a/i18n/es/docusaurus-plugin-content-docs/version-21/commands/theme/Web_Server.md b/i18n/es/docusaurus-plugin-content-docs/version-21/commands/theme/Web_Server.md index 3a6f378477ddc9..f6a7f7d0fc2c9e 100644 --- a/i18n/es/docusaurus-plugin-content-docs/version-21/commands/theme/Web_Server.md +++ b/i18n/es/docusaurus-plugin-content-docs/version-21/commands/theme/Web_Server.md @@ -7,8 +7,8 @@ slug: /commands/theme/Web-Server | | | --------------------------------------------------------------------------------------------------------------------------------------- | -| [](../../commands/web-event.md)
    | -| [](../../commands/web-form.md)
    | +| [](../../commands/web-event.md)
    | +| [](../../commands/web-form.md)
    | | [](../../commands-legacy/web-get-body-part.md)
    | | [](../../commands-legacy/web-get-body-part-count.md)
    | | [](../../commands-legacy/web-get-current-session-id.md)
    | diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/API/WebFormClass.md b/i18n/fr/docusaurus-plugin-content-docs/current/API/WebFormClass.md index fdc836640acaa1..f10f700e5d2f0a 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/API/WebFormClass.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/API/WebFormClass.md @@ -18,7 +18,7 @@ La classe `WebForm` contient des fonctions et des propriétés permettant de gé | | | ------------------------------------------------------------------------------------------------------------------------------- | -| [](#componentname)
    | +| [](#componentname)
    | | [](#disablestate)
    | | [](#enablestate)
    | | [](#seterror)
    | @@ -27,11 +27,11 @@ La classe `WebForm` contient des fonctions et des propriétés permettant de gé ### *.componentName* -***.componentName*** : [4D.WebFormItem](WebFormItemClass.md) +***.componentName*** : [4D.WebFormItem](WebFormItemClass.md) #### Description -Les composants des pages web sont des objets qui sont disponibles directement en tant que propriétés de ces pages web. +The components of web pages are objects that are available directly as properties of these web pages. Les objets retournés sont de la classe [`4D.WebFormItem`](WebFormItemClass.md). Ces objets possèdent des fonctions que vous pouvez utiliser pour gérer vos composants de manière dynamique. diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/Concepts/quick-tour.md b/i18n/fr/docusaurus-plugin-content-docs/current/Concepts/quick-tour.md index 8584151564acb5..a11d6e2f8de75e 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/Concepts/quick-tour.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/Concepts/quick-tour.md @@ -429,6 +429,6 @@ Dans l'exemple suivant, le caractère **retour chariot** (séquence d'échappeme Les conventions suivantes sont utilisées dans la documentation du langage 4D : - les caractères `{ }` (accolades) indiquent des paramètres facultatifs. Par exemple, `.delete( { option : Integer } )` signifie que le paramètre *option* peut être omis lors de l'appel de la fonction. -- la notation `{ ; ...*param* : Type}` indique un nombre illimité de paramètres du même type. Par exemple, `.concat( value : any { ;...valueN : any} ) : Collection` signifie qu'un nombre illimité de valeurs de n'importe quel type peut être transmis à la fonction. -- la notation `{ ; ...(*param* : Type ; *param2* : Type) }` indique un nombre illimité de groupes de paramètres. Par exemple, `COLLECTION TO ARRAY ( collection : Collection ; array : Array { ; propertyName : Text}{ ; ...(array : Array ; propertyName : Text) } )` signifie qu'un nombre illimité de couples de valeurs de types tableau/texte peut être passé à la commande. - le mot-clé `any` est utilisé pour les paramètres qui peuvent être de n'importe quel type (nombre, texte, booléen, date, heure, objet, collection...). +- la notation `{ ; ...*param* : Type}` indique un nombre illimité de paramètres du même type. For example, `.concat( value : any { ;...valueN : any } ) : Collection` means that an unlimited number of values of any type can be passed to the function. +- la notation `{ ; ...(*param* : Type ; *param2* : Type) }` indique un nombre illimité de groupes de paramètres. For example, `COLLECTION TO ARRAY ( collection : Collection ; array : Array {; propertyName : Text}{; ...(array : Array ; propertyName : Text) } )` means that an unlimited number of couple values of type array/text can be passed to the command. diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/Desktop/building.md b/i18n/fr/docusaurus-plugin-content-docs/current/Desktop/building.md index 0fa9a3a0c9750d..3625aa37b4c494 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/Desktop/building.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/Desktop/building.md @@ -491,13 +491,10 @@ Un module est une bibliothèque de code intégrée utilisée par 4D pour contrô Les modules optionnels suivants peuvent être désélectionnés : - **CEF**: Bibliothèque embarquée Chromium. Il est nécessaire pour exécuter les [zones Web](../FormObjects/webArea_overview.md) qui utilisent le moteur de rendu intégré et les [zones 4D View Pro](../FormObjects/viewProArea_overview.md). L'appel de ces zones lorsque le CEF est désélectionné affichera des zones vierges et/ou générera des erreurs. -- **MeCab**: Bibliothèque utilisée pour l'indexation de textes en langue japonaise (voir [ce paragraphe](../settings/database.md#support-of-mecab-japanese-version)). Si vous désélectionnez ce module, les index de texte seront reconstruits en japonais. - -> Si vous désélectionnez MeCab pour une application en langue japonaise utilisée sur des plateformes hétérogènes, assurez-vous de le désélectionner à la fois sur le build client/serveur et sur le [build de l'application cliente](#build-client-application) (pour la plate-forme concurrente), sinon des dysfonctionnements majeurs se produiront dans l'application. - - **SpellChecker**: Utilisé pour les fonctions intégrées de [vérification orthographique](../FormObjects/properties_Entry.md#auto-spellcheck) et les commandes disponibles pour les zones de saisie et les zones 4D Write Pro. - **4D Updater**: Contrôle la [mise à jour automatique](#what-is-a-clientserver-application) des parties clientes et est utilisé par la commande `SET UPDATE FOLDER` pour [les mises à jour automatiques du serveur](#automatic-updating-of-server-or-single-user - **4D Qodly Pro et Data Explorer** : Comprend [Qodly Studio et ses fonctions de rendu web](https://developer.4d.com/qodly/) ainsi que le [Data Explorer](../Admin/dataExplorer.md). +- **Windows App Runtime**: Required for [Fluent UI rendering](../FormEditor/forms.md#fluent-ui-rendering) on Windows. ## Page Licences & Certificat diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/Events/onDoubleClicked.md b/i18n/fr/docusaurus-plugin-content-docs/current/Events/onDoubleClicked.md index 4e5dc9f6a25562..740904e65b451f 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/Events/onDoubleClicked.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/Events/onDoubleClicked.md @@ -7,6 +7,12 @@ title: On Double Clicked | ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------ | | 13 | [4D View Pro Area](FormObjects/viewProArea_overview.md) - [4D Write Pro area](FormObjects/writeProArea_overview.md) - [Button](FormObjects/button_overview.md) - [Button Grid](FormObjects/buttonGrid_overview.md) - [Check Box](FormObjects/checkbox_overview.md) - Form - [Hierarchical List](FormObjects/list_overview.md) - [Input](FormObjects/input_overview.md) - [List Box](FormObjects/listbox_overview.md) - [List Box Column](FormObjects/listbox_overview.md#list-box-columns) - [Picture Button](FormObjects/pictureButton_overview.md) - [Plug-in Area](FormObjects/pluginArea_overview.md) - [Progress Indicators](FormObjects/progressIndicator.md) - [Radio Button](FormObjects/radio_overview.md) - [Ruler](FormObjects/ruler.md) - [Spinner](FormObjects/spinner.md) - [Splitter](FormObjects/splitters.md) - [Stepper](FormObjects/stepper.md) | Un double-clic a été effectué sur un objet | +:::note + +The `On Double Clicked` event is not supported with [**steppers**](FormObjects/stepper.md) on Windows when [Fluent UI](../FormEditor/forms.md#fluent-ui-rendering) rendering theme is enabled. + +::: + ## Description L'événement `On Double Clicked` est généré lorsque l'utilisateur double-clique sur un objet. La durée maximale séparant un double-clic est définie dans les préférences système. diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/FormEditor/createStylesheet.md b/i18n/fr/docusaurus-plugin-content-docs/current/FormEditor/createStylesheet.md index 86d815735c548c..9d98ed7d3073b0 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/FormEditor/createStylesheet.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/FormEditor/createStylesheet.md @@ -64,7 +64,7 @@ Spécifiez le type d'objet, puis entre accolades, déclarez le(s) style(s) à ap Dans l'exemple suivant, tous les objets du type *bouton* afficheront du texte dans la police Helvetica Neue, d'une taille de 20 pixels : -``` +```css button { font-family: Helvetica Neue; font-size: 20px; @@ -73,7 +73,7 @@ button { Pour appliquer le même style à plusieurs types d’objets, spécifiez les types d'objets séparés par une "," puis, entre accolades, déclarez le(s) style(s) à appliquer : -``` +```css text, input { text-align: left; stroke: grey; @@ -94,7 +94,7 @@ Le nom de l'objet correspond à la propriété JSON [object name](../FormObjects Dans l'exemple suivant, le texte de l'objet portant le nom "okButton" sera affiché dans la police Helvetica Neue, avec une taille de 20 pixels : -``` +```css #okButton { font-family: Helvetica Neue; font-size: 20px; @@ -109,7 +109,7 @@ Vous pouvez spécifier les classes à utiliser avec un caractère "." suivi du n Dans l'exemple suivant, le texte de tous les objets de la classe `okButtons` sera affiché dans la police Helvetica Neue, avec une taille de 20 pixels, alignée au centre : -``` +```css .okButtons { font-family: Helvetica Neue; font-size: 20px; @@ -119,7 +119,7 @@ Dans l'exemple suivant, le texte de tous les objets de la classe `okButtons` ser Pour indiquer qu'un style doit être appliqué uniquement à des objets de type différent, spécifiez le type suivi de "." et du nom de la classe, puis déclarez entre accolades le(s) style(s) à appliquer. -``` +```css text.center { text-align: center; stroke: red; @@ -128,7 +128,7 @@ text.center { Dans la description du formulaire 4D, vous associez un nom de classe à un objet à l'aide de l'attribut [CSS Class](../FormObjects/properties_Object.md#css-class). Cet attribut contient un ou plusieurs noms de "class", séparés par un espace : -``` +```css class: "okButtons important" ``` @@ -140,7 +140,7 @@ Indiquez qu'un style doit s'appliquer à tous les objets de formulaire avec le c Dans l'exemple suivant, tous les objets auront un fond gris : -``` +```css * { fill: gray; } @@ -165,7 +165,7 @@ Spécifiez l'attribut entre parenthèses, puis entre accolades, déclarez le(s) Tous les objets ayant l'attribut `borderStyle` auront des lignes violettes : -``` +```css [borderStyle] { stroke: purple; @@ -174,7 +174,7 @@ Tous les objets ayant l'attribut `borderStyle` auront des lignes violettes : Tous les objets de type texte ayant un attribut text dont la valeur est "Hello" auront des lettres bleues : -``` +```css text[text=Hello] { stroke: blue; @@ -183,7 +183,7 @@ text[text=Hello] Tous les objets ayant un attribut text dont la valeur est "Hello" auront des traits bleus : -``` +```css [text~=Hello] { stroke: blue; @@ -193,7 +193,7 @@ Tous les objets ayant un attribut text dont la valeur est "Hello" auront des tra Tous les objets de type texte ayant un attribut text dont la valeur commence par "Hello" auront des lettres jaunes : -``` +```css text[text|=Hello] { stroke: yellow; @@ -206,26 +206,28 @@ text[text|=Hello] ### Media Queries -Les Media queries sont utilisées pour appliquer des schémas de couleurs à une application. +Media queries allow you to apply styles based on specific conditions. 4D supports media queries for **color schemes** and **platform themes**. Une media query est composée d'une fonctionnalité média et d'une valeur (`:`). -Fonctionnalités média disponibles : +Available media features and values: -- `prefers-color-scheme` +| Media features | Valeurs | Description | +| ---------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `prefers-color-scheme` |
  • **light**
  • **dark**
  • | Color scheme to use | +| `form-theme` |
  • **fluent-ui**
  • **win-classic**
  • | Platform theme to use (Windows). For more information on **fluent-ui** theme, refer to [this section](./forms.md#fluent-ui-rendering) | -Expressions de fonctionnalité média disponibles : +:::note -- **light**
    Pour utiliser un schéma de couleur clair -- **dark**
    Pour utiliser un schéma de couleur sombre +Color schemes are not supported with **win-classic** platform theme. -> Les schémas de couleurs sont pris en charge sur macOS uniquement. +::: -##### Exemple +##### Exemple 1 Cette CSS définit une combinaison de couleurs pour le texte et l'arrière-plan du texte dans le schéma clair (par défaut) et une autre combinaison lorsque le schéma sombre est sélectionné : -``` +```css @media (prefers-color-scheme: light) { .textScheme { fill: LightGrey; @@ -241,6 +243,39 @@ Cette CSS définit une combinaison de couleurs pour le texte et l'arrière-plan } ``` +##### Exemple 2 + +```css +/* Default style (all themes and modes) */ +.textLabel { + fontFamily: "Segoe UI"; +} + +/* Fluent UI theme*/ +@media (form-theme: fluent-ui) { + .textLabel { + stroke: #2A2A2A; + fontSize: 14px; + } + + /* dark mode */ + @media (prefers-color-scheme: dark) { + .textLabel { + stroke: #E0E0E0; + } + } +} + +/* Windows classic theme */ +@media (form-theme: win-classic) { + .textLabel { + stroke: #000000; + fontSize: 12px; + } +} + +``` + ### Attributs d'objets La majorité des attributs d'objet formulaire peuvent être définis dans une feuille de style, à l'exception des attributs suivants : @@ -270,13 +305,17 @@ Les attributs répertoriés ci-dessous peuvent accepter le nom 4D ou le nom CSS. | `textDecoration` | `text-decoration` | | `verticalAlign` | `vertical-align` | -> Les valeurs spécifiques à 4D (*par exemple*, `sunken`) ne sont pas prises en charge lors de l'utilisation de noms d'attribut CSS. +:::note + +Les valeurs spécifiques à 4D (*par exemple*, `sunken`) ne sont pas prises en charge lors de l'utilisation de noms d'attribut CSS. + +::: #### Valeurs d'attributs spécifiques - Pour les attributs `icon`, `picture`, et `customBackgroundPicture` qui prennent en charge un chemin vers une image, la syntaxe est la suivante : -``` +```css icon: url("/RESOURCES/Images/Buttons/edit.png"); /* chemin absolu */ icon: url("edit.png"); /* chemin relatif vers le fichier du formulaire */ ``` @@ -323,13 +362,13 @@ A l'exécution, 4D hiérarchise automatiquement les feuilles de style dans l'ord - un fichier pour les deux plates-formes : -``` +```json "css": "" ``` - ou une liste de fichiers pour les deux plates-formes : -``` +```json "css": [ "", "" @@ -338,17 +377,21 @@ A l'exécution, 4D hiérarchise automatiquement les feuilles de style dans l'ord - ou une liste de fichiers par plate-forme : -``` +```json "css": [ {"path": "", "media": "mac"}, {"path": "", "media": "windows"}, ], ``` -> Les chemins de fichiers peuvent être relatifs ou absolus. -> -> - Les chemins relatifs sont résolus par rapport au fichier de description de formulaire JSON. -> - Pour des raisons de sécurité, seuls les chemins filesystem sont acceptés pour les chemins absolus. (*ex :*, "/RESOURCES", "/DATA") +:::note + +Les chemins de fichiers peuvent être relatifs ou absolus. + +- Les chemins relatifs sont résolus par rapport au fichier de description de formulaire JSON. +- For security reasons, only [filesystem paths](../Concepts/paths.md#filesystem-pathnames) are accepted for absolute paths (*e.g.*, "/RESOURCES", "/DATA"). + +::: ## Voir également diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/FormEditor/pictures.md b/i18n/fr/docusaurus-plugin-content-docs/current/FormEditor/pictures.md index 177ddd5f3c53a3..4d9912e92979e4 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/FormEditor/pictures.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/FormEditor/pictures.md @@ -64,7 +64,7 @@ Si 4D donne automatiquement la priorité à la résolution la plus élevée, il *(\*) Généralement, macOS = 72 dpi, Windows = 96 dpi* -## Images en mode sombre (macOS uniquement) +## Dark mode pictures Vous pouvez définir des images et des icônes spécifiques qui seront utilisées à la place des images standard lorsque [les formulaires utilisent le mode sombre](properties_FormProperties.md#color-scheme). @@ -77,6 +77,12 @@ Au moment de l'exécution, 4D charge automatiquement l'image en mode clair ou so ![](../assets/en/FormEditor/darkicon.png) +:::note + +The dark mode is not available on Windows with [Classic theme](../settings/interface.md#use-fluent-ui-on-windows). + +::: + ## Coordonnées de la souris dans une image 4D vous permet de récupérer les coordonnées locales de la souris dans un [objet input](FormObjects/input_overview.md) associé à une [expression image](FormObjects/properties_Object.md#expression-type), en cas de clic ou de survol, même si un défilement ou un zoom a été appliqué à l'image. Ce mécanisme, proche de celui d'une image map, peut être utilisé par exemple pour gérer les barres de bouton défilables ou bien l'interface de logiciels de cartographie. diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/FormEditor/properties_FormProperties.md b/i18n/fr/docusaurus-plugin-content-docs/current/FormEditor/properties_FormProperties.md index 528b4905d845db..ca2d6b22d2f88d 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/FormEditor/properties_FormProperties.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/FormEditor/properties_FormProperties.md @@ -7,9 +7,10 @@ title: Propriétés des formulaires ## Schéma de couleurs -> La propriété de schéma de couleurs n'est appliquée que sur macOS. +> Color scheme property is only applied on macOS and [Windows with Fluent UI theme](../settings/interface.md#use-fluent-ui-on-windows). +> ). -Cette propriété définit la palette de couleurs du formulaire. Par défaut, lorsque la propriété n'est pas définie, la valeur d'une palette de couleurs est **héritée** (le formulaire utilise la palette définie [au niveau de l'application](../commands-legacy/set-application-color-scheme.md)). Pour le formulaire, cette option peut être remplacée par l'une des deux options suivantes : +Cette propriété définit la palette de couleurs du formulaire. Par défaut, lorsque la propriété n'est pas définie, la valeur d'une palette de couleurs est **héritée** (le formulaire utilise la palette définie [au niveau de l'application](../commands-legacy/get-application-color-scheme.md)). Pour le formulaire, cette option peut être remplacée par l'une des deux options suivantes : - dark - texte clair sur fond foncé - light - texte foncé sur fond clair @@ -78,6 +79,32 @@ Le nom du formulaire est défini par le nom du dossier qui contient le fichier f --- +## Form Theme on Windows + +This property allows you to select explicitely the interface theme you wish to be used when the form is executed on Windows. By default, forms inherit from the [global project theme settings](../settings/interface.md) but you can override this setting for each form. + +Valeurs possibles : + +- **Inherited** (default): inherits from the project theme +- **Classic**: use the Windows classic interface theme +- **Fluent UI**: use the [Fluent UI](../FormEditor/forms.md#fluent-ui-rendering) interface theme ([when available](../FormEditor/forms.md#requirements)). + +:::note + +This property is ignored on macOS. + +::: + +#### Grammaire JSON + +| Nom | Type de données | Valeurs possibles | +| -------- | --------------- | ----------------- | +| fluentUI | boolean | true, false | + +If the property is not defined, the "inherited" option is selected. + +--- + ## Type de formulaire Le type de formulaire, c'est-à-dire sa destination, définit les caractéristiques qui seront disponibles pour le formulaire. Par exemple, les [taquets](properties_Markers.md) ne peuvent être définis que pour les formulaires table liste (sortie). @@ -210,4 +237,3 @@ Vous pouvez utiliser des références dynamiques pour définir les noms de fenê | ----------- | --------------- | ------------------------------------------------------------- | | windowTitle | string | Le nom de la fenêtre sous forme de texte brut ou de référence | - diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/FormEditor/properties_JSONref.md b/i18n/fr/docusaurus-plugin-content-docs/current/FormEditor/properties_JSONref.md index 4ac98f9d0a44c7..cd7533d7d2f965 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/FormEditor/properties_JSONref.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/FormEditor/properties_JSONref.md @@ -22,6 +22,7 @@ Cette page fournit une liste complète de toutes les propriétés du formulaire, | [`entryOrder`](formEditor.md#data-entry-order) | L'ordre dans lequel les objets actifs sont sélectionnés lorsque la touche **Tabulation** ou **Retour chariot** est utilisée dans un formulaire de saisie | Collection de noms d'objets 4D Form | | [`events`](Events/overview.md) | Liste de tous les événements sélectionnés pour l'objet ou le formulaire | Collection de noms d'événements, ex : ["onClick","onDataChange"...]. | | **f** | | | +| [`fluentUI`](properties_FormProperties.md#fluentui) | Use fluent UI rendering for the form on Windows | true, false | | [`formSizeAnchor`](./properties_FormSize.md#size-based-on) | Nom de l'objet dont la position détermine la taille du formulaire. (longueur minimale : 1) | Nom d'un objet 4D | | **h** | | | | [`height`](properties_FormSize.md#height) | Hauteur du formulaire | minimum : 0 | @@ -51,4 +52,4 @@ Cette page fournit une liste complète de toutes les propriétés du formulaire, | [`windowMinWidth`](properties_WindowSize.md#maximum-width-minimum-width) | La plus petite largeur autorisée de la fenêtre de formulaire | minimum : 0 | | [`windowSizingX`](properties_WindowSize.md#fixed-width) | Dimensionnement vertical de la fenêtre de formulaire | "fixed", "variable" | | [`windowSizingY`](properties_WindowSize.md#fixed-height) | Dimensionnement horizontal de la fenêtre de formulaire | "fixed", "variable" | -| [`windowTitle`](properties_FormProperties.md#window-title) | Désigne le titre d'une fenêtre de formulaire | Un nom pour la fenêtre de formulaire | \ No newline at end of file +| [`windowTitle`](properties_FormProperties.md#window-title) | Désigne le titre d'une fenêtre de formulaire | Un nom pour la fenêtre de formulaire | diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/FormObjects/button_overview.md b/i18n/fr/docusaurus-plugin-content-docs/current/FormObjects/button_overview.md index b69c3362158677..1b41c243f238e7 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/FormObjects/button_overview.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/FormObjects/button_overview.md @@ -277,11 +277,13 @@ Le style du bouton Aide peut être utilisé pour afficher un bouton d'aide syst ### Rond -Le style de bouton Rond apparaît comme un bouton système circulaire. Ce style de bouton est conçu pour macOS. +Le style de bouton Rond apparaît comme un bouton système circulaire. ![](../assets/en/FormObjects/button_circleM.png) -Sous Windows, il est identique au style «Aucun» (le cercle en arrière-plan n'est pas pris en compte). +This button style is supported on macOS and [Windows Fluent UI theme](../FormEditor/forms.md#enabling-the-fluent-ui-rendering). + +On Windows Classic UI theme, it is identical to the “None” style (the circle in the background is not taken into account). #### Exemple JSON : diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/FormObjects/properties_Appearance.md b/i18n/fr/docusaurus-plugin-content-docs/current/FormObjects/properties_Appearance.md index 3388a460a4aa3c..10c25edbe55f7d 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/FormObjects/properties_Appearance.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/FormObjects/properties_Appearance.md @@ -35,6 +35,12 @@ Sous Windows, le concept de "choix recommandé" n'est pas pris en charge : seul A l'exécution, un champ ou toute zone saisissable est délimité par un rectangle de sélection lorsqu'il a le focus (via la touche Tab ou un simple clic). Vous pouvez masquer ce rectangle en activant cette propriété. Masquer le rectangle de focus peut être utile dans le cas d'interfaces spécifiques. +:::note + +The focus rectangle is only available on macOS and (for text and picture [inputs](input_overview.md)) on Windows with [Fluent UI](../FormEditor/forms.md#fluent-ui-rendering) enabled. It is not supported on Windows classic UI. + +::: + #### Grammaire JSON | Nom | Type de données | Valeurs possibles | diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/Menus/sdi.md b/i18n/fr/docusaurus-plugin-content-docs/current/Menus/sdi.md index f8076d1c11244d..c83466787b4ac0 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/Menus/sdi.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/Menus/sdi.md @@ -92,6 +92,6 @@ Bien qu'il soit traité de manière transparente par 4D, le mode SDI introduit d :::info -Vous pouvez utiliser la commande [**Application info**](../commands-legacy/application-info.md) pour connaître le mode d'exécution courant sous Windows. +Vous pouvez utiliser la commande [**Application info**](../commands/application-info.md) pour connaître le mode d'exécution courant sous Windows. ::: \ No newline at end of file diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/WebServer/http-request-handler.md b/i18n/fr/docusaurus-plugin-content-docs/current/WebServer/http-request-handler.md index cc9ddee4b5c362..d5f398ea7217dc 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/WebServer/http-request-handler.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/WebServer/http-request-handler.md @@ -22,11 +22,14 @@ Les gestionnaires de requêtes HTTP personnalisés sont pris en charge dans le c - les [sessions extensibles](./sessions.md#enabling-web-sessions) ou [pas de sessions](../settings/web.md#no-sessions) sont activées, - un serveur web exécuté localement par 4D ou 4D Server, y compris ceux [exécutés par des composants](./webServerObject.md). -:::warning +### Authentication and Privileges -Pour des raisons de sécurité, l'accès externe au datastore peut être interdit dans 4D. Vous devez configurer les [privilèges ORDA](../ORDA/privileges.md) pour autoriser les requêtes HTTP. +Since HTTP Request handler functions are called from standard web requests (they do not contain `/rest/xxx` pattern like REST requests), they are not subject to the [**Force login**](../REST/authUsers.md#force-login-mode) rules. It means that they can be executed without prior authentication, i.e. without a call to [`setPrivileges()`](../API/SessionClass.md#setprivileges) on the session, in which case they will be executed in a *guest* session. -::: +However, these functions need to have appropriate **permissions**, like all requests executed from web processes. When the handler function is called, the **privileges** of its web session must allow the code to run properly. Any other resources accessed within the code (data, other functions...) also need to be allowed by permissions. In [*restricted mode by default*](../ORDA/privileges.md#restriction-modes), you must configure the privileges: + +- If a HTTP Request handler can open a new, unauthenticated session (which is the case for example when your application provides **deep linking** feature), you need to make sure that the *guest* privilege is allowed to execute the handler function and access all subsequent resources. +- If a HTTP Request handler function can be executed within an already authenticated session, you need to make sure the user session is allowed to execute the handler function and access all subsequent resources. Note that this can also happen with deep linking if you copy/paste the link into a browser where you are already authenticated for the application and the session is still active (provided that the 4D session cookie is *Lax*). ## Comment définir les gestionnaires diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/assets/en/FormObjects/fluentui-setting.png b/i18n/fr/docusaurus-plugin-content-docs/current/assets/en/FormObjects/fluentui-setting.png index e8c5e02f62431f..4957d89dec8ac3 100644 Binary files a/i18n/fr/docusaurus-plugin-content-docs/current/assets/en/FormObjects/fluentui-setting.png and b/i18n/fr/docusaurus-plugin-content-docs/current/assets/en/FormObjects/fluentui-setting.png differ diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/commands/command-index.md b/i18n/fr/docusaurus-plugin-content-docs/current/commands/command-index.md index b096adb49b0968..19c5d4aaea71e5 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/commands/command-index.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/commands/command-index.md @@ -35,7 +35,7 @@ title: Commandes par nom [`APPEND TO ARRAY`](../commands-legacy/append-to-array.md)
    [`APPEND TO LIST`](../commands-legacy/append-to-list.md)
    [`Application file`](../commands-legacy/application-file.md)
    -[`Application info`](../commands-legacy/application-info.md)
    +[`Application info`](application-info.md)
    [`Application type`](../commands-legacy/application-type.md)
    [`Application version`](../commands-legacy/application-version.md)
    [`APPLY TO SELECTION`](../commands-legacy/apply-to-selection.md)
    @@ -337,6 +337,7 @@ title: Commandes par nom [`FORM SET OUTPUT`](../commands-legacy/form-set-output.md)
    [`FORM SET SIZE`](../commands-legacy/form-set-size.md)
    [`FORM SET VERTICAL RESIZING`](../commands-legacy/form-set-vertical-resizing.md)
    +[`FORM theme`](form-theme.md) **new 4D 21 R2**
    [`FORM UNLOAD`](../commands-legacy/form-unload.md)
    [`Formula`](formula.md)
    [`Formula from string`](formula-from-string.md)
    diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/commands/theme/4D_Environment.md b/i18n/fr/docusaurus-plugin-content-docs/current/commands/theme/4D_Environment.md index 586da28de9eb1d..cb03ac0c063ddf 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/commands/theme/4D_Environment.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/commands/theme/4D_Environment.md @@ -8,7 +8,7 @@ slug: /commands/theme/4D-Environment | | | --------------------------------------------------------------------------------------------------------------------------------------------- | | [](../../commands-legacy/application-file.md)
    | -| [](../../commands-legacy/application-info.md)
    | +| [](../../commands/application-info.md)
    | | [](../../commands-legacy/application-type.md)
    | | [](../../commands-legacy/application-version.md)
    | | [](../../commands-legacy/build-application.md)
    | diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/commands/theme/Forms.md b/i18n/fr/docusaurus-plugin-content-docs/current/commands/theme/Forms.md index 14dfc19b415a3e..62242004fdecc1 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/commands/theme/Forms.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/commands/theme/Forms.md @@ -31,3 +31,5 @@ slug: /commands/theme/Forms | [](../../commands-legacy/form-set-size.md)
    | | [](../../commands-legacy/form-set-vertical-resizing.md)
    | | [](../../commands-legacy/form-unload.md)
    | +| [](../../commands/form-windows-theme.md)
    | + diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/commands/theme/Web_Server.md b/i18n/fr/docusaurus-plugin-content-docs/current/commands/theme/Web_Server.md index d616c373a5bca1..2bdd5934774e92 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/commands/theme/Web_Server.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/commands/theme/Web_Server.md @@ -7,8 +7,8 @@ slug: /commands/theme/Web-Server | | | --------------------------------------------------------------------------------------------------------------------------------------- | -| [](../../commands/web-event.md)
    | -| [](../../commands/web-form.md)
    | +| [](../../commands/web-event.md)
    | +| [](../../commands/web-form.md)
    | | [](../../commands-legacy/web-get-body-part.md)
    | | [](../../commands-legacy/web-get-body-part-count.md)
    | | [](../../commands-legacy/web-get-current-session-id.md)
    | diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/settings/client-server.md b/i18n/fr/docusaurus-plugin-content-docs/current/settings/client-server.md index 8203dde2a0d44e..ec97157fc7aed9 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/settings/client-server.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/settings/client-server.md @@ -74,7 +74,7 @@ Cette liste déroulante contient 3 options de couche réseau : **Historique**, * **Notes** : - La sélection de cette option remplace l'option Utiliser l'ancienne couche réseau si elle a été définie à l'aide de la commande [SET DATABASE PARAMETER](../commands-legacy/set-database-parameter.md). - - Vous pouvez savoir si une application 4D fonctionne avec une couche réseau QUIC en utilisant la commande [Application info](../commands-legacy/application-info.md). + - Vous pouvez savoir si une application 4D fonctionne avec une couche réseau QUIC en utilisant la commande [Application info](../commands/application-info.md). - Étant donné que QUIC utilise le protocole UDP, assurez-vous que l'UDP est autorisé dans les paramètres de sécurité de votre réseau. - QUIC se connecte automatiquement au port 19813 à la fois pour le serveur d'application et le serveur DB4D. - Lorsque l'option de couche QUIC est sélectionnée : diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/settings/interface.md b/i18n/fr/docusaurus-plugin-content-docs/current/settings/interface.md index 88a67bd5979b36..6e6e807ff25338 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/settings/interface.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/settings/interface.md @@ -35,7 +35,7 @@ Vous pouvez définir la [fréquence d'écriture du cache](database.md#memory-pag - **Progression de l'impression** : permet, lors de l'impression, d'activer ou de désactiver l'affichage de la boîte de dialogue de progression de l'impression. -- **Utiliser le mode SDI sous Windows** : Lorsque cette option est cochée, 4D active automatiquement le [mode SDI (Interface à document unique)](../Menus/sdi.md) dans votre application lorsqu'elle est exécutée dans un [contexte pris en charge](../Menus/sdi.md#disponibilité-du-mode-sdi). Lorsque vous sélectionnez cette option, sur Windows le menu **Exécuter** de la barre de menus 4D vous permet de sélectionner le mode dans lequel vous souhaitez tester l'application : +- **Use SDI mode on Windows**: When this option is checked, 4D enables automatically the [SDI mode (Single-Document Interface)](../Menus/sdi.md) in your application when executed in a [supported context](../Menus/sdi.md#sdi-mode-availability). Lorsque vous sélectionnez cette option, sur Windows le menu **Exécuter** de la barre de menus 4D vous permet de sélectionner le mode dans lequel vous souhaitez tester l'application : ![](../assets/en/settings/sdi-mdi.png) @@ -45,11 +45,11 @@ Cette option peut être sélectionnée sur macOS mais sera ignorée lorsque l'ap ::: -### Apparence +### Schéma de couleurs Ce menu vous permet de sélectionner la palette de couleurs à utiliser au niveau de l'application principale. Une palette de couleurs définit un ensemble global de couleurs d'interface pour les textes, les arrière-plans, les fenêtres, etc., utilisés dans vos formulaires. -> Cette option fonctionne uniquement sur macOS. Sous Windows, la palette "Light" est toujours utilisée. +> This option is ignored on Windows with [Classic theme](#use-fluent-ui-on-windows). In this context, the "Light" scheme is always used. Les palettes suivants sont disponibles : @@ -66,6 +66,16 @@ La palette d'application principale sera appliquée aux formulaires par défaut. - par la commande [SET APPLICATION COLOR SCHEME](../commands-legacy/set-application-color-scheme.md) au niveau de la session de travail ; - en utilisant la propriété de formulaire [Color Scheme](../FormEditor/propertiesForm.html#color-scheme) à chaque niveau de formulaire (niveau de priorité le plus élevé). **Note** : à l'impression, les formulaires utilisent toujours la palette "Light". +### Use Fluent UI on Windows + +When this option is checked, 4D will automatically use the [Fluent UI rendering theme](../FormEditor/forms.md#fluent-ui-rendering) for all your forms on Windows, [when available](../FormEditor/forms.md#requirements). When it is unchecked, the Windows Classic UI rendering theme will be used by default. + +> This option is only used on Windows, it has no effect on macOS. + +This project setting can be overriden at form level by using the [Widget appearance](../FormEditor/propertiesForm.html#widget-appearance) form property (highest priority level). + +> Rendering themes can be handled using CSS. Pour plus d'informations, veuillez consulter la section [Media Queries](../FormEditor/createStylesheet.md#media-queries). + ## Raccourcis La zone Raccourcis clavier permet d'afficher et de modifier les raccourcis clavier par défaut pour trois opérations de base du formulaire 4D dans vos applications desktop. Ces raccourcis clavier sont identiques pour les deux plateformes. Les icônes des touches indiquent les touches correspondant à Windows et à macOS. diff --git a/i18n/fr/docusaurus-plugin-content-docs/version-21/API/WebFormClass.md b/i18n/fr/docusaurus-plugin-content-docs/version-21/API/WebFormClass.md index 404e64bc1bcbb8..f10f700e5d2f0a 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/version-21/API/WebFormClass.md +++ b/i18n/fr/docusaurus-plugin-content-docs/version-21/API/WebFormClass.md @@ -18,7 +18,7 @@ La classe `WebForm` contient des fonctions et des propriétés permettant de gé | | | ------------------------------------------------------------------------------------------------------------------------------- | -| [](#componentname)
    | +| [](#componentname)
    | | [](#disablestate)
    | | [](#enablestate)
    | | [](#seterror)
    | @@ -27,11 +27,11 @@ La classe `WebForm` contient des fonctions et des propriétés permettant de gé ### *.componentName* -***.componentName*** : [4D.WebFormItem](WebFormItemClass.md) +***.componentName*** : [4D.WebFormItem](WebFormItemClass.md) #### Description -Les composants des pages web sont des objets qui sont disponibles directement en tant que propriétés de ces pages web. +The components of web pages are objects that are available directly as properties of these web pages. Les objets retournés sont de la classe [`4D.WebFormItem`](WebFormItemClass.md). Ces objets possèdent des fonctions que vous pouvez utiliser pour gérer vos composants de manière dynamique. @@ -60,9 +60,9 @@ Bien que `myForm` n'affiche pas les propriétés typiques de l'objet lorsqu'il e -| Paramètres | Type | | Description | -| ---------- | ------ | :-: | ------------------------------------------- | -| state | string | -> | Nom de l'état à désactiver dans la page web | +| Paramètres | Type | | Description | +| ---------- | ---- | :-: | ------------------------------------------------- | +| state | Text | -> | Nom de l'état à désactiver dans le formulaire web | @@ -85,9 +85,9 @@ Pour plus d'informations sur les états des pages web, veuillez vous référer -| Paramètres | Type | | Description | -| ---------- | ------ | :-: | ----------------------------------------- | -| state | string | -> | Nom de l'état à activer sur les pages web | +| Paramètres | Type | | Description | +| ---------- | ---- | :-: | --------------------------------------------- | +| state | Text | -> | Nom de l'état à activer sur le formulaire web | @@ -121,9 +121,9 @@ Function authenticationError() -| Paramètres | Type | | Description | -| ---------- | ------ | :-: | -------------------------------------------- | -| msg | string | -> | Message d'erreur à afficher dans la page web | +| Paramètres | Type | | Description | +| ---------- | ---- | :-: | ------------------------------------------- | +| msg | Text | -> | Message d'erreur à afficher dans le webform | @@ -156,9 +156,9 @@ Si la fonctionnalité [**Provide feedback**](https://developer.4d.com/qodly/4DQo -| Paramètres | Type | | Description | -| ---------- | ------ | :-: | ------------------------------------------------- | -| msg | string | -> | Message d'information à afficher dans la page web | +| Paramètres | Type | | Description | +| ---------- | ---- | :-: | ------------------------------------------------ | +| msg | Text | -> | Message d'information à afficher dans le webform | @@ -191,9 +191,9 @@ Si la fonctionnalité [**Provide feedback**](https://developer.4d.com/qodly/4DQo -| Paramètres | Type | | Description | -| ---------- | ------ | :-: | --------------------------------------------------- | -| msg | string | -> | Message d'avertissement à afficher dans la page web | +| Paramètres | Type | | Description | +| ---------- | ---- | :-: | -------------------------------------------------- | +| msg | Text | -> | Message d'avertissement à afficher dans le webform | @@ -224,4 +224,4 @@ Si la fonctionnalité [**Provide feedback**](https://developer.4d.com/qodly/4DQo [Web Form](../commands/web-form.md)
    [Web Event](../commands/web-event.md)
    -[WebFormItem class](../API/WebFormItemClass.md) \ No newline at end of file +[WebFormItem class](../API/WebFormItemClass.md) diff --git a/i18n/fr/docusaurus-plugin-content-docs/version-21/WebServer/http-request-handler.md b/i18n/fr/docusaurus-plugin-content-docs/version-21/WebServer/http-request-handler.md index cc9ddee4b5c362..d5f398ea7217dc 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/version-21/WebServer/http-request-handler.md +++ b/i18n/fr/docusaurus-plugin-content-docs/version-21/WebServer/http-request-handler.md @@ -22,11 +22,14 @@ Les gestionnaires de requêtes HTTP personnalisés sont pris en charge dans le c - les [sessions extensibles](./sessions.md#enabling-web-sessions) ou [pas de sessions](../settings/web.md#no-sessions) sont activées, - un serveur web exécuté localement par 4D ou 4D Server, y compris ceux [exécutés par des composants](./webServerObject.md). -:::warning +### Authentication and Privileges -Pour des raisons de sécurité, l'accès externe au datastore peut être interdit dans 4D. Vous devez configurer les [privilèges ORDA](../ORDA/privileges.md) pour autoriser les requêtes HTTP. +Since HTTP Request handler functions are called from standard web requests (they do not contain `/rest/xxx` pattern like REST requests), they are not subject to the [**Force login**](../REST/authUsers.md#force-login-mode) rules. It means that they can be executed without prior authentication, i.e. without a call to [`setPrivileges()`](../API/SessionClass.md#setprivileges) on the session, in which case they will be executed in a *guest* session. -::: +However, these functions need to have appropriate **permissions**, like all requests executed from web processes. When the handler function is called, the **privileges** of its web session must allow the code to run properly. Any other resources accessed within the code (data, other functions...) also need to be allowed by permissions. In [*restricted mode by default*](../ORDA/privileges.md#restriction-modes), you must configure the privileges: + +- If a HTTP Request handler can open a new, unauthenticated session (which is the case for example when your application provides **deep linking** feature), you need to make sure that the *guest* privilege is allowed to execute the handler function and access all subsequent resources. +- If a HTTP Request handler function can be executed within an already authenticated session, you need to make sure the user session is allowed to execute the handler function and access all subsequent resources. Note that this can also happen with deep linking if you copy/paste the link into a browser where you are already authenticated for the application and the session is still active (provided that the 4D session cookie is *Lax*). ## Comment définir les gestionnaires diff --git a/i18n/fr/docusaurus-plugin-content-docs/version-21/WebServer/sessions.md b/i18n/fr/docusaurus-plugin-content-docs/version-21/WebServer/sessions.md index 90ef958ef4ad2e..2116b7d4e2d072 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/version-21/WebServer/sessions.md +++ b/i18n/fr/docusaurus-plugin-content-docs/version-21/WebServer/sessions.md @@ -23,7 +23,7 @@ Les sessions Web permettent de : Les sessions Web sont utilisées par : - les [applications Web](gettingStarted.md) envoyant des requêtes http (y compris les [Web services SOAP](../commands/theme/Web_Services_Server.md) et les requêtes [/4DACTION](../WebServer/httpRequests.md#4daction)), -- les appels à l'[API REST](../REST/authUsers.md), qui sont effectués par les [datastores distants](../ORDA/remoteDatastores.md) et les [pages Qodly](qodly-studio.md). +- calls to the [REST API](../REST/authUsers.md), which are used by [remote datastores](../ORDA/remoteDatastores.md) and [Qodly pages](https://developer.4d.com/qodly/). ## Activation des sessions web {#enabling-web-sessions} diff --git a/i18n/fr/docusaurus-plugin-content-docs/version-21/commands/theme/Web_Server.md b/i18n/fr/docusaurus-plugin-content-docs/version-21/commands/theme/Web_Server.md index d616c373a5bca1..2bdd5934774e92 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/version-21/commands/theme/Web_Server.md +++ b/i18n/fr/docusaurus-plugin-content-docs/version-21/commands/theme/Web_Server.md @@ -7,8 +7,8 @@ slug: /commands/theme/Web-Server | | | --------------------------------------------------------------------------------------------------------------------------------------- | -| [](../../commands/web-event.md)
    | -| [](../../commands/web-form.md)
    | +| [](../../commands/web-event.md)
    | +| [](../../commands/web-form.md)
    | | [](../../commands-legacy/web-get-body-part.md)
    | | [](../../commands-legacy/web-get-body-part-count.md)
    | | [](../../commands-legacy/web-get-current-session-id.md)
    | diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/API/WebFormClass.md b/i18n/ja/docusaurus-plugin-content-docs/current/API/WebFormClass.md index ae0037247404c0..a84d9591948f4b 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/API/WebFormClass.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/API/WebFormClass.md @@ -18,7 +18,7 @@ title: WebForm | | | ------------------------------------------------------------------------------------------------------------------------------- | -| [](#componentname)
    | +| [](#componentname)
    | | [](#disablestate)
    | | [](#enablestate)
    | | [](#seterror)
    | @@ -27,11 +27,11 @@ title: WebForm ### *.componentName* -***.componentName*** : [4D.WebFormItem](WebFormItemClass.md) +***.componentName*** : [4D.WebFormItem](WebFormItemClass.md) #### 説明 -Web ページのコンポーネント (構成要素) とは、これらの Web ページのプロパティとして直接利用可能なオブジェクトです。 +The components of web pages are objects that are available directly as properties of these web pages. 返されるオブジェクトは、[`4D.WebFormItem`](WebFormItemClass.md) クラスのものです。 これらのオブジェクトは、コンポーネントを動的に管理するために使用できる関数を持っています。 diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/Concepts/quick-tour.md b/i18n/ja/docusaurus-plugin-content-docs/current/Concepts/quick-tour.md index eae2c9ac05f5b9..d8f5c18e71207c 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/Concepts/quick-tour.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/Concepts/quick-tour.md @@ -429,6 +429,6 @@ End for 4D ランゲージドキュメントでは、次の表記が使われています: - 中カッコ `{ }` は、任意のパラメーターを示します。 たとえば、`.delete( { option : Integer } )` という表記の場合、関数を呼び出す際に *option* パラメーターを省略することができます。 -- `{; ...*param* : Type}` という表記は、同じ型のパラメーターの数に制限がないことを示します。 たとえば、`.concat( value : any { ;...valueN : Text } ) : Collection` という表記の場合、テキスト型の引数を数に制限なく関数に渡すことができます。 -- `{; ...(*param* : Type ; *param2* : Type) }` という表記は、グループでのパラメーターの数に制限がないことを示します。 例えば、`COLLECTION TO ARRAY ( collection : Collection ; array : Array {; propertyName : Text}{; ...(array : Array ; propertyName : Text) } )` という表記は、値またはテキスト型配列のペアを無制限にコマンドに渡すことができるということを意味します。 - `any` キーワードは、あらゆる型(数値、テキスト、ブール、日付、時間、オブジェクト、コレクション、など)が可能な引数に対して使用されます。 +- `{; ...*param* : Type}` という表記は、同じ型のパラメーターの数に制限がないことを示します。 For example, `.concat( value : any { ;...valueN : any } ) : Collection` means that an unlimited number of values of any type can be passed to the function. +- `{; ...(*param* : Type ; *param2* : Type) }` という表記は、グループでのパラメーターの数に制限がないことを示します。 For example, `COLLECTION TO ARRAY ( collection : Collection ; array : Array {; propertyName : Text}{; ...(array : Array ; propertyName : Text) } )` means that an unlimited number of couple values of type array/text can be passed to the command. diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/Desktop/building.md b/i18n/ja/docusaurus-plugin-content-docs/current/Desktop/building.md index 956766d5a1f97d..c9ecc3c4f70b5b 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/Desktop/building.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/Desktop/building.md @@ -491,13 +491,10 @@ Windows用サーバーアプリケーションのビルドに使用される App 以下の任意モジュールは、選択を解除することができます: - **CEF**: Chromium Embedded Framework ライブラリ。 埋め込みWebレンダリングエンジンを使用する [Webエリア](../FormObjects/webArea_overview.md) や、[4D View Pro エリア](../FormObjects/viewProArea_overview.md) を実行する際に必要です。 CEF が選択されていない状態でこれらのエリアを呼び出すと、空白が表示されたり、エラーが発生したりします。 -- **MeCab**: 日本語のテキストインデックスに使用されるライブラリです ([Mecab のサポート (日本語版)](../settings/database.md#mecab-のサポート-日本語版) 参照)。 このモジュールの選択を解除すると、テキストインデックスが日本語で再構築されます。 - -> 異なるプラットフォームで使用する日本語のアプリケーションで MeCab の選択を解除する場合、必ず、クライアント/サーバーのビルドと [クライアントアプリケーションをビルド](#ライアントアプリケーションをビルド) (実行中のOS用) の両方で選択を解除しないと、アプリケーションに大きな不具合が生じます。 - - **SpellChecker**: 入力エリアと 4D Write Proエリアで利用可能なビルトインの [スペルチェック機能](../FormObjects/properties_Entry.md#自動スペルチェック) とコマンドに使用されます。 - **4D Updater**: クライアントの [自動更新](#クライアントサーバーアプリケーションとは) をコントロールし、[サーバーの自動更新](#サーバーまたはシングルユーザーアプリケーションの自動更新) のための `SET UPDATE FOLDER` コマンドで使用されます。 - **4D Qodly Pro とデータエクスプローラー**: [Qodly Studio とWeb レンダリング機能](https://developer.4d.com/qodly/) に加えて[データエクスプローラー](../Admin/dataExplorer.md) が含まれます。 +- **Windows App Runtime**: Required for [Fluent UI rendering](../FormEditor/forms.md#fluent-ui-rendering) on Windows. ## ライセンス&証明書ページ diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/Develop/explorer.md b/i18n/ja/docusaurus-plugin-content-docs/current/Develop/explorer.md index e4d7d9c3830545..c5a4e629b677f7 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/Develop/explorer.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/Develop/explorer.md @@ -35,11 +35,11 @@ Qodly ページは、Web ベースの開発ツールである、[Qodly Studio](h ### Qodlyページを追加または開く -You can add or open Qodly pages directly from the 4D Explorer. If [requirements](#requirements) are met, the page is opened in the [Page editor of Qodly Studio](https://developer.4d.com/qodly/4DQodlyPro/pageLoaders/pageLoaderOverview). +4D エクスプローラーからQodly ページを直接追加または開くことができます。 [要件](#要件) を満たしていた場合、ページは[Qodly Studio のページエディター](https://developer.4d.com/qodly/4DQodlyPro/pageLoaders/pageLoaderOverview) で開かれます。 -To add a page: +ページを追加するには: -- Select **New Qodly page...** in the contextual menu,
    +- コンテキストメニュー内の **New Qodly page...** を選択します
    ![](../assets/en/Develop/qodly-context.png) - or click the **+** icon or select **New Qodly page...** in the bottom area of the Explorer.
    diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/Events/onDoubleClicked.md b/i18n/ja/docusaurus-plugin-content-docs/current/Events/onDoubleClicked.md index 3157c1b270b713..82b5d09ce1bead 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/Events/onDoubleClicked.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/Events/onDoubleClicked.md @@ -7,6 +7,12 @@ title: On Double Clicked | --- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ | | 13 | [4D View Pro エリア](FormObjects/viewProArea_overview.md) - [4D Write Pro エリア](FormObjects/writeProArea_overview.md) - [ボタン](FormObjects/button_overview.md) - [ボタングリッド](FormObjects/buttonGrid_overview.md) - [チェックボックス](FormObjects/checkbox_overview.md) - フォーム - [階層リスト](FormObjects/list_overview.md) - [入力](FormObjects/input_overview.md) - [リストボックス](FormObjects/listbox_overview.md) - [リストボックス列](FormObjects/listbox_overview.md#list-box-columns) - [ピクチャーボタン](FormObjects/pictureButton_overview.md) - [プラグインエリア](FormObjects/pluginArea_overview.md) - [進捗インジケーター](FormObjects/progressIndicator.md) - [ラジオボタン](FormObjects/radio_overview.md) - [ルーラー](FormObjects/ruler.md) - [スピナー](FormObjects/spinner.md) - [スプリッター](FormObjects/splitters.md) - [ステッパー](FormObjects/stepper.md) | オブジェクト上でダブルクリックされた | +:::note + +The `On Double Clicked` event is not supported with [**steppers**](FormObjects/stepper.md) on Windows when [Fluent UI](../FormEditor/forms.md#fluent-ui-rendering) rendering theme is enabled. + +::: + ## 説明 `On Double Clicked` イベントは、ユーザーがオブジェクトをダブルクリック したときに発生します。 ダブルクリック間隔の最大時間は、システム環境設定で定義されています。 diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/FormEditor/createStylesheet.md b/i18n/ja/docusaurus-plugin-content-docs/current/FormEditor/createStylesheet.md index 5ba9b4c8d196d3..0f919cdb3212fe 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/FormEditor/createStylesheet.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/FormEditor/createStylesheet.md @@ -64,7 +64,7 @@ CSS の 要素セレクターと同様に、スタイ 次の例では、*button* タイプのすべてのオブジェクトについて、表示するフォントを Helvetica Neue に、フォントサイズを 20 ピクセルに指定します: -``` +```css button { font-family: Helvetica Neue; font-size: 20px; @@ -73,7 +73,7 @@ button { 複数のオブジェクトタイプに同じスタイルを適用するには、それらのオブジェクトタイプをカンマ "," 区切りで併記し、その後の中カッコ { } 内にスタイルを宣言します: -``` +```css text, input { text-align: left; stroke: grey; @@ -94,7 +94,7 @@ text, input { 以下の例では、という"okButton" 名前のオブジェクトのテキストが、Helvetica Neue フォントで、20 ピクセルのサイズで表示されます: -``` +```css #okButton { font-family: Helvetica Neue; font-size: 20px; @@ -109,7 +109,7 @@ CSS の **クラスセレクター**と同様に、スタイルの適用対象 次の例では、`okButtons` クラスを持つすべてのオブジェクトについて、表示するフォントを Helvetica Neue に、フォントサイズを 20 ピクセルに指定します: -``` +```css .okButtons { font-family: Helvetica Neue; font-size: 20px; @@ -119,7 +119,7 @@ CSS の **クラスセレクター**と同様に、スタイルの適用対象 さらに、特定のオブジェクトタイプに限定してスタイルを適用するには、そのオブジェクトタイプの後にドット "." 区切りでクラス名を指定し、その後の中カッコ { } 内にスタイルを宣言します: -``` +```css text.center { text-align: center; stroke: red; @@ -128,7 +128,7 @@ text.center { 4D フォームの詳細では、[CSSクラス](../FormObjects/properties_Object.md#cssクラス) 属性を使用してクラス名を割り当てます。 この属性には一つ以上のクラス名を指定することができます。 複数の場合はクラス名を半角スペースで区切ります: -``` +```css class: "okButtons important" ``` @@ -140,7 +140,7 @@ class: "okButtons important" 次の例では、すべてのオブジェクトの塗りカラーをグレーにします: -``` +```css * { fill: gray; } @@ -165,7 +165,7 @@ CSS の **属性セレクター**と同様に、フォームオブジェクト `borderStyle` (境界線スタイル) 属性を持つすべてのオブジェクトの描画色を紫に指定します: -``` +```css [borderStyle] { stroke: purple; @@ -174,7 +174,7 @@ CSS の **属性セレクター**と同様に、フォームオブジェクト テキストタイプかつ、タイトルプロパティ (text属性) の値が "Hello" のオブジェクトの文字色を青に指定します: -``` +```css text[text=Hello] { stroke: blue; @@ -183,7 +183,7 @@ text[text=Hello] タイトルプロパティ (text属性) の値が "Hello" を含むオブジェクトの描画色を青に指定します: -``` +```css [text~=Hello] { stroke: blue; @@ -193,7 +193,7 @@ text[text=Hello] テキストタイプかつ、タイトルプロパティ (text属性) の値が "Hello" で始まるオブジェクトの文字色を黄色に指定します: -``` +```css text[text|=Hello] { stroke: yellow; @@ -206,26 +206,28 @@ text[text|=Hello] ### メディアクエリ -メディアクエリは、アプリケーションにカラースキームを適用するのに利用します。 +Media queries allow you to apply styles based on specific conditions. 4D supports media queries for **color schemes** and **platform themes**. メディアクエリは、メディア特性と値によって構成されます (例: `:` )。 -使用可能なメディア特性: +Available media features and values: -- `prefers-color-scheme` +| Media features | 値 | 説明 | +| ---------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `prefers-color-scheme` |
  • **light**
  • **dark**
  • | Color scheme to use | +| `form-theme` |
  • **fluent-ui**
  • **win-classic**
  • | Platform theme to use (Windows). For more information on **fluent-ui** theme, refer to [this section](./forms.md#fluent-ui-rendering) | -使用可能なメディア特性の値: +:::note -- **light**
    ライトモード -- **dark**
    ダークモード +Color schemes are not supported with **win-classic** platform theme. -> カラースキームは macOS でのみサポートされています。 +::: -##### 例題 +##### 例題 1 ライトモード (デフォルト) およびダークモードにおける、テキストとテキスト背景の色指定を CSS によっておこないます: -``` +```css @media (prefers-color-scheme: light) { .textScheme { fill: LightGrey; @@ -241,6 +243,39 @@ text[text|=Hello] } ``` +##### 例題 2 + +```css +/* Default style (all themes and modes) */ +.textLabel { + fontFamily: "Segoe UI"; +} + +/* Fluent UI theme*/ +@media (form-theme: fluent-ui) { + .textLabel { + stroke: #2A2A2A; + fontSize: 14px; + } + + /* dark mode */ + @media (prefers-color-scheme: dark) { + .textLabel { + stroke: #E0E0E0; + } + } +} + +/* Windows classic theme */ +@media (form-theme: win-classic) { + .textLabel { + stroke: #000000; + fontSize: 12px; + } +} + +``` + ### オブジェクト属性 多くのフォームオブジェクト属性をスタイルシートによって指定することができますが、次の属性は除外されます: @@ -270,13 +305,17 @@ text[text|=Hello] | `textDecoration` | `text-decoration` | | `verticalAlign` | `vertical-align` | -> CSS の属性名を使用する場合、4D に特有の値 (*例:* `sunken` (くぼみ)) はサポートされません。 +:::note + +CSS の属性名を使用する場合、4D に特有の値 (*例:* `sunken` (くぼみ)) はサポートされません。 + +::: #### 特殊な属性値 - `icon`, `picture`, および `customBackgroundPicture` のように、値として画像のパスを受け付ける属性の場合、次のように書きます: -``` +```css icon: url("/RESOURCES/Images/Buttons/edit.png"); /* 絶対パス */ icon: url("edit.png"); /* フォームファイルを基準とした相対パス */ ``` @@ -323,13 +362,13 @@ icon: url("edit.png"); /* フォームファイルを基準とした相対パス - 両プラットフォーム用のファイル: -``` +```json "css": "" ``` - または、両プラットフォーム用に複数のファイル: -``` +```json "css": [ "", "" @@ -338,17 +377,21 @@ icon: url("edit.png"); /* フォームファイルを基準とした相対パス - または、プラットフォームごとのファイルリスト: -``` +```json "css": [ {"path": "", "media": "mac"}, {"path": "", "media": "windows"}, ], ``` -> ファイルパスは相対パスと絶対パスが使えます。 -> -> - 相対パスの基準は JSON フォームファイルです。 -> - セキュリティのため、絶対パスとして使用できるのはファイルシステムパスに限られます。 (*例*: "/RESOURCES", "/DATA") +:::note + +ファイルパスは相対パスと絶対パスが使えます。 + +- 相対パスの基準は JSON フォームファイルです。 +- For security reasons, only [filesystem paths](../Concepts/paths.md#filesystem-pathnames) are accepted for absolute paths (*e.g.*, "/RESOURCES", "/DATA"). + +::: ## 参照 diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/FormEditor/pictures.md b/i18n/ja/docusaurus-plugin-content-docs/current/FormEditor/pictures.md index d7a5c33495fc8d..7b2e6a219e766e 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/FormEditor/pictures.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/FormEditor/pictures.md @@ -64,7 +64,7 @@ title: ピクチャー *(\*) 通常は macOS = 72dpi, Windows = 96dpi* -## ダークモード (macOS のみ) +## Dark mode pictures [フォームがダークスキームを使用](properties_FormProperties.md#カラースキーム) している場合に、標準のピクチャーの代わりに使用する専用のピクチャーやアイコンを定義することができます。 @@ -77,6 +77,12 @@ title: ピクチャー ![](../assets/en/FormEditor/darkicon.png) +:::note + +The dark mode is not available on Windows with [Classic theme](../settings/interface.md#use-fluent-ui-on-windows). + +::: + ## ピクチャー上のマウス座標 4D では、[ピクチャー式](FormObjects/properties_Object.md#式の型) が設定された [入力オブジェクト](FormObjects/input_overview.md) をクリック、またはホバーした際のマウスのローカル座標を取得できます。これはスクロールやズーム処理がおこなわれている場合でも可能です。 このピクチャーマップに似た機構は、たとえば地図作製ソフトウェアのインターフェースや、スクロール可能なボタンバーを管理するのに使用できます。 diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/FormEditor/properties_FormProperties.md b/i18n/ja/docusaurus-plugin-content-docs/current/FormEditor/properties_FormProperties.md index 7d86c10f33a9fc..289c285a5d9340 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/FormEditor/properties_FormProperties.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/FormEditor/properties_FormProperties.md @@ -7,9 +7,10 @@ title: フォームプロパティ ## カラースキーム -> 配色プロパティは、macOS でのみ適用されます。 +> Color scheme property is only applied on macOS and [Windows with Fluent UI theme](../settings/interface.md#use-fluent-ui-on-windows). +> ). -このプロパティは、フォームのカラースキームを定義します。 このプロパティが設定されていない場合のデフォルトでは、カラースキームの値は **継承済み** です (フォームは [アプリケーションレベル](../commands-legacy/set-application-color-scheme.md) で定義されたカラースキームを使用します)。 これは、フォームに対して以下の 2つのオプションのいずれかに変更することができます: +このプロパティは、フォームのカラースキームを定義します。 このプロパティが設定されていない場合のデフォルトでは、カラースキームの値は **継承済み** です (フォームは [アプリケーションレベル](../commands-legacy/get-application-color-scheme.md) で定義されたカラースキームを使用します)。 これは、フォームに対して以下の 2つのオプションのいずれかに変更することができます: - dark - 暗い背景に明るいテキスト - light - 明るい背景に暗いテキスト @@ -78,6 +79,32 @@ title: フォームプロパティ --- +## Form Theme on Windows + +This property allows you to select explicitely the interface theme you wish to be used when the form is executed on Windows. By default, forms inherit from the [global project theme settings](../settings/interface.md) but you can override this setting for each form. + +使用可能な値: + +- **Inherited** (default): inherits from the project theme +- **Classic**: use the Windows classic interface theme +- **Fluent UI**: use the [Fluent UI](../FormEditor/forms.md#fluent-ui-rendering) interface theme ([when available](../FormEditor/forms.md#requirements)). + +:::note + +This property is ignored on macOS. + +::: + +#### JSON 文法 + +| 名称 | データタイプ | とりうる値 | +| -------- | ------- | ----------- | +| fluentUI | boolean | true, false | + +If the property is not defined, the "inherited" option is selected. + +--- + ## フォームタイプ フォームのタイプ、*つまり* その出力先によって、当該フォームで利用できる機能が定義されます。 たとえば、[マーカー](properties_Markers.md) はリスト (出力) テーブルフォームでのみ設定できます。 @@ -210,4 +237,3 @@ title: フォームプロパティ | ----------- | ------ | ------------------- | | windowTitle | string | テキストまたは参照としてのウィンドウ名 | - diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/FormEditor/properties_JSONref.md b/i18n/ja/docusaurus-plugin-content-docs/current/FormEditor/properties_JSONref.md index d09abd2875c5e1..546faa8e117401 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/FormEditor/properties_JSONref.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/FormEditor/properties_JSONref.md @@ -22,6 +22,7 @@ title: フォーム JSON プロパティリスト | [`entryOrder`](formEditor.md#データの入力順) | 入力フォームで **Tab**キーや **改行**キーが使用されたときに、アクティブオブジェクトが選択される順番。 | 4Dフォームオブジェクト名のコレクション | | [`events`](Events/overview.md) | オブジェクトまたはフォームについて選択されているイベントのリスト | イベント名のコレクション。例: ["onClick","onDataChange"...]. | | **f** | | | +| [`fluentUI`](properties_FormProperties.md#fluentui) | Use fluent UI rendering for the form on Windows | true, false | | [`formSizeAnchor`](./properties_FormSize.md#サイズを決めるもの) | フォームサイズを定義するために使用するオブジェクトの名前 (最小長さ: 1) (最小長さ: 1) | 4Dオブジェクトの名前 | | **h** | | | | [`height`](properties_FormSize.md#高さ) | フォームの高さ | 最小値: 0 | @@ -51,4 +52,4 @@ title: フォーム JSON プロパティリスト | [`windowMinWidth`](properties_WindowSize.md#最大幅-最小幅) | フォームウィンドウの最小幅 | 最小値: 0 | | [`windowSizingX`](properties_WindowSize.md#固定幅) | フォームウィンドウの高さ固定 | "fixed", "variable" | | [`windowSizingY`](properties_WindowSize.md#固定高さ) | フォームウィンドウの幅固定 | "fixed", "variable" | -| [`windowTitle`](properties_FormProperties.md#ウィンドウタイトル) | フォームウィンドウのタイトルを指定します | フォームウィンドウの名前。 | \ No newline at end of file +| [`windowTitle`](properties_FormProperties.md#ウィンドウタイトル) | フォームウィンドウのタイトルを指定します | フォームウィンドウの名前。 | diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/FormObjects/button_overview.md b/i18n/ja/docusaurus-plugin-content-docs/current/FormObjects/button_overview.md index 3f8b9cbcbd78c7..f2e71031af223e 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/FormObjects/button_overview.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/FormObjects/button_overview.md @@ -277,11 +277,13 @@ Office XPボタンの反転表示と背景のカラーはシステムカラー ### サークル -サークルスタイルのボタンは、円形のシステムボタンとして表示されます。 このボタンスタイルは macOS 用に用意されています。 +サークルスタイルのボタンは、円形のシステムボタンとして表示されます。 ![](../assets/en/FormObjects/button_circleM.png) -Windows の場合、サークルは表示されません。 +This button style is supported on macOS and [Windows Fluent UI theme](../FormEditor/forms.md#enabling-the-fluent-ui-rendering). + +On Windows Classic UI theme, it is identical to the “None” style (the circle in the background is not taken into account). #### JSON 例: diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/FormObjects/properties_Appearance.md b/i18n/ja/docusaurus-plugin-content-docs/current/FormObjects/properties_Appearance.md index 751dc09e1d368b..dd67488900e27b 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/FormObjects/properties_Appearance.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/FormObjects/properties_Appearance.md @@ -35,6 +35,12 @@ Windows上では "推奨選択肢" の概念はサポートされていないた ランタイムにおいて、タブキーやシングルクリックによってフォーカスを得たフィールドや入力可能なエリアは、選択状態を示す四角で縁取りされます。 このプロパティを使用して、フォーカスの四角を非表示にできます。 特定のインターフェースにおいては、フォーカスの四角を非表示にすることが便利かもしれません。 +:::note + +The focus rectangle is only available on macOS and (for text and picture [inputs](input_overview.md)) on Windows with [Fluent UI](../FormEditor/forms.md#fluent-ui-rendering) enabled. It is not supported on Windows classic UI. + +::: + #### JSON 文法 | 名称 | データタイプ | とりうる値 | diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/Menus/sdi.md b/i18n/ja/docusaurus-plugin-content-docs/current/Menus/sdi.md index 1c8879b8e1603d..8d516bf7ef6ae6 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/Menus/sdi.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/Menus/sdi.md @@ -92,6 +92,6 @@ MDIモードで実行時、ユーザーによってアプリケーションウ :::info -[**Application info**](../commands-legacy/application-info.md) コマンドを使用することで、Windows 上で現在実行中のモードを調べることができます。 +[**Application info**](../commands/application-info.md) コマンドを使用することで、Windows 上で現在実行中のモードを調べることができます。 ::: \ No newline at end of file diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/WebServer/http-request-handler.md b/i18n/ja/docusaurus-plugin-content-docs/current/WebServer/http-request-handler.md index 883be9680d24b6..b20b63286f8453 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/WebServer/http-request-handler.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/WebServer/http-request-handler.md @@ -22,11 +22,14 @@ Custom HTTP Request handlers are supported in the following context: - [scalable sessions](./sessions.md#enabling-web-sessions) or [no sessions](../settings/web.md#no-sessions) are enabled, - a web server run locally by 4D or 4D Server, including those [run by components](./webServerObject.md). -:::warning +### Authentication and Privileges -For security reasons, external access to the datastore can be disallowed in 4D. HTTP リクエストを許可するには、[ORDA privileges](../ORDA/privileges.md) を設定する必要があります。 +Since HTTP Request handler functions are called from standard web requests (they do not contain `/rest/xxx` pattern like REST requests), they are not subject to the [**Force login**](../REST/authUsers.md#force-login-mode) rules. It means that they can be executed without prior authentication, i.e. without a call to [`setPrivileges()`](../API/SessionClass.md#setprivileges) on the session, in which case they will be executed in a *guest* session. -::: +However, these functions need to have appropriate **permissions**, like all requests executed from web processes. When the handler function is called, the **privileges** of its web session must allow the code to run properly. Any other resources accessed within the code (data, other functions...) also need to be allowed by permissions. In [*restricted mode by default*](../ORDA/privileges.md#restriction-modes), you must configure the privileges: + +- If a HTTP Request handler can open a new, unauthenticated session (which is the case for example when your application provides **deep linking** feature), you need to make sure that the *guest* privilege is allowed to execute the handler function and access all subsequent resources. +- If a HTTP Request handler function can be executed within an already authenticated session, you need to make sure the user session is allowed to execute the handler function and access all subsequent resources. Note that this can also happen with deep linking if you copy/paste the link into a browser where you are already authenticated for the application and the session is still active (provided that the 4D session cookie is *Lax*). ## How to set handlers diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/assets/en/FormObjects/fluentui-setting.png b/i18n/ja/docusaurus-plugin-content-docs/current/assets/en/FormObjects/fluentui-setting.png index e8c5e02f62431f..4957d89dec8ac3 100644 Binary files a/i18n/ja/docusaurus-plugin-content-docs/current/assets/en/FormObjects/fluentui-setting.png and b/i18n/ja/docusaurus-plugin-content-docs/current/assets/en/FormObjects/fluentui-setting.png differ diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/commands/command-index.md b/i18n/ja/docusaurus-plugin-content-docs/current/commands/command-index.md index 7942b77cb18811..5921bd51f2da7b 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/commands/command-index.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/commands/command-index.md @@ -35,7 +35,7 @@ title: コマンド(名前順) [`APPEND TO ARRAY`](../commands-legacy/append-to-array.md)
    [`APPEND TO LIST`](../commands-legacy/append-to-list.md)
    [`Application file`](../commands-legacy/application-file.md)
    -[`Application info`](../commands-legacy/application-info.md)
    +[`Application info`](application-info.md)
    [`Application type`](../commands-legacy/application-type.md)
    [`Application version`](../commands-legacy/application-version.md)
    [`APPLY TO SELECTION`](../commands-legacy/apply-to-selection.md)
    @@ -337,6 +337,7 @@ title: コマンド(名前順) [`FORM SET OUTPUT`](../commands-legacy/form-set-output.md)
    [`FORM SET SIZE`](../commands-legacy/form-set-size.md)
    [`FORM SET VERTICAL RESIZING`](../commands-legacy/form-set-vertical-resizing.md)
    +[`FORM theme`](form-theme.md) **new 4D 21 R2**
    [`FORM UNLOAD`](../commands-legacy/form-unload.md)
    [`Formula`](formula.md)
    [`Formula from string`](formula-from-string.md)
    diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/commands/theme/4D_Environment.md b/i18n/ja/docusaurus-plugin-content-docs/current/commands/theme/4D_Environment.md index 779d4b9cbd8c78..a06b98c63bd7fc 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/commands/theme/4D_Environment.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/commands/theme/4D_Environment.md @@ -8,7 +8,7 @@ slug: /commands/theme/4D-Environment | | | --------------------------------------------------------------------------------------------------------------------------------------------- | | [](../../commands-legacy/application-file.md)
    | -| [](../../commands-legacy/application-info.md)
    | +| [](../../commands/application-info.md)
    | | [](../../commands-legacy/application-type.md)
    | | [](../../commands-legacy/application-version.md)
    | | [](../../commands-legacy/build-application.md)
    | diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/commands/theme/Forms.md b/i18n/ja/docusaurus-plugin-content-docs/current/commands/theme/Forms.md index ea67423c4ffd46..1e263b07f650d6 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/commands/theme/Forms.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/commands/theme/Forms.md @@ -31,3 +31,5 @@ slug: /commands/theme/Forms | [](../../commands-legacy/form-set-size.md)
    | | [](../../commands-legacy/form-set-vertical-resizing.md)
    | | [](../../commands-legacy/form-unload.md)
    | +| [](../../commands/form-windows-theme.md)
    | + diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/commands/theme/Web_Server.md b/i18n/ja/docusaurus-plugin-content-docs/current/commands/theme/Web_Server.md index 612c78eb702313..7f6df429cee653 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/commands/theme/Web_Server.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/commands/theme/Web_Server.md @@ -7,8 +7,8 @@ slug: /commands/theme/Web-Server | | | --------------------------------------------------------------------------------------------------------------------------------------- | -| [](../../commands/web-event.md)
    | -| [](../../commands/web-form.md)
    | +| [](../../commands/web-event.md)
    | +| [](../../commands/web-form.md)
    | | [](../../commands-legacy/web-get-body-part.md)
    | | [](../../commands-legacy/web-get-body-part-count.md)
    | | [](../../commands-legacy/web-get-current-session-id.md)
    | diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/settings/client-server.md b/i18n/ja/docusaurus-plugin-content-docs/current/settings/client-server.md index ba21d38bca8883..5115d5964d2a19 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/settings/client-server.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/settings/client-server.md @@ -73,7 +73,7 @@ Single Sign On (SSO) が有効になっている場合 (上述参照)、認証 **注**: - Selecting this option overrides the Use legacy network layer option in case it has been set using the [SET DATABASE PARAMETER](../commands-legacy/set-database-parameter.md) command. - - You can know if a 4D application is running with a QUIC network layer using the [Application info](../commands-legacy/application-info.md) command. + - You can know if a 4D application is running with a QUIC network layer using the [Application info](../commands/application-info.md) command. - QUIC は UDPプロトコルを使用するため、ネットワークのセキュリティ設定で UDP が許可されている必要があります。 - アプリケーションサーバーと DB4Dサーバーの両方で、QUIC は自動的にポート19813 に接続します。 - QUICレイヤーオプションを選択すると: diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/settings/interface.md b/i18n/ja/docusaurus-plugin-content-docs/current/settings/interface.md index 5a7a741d2fec4b..ce7b371b6ca3f5 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/settings/interface.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/settings/interface.md @@ -35,7 +35,7 @@ title: インターフェースページ - **印刷の進捗状況**: 印刷時の印刷進捗状況を表示するダイアログを有効または無効にします。 -- **WindowsでSDIモードを使用する**: このオプションが選択されていると、[対応している環境](../Menus/sdi.md#SDIモード利用条件) で組み込みアプリが実行された場合に、4D は自動で [SDIモード (Single-Document Interface)](../Menus/sdi.md) を有効にします。 このオプションを選択すると、Windows では、4D メニューバーの **実行** メニューからアプリケーションの実行モードが選択できます: +- **Use SDI mode on Windows**: When this option is checked, 4D enables automatically the [SDI mode (Single-Document Interface)](../Menus/sdi.md) in your application when executed in a [supported context](../Menus/sdi.md#sdi-mode-availability). このオプションを選択すると、Windows では、4D メニューバーの **実行** メニューからアプリケーションの実行モードが選択できます: ![](../assets/en/settings/sdi-mdi.png) @@ -45,11 +45,11 @@ title: インターフェースページ ::: -### アピアランス +### カラースキーム このメニューで、メインアプリケーションレベルにおいて使用するカラースキームを選択します。 カラースキームは、フォーム内で使用されるテキスト、背景、ウィンドウなどのインターフェースカラーのグローバルなセットを定義します。 -> このオプションは macOS でのみ使用できます。 Windows上では、"Light" テーマが常に使用されます。 +> This option is ignored on Windows with [Classic theme](#use-fluent-ui-on-windows). In this context, the "Light" scheme is always used. 以下のスキームが利用可能です: @@ -64,6 +64,16 @@ title: インターフェースページ - by the [SET APPLICATION COLOR SCHEME](../commands-legacy/set-application-color-scheme.md) command at the working session level; - 各フォームレベル (最優先レベル) では、[カラースキーム](../FormEditor/propertiesForm.html#カラースキーム) プロパティを使用できます。 **注記**: 印刷時には、フォームは常に "ライト" スキームを使用します。 +### Use Fluent UI on Windows + +When this option is checked, 4D will automatically use the [Fluent UI rendering theme](../FormEditor/forms.md#fluent-ui-rendering) for all your forms on Windows, [when available](../FormEditor/forms.md#requirements). When it is unchecked, the Windows Classic UI rendering theme will be used by default. + +> This option is only used on Windows, it has no effect on macOS. + +This project setting can be overriden at form level by using the [Widget appearance](../FormEditor/propertiesForm.html#widget-appearance) form property (highest priority level). + +> Rendering themes can be handled using CSS. 詳細については、[メディアクエリ](../FormEditor/createStylesheet.md#メディアクエリ) を参照してください。 + ## ショートカット ショートカットエリアでは、4D のデスクトップアプリケーションにおける 3つの基本のフォーム操作に使うデフォルトショートカットを確認し、変更することができます。 これらのショートカットは両プラットフォームで同じです。 キーの形をしたアイコンは、Windows と macOS の対応するキーの組み合わせを示します。 diff --git a/i18n/ja/docusaurus-plugin-content-docs/version-21/API/WebFormClass.md b/i18n/ja/docusaurus-plugin-content-docs/version-21/API/WebFormClass.md index ffe3bbb2a96872..a84d9591948f4b 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/version-21/API/WebFormClass.md +++ b/i18n/ja/docusaurus-plugin-content-docs/version-21/API/WebFormClass.md @@ -18,7 +18,7 @@ title: WebForm | | | ------------------------------------------------------------------------------------------------------------------------------- | -| [](#componentname)
    | +| [](#componentname)
    | | [](#disablestate)
    | | [](#enablestate)
    | | [](#seterror)
    | @@ -27,11 +27,11 @@ title: WebForm ### *.componentName* -***.componentName*** : [4D.WebFormItem](WebFormItemClass.md) +***.componentName*** : [4D.WebFormItem](WebFormItemClass.md) #### 説明 -Web ページのコンポーネント (構成要素) とは、これらの Web ページのプロパティとして直接利用可能なオブジェクトです。 +The components of web pages are objects that are available directly as properties of these web pages. 返されるオブジェクトは、[`4D.WebFormItem`](WebFormItemClass.md) クラスのものです。 これらのオブジェクトは、コンポーネントを動的に管理するために使用できる関数を持っています。 @@ -60,9 +60,9 @@ shared singleton Class constructor() -| 引数 | 型 | | 説明 | -| ----- | ------ | :-: | ----------------------- | -| state | string | -> | Web ページ上で無効化するstate の名前 | +| 引数 | 型 | | 説明 | +| ----- | ---- | :-: | ------------------------ | +| state | Text | -> | Webフォーム上で無効化する state の名称 | @@ -85,9 +85,9 @@ Web ページのステートについての詳細な情報については、[Qod -| 引数 | 型 | | 説明 | -| ----- | ------ | :-: | ------------------------ | -| state | string | -> | Web ページ上で有効化する state の名前 | +| 引数 | 型 | | 説明 | +| ----- | ---- | :-: | ------------------------ | +| state | Text | -> | Webフォーム上で有効化する state の名称 | @@ -121,9 +121,9 @@ Function authenticationError() -| 引数 | 型 | | 説明 | -| --- | ------ | :-: | -------------------- | -| msg | string | -> | Web ページに表示するエラーメッセージ | +| 引数 | 型 | | 説明 | +| --- | ---- | :-: | -------------------- | +| msg | Text | -> | Webフォームに表示するエラーメッセージ | @@ -156,9 +156,9 @@ myForm.setError("My error message") -| 引数 | 型 | | 説明 | -| --- | ------ | :-: | ------------------- | -| msg | string | -> | Web ページに表示する情報メッセージ | +| 引数 | 型 | | 説明 | +| --- | ---- | :-: | ------------------- | +| msg | Text | -> | Webフォームに表示する情報メッセージ | @@ -191,9 +191,9 @@ myForm.setMessage("My information message") -| 引数 | 型 | | 説明 | -| --- | ------ | :-: | ------------------- | -| msg | string | -> | Web ページに表示する警告メッセージ | +| 引数 | 型 | | 説明 | +| --- | ---- | :-: | ------------------- | +| msg | Text | -> | Webフォームに表示する警告メッセージ | @@ -224,4 +224,4 @@ myForm.setWarning("My warning message") [Web Form](../commands/web-form.md)
    [Web Event](../commands/web-event.md)
    -[WebFormItem class](../API/WebFormItemClass.md) \ No newline at end of file +[WebFormItem class](../API/WebFormItemClass.md) diff --git a/i18n/ja/docusaurus-plugin-content-docs/version-21/WebServer/http-request-handler.md b/i18n/ja/docusaurus-plugin-content-docs/version-21/WebServer/http-request-handler.md index 883be9680d24b6..b20b63286f8453 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/version-21/WebServer/http-request-handler.md +++ b/i18n/ja/docusaurus-plugin-content-docs/version-21/WebServer/http-request-handler.md @@ -22,11 +22,14 @@ Custom HTTP Request handlers are supported in the following context: - [scalable sessions](./sessions.md#enabling-web-sessions) or [no sessions](../settings/web.md#no-sessions) are enabled, - a web server run locally by 4D or 4D Server, including those [run by components](./webServerObject.md). -:::warning +### Authentication and Privileges -For security reasons, external access to the datastore can be disallowed in 4D. HTTP リクエストを許可するには、[ORDA privileges](../ORDA/privileges.md) を設定する必要があります。 +Since HTTP Request handler functions are called from standard web requests (they do not contain `/rest/xxx` pattern like REST requests), they are not subject to the [**Force login**](../REST/authUsers.md#force-login-mode) rules. It means that they can be executed without prior authentication, i.e. without a call to [`setPrivileges()`](../API/SessionClass.md#setprivileges) on the session, in which case they will be executed in a *guest* session. -::: +However, these functions need to have appropriate **permissions**, like all requests executed from web processes. When the handler function is called, the **privileges** of its web session must allow the code to run properly. Any other resources accessed within the code (data, other functions...) also need to be allowed by permissions. In [*restricted mode by default*](../ORDA/privileges.md#restriction-modes), you must configure the privileges: + +- If a HTTP Request handler can open a new, unauthenticated session (which is the case for example when your application provides **deep linking** feature), you need to make sure that the *guest* privilege is allowed to execute the handler function and access all subsequent resources. +- If a HTTP Request handler function can be executed within an already authenticated session, you need to make sure the user session is allowed to execute the handler function and access all subsequent resources. Note that this can also happen with deep linking if you copy/paste the link into a browser where you are already authenticated for the application and the session is still active (provided that the 4D session cookie is *Lax*). ## How to set handlers diff --git a/i18n/ja/docusaurus-plugin-content-docs/version-21/WebServer/sessions.md b/i18n/ja/docusaurus-plugin-content-docs/version-21/WebServer/sessions.md index 2935e2959605e3..f83c919c276db6 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/version-21/WebServer/sessions.md +++ b/i18n/ja/docusaurus-plugin-content-docs/version-21/WebServer/sessions.md @@ -23,7 +23,7 @@ Webセッションでは、以下のことが可能です: Webセッションは次のものに使用されます: - [Web applications](gettingStarted.md) sending http requests (including [SOAP Web services](../commands/theme/Web_Services_Server.md) and [/4DACTION](../WebServer/httpRequests.md#4daction) requests), -- [リモートデータストア](../ORDA/remoteDatastores.md) や [Qodlyフォーム](qodly-studio.md) が使用する [REST API](../REST/authUsers.md) への呼び出し +- calls to the [REST API](../REST/authUsers.md), which are used by [remote datastores](../ORDA/remoteDatastores.md) and [Qodly pages](https://developer.4d.com/qodly/). ## Enabling web sessions {#enabling-web-sessions} diff --git a/i18n/ja/docusaurus-plugin-content-docs/version-21/commands/theme/Web_Server.md b/i18n/ja/docusaurus-plugin-content-docs/version-21/commands/theme/Web_Server.md index 612c78eb702313..7f6df429cee653 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/version-21/commands/theme/Web_Server.md +++ b/i18n/ja/docusaurus-plugin-content-docs/version-21/commands/theme/Web_Server.md @@ -7,8 +7,8 @@ slug: /commands/theme/Web-Server | | | --------------------------------------------------------------------------------------------------------------------------------------- | -| [](../../commands/web-event.md)
    | -| [](../../commands/web-form.md)
    | +| [](../../commands/web-event.md)
    | +| [](../../commands/web-form.md)
    | | [](../../commands-legacy/web-get-body-part.md)
    | | [](../../commands-legacy/web-get-body-part-count.md)
    | | [](../../commands-legacy/web-get-current-session-id.md)
    | diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/API/WebFormClass.md b/i18n/pt/docusaurus-plugin-content-docs/current/API/WebFormClass.md index 33707ab6e12340..b44aefb0cef8ae 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/current/API/WebFormClass.md +++ b/i18n/pt/docusaurus-plugin-content-docs/current/API/WebFormClass.md @@ -18,7 +18,7 @@ The `WebForm` class contains functions and properties allowing to handle your Qo | | | ------------------------------------------------------------------------------------------------------------------------------- | -| [](#componentname)
    | +| [](#componentname)
    | | [](#disablestate)
    | | [](#enablestate)
    | | [](#seterror)
    | @@ -27,11 +27,11 @@ The `WebForm` class contains functions and properties allowing to handle your Qo ### *.componentName* -***.componentName*** : [4D.WebFormItem](WebFormItemClass.md) +***.componentName*** : [4D.WebFormItem](WebFormItemClass.md) #### Descrição -The components of web pages are objects that are available directly as properties of these web pages. +The components of web pages are objects that are available directly as properties of these web pages. The returned objects are of the [`4D.WebFormItem`](WebFormItemClass.md) class. These objects have functions that you can use to manage your components dynamically. diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/Concepts/quick-tour.md b/i18n/pt/docusaurus-plugin-content-docs/current/Concepts/quick-tour.md index 1ca3be49300476..072920e7940ae1 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/current/Concepts/quick-tour.md +++ b/i18n/pt/docusaurus-plugin-content-docs/current/Concepts/quick-tour.md @@ -422,6 +422,6 @@ No exemplo a seguir, o caractere **Carriage return** (sequência de escape `\r`) The following conventions are used in the 4D language documentation: - os caracteres `{ }` (chaves) indicam parâmetros opcionais. Por exemplo, `.delete( { option : Integer } )` significa que o parâmetro *option* pode ser omisso ao chamar a função. -- the `{; ...*param* : Type}` notation indicates an unlimited number of parameters of the same type. For example, `.concat( value : any { ;...valueN : Text } ) : Collection` means that an unlimited number of values of any type can be passed to the function. -- the `{; ...(*param* : Type ; *param2* : Type) }` notation indicates an unlimited number of groups of parameters. For example, `COLLECTION TO ARRAY ( collection : Collection ; array : Array {; propertyName : Text}{; ...(array : Array ; propertyName : Text) } )` means that an unlimited number of couple values or type array/text can be passed to the command. - the `any` keyword is used for parameters that can be of any type (number, text, boolean, date, time, object, collection...). +- the `{; ...*param* : Type}` notation indicates an unlimited number of parameters of the same type. For example, `.concat( value : any { ;...valueN : any } ) : Collection` means that an unlimited number of values of any type can be passed to the function. +- the `{; ...(*param* : Type ; *param2* : Type) }` notation indicates an unlimited number of groups of parameters. For example, `COLLECTION TO ARRAY ( collection : Collection ; array : Array {; propertyName : Text}{; ...(array : Array ; propertyName : Text) } )` means that an unlimited number of couple values of type array/text can be passed to the command. diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/Desktop/building.md b/i18n/pt/docusaurus-plugin-content-docs/current/Desktop/building.md index bada1f3095910e..6cd269c6c4be89 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/current/Desktop/building.md +++ b/i18n/pt/docusaurus-plugin-content-docs/current/Desktop/building.md @@ -492,13 +492,10 @@ Um módulo é uma biblioteca de código integrada usada por 4D para controlar fu Os seguintes módulos opcionais podem ser desmarcados: - **CEF**: biblioteca integrada Chromium. É necessário executar [áreas Web](../FormObjects/webArea_overview.md) que usem o mecanismo de renderização incorporado e [áreas 4D View Pro](../FormObjects/viewProArea_overview.md). Chamar essas áreas quando o CEF for deseleito, mostrará áreas em branco e/ou gerará erros. -- **MeCab**: Biblioteca usada para indexação de texto em idioma japonês (veja este [parágrafo de configurações](../settings/database.md#support-of-mecab-japanese-version)). Desmarcar este módulo irá forçar os índices de texto a serem reconstruídos na língua japonesa. - -> Se você desmarcar o MeCab para um aplicativo na linguagem japonesa usado em plataformas heterogêneas, certifique-se de desmarcá-lo na compilação cliente/servidor e na compilação do aplicativo cliente (para a plataforma simultânea) caso contrário, serão detectadas defeituosas no aplicativo. - - **SpellChecker**: usado para [correção ortográfica](../FormObjects/properties_Entry.md#auto-spellcheck) e comandos disponíveis para áreas de entrada e para áreas 4D Write Pro. - **4D Updater**: Controla a [atualização automática](#what-is-a-clientserver-application) das partes do cliente e é usado pelo comando `SET UPDATE FOLDER` para [atualizações automáticas do servidor](#automatic-updating-of-server-or-single-user-applications). - **4D Qodly Pro and Data Explorer**: Includes [Qodly Studio and its web renderering features](https://developer.4d.com/qodly/) as well as the [Data Explorer](../Admin/dataExplorer.md). +- **Windows App Runtime**: Required for [Fluent UI rendering](../FormEditor/forms.md#fluent-ui-rendering) on Windows. ## Página de licenças e certificados diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/Events/onDoubleClicked.md b/i18n/pt/docusaurus-plugin-content-docs/current/Events/onDoubleClicked.md index 636474fe0f5eb6..0b4e880c1492cb 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/current/Events/onDoubleClicked.md +++ b/i18n/pt/docusaurus-plugin-content-docs/current/Events/onDoubleClicked.md @@ -7,6 +7,12 @@ title: On Double Clicked | ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------- | | 13 | [4D View Pro Area](FormObjects/viewProArea_overview.md) - [4D Write Pro area](FormObjects/writeProArea_overview.md) - [Button](FormObjects/button_overview.md) - [Button Grid](FormObjects/buttonGrid_overview.md) - [Check Box](FormObjects/checkbox_overview.md) - Form - [Hierarchical List](FormObjects/list_overview.md) - [Input](FormObjects/input_overview.md) - [List Box](FormObjects/listbox_overview.md) - [List Box Column](FormObjects/listbox_overview.md#list-box-columns) - [Picture Button](FormObjects/pictureButton_overview.md) - [Plug-in Area](FormObjects/pluginArea_overview.md) - [Progress Indicators](FormObjects/progressIndicator.md) - [Radio Button](FormObjects/radio_overview.md) - [Ruler](FormObjects/ruler.md) - [Spinner](FormObjects/spinner.md) - [Splitter](FormObjects/splitters.md) - [Stepper](FormObjects/stepper.md) | Ocorreu um duplo clique num objeto | +:::note + +The `On Double Clicked` event is not supported with [**steppers**](FormObjects/stepper.md) on Windows when [Fluent UI](../FormEditor/forms.md#fluent-ui-rendering) rendering theme is enabled. + +::: + ## Descrição O evento `On Double Clicked` é gerado quando o usuário faz duplo clique em um objeto. O período máximo de tempo que separa um duplo clique é definido nas preferências do sistema. diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/FormEditor/createStylesheet.md b/i18n/pt/docusaurus-plugin-content-docs/current/FormEditor/createStylesheet.md index a5d5dbd6fe3f30..c618104f6062b2 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/current/FormEditor/createStylesheet.md +++ b/i18n/pt/docusaurus-plugin-content-docs/current/FormEditor/createStylesheet.md @@ -64,7 +64,7 @@ Para aplicar o mesmo estilo para múltiplos tipos de objetos, especifique o tipo En el siguiente ejemplo, todos los objetos del tipo *botón* mostrarán el texto en la fuente Helvetica Neue, con un tamaño de 20 píxeles: -``` +```css button { font-family: Helvetica Neue; font-size: 20px; @@ -73,7 +73,7 @@ button { Especifique o tipo de objeto, depois entre chaves, declare os estilos a aplicar. -``` +```css text, input { text-align: left; stroke: grey; @@ -95,7 +95,7 @@ The object name corresponds to the JSON [object name](../FormObjects/properties_ In the following example, the text of the object with the name "okButton" will be displayed in Helvetica Neue font, with a size of 20 pixels: -``` +```css #okButton { font-family: Helvetica Neue; font-size: 20px; @@ -110,7 +110,7 @@ Para indicar que um estilo deve aplicar-se só aos objetos de um tipo determinad En el siguiente ejemplo, el texto de todos los objetos con el nombre de la clase `okButtons` se mostrará en la fuente Helvetica Neue, con un tamaño de 20 píxeles, alineado al centro: -``` +```css .okButtons { font-family: Helvetica Neue; font-size: 20px; @@ -120,7 +120,7 @@ En el siguiente ejemplo, el texto de todos los objetos con el nombre de la clase Pode especificar as classes a usar com um caractere "." seguido pelo nome da classe, e entre chaves, declare os estilos a aplicar. -``` +```css text.center { text-align: center; stroke: red; @@ -129,7 +129,7 @@ text.center { In the 4D form description, you associate a class name to an object using the [CSS Class](../FormObjects/properties_Object.md#css-class) attribute. Este atributo contém um ou vários nomes de classe, separados por um espaço: -``` +```css class: "okButtons important" ``` @@ -141,7 +141,7 @@ Indique que um estilo deve aplicar-se a todos os objetos formulário com o cará No seguinte exemplo, todos os objetos terão um fundo cinza: -``` +```css * { fill: gray; } @@ -166,7 +166,7 @@ Especifique o tipo de atributo entre colchetes, depois entre chaves, declare os Todos los objetos con el atributo `borderStyle` tendrán líneas moradas: -``` +```css [borderStyle] { stroke: purple; @@ -175,7 +175,7 @@ Todos los objetos con el atributo `borderStyle` tendrán líneas moradas: Todos os objetos do tipo texto com um atributo de texto cujo valor comece com "Hello" terão as letras amarelas: -``` +```css text[text=Hello] { stroke: blue; @@ -184,7 +184,7 @@ text[text=Hello] Todos os objetos de tipo texto cujos valores contenham "hello" terão linhas azuis: -``` +```css [text~=Hello] { stroke: blue; @@ -194,7 +194,7 @@ Todos os objetos de tipo texto cujos valores contenham "hello" terão linhas azu Todos os objetos de tipo texto com um atributo texto cujo valor seja "Hello" terão letras azuis: -``` +```css text[text|=Hello] { stroke: yellow; @@ -205,26 +205,28 @@ text[text|=Hello] ### Media Queries -As consultas de mídia são usadas para aplicar esquemas de cores as aplicações. +Media queries allow you to apply styles based on specific conditions. 4D supports media queries for **color schemes** and **platform themes**. A media query is composed of a media feature and a value (e.g., `:`). -Funcionalidades multimédia disponíveis: +Available media features and values: -- `prefers-color-scheme` +| Media features | Valores | Descrição | +| ---------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `prefers-color-scheme` |
  • **light**
  • **dark**
  • | Color scheme to use | +| `form-theme` |
  • **fluent-ui**
  • **win-classic**
  • | Platform theme to use (Windows). For more information on **fluent-ui** theme, refer to [this section](./forms.md#fluent-ui-rendering) | -Expressões de funcionalidades multimédia disponíveis: +:::note -- **light**
    Para utilizar un esquema de luz -- **oscuro**
    Para utilizar un esquema oscuro +Color schemes are not supported with **win-classic** platform theme. -> Os esquemas de cores são suportados apenas no macOS. +::: -##### Exemplo +##### Exemplo 1 Esse CSS define uma combinação de cores para o texto e o fundo do texto no esquema claro (padrão) e outra combinação quando o esquema escuro é selecionado: -``` +```css @media (prefers-color-scheme: light) { .textScheme { fill: LightGrey; @@ -240,6 +242,39 @@ Esse CSS define uma combinação de cores para o texto e o fundo do texto no esq } ``` +##### Exemplo 2 + +```css +/* Default style (all themes and modes) */ +.textLabel { + fontFamily: "Segoe UI"; +} + +/* Fluent UI theme*/ +@media (form-theme: fluent-ui) { + .textLabel { + stroke: #2A2A2A; + fontSize: 14px; + } + + /* dark mode */ + @media (prefers-color-scheme: dark) { + .textLabel { + stroke: #E0E0E0; + } + } +} + +/* Windows classic theme */ +@media (form-theme: win-classic) { + .textLabel { + stroke: #000000; + fontSize: 12px; + } +} + +``` + ### Atributos específicos A maioria dos atributos do objeto formulário podem ser definidos dentro de uma folha de estilo, exceto os seguintes atributos: @@ -269,13 +304,17 @@ Os atributos listados a continuação podem aceitar o nome 4D ou o nome CSS. | `textDecoration` | `text-decoration` | | `verticalAlign` | `vertical-align` | -> Los valores específicos 4D (*por ejemplo*, `hundido`) no se soportan cuando se utilizan nombres de atributos CSS. +:::note + +Los valores específicos 4D (*por ejemplo*, `hundido`) no se soportan cuando se utilizan nombres de atributos CSS. + +::: #### Valores de atributos específicos - Para los atributos `icon`, `picture` y `customBackgroundPicture` que soportan una ruta a una imagen, la sintaxis es: -``` +```css icon: url("/RESOURCES/Images/Buttons/edit.png"); /* rota absoluta */ icon: url("edit.png"); /* rota relativa ao arquivo de formulário */ ``` @@ -322,13 +361,13 @@ Durante a execução, 4D prioriza automaticamente as folhas de estilo na seguint - ou uma lista de arquivos por plataforma: -``` +```json "css": "" ``` - um arquivo para ambas plataformas: -``` +```json "css": [ "", "" @@ -337,17 +376,21 @@ Durante a execução, 4D prioriza automaticamente as folhas de estilo na seguint - ou uma lista de arquivos para ambas plataformas: -``` +```json "css": [ {"path": "", "media": "mac"}, {"path": "", "media": "windows"}, ], ``` -> As rotas dos arquivos pedem ser relativas ou absolutas. -> -> - - As rotas relativas se resolvem em relação com o arquivo de descrição do formulário JSON. -> - - Por razões de segurança, só se aceitam as rotas do sistema de arquivos para as rotas absolutas. (*e.g.*, "/RESOURCES", "/DATA") +:::note + +As rotas dos arquivos pedem ser relativas ou absolutas. + +- - As rotas relativas se resolvem em relação com o arquivo de descrição do formulário JSON. +- For security reasons, only [filesystem paths](../Concepts/paths.md#filesystem-pathnames) are accepted for absolute paths (*e.g.*, "/RESOURCES", "/DATA"). + +::: ## Veja também diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/FormEditor/pictures.md b/i18n/pt/docusaurus-plugin-content-docs/current/FormEditor/pictures.md index a8707509467de7..5adc470514fde9 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/current/FormEditor/pictures.md +++ b/i18n/pt/docusaurus-plugin-content-docs/current/FormEditor/pictures.md @@ -64,7 +64,7 @@ Embora 4D priorize automaticamente a resolução mais alta, há, no entanto, alg *(\*) Normalmente, macOS = 72 dpi, Windows = 96 dpi* -## Imagens em modo escuro (apenas macOS) +## Dark mode pictures Você pode definir imagens e ícones específicos a serem usados em vez de imagens padrão quando [os formulários usam o esquema escuro](properties_FormProperties.md#color-scheme). @@ -77,6 +77,12 @@ Em tempo de execução, 4D carregará automaticamente a imagem clara ou escura d ![](../assets/en/FormEditor/darkicon.png) +:::note + +The dark mode is not available on Windows with [Classic theme](../settings/interface.md#use-fluent-ui-on-windows). + +::: + ## Coordenadas do mouse numa imagem 4D permite recuperar as coordenadas locais do mouse em um [objeto de entrada](FormObjects/input_overview.md) associado a uma [expressão de imagem](FormObjects/properties_Object.md#expression-type), em caso de um clique ou um mouse, mesmo que um rolagem ou zoom tenha sido aplicado à imagem. Esse mecanismo, similar ao de um mapa de imagens, pode ser utilizado, por exemplo, para manejar barras de botões deslocáveis ou a interface de um software de cartografia. diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/FormEditor/properties_FormProperties.md b/i18n/pt/docusaurus-plugin-content-docs/current/FormEditor/properties_FormProperties.md index b8500fb8e58ab9..8ef2a7f94241e8 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/current/FormEditor/properties_FormProperties.md +++ b/i18n/pt/docusaurus-plugin-content-docs/current/FormEditor/properties_FormProperties.md @@ -7,9 +7,10 @@ title: Propriedades do formulário ## Esquema de cores -> A propriedade Esquema de cores só é aplicada no macOS. +> Color scheme property is only applied on macOS and [Windows with Fluent UI theme](../settings/interface.md#use-fluent-ui-on-windows). +> ). -Esta propriedade define o esquema de cores para o formulário. Esta propriedade define o esquema de cores para o formulário. Isto pode ser alterado para o formulário para uma das duas opções seguintes: +Esta propriedade define o esquema de cores para o formulário. Por padrão, quando a propriedade não está definida, o valor de um esquema de cores é **herdado** (o formulário usa o esquema definido no [nível do aplicativo] (../commands-legacy/get-application-color-scheme.md)). Isto pode ser alterado para o formulário para uma das duas opções seguintes: - dark - texto claro sobre um fundo escuro - light - texto escuro sobre um fundo claro @@ -78,6 +79,32 @@ O nome do formulário é definido pelo nome da pasta que contém o arquivo form. --- +## Form Theme on Windows + +This property allows you to select explicitely the interface theme you wish to be used when the form is executed on Windows. By default, forms inherit from the [global project theme settings](../settings/interface.md) but you can override this setting for each form. + +Os valores disponíveis são: + +- **Inherited** (default): inherits from the project theme +- **Classic**: use the Windows classic interface theme +- **Fluent UI**: use the [Fluent UI](../FormEditor/forms.md#fluent-ui-rendering) interface theme ([when available](../FormEditor/forms.md#requirements)). + +:::note + +This property is ignored on macOS. + +::: + +#### Gramática JSON + +| Nome | Tipo de dados | Valores possíveis | +| -------- | ------------- | ----------------- | +| fluentUI | boolean | true, false | + +If the property is not defined, the "inherited" option is selected. + +--- + ## Tipo de formulário O tipo de formulário, *ou seja*, seu destino, define as características que estarão disponíveis para o formulário. Por exemplo, [markers](properties_Markers.md) só pode ser definido para formulários de tabela de lista (saída). @@ -210,4 +237,3 @@ Você pode usar referências dinâmicas para definir os títulos das janelas dos | ----------- | ------------- | ------------------------------------------------------ | | windowTitle | string | O nome da janela como texto simples ou como referência | - diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/FormEditor/properties_JSONref.md b/i18n/pt/docusaurus-plugin-content-docs/current/FormEditor/properties_JSONref.md index 9374cf7a2a9906..8f9f0297d99126 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/current/FormEditor/properties_JSONref.md +++ b/i18n/pt/docusaurus-plugin-content-docs/current/FormEditor/properties_JSONref.md @@ -22,6 +22,7 @@ Esta página fornece uma lista abrangente de todas as propriedades do formulári | [`entryOrder`](formEditor.md#data-entry-order) | El orden en el cual los objetos activos son seleccionados cuando la tecla **Tab** o la tecla **Retorno de carro** se utilizan en un formulario de entrada | Coleção de nomes de objectos 4D Form | | [`events`](Events/overview.md) | Lista de todos os eventos selecionados para o objeto ou formulário | Coleção de nomes de eventos, por exemplo, ["onClick", "onDataChange"...]. | | **f** | | | +| [`fluentUI`](properties_FormProperties.md#fluentui) | Use fluent UI rendering for the form on Windows | true, false | | [`formSizeAnchor`](./properties_FormSize.md#size-based-on) | Nome do objeto cuja posição determina o tamanho do formulário. (minimum length: 1) | Nome de um objecto 4D | | **h** | | | | [`height`](properties_FormSize.md#height) | Altura do formulário | mínimo: 0 | @@ -51,4 +52,4 @@ Esta página fornece uma lista abrangente de todas as propriedades do formulári | [`windowMinWidth`](properties_WindowSize.md#maximum-width-minimum-width) | A menor largura permitida de janela do formulário | mínimo: 0 | | [`windowSizingX`](properties_WindowSize.md#fixed-width) | Dimensionamento vertical da janela do formulário | "fixed", "variable" | | [`windowSizingY`](properties_WindowSize.md#fixed-height) | Dimensionamento horizontal da janela do formulário | "fixed", "variable" | -| [`windowTitle`](properties_FormProperties.md#window-title) | Designa o título de uma janela do formulário | Um nome para a janela do formulário | \ No newline at end of file +| [`windowTitle`](properties_FormProperties.md#window-title) | Designa o título de uma janela do formulário | Um nome para a janela do formulário | diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/FormObjects/button_overview.md b/i18n/pt/docusaurus-plugin-content-docs/current/FormObjects/button_overview.md index dd14a9df5da264..96d8b040419403 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/current/FormObjects/button_overview.md +++ b/i18n/pt/docusaurus-plugin-content-docs/current/FormObjects/button_overview.md @@ -277,11 +277,13 @@ O estilo do botão Ajuda pode ser usado para exibir um botão padrão de ajuda d ### Círculo -O estilo de botão Círculo aparece como um botão sistema redondo. Este estilo de botão foi concebido para macOS. +O estilo de botão Círculo aparece como um botão sistema redondo. ![](../assets/en/FormObjects/button_circleM.png) -No Windows, ele é idêntico ao estilo "Nenhum" (o círculo no plano de fundo não é considerado). +This button style is supported on macOS and [Windows Fluent UI theme](../FormEditor/forms.md#enabling-the-fluent-ui-rendering). + +On Windows Classic UI theme, it is identical to the “None” style (the circle in the background is not taken into account). #### Exemplo JSON: diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/FormObjects/properties_Appearance.md b/i18n/pt/docusaurus-plugin-content-docs/current/FormObjects/properties_Appearance.md index d96c95189aa65a..ba061e86fc30b2 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/current/FormObjects/properties_Appearance.md +++ b/i18n/pt/docusaurus-plugin-content-docs/current/FormObjects/properties_Appearance.md @@ -35,6 +35,12 @@ No Windows, o conceito de "escolha recomendada" não é compatível: somente o b Durante a execução, um campo ou qualquer área introduzível é delineado por um retângulo de seleção quando tem o foco (através da tecla Tab ou de um único clique). Pode ocultar este retângulo ativando esta propriedade. Ocultar o retângulo de foco pode ser útil no caso de interfaces específicas. +:::note + +The focus rectangle is only available on macOS and (for text and picture [inputs](input_overview.md)) on Windows with [Fluent UI](../FormEditor/forms.md#fluent-ui-rendering) enabled. It is not supported on Windows classic UI. + +::: + #### Gramática JSON | Nome | Tipo de dados | Valores possíveis | diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/Menus/sdi.md b/i18n/pt/docusaurus-plugin-content-docs/current/Menus/sdi.md index 40dfe972bb617b..f212fefbf5198f 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/current/Menus/sdi.md +++ b/i18n/pt/docusaurus-plugin-content-docs/current/Menus/sdi.md @@ -92,6 +92,6 @@ Embora seja tratado de forma transparente por 4D, o modo SDI introduz pequenas v :::info -Você pode usar o comando [**Application info**](../commands-legacy/application-info.md) para saber o modo de execução atual no Windows. +Você pode usar o comando [**Application info**](../commands/application-info.md) para saber o modo de execução atual no Windows. ::: \ No newline at end of file diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/WebServer/http-request-handler.md b/i18n/pt/docusaurus-plugin-content-docs/current/WebServer/http-request-handler.md index c7087a7d78fa5c..e740c2b1e7f345 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/current/WebServer/http-request-handler.md +++ b/i18n/pt/docusaurus-plugin-content-docs/current/WebServer/http-request-handler.md @@ -22,11 +22,14 @@ Custom HTTP Request handlers are supported in the following context: - [scalable sessions](./sessions.md#enabling-web-sessions) or [no sessions](../settings/web.md#no-sessions) are enabled, - a web server run locally by 4D or 4D Server, including those [run by components](./webServerObject.md). -:::warning +### Authentication and Privileges -For security reasons, external access to the datastore can be disallowed in 4D. Você precisa configurar os [privilégios ORDA](../ORDA/privileges.md) para permitir solicitações HTTP. +Since HTTP Request handler functions are called from standard web requests (they do not contain `/rest/xxx` pattern like REST requests), they are not subject to the [**Force login**](../REST/authUsers.md#force-login-mode) rules. It means that they can be executed without prior authentication, i.e. without a call to [`setPrivileges()`](../API/SessionClass.md#setprivileges) on the session, in which case they will be executed in a *guest* session. -::: +However, these functions need to have appropriate **permissions**, like all requests executed from web processes. When the handler function is called, the **privileges** of its web session must allow the code to run properly. Any other resources accessed within the code (data, other functions...) also need to be allowed by permissions. In [*restricted mode by default*](../ORDA/privileges.md#restriction-modes), you must configure the privileges: + +- If a HTTP Request handler can open a new, unauthenticated session (which is the case for example when your application provides **deep linking** feature), you need to make sure that the *guest* privilege is allowed to execute the handler function and access all subsequent resources. +- If a HTTP Request handler function can be executed within an already authenticated session, you need to make sure the user session is allowed to execute the handler function and access all subsequent resources. Note that this can also happen with deep linking if you copy/paste the link into a browser where you are already authenticated for the application and the session is still active (provided that the 4D session cookie is *Lax*). ## How to set handlers @@ -260,7 +263,7 @@ It is **not recommended** to expose request handler functions to external REST c ### Input: an instance of the 4D.IncomingMessage class -When a request has been intercepted by the handler, it is received on the server as an instance of the [4D.IncomingMessage class](../API/IncomingMessageClass.md). +Quando uma solicitação foi interceptada pelo manipulador, ela é recebida no servidor como uma instância da [4D.IncomingMessage clas](../API/IncomingMessageClass.md). All necessary information about the request are available in this object, including the request url, verb, headers, and, if any, parameters (put in the URL) and body. diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/assets/en/FormObjects/fluentui-setting.png b/i18n/pt/docusaurus-plugin-content-docs/current/assets/en/FormObjects/fluentui-setting.png index e8c5e02f62431f..4957d89dec8ac3 100644 Binary files a/i18n/pt/docusaurus-plugin-content-docs/current/assets/en/FormObjects/fluentui-setting.png and b/i18n/pt/docusaurus-plugin-content-docs/current/assets/en/FormObjects/fluentui-setting.png differ diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/commands/command-index.md b/i18n/pt/docusaurus-plugin-content-docs/current/commands/command-index.md index a9cbf55451d04c..a7961a15550c62 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/current/commands/command-index.md +++ b/i18n/pt/docusaurus-plugin-content-docs/current/commands/command-index.md @@ -35,7 +35,7 @@ title: Commands by name [`APPEND TO ARRAY`](../commands-legacy/append-to-array.md)
    [`APPEND TO LIST`](../commands-legacy/append-to-list.md)
    [`Application file`](../commands-legacy/application-file.md)
    -[`Application info`](../commands-legacy/application-info.md)
    +[`Application info`](application-info.md)
    [`Application type`](../commands-legacy/application-type.md)
    [`Application version`](../commands-legacy/application-version.md)
    [`APPLY TO SELECTION`](../commands-legacy/apply-to-selection.md)
    @@ -337,6 +337,7 @@ title: Commands by name [`FORM SET OUTPUT`](../commands-legacy/form-set-output.md)
    [`FORM SET SIZE`](../commands-legacy/form-set-size.md)
    [`FORM SET VERTICAL RESIZING`](../commands-legacy/form-set-vertical-resizing.md)
    +[`FORM theme`](form-theme.md) **new 4D 21 R2**
    [`FORM UNLOAD`](../commands-legacy/form-unload.md)
    [`Formula`](formula.md)
    [`Formula from string`](formula-from-string.md)
    diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/commands/theme/4D_Environment.md b/i18n/pt/docusaurus-plugin-content-docs/current/commands/theme/4D_Environment.md index de50db631e5b62..546826767f468b 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/current/commands/theme/4D_Environment.md +++ b/i18n/pt/docusaurus-plugin-content-docs/current/commands/theme/4D_Environment.md @@ -8,7 +8,7 @@ slug: /commands/theme/4D-Environment | | | --------------------------------------------------------------------------------------------------------------------------------------------- | | [](../../commands-legacy/application-file.md)
    | -| [](../../commands-legacy/application-info.md)
    | +| [](../../commands/application-info.md)
    | | [](../../commands-legacy/application-type.md)
    | | [](../../commands-legacy/application-version.md)
    | | [](../../commands-legacy/build-application.md)
    | diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/commands/theme/Forms.md b/i18n/pt/docusaurus-plugin-content-docs/current/commands/theme/Forms.md index 0ca90d6457dc2e..81c9b778919a1c 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/current/commands/theme/Forms.md +++ b/i18n/pt/docusaurus-plugin-content-docs/current/commands/theme/Forms.md @@ -31,3 +31,5 @@ slug: /commands/theme/Forms | [](../../commands-legacy/form-set-size.md)
    | | [](../../commands-legacy/form-set-vertical-resizing.md)
    | | [](../../commands-legacy/form-unload.md)
    | +| [](../../commands/form-windows-theme.md)
    | + diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/commands/theme/Web_Server.md b/i18n/pt/docusaurus-plugin-content-docs/current/commands/theme/Web_Server.md index 3a6f378477ddc9..f6a7f7d0fc2c9e 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/current/commands/theme/Web_Server.md +++ b/i18n/pt/docusaurus-plugin-content-docs/current/commands/theme/Web_Server.md @@ -7,8 +7,8 @@ slug: /commands/theme/Web-Server | | | --------------------------------------------------------------------------------------------------------------------------------------- | -| [](../../commands/web-event.md)
    | -| [](../../commands/web-form.md)
    | +| [](../../commands/web-event.md)
    | +| [](../../commands/web-form.md)
    | | [](../../commands-legacy/web-get-body-part.md)
    | | [](../../commands-legacy/web-get-body-part-count.md)
    | | [](../../commands-legacy/web-get-current-session-id.md)
    | diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/settings/client-server.md b/i18n/pt/docusaurus-plugin-content-docs/current/settings/client-server.md index 4fd62d255b810f..f479d7921c18e7 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/current/settings/client-server.md +++ b/i18n/pt/docusaurus-plugin-content-docs/current/settings/client-server.md @@ -75,7 +75,7 @@ This drop-down box contains 3 network layer options to choose between: **legacy* **Notas**: - Al seleccionar esta opción, se anula la opción Utilizar capa de red heredada en caso de que se haya definido mediante el comando [SET DATABASE PARAMETER](../commands-legacy/set-database-parameter.md). - - Você pode saber se uma aplicação 4D está sendo executado com uma camada de rede QUIC usando o comando [Application info](../commands-legacy/application-info.md). + - Você pode saber se uma aplicação 4D está sendo executado com uma camada de rede QUIC usando o comando [Application info](../commands/application-info.md). - Como o QUIC usa o protocolo UDP, certifique-se de que o UDP seja permitido em suas configurações de segurança de rede. - O QUIC liga-se automaticamente à porta 19813 tanto para o servidor de aplicações como para o servidor DB4D. - Quando a opção de camada QUIC é selecionada: diff --git a/i18n/pt/docusaurus-plugin-content-docs/current/settings/interface.md b/i18n/pt/docusaurus-plugin-content-docs/current/settings/interface.md index 9b249ce8754399..1054b5e6f27d26 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/current/settings/interface.md +++ b/i18n/pt/docusaurus-plugin-content-docs/current/settings/interface.md @@ -35,7 +35,7 @@ Puede definir la [frecuencia de escritura de la caché](database.md#memory-page) - **Progreso de la impresión**: permite, durante la impresión, activar o desactivar la visualización de la caja de diálogo de progreso de la impresión. -- **Usar modo SDI en Windows**: cuando esta opción está marcada, 4D habilita automáticamente el [modo SDI (Single-Document Interface)](../Menus/sdi.md) en su aplicación cuando se ejecuta en un [contexto soportado](../Menus/sdi.md#sdi-mode-availability). Al seleccionar esta opción, en Windows el menú **Ejecutar** de la barra de menú de 4D le permite seleccionar el modo en el que desea probar la aplicación: +- **Use SDI mode on Windows**: When this option is checked, 4D enables automatically the [SDI mode (Single-Document Interface)](../Menus/sdi.md) in your application when executed in a [supported context](../Menus/sdi.md#sdi-mode-availability). Al seleccionar esta opción, en Windows el menú **Ejecutar** de la barra de menú de 4D le permite seleccionar el modo en el que desea probar la aplicación: ![](../assets/en/settings/sdi-mdi.png) @@ -45,11 +45,11 @@ Esta opção pode ser selecionada no macOS, mas será ignorada quando o aplicati ::: -### Aparência +### Esquema de cores Esse menu permite que você selecione o esquema de cores a ser usado no nível do aplicativo principal. Um esquema de cores define um conjunto global de cores de interface para textos, planos de fundo, janelas, etc., usados em seus formulários. -> Esta opção só funciona no macOS. No Windows, é sempre utilizado o esquema "Light". +> This option is ignored on Windows with [Classic theme](#use-fluent-ui-on-windows). In this context, the "Light" scheme is always used. Os seguintes esquemas estão disponíveis: @@ -66,6 +66,16 @@ O esquema de aplicação principal será aplicado aos formulários por defeito. - por el comando [SET APPLICATION COLOR SCHEME](../commands-legacy/set-application-color-scheme.md) a nivel de la sesión de trabajo; - utilizando la propiedad de formulario [Color Scheme](../FormEditor/propertiesForm.html#color-scheme) en cada nivel de formulario (nivel de prioridad más alto). **Nota:** cuando se imprimen, los formularios utilizan siempre la paleta "Light". +### Use Fluent UI on Windows + +When this option is checked, 4D will automatically use the [Fluent UI rendering theme](../FormEditor/forms.md#fluent-ui-rendering) for all your forms on Windows, [when available](../FormEditor/forms.md#requirements). When it is unchecked, the Windows Classic UI rendering theme will be used by default. + +> This option is only used on Windows, it has no effect on macOS. + +This project setting can be overriden at form level by using the [Widget appearance](../FormEditor/propertiesForm.html#widget-appearance) form property (highest priority level). + +> Rendering themes can be handled using CSS. Para más información, consulte la sección [Media Queries](../FormEditor/createStylesheet.md#media-queries). + ## Atalhos Você usa a área de atalhos para visualizar e modificar atalhos padrão para três operações básicas de formulário 4D em seus aplicativos de desktop. Esses atalhos são idênticos em ambas as plataformas. Os ícones das teclas indicam as teclas correspondentes para Windows e macOS. diff --git a/i18n/pt/docusaurus-plugin-content-docs/version-20-R10/WebServer/http-request-handler.md b/i18n/pt/docusaurus-plugin-content-docs/version-20-R10/WebServer/http-request-handler.md index 1de6c9b89e4d15..36482e897573bd 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/version-20-R10/WebServer/http-request-handler.md +++ b/i18n/pt/docusaurus-plugin-content-docs/version-20-R10/WebServer/http-request-handler.md @@ -249,7 +249,7 @@ It is **not recommended** to expose request handler functions to external REST c ### Input: an instance of the 4D.IncomingMessage class -When a request has been intercepted by the handler, it is received on the server as an instance of the [4D.IncomingMessage class](../API/IncomingMessageClass.md). +Quando uma solicitação foi interceptada pelo manipulador, ela é recebida no servidor como uma instância da [4D.IncomingMessage clas](../API/IncomingMessageClass.md). All necessary information about the request are available in this object, including the request url, verb, headers, and, if any, parameters (put in the URL) and body. diff --git a/i18n/pt/docusaurus-plugin-content-docs/version-21/API/WebFormClass.md b/i18n/pt/docusaurus-plugin-content-docs/version-21/API/WebFormClass.md index 064b559a834bca..b44aefb0cef8ae 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/version-21/API/WebFormClass.md +++ b/i18n/pt/docusaurus-plugin-content-docs/version-21/API/WebFormClass.md @@ -18,7 +18,7 @@ The `WebForm` class contains functions and properties allowing to handle your Qo | | | ------------------------------------------------------------------------------------------------------------------------------- | -| [](#componentname)
    | +| [](#componentname)
    | | [](#disablestate)
    | | [](#enablestate)
    | | [](#seterror)
    | @@ -27,11 +27,11 @@ The `WebForm` class contains functions and properties allowing to handle your Qo ### *.componentName* -***.componentName*** : [4D.WebFormItem](WebFormItemClass.md) +***.componentName*** : [4D.WebFormItem](WebFormItemClass.md) #### Descrição -The components of web pages are objects that are available directly as properties of these web pages. +The components of web pages are objects that are available directly as properties of these web pages. The returned objects are of the [`4D.WebFormItem`](WebFormItemClass.md) class. These objects have functions that you can use to manage your components dynamically. @@ -60,9 +60,9 @@ While `myForm` may not display typical object properties when examined in the de -| Parâmetro | Tipo | | Descrição | -| --------- | ------ | :-: | ------------------------------------------ | -| state | string | -> | Name of state to disable from the web page | +| Parâmetro | Tipo | | Descrição | +| --------- | ---- | :-: | ------------------------------------------------- | +| state | Text | -> | Nome do estado a ser desativado no formulário Web | @@ -85,9 +85,9 @@ For more information on web pages states, please refer to the [States section in -| Parâmetro | Tipo | | Descrição | -| --------- | ------ | :-: | ---------------------------------------- | -| state | string | -> | Name of state to enable on the web pages | +| Parâmetro | Tipo | | Descrição | +| --------- | ---- | :-: | ---------------------------------------------- | +| state | Text | -> | Nome do estado a ser ativado no formulário Web | @@ -121,9 +121,9 @@ Function authenticationError() -| Parâmetro | Tipo | | Descrição | -| --------- | ------ | :-: | ---------------------------------------- | -| msg | string | -> | Error message to display in the web page | +| Parâmetro | Tipo | | Descrição | +| --------- | ---- | :-: | ------------------------------------------------ | +| msg | Text | -> | Mensagem de erro a ser exibida no formulário Web | @@ -156,9 +156,9 @@ If the [**Provide feedback**](https://developer.4d.com/qodly/4DQodlyPro/pageLoad -| Parâmetro | Tipo | | Descrição | -| --------- | ------ | :-: | ---------------------------------------------- | -| msg | string | -> | Information message to display in the web page | +| Parâmetro | Tipo | | Descrição | +| --------- | ---- | :-: | ---------------------------------------------------- | +| msg | Text | -> | Mensagem informativa a ser exibida no formulário Web | @@ -191,9 +191,9 @@ If the [**Provide feedback**](https://developer.4d.com/qodly/4DQodlyPro/pageLoad -| Parâmetro | Tipo | | Descrição | -| --------- | ------ | :-: | ------------------------------------------ | -| msg | string | -> | Warning message to display in the web page | +| Parâmetro | Tipo | | Descrição | +| --------- | ---- | :-: | ------------------------------------------------- | +| msg | Text | -> | Mensagem de aviso a ser exibida no formulário Web | @@ -224,4 +224,4 @@ If the [**Provide feedback**](https://developer.4d.com/qodly/4DQodlyPro/pageLoad [Web Form](../commands/web-form.md)
    [Web Event](../commands/web-event.md)
    -[WebFormItem class](../API/WebFormItemClass.md) \ No newline at end of file +[WebFormItem class](../API/WebFormItemClass.md) diff --git a/i18n/pt/docusaurus-plugin-content-docs/version-21/WebServer/http-request-handler.md b/i18n/pt/docusaurus-plugin-content-docs/version-21/WebServer/http-request-handler.md index c7087a7d78fa5c..e740c2b1e7f345 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/version-21/WebServer/http-request-handler.md +++ b/i18n/pt/docusaurus-plugin-content-docs/version-21/WebServer/http-request-handler.md @@ -22,11 +22,14 @@ Custom HTTP Request handlers are supported in the following context: - [scalable sessions](./sessions.md#enabling-web-sessions) or [no sessions](../settings/web.md#no-sessions) are enabled, - a web server run locally by 4D or 4D Server, including those [run by components](./webServerObject.md). -:::warning +### Authentication and Privileges -For security reasons, external access to the datastore can be disallowed in 4D. Você precisa configurar os [privilégios ORDA](../ORDA/privileges.md) para permitir solicitações HTTP. +Since HTTP Request handler functions are called from standard web requests (they do not contain `/rest/xxx` pattern like REST requests), they are not subject to the [**Force login**](../REST/authUsers.md#force-login-mode) rules. It means that they can be executed without prior authentication, i.e. without a call to [`setPrivileges()`](../API/SessionClass.md#setprivileges) on the session, in which case they will be executed in a *guest* session. -::: +However, these functions need to have appropriate **permissions**, like all requests executed from web processes. When the handler function is called, the **privileges** of its web session must allow the code to run properly. Any other resources accessed within the code (data, other functions...) also need to be allowed by permissions. In [*restricted mode by default*](../ORDA/privileges.md#restriction-modes), you must configure the privileges: + +- If a HTTP Request handler can open a new, unauthenticated session (which is the case for example when your application provides **deep linking** feature), you need to make sure that the *guest* privilege is allowed to execute the handler function and access all subsequent resources. +- If a HTTP Request handler function can be executed within an already authenticated session, you need to make sure the user session is allowed to execute the handler function and access all subsequent resources. Note that this can also happen with deep linking if you copy/paste the link into a browser where you are already authenticated for the application and the session is still active (provided that the 4D session cookie is *Lax*). ## How to set handlers @@ -260,7 +263,7 @@ It is **not recommended** to expose request handler functions to external REST c ### Input: an instance of the 4D.IncomingMessage class -When a request has been intercepted by the handler, it is received on the server as an instance of the [4D.IncomingMessage class](../API/IncomingMessageClass.md). +Quando uma solicitação foi interceptada pelo manipulador, ela é recebida no servidor como uma instância da [4D.IncomingMessage clas](../API/IncomingMessageClass.md). All necessary information about the request are available in this object, including the request url, verb, headers, and, if any, parameters (put in the URL) and body. diff --git a/i18n/pt/docusaurus-plugin-content-docs/version-21/WebServer/sessions.md b/i18n/pt/docusaurus-plugin-content-docs/version-21/WebServer/sessions.md index dec0cf655b0a60..5f6e1b176a1341 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/version-21/WebServer/sessions.md +++ b/i18n/pt/docusaurus-plugin-content-docs/version-21/WebServer/sessions.md @@ -23,7 +23,7 @@ As sessões Web permitem: As sessões Web são usadas para: - [Web applications](gettingStarted.md) sending http requests (including [SOAP Web services](../commands/theme/Web_Services_Server.md) and [/4DACTION](../WebServer/httpRequests.md#4daction) requests), -- calls to the [REST API](../REST/authUsers.md), which are used by [remote datastores](../ORDA/remoteDatastores.md) and [Qodly forms](qodly-studio.md). +- calls to the [REST API](../REST/authUsers.md), which are used by [remote datastores](../ORDA/remoteDatastores.md) and [Qodly pages](https://developer.4d.com/qodly/). ## Enabling web sessions {#enabling-web-sessions} diff --git a/i18n/pt/docusaurus-plugin-content-docs/version-21/commands/theme/Web_Server.md b/i18n/pt/docusaurus-plugin-content-docs/version-21/commands/theme/Web_Server.md index 3a6f378477ddc9..f6a7f7d0fc2c9e 100644 --- a/i18n/pt/docusaurus-plugin-content-docs/version-21/commands/theme/Web_Server.md +++ b/i18n/pt/docusaurus-plugin-content-docs/version-21/commands/theme/Web_Server.md @@ -7,8 +7,8 @@ slug: /commands/theme/Web-Server | | | --------------------------------------------------------------------------------------------------------------------------------------- | -| [](../../commands/web-event.md)
    | -| [](../../commands/web-form.md)
    | +| [](../../commands/web-event.md)
    | +| [](../../commands/web-form.md)
    | | [](../../commands-legacy/web-get-body-part.md)
    | | [](../../commands-legacy/web-get-body-part-count.md)
    | | [](../../commands-legacy/web-get-current-session-id.md)
    | diff --git a/versioned_docs/version-21/commands-legacy/method-resolve-path.md b/versioned_docs/version-21/commands-legacy/method-resolve-path.md index e31bd840699ae5..5b58d9690b2770 100644 --- a/versioned_docs/version-21/commands-legacy/method-resolve-path.md +++ b/versioned_docs/version-21/commands-legacy/method-resolve-path.md @@ -26,6 +26,7 @@ The *methodType* parameter receives a value indicating the type of the method. Y | Constant | Type | Value | Comment | | -------------------- | ------- | ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Path class | Integer | 32 | Path of class definition. Example:
    *\[class\]/Person*
    *\[class\]/Student*| | Path database method | Integer | 2 | Path of database methods specified. List of these methods:
    *\[databaseMethod\]/onStartup
    \[databaseMethod\]/onExit
    \[databaseMethod\]/onDrop
    \[databaseMethod\]/onBackupStartup
    \[databaseMethod\]/onBackupShutdown
    \[databaseMethod\]/onWebConnection
    \[databaseMethod\]/onWebAuthentication
    \[databaseMethod\]/onWebSessionSuspend
    \[databaseMethod\]/onServerStartup
    \[databaseMethod\]/onServerShutdown
    \[databaseMethod\]/onServerOpenConnection
    \[databaseMethod\]/onServerCloseConnection
    \[databaseMethod\]/onSystemEvent
    \[databaseMethod\]/onSqlAuthentication
    * *\[databaseMethod\]/* *onHostDatabaseEvent
    * *\[databaseMethod\]/* *onRESTAuthentication
    * *\[databaseMethod\]/* *onMobileAppAuthentication
    * *\[databaseMethod\]/* *onMobileAppAction* *
    * | | Path project form | Integer | 4 | Path of project form methods and all their object methods. Examples:
    *\[projectForm\]/myForm/{formMethod}
    \[projectForm\]/myForm/button1
    \[projectForm\]/myForm/mylist
    \[projectForm\]/myForm/button1* | | Path project method | Integer | 1 | Name of method.
    Example: *MyProjectMethod* |