Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.0.0-beta.2 #5711

Merged
merged 280 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
280 commits
Select commit Hold shift + click to select a range
d0a1b10
Remove deprecated `DS`
distantnative Sep 9, 2023
05ddeaf
Add type hint for `Site::wasModifiedAfter()`
distantnative Sep 9, 2023
c90057c
Fix `::modified()` return types
distantnative Sep 9, 2023
bd7d0e0
Fix hiding `k-tabs` for just a single tab
distantnative Sep 9, 2023
5087feb
Fix #5596
distantnative Sep 9, 2023
b781251
Fix `k-tabs` measuring for no tabs
distantnative Sep 9, 2023
051fa38
Fix dropdown position in RTL languages
distantnative Sep 9, 2023
9341ce6
Notification: suport custom icons
distantnative Sep 9, 2023
41db713
Merge pull request #5594 from getkirby/v4/fix/5592-site-wasmodifiedafter
distantnative Sep 9, 2023
91dedf5
Merge pull request #5599 from getkirby/v4/fix/5575-dropdown-rtl
distantnative Sep 9, 2023
580c189
Merge pull request #5595 from getkirby/v4/fix/5591-modified-return-types
distantnative Sep 9, 2023
22bbf74
Support multiple Panel assets and absolute URLs
distantnative Sep 9, 2023
ae644fa
Merge pull request #5589 from getkirby/v4/fix/5580-colors-hsl
distantnative Sep 9, 2023
8df0e5c
Text field: `font` option for monospace
distantnative Sep 9, 2023
c5f66a0
ModelsSection: use `Filter` as label
distantnative Sep 9, 2023
800c12e
Dropdown: fix `align-x: center`
distantnative Sep 10, 2023
0d8942a
Tweak dropzone style
distantnative Sep 10, 2023
0593781
Merge pull request #5612 from getkirby/v4/fix/section-filter-string
bastianallgeier Sep 12, 2023
8347c08
Merge pull request #5610 from getkirby/v4/enhancement/text-field-mono
bastianallgeier Sep 12, 2023
912a0cf
Merge pull request #5577 from getkirby/v4/enhancement/language-dropdown
bastianallgeier Sep 12, 2023
9f85939
Merge pull request #5588 from getkirby/v4/fix/5586-create-return-types
bastianallgeier Sep 12, 2023
f354ac9
Merge pull request #5590 from getkirby/v4/fix/deprecated-ds
bastianallgeier Sep 12, 2023
b2af122
Merge pull request #5601 from getkirby/v4/enhancement/notification-icon
bastianallgeier Sep 12, 2023
fa240e1
Merge pull request #5602 from getkirby/v4/enhancement/5180-panel-asse…
bastianallgeier Sep 12, 2023
c13ad87
Use `await this.$nextTick()`
distantnative Sep 8, 2023
2e7627c
Use setPosition() to solve the conflict
afbora Sep 12, 2023
16f5ba4
Merge pull request #5584 from getkirby/v4/refactor/nextTick
distantnative Sep 12, 2023
2d45ac1
Fix collection items index #5623
afbora Sep 13, 2023
390a569
Add unit tests for `$auth->login()`
lukasbestle Sep 13, 2023
b80ed2b
Merge pull request #5511 from getkirby/v4/fix/5365-permissions-almigh…
bastianallgeier Sep 14, 2023
60b7635
Merge pull request #5582 from getkirby/v4/fix/input-fixes
distantnative Sep 14, 2023
fffd3c6
Update filename when changing format on upload
distantnative Sep 9, 2023
d96a213
New `FileActions::changeExtension()`
distantnative Sep 14, 2023
0c1e7c8
Fix #5620
distantnative Sep 14, 2023
4b6d99a
Fix `$collection->group()` for case-sensitive
distantnative Sep 14, 2023
88b63b1
Merge pull request #5630 from getkirby/v4/fix/5620-plugin-assets
bastianallgeier Sep 15, 2023
f43ca24
Merge pull request #5624 from getkirby/v4/fix/5623-collection-index
bastianallgeier Sep 15, 2023
07986e4
Fix cards overflowing column
distantnative Sep 16, 2023
56f1162
Unify models fields
distantnative Sep 10, 2023
0ee982d
Files field: add upload button back in
distantnative Sep 16, 2023
7f0d9f0
ModelsField: show select btn also if max reached
distantnative Sep 16, 2023
2ab3c90
Merge pull request #5631 from getkirby/fix/5628-collection-group
distantnative Sep 16, 2023
954a8e8
Merge branch 'develop' into v4/develop
distantnative Sep 16, 2023
c139737
Rename parameter to `$caseInsensitive`
distantnative Sep 16, 2023
22f700b
Update src/Toolkit/Collection.php
distantnative Sep 16, 2023
a9286a1
Upload dialog: fix error overflow
distantnative Sep 16, 2023
9a7ddff
`Collection::$caseSensitive`: add todo comment
distantnative Sep 16, 2023
1deef86
Recreate nico's reformatting
adamkiss Sep 16, 2023
e833fd7
Fix calling fetch(Closure) with first/row/one
adamkiss Sep 16, 2023
0b3c88c
php-cs-fixer formatting fixes
adamkiss Sep 16, 2023
4bd5cc1
Fixes #5642
distantnative Sep 16, 2023
1aea33f
Display `$app->trigger/apply()` in the reference
lukasbestle Sep 16, 2023
dc8a2f6
Merge pull request #5643 from getkirby/fix/hook-methods-reference
distantnative Sep 16, 2023
1016986
Send null to fetch closures as the second parameter
adamkiss Sep 16, 2023
c86c27d
Tweak Vite setup
distantnative Sep 16, 2023
14ed159
Ignore `panel/scripts` for github export
distantnative Sep 16, 2023
5b3d25d
Fix optional parameter for `Cms\Api::file()`
distantnative Sep 16, 2023
fa34fad
Fix RemoteTest when curl.cainfo is actually set
distantnative Sep 16, 2023
68a1f10
Merge pull request #5645 from getkirby/fix/vite-setup
distantnative Sep 16, 2023
b27c4b2
Unset `url.cainfo` mock at end of test
distantnative Sep 16, 2023
ed2925c
Merge branch 'develop' into v4/develop
distantnative Sep 16, 2023
80291e3
Upgrade npm dependencies
distantnative Sep 16, 2023
2938f5f
Merge pull request #5646 from getkirby/fix/herd-cainfo
distantnative Sep 17, 2023
d9d9d07
Merge pull request #5647 from getkirby/fix/php-83-optional-parameter
distantnative Sep 17, 2023
7272d08
Merge pull request #5640 from adamkiss/fix/5615-database-fetch-adamkiss
distantnative Sep 17, 2023
bbf6295
Merge branch 'develop' into v4/develop
distantnative Sep 17, 2023
bd47709
Use lightningcss
distantnative Sep 17, 2023
d86d9a6
Remove unused chunkFileName rule
distantnative Sep 17, 2023
01d5f5d
Update .gitattributes
distantnative Sep 17, 2023
5253c3c
Add callable support to $query->fetch()
adamkiss Sep 16, 2023
8fca59b
Add tests for $query->fetch(callable)
adamkiss Sep 17, 2023
95503ad
Fix coding style
lukasbestle Sep 17, 2023
b9b3250
Fix coding style
lukasbestle Sep 17, 2023
f23f094
Fix coding style
lukasbestle Sep 17, 2023
07383ef
Merge pull request #5651 from adamkiss/feat-db-fetch-callable
distantnative Sep 17, 2023
b26051f
Merge pull request #5649 from getkirby/v4/enhancement/lightningcss
distantnative Sep 17, 2023
52b8a6f
Fix color field border radius #5653
afbora Sep 18, 2023
9919720
Merge pull request #5634 from getkirby/v4/fix/collection-group-$caseI…
bastianallgeier Sep 18, 2023
f0096ec
Merge branch 'develop' into v4/develop
bastianallgeier Sep 18, 2023
aaf6873
Merge pull request #5637 from getkirby/v4/refactor/models-fields
bastianallgeier Sep 18, 2023
e5867bf
Merge pull request #5636 from getkirby/v4/fix/5633-items-cards-column…
bastianallgeier Sep 18, 2023
8fc2840
Fix layout dropdown in structure field #5267
afbora Sep 18, 2023
a6741fd
Let the item expand and fix the overflow with the flex min-width hack
bastianallgeier Sep 18, 2023
0114bb3
Merge pull request #5638 from getkirby/v4/fix/5622-upload-dialog-over…
bastianallgeier Sep 18, 2023
39ad961
Merge pull request #5593 from getkirby/v4/fix/5530-file-create-differ…
bastianallgeier Sep 18, 2023
b8fc989
Fix reading invalid block types #5660
afbora Sep 19, 2023
32ff5c4
Merge pull request #5663 from getkirby/v4/fix/5660-reading-invalid-bl…
bastianallgeier Sep 19, 2023
c9a53a4
Fix cs
distantnative Sep 19, 2023
73fcc91
Fix updating tabs
distantnative Sep 19, 2023
214e43d
`QrCode` class
distantnative Sep 19, 2023
56d379b
Fix cs
distantnative Sep 19, 2023
114d216
QrCode helper and field method
distantnative Sep 19, 2023
c1a0b9c
QrCode: more unit tests
distantnative Sep 19, 2023
2576d8c
Fix code quality
distantnative Sep 19, 2023
29311b3
QrCode: and even more unit tests
distantnative Sep 19, 2023
9b366a1
Model fields: make all btns responsive
distantnative Sep 19, 2023
c8f7dd6
`QrCode::write()` method
distantnative Sep 19, 2023
72741b9
QrCode: proper SVG markup
distantnative Sep 19, 2023
e14c99e
More code comments
lukasbestle Sep 19, 2023
1da1aa4
SVG export: Allow to omit size
lukasbestle Sep 19, 2023
0f4e785
Fix CS
lukasbestle Sep 19, 2023
ed9f21f
Fix assertion argument order
lukasbestle Sep 19, 2023
f51534c
Reduce SVG export file size by ~50 %
lukasbestle Sep 21, 2023
d18694b
Move color props to export methods
lukasbestle Sep 21, 2023
07dc38f
Make field method nullable
lukasbestle Sep 21, 2023
d8e3436
Further optimize SVG output
distantnative Sep 21, 2023
d3e660a
Fix SVG fill
distantnative Sep 21, 2023
51c0459
Support method args also for `->write()`
distantnative Sep 21, 2023
c710b73
QrCode: more unit tests
distantnative Sep 21, 2023
2ad5874
Fix cs
distantnative Sep 21, 2023
0e2bbfe
Fix typo in code comment
lukasbestle Sep 21, 2023
8099b4a
Fix CS
lukasbestle Sep 21, 2023
2b92921
Fix CI (?)
lukasbestle Sep 21, 2023
1e81f9a
Merge pull request #5666 from getkirby/v4/feature/qr
distantnative Sep 21, 2023
14e7fdf
Fix paste blocks with max option #5670
afbora Sep 22, 2023
ddcf9ed
Allow string for `$page->search(params: )` again
lukasbestle Sep 22, 2023
c282048
Tweak some Prop import names
distantnative Sep 23, 2023
72a1a05
Fix WriterInput
distantnative Sep 23, 2023
15676fd
More input mixins
distantnative Sep 23, 2023
da996b9
Merge pull request #5655 from getkirby/v4/fix/5653-color-field-border…
distantnative Sep 23, 2023
7aa9489
`$helper.field.subfields()`: fix apply endpoints
distantnative Sep 23, 2023
11b548f
Blocks field: improve UI for no fieldsets
distantnative Sep 23, 2023
d9244ee
Merge pull request #5673 from getkirby/v4/fix/5670-paste-max-blocks
distantnative Sep 23, 2023
0e5e7c9
Fix pasting blocks
distantnative Sep 23, 2023
7236f94
Merge pull request #5668 from getkirby/v4/fix/svg-fill
distantnative Sep 23, 2023
0584869
Fix collapsing block fields preview
distantnative Sep 23, 2023
22a18c8
Fix sticky columns
distantnative Sep 23, 2023
82166a1
Query:`qr` entry functions
distantnative Sep 23, 2023
9a0d81d
`$app->collection()`: remove `$pages` and `$users`
distantnative Sep 23, 2023
d4adc14
First draft with `LazyValue`
distantnative Sep 23, 2023
998e962
Fix cs
distantnative Sep 23, 2023
f3c9730
QrCode: add missing @since tag
distantnative Sep 23, 2023
210a346
Wrap additional controller args as LazyValue
distantnative Sep 24, 2023
2a574d8
Merge pull request #5667 from getkirby/v4/fix/query-global-functions
distantnative Sep 24, 2023
ad7de06
Merge pull request #5678 from getkirby/v4/fix/5671-blocks-paste
distantnative Sep 24, 2023
bfd9bb1
Update src/Cms/Page.php
distantnative Sep 24, 2023
40ad821
LazyValue unit tests
distantnative Sep 24, 2023
13360cd
Revert `Str::short(appendix: false)`
lukasbestle Sep 24, 2023
d730362
Add unit tests
lukasbestle Sep 24, 2023
461d64d
Merge pull request #5675 from getkirby/v4/fix/search-params-string
lukasbestle Sep 24, 2023
dcf8b7c
Merge pull request #5688 from getkirby/v4/fix/5495-str-short-type-hint
lukasbestle Sep 24, 2023
d879456
Cleanup
lukasbestle Sep 24, 2023
a12cd65
Fix covers annotation
lukasbestle Sep 24, 2023
17a93f6
Merge pull request #5608 from getkirby/v4/enhancement/collections-rem…
distantnative Sep 24, 2023
1ab72d9
Merge pull request #5679 from getkirby/v4/refactor/blocks-has-fieldsets
bastianallgeier Sep 25, 2023
db542d6
Merge pull request #5680 from getkirby/v4/fix/5669-block-type-fields-…
bastianallgeier Sep 25, 2023
1afd153
Bring back focus for the list input. The inherited method does not work.
bastianallgeier Sep 25, 2023
4fe9700
Bring back the focus method for the writer input as well
bastianallgeier Sep 25, 2023
d3b9a18
Clean up range input
bastianallgeier Sep 25, 2023
14549e3
Use pattern from mixin
bastianallgeier Sep 25, 2023
4d3701e
Use more prop mixins for the Writer
bastianallgeier Sep 25, 2023
3684d4e
Merge pull request #5677 from getkirby/v4/refactor/input-prop-mixins
bastianallgeier Sep 25, 2023
9de4491
`k-coords-input`
distantnative Sep 23, 2023
88797e2
`k-colorpicker-input`
distantnative Sep 23, 2023
3ec915c
Merge pull request #5685 from getkirby/v4/refactor/remove-custom-elem…
bastianallgeier Sep 25, 2023
50f6abf
Only add a div if the column is sticky
bastianallgeier Sep 25, 2023
f09f5d8
Merge pull request #5682 from getkirby/v4/fix/5664-column-sticky
bastianallgeier Sep 25, 2023
eaecd3f
Merge pull request #5656 from getkirby/fix/5267-layout-dropdown-struc…
bastianallgeier Sep 25, 2023
4d6c08e
Merge branch 'v4/fix/5664-column-sticky' into v4/develop
bastianallgeier Sep 25, 2023
2901c55
Merge branch 'v4/develop' of https://github.com/getkirby/kirby into v…
bastianallgeier Sep 25, 2023
8592395
Prominent register menu btn
distantnative Sep 17, 2023
61f0369
Deprecate `k-dropdown`
distantnative Sep 8, 2023
a52237a
Fix file preview after `k-dropdown` removal
distantnative Sep 12, 2023
526b781
Merge pull request #5585 from getkirby/v4/refactor/dropdown-deprecate
bastianallgeier Sep 25, 2023
94d7d26
Remember the scroll position when opening dropdowns
bastianallgeier Sep 25, 2023
680f6cd
New k-calendar-input to replace k-calendar
bastianallgeier Sep 25, 2023
f1a2b6c
Fix linting issue
bastianallgeier Sep 25, 2023
f5dc2be
Fix invalid translation string
bastianallgeier Sep 25, 2023
24d70e3
Fix active types when the options are empty
bastianallgeier Sep 25, 2023
42bdd7c
Merge pull request #5692 from getkirby/v4/fix/input-fixes
bastianallgeier Sep 25, 2023
e34c556
Merge pull request #5691 from getkirby/v4/fix/dropdown-position
distantnative Sep 25, 2023
ec3a0cb
Merge pull request #5695 from getkirby/v4/refactor/calendar-input
distantnative Sep 25, 2023
9bd02e0
New k-alpha-input and k-hue-input
bastianallgeier Sep 25, 2023
f286287
Merge pull request #5693 from getkirby/v4/refactor/alpha-and-hue-inputs
distantnative Sep 25, 2023
1002201
Clean up k-choice-input and remove k-choice
bastianallgeier Sep 25, 2023
d221415
Merge pull request #5694 from getkirby/v4/refactor/choices
distantnative Sep 25, 2023
84f3b93
Improve k-grid gaps
distantnative Sep 23, 2023
0cca18a
Streamline frame and tag usage
distantnative Sep 24, 2023
c51ef21
Use `k-color-frame` more
distantnative Sep 24, 2023
2d75b2f
Use color frame instead of div
bastianallgeier Sep 25, 2023
f0f0124
Remove `k-image-icon-frame` again
distantnative Sep 25, 2023
3b8be4d
Merge pull request #5686 from getkirby/v4/enhancement/tag-image
bastianallgeier Sep 26, 2023
961c6fe
New k-coloroptions-input
bastianallgeier Sep 25, 2023
93b915e
Use the new coloroptions input in the color field
bastianallgeier Sep 25, 2023
581f800
Clean up `k-coloroptions-input`
distantnative Sep 25, 2023
bf56e8e
Use component _uid as name if there’s no name
bastianallgeier Sep 26, 2023
5e30351
Field preview refactoring
bastianallgeier Sep 26, 2023
e0a6a45
Fix default value for bubbles
bastianallgeier Sep 26, 2023
c2952c6
Pass the color field name to the coloroptions input
bastianallgeier Sep 26, 2023
c1ed479
Fix bubble overflow
bastianallgeier Sep 26, 2023
85998ce
New k-timeoptions-input
bastianallgeier Sep 26, 2023
3bf7903
Merge pull request #5681 from getkirby/v4/fix/grid-gaps
bastianallgeier Sep 26, 2023
0710b01
Make the file preview component less dependant on store
bastianallgeier Sep 26, 2023
79cd3b3
Merge pull request #5700 from getkirby/v4/refactor/file-preview
distantnative Sep 26, 2023
06c51e4
Fix `k-tabs` one more time
distantnative Sep 26, 2023
0f0daf2
Fix focus
bastianallgeier Sep 27, 2023
a0c8f0f
Always show an outline on focus
bastianallgeier Sep 27, 2023
c0c733b
Remove the div if the value is empty
bastianallgeier Sep 27, 2023
3842d92
Remove unnecessary conditional
bastianallgeier Sep 27, 2023
3677cd1
Merge pull request #5701 from getkirby/v4/fix/tabs
bastianallgeier Sep 27, 2023
7be52c3
File preview: fix thumb placement
distantnative Sep 9, 2023
000d396
Fix file preview for all browsers
distantnative Sep 12, 2023
ca6eafb
Tweak FilePreview
distantnative Sep 26, 2023
3b53fed
Fix focus action
bastianallgeier Sep 27, 2023
3e37fac
Merge pull request #5611 from getkirby/v4/fix/file-preview-thumb
bastianallgeier Sep 27, 2023
05ac1a5
Merge pull request #5652 from getkirby/v4/enhancemet/prominent-regist…
bastianallgeier Sep 27, 2023
182e650
Merge pull request #5696 from getkirby/v4/refactor/coloroptions-input
bastianallgeier Sep 27, 2023
1c595f5
Merge pull request #5697 from getkirby/v4/refactor/field-previews
bastianallgeier Sep 27, 2023
c603c08
Fix the border radius for the range input
bastianallgeier Sep 26, 2023
87a35e9
New k-colorname-input
bastianallgeier Sep 26, 2023
c88af6d
Fix CS issues
bastianallgeier Sep 26, 2023
6d77079
Fixed type for the colorname input
bastianallgeier Sep 27, 2023
034bad0
Fix various smaller block issues to make them testable
bastianallgeier Sep 27, 2023
c2a5a63
More default values for objects
bastianallgeier Sep 27, 2023
f59bfb4
Fixed various inconsistencies in the block title
bastianallgeier Sep 27, 2023
fa8a989
Better defaults and removed outdated props
bastianallgeier Sep 27, 2023
312029f
Fixed padding for the block header
bastianallgeier Sep 27, 2023
82d7502
New disabled prop for the options dropdown
bastianallgeier Sep 27, 2023
881a12b
More reliable way to add element margins in the text component
bastianallgeier Sep 27, 2023
600d57b
Cleaned up table css with new table variables
bastianallgeier Sep 27, 2023
c746e0a
Refactoring after new table styles
bastianallgeier Sep 27, 2023
97656e5
Disable the sticky header in a disabled table
bastianallgeier Sep 27, 2023
912ceec
Merge pull request #5699 from getkirby/v4/refactor/colorname-input
distantnative Sep 27, 2023
4c75674
New k-search-input component
bastianallgeier Sep 27, 2023
e88967a
Merge pull request #5705 from getkirby/v4/refactor/search-input
distantnative Sep 27, 2023
5586c96
Improve coding style
bastianallgeier Sep 27, 2023
f2665ba
Merge pull request #5707 from getkirby/v4/refactor/table
bastianallgeier Sep 27, 2023
c9cae6b
Merge pull request #5706 from getkirby/v4/fix/block-issues
bastianallgeier Sep 27, 2023
5127c7b
Fix quote block styles
bastianallgeier Sep 27, 2023
6ef5b9a
Fix mousedown issue in the toolbar
bastianallgeier Sep 28, 2023
c30851d
Update dist files
bastianallgeier Sep 28, 2023
483e642
NPM Audit run
bastianallgeier Sep 28, 2023
94d714b
Merge pull request #5698 from getkirby/v4/refactor/timeoptions-input
bastianallgeier Sep 28, 2023
136cb1a
Fix the writer field type
bastianallgeier Sep 28, 2023
25167a8
Merge branch 'v4/develop' of https://github.com/getkirby/kirby into v…
bastianallgeier Sep 28, 2023
4dc3da5
Update composer dependencies
bastianallgeier Sep 28, 2023
ddcf731
npm audit fix
bastianallgeier Sep 28, 2023
6782b9d
Merge pull request #5710 from getkirby/release/3.9.7-rc.1
bastianallgeier Sep 28, 2023
3793920
Merge branch 'develop' into v4/develop
bastianallgeier Sep 28, 2023
594b4dd
Update dependencies after merge
bastianallgeier Sep 28, 2023
373bf54
Fix the auto sizing of cards
bastianallgeier Sep 28, 2023
6108d06
More conservative way to fix the cards
bastianallgeier Sep 28, 2023
c063d04
Updated translations
bastianallgeier Sep 28, 2023
a7e5069
Updated dist files
bastianallgeier Sep 28, 2023
3801e21
Remove overriden fixing layout dropdown structure for v3
afbora Sep 28, 2023
f15827d
Update dependencies again
bastianallgeier Sep 28, 2023
2c3c67f
Merge branch 'release/4.0.0-beta.2' of https://github.com/getkirby/ki…
bastianallgeier Sep 28, 2023
c2d1073
Fix scroll issue
bastianallgeier Sep 28, 2023
bfd9ac6
Update dist files
bastianallgeier Sep 28, 2023
ee1572a
Fix dropdown positioning again
bastianallgeier Sep 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ tests/ export-ignore
panel/.env.example export-ignore
panel/.eslintrc.js export-ignore
panel/.prettierrc.json export-ignore
panel/jsconfig.json export-ignore
panel/package-lock.json export-ignore
panel/package.json export-ignore
panel/public export-ignore
panel/README.md export-ignore
panel/scripts export-ignore
panel/src export-ignore
panel/vite.config.js export-ignore
panel/vitest.setup.js export-ignore
panel/jsconfig.json export-ignore

