|
@@ -1,11 +1,32 @@
|
|
|
+{
|
|
|
+ This file is part of the Pas2JS run time library.
|
|
|
+ Copyright (c) 2020 by the Pas2JS development team.
|
|
|
+
|
|
|
+ Import classes for flatpickr (https://flatpickr.js.org/)
|
|
|
+
|
|
|
+ See the file COPYING.FPC, included in this distribution,
|
|
|
+ for details about the copyright.
|
|
|
+
|
|
|
+ This program is distributed in the hope that it will be useful,
|
|
|
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
+
|
|
|
+ **********************************************************************}
|
|
|
+{$IFNDEF FPC_DOTTEDUNITS}
|
|
|
unit libflatpickr;
|
|
|
+{$ENDIF}
|
|
|
|
|
|
{$mode objfpc}
|
|
|
{$modeswitch externalclass}
|
|
|
|
|
|
interface
|
|
|
|
|
|
-uses types, js, web, libjquery;
|
|
|
+uses
|
|
|
+{$IFDEF FPC_DOTTEDUNITS}
|
|
|
+ System.Types, JSApi.JS, BrowserApi.Web, Api.JQuery;
|
|
|
+{$ELSE}
|
|
|
+ types, js, web, libjquery;
|
|
|
+{$ENDIF}
|
|
|
|
|
|
Type
|
|
|
TJSDateDynArray = Array of TJSDate;
|
|
@@ -279,10 +300,6 @@ Function multiflatpickr(const aSelector : String; aOptions : TFlatPickrOptions)
|
|
|
|
|
|
implementation
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-{ JQueryFlatPickrHelper }
|
|
|
-
|
|
|
{ JJSElementFlatPickrHelper }
|
|
|
|
|
|
function JJSElementFlatPickrHelper._flatpickr: TFlatPickr;
|