decorate ? decorate(value) : value
-
+ <.last @click=decr> '-'
tag plus-minus-plus
prop incr
-
'+'
+ '+'
tag plus-minus-minus
prop decr
- '-'
+ '-'
tag plus-minus-v < plus-minus
css d:flex fld:row-reverse fs:x-small
> bd:1.8px solid violet5 bdx:none p:25px 7px 0 0
@first bdr:1.8px rd:0 20px 20px 0
@last bdl:1.8px rd:20px 0 0 20px
-
\ No newline at end of file
+
diff --git a/src/ui/slot-size-input.imba b/src/ui/slot-size-input.imba
index d9cea06..f439e25 100644
--- a/src/ui/slot-size-input.imba
+++ b/src/ui/slot-size-input.imba
@@ -1,7 +1,7 @@
import './plus-minus.imba'
let h =
- zero: do new Date("1.01.1970")
+ zero: do new Date("1970-01-01T00:00")
max_size: do #ms ||= R.getters.size "3_0_0", 1 # 3 days
validate: do |s|
@@ -40,12 +40,14 @@ export default h
R.setters.size = do |v| let s = "{h.days(v)}_{v.getHours!}_{v.getMinutes!}"; s if s!= "0_0_30"
R.getters.size = do |v, skip_validation|
- let size = v ? v.split('_') : [0, 0, 30]
+ v ||= "0_0_30"
+ let size = v.split('_')
let date = h.set_time(*size)
skip_validation ? date : h.validate(date)
tag slot-size-input
+ console.log(R.param('size'))
if h.days! > 0
diff --git a/vite.config.js b/vite.config.js
index 06e3bdf..0e3ed4f 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -1,7 +1,8 @@
import { imba } from 'vite-plugin-imba';
import { defineConfig } from 'vite';
+import { viteSingleFile } from "vite-plugin-singlefile"
export default defineConfig({
base: '',
- plugins: [imba()],
+ plugins: [imba(), viteSingleFile({removeViteModuleLoader: true})],
});