Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
4f22df7
setup karma and rollup
lenadax Aug 16, 2021
02d4b93
setup for new autocomplete
lenadax Dec 6, 2021
75c774b
some basic functionality
lenadax Dec 6, 2021
023fcd0
+ basic autocomplete functionality
lenadax Dec 6, 2021
2ef8018
+ basic get json setup
lenadax Dec 7, 2021
109d9db
+ basic json support
lenadax Dec 7, 2021
52dfc5d
json fixes wip
lenadax Dec 7, 2021
0a5972b
- remove binder(), change to getter and setter
lenadax Dec 7, 2021
ecb78a5
+ add touch and click on suggestion
lenadax Dec 7, 2021
ad02feb
change to default cursor on hover
lenadax Dec 9, 2021
aed6e45
some structural changes, parse options
lenadax Dec 9, 2021
6cc553b
remove one line statements
lenadax Dec 10, 2021
6b51c80
switch this.source to functions for consistency
lenadax Dec 10, 2021
55c0f98
switch this.source to functions for consistency
lenadax Dec 10, 2021
01ef185
bug fixes + functionality, formatting
lenadax Dec 10, 2021
15bfde8
start testing widget
lenadax Dec 13, 2021
eb3dfcb
some structure and naming
lenadax Dec 13, 2021
314ed53
some structure and naming
lenadax Dec 13, 2021
3baeca5
structure changes, key handling
lenadax Dec 13, 2021
dfa5fd6
some rework and testing adjustments
lenadax Dec 14, 2021
1880909
fix issue with uppercase input not recognized
lenadax Dec 14, 2021
a05fca2
fix issue with uppercase input not recognized
lenadax Dec 14, 2021
8ceb4e4
throw errors, minor fixes
lenadax Dec 14, 2021
0760597
rename test file
lenadax Dec 14, 2021
bb7603f
fix arrow key functionality, remove obsolete function
lenadax Dec 16, 2021
97ba89d
work on tests, add error handling tests
lenadax Dec 16, 2021
51219b0
fix todo, test line format
lenadax Dec 16, 2021
5ba2683
naming changes
lenadax Jan 20, 2022
8fe9abb
naming changes, some cleanup
lenadax Jan 20, 2022
e298324
move rollup & karma conf
lenadax Jan 21, 2022
c724dcf
Housekeeping
rnixx Mar 14, 2022
fe829c2
Add test and coverage scripts, housekeeping.
rnixx Mar 14, 2022
ff973c1
clean script
rnixx Mar 14, 2022
7a76914
Clean script
rnixx Mar 14, 2022
b135856
update autoWatch config
lenadax Mar 17, 2022
94d3f00
use root vars with fallback
lenadax Apr 19, 2022
f046759
change fallback color to bs5 blue
lenadax May 4, 2022
c3b1fc0
housekeeping
lenadax May 5, 2022
c3801f8
add github tests
lenadax May 6, 2022
df4ad0f
add js action
lenadax May 10, 2022
6373894
add js action
lenadax May 10, 2022
882fd63
update naming
lenadax May 10, 2022
05a2ebe
Merge pull request #6 from conestack/js_action
rnixx May 11, 2022
4fd597e
ensure correct location of node_modules
lenadax May 12, 2022
75e18ed
"Simplify IIFE bundle outro"
rnixx May 20, 2022
0e59101
"Karma coverage validation script formatting"
rnixx May 20, 2022
46fb980
"Consistent naming when attaching yafowil widget instance to DOM elem"
rnixx May 20, 2022
cd02a6c
"Register resources with webresource"
rnixx May 20, 2022
b283854
Update bundle
rnixx May 23, 2022
de73b16
"Update webresource registration"
rnixx May 25, 2022
6356a6e
"Add path to webresource groups"
rnixx May 25, 2022
25a9a27
"Adopt webresource registrations"
rnixx May 28, 2022
823afb5
"Test housekeeping"
rnixx May 29, 2022
0a19682
"Install webresource from repo for tests"
rnixx May 29, 2022
60723bc
"Add resource tests"
rnixx May 30, 2022
f199e47
"dedicated widget import in tests"
rnixx May 30, 2022
4f53d2d
Resource group name is widget name.
rnixx May 30, 2022
d4b86cc
set autocomplete value to off instead of false. Register yafowil aray…
rnixx Jun 14, 2022
1803a37
hotfix - position dropdown absolutely
lenadax Jun 17, 2022
6fc974f
update coverage
lenadax Jun 17, 2022
85c02c0
add array hooks (treibstoff)
lenadax Dec 15, 2022
d749e61
test coverage
lenadax Dec 19, 2022
6b4c571
improve tests
lenadax Dec 19, 2022
af64773
improve tests, improve array subscribers
lenadax Dec 20, 2022
54f7694
Use yafowil_array.inside_template API to check whether widget gets in…
lenadax Mar 10, 2023
333d4c7
compiled js
lenadax Mar 10, 2023
830aadb
Merge pull request #7 from conestack/array_hooks
rnixx Mar 10, 2023
fe419cb
Prepare 2.0a1
rnixx Jun 2, 2024
fb1f06a
Preparing release 2.0a1
rnixx Jun 2, 2024
e6eb70f
Back to development: 2.0a2
rnixx Jun 2, 2024
08dde31
bootstrap 5 version
lenadax Sep 24, 2024
ef90443
setup for Makefile
lenadax Oct 28, 2024
d39f7f9
mxmake setup
lenadax Oct 28, 2024
1f7c60e
update license
lenadax Oct 28, 2024
92fc241
update license
lenadax Oct 28, 2024
bd8cdbb
cleanup
lenadax Nov 4, 2024
a4a7c94
more cleanup
lenadax Nov 4, 2024
64d6308
documentation
lenadax Nov 5, 2024
b52b4da
some formatting
lenadax Nov 7, 2024
48f1ab2
compiled js
lenadax Nov 7, 2024
23b7a06
WIP: allow autocomplete to handle suggestion as key:value objects
lenadax Nov 22, 2024
b811dd5
WIP: tests
lenadax Nov 25, 2024
bd930ba
update functionality: remove results_key_item value when user is typi…
lenadax Nov 25, 2024
94000ab
add 'no results found' element to dropdown.
lenadax Dec 9, 2024
e18eddf
Introduce Autocomplete Actions to widget
lenadax Dec 10, 2024
cd7878a
add docs for autocomplete actions
lenadax Dec 10, 2024
60e9b6d
remove AutocompleteAction, resort to passing Suggestion factory for m…
lenadax Dec 10, 2024
09702de
Merge branch 'bs5' of github.com:conestack/yafowil.widget.autocomplet…
lenadax Dec 10, 2024
15a5e75
update example
lenadax Dec 10, 2024
d94bb82
add destroy function, add pointer cursor
lenadax Dec 13, 2024
1982cb4
throw event on dropdown close
lenadax Dec 16, 2024
a162aa3
modernize structure
lenadax Dec 16, 2024
d3956c6
fix missingn semicolon
lenadax Jan 24, 2025
f8b148d
fix python tests
lenadax Feb 10, 2025
2f41222
ts.ajax.attach if ts.ajax is not undefined. Remove dropdown on destroy
lenadax Feb 11, 2025
ee23232
properly destroy dropdown
lenadax Feb 24, 2025
764d58c
fix corepack issue in CI
lenadax Feb 24, 2025
d9bfcea
update changelog.
lenadax Feb 25, 2025
472436e
add invalid_class and valid_class properties to widget wrapper
lenadax Mar 13, 2025
69e1a3a
fix python test
lenadax Mar 14, 2025
ea6cd4a
add display renderer
lenadax Mar 17, 2025
dce13c3
add example for display renderer to docs
lenadax Mar 24, 2025
04b68f2
Merge pull request #8 from conestack/bs5
rnixx Oct 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/test_js.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: JS tests

