<?php

return [
    'number' => [
        'integer' => ['alias' => 'numeric', 'digits' => 0, 'groupSeparator' => '.', 'radixPoint' => ',', 'autoGroup' => true],
        'decimal' => ['alias' => 'numeric', 'digits' => 2, 'groupSeparator' => '.', 'radixPoint' => ',', 'autoGroup' => true],
        'currency' => ['alias' => 'currency','digits' => 2,'digitsOptional' => false, 'prefix' => 'Rp.', 'groupSeparator' => '.', 'radixPoint' => ','],
    ],
    'textmask' => [
        'nopol' => ['mask' => 'a{1,2}9{1,4}a{1,3}'],
        'phone' => ['mask' => '9{3,4}-9{4,8}'],
        'time' => ['mask' => '(09|19|20|21|22|23):(09|19|29|39|49|59)'],
        'mobile' => ['mask' => '62999-9999-9999'],
        'email' => ['alias' => 'email'],
        'upper' => ['casing' => 'upper'],
        // 23.232.323.4-444.444 -- nomer NPWP
        'tax' => ['mask' => '9{2}.9{3}.9{3}.9{1}-.9{3}.9{3}'],
        'url' => ['regex' => 'https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}.*']
    ],
    'select2' => [
        'ajax' => ['data-ajax' => 1],
        'tag' => ['tags' => true, 'multiple' => true, 'tokenSeparators' => [',']],
    ],    
    'daterange' => ['singleDatePicker' => false, 'locale' => ['format' => 'DD MMM YYYY']],
    'datetime' => ['timePicker' => true, 'timePicker24Hour' => true, 'singleDatePicker' => true, 'locale' => ['format' => 'DD MMM YYYY HH:mm:ss']],    
    'daterange_search' => ['singleDatePicker' => false, 'locale' => ['format' => 'DD MMM YYYY'], 'autoApply' => false, 'autoUpdateInput' => false ],
    'datetimerange_search' => ['singleDatePicker' => false,'timePicker24Hour' => true, 'timePicker' => true, 'locale' => ['format' => 'DD MMM YYYY HH:mm'], 'autoApply' => false, 'autoUpdateInput' => false ],
    'datesingle_empty' => ['singleDatePicker' => true, 'locale' => ['format' => 'DD MMM YYYY'], 'autoApply' => false, 'autoUpdateInput' => false ],    
    'time' => ['timePicker' => true,'locale' => ['format' => 'HH:mm']],
    'date_format' => 'd M Y',
    'datetime_format' => 'd M Y H:i:s',
    'date_format_javascript' => 'DD MMM YYYY',
    'datetime_format_javascript' => 'DD MMM YYYY HH:mm:ss',
    'thousand_separator' => '.',
    'decimal_separator' => ',',
    'digit_decimal' => 2,    
];
