Metadata-Version: 2.1
Name: yafowil.widget.datetime
Version: 2.0a2
Summary: Datetime Widget for YAFOWIL
Home-page: http://github.com/conestack/yafowil.widget.datetime
Author: Yafowil Contributors
Author-email: dev@conestack.org
License: Simplified BSD
Classifier: License :: OSI Approved :: BSD License
Classifier: Environment :: Web Environment
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
License-File: LICENSE.rst
Requires-Dist: setuptools
Requires-Dist: yafowil (>2.1.99)
Requires-Dist: bda.intellidatetime (>1.2.99)
Provides-Extra: test
Requires-Dist: lxml ; extra == 'test'
Requires-Dist: zope.testrunner ; extra == 'test'

This is a **datetime widget** for for `YAFOWIL 
<http://pypi.python.org/pypi/yafowil>`_ 

It utilizes
`vanillajs datepicker <https://github.com/mymth/vanillajs-datepicker/releases/tag/v1.1.4>`_.
Included are the basic datepicker Javascripts and a slightly modified version
of the datepicker bootstrap CSS.

- `Documentation <http://docs.yafowil.info/en/latest/blueprints.html#datetime>`_
- `DEMO - see it Live <http://demo.yafowil.info/++widget++yafowil.widget.datetime/index.html>`_


Contributors
============

- Robert Niederrreiter

- Georg Bernhard

- Lena Daxenbichler


Changes
=======

2.0a2 (2023-09-28)
------------------

- ``datetime_extractor`` returns ``None`` instead of empty string if widget is
  present in form but no value given.
  [rnix]


2.0a1 (2023-05-15)
------------------

- Add ``webresource`` support.
  [rnix]

- Prevent initialize if widget is part of array template.
  [lenadax]

- Extend JS by:
  ``datepicker_on_array_add``,
  ``timeepicker_on_array_add``,
  ``register_datepicker_array_subscribers``,
  ``register_timepicker_array_subscribers``
  to enable usage in ``yafowil.widget.array``.
  [lenadax]

- Get rid of JQuery UI.
  [lenadax]

- Rewrite JavaScript using ES6. Utilize vanillajs-datepicker
  [lenadax]


1.12 (2020-07-09)
-----------------

- Add ``datetime.empty_display_value`` property.
  [rnix]

- Cast hour and minute values to int in ``time_value`` if ``format`` is
  ``tuple``.
  [rnix]

- Do not mask built-in ``format`` function in ``widget`` module.
  [rnix]


1.11 (2018-11-07)
-----------------

- Add ``yafowil.common.generic_emptyvalue_extractor`` to ``time`` and
  ``datetime`` blueprints.
  [rnix]


1.10 (2018-07-16)
-----------------

- Python 3 compatibility.
  [rnix]

- Convert doctests to unittests.
  [rnix]


1.9 (2017-03-10)
----------------

- Add dedicated Plone 5 related CSS.
  [rnix, 2017-03-06]

- Introduce dedicated ``timeinput_class`` and ``dateinput_class`` widget
  properties. Used for CSS styling. Styling was previously bound to
  ``datepicker_class`` and ``timepicker_class`` class, but these are skipped
  if no date and timepicker widgets should be displayed.
  [rnix, 2017-03-06]

- Change default ``datetime.delimiter`` to ``.``.
  [rnix, 2017-03-06]

- Change default ``datetime.format`` to ``%Y.%m.%d %H:%M``.
  [rnix, 2017-03-06]


1.8 (2017-03-01)
----------------

- Add dedicated CSS for ``plone5`` theme provided by ``yafowil.plone``.
  [rnix, 2016-06-28]

- Use ``yafowil.utils.entry_point`` decorator.
  [rnix, 2016-06-28]


1.7.1 (2015-06-25)
------------------

- Resolve JSHint errors and warnings.
  [thet]


1.7 (2015-01-23)
----------------

- Remove calendar icon.
  [rnix, 2014-07-29]

- Update jquery UI datepicker to 1.10.3 and use latest jquery ui boostrap
  styles.
  [rnix, 2014-07-05]


1.6 (2014-06-03)
----------------

- Add translations, package depends now ``yafowil`` >= 2.1
  [rnix, 2014-04-30]


1.5.2
-----

- Restrict timepicker binding to context
  [rnix, 2014-03-19]

1.5.1
-----

- Time blueprint example.
  [rnix, 2012-11-03]

1.5
---

- use ``yafowil.utils.attr_value`` wherever possible.
  [rnix, 2012-10-25]

- Add ``time`` blueprint.
  [rnix, 2012-10-23]

1.4
---

- Adopt resource providing
  [rnix, 2012-06-12]

- Add example widget
  [rnix, 2012-06-12]

1.3
---

- Sanitize formatting of date: iso always uses dash now, defaults to
  international iso format using dash.
  [jensens, 2012-05-09]

- property ``format`` can be callable now. Expect to returns formatted date.
  properties ``delimiter``, ``time``, ``tzinfo`` or ``locale`` can be callables
  too now. All callables taking ``widget, data`` as parameters.
  [jensens, 2012-05-09]

- Add documentation for ``datetime`` blueprint properties.
  [rnix, 2012-04-17]

- Add ``delimiter`` blueprint property.
  [rnix, 2012-04-17]

1.2
---

- Add ``render_datetime_input`` and ``render_datetime_display`` helper
  functions. Useful for custom widgets with different data preperation.
  [rnix, 2012-03-06]

- Modified to work with YAFOWIL 1.3
  [agitator, 2012-02-19]

- Extend display renderer to wrap value like ``generic_display_renderer``.
  [rnix, 2011-12-18]

- Add default css class to datetime blueprint.
  [rnix, 2011-12-18]

- Add datepicker binder function to ``yafowil.widget.array`` hooks if found.
  [rnix, 2011-10-05]

1.1
---

- Adopt to yafowil 1.2.
  [jensens, 2011-09-20]

- Make ready for z2c.autoinclude+Plone (only if available).
  [jensens, 2011-09-20]

1.0
---

- Add display renderer.
  [rnix, 2011-08-04]

- Adopt to yafowil 1.1.
  [rnix, 2011-07-08]

0.9.1
-----

- Test coverage.
  [rnix, 2011-05-07]

0.9
---

- Made it work.
  [rnix]


License
=======

Copyright (c) 2010-2021, BlueDynamics Alliance, Austria, Germany, Switzerland
Copyright (c) 2021-2022, Yafowil Contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this
  list of conditions and the following disclaimer in the documentation and/or
  other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