# other
.tx export-ignore
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "The Kirby core",
"license": "proprietary",
"type": "kirby-cms",
"version": "4.0.0-beta.1",
"version": "4.0.0-beta.2",
"keywords": [
"kirby",
"cms",
Expand Down Expand Up @@ -37,14 +37,14 @@
"ext-mbstring": "*",
"ext-openssl": "*",
"claviska/simpleimage": "4.0.6",
"composer/semver": "3.3.2",
"composer/semver": "3.4.0",
"filp/whoops": "2.15.3",
"getkirby/composer-installer": "^1.2.1",
"laminas/laminas-escaper": "2.12.0",
"michelf/php-smartypants": "1.8.1",
"phpmailer/phpmailer": "6.8.0",
"symfony/polyfill-intl-idn": "1.27.0",
"symfony/polyfill-mbstring": "1.27.0",
"phpmailer/phpmailer": "6.8.1",
"symfony/polyfill-intl-idn": "1.28.0",
"symfony/polyfill-mbstring": "1.28.0",
"symfony/yaml": "5.4.23"
},
"replace": {
Expand Down
88 changes: 44 additions & 44 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions config/fields/color.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,42 @@
'text' => is_string($key) ? $key : null
]);
}
],
'validations' => [
'color' => function ($value) {
if (empty($value) === true) {
return true;
}

if (
$this->format === 'hex' &&
preg_match('/^#([\da-f]{3,4}){1,2}$/i', $value) !== 1
) {
throw new InvalidArgumentException([
'key' => 'validation.color',
'data' => ['format' => 'hex']
]);
}

if (
$this->format === 'rgb' &&
preg_match('/^rgba?\(\s*(\d{1,3})(%?)(?:,|\s)+(\d{1,3})(%?)(?:,|\s)+(\d{1,3})(%?)(?:,|\s|\/)*(\d*(?:\.\d+)?)(%?)\s*\)?$/i', $value) !== 1
) {
throw new InvalidArgumentException([
'key' => 'validation.color',
'data' => ['format' => 'rgb']
]);
}

if (
$this->format === 'hsl' &&
preg_match('/^hsla?\(\s*(\d{1,3}\.?\d*)(deg|rad|grad|turn)?(?:,|\s)+(\d{1,3})%(?:,|\s)+(\d{1,3})%(?:,|\s|\/)*(\d*(?:\.\d+)?)(%?)\s*\)?$/i', $value) !== 1
) {
throw new InvalidArgumentException([
'key' => 'validation.color',
'data' => ['format' => 'hsl']
]);
}
}
]
];
7 changes: 7 additions & 0 deletions config/fields/text.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
return $counter;
},

/**
* Sets the font family (sans or monospace)
*/
'font' => function (string $font = null) {
return $font === 'monospace' ? 'monospace' : 'sans-serif';
},

/**
* Maximum number of allowed characters
*/
Expand Down
Loading