on: [push]

jobs:
test:
name: Test

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Corepack
run: |
npm install --global corepack@latest
corepack enable

- name: Install
run: |
corepack enable
make nodejs

- name: Run tests
run: make wtr
50 changes: 50 additions & 0 deletions .github/workflows/test_py.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Python tests

on: [push]

jobs:
test:
name: Test ${{ matrix.python }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest

python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Install
run: |
pip install wheel
pip install coverage
pip install https://github.com/conestack/webresource/archive/master.zip
pip install https://github.com/conestack/yafowil/archive/master.zip
pip install -e .[test]

- name: Run tests
run: |
python --version
python -m pytest src/yafowil/widget/autocomplete/tests

- name: Run coverage
run: |
coverage run --source=src/yafowil/widget/autocomplete --omit=src/yafowil/widget/autocomplete/example.py -m pytest src/yafowil/widget/autocomplete/tests
coverage report --fail-under=99
29 changes: 14 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
*~
*#*
*.egg-info
*.pyc
*.pyo
*.mo
*.egg-info
/develop-eggs/
/parts/
/bin/
/eggs/
/downloads/
/var/
/.coverage
/.mxmake/
/coverage/
/dist/
/.installed.cfg
/.pydevproject
/.project
/.DS_Store
/.mr.developer.cfg
/htmlcov/
/js/karma/
/node_modules/
/package-lock.json
/pnpm-lock.yaml
/py2/
/py3/
/pypy3/
/requirements-mxdev.txt
/venv/
17 changes: 0 additions & 17 deletions .jshintrc

This file was deleted.

40 changes: 37 additions & 3 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,44 @@
Changes
=======

1.8 (unreleased)
----------------
2.0a2 (unreleased)
------------------

- Update jQuery to version ``4.0.0-beta.2``.
[lenadax]

- The widget can now initalize Suggestions using factories (see example.py).
[lenadax]

- Remote widgets allow receiving of dict-like items (see example.py).
The key of the currently selected item will be available in a hidden input field.
[lenadax]

- Implement dark theme for ``Bootstrap5`` dark theme mode.
[lenadax]

- Use rollup for bundling scss. Use ``make rollup`` to compile js and scss.
[lenadax]

- Use ``webtestrunner`` instead of ``karma`` for js tests. Use ``make wtr`` to run tests.
[lenadax]

- Use ``pnpm`` as package manager.
[lenadax]

- Create Bootstrap5 widget version.
[lenadax]


2.0a1 (2024-06-02)
------------------

- Extend JS by ``autocomplete_on_array_add`` and ``register_array_subscribers``
to enable usage in ``yafowil.widget.array``.
[lenadax]

- No changes yet.
- Get rid of jQuery UI. Rewrite Jacascript widget using ES6.
[lenadax]


1.7 (2018-07-16)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ License
=======

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

Redistribution and use in source and binary forms, with or without
Expand Down
Loading
Loading