ywana-core8 0.0.568 → 0.0.569
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +14 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +14 -7
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +14 -7
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +5 -0
- package/src/html/tokenfield.js +5 -3
- package/src/widgets/planner/Planner.js +4 -4
package/package.json
CHANGED
@@ -371,8 +371,13 @@ export const CollectionContext = (url, field, host, page, fetching) => {
|
|
371
371
|
return {
|
372
372
|
|
373
373
|
all: [],
|
374
|
+
filters: {},
|
374
375
|
selected: null,
|
375
376
|
|
377
|
+
changeFilters(filters) {
|
378
|
+
this.filters = filters
|
379
|
+
},
|
380
|
+
|
376
381
|
async load() {
|
377
382
|
try {
|
378
383
|
const data = await API.all(null, page);
|
package/src/html/tokenfield.js
CHANGED
@@ -33,9 +33,11 @@ export const TokenField = ({ id, label, tokens = [], readOnly, options, onChange
|
|
33
33
|
event.preventDefault()
|
34
34
|
event.stopPropagation()
|
35
35
|
const token = event.target.value
|
36
|
-
|
37
|
-
|
38
|
-
|
36
|
+
if (token && token.length > 0) {
|
37
|
+
const next = Array.isArray(tokens) ? tokens.concat(token) : [token]
|
38
|
+
if (onChange) onChange(id, next)
|
39
|
+
setValue('')
|
40
|
+
}
|
39
41
|
}
|
40
42
|
|
41
43
|
if (value === '' && tokens.length > 0 && event.key === 'Backspace') {
|
@@ -93,13 +93,13 @@ export const Planner = ({ title, events = [], lanes = [], navigation = true, onS
|
|
93
93
|
{navigation ? (
|
94
94
|
<Header title={label}>
|
95
95
|
|
96
|
-
<Button label="
|
96
|
+
<Button label="Esta Semana" outlined action={showThisWeek}/>
|
97
97
|
<Icon icon="chevron_right" clickable action={next} />
|
98
|
-
<TextField id="to" type="date" label="
|
98
|
+
<TextField id="to" type="date" label="Hasta" value={to} onChange={(id, value) => setTo(value)} />
|
99
99
|
<div className="expand"></div>
|
100
|
-
<DropDown id="ranges" label="
|
100
|
+
<DropDown id="ranges" label="Rango" options={DATE_RANGE} value={dateRange} onChange={(id, value) => setDateRange(value)} />
|
101
101
|
<div className="expand"></div>
|
102
|
-
<TextField id="from" type="date" label="
|
102
|
+
<TextField id="from" type="date" label="Desde" value={from} onChange={(id, value) => setFrom(value)} />
|
103
103
|
<Icon icon="chevron_left" clickable action={prev} />
|
104
104
|
</Header>
|
105
105
|
) : null}
|