@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.
@@ -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>
@@ -23,6 +23,7 @@ declare const __propDef: {
23
23
  rowsPerPage?: number | undefined;
24
24
  filters?: ComponentProps<Filters>['filters'];
25
25
  searchBarColumns?: string[] | undefined;
26
+ lang?: "it" | "en" | undefined;
26
27
  };
27
28
  events: {
28
29
  sort: CustomEvent<{
@@ -6,4 +6,5 @@
6
6
  --date-picker-default-header-color: rgb(var(--global-color-grey-50));
7
7
  --date-picker-default-box-shadow: 0 4px 6px -1px rgb(var(--global-color-contrast-300), .1),
8
8
  0 2px 4px -2px rgb(var(--global-color-contrast-300), .1);
9
+ --date-picker-default-overflow: hidden;
9
10
  }
@@ -173,6 +173,10 @@ function handleMonthChange() {
173
173
  --date-picker-box-shadow,
174
174
  var(--date-picker-default-box-shadow)
175
175
  );
176
+ overflow: var(
177
+ --date-picker-overflow,
178
+ var(--date-picker-default-overflow)
179
+ );
176
180
  }
177
181
 
178
182
  .header {
@@ -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:keypress={handleInputChange}
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 (!!third) {
19
+ if (third !== undefined) {
20
20
  if (!!second && typeof first == 'string' && typeof second == 'string') {
21
21
  this.modifiers.push({
22
22
  method: 'where',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@likable-hair/svelte",
3
3
  "description": "A Svelte component for likablehair",
4
- "version": "3.0.21",
4
+ "version": "3.0.23",
5
5
  "scripts": {
6
6
  "host": "vite --host",
7
7
  "dev": "vite dev",