-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathplugin_install.sql
More file actions
2651 lines (2651 loc) · 429 KB
/
Copy pathplugin_install.sql
File metadata and controls
2651 lines (2651 loc) · 429 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
prompt --application/set_environment
set define off verify off feedback off
whenever sqlerror exit sql.sqlcode rollback
--------------------------------------------------------------------------------
--
-- ORACLE Application Express (APEX) export file
--
-- You should run the script connected to SQL*Plus as the Oracle user
-- APEX_180100 or as the owner (parsing schema) of the application.
--
-- NOTE: Calls to apex_application_install override the defaults below.
--
--------------------------------------------------------------------------------
begin
wwv_flow_api.import_begin (
p_version_yyyy_mm_dd=>'2018.04.04'
,p_release=>'18.1.0.00.45'
,p_default_workspace_id=>21960370774198632
,p_default_application_id=>115
,p_default_owner=>'DATE_RANGE_PICKER'
);
end;
/
prompt --application/shared_components/plugins/item_type/pretius_apex_range_date
begin
wwv_flow_api.create_plugin(
p_id=>wwv_flow_api.id(2619302015137674773)
,p_plugin_type=>'ITEM TYPE'
,p_name=>'PRETIUS_APEX_RANGE_DATE'
,p_display_name=>'Pretius APEX Date Range'
,p_supported_ui_types=>'DESKTOP'
,p_supported_component_types=>'APEX_APPLICATION_PAGE_ITEMS'
,p_javascript_file_urls=>wwv_flow_string.join(wwv_flow_t_varchar2(
'#PLUGIN_FILES#moment.min.js',
'#PLUGIN_FILES#daterangepicker.js',
'#PLUGIN_FILES#pretiusapexdaterangepicker.js'))
,p_css_file_urls=>'#PLUGIN_FILES#pretiusapexdaterangepicker.css'
,p_plsql_code=>wwv_flow_string.join(wwv_flow_t_varchar2(
' function formatExceptions(',
' pi_format in varchar2,',
' pi_mode in varchar2 default ''decode''',
' ) return varchar2 is',
' v_temp_format varchar2(200);',
' begin',
' v_temp_format := pi_format;',
'',
' if pi_mode = ''encode'' then',
' v_temp_format := replace( v_temp_format, ''fmMonth'', ''fmM0nth''); --fmMonth nie ma sensu',
' v_temp_format := replace( v_temp_format, ''fmDD'', ''fm0AY'' ); ',
' v_temp_format := replace( v_temp_format, ''fmDay'', ''fm0ay'' ); --tu nie ma sensu fm, usunac?',
' v_temp_format := replace( v_temp_format, ''DD'', ''0AY'' );',
' v_temp_format := replace( v_temp_format, ''MONTH'', ''M@ONTH'' );',
' v_temp_format := replace( v_temp_format, ''HH24'', ''H@H24'' );',
' else',
' v_temp_format := replace( v_temp_format, ''fmM0nth'', ''fmMonth''); ',
' v_temp_format := replace( v_temp_format, ''fm0ay'', ''fmDay'' );',
' v_temp_format := replace( v_temp_format, ''fm0AY'', ''fmDD'' );',
' v_temp_format := replace( v_temp_format, ''0AY'', ''DD'' );',
' v_temp_format := replace( v_temp_format, ''M@ONTH'', ''MONTH'' );',
' v_temp_format := replace( v_temp_format, ''H@H24'', ''HH24'' );',
' end if;',
'',
' return v_temp_format;',
' end;',
'',
' function translateOracleJs(',
' pi_format in varchar2',
' ) return varchar2 is',
' v_temp_format varchar2(200);',
' begin',
' --encode exceptions',
' v_temp_format := formatExceptions( pi_format, ''encode'' );',
'',
' v_temp_format := replace( v_temp_format, ''DAY'', ''dddd'' ); --MON -> Mon',
' v_temp_format := replace( v_temp_format, ''Day'', ''dddd'' ); --Mon -> Mon',
' v_temp_format := replace( v_temp_format, ''HH24'', ''HH'' );',
' v_temp_format := replace( v_temp_format, ''HH12'', ''hh'' );',
' v_temp_format := replace( v_temp_format, ''HH'', ''hh'' );',
' v_temp_format := replace( v_temp_format, ''MI'', ''mm'' );',
' v_temp_format := replace( v_temp_format, ''SS'', ''ss'' );',
' v_temp_format := replace( v_temp_format, ''fmMM'', ''M'' );',
' v_temp_format := replace( v_temp_format, ''MM'', ''MM'' );',
' v_temp_format := replace( v_temp_format, ''WW'', ''w'' );',
' v_temp_format := replace( v_temp_format, ''IW'', ''W'' );',
' v_temp_format := replace( v_temp_format, ''DAY'', ''dd'' );',
' v_temp_format := replace( v_temp_format, ''D'', ''E'' );',
' v_temp_format := replace( v_temp_format, ''AM'', ''A'' );',
' v_temp_format := replace( v_temp_format, ''PM'', ''A'' );',
' v_temp_format := replace( v_temp_format, ''RR'', ''YY'' );',
' v_temp_format := replace( v_temp_format, ''yy'', ''YY'' );',
' v_temp_format := replace( v_temp_format, ''mm'', ''MM'' );',
'',
' --restore exceptions',
' v_temp_format := formatExceptions( v_temp_format, ''decode'' );',
'',
' --decode exceptions',
' --v_temp_format := replace( v_temp_format, ''DD'', ''DD'' );',
' v_temp_format := replace( v_temp_format, ''MONTH'', ''MMMM'' ); --JANUARY -> January',
' v_temp_format := replace( v_temp_format, ''fmMonth'', ''MMMM'' ); --January -> January',
' v_temp_format := replace( v_temp_format, ''Month'', ''MMMM'' ); --January -> January',
' v_temp_format := replace( v_temp_format, ''MON'', ''MMM'' ); --JAN -> Jan',
' v_temp_format := replace( v_temp_format, ''Mon'', ''MMM'' ); --Jan -> Jan',
' v_temp_format := replace( v_temp_format, ''HH24'', ''HH'' );',
' v_temp_format := replace( v_temp_format, ''fmDD'', ''D'' );',
' v_temp_format := replace( v_temp_format, ''fmDay'', ''dddd'' );',
'',
' --moment.js don''t support "\" as separator',
' --it should be treated as "text" and because of that line below is needed',
' v_temp_format := replace( v_temp_format, ''\'', ''[\]'' );',
'',
' return v_temp_format;',
' end;',
'',
' function getTranslation(',
' pi_lang_text in varchar2,',
' pi_plugin_default in varchar2',
' ) return varchar2',
' is',
' begin',
' return replace( APEX_LANG.MESSAGE( pi_lang_text ), pi_lang_text, pi_plugin_default );',
' end;',
'',
' procedure json_write_array(',
' pi_array_string in varchar2,',
' pi_separator in varchar2 default '',''',
' )',
' is',
' v_array APEX_APPLICATION_GLOBAL.VC_ARR2;',
' v_result_array_elements varchar2(4000);',
'',
' begin',
' v_array := APEX_UTIL.STRING_TO_TABLE(pi_array_string, '','');',
' ',
' for i in 1..v_array.count LOOP',
' apex_json.write( v_array(i) ); ',
' end loop;',
' end; ',
'',
' function getJSON(',
' p_item in apex_plugin.t_page_item,',
' p_plugin in apex_plugin.t_plugin',
' ) return clob ',
' is ',
' --translateable',
' lang_month_names varchar2(4000) := getTranslation(''PRETIUS_DATERANGEPICKER_MONTHS'' , ''January,February,March,April,May,June,July,August,September,October,November,December'');',
' lang_app_days_of_week varchar2(200) := getTranslation(''PRETIUS_DATERANGEPICKER_DAYS'' , ''Su,Mo,Tu,We,Th,Fr,Sa'');',
' lang_apply_label varchar2(50) := getTranslation(''PRETIUS_DATERANGEPICKER_APPLYLABEL'' , ''Apply'');',
' lang_cancel_label varchar2(50) := getTranslation(''PRETIUS_DATERANGEPICKER_CANCELLABEL'' , ''Cancel''); ',
' lang_app_custom_range_label varchar2(100) := getTranslation(''PRETIUS_DATERANGEPICKER_CUSTOM_RANGE'' , ''Custom'');',
' lang_app_week_label varchar2(10) := getTranslation(''PRETIUS_DATERANGEPICKER_WEEK_LABEL'' , ''W'');',
' ',
' --plugin application scope attributes',
' --JavaScript uses index starting from 0, and PL/SQL from 1',
' attr_app_first_day number := p_plugin.attribute_03-1; ',
' attr_app_btn_class varchar2(100) := p_plugin.attribute_04;',
' attr_app_btn_apply_class varchar2(100) := p_plugin.attribute_05;',
' attr_app_btn_cancel_class varchar2(100) := p_plugin.attribute_06;',
'',
' --plugin custom attributes',
' attr_mode varchar2(5) := p_item.attribute_01;',
' -- p_item.attribute_02;',
' -- p_item.attribute_03;',
' attr_min_date varchar2(200) := p_item.attribute_04;',
' attr_max_date varchar2(200) := p_item.attribute_05;',
' attr_settings varchar2(4000) := p_item.attribute_06; ',
' attr_display_options varchar2(2) := p_item.attribute_07;',
' attr_date_limit number := p_item.attribute_08;',
' ',
' attr_appearance varchar2(4000) := p_item.attribute_10;',
' -- p_item.attribute_11;',
' -- p_item.attribute_12;',
' -- p_item.attribute_13;',
' attr_dateto_item varchar2(200) := APEX_PLUGIN_UTIL.PAGE_ITEM_NAMES_TO_JQUERY( p_item.attribute_14 );',
' attr_showMethod varchar2(15) := p_item.attribute_15;',
'',
' --do wywalenia, zastapione bedzie przez atrybut 1',
' attr_settings_altDateToSelect boolean := case when attr_mode = ''PDPA'' then true else false end;',
' attr_settings_overlay boolean := case when instr(attr_mode, ''PDP'') > 0 then true else false end;',
' --',
' ',
' attr_settings_autoApply boolean := case when instr(attr_settings, ''autoApply'') > 0 then true else false end;',
' attr_settings_ranges boolean := case when instr(attr_settings, ''ranges'') > 0 then true else false end;',
'',
' --wyglad',
' attr_look_dropdowns boolean := case when instr(attr_appearance, ''showDropdowns'') > 0 then true else false end;',
' attr_look_isoWeeks boolean := case when instr(attr_appearance, ''showISOWeekNumbers'') > 0 then true else false end;',
' attr_look_weekNumber boolean := case when instr(attr_appearance, ''showWeekNumbers'') > 0 then true else false end; ',
' attr_look_linkedCalendards boolean := case when instr(attr_appearance, ''linkedCalendars'') > 0 then true else false end;',
' attr_look_showCalendars boolean := case when instr(attr_appearance, ''alwaysShowCalendars'') > 0 then false else true end;',
' attr_look_onlyOneCalendar boolean := case when instr(attr_appearance, ''onlyOneCalendar'') > 0 then true else false end;',
' attr_look_showDateInputs boolean := case when instr(attr_appearance, ''hideCalendarDateInputs'') > 0 then false else true end;',
' attr_look_showOtherDays boolean := case when instr(attr_appearance, ''hideOtherMonthDays'') > 0 then false else true end;',
'',
'',
' attr_display_options_opens varchar2(9) := case when instr( attr_display_options, ''R'' ) > 0 then ''right'' when instr( attr_display_options, ''C'' ) > 0 then ''center'' else ''left'' end;',
' attr_display_options_drops varchar2(9) := case when instr( attr_display_options, ''U'' ) > 0 then ''up'' else ''down'' end;',
'',
' attr_date_format varchar2(100) := NVL(p_item.format_mask, ''YYYY-MM-DD'');',
' attr_date_format_timePicker boolean := case when instr(attr_date_format, ''HH'') > 0 then true else false end;',
' attr_date_format_timePicker24 boolean := case when instr(attr_date_format, ''HH24'') > 0 then true else false end;',
' attr_date_format_timePickerSS boolean := case when instr(attr_date_format, ''SS'') > 0 then true else false end;',
'',
' v_json clob;',
' begin',
' --utworz obiekt',
' apex_json.initialize_clob_output;',
' apex_json.open_object();',
' apex_json.open_object(''pretius'');',
' apex_json.write( ''overlay'', attr_settings_overlay );',
' apex_json.write( ''dateToItem'', attr_dateto_item );',
' apex_json.write( ''applyRanges'', attr_settings_ranges );',
' apex_json.write( ''onlyOneCalendar'', attr_look_onlyOneCalendar );',
' apex_json.write( ''hideCalendarDateInputs'', attr_look_showDateInputs );',
' apex_json.write( ''hideOtherMonthDays'', attr_look_showOtherDays );',
' apex_json.write( ''altDateToSelect'', attr_settings_altDateToSelect );',
' ',
' --apex_json.write( ''dateFromItem'', v_jquery_base_item );',
' apex_json.close_object; --apex',
'',
' apex_json.open_object(''daterangepicker'');',
' --apex_json.write( ''startDate'', );',
' --apex_json.write( ''endDate'', );',
' apex_json.write( ''alwaysShowCalendars'', attr_look_showCalendars );',
' apex_json.write( ''autoApply'', attr_settings_autoApply );',
' apex_json.write( ''autoUpdateInput'', false );',
' apex_json.write( ''applyClass'', attr_app_btn_apply_class );',
' apex_json.write( ''buttonClasses'', attr_app_btn_class );',
' apex_json.write( ''cancelClass'', attr_app_btn_cancel_class );',
' apex_json.write( ''drops'', attr_display_options_drops );',
' apex_json.write( ''linkedCalendars'', attr_look_linkedCalendards ); ',
' apex_json.write( ''minDate'', attr_min_date );',
' apex_json.write( ''maxDate'', attr_max_date );',
' apex_json.write( ''opens'', attr_display_options_opens );',
' apex_json.write( ''singleDatePicker'', false );',
' apex_json.write( ''showMethod'', attr_showMethod );',
' apex_json.write( ''showDropdowns'', attr_look_dropdowns );',
' ',
' apex_json.write( ''showWeekNumbers'', attr_look_weekNumber );',
' apex_json.write( ''showISOWeekNumbers'', attr_look_isoWeeks );',
'',
' --timepicker to be dont as application component ',
' apex_json.write( ''timePicker'', attr_date_format_timePicker );',
' apex_json.write( ''timePicker24Hour'', attr_date_format_timePicker24 );',
' apex_json.write( ''timePickerSeconds'', attr_date_format_timePickerSS );',
' apex_json.write( ''showCustomRangeLabel'', false );',
'',
' apex_json.open_object(''locale''); ',
' apex_json.write( ''applyLabel'', lang_apply_label );',
' apex_json.write( ''cancelLabel'', lang_cancel_label );',
' apex_json.write( ''customRangeLabel'', lang_app_custom_range_label);',
' apex_json.open_array(''daysOfWeek'');',
' json_write_array( lang_app_days_of_week );',
' apex_json.close_array;',
' apex_json.write( ''firstDay'', attr_app_first_day);',
' apex_json.write( ''format'', translateOracleJs( attr_date_format ) );',
' --js reference not exists',
' apex_json.write( ''fromLabel'', ''From'' );',
' --js reference not exists',
' apex_json.write( ''toLabel'', ''To'' );',
' apex_json.open_array(''monthNames'');',
' json_write_array( lang_month_names );',
' apex_json.close_array; ',
' apex_json.write( ''weekLabel'', lang_app_week_label );',
' apex_json.close_object;',
' ',
' --if maximum no of days is limited',
' if instr(attr_settings, ''dateLimit'') > 0 then',
' apex_json.open_object(''dateLimit'');',
' apex_json.write( ''days'', attr_date_limit );',
' apex_json.close_object;',
' end if;',
'',
' apex_json.close_object; --daterangepicker',
' apex_json.close_object;',
'',
' v_json := apex_json.get_clob_output;',
'',
' apex_json.free_output;',
'',
' return v_json;',
' end;',
'',
' procedure render_daterange (',
' p_item in apex_plugin.t_item,',
' p_plugin in apex_plugin.t_plugin,',
' p_param in apex_plugin.t_item_render_param,',
' p_result in out nocopy apex_plugin.t_item_render_result ',
' ) is',
' v_escaped_value varchar2(32767) := wwv_flow_escape.html(p_param.value);',
' attr_ranges varchar2(4000) := case when p_item.attribute_09 is null then ''{}'' else ''{"daterangepicker": {"ranges": ''||p_item.attribute_09||''}}'' end;',
' v_jquery_base_item varchar2(200) := APEX_PLUGIN_UTIL.PAGE_ITEM_NAMES_TO_JQUERY(p_item.name);',
' v_json clob;',
' begin',
'',
' if p_param.value_set_by_controller and p_param.is_readonly then',
' return;',
' end if;',
'',
' apex_plugin_util.debug_page_item (',
' p_plugin => p_plugin,',
' p_page_item => p_item ',
' );',
'',
' if p_param.is_readonly or p_param.is_printer_friendly then',
'',
' APEX_PLUGIN_UTIL.print_hidden_if_readonly (',
' p_item => p_item,',
' p_param => p_param ',
' ); ',
'',
' wwv_flow_plugin_util.print_display_only (',
' p_item => p_item,',
' p_display_value => p_param.value,',
' p_show_line_breaks => false,',
' p_escape => true ',
' );',
' else',
'',
' htp.p(''',
' <input ''||',
' ''type="text"''||',
'',
' apex_plugin_util.get_element_attributes(',
' p_item => p_item,',
' p_name => apex_plugin.get_input_name_for_page_item(p_is_multi_value => false),',
' p_default_class => ''text_field apex-item-text pretius_date_range'',',
' p_add_id => true,',
' p_add_labelledby => true',
' )||',
'',
' ''size="''||p_item.element_width||''" ''||',
' ''maxlength="''||p_item.element_max_length||''" ''||',
' --''value="''||htf.escape_sc(p_value)||''">''||',
' ''value="''||v_escaped_value||''">''||',
' ''<button type="button" class="ui-datepicker-trigger a-Button a-Button--calendar pretius-apexdaterangepicker">',
' <span class="a-Icon icon-calendar"></span>',
' </button> ',
' '');',
' ',
' --tbd',
' --p_result.is_navigable := true;',
'',
' v_json := getJSON(',
' p_item => p_item,',
' p_plugin => p_plugin',
' );',
'',
' apex_javascript.add_onload_code(',
' p_code => ''',
' $("''||v_jquery_base_item||''").apexdaterangepicker(''||v_json||'', ''||attr_ranges||'');',
' '',',
' p_key => ''apexdaterangepicker_''||p_item.name',
' );',
'',
' end if;',
'',
' end;',
''))
,p_api_version=>2
,p_render_function=>'render_daterange'
,p_standard_attributes=>'VISIBLE:FORM_ELEMENT:SESSION_STATE:READONLY:SOURCE:FORMAT_MASK_DATE:ELEMENT:WIDTH:PLACEHOLDER'
,p_substitute_attributes=>true
,p_subscribe_plugin_settings=>true
,p_version_identifier=>'1.2.2'
,p_about_url=>'http://apex.pretius.com'
,p_files_version=>99
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(2619342993878707803)
,p_plugin_id=>wwv_flow_api.id(2619302015137674773)
,p_attribute_scope=>'APPLICATION'
,p_attribute_sequence=>3
,p_display_sequence=>30
,p_prompt=>'First day'
,p_attribute_type=>'NUMBER'
,p_is_required=>false
,p_default_value=>'2'
,p_max_length=>1
,p_is_translatable=>false
,p_help_text=>'Use this attribute to determine which day of week should be rendered as first day of the week. While default day names are defined as <code>"Su,Mo,Tu,We,Th,Fr,Sa"</code>, value <code>"1"</code> refers <code>"Su"</code>. Value <code>"7"</code> refers '
||'<code>"Sa"</code>. Default value is <code>"2" (Mo)</code>'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(2619344261014729719)
,p_plugin_id=>wwv_flow_api.id(2619302015137674773)
,p_attribute_scope=>'APPLICATION'
,p_attribute_sequence=>4
,p_display_sequence=>40
,p_prompt=>'Button classes'
,p_attribute_type=>'TEXT'
,p_is_required=>false
,p_default_value=>'t-Button t-Button--small'
,p_is_translatable=>false
,p_help_text=>'Use this attribute to determine what classes will be applied to date picker buttons.'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(2619346006696737331)
,p_plugin_id=>wwv_flow_api.id(2619302015137674773)
,p_attribute_scope=>'APPLICATION'
,p_attribute_sequence=>5
,p_display_sequence=>50
,p_prompt=>'Apply class'
,p_attribute_type=>'TEXT'
,p_is_required=>false
,p_default_value=>'t-Button--hot'
,p_is_translatable=>false
,p_help_text=>'Use this attribute to determine what classes will be applied to <code>"Apply"</code> button.'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(2619347039610744264)
,p_plugin_id=>wwv_flow_api.id(2619302015137674773)
,p_attribute_scope=>'APPLICATION'
,p_attribute_sequence=>6
,p_display_sequence=>60
,p_prompt=>'Cancel class'
,p_attribute_type=>'TEXT'
,p_is_required=>false
,p_default_value=>'t-Cancel'
,p_is_translatable=>false
,p_help_text=>'Use this attribute to determine what classes will be applied to <code>"Cancel"</code> button.'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(1769813180681434272)
,p_plugin_id=>wwv_flow_api.id(2619302015137674773)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>1
,p_display_sequence=>10
,p_prompt=>'Mode'
,p_attribute_type=>'SELECT LIST'
,p_is_required=>true
,p_default_value=>'NDP'
,p_is_translatable=>false
,p_lov_type=>'STATIC'
,p_help_text=>'Picked option defines whether starting and ending date will be stored in one or two APEX items.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(1769819874492439066)
,p_plugin_attribute_id=>wwv_flow_api.id(1769813180681434272)
,p_display_sequence=>20
,p_display_value=>'One field'
,p_return_value=>'NDP'
,p_is_quick_pick=>true
,p_help_text=>'Starting and ending date will be stored within the plugin APEX item. Dates are separated with <code>" - "</code> string.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(1769820247351441074)
,p_plugin_attribute_id=>wwv_flow_api.id(1769813180681434272)
,p_display_sequence=>30
,p_display_value=>'Two fields'
,p_return_value=>'PDP'
,p_is_quick_pick=>true
,p_help_text=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<p>',
'Starting and ending date will be stored within separate APEX items. Attribute <b>Date to item</b> must be specified. Given APEX item will store ending date.',
'</p>',
'<ul>',
'<li>',
'When items don''t have values, clicking <code>date to</code> item results in showing date picker for item representing a starting date. ',
'</li>',
'<li>',
'When items have values set, clicking <code>date to</code> item results in showing date picker for item representing ending date - clicking on a date in calendar(s) starts a new range of dates.',
'</li>',
'</ul>'))
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(1769838546578452409)
,p_plugin_attribute_id=>wwv_flow_api.id(1769813180681434272)
,p_display_sequence=>40
,p_display_value=>'Two fields - alternative'
,p_return_value=>'PDPA'
,p_is_quick_pick=>true
,p_help_text=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<p>',
'Similar to <b>Two fields</b> except that clicking on <code>Date to</code> item results in selecting only ending date of the range. ',
'</p>'))
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(2619303659826967509)
,p_plugin_id=>wwv_flow_api.id(2619302015137674773)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>4
,p_display_sequence=>145
,p_prompt=>'Minimum date'
,p_attribute_type=>'TEXT'
,p_is_required=>true
,p_is_translatable=>false
,p_depending_on_attribute_id=>wwv_flow_api.id(2619304222448970221)
,p_depending_on_has_to_exist=>true
,p_depending_on_condition_type=>'IN_LIST'
,p_depending_on_expression=>'setMinDate'
,p_examples=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<ul>',
' <li><code>2012-12-25</code></li>',
' <li><code>+1y+1m+1w</code></li>',
' <li><code>-1m-1w</code></li>',
' <li><code>+1m-1d</code></li>',
' <li><code>today</code></li>',
'</ul>'))
,p_help_text=>wwv_flow_string.join(wwv_flow_t_varchar2(
'Enter the minimum date that can be selected.<br/><br/>',
'',
'The date value can be an absolute value in <code>"YYYY-MM-DD"</code> format or a relative value with respect to today''s date, such as <code>"+7d"</code> or <code>today</code> string.<br/><br/>',
'',
'Relative date values include:',
'',
'<dl>',
' <dt>y</dt>',
' <dd>+ / - years from today''s date</dd>',
' <dt>m</dt>',
' <dd>+ / - months from today''s date</dd>',
' <dt>w</dt>',
' <dd>+ / - weeks from today''s date</dd>',
' <dt>d</dt>',
' <dd>+ / - days from today''s date</dd>',
'</dl>'))
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(2619303890981968483)
,p_plugin_id=>wwv_flow_api.id(2619302015137674773)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>5
,p_display_sequence=>150
,p_prompt=>'Maximum date'
,p_attribute_type=>'TEXT'
,p_is_required=>true
,p_is_translatable=>false
,p_depending_on_attribute_id=>wwv_flow_api.id(2619304222448970221)
,p_depending_on_has_to_exist=>true
,p_depending_on_condition_type=>'IN_LIST'
,p_depending_on_expression=>'setMaxDate'
,p_examples=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<ul>',
' <li><code>2012-12-25</code></li>',
' <li><code>+1y+1m+1w</code></li>',
' <li><code>-1m-1w</code></li>',
' <li><code>+1m-1d</code></li>',
' <li><code>today</code></li>',
'</ul>'))
,p_help_text=>wwv_flow_string.join(wwv_flow_t_varchar2(
'Enter the maximum date that can be selected.<br/><br/>',
'',
'The date value can be an absolute value in <code>"YYYY-MM-DD"</code> format or a relative value with respect to today''s date, such as <code>"+7d"</code> or <code>today</code> string.<br/><br/>',
'',
'Relative date values include:',
'',
'<dl>',
' <dt>y</dt>',
' <dd>+ / - years from today''s date</dd>',
' <dt>m</dt>',
' <dd>+ / - months from today''s date</dd>',
' <dt>w</dt>',
' <dd>+ / - weeks from today''s date</dd>',
' <dt>d</dt>',
' <dd>+ / - days from today''s date</dd>',
'</dl>'))
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(2619304222448970221)
,p_plugin_id=>wwv_flow_api.id(2619302015137674773)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>6
,p_display_sequence=>125
,p_prompt=>'Settings'
,p_attribute_type=>'CHECKBOXES'
,p_is_required=>false
,p_is_translatable=>false
,p_lov_type=>'STATIC'
,p_help_text=>'This attribute allows you to configure the plugin behavior.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(2619304553636971097)
,p_plugin_attribute_id=>wwv_flow_api.id(2619304222448970221)
,p_display_sequence=>0
,p_display_value=>'Auto apply'
,p_return_value=>'autoApply'
,p_help_text=>wwv_flow_string.join(wwv_flow_t_varchar2(
'If checked, buttons <b>Apply</b> and <b>Cancel</b> are not displayed. ',
'Selecting ending date automatically close the date range picker and insert values to proper APEX item(s).'))
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(2619790308879828198)
,p_plugin_attribute_id=>wwv_flow_api.id(2619304222448970221)
,p_display_sequence=>1
,p_display_value=>'Minimum date'
,p_return_value=>'setMinDate'
,p_help_text=>'If checked, minimum date must be specified as the <b>Minimum date</b> attribute.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(2619790773374829446)
,p_plugin_attribute_id=>wwv_flow_api.id(2619304222448970221)
,p_display_sequence=>5
,p_display_value=>'Maximum date'
,p_return_value=>'setMaxDate'
,p_help_text=>'If checked, maximum date must be specified as the <b>Maximum date</b> attribute.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(2619307754515975113)
,p_plugin_attribute_id=>wwv_flow_api.id(2619304222448970221)
,p_display_sequence=>7
,p_display_value=>'Limit date range'
,p_return_value=>'dateLimit'
,p_help_text=>'If checked, range of dates can be limited to the given number of days. The value must be specified as the <b>Limit date range</b> attribute.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(2619308451009980203)
,p_plugin_attribute_id=>wwv_flow_api.id(2619304222448970221)
,p_display_sequence=>10
,p_display_value=>'Quick pick(s)'
,p_return_value=>'ranges'
,p_help_text=>'If checked, the plugin will use predefined ranges of dates. Ranges can be defined in <b>Quick pick(s)</b> attribute.'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(2619310658074998081)
,p_plugin_id=>wwv_flow_api.id(2619302015137674773)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>7
,p_display_sequence=>109
,p_prompt=>'Display options'
,p_attribute_type=>'SELECT LIST'
,p_is_required=>true
,p_default_value=>'DR'
,p_is_translatable=>false
,p_lov_type=>'STATIC'
,p_help_text=>wwv_flow_string.join(wwv_flow_t_varchar2(
'Picked option defines preferred position of the calendar(s) in relation to the APEX item. <br/><br/>',
'<b>Preferred</b> means that if there is no space for calendar(s) (above / below or left / right to the APEX item), the plugin will try to fit calendar(s) to the current position and available space. If the plugin can''t find the position (allowing all'
||' elements to be in-line), the plugin displays elements in one column one by one.'))
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(2619335186853467385)
,p_plugin_attribute_id=>wwv_flow_api.id(2619310658074998081)
,p_display_sequence=>10
,p_display_value=>'Up left'
,p_return_value=>'UL'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(2619335612438467980)
,p_plugin_attribute_id=>wwv_flow_api.id(2619310658074998081)
,p_display_sequence=>20
,p_display_value=>'Up center'
,p_return_value=>'UC'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(2619335992559468853)
,p_plugin_attribute_id=>wwv_flow_api.id(2619310658074998081)
,p_display_sequence=>30
,p_display_value=>'Up right'
,p_return_value=>'UR'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(2619336438518469482)
,p_plugin_attribute_id=>wwv_flow_api.id(2619310658074998081)
,p_display_sequence=>40
,p_display_value=>'Down left'
,p_return_value=>'DL'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(2619336799756470175)
,p_plugin_attribute_id=>wwv_flow_api.id(2619310658074998081)
,p_display_sequence=>50
,p_display_value=>'Down center'
,p_return_value=>'DC'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(2619337208960471546)
,p_plugin_attribute_id=>wwv_flow_api.id(2619310658074998081)
,p_display_sequence=>60
,p_display_value=>'Down right'
,p_return_value=>'DR'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(2619339087202504537)
,p_plugin_id=>wwv_flow_api.id(2619302015137674773)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>8
,p_display_sequence=>130
,p_prompt=>'Limit date range'
,p_attribute_type=>'NUMBER'
,p_is_required=>true
,p_default_value=>'7'
,p_is_translatable=>false
,p_depending_on_attribute_id=>wwv_flow_api.id(2619304222448970221)
,p_depending_on_has_to_exist=>true
,p_depending_on_condition_type=>'IN_LIST'
,p_depending_on_expression=>'dateLimit'
,p_help_text=>'If checked, maximum number of days in range is limited to given number. Narrowing range starts after picking first date.'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(2619339581022525554)
,p_plugin_id=>wwv_flow_api.id(2619302015137674773)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>9
,p_display_sequence=>290
,p_prompt=>'Quick pick(s)'
,p_attribute_type=>'TEXTAREA'
,p_is_required=>false
,p_default_value=>wwv_flow_string.join(wwv_flow_t_varchar2(
'{',
' ''Custom'': true,',
' ''Today'': [moment(), moment()],',
' ''Yesterday'': [moment().subtract(1, ''days''), moment().subtract(1, ''days'')],',
' ''Last 7 Days'': [moment().subtract(6, ''days''), moment()],',
' ''Last 30 Days'': [moment().subtract(29, ''days''), moment()],',
' ''This Month'': [moment().startOf(''month''), moment().endOf(''month'')],',
' ''Last Month'': [moment().subtract(1, ''month'').startOf(''month''), moment().subtract(1, ''month'').endOf(''month'')]',
'}'))
,p_is_translatable=>false
,p_depending_on_attribute_id=>wwv_flow_api.id(2619304222448970221)
,p_depending_on_has_to_exist=>true
,p_depending_on_condition_type=>'IN_LIST'
,p_depending_on_expression=>'ranges'
,p_examples=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<h4>Default value</h4>',
'<pre>{ ',
' ''Custom'': true,',
' ''Today'': [',
' moment(), ',
' moment()',
' ],',
' ''Yesterday'': [',
' moment().subtract(1, ''days''), ',
' moment().subtract(1, ''days'')',
' ],',
' ''Last 7 Days'': [',
' moment().subtract(6, ''days''), ',
' moment()',
' ],',
' ''Last 30 Days'': [',
' moment().subtract(29, ''days''), ',
' moment()',
' ],',
' ''This Month'': [',
' moment().startOf(''month''), ',
' moment().endOf(''month'')',
' ],',
' ''Last Month'': [',
' moment().subtract(1, ''month'').startOf(''month''), ',
' moment().subtract(1, ''month'').endOf(''month'')',
' ]',
'}</pre>',
'<h4>Tommorow</h4>',
'<pre>{ ',
' ''Tommorow'': [',
' moment().add(1, ''day'').startOf(''day''), ',
' moment().add(1, ''day'').endOf(''day'')',
' ]',
'}</pre>',
'',
'<h4>Next month</h4>',
'<pre>{ ',
' ''Next Month'': [',
' moment().add(1, ''month'').startOf(''month''), ',
' moment().add(1, ''month'').endOf(''month'')',
' ]',
'}</pre>',
'<p>',
' Read <code>Moment.js</code> docs to learn more about manipulating dates - http://momentjs.com/docs/#/manipulating/ .',
'</p>'))
,p_help_text=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<p>',
'Quick pick(s) are defined as JSON object. ',
'JSON object keys represent available quick pick labels displayed to the user. ',
'Each key is defined as <code>Array</code> with two elements - <code>"start"</code> and <code>"end"</code> of a predefined range. ',
'<code>"Start"</code> and <code>"end"</code> date are instances of Moment.js JavaScript library. ',
'</p>',
'<p>',
'To learn more about Moment.js visit its home page - http://momentjs.com/ .',
'</p>',
'',
'<h4>About "Custom range"</h4>',
'<p>',
'"Custom range" allows user to pick his own range of dates when quick picks are displayed without calendar(s). Showing "Custom range" label is possible when JSON object key <code>"Custom"</code> has value set to <code>"true"</code>. ',
'</p>',
'',
'<h4>"Custom range" with custom text</h4>',
'<p>',
'To change "Custom range" label text it is needed to add new text message <code>PRETIUS_DATERANGEPICKER_CUSTOM_RANGE</code> to APEX translations ("Shared components > Globalization > Text Messages")',
'</p>'))
);
end;
/
begin
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(1769969661142745318)
,p_plugin_id=>wwv_flow_api.id(2619302015137674773)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>10
,p_display_sequence=>127
,p_prompt=>'Appearance'
,p_attribute_type=>'CHECKBOXES'
,p_is_required=>false
,p_is_translatable=>false
,p_lov_type=>'STATIC'
,p_help_text=>'This attribute allows you to configure the plugin appearance.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(1769982224028747709)
,p_plugin_attribute_id=>wwv_flow_api.id(1769969661142745318)
,p_display_sequence=>10
,p_display_value=>'Quick pick(s) without calendar'
,p_return_value=>'alwaysShowCalendars'
,p_help_text=>wwv_flow_string.join(wwv_flow_t_varchar2(
'If checked, only quick pick(s) will be displayed after focusing the plugin item. <br/><br/>',
'',
'Exceptions:',
'<ul>',
'<li>Clicking on <b>Custom</b> quick pick results in showing calendars.</li>',
'</ul>'))
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(1769982641642748563)
,p_plugin_attribute_id=>wwv_flow_api.id(1769969661142745318)
,p_display_sequence=>20
,p_display_value=>'Single calendar'
,p_return_value=>'onlyOneCalendar'
,p_help_text=>'If checked, only one month (calendar) is displayed.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(1769983058673749213)
,p_plugin_attribute_id=>wwv_flow_api.id(1769969661142745318)
,p_display_sequence=>30
,p_display_value=>'Link calendars'
,p_return_value=>'linkedCalendars'
,p_help_text=>'If checked, months are rendered one after the other. Using navigation arrows results in presenting consecutive months.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(1769983451240749970)
,p_plugin_attribute_id=>wwv_flow_api.id(1769969661142745318)
,p_display_sequence=>40
,p_display_value=>'Show days of other months'
,p_return_value=>'hideOtherMonthDays'
,p_help_text=>'If checked, starting/ending days of next/previous month are rendered in calendar(s).'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(1769983841440750855)
,p_plugin_attribute_id=>wwv_flow_api.id(1769969661142745318)
,p_display_sequence=>50
,p_display_value=>'Show calendar inputs'
,p_return_value=>'hideCalendarDateInputs'
,p_help_text=>wwv_flow_string.join(wwv_flow_t_varchar2(
'If checked, inputs for date and timpepicker* are displayed.<br/><br/>',
'',
'*Timepicker is rendered when "HH12" or "HH24" is used in date format. "MI", "SS" and "PM/AM" formats are supported also'))
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(1769984199161751554)
,p_plugin_attribute_id=>wwv_flow_api.id(1769969661142745318)
,p_display_sequence=>60
,p_display_value=>'Show month as dropdown'
,p_return_value=>'showDropdowns'
,p_help_text=>'If checked, month and year names are rendered as select lists. Selecting month or year results in jumping to the selected month / year.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(1769984601906752256)
,p_plugin_attribute_id=>wwv_flow_api.id(1769969661142745318)
,p_display_sequence=>70
,p_display_value=>'Show week numbers'
,p_return_value=>'showWeekNumbers'
,p_help_text=>'If checked, week numbers are rendered as first column in calendar(s).'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(1769985008675753182)
,p_plugin_attribute_id=>wwv_flow_api.id(1769969661142745318)
,p_display_sequence=>80
,p_display_value=>'ISO week numbers'
,p_return_value=>'showISOWeekNumbers'
,p_help_text=>wwv_flow_string.join(wwv_flow_t_varchar2(
'If checked, ISO week numbers rendered as first column in calendar(s).<br/><br/>',
'Requires <b>Show week numbers</b> to be unchecked.'))
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(2619399450273017692)
,p_plugin_id=>wwv_flow_api.id(2619302015137674773)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>14
,p_display_sequence=>14
,p_prompt=>'Date to item'
,p_attribute_type=>'PAGE ITEM'
,p_is_required=>true
,p_is_translatable=>false
,p_depending_on_attribute_id=>wwv_flow_api.id(1769813180681434272)
,p_depending_on_has_to_exist=>true
,p_depending_on_condition_type=>'IN_LIST'
,p_depending_on_expression=>'PDP,PDPA'
,p_help_text=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<p>',
'Pick or enter name of the APEX item that will store ending date of the selected range.',
'</p> ',
'<p>',
'Provided APEX item must be declared with <code>"Type"</code> set to <code>"Text field"</code>.',
'</p>'))
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(2619418214531082768)
,p_plugin_id=>wwv_flow_api.id(2619302015137674773)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>15
,p_display_sequence=>103
,p_prompt=>'Show'
,p_attribute_type=>'SELECT LIST'
,p_is_required=>true
,p_default_value=>'onIconClick'
,p_is_translatable=>false
,p_lov_type=>'STATIC'
,p_help_text=>'Select when the date picker pop-up calendar displays.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(2619419280865084440)
,p_plugin_attribute_id=>wwv_flow_api.id(2619418214531082768)
,p_display_sequence=>10
,p_display_value=>'On focus'
,p_return_value=>'onFocus'
,p_is_quick_pick=>true
,p_help_text=>'The calendar pop-up displays as soon as the item receives focus.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(2619419761631085273)
,p_plugin_attribute_id=>wwv_flow_api.id(2619418214531082768)
,p_display_sequence=>20
,p_display_value=>'On icon click'
,p_return_value=>'onIconClick'
,p_is_quick_pick=>true
,p_help_text=>'The calendar pop-up displays when the icon is clicked.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(2619420779768086682)
,p_plugin_attribute_id=>wwv_flow_api.id(2619418214531082768)
,p_display_sequence=>30
,p_display_value=>'Both'
,p_return_value=>'both'
,p_is_quick_pick=>true
,p_help_text=>'The calendar pop-up displays as soon as the item receives focus and subsequently when the icon is clicked.'
);
end;
/
begin
wwv_flow_api.g_varchar2_table := wwv_flow_api.empty_varchar2_table;
wwv_flow_api.g_varchar2_table(1) := '242E7769646765742827707265746975732E617065786461746572616E67657069636B6572272C207B0D0A20206F7074696F6E733A207B0D0A20202020707265746975733A207B0D0A2020202020202F2F0D0A202020207D2C0D0A202020206461746572';
wwv_flow_api.g_varchar2_table(2) := '616E67657069636B65723A207B0D0A2020202020202F2F0D0A202020207D0D0A20207D2C0D0A2020435F4C4F475F4445425547202020203A20617065782E64656275672E4C4F475F4C4556454C2E494E464F2C0D0A2020435F4C4F475F5741524E494E47';
wwv_flow_api.g_varchar2_table(3) := '20203A20617065782E64656275672E4C4F475F4C4556454C2E5741524E2C0D0A2020435F4C4F475F4552524F52202020203A20617065782E64656275672E4C4F475F4C4556454C2E4552524F522C0D0A2020435F4C4F475F4C4556454C362020203A2061';
wwv_flow_api.g_varchar2_table(4) := '7065782E64656275672E4C4F475F4C4556454C2E4150505F54524143452C0D0A2020435F4C4F475F4C4556454C392020203A20617065782E64656275672E4C4F475F4C4556454C2E454E47494E455F54524143452C0D0A0D0A20205F6372656174653A20';
wwv_flow_api.g_varchar2_table(5) := '66756E6374696F6E28297B0D0A20202020746869732E6C6F67507265666978203D2027232028272B746869732E656C656D656E742E6765742830292E69642B272920273B2F2F2B746869732E6F7074696F6E732E706C7567696E2E6E616D652B273A273B';
wwv_flow_api.g_varchar2_table(6) := '0D0A0D0A20202020617065782E64656275672E6D6573736167652820746869732E435F4C4F475F44454255472C20746869732E6C6F675072656669782C20275F637265617465272C2027746869732E6F7074696F6E73272C20746869732E6F7074696F6E';
wwv_flow_api.g_varchar2_table(7) := '7320293B0D0A0D0A202020202F2F726571756972656420666F7220666978696E6720706F736974696F6E0D0A20202020746869732E6F7267696E616C203D207B0D0A2020202020206F70656E733A20746869732E6F7074696F6E732E6461746572616E67';
wwv_flow_api.g_varchar2_table(8) := '657069636B65722E6F70656E732C0D0A20202020202064726F70733A20746869732E6F7074696F6E732E6461746572616E67657069636B65722E64726F70730D0A202020207D3B0D0A0D0A20202020746869732E61706578203D207B0D0A202020202020';
wwv_flow_api.g_varchar2_table(9) := '6974656D3A20746869732E656C656D656E742C0D0A202020202020646174657069636B6572427574746F6E3A20746869732E656C656D656E742E6E657874416C6C282027627574746F6E2720292E666972737428290D0A202020207D3B0D0A0D0A202020';
wwv_flow_api.g_varchar2_table(10) := '20746869732E64617465546F203D207B0D0A2020202020206974656D3A202428746869732E6F7074696F6E732E707265746975732E64617465546F4974656D292C0D0A202020202020646174657069636B6572427574746F6E3A206E756C6C0D0A202020';
wwv_flow_api.g_varchar2_table(11) := '207D3B0D0A0D0A202020202F2F73686F756C6420646973706C617920637573746F6D2072616E6765206C6162656C3F0D0A202020206966202820746869732E5F686173437573746F6D52616E67654C6162656C28292029207B0D0A202020202020746869';
wwv_flow_api.g_varchar2_table(12) := '732E6F7074696F6E732E6461746572616E67657069636B65722E73686F77437573746F6D52616E67654C6162656C203D20746869732E5F686173437573746F6D52616E67654C6162656C28293B0D0A20202020202064656C65746520746869732E6F7074';
wwv_flow_api.g_varchar2_table(13) := '696F6E732E6461746572616E67657069636B65722E72616E6765732E437573746F6D3B0D0A202020207D0D0A0D0A202020202F2F636865636B2072616E6765730D0A202020206966202820746869732E6F7074696F6E732E707265746975732E6F6E6C79';
wwv_flow_api.g_varchar2_table(14) := '4F6E6543616C656E6461722029207B0D0A202020202020746869732E6F7074696F6E732E6461746572616E67657069636B65722E6C696E6B656443616C656E64617273203D2066616C73653B0D0A202020207D0D0A20202020200D0A0D0A202020202F2F';
wwv_flow_api.g_varchar2_table(15) := '6372656174652064617465546F20627574746F6E20617320636C6F6E65206F66206170657820646174657069636B657220627574746F6D0D0A20202020746869732E64617465546F2E646174657069636B6572427574746F6E203D20746869732E617065';
wwv_flow_api.g_varchar2_table(16) := '782E646174657069636B6572427574746F6E2E636C6F6E6528293B0D0A202020202F2F696E736572742064617465546F20627574746F6E2061667465722064617465546F206974656D0D0A20202020746869732E64617465546F2E646174657069636B65';
wwv_flow_api.g_varchar2_table(17) := '72427574746F6E2E696E7365727441667465722820746869732E64617465546F2E6974656D20293B0D0A0D0A202020206966202820746869732E6F7074696F6E732E707265746975732E6F7665726C617920262620746869732E64617465546F2E697465';
wwv_flow_api.g_varchar2_table(18) := '6D2E6C656E677468203D3D20302029207B0D0A2020202020207468726F7720224E6965207A6E616C617A6C2077796D6167616E65676F206974656D61206461746120646F223B0D0A202020207D0D0A0D0A202020202F2F6D696E2026206D617820646174';
wwv_flow_api.g_varchar2_table(19) := '650D0A20202020746869732E6F7074696F6E732E6461746572616E67657069636B65722E6D696E44617465203D20746869732E6F7074696F6E732E6461746572616E67657069636B65722E6D696E4461746520213D20756E646566696E6564203F207468';
wwv_flow_api.g_varchar2_table(20) := '69732E6765744D696E4D61784461746546726F6D537472696E672820746869732E6F7074696F6E732E6461746572616E67657069636B65722E6D696E446174652029203A20756E646566696E65643B0D0A20202020746869732E6F7074696F6E732E6461';
wwv_flow_api.g_varchar2_table(21) := '746572616E67657069636B65722E6D617844617465203D20746869732E6F7074696F6E732E6461746572616E67657069636B65722E6D61784461746520213D20756E646566696E6564203F20746869732E6765744D696E4D61784461746546726F6D5374';
wwv_flow_api.g_varchar2_table(22) := '72696E672820746869732E6F7074696F6E732E6461746572616E67657069636B65722E6D6178446174652029203A20756E646566696E65643B0D0A0D0A202020202F2F646174652072616E6765207069636B657220696E69740D0A20202020746869732E';
wwv_flow_api.g_varchar2_table(23) := '617065782E6974656D2E6461746572616E67657069636B65722820746869732E6F7074696F6E732E6461746572616E67657069636B65722C2066756E6374696F6E2873746172742C20656E642C206C6162656C297B0D0A2020202020202F2F636F6E736F';
wwv_flow_api.g_varchar2_table(24) := '6C652E6C6F6728272D2D2D43616C6C6261636B2066756E6374696F6E2D2D2D27293B0D0A202020207D293B0D0A0D0A20202020746869732E7069636B6572203D20746869732E617065782E6974656D2E6461746128276461746572616E67657069636B65';
wwv_flow_api.g_varchar2_table(25) := '7227293B0D0A0D0A20202020746869732E617065782E6974656D0D0A2020202020202E6F6E28202773686F772E6461746572616E67657069636B6572272020202020202020202C20242E70726F78792820746869732E5F636F6D6D6F6E53686F77202020';
wwv_flow_api.g_varchar2_table(26) := '202020202020202020202C2074686973202C20276461746546726F6D27202920290D0A2020202020202E6F6E28202773686F7743616C656E6461722E6461746572616E67657069636B657227202C20242E70726F78792820746869732E5F636F6D6D6F6E';
wwv_flow_api.g_varchar2_table(27) := '53686F77202020202020202020202020202C2074686973202C20276461746546726F6D27202920290D0A2020202020200D0A2020202020202E6F6E282027686964652E6461746572616E67657069636B657227202C20242E70726F78792820746869732E';
wwv_flow_api.g_varchar2_table(28) := '5F636F6D6D6F6E48696465202020202020202020202020202C2074686973202C20276461746546726F6D27202920290D0A2020202020202E6F6E28202763616C656E646172557064617465642E6170657827202C20242E70726F78792820746869732E5F';
wwv_flow_api.g_varchar2_table(29) := '636F6D6D6F6E5F63616C65726E646172557064617465202C2074686973202C20276461746546726F6D27202920293B0D0A0D0A202020206966202820746869732E6F7074696F6E732E6461746572616E67657069636B65722E73686F774D6574686F6420';
wwv_flow_api.g_varchar2_table(30) := '3D3D20276F6E49636F6E436C69636B272029207B0D0A2020202020200D0A202020202020746869732E617065782E6974656D0D0A20202020202020202E6F6666282027636C69636B2E6461746572616E67657069636B65722720290D0A20202020202020';
wwv_flow_api.g_varchar2_table(31) := '202E6F6666282027666F6375732E6461746572616E67657069636B65722720293B0D0A0D0A202020202020746869732E617065782E646174657069636B6572427574746F6E2E6F6E282027636C69636B27202C20242E70726F787928746869732E5F6E61';
wwv_flow_api.g_varchar2_table(32) := '7469766553686F775069636B65724F6E427574746F6E436C69636B2C20746869732920293B0D0A0D0A2020202020206966202820746869732E6F7074696F6E732E707265746975732E6F7665726C61792029207B0D0A2020202020202020746869732E64';
wwv_flow_api.g_varchar2_table(33) := '617465546F2E646174657069636B6572427574746F6E2E6F6E282027636C69636B27202C20242E70726F787928746869732E5F6F7665726C61795F73686F775069636B65724F6E427574746F6E436C69636B2C20746869732920293B0D0A202020202020';
wwv_flow_api.g_varchar2_table(34) := '7D0D0A0D0A202020207D0D0A20202020656C7365206966202820746869732E6F7074696F6E732E6461746572616E67657069636B65722E73686F774D6574686F64203D3D20276F6E466F637573272029207B0D0A0D0A2020202020206966202820746869';
wwv_flow_api.g_varchar2_table(35) := '732E6F7074696F6E732E707265746975732E6F7665726C61792029207B0D0A2020202020202020746869732E64617465546F2E6974656D2E6F6E282027666F63757327202C20242E70726F78792820746869732E5F6F7665726C61795F666F6375734F6E';
wwv_flow_api.g_varchar2_table(36) := '44617465546F2C207468697329293B0D0A2020202020207D0D0A0D0A202020207D0D0A20202020656C7365206966202820746869732E6F7074696F6E732E6461746572616E67657069636B65722E73686F774D6574686F64203D3D2027626F7468272029';
wwv_flow_api.g_varchar2_table(37) := '207B0D0A202020202020746869732E617065782E646174657069636B6572427574746F6E2E6F6E282027636C69636B27202C20242E70726F78792820746869732E5F6E617469766553686F775069636B65724F6E427574746F6E436C69636B2C20746869';
wwv_flow_api.g_varchar2_table(38) := '73202920293B0D0A0D0A2020202020206966202820746869732E6F7074696F6E732E707265746975732E6F7665726C61792029207B0D0A2020202020202020746869732E64617465546F2E646174657069636B6572427574746F6E2E6F6E282027636C69';
wwv_flow_api.g_varchar2_table(39) := '636B27202C20242E70726F78792820746869732E5F6F7665726C61795F73686F775069636B65724F6E427574746F6E436C69636B202C2074686973202920293B0D0A2020202020202020746869732E64617465546F2E6974656D20202020202020202020';
wwv_flow_api.g_varchar2_table(40) := '20202E6F6E282027666F63757327202C20242E70726F78792820746869732E5F6F7665726C61795F666F6375734F6E44617465546F20202020202020202020202C2074686973202920293B0D0A2020202020207D0D0A0D0A202020207D0D0A2020202065';
wwv_flow_api.g_varchar2_table(41) := '6C7365207B0D0A2020202020207468726F772022556E6B6E6F776E20746869732E6F7074696F6E732E6461746572616E67657069636B65722E73686F774D6574686F64203D2027222B746869732E6F7074696F6E732E6461746572616E67657069636B65';
wwv_flow_api.g_varchar2_table(42) := '722E73686F774D6574686F642B2227223B0D0A202020207D0D0A0D0A202020206966202820746869732E6F7074696F6E732E707265746975732E6F7665726C61792029207B0D0A0D0A202020202020746869732E617065782E6974656D0D0A2020202020';
wwv_flow_api.g_varchar2_table(43) := '2020202E6F6E28276170706C792E6461746572616E67657069636B6572272020202C20242E70726F78792820746869732E5F6F7665726C61794170706C792C202074686973202920290D0A20202020202020202E6F6E282763616E63656C2E6461746572';
wwv_flow_api.g_varchar2_table(44) := '616E67657069636B65722720202C20242E70726F78792820746869732E5F6F7665726C617943616E63656C2C2074686973202920290D0A20202020202020202E6F6E2827666F6375732720202C20242E70726F78792820746869732E5F6F7665726C6179';
wwv_flow_api.g_varchar2_table(45) := '466F6375732C2074686973202920290D0A2020202020200D0A202020202020746869732E64617465546F2E6974656D0D0A20202020202020202E6F6E282773686F772E6461746572616E67657069636B657220272020202020202020202C20242E70726F';
wwv_flow_api.g_varchar2_table(46) := '78792820746869732E5F636F6D6D6F6E53686F77202020202020202020202020202C2074686973202C202764617465546F27202920290D0A20202020202020202E6F6E282773686F7743616C656E6461722E6461746572616E67657069636B6572272020';
wwv_flow_api.g_varchar2_table(47) := '2C20242E70726F78792820746869732E5F636F6D6D6F6E53686F77202020202020202020202020202C2074686973202C202764617465546F27202920290D0A20202020202020202E6F6E2827686964652E6461746572616E67657069636B657227202020';
wwv_flow_api.g_varchar2_table(48) := '202020202020202C20242E70726F78792820746869732E5F6F7665726C61795F64617465546F4869646520202020202C20746869732020202020202020202020202920290D0A20202020202020202E6F6E2827686964652E6461746572616E6765706963';
wwv_flow_api.g_varchar2_table(49) := '6B657227202020202020202020202C20242E70726F78792820746869732E5F636F6D6D6F6E48696465202020202020202020202020202C2074686973202C202764617465546F27202920290D0A20202020202020202E6F6E282763616C656E6461725570';
wwv_flow_api.g_varchar2_table(50) := '64617465642E6170657827202020202020202020202C20242E70726F78792820746869732E5F636F6D6D6F6E5F63616C65726E646172557064617465202C2074686973202C202764617465546F27202920293B0D0A0D0A202020202020746869732E6461';
wwv_flow_api.g_varchar2_table(51) := '7465546F2E6974656D2E646174612827706172656E744974656D272C20746869732E617065782E6974656D293B0D0A202020202020746869732E5F617065785F64612820746869732E64617465546F2E6974656D20293B0D0A0D0A202020207D0D0A2020';
wwv_flow_api.g_varchar2_table(52) := '2020656C7365207B0D0A202020202020746869732E617065782E6974656D0D0A20202020202020202E6F6E28276170706C792E6461746572616E67657069636B657227202C20242E70726F78792820746869732E5F6E61746976654170706C7920202C20';
wwv_flow_api.g_varchar2_table(53) := '74686973202920290D0A20202020202020202E6F6E282763616E63656C2E6461746572616E67657069636B6572272C20242E70726F78792820746869732E5F6E617469766543616E63656C202C2074686973202920290D0A20202020202020202E6F6E28';
wwv_flow_api.g_varchar2_table(54) := '27666F6375732E6461746572616E67657069636B657227202C20242E70726F78792820746869732E5F6E6174697665466F63757320202C2074686973202920290D0A202020207D0D0A0D0A20202020746869732E5F617065785F64612820746869732E61';
wwv_flow_api.g_varchar2_table(55) := '7065782E6974656D20293B0D0A0D0A20207D2C0D0A20205F64657374726F793A2066756E6374696F6E28297B0D0A0D0A20207D2C0D0A20205F6F7665726C6179466F6375733A2066756E6374696F6E28297B0D0A20202020617065782E64656275672E6D';
wwv_flow_api.g_varchar2_table(56) := '6573736167652820746869732E435F4C4F475F4C4556454C362C20746869732E6C6F675072656669782C20275F6F7665726C6179466F6375732720293B0D0A0D0A20202020766172207374617274446174652C20656E64446174653B0D0A0D0A20202020';
wwv_flow_api.g_varchar2_table(57) := '6966202820746869732E617065782E6974656D2E76616C28292E7472696D28292E6C656E677468203D3D203020262620746869732E64617465546F2E6974656D2E76616C28292E7472696D28292E6C656E677468203D3D20302029207B0D0A2020202020';
wwv_flow_api.g_varchar2_table(58) := '20737461727444617465203D206D6F6D656E7428292E73746172744F66282764617927293B0D0A202020202020656E64446174652020203D206D6F6D656E7428292E656E644F66282764617927293B0D0A2020202020200D0A202020207D0D0A20202020';
wwv_flow_api.g_varchar2_table(59) := '656C7365206966202820746869732E617065782E6974656D2E76616C28292E7472696D28292E6C656E677468203E203020262620746869732E64617465546F2E6974656D2E76616C28292E7472696D28292E6C656E677468203D3D20302029207B0D0A20';
wwv_flow_api.g_varchar2_table(60) := '2020202020737461727444617465203D206D6F6D656E742820746869732E617065782E6974656D2E76616C28292C202020746869732E6F7074696F6E732E6461746572616E67657069636B65722E6C6F63616C652E666F726D617420293B0D0A20202020';
wwv_flow_api.g_varchar2_table(61) := '2020656E64446174652020203D207374617274446174652E656E644F66282764617927293B0D0A2020202020200D0A202020207D0D0A20202020656C7365206966202820746869732E617065782E6974656D2E76616C28292E7472696D28292E6C656E67';
wwv_flow_api.g_varchar2_table(62) := '7468203D3D203020262620746869732E64617465546F2E6974656D2E76616C28292E7472696D28292E6C656E677468203E20302029207B0D0A202020202020656E64446174652020203D206D6F6D656E742820746869732E64617465546F2E6974656D2E';
wwv_flow_api.g_varchar2_table(63) := '76616C28292C20746869732E6F7074696F6E732E6461746572616E67657069636B65722E6C6F63616C652E666F726D617420293B0D0A202020202020737461727444617465203D20656E64446174652E73746172744F66282764617927293B2020202020';