Updates to 3rd party libraries
Add Dockerfile and specific docker-php.ini
This commit is contained in:
77
inc/vendor/phpoffice/phpspreadsheet/tests/data/Style/ColorChangeBrightness.php
vendored
Normal file
77
inc/vendor/phpoffice/phpspreadsheet/tests/data/Style/ColorChangeBrightness.php
vendored
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
// RGBA
|
||||
[
|
||||
'FFB2C1D1',
|
||||
'FFAABBCC',
|
||||
0.1,
|
||||
],
|
||||
// RGBA
|
||||
[
|
||||
'FF99A8B7',
|
||||
'FFAABBCC',
|
||||
-0.1,
|
||||
],
|
||||
// RGB
|
||||
[
|
||||
'B2C1D1',
|
||||
'AABBCC',
|
||||
0.1,
|
||||
],
|
||||
[
|
||||
'99A8B7',
|
||||
'AABBCC',
|
||||
-0.1,
|
||||
],
|
||||
[
|
||||
'FF1919',
|
||||
'FF0000',
|
||||
0.1,
|
||||
],
|
||||
[
|
||||
'E50000',
|
||||
'FF0000',
|
||||
-0.1,
|
||||
],
|
||||
[
|
||||
'FF8C8C',
|
||||
'FF8080',
|
||||
0.1,
|
||||
],
|
||||
[
|
||||
'E57373',
|
||||
'FF8080',
|
||||
-0.1,
|
||||
],
|
||||
[
|
||||
'FF2626',
|
||||
'FF0000',
|
||||
0.15,
|
||||
],
|
||||
[
|
||||
'D80000',
|
||||
'FF0000',
|
||||
-0.15,
|
||||
],
|
||||
[
|
||||
'FF9393',
|
||||
'FF8080',
|
||||
0.15,
|
||||
],
|
||||
[
|
||||
'D86C6C',
|
||||
'FF8080',
|
||||
-0.15,
|
||||
],
|
||||
[
|
||||
'FFF783',
|
||||
'FFF008',
|
||||
0.5,
|
||||
],
|
||||
[
|
||||
'7F7804',
|
||||
'FFF008',
|
||||
-0.5,
|
||||
],
|
||||
];
|
35
inc/vendor/phpoffice/phpspreadsheet/tests/data/Style/ColorGetBlue.php
vendored
Normal file
35
inc/vendor/phpoffice/phpspreadsheet/tests/data/Style/ColorGetBlue.php
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
// RGBA (hex)
|
||||
[
|
||||
'CC',
|
||||
'FFAABBCC',
|
||||
],
|
||||
// RGBA (decimal)
|
||||
[
|
||||
204,
|
||||
'FFAABBCC',
|
||||
false,
|
||||
],
|
||||
// RGB (hex)
|
||||
[
|
||||
'CC',
|
||||
'AABBCC',
|
||||
],
|
||||
// RGB (decimal)
|
||||
[
|
||||
204,
|
||||
'AABBCC',
|
||||
false,
|
||||
],
|
||||
[
|
||||
'00',
|
||||
'FFFF00',
|
||||
],
|
||||
[
|
||||
0,
|
||||
'FFFF00',
|
||||
false,
|
||||
],
|
||||
];
|
35
inc/vendor/phpoffice/phpspreadsheet/tests/data/Style/ColorGetGreen.php
vendored
Normal file
35
inc/vendor/phpoffice/phpspreadsheet/tests/data/Style/ColorGetGreen.php
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
// RGBA (hex)
|
||||
[
|
||||
'BB',
|
||||
'FFAABBCC',
|
||||
],
|
||||
// RGBA (decimal)
|
||||
[
|
||||
187,
|
||||
'FFAABBCC',
|
||||
false,
|
||||
],
|
||||
// RGB (hex)
|
||||
[
|
||||
'BB',
|
||||
'AABBCC',
|
||||
],
|
||||
// RGB (decimal)
|
||||
[
|
||||
187,
|
||||
'AABBCC',
|
||||
false,
|
||||
],
|
||||
[
|
||||
'00',
|
||||
'FF00FF',
|
||||
],
|
||||
[
|
||||
0,
|
||||
'FF00FF',
|
||||
false,
|
||||
],
|
||||
];
|
35
inc/vendor/phpoffice/phpspreadsheet/tests/data/Style/ColorGetRed.php
vendored
Normal file
35
inc/vendor/phpoffice/phpspreadsheet/tests/data/Style/ColorGetRed.php
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
// RGBA (hex)
|
||||
[
|
||||
'AA',
|
||||
'FFAABBCC',
|
||||
],
|
||||
// RGBA (decimal)
|
||||
[
|
||||
170,
|
||||
'FFAABBCC',
|
||||
false,
|
||||
],
|
||||
// RGB (hex)
|
||||
[
|
||||
'AA',
|
||||
'AABBCC',
|
||||
],
|
||||
// RGB (decimal)
|
||||
[
|
||||
170,
|
||||
'AABBCC',
|
||||
false,
|
||||
],
|
||||
[
|
||||
'00',
|
||||
'00FFFF',
|
||||
],
|
||||
[
|
||||
0,
|
||||
'00FFFF',
|
||||
false,
|
||||
],
|
||||
];
|
189
inc/vendor/phpoffice/phpspreadsheet/tests/data/Style/NumberFormat.php
vendored
Normal file
189
inc/vendor/phpoffice/phpspreadsheet/tests/data/Style/NumberFormat.php
vendored
Normal file
@ -0,0 +1,189 @@
|
||||
<?php
|
||||
|
||||
// value, format, result
|
||||
|
||||
return [
|
||||
[
|
||||
'0.0',
|
||||
0.0,
|
||||
'0.0',
|
||||
],
|
||||
[
|
||||
'0',
|
||||
0.0,
|
||||
'0',
|
||||
],
|
||||
[
|
||||
'0.0',
|
||||
0,
|
||||
'0.0',
|
||||
],
|
||||
[
|
||||
'0',
|
||||
0,
|
||||
'0',
|
||||
],
|
||||
[
|
||||
'000',
|
||||
0,
|
||||
'##0',
|
||||
],
|
||||
[
|
||||
'12.0',
|
||||
12,
|
||||
'#.0#',
|
||||
],
|
||||
[
|
||||
'0.1',
|
||||
0.10000000000000001,
|
||||
'0.0',
|
||||
],
|
||||
[
|
||||
'0',
|
||||
0.10000000000000001,
|
||||
'0',
|
||||
],
|
||||
[
|
||||
'5.556',
|
||||
5.5555000000000003,
|
||||
'0.###',
|
||||
],
|
||||
[
|
||||
'5.556',
|
||||
5.5555000000000003,
|
||||
'0.0##',
|
||||
],
|
||||
[
|
||||
'5.556',
|
||||
5.5555000000000003,
|
||||
'0.00#',
|
||||
],
|
||||
[
|
||||
'5.556',
|
||||
5.5555000000000003,
|
||||
'0.000',
|
||||
],
|
||||
[
|
||||
'5.5555',
|
||||
5.5555000000000003,
|
||||
'0.0000',
|
||||
],
|
||||
[
|
||||
'12,345.68',
|
||||
12345.678900000001,
|
||||
'#,##0.00',
|
||||
],
|
||||
[
|
||||
'12,345.679',
|
||||
12345.678900000001,
|
||||
'#,##0.000',
|
||||
],
|
||||
[
|
||||
'£ 12,345.68',
|
||||
12345.678900000001,
|
||||
'£ #,##0.00',
|
||||
],
|
||||
[
|
||||
'$ 12,345.679',
|
||||
12345.678900000001,
|
||||
'$ #,##0.000',
|
||||
],
|
||||
[
|
||||
'5.68',
|
||||
5.6788999999999996,
|
||||
'#,##0.00',
|
||||
],
|
||||
[
|
||||
'12,000',
|
||||
12000,
|
||||
'#,###',
|
||||
],
|
||||
[
|
||||
12,
|
||||
12000,
|
||||
'#,',
|
||||
],
|
||||
// Scaling test
|
||||
[
|
||||
12.199999999999999,
|
||||
12200000,
|
||||
'0.0,,',
|
||||
],
|
||||
[
|
||||
'8%',
|
||||
0.080000000000000002,
|
||||
'0%',
|
||||
],
|
||||
[
|
||||
'80%',
|
||||
0.80000000000000004,
|
||||
'0%',
|
||||
],
|
||||
[
|
||||
'280%',
|
||||
2.7999999999999998,
|
||||
'0%',
|
||||
],
|
||||
[
|
||||
'$125.74 Surplus',
|
||||
125.73999999999999,
|
||||
'$0.00" Surplus";$-0.00" Shortage"',
|
||||
],
|
||||
[
|
||||
'$-125.74 Shortage',
|
||||
-125.73999999999999,
|
||||
'$0.00" Surplus";$-0.00" Shortage"',
|
||||
],
|
||||
[
|
||||
'$125.74 Shortage',
|
||||
-125.73999999999999,
|
||||
'$0.00" Surplus";$0.00" Shortage"',
|
||||
],
|
||||
// Fraction
|
||||
[
|
||||
'5 1/4',
|
||||
5.25,
|
||||
'# ???/???',
|
||||
],
|
||||
// Vulgar Fraction
|
||||
[
|
||||
'5 3/10',
|
||||
5.2999999999999998,
|
||||
'# ???/???',
|
||||
],
|
||||
[
|
||||
'21/4',
|
||||
5.25,
|
||||
'???/???',
|
||||
],
|
||||
[
|
||||
'(001) 2-3456-789',
|
||||
123456789,
|
||||
'(000) 0-0000-000',
|
||||
],
|
||||
[
|
||||
'0 (+00) 0123 45 67 89',
|
||||
123456789,
|
||||
'0 (+00) 0000 00 00 00',
|
||||
],
|
||||
[
|
||||
'12345:67:89',
|
||||
123456789,
|
||||
'0000:00:00',
|
||||
],
|
||||
[
|
||||
'-12345:67:89',
|
||||
-123456789,
|
||||
'0000:00:00',
|
||||
],
|
||||
[
|
||||
'12345:67.89',
|
||||
1234567.8899999999,
|
||||
'0000:00.00',
|
||||
],
|
||||
[
|
||||
'-12345:67.89',
|
||||
-1234567.8899999999,
|
||||
'0000:00.00',
|
||||
],
|
||||
];
|
65
inc/vendor/phpoffice/phpspreadsheet/tests/data/Style/NumberFormatDates.php
vendored
Normal file
65
inc/vendor/phpoffice/phpspreadsheet/tests/data/Style/NumberFormatDates.php
vendored
Normal file
@ -0,0 +1,65 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
[
|
||||
'19-12-1960 01:30:00',
|
||||
22269.0625,
|
||||
'dd-mm-yyyy hh:mm:ss',
|
||||
],
|
||||
// Oasis uses upper-case
|
||||
[
|
||||
'12/19/1960 01:30:00',
|
||||
22269.0625,
|
||||
'MM/DD/YYYY HH:MM:SS',
|
||||
],
|
||||
// Date with plaintext escaped with a \
|
||||
[
|
||||
'1960-12-19T01:30:00',
|
||||
22269.0625,
|
||||
'yyyy-mm-dd\\Thh:mm:ss',
|
||||
],
|
||||
// Date with plaintext in quotes
|
||||
[
|
||||
'1960-12-19T01:30:00 Z',
|
||||
22269.0625,
|
||||
'yyyy-mm-dd"T"hh:mm:ss \\Z',
|
||||
],
|
||||
// Date with quoted formatting characters
|
||||
[
|
||||
'y-m-d 1960-12-19 h:m:s 01:30:00',
|
||||
22269.0625,
|
||||
'"y-m-d" yyyy-mm-dd "h:m:s" hh:mm:ss',
|
||||
],
|
||||
// Date with quoted formatting characters
|
||||
[
|
||||
'y-m-d 1960-12-19 h:m:s 01:30:00',
|
||||
22269.0625,
|
||||
'"y-m-d "yyyy-mm-dd" h:m:s "hh:mm:ss',
|
||||
],
|
||||
// Chinese date format
|
||||
[
|
||||
'1960年12月19日',
|
||||
22269.0625,
|
||||
'[DBNum1][$-804]yyyy"年"m"月"d"日";@',
|
||||
],
|
||||
[
|
||||
'1960年12月',
|
||||
22269.0625,
|
||||
'[DBNum1][$-804]yyyy"年"m"月";@',
|
||||
],
|
||||
[
|
||||
'12月19日',
|
||||
22269.0625,
|
||||
'[DBNum1][$-804]m"月"d"日";@',
|
||||
],
|
||||
[
|
||||
'07:35:00 AM',
|
||||
43270.315972222,
|
||||
'hh:mm:ss\ AM/PM',
|
||||
],
|
||||
[
|
||||
'02:29:00 PM',
|
||||
43270.603472222,
|
||||
'hh:mm:ss\ AM/PM',
|
||||
],
|
||||
];
|
Reference in New Issue
Block a user