@cooperco/cooper-component-library 0.1.98 → 0.1.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cms/0085-add-vertical-alignment-to-content-module.cjs +36 -0
- package/dist/cms/contentful/migrations/scripts/0085-add-vertical-alignment-to-content-module.cjs +36 -0
- package/dist/cms/migrations/scripts/0085-add-vertical-alignment-to-content-module.cjs +36 -0
- package/dist/cms/scripts/0085-add-vertical-alignment-to-content-module.cjs +36 -0
- package/dist/lib/component-lib.js +2337 -2295
- package/dist/lib/component-lib.umd.cjs +8 -8
- package/dist/lib/css/main.css +1 -0
- package/dist/lib/style.css +1 -1
- package/dist/types/src/components/Accordion/AccordionTileItem.vue.d.ts +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const contentModule = migration.editContentType('contentModule')
|
|
6
|
+
|
|
7
|
+
contentModule.createField('verticalAlignment', {
|
|
8
|
+
name: 'Vertical Alignment',
|
|
9
|
+
type: 'Symbol',
|
|
10
|
+
validations: [
|
|
11
|
+
{
|
|
12
|
+
in: ['Top', 'Center', 'Bottom'],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
contentModule.changeFieldControl(
|
|
18
|
+
'verticalAlignment',
|
|
19
|
+
'builtin',
|
|
20
|
+
'dropdown',
|
|
21
|
+
{
|
|
22
|
+
helpText:
|
|
23
|
+
'Set the vertical alignment of the content module within its container.',
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
contentModule.moveField('verticalAlignment').afterField('alignment')
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
// @ts-check
|
|
31
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
32
|
+
down: function (migration) {
|
|
33
|
+
const contentModule = migration.editContentType('contentModule')
|
|
34
|
+
contentModule.deleteField('verticalAlignment')
|
|
35
|
+
},
|
|
36
|
+
}
|
package/dist/cms/contentful/migrations/scripts/0085-add-vertical-alignment-to-content-module.cjs
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const contentModule = migration.editContentType('contentModule')
|
|
6
|
+
|
|
7
|
+
contentModule.createField('verticalAlignment', {
|
|
8
|
+
name: 'Vertical Alignment',
|
|
9
|
+
type: 'Symbol',
|
|
10
|
+
validations: [
|
|
11
|
+
{
|
|
12
|
+
in: ['Top', 'Center', 'Bottom'],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
contentModule.changeFieldControl(
|
|
18
|
+
'verticalAlignment',
|
|
19
|
+
'builtin',
|
|
20
|
+
'dropdown',
|
|
21
|
+
{
|
|
22
|
+
helpText:
|
|
23
|
+
'Set the vertical alignment of the content module within its container.',
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
contentModule.moveField('verticalAlignment').afterField('alignment')
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
// @ts-check
|
|
31
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
32
|
+
down: function (migration) {
|
|
33
|
+
const contentModule = migration.editContentType('contentModule')
|
|
34
|
+
contentModule.deleteField('verticalAlignment')
|
|
35
|
+
},
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const contentModule = migration.editContentType('contentModule')
|
|
6
|
+
|
|
7
|
+
contentModule.createField('verticalAlignment', {
|
|
8
|
+
name: 'Vertical Alignment',
|
|
9
|
+
type: 'Symbol',
|
|
10
|
+
validations: [
|
|
11
|
+
{
|
|
12
|
+
in: ['Top', 'Center', 'Bottom'],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
contentModule.changeFieldControl(
|
|
18
|
+
'verticalAlignment',
|
|
19
|
+
'builtin',
|
|
20
|
+
'dropdown',
|
|
21
|
+
{
|
|
22
|
+
helpText:
|
|
23
|
+
'Set the vertical alignment of the content module within its container.',
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
contentModule.moveField('verticalAlignment').afterField('alignment')
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
// @ts-check
|
|
31
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
32
|
+
down: function (migration) {
|
|
33
|
+
const contentModule = migration.editContentType('contentModule')
|
|
34
|
+
contentModule.deleteField('verticalAlignment')
|
|
35
|
+
},
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// @ts-check
|
|
3
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
+
up: function (migration) {
|
|
5
|
+
const contentModule = migration.editContentType('contentModule')
|
|
6
|
+
|
|
7
|
+
contentModule.createField('verticalAlignment', {
|
|
8
|
+
name: 'Vertical Alignment',
|
|
9
|
+
type: 'Symbol',
|
|
10
|
+
validations: [
|
|
11
|
+
{
|
|
12
|
+
in: ['Top', 'Center', 'Bottom'],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
contentModule.changeFieldControl(
|
|
18
|
+
'verticalAlignment',
|
|
19
|
+
'builtin',
|
|
20
|
+
'dropdown',
|
|
21
|
+
{
|
|
22
|
+
helpText:
|
|
23
|
+
'Set the vertical alignment of the content module within its container.',
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
contentModule.moveField('verticalAlignment').afterField('alignment')
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
// @ts-check
|
|
31
|
+
/** @type { import('contentful-migration').MigrationFunction } */
|
|
32
|
+
down: function (migration) {
|
|
33
|
+
const contentModule = migration.editContentType('contentModule')
|
|
34
|
+
contentModule.deleteField('verticalAlignment')
|
|
35
|
+
},
|
|
36
|
+
}
|