first commit
This commit is contained in:
41
vendor/rockettheme/toolbox/Blueprints/tests/data/blueprint/basic.yaml
vendored
Normal file
41
vendor/rockettheme/toolbox/Blueprints/tests/data/blueprint/basic.yaml
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
rules:
|
||||
name:
|
||||
pattern: "[A-Z][a-z]+"
|
||||
min: 3
|
||||
max: 15
|
||||
|
||||
form:
|
||||
validation: loose
|
||||
fields:
|
||||
text:
|
||||
type: text
|
||||
label: Text
|
||||
placeholder: 'Enter your text'
|
||||
|
||||
enabled:
|
||||
type: select
|
||||
label: Enabled
|
||||
default: true
|
||||
data-options@: blueprint_data_option_test
|
||||
|
||||
user.name:
|
||||
type: name
|
||||
label: Name
|
||||
default: John
|
||||
validate:
|
||||
type: name
|
||||
|
||||
user.country:
|
||||
type: select
|
||||
label: Enabled
|
||||
default: fi
|
||||
data-options@:
|
||||
- blueprint_data_option_test
|
||||
- { us: 'United States', fi: 'Finland', po: 'Poland' }
|
||||
- true
|
||||
|
||||
undefined:
|
||||
type: select
|
||||
label: Undefined
|
||||
data-options@: undefined_function
|
||||
|
0
vendor/rockettheme/toolbox/Blueprints/tests/data/blueprint/empty.yaml
vendored
Normal file
0
vendor/rockettheme/toolbox/Blueprints/tests/data/blueprint/empty.yaml
vendored
Normal file
17
vendor/rockettheme/toolbox/Blueprints/tests/data/blueprint/extends.yaml
vendored
Normal file
17
vendor/rockettheme/toolbox/Blueprints/tests/data/blueprint/extends.yaml
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
extends@: parent@
|
||||
|
||||
form:
|
||||
fields:
|
||||
enabled:
|
||||
default: false
|
||||
|
||||
text:
|
||||
default: My text
|
||||
ordering@: enabled
|
||||
|
||||
user.name:
|
||||
default: Joe
|
||||
unset-validate@: true
|
||||
|
||||
undefined:
|
||||
unset@: true
|
4
vendor/rockettheme/toolbox/Blueprints/tests/data/blueprint/import.yaml
vendored
Normal file
4
vendor/rockettheme/toolbox/Blueprints/tests/data/blueprint/import.yaml
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
form:
|
||||
fields:
|
||||
address:
|
||||
import@: partials/address
|
17
vendor/rockettheme/toolbox/Blueprints/tests/data/blueprint/partials/address.yaml
vendored
Normal file
17
vendor/rockettheme/toolbox/Blueprints/tests/data/blueprint/partials/address.yaml
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
form:
|
||||
fields:
|
||||
user.address:
|
||||
type: text
|
||||
label: Address
|
||||
|
||||
user.zip:
|
||||
type: text
|
||||
label: ZIP code
|
||||
|
||||
user.city:
|
||||
type: text
|
||||
label: City
|
||||
|
||||
user.country:
|
||||
type: text
|
||||
label: Country
|
40
vendor/rockettheme/toolbox/Blueprints/tests/data/form/items/basic.yaml
vendored
Normal file
40
vendor/rockettheme/toolbox/Blueprints/tests/data/form/items/basic.yaml
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
rules:
|
||||
name:
|
||||
pattern: '[A-Z][a-z]+'
|
||||
min: 3
|
||||
max: 15
|
||||
form:
|
||||
validation: loose
|
||||
fields:
|
||||
text:
|
||||
type: text
|
||||
label: Text
|
||||
placeholder: 'Enter your text'
|
||||
name: text
|
||||
enabled:
|
||||
type: select
|
||||
label: Enabled
|
||||
default: true
|
||||
data-options@: blueprint_data_option_test
|
||||
name: enabled
|
||||
user.name:
|
||||
type: name
|
||||
label: Name
|
||||
default: John
|
||||
validate:
|
||||
type: name
|
||||
name: user.name
|
||||
user.country:
|
||||
type: select
|
||||
label: Enabled
|
||||
default: fi
|
||||
data-options@:
|
||||
- blueprint_data_option_test
|
||||
- { us: 'United States', fi: Finland, po: Poland }
|
||||
- true
|
||||
name: user.country
|
||||
undefined:
|
||||
type: select
|
||||
label: Undefined
|
||||
data-options@: undefined_function
|
||||
name: undefined
|
1
vendor/rockettheme/toolbox/Blueprints/tests/data/form/items/empty.yaml
vendored
Normal file
1
vendor/rockettheme/toolbox/Blueprints/tests/data/form/items/empty.yaml
vendored
Normal file
@ -0,0 +1 @@
|
||||
{ }
|
34
vendor/rockettheme/toolbox/Blueprints/tests/data/form/items/extends.yaml
vendored
Normal file
34
vendor/rockettheme/toolbox/Blueprints/tests/data/form/items/extends.yaml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
rules:
|
||||
name:
|
||||
pattern: '[A-Z][a-z]+'
|
||||
min: 3
|
||||
max: 15
|
||||
form:
|
||||
validation: loose
|
||||
fields:
|
||||
enabled:
|
||||
type: select
|
||||
label: Enabled
|
||||
default: false
|
||||
data-options@: blueprint_data_option_test
|
||||
name: enabled
|
||||
text:
|
||||
type: text
|
||||
label: Text
|
||||
placeholder: 'Enter your text'
|
||||
default: 'My text'
|
||||
name: text
|
||||
user.name:
|
||||
type: name
|
||||
label: Name
|
||||
default: Joe
|
||||
name: user.name
|
||||
user.country:
|
||||
type: select
|
||||
label: Enabled
|
||||
default: fi
|
||||
data-options@:
|
||||
- blueprint_data_option_test
|
||||
- { us: 'United States', fi: Finland, po: Poland }
|
||||
- true
|
||||
name: user.country
|
8
vendor/rockettheme/toolbox/Blueprints/tests/data/form/items/import.yaml
vendored
Normal file
8
vendor/rockettheme/toolbox/Blueprints/tests/data/form/items/import.yaml
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
form:
|
||||
fields:
|
||||
address:
|
||||
fields:
|
||||
user.address: { type: text, label: Address, name: user.address }
|
||||
user.zip: { type: text, label: 'ZIP code', name: user.zip }
|
||||
user.city: { type: text, label: City, name: user.city }
|
||||
user.country: { type: text, label: Country, name: user.country }
|
12
vendor/rockettheme/toolbox/Blueprints/tests/data/input/basic.yaml
vendored
Normal file
12
vendor/rockettheme/toolbox/Blueprints/tests/data/input/basic.yaml
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
text: Testing...
|
||||
user:
|
||||
name: Igor
|
||||
extra: data...
|
||||
|
||||
some:
|
||||
random: false
|
||||
variables:
|
||||
- true
|
||||
- false
|
||||
just: for
|
||||
fun:
|
7
vendor/rockettheme/toolbox/Blueprints/tests/data/input/empty.yaml
vendored
Normal file
7
vendor/rockettheme/toolbox/Blueprints/tests/data/input/empty.yaml
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
some:
|
||||
random: false
|
||||
variables:
|
||||
- true
|
||||
- false
|
||||
just: for
|
||||
fun:
|
4
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/defaults/basic.yaml
vendored
Normal file
4
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/defaults/basic.yaml
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
enabled: true
|
||||
user:
|
||||
name: John
|
||||
country: fi
|
0
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/defaults/empty.yaml
vendored
Normal file
0
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/defaults/empty.yaml
vendored
Normal file
8
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/extra/basic.yaml
vendored
Normal file
8
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/extra/basic.yaml
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
some:
|
||||
random: false
|
||||
variables:
|
||||
- true
|
||||
- false
|
||||
just: for
|
||||
fun:
|
||||
user.extra: data...
|
7
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/extra/empty.yaml
vendored
Normal file
7
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/extra/empty.yaml
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
some:
|
||||
random: false
|
||||
variables:
|
||||
- true
|
||||
- false
|
||||
just: for
|
||||
fun:
|
88
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/init/basic.yaml
vendored
Normal file
88
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/init/basic.yaml
vendored
Normal file
@ -0,0 +1,88 @@
|
||||
items:
|
||||
'':
|
||||
form:
|
||||
validation: loose
|
||||
type: _root
|
||||
form_field: false
|
||||
text:
|
||||
type: text
|
||||
label: Text
|
||||
placeholder: 'Enter your text'
|
||||
validation: loose
|
||||
name: text
|
||||
enabled:
|
||||
type: select
|
||||
label: Enabled
|
||||
default: true
|
||||
data-options@: blueprint_data_option_test
|
||||
validation: loose
|
||||
name: enabled
|
||||
options:
|
||||
'yes': 'Yes'
|
||||
'no': 'No'
|
||||
user:
|
||||
type: _parent
|
||||
name: user
|
||||
form_field: false
|
||||
user.name:
|
||||
type: name
|
||||
label: Name
|
||||
default: John
|
||||
validate:
|
||||
type: name
|
||||
validation: loose
|
||||
name: user.name
|
||||
user.country:
|
||||
type: select
|
||||
label: Enabled
|
||||
default: fi
|
||||
data-options@:
|
||||
- blueprint_data_option_test
|
||||
-
|
||||
us: 'United States'
|
||||
fi: Finland
|
||||
po: Poland
|
||||
- true
|
||||
validation: loose
|
||||
name: user.country
|
||||
options:
|
||||
fi: Finland
|
||||
po: Poland
|
||||
us: 'United States'
|
||||
undefined:
|
||||
type: select
|
||||
label: Undefined
|
||||
data-options@: undefined_function
|
||||
validation: loose
|
||||
name: undefined
|
||||
rules:
|
||||
name:
|
||||
pattern: '[A-Z][a-z]+'
|
||||
min: 3
|
||||
max: 15
|
||||
nested:
|
||||
'': ''
|
||||
text: text
|
||||
enabled: enabled
|
||||
user:
|
||||
name: user.name
|
||||
country: user.country
|
||||
undefined: undefined
|
||||
dynamic:
|
||||
enabled:
|
||||
options:
|
||||
action: data
|
||||
params: blueprint_data_option_test
|
||||
user.country:
|
||||
options:
|
||||
action: data
|
||||
params:
|
||||
- blueprint_data_option_test
|
||||
- { us: 'United States', fi: Finland, po: Poland }
|
||||
- true
|
||||
undefined:
|
||||
options:
|
||||
action: data
|
||||
params: undefined_function
|
||||
filter:
|
||||
validation: true
|
11
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/init/empty.yaml
vendored
Normal file
11
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/init/empty.yaml
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
items:
|
||||
'':
|
||||
form: { }
|
||||
type: _root
|
||||
form_field: false
|
||||
rules: { }
|
||||
nested:
|
||||
'': ''
|
||||
dynamic: { }
|
||||
filter:
|
||||
validation: true
|
14
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/merge/basic.yaml
vendored
Normal file
14
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/merge/basic.yaml
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
text: Testing...
|
||||
user:
|
||||
name: Igor
|
||||
country: fi
|
||||
extra: data...
|
||||
|
||||
some:
|
||||
random: false
|
||||
variables:
|
||||
- true
|
||||
- false
|
||||
just: for
|
||||
fun:
|
||||
enabled: true
|
7
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/merge/empty.yaml
vendored
Normal file
7
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/merge/empty.yaml
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
some:
|
||||
random: false
|
||||
variables:
|
||||
- true
|
||||
- false
|
||||
just: for
|
||||
fun:
|
81
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/state/basic.yaml
vendored
Normal file
81
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/state/basic.yaml
vendored
Normal file
@ -0,0 +1,81 @@
|
||||
items:
|
||||
'':
|
||||
form:
|
||||
validation: loose
|
||||
type: _root
|
||||
form_field: false
|
||||
text:
|
||||
type: text
|
||||
label: Text
|
||||
placeholder: 'Enter your text'
|
||||
validation: loose
|
||||
name: text
|
||||
enabled:
|
||||
type: select
|
||||
label: Enabled
|
||||
default: true
|
||||
data-options@: blueprint_data_option_test
|
||||
validation: loose
|
||||
name: enabled
|
||||
user:
|
||||
type: _parent
|
||||
name: user
|
||||
form_field: false
|
||||
user.name:
|
||||
type: name
|
||||
label: Name
|
||||
default: John
|
||||
validate:
|
||||
type: name
|
||||
validation: loose
|
||||
name: user.name
|
||||
user.country:
|
||||
type: select
|
||||
label: Enabled
|
||||
default: fi
|
||||
data-options@:
|
||||
- blueprint_data_option_test
|
||||
-
|
||||
us: 'United States'
|
||||
fi: Finland
|
||||
po: Poland
|
||||
- true
|
||||
validation: loose
|
||||
name: user.country
|
||||
undefined:
|
||||
type: select
|
||||
label: Undefined
|
||||
data-options@: undefined_function
|
||||
validation: loose
|
||||
name: undefined
|
||||
rules:
|
||||
name:
|
||||
pattern: '[A-Z][a-z]+'
|
||||
min: 3
|
||||
max: 15
|
||||
nested:
|
||||
'': ''
|
||||
text: text
|
||||
enabled: enabled
|
||||
user:
|
||||
name: user.name
|
||||
country: user.country
|
||||
undefined: undefined
|
||||
dynamic:
|
||||
enabled:
|
||||
options:
|
||||
action: data
|
||||
params: blueprint_data_option_test
|
||||
user.country:
|
||||
options:
|
||||
action: data
|
||||
params:
|
||||
- blueprint_data_option_test
|
||||
- { us: 'United States', fi: Finland, po: Poland }
|
||||
- true
|
||||
undefined:
|
||||
options:
|
||||
action: data
|
||||
params: undefined_function
|
||||
filter:
|
||||
validation: true
|
11
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/state/empty.yaml
vendored
Normal file
11
vendor/rockettheme/toolbox/Blueprints/tests/data/schema/state/empty.yaml
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
items:
|
||||
'':
|
||||
form: { }
|
||||
type: _root
|
||||
form_field: false
|
||||
rules: { }
|
||||
nested:
|
||||
'': ''
|
||||
dynamic: { }
|
||||
filter:
|
||||
validation: true
|
Reference in New Issue
Block a user