@likable-hair/svelte 3.0.21 → 3.0.23
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/components/composed/list/PaginatedTable.svelte +2 -1
- package/dist/components/composed/list/PaginatedTable.svelte.d.ts +1 -0
- package/dist/components/simple/dates/DatePicker.css +1 -0
- package/dist/components/simple/dates/DatePicker.svelte +4 -0
- package/dist/components/simple/dates/DatePickerTextField.svelte +5 -2
- package/dist/utils/filters/builder.js +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ export let headers = [], items = [], sortedBy = void 0, sortDirection = void 0,
|
|
|
14
14
|
{ label: "20", value: 20 },
|
|
15
15
|
{ label: "50", value: 50 },
|
|
16
16
|
{ label: "100", value: 100 }
|
|
17
|
-
], hideRowsPerPage = false, totalElements = void 0, rowsPerPage = 20, filters = [], searchBarColumns = void 0;
|
|
17
|
+
], hideRowsPerPage = false, totalElements = void 0, rowsPerPage = 20, filters = [], searchBarColumns = void 0, lang = "en";
|
|
18
18
|
let searchBarInput, searchText = void 0;
|
|
19
19
|
let dispatch = createEventDispatcher();
|
|
20
20
|
let rowsPerPageSelection = [];
|
|
@@ -73,6 +73,7 @@ function handleFiltersChange() {
|
|
|
73
73
|
bind:filters
|
|
74
74
|
on:applyFilter={handleFiltersChange}
|
|
75
75
|
on:removeFilter={handleFiltersChange}
|
|
76
|
+
{lang}
|
|
76
77
|
>
|
|
77
78
|
</Filters>
|
|
78
79
|
</div>
|
|
@@ -59,8 +59,11 @@ onMount(() => {
|
|
|
59
59
|
inputElement,
|
|
60
60
|
maskFactoryArgs
|
|
61
61
|
);
|
|
62
|
+
if (!!selectedDate) {
|
|
63
|
+
mask.value = DateTime.fromJSDate(selectedDate).toFormat(pattern);
|
|
64
|
+
}
|
|
62
65
|
});
|
|
63
|
-
function handleInputChange() {
|
|
66
|
+
function handleInputChange(event) {
|
|
64
67
|
setTimeout(() => {
|
|
65
68
|
const typedValue = mask.value;
|
|
66
69
|
if (!!typedValue) {
|
|
@@ -111,7 +114,7 @@ function handleMonthSelect() {
|
|
|
111
114
|
<SimpleTextField
|
|
112
115
|
bind:value={mask.value}
|
|
113
116
|
on:focus={() => handleTextFieldFocus(mAndDown)}
|
|
114
|
-
on:
|
|
117
|
+
on:keydown={handleInputChange}
|
|
115
118
|
bind:input={inputElement}
|
|
116
119
|
bind:placeholder
|
|
117
120
|
>
|
|
@@ -16,7 +16,7 @@ export default class Builder {
|
|
|
16
16
|
return this.applyWhereClause('orNot', first, second, third);
|
|
17
17
|
}
|
|
18
18
|
applyWhereClause(logicalOperator, first, second, third) {
|
|
19
|
-
if (
|
|
19
|
+
if (third !== undefined) {
|
|
20
20
|
if (!!second && typeof first == 'string' && typeof second == 'string') {
|
|
21
21
|
this.modifiers.push({
|
|
22
22
|
method: 'where',
|