Update corteza-locale dep

This commit is contained in:
Jože Fortun
2022-03-16 14:25:29 +01:00
parent b6ff0f9210
commit 5197cb3dc3
13 changed files with 22 additions and 747 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ require (
github.com/SentimensRG/ctx v0.0.0-20180729130232-0bfd988c655d
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
github.com/brianvoe/gofakeit/v6 v6.12.1
github.com/cortezaproject/corteza-locale v0.0.0-20220304144401-64d27e16a10b
github.com/cortezaproject/corteza-locale v0.0.0-20220316130533-4cb957f72e45
github.com/crewjam/saml v0.4.6
github.com/crusttech/go-oidc v0.0.0-20180918092017-982855dad3e1
github.com/davecgh/go-spew v1.1.1
+2
View File
@@ -151,6 +151,8 @@ github.com/cortezaproject/corteza-locale v0.0.0-20220303121557-895f8cda4757 h1:b
github.com/cortezaproject/corteza-locale v0.0.0-20220303121557-895f8cda4757/go.mod h1:wsI1UftEdBqTuEDKBZmx2LfNu/kZun5pRbCAi420JCg=
github.com/cortezaproject/corteza-locale v0.0.0-20220304144401-64d27e16a10b h1:NcHxSAxbxCiH1isno9SPe4MqpfQoI8Xiv0edwxGGL3E=
github.com/cortezaproject/corteza-locale v0.0.0-20220304144401-64d27e16a10b/go.mod h1:wsI1UftEdBqTuEDKBZmx2LfNu/kZun5pRbCAi420JCg=
github.com/cortezaproject/corteza-locale v0.0.0-20220316130533-4cb957f72e45 h1:7nOFmZEzsyU4CFh8tviRP9NZTWkgizGd+ChBpbmP744=
github.com/cortezaproject/corteza-locale v0.0.0-20220316130533-4cb957f72e45/go.mod h1:wsI1UftEdBqTuEDKBZmx2LfNu/kZun5pRbCAi420JCg=
github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE=
github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
@@ -1,124 +0,0 @@
---
calculate: Field expressions provide a way to calculate field values based on the defined expression.
categories:
dateTime:
earliest: Returns earliest DateTime
label: Date and Time
latest: Returns latest DateTime
modTime: Returns modified DateTime string
parseDuration: Returns parsed duration
parseISOTime: Returns parsed ISO DateTime string
strftime: Returns DateTime string for the specified date and format
general:
description: Returns the first non null value
label: General
number:
ceil: Rounds number up to the nearest integer
floor: Rounds number down to the nearest integer
label: Number
max: Returns item with the highest value
min: Returns item with the lowest value
rounds: Rounds a floating point number to the specified number of digits
string:
format: Returns the formatted string
label: String
longest: Returns the longest string
shortest: Returns the shortest string
toLower: Converts all characters to lowercase
toUpper: Converts all characters to uppercase
trim: Removes spaces at the beginning and at the end of the string
trimLeft: Removes character from the beginning of the string
trimRight: Removes character from the end of the string
example-description: Below are a few examples of different use cases of field expressions.
examples: Examples
field: Field Expressions
formatCategories:
dateTime:
A: Returns the full national weekday name
B: Returns the full national month name
C: Returns year / 100 as a decimal number; single digits are preceded by a zero
D: Equivalent to %m/%d/%y
F: Equivalent to %Y-%m-%d
H: Returns the hour (24-hour clock) as a decimal number (00-23)
I: Returns the hour (12-hour clock) as a decimal number (01-12)
M: Returns the minute as a decimal number (00-59)
R: Equivalent to %H:%M
S-middle: Returns the millisecond as a decimal number (000-999)
S-second: Returns the second as a decimal number (00-60)
T: Equivalent to %H:%M:%S
U: Returns the week number of the year (Sunday as the first day of the week) as a decimal number (00-53)
V: Returns the week number of the year (Monday as the first day of the week) as a decimal number (01-53)
W: Returns the week number of the year (Monday as the first day of the week) as a decimal number (00-53)
X: Returns the national representation of the time
"Y": Returns the year with century as a decimal number
Z: Returns the time zone name
a: Returns the abbreviated national weekday name
b: Returns the abbreviated national month name
c: Returns the national representation of time and date
d: Returns the day of the month as a decimal number (01-31)
e: Returns the day of the month as a decimal number (1-31)
j: Returns the day of the year as a decimal number (001-366)
k: Returns the hour (24-hour clock) as a decimal number (0-23)
l: Returns the hour (12-hour clock) as a decimal number (1-12)
label: Date and Time formatting
m: Returns the month as a decimal number (01-12)
"n": |-
Returns a newline (
)
p: Returns the national representation of either "ante meridiem" (a.m.) or "post meridiem" (p.m.)
percent: Returns a %
r: Equivalent to %I:%M:%S %p
t: Returns a tab
u: Returns the weekday (Monday as the first day of the week) as a decimal number (1-7)
v: Equivalent to %e-%b-%Y
w: Returns the weekday (Sunday as the first day of the week) as a decimal number (0-6)
x: Returns the national representation of the date
"y": Returns the year without century as a decimal number (00-99)
z: Returns the time zone offset from UTC
string:
E: Returns the floating point number in scientific notation; upper-case E
O: Returns the number in base 8 with 0o prefix
X: Returns the number in base 16; upper-case A-F
b: Returns the number in base 2 (in the binary format)
binary: Returns the floating point number in scientific notation with binary exponent
d: Returns the number in base 10
e: Returns the floating point number in scientific notation; lower-case e
f: Returns the floating point number with a decimal point
label: String formatting
o: Returns the number in base 8
t: Returns the boolean value as true/false
v: Returns the raw value
x: Returns the number in base 16; lower-case a-f
formatting-parameters:
description: Here is a complete list of available formatting options.
label: Formatting parameters
helper-functions:
description: We provide a set of helper functions that extend the capabilites of field expressions.
label: Helper functions
note: 'NOTE: Only the "General" functions can be used on all types of fields. The other functions are limited to their respective field type.'
instructions: 'To write the expression you can use the following operators:'
operators:
all-new-values: (Alle neuen Variablen)
comparators: 'Comparators: '
control-order: 'Control order of evaluation: '
field-name: field-name
location: 'Depending on where the field expression is used it has access to different variables:'
logical: 'Logical: '
modifiers: 'Modifiers: '
more: 'More: '
new: new
new-value: (neuer-Wert)
new-value-with-comma: '(neuer-Wert), '
old: old
old-value: oldValue
old-value-brackets: '(old value), '
record: '(record), '
sanitizer: Sanitizer
sanitizers: 'Sanitizers: '
validator: Validator
validators: 'Validators: '
value: value
value-expression: Value expression
value-expressions: 'Value expressions: '
values: values
write: Writing field expressions is like writing an equation. Instead of only using constants, you can pass in the field name, and it will be evaluated as the field value for that record.
@@ -0,0 +1,5 @@
label:
clear: Clear
none: None
now: Now
today: Today
@@ -1,123 +0,0 @@
calculate: Field expressions provide a way to calculate field values based on the defined expression.
categories:
dateTime:
earliest: Returns earliest DateTime
label: Date and Time
latest: Returns latest DateTime
modTime: Returns modified DateTime string
parseDuration: Returns parsed duration
parseISOTime: Returns parsed ISO DateTime string
strftime: Returns DateTime string for the specified date and format
general:
description: Returns the first non null value
label: General
number:
ceil: Rounds number up to the nearest integer
floor: Rounds number down to the nearest integer
label: Number
max: Returns item with the highest value
min: Returns item with the lowest value
rounds: Rounds a floating point number to the specified number of digits
string:
format: Returns the formatted string
label: String
longest: Returns the longest string
shortest: Returns the shortest string
toLower: Converts all characters to lowercase
toUpper: Converts all characters to uppercase
trim: Removes spaces at the beginning and at the end of the string
trimLeft: Removes character from the beginning of the string
trimRight: Removes character from the end of the string
example-description: Below are a few examples of different use cases of field expressions.
examples: Examples
field: Field Expressions
formatCategories:
dateTime:
A: Returns the full national weekday name
B: Returns the full national month name
C: Returns year / 100 as a decimal number; single digits are preceded by a zero
D: Equivalent to %m/%d/%y
F: Equivalent to %Y-%m-%d
H: Returns the hour (24-hour clock) as a decimal number (00-23)
I: Returns the hour (12-hour clock) as a decimal number (01-12)
M: Returns the minute as a decimal number (00-59)
R: Equivalent to %H:%M
S-middle: Returns the millisecond as a decimal number (000-999)
S-second: Returns the second as a decimal number (00-60)
T: Equivalent to %H:%M:%S
U: Returns the week number of the year (Sunday as the first day of the week) as a decimal number (00-53)
V: Returns the week number of the year (Monday as the first day of the week) as a decimal number (01-53)
W: Returns the week number of the year (Monday as the first day of the week) as a decimal number (00-53)
X: Returns the national representation of the time
"Y": Returns the year with century as a decimal number
Z: Returns the time zone name
a: Returns the abbreviated national weekday name
b: Returns the abbreviated national month name
c: Returns the national representation of time and date
d: Returns the day of the month as a decimal number (01-31)
e: Returns the day of the month as a decimal number (1-31)
j: Returns the day of the year as a decimal number (001-366)
k: Returns the hour (24-hour clock) as a decimal number (0-23)
l: Returns the hour (12-hour clock) as a decimal number (1-12)
label: Date and Time formatting
m: Returns the month as a decimal number (01-12)
"n": |-
Returns a newline (
)
p: Returns the national representation of either "ante meridiem" (a.m.) or "post meridiem" (p.m.)
percent: Returns a %
r: Equivalent to %I:%M:%S %p
t: Returns a tab
u: Returns the weekday (Monday as the first day of the week) as a decimal number (1-7)
v: Equivalent to %e-%b-%Y
w: Returns the weekday (Sunday as the first day of the week) as a decimal number (0-6)
x: Returns the national representation of the date
"y": Returns the year without century as a decimal number (00-99)
z: Returns the time zone offset from UTC
string:
E: Returns the floating point number in scientific notation; upper-case E
O: Returns the number in base 8 with 0o prefix
X: Returns the number in base 16; upper-case A-F
b: Returns the number in base 2 (in the binary format)
binary: Returns the floating point number in scientific notation with binary exponent
d: Returns the number in base 10
e: Returns the floating point number in scientific notation; lower-case e
f: Returns the floating point number with a decimal point
label: String formatting
o: Returns the number in base 8
t: Returns the boolean value as true/false
v: Returns the raw value
x: Returns the number in base 16; lower-case a-f
formatting-parameters:
description: Here is a complete list of available formatting options.
label: Formatting parameters
helper-functions:
description: We provide a set of helper functions that extend the capabilites of field expressions.
label: Helper functions
note: 'NOTE: Only the "General" functions can be used on all types of fields. The other functions are limited to their respective field type.'
instructions: 'To write the expression you can use the following operators:'
operators:
all-new-values: (all new values)
comparators: 'Comparators: '
control-order: 'Control order of evaluation: '
field-name: field-name
location: 'Depending on where the field expression is used it has access to different variables:'
logical: 'Logical: '
modifiers: 'Modifiers: '
more: 'More: '
new: new
new-value: (new-value)
new-value-with-comma: '(new-value), '
old: old
old-value: oldValue
old-value-brackets: '(old value), '
record: '(record), '
sanitizer: Sanitizer
sanitizers: 'Sanitizers: '
validator: Validator
validators: 'Validators: '
value: value
value-expression: Value expression
value-expressions: 'Value expressions: '
values: values
write: Writing field expressions is like writing an equation. Instead of only using constants, you can pass in the field name, and it will be evaluated as the field value for that record.
@@ -12,6 +12,7 @@ label:
browse: Browse
buttons: Buttons
cancel: Cancel
clear: Clear
clone: Clone
close: Close
create: Create
@@ -36,9 +37,10 @@ label:
multi: Multi value
name: Name
next: Next
"no": "No"
no: No
noHandle: No handle
none: None
now: Now
ok: Ok
openBookmarks: Open bookmarks
pageBuilder: Page builder
@@ -56,6 +58,7 @@ label:
status: Status
timeHour: '{{t}}h'
timeMinute: '{{t}}min'
today: Today
title: Title
type: Type
updatedAt: Updated at
@@ -64,7 +67,7 @@ label:
urlPlaceholder: https://example.tld
validation: Validation
view: View
"yes": "Yes"
yes: Yes
navigation:
chart: Charts
namespace: Namespaces
@@ -2,11 +2,14 @@ label:
add: Add
ascending: Ascending
back: Back
clear: Clear
delete: Delete
descending: Descending
name: Name
none: None
now: Now
ok: Ok
openLinkInNewTab: Open link in a new tab
save: Save
today: Today
urlPlaceholder: https://example.tld
@@ -1,3 +1,4 @@
clear: Clear
description: Description
enabled: Enabled
error: Error
@@ -13,6 +14,9 @@ import:
label: Label
name: Name
new-workflow: New Workflow
none: None
now: Now
offset: Offset
offset-expression: Offset (expression)
permissions: Permissions
@@ -20,4 +24,5 @@ search-workflows: Type here to search all workflows...
unnamed-workflow: Unnamed Workflow
workflow-list: List of Workflows
save: Save
today: Today
cancel: Cancel
@@ -1,124 +0,0 @@
---
calculate: Field expressions provide a way to calculate field values based on the defined expression.
categories:
dateTime:
earliest: Returns earliest DateTime
label: Date and Time
latest: Returns latest DateTime
modTime: Returns modified DateTime string
parseDuration: Returns parsed duration
parseISOTime: Returns parsed ISO DateTime string
strftime: Returns DateTime string for the specified date and format
general:
description: Returns the first non null value
label: General
number:
ceil: Rounds number up to the nearest integer
floor: Rounds number down to the nearest integer
label: Number
max: Returns item with the highest value
min: Returns item with the lowest value
rounds: Rounds a floating point number to the specified number of digits
string:
format: Returns the formatted string
label: String
longest: Returns the longest string
shortest: Returns the shortest string
toLower: Converts all characters to lowercase
toUpper: Converts all characters to uppercase
trim: Removes spaces at the beginning and at the end of the string
trimLeft: Removes character from the beginning of the string
trimRight: Removes character from the end of the string
example-description: Below are a few examples of different use cases of field expressions.
examples: Examples
field: Field Expressions
formatCategories:
dateTime:
A: Returns the full national weekday name
B: Returns the full national month name
C: Returns year / 100 as a decimal number; single digits are preceded by a zero
D: Equivalent to %m/%d/%y
F: Equivalent to %Y-%m-%d
H: Returns the hour (24-hour clock) as a decimal number (00-23)
I: Returns the hour (12-hour clock) as a decimal number (01-12)
M: Returns the minute as a decimal number (00-59)
R: Equivalent to %H:%M
S-middle: Returns the millisecond as a decimal number (000-999)
S-second: Returns the second as a decimal number (00-60)
T: Equivalent to %H:%M:%S
U: Returns the week number of the year (Sunday as the first day of the week) as a decimal number (00-53)
V: Returns the week number of the year (Monday as the first day of the week) as a decimal number (01-53)
W: Returns the week number of the year (Monday as the first day of the week) as a decimal number (00-53)
X: Returns the national representation of the time
"Y": Returns the year with century as a decimal number
Z: Returns the time zone name
a: Returns the abbreviated national weekday name
b: Returns the abbreviated national month name
c: Returns the national representation of time and date
d: Returns the day of the month as a decimal number (01-31)
e: Returns the day of the month as a decimal number (1-31)
j: Returns the day of the year as a decimal number (001-366)
k: Returns the hour (24-hour clock) as a decimal number (0-23)
l: Returns the hour (12-hour clock) as a decimal number (1-12)
label: Date and Time formatting
m: Returns the month as a decimal number (01-12)
"n": |-
Returns a newline (
)
p: Returns the national representation of either "ante meridiem" (a.m.) or "post meridiem" (p.m.)
percent: Returns a %
r: Equivalent to %I:%M:%S %p
t: Returns a tab
u: Returns the weekday (Monday as the first day of the week) as a decimal number (1-7)
v: Equivalent to %e-%b-%Y
w: Returns the weekday (Sunday as the first day of the week) as a decimal number (0-6)
x: Returns the national representation of the date
"y": Returns the year without century as a decimal number (00-99)
z: Returns the time zone offset from UTC
string:
E: Returns the floating point number in scientific notation; upper-case E
O: Returns the number in base 8 with 0o prefix
X: Returns the number in base 16; upper-case A-F
b: Returns the number in base 2 (in the binary format)
binary: Returns the floating point number in scientific notation with binary exponent
d: Returns the number in base 10
e: Returns the floating point number in scientific notation; lower-case e
f: Returns the floating point number with a decimal point
label: String formatting
o: Returns the number in base 8
t: Returns the boolean value as true/false
v: Returns the raw value
x: Returns the number in base 16; lower-case a-f
formatting-parameters:
description: Here is a complete list of available formatting options.
label: Formatting parameters
helper-functions:
description: We provide a set of helper functions that extend the capabilites of field expressions.
label: Helper functions
note: 'NOTE: Only the "General" functions can be used on all types of fields. The other functions are limited to their respective field type.'
instructions: 'To write the expression you can use the following operators:'
operators:
all-new-values: (all new values)
comparators: 'Comparators: '
control-order: 'Control order of evaluation: '
field-name: field-name
location: 'Depending on where the field expression is used it has access to different variables:'
logical: 'Logical: '
modifiers: 'Modifiers: '
more: 'More: '
new: new
new-value: (new-value)
new-value-with-comma: '(new-value), '
old: old
old-value: oldValue
old-value-brackets: '(old value), '
record: '(record), '
sanitizer: Sanitizer
sanitizers: 'Sanitizers: '
validator: Validator
validators: 'Validators: '
value: value
value-expression: Value expression
value-expressions: 'Value expressions: '
values: values
write: Writing field expressions is like writing an equation. Instead of only using constants, you can pass in the field name, and it will be evaluated as the field value for that record.
@@ -1,124 +0,0 @@
---
calculate: Field expressions provide a way to calculate field values based on the defined expression.
categories:
dateTime:
earliest: Returns earliest DateTime
label: Date and Time
latest: Returns latest DateTime
modTime: Returns modified DateTime string
parseDuration: Returns parsed duration
parseISOTime: Returns parsed ISO DateTime string
strftime: Returns DateTime string for the specified date and format
general:
description: Returns the first non null value
label: General
number:
ceil: Rounds number up to the nearest integer
floor: Rounds number down to the nearest integer
label: Number
max: Returns item with the highest value
min: Returns item with the lowest value
rounds: Rounds a floating point number to the specified number of digits
string:
format: Returns the formatted string
label: String
longest: Returns the longest string
shortest: Returns the shortest string
toLower: Converts all characters to lowercase
toUpper: Converts all characters to uppercase
trim: Removes spaces at the beginning and at the end of the string
trimLeft: Removes character from the beginning of the string
trimRight: Removes character from the end of the string
example-description: Below are a few examples of different use cases of field expressions.
examples: Examples
field: Field Expressions
formatCategories:
dateTime:
A: Returns the full national weekday name
B: Returns the full national month name
C: Returns year / 100 as a decimal number; single digits are preceded by a zero
D: Equivalent to %m/%d/%y
F: Equivalent to %Y-%m-%d
H: Returns the hour (24-hour clock) as a decimal number (00-23)
I: Returns the hour (12-hour clock) as a decimal number (01-12)
M: Returns the minute as a decimal number (00-59)
R: Equivalent to %H:%M
S-middle: Returns the millisecond as a decimal number (000-999)
S-second: Returns the second as a decimal number (00-60)
T: Equivalent to %H:%M:%S
U: Returns the week number of the year (Sunday as the first day of the week) as a decimal number (00-53)
V: Returns the week number of the year (Monday as the first day of the week) as a decimal number (01-53)
W: Returns the week number of the year (Monday as the first day of the week) as a decimal number (00-53)
X: Returns the national representation of the time
"Y": Returns the year with century as a decimal number
Z: Returns the time zone name
a: Returns the abbreviated national weekday name
b: Returns the abbreviated national month name
c: Returns the national representation of time and date
d: Returns the day of the month as a decimal number (01-31)
e: Returns the day of the month as a decimal number (1-31)
j: Returns the day of the year as a decimal number (001-366)
k: Returns the hour (24-hour clock) as a decimal number (0-23)
l: Returns the hour (12-hour clock) as a decimal number (1-12)
label: Date and Time formatting
m: Returns the month as a decimal number (01-12)
"n": |-
Returns a newline (
)
p: Returns the national representation of either "ante meridiem" (a.m.) or "post meridiem" (p.m.)
percent: Returns a %
r: Equivalent to %I:%M:%S %p
t: Returns a tab
u: Returns the weekday (Monday as the first day of the week) as a decimal number (1-7)
v: Equivalent to %e-%b-%Y
w: Returns the weekday (Sunday as the first day of the week) as a decimal number (0-6)
x: Returns the national representation of the date
"y": Returns the year without century as a decimal number (00-99)
z: Returns the time zone offset from UTC
string:
E: Returns the floating point number in scientific notation; upper-case E
O: Returns the number in base 8 with 0o prefix
X: Returns the number in base 16; upper-case A-F
b: Returns the number in base 2 (in the binary format)
binary: Returns the floating point number in scientific notation with binary exponent
d: Returns the number in base 10
e: Returns the floating point number in scientific notation; lower-case e
f: Returns the floating point number with a decimal point
label: String formatting
o: Returns the number in base 8
t: Returns the boolean value as true/false
v: Returns the raw value
x: Returns the number in base 16; lower-case a-f
formatting-parameters:
description: Here is a complete list of available formatting options.
label: Formatting parameters
helper-functions:
description: We provide a set of helper functions that extend the capabilites of field expressions.
label: Helper functions
note: 'NOTE: Only the "General" functions can be used on all types of fields. The other functions are limited to their respective field type.'
instructions: 'To write the expression you can use the following operators:'
operators:
all-new-values: (all new values)
comparators: 'Comparators: '
control-order: 'Control order of evaluation: '
field-name: field-name
location: 'Depending on where the field expression is used it has access to different variables:'
logical: 'Logical: '
modifiers: 'Modifiers: '
more: 'More: '
new: new
new-value: (new-value)
new-value-with-comma: '(new-value), '
old: old
old-value: oldValue
old-value-brackets: '(old value), '
record: '(record), '
sanitizer: Sanitizer
sanitizers: 'Sanitizers: '
validator: Validator
validators: 'Validators: '
value: value
value-expression: Value expression
value-expressions: 'Value expressions: '
values: values
write: Writing field expressions is like writing an equation. Instead of only using constants, you can pass in the field name, and it will be evaluated as the field value for that record.
@@ -1,124 +0,0 @@
---
calculate: Field expressions provide a way to calculate field values based on the defined expression.
categories:
dateTime:
earliest: Returns earliest DateTime
label: Date and Time
latest: Returns latest DateTime
modTime: Returns modified DateTime string
parseDuration: Returns parsed duration
parseISOTime: Returns parsed ISO DateTime string
strftime: Returns DateTime string for the specified date and format
general:
description: Returns the first non null value
label: General
number:
ceil: Rounds number up to the nearest integer
floor: Rounds number down to the nearest integer
label: Number
max: Returns item with the highest value
min: Returns item with the lowest value
rounds: Rounds a floating point number to the specified number of digits
string:
format: Returns the formatted string
label: String
longest: Returns the longest string
shortest: Returns the shortest string
toLower: Converts all characters to lowercase
toUpper: Converts all characters to uppercase
trim: Removes spaces at the beginning and at the end of the string
trimLeft: Removes character from the beginning of the string
trimRight: Removes character from the end of the string
example-description: Below are a few examples of different use cases of field expressions.
examples: Examples
field: Field Expressions
formatCategories:
dateTime:
A: Returns the full national weekday name
B: Returns the full national month name
C: Returns year / 100 as a decimal number; single digits are preceded by a zero
D: Equivalent to %m/%d/%y
F: Equivalent to %Y-%m-%d
H: Returns the hour (24-hour clock) as a decimal number (00-23)
I: Returns the hour (12-hour clock) as a decimal number (01-12)
M: Returns the minute as a decimal number (00-59)
R: Equivalent to %H:%M
S-middle: Returns the millisecond as a decimal number (000-999)
S-second: Returns the second as a decimal number (00-60)
T: Equivalent to %H:%M:%S
U: Returns the week number of the year (Sunday as the first day of the week) as a decimal number (00-53)
V: Returns the week number of the year (Monday as the first day of the week) as a decimal number (01-53)
W: Returns the week number of the year (Monday as the first day of the week) as a decimal number (00-53)
X: Returns the national representation of the time
"Y": Returns the year with century as a decimal number
Z: Returns the time zone name
a: Returns the abbreviated national weekday name
b: Returns the abbreviated national month name
c: Returns the national representation of time and date
d: Returns the day of the month as a decimal number (01-31)
e: Returns the day of the month as a decimal number (1-31)
j: Returns the day of the year as a decimal number (001-366)
k: Returns the hour (24-hour clock) as a decimal number (0-23)
l: Returns the hour (12-hour clock) as a decimal number (1-12)
label: Date and Time formatting
m: Returns the month as a decimal number (01-12)
"n": |-
Returns a newline (
)
p: Returns the national representation of either "ante meridiem" (a.m.) or "post meridiem" (p.m.)
percent: Returns a %
r: Equivalent to %I:%M:%S %p
t: Returns a tab
u: Returns the weekday (Monday as the first day of the week) as a decimal number (1-7)
v: Equivalent to %e-%b-%Y
w: Returns the weekday (Sunday as the first day of the week) as a decimal number (0-6)
x: Returns the national representation of the date
"y": Returns the year without century as a decimal number (00-99)
z: Returns the time zone offset from UTC
string:
E: Returns the floating point number in scientific notation; upper-case E
O: Returns the number in base 8 with 0o prefix
X: Returns the number in base 16; upper-case A-F
b: Returns the number in base 2 (in the binary format)
binary: Returns the floating point number in scientific notation with binary exponent
d: Returns the number in base 10
e: Returns the floating point number in scientific notation; lower-case e
f: Returns the floating point number with a decimal point
label: String formatting
o: Returns the number in base 8
t: Returns the boolean value as true/false
v: Returns the raw value
x: Returns the number in base 16; lower-case a-f
formatting-parameters:
description: Here is a complete list of available formatting options.
label: Formatting parameters
helper-functions:
description: We provide a set of helper functions that extend the capabilites of field expressions.
label: Helper functions
note: 'NOTE: Only the "General" functions can be used on all types of fields. The other functions are limited to their respective field type.'
instructions: 'To write the expression you can use the following operators:'
operators:
all-new-values: (all new values)
comparators: 'Comparators: '
control-order: 'Control order of evaluation: '
field-name: field-name
location: 'Depending on where the field expression is used it has access to different variables:'
logical: 'Logical: '
modifiers: 'Modifiers: '
more: 'More: '
new: new
new-value: (new-value)
new-value-with-comma: '(new-value), '
old: old
old-value: oldValue
old-value-brackets: '(old value), '
record: '(record), '
sanitizer: Sanitizer
sanitizers: 'Sanitizers: '
validator: Validator
validators: 'Validators: '
value: value
value-expression: Value expression
value-expressions: 'Value expressions: '
values: values
write: Writing field expressions is like writing an equation. Instead of only using constants, you can pass in the field name, and it will be evaluated as the field value for that record.
@@ -1,124 +0,0 @@
---
calculate: Field expressions provide a way to calculate field values based on the defined expression.
categories:
dateTime:
earliest: Returns earliest DateTime
label: Date and Time
latest: Returns latest DateTime
modTime: Returns modified DateTime string
parseDuration: Returns parsed duration
parseISOTime: Returns parsed ISO DateTime string
strftime: Returns DateTime string for the specified date and format
general:
description: Returns the first non null value
label: General
number:
ceil: Rounds number up to the nearest integer
floor: Rounds number down to the nearest integer
label: Number
max: Returns item with the highest value
min: Returns item with the lowest value
rounds: Rounds a floating point number to the specified number of digits
string:
format: Returns the formatted string
label: String
longest: Returns the longest string
shortest: Returns the shortest string
toLower: Converts all characters to lowercase
toUpper: Converts all characters to uppercase
trim: Removes spaces at the beginning and at the end of the string
trimLeft: Removes character from the beginning of the string
trimRight: Removes character from the end of the string
example-description: Below are a few examples of different use cases of field expressions.
examples: Examples
field: Field Expressions
formatCategories:
dateTime:
A: Returns the full national weekday name
B: Returns the full national month name
C: Returns year / 100 as a decimal number; single digits are preceded by a zero
D: Equivalent to %m/%d/%y
F: Equivalent to %Y-%m-%d
H: Returns the hour (24-hour clock) as a decimal number (00-23)
I: Returns the hour (12-hour clock) as a decimal number (01-12)
M: Returns the minute as a decimal number (00-59)
R: Equivalent to %H:%M
S-middle: Returns the millisecond as a decimal number (000-999)
S-second: Returns the second as a decimal number (00-60)
T: Equivalent to %H:%M:%S
U: Returns the week number of the year (Sunday as the first day of the week) as a decimal number (00-53)
V: Returns the week number of the year (Monday as the first day of the week) as a decimal number (01-53)
W: Returns the week number of the year (Monday as the first day of the week) as a decimal number (00-53)
X: Returns the national representation of the time
"Y": Returns the year with century as a decimal number
Z: Returns the time zone name
a: Returns the abbreviated national weekday name
b: Returns the abbreviated national month name
c: Returns the national representation of time and date
d: Returns the day of the month as a decimal number (01-31)
e: Returns the day of the month as a decimal number (1-31)
j: Returns the day of the year as a decimal number (001-366)
k: Returns the hour (24-hour clock) as a decimal number (0-23)
l: Returns the hour (12-hour clock) as a decimal number (1-12)
label: Date and Time formatting
m: Returns the month as a decimal number (01-12)
"n": |-
Returns a newline (
)
p: Returns the national representation of either "ante meridiem" (a.m.) or "post meridiem" (p.m.)
percent: Returns a %
r: Equivalent to %I:%M:%S %p
t: Returns a tab
u: Returns the weekday (Monday as the first day of the week) as a decimal number (1-7)
v: Equivalent to %e-%b-%Y
w: Returns the weekday (Sunday as the first day of the week) as a decimal number (0-6)
x: Returns the national representation of the date
"y": Returns the year without century as a decimal number (00-99)
z: Returns the time zone offset from UTC
string:
E: Returns the floating point number in scientific notation; upper-case E
O: Returns the number in base 8 with 0o prefix
X: Returns the number in base 16; upper-case A-F
b: Returns the number in base 2 (in the binary format)
binary: Returns the floating point number in scientific notation with binary exponent
d: Returns the number in base 10
e: Returns the floating point number in scientific notation; lower-case e
f: Returns the floating point number with a decimal point
label: String formatting
o: Returns the number in base 8
t: Returns the boolean value as true/false
v: Returns the raw value
x: Returns the number in base 16; lower-case a-f
formatting-parameters:
description: Here is a complete list of available formatting options.
label: Formatting parameters
helper-functions:
description: We provide a set of helper functions that extend the capabilites of field expressions.
label: Helper functions
note: 'NOTE: Only the "General" functions can be used on all types of fields. The other functions are limited to their respective field type.'
instructions: 'To write the expression you can use the following operators:'
operators:
all-new-values: (all new values)
comparators: 'Comparators: '
control-order: 'Control order of evaluation: '
field-name: field-name
location: 'Depending on where the field expression is used it has access to different variables:'
logical: 'Logical: '
modifiers: 'Modifiers: '
more: 'More: '
new: new
new-value: (new-value)
new-value-with-comma: '(new-value), '
old: old
old-value: oldValue
old-value-brackets: '(old value), '
record: '(record), '
sanitizer: Sanitizer
sanitizers: 'Sanitizers: '
validator: Validator
validators: 'Validators: '
value: value
value-expression: Value expression
value-expressions: 'Value expressions: '
values: values
write: Writing field expressions is like writing an equation. Instead of only using constants, you can pass in the field name, and it will be evaluated as the field value for that record.
+1 -1
View File
@@ -49,7 +49,7 @@ github.com/brianvoe/gofakeit/v6/data
# github.com/cespare/xxhash/v2 v2.1.2
## explicit
github.com/cespare/xxhash/v2
# github.com/cortezaproject/corteza-locale v0.0.0-20220304144401-64d27e16a10b
# github.com/cortezaproject/corteza-locale v0.0.0-20220316130533-4cb957f72e45
## explicit
github.com/cortezaproject/corteza-locale
# github.com/crewjam/httperr v0.2.0