@budibase/bbui 1.0.159-alpha.0 → 1.0.161

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/bbui",
3
3
  "description": "A UI solution used in the different Budibase projects.",
4
- "version": "1.0.159-alpha.0",
4
+ "version": "1.0.161",
5
5
  "license": "MPL-2.0",
6
6
  "svelte": "src/index.js",
7
7
  "module": "dist/bbui.es.js",
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@adobe/spectrum-css-workflow-icons": "^1.2.1",
41
- "@budibase/string-templates": "^1.0.159-alpha.0",
41
+ "@budibase/string-templates": "^1.0.161",
42
42
  "@spectrum-css/actionbutton": "^1.0.1",
43
43
  "@spectrum-css/actiongroup": "^1.0.1",
44
44
  "@spectrum-css/avatar": "^3.0.2",
@@ -84,5 +84,5 @@
84
84
  "svelte-flatpickr": "^3.2.3",
85
85
  "svelte-portal": "^1.0.0"
86
86
  },
87
- "gitHead": "50c8adee10f046222501c6e6339f9b0dd8e6a389"
87
+ "gitHead": "f378982041d63062dcc18fe2c1a2e8f2fb49033b"
88
88
  }
@@ -58,6 +58,11 @@
58
58
  if (timeOnly) {
59
59
  newValue = `2000-01-01T${newValue.split("T")[1]}`
60
60
  }
61
+ // date only, offset for timezone so always right date
62
+ else if (!enableTime) {
63
+ const offset = dates[0].getTimezoneOffset() * 60000
64
+ newValue = new Date(dates[0].getTime() - offset).toISOString()
65
+ }
61
66
  dispatch("change", newValue)
62
67
  }
63
68
 
@@ -156,8 +161,8 @@
156
161
  <input
157
162
  data-input
158
163
  type="text"
164
+ {disabled}
159
165
  class="spectrum-Textfield-input spectrum-InputGroup-input"
160
- class:is-disabled={disabled}
161
166
  {placeholder}
162
167
  {id}
163
168
  {value}
@@ -167,7 +172,7 @@
167
172
  type="button"
168
173
  class="spectrum-Picker spectrum-Picker--sizeM spectrum-InputGroup-button"
169
174
  tabindex="-1"
170
- class:is-disabled={disabled}
175
+ {disabled}
171
176
  class:is-invalid={!!error}
172
177
  on:click={flatpickr?.open}
173
178
  >
@@ -212,7 +217,4 @@
212
217
  :global(.flatpickr-calendar) {
213
218
  font-family: "Source Sans Pro", sans-serif;
214
219
  }
215
- .is-disabled {
216
- pointer-events: none !important;
217
- }
218
220
  </style>