Commit Graph

29 Commits

Author SHA1 Message Date
4fa06b747c Change HTMLInputType to use reflect Kind 2023-07-06 22:13:52 +02:00
66b229c929 Make ValueBindAny to work with basic types 2023-07-06 21:40:34 +02:00
a587fea398 Rework value and list binder
- Rename FieldBinder to ValueBinder
- Split ValueBinder interface into ValueGetter, ValueSetter and HTMLInputTyper
- Add non pointer types to ValueBindAny.StringValue
- Move encoding.TextMarshaler in type switch
- Simplify ListBinder, and reuse ValueBinder logic
- Add ListBindGenericValues type
2023-07-03 00:18:58 +02:00
a60a1f4af7 Improve ListBindGenericSlice
- Add support for encoding.TextMarshaler and encoding.TextUnmarshaler
2023-07-02 01:17:41 +02:00
a0e2314138 Add TextArea component
- Update PageInput
2023-06-27 00:23:07 +02:00
11199f5e0d Remove FieldBindPassword & Add support for time.Time
- Add Type field to input.Field that can override the input type
- Add support for time.Time to input.Field
- Update example PageInput
2023-06-23 21:10:35 +02:00
2f8a3b5016 Add CheckBox and RadioButton input components
- Add support for *bool to FieldBindAny
- Update example page PageInput
2023-06-23 20:41:04 +02:00
159bce4f12 Add dummy variables to packages
Also commit latest sketches.cdr
2023-06-22 10:14:04 +02:00
51289acce3 Add ID tag to input:Field component 2023-06-04 17:45:27 +02:00
4d18fad115 Add input component for tags
- Change ListBinder interface
- Improve ListBindGenericSlice and make it the default
- Update input example page
2023-06-02 11:17:22 +02:00
852fd54082 Remove margin from input elements
- Remove margin from button
- Remove margin from dropdown
- Remove margin from input field
- Remove margin from sidebar entry
- Remove unnecessary margin: 0 definitions
- Fix sidebar due to removed button margin
- Replace modal requester paragraph with span
- Replace simple toast paragraph with span
2023-05-27 23:48:57 +02:00
25f6c47602 Add dropdown component
- Add list binder interface
- Update input example page
2023-05-27 13:37:40 +02:00
bce8b927f7 Put FieldBinder into its own file 2023-05-25 22:55:42 +02:00
25a5cd3a2e Add input field buttons example
- Change d3c-button-transparent to d3c-button-borderless
2023-05-25 17:44:44 +02:00
6e74124634 Change focus line width 2023-05-25 17:22:48 +02:00
c81d49c00d Add FieldBindPassword for the input field 2023-05-25 17:20:12 +02:00
cd35a61dc8 Support button to bind to boolean variables
- Bring back d3c-color-accent
- Reduce number of CSS color variables
2023-05-25 16:37:46 +02:00
114a7d893c Add input field and a lot of other fixes
- Add input field and general data binding
- Rename SymbolSlot to IconSlot
- Remove d3c-color-accent
- Update icons page
- Add input example page
- Update button to support highlighting
- Update navigation entry to support highlighting
- Add d3c-button-only-icon to button and let sidebar use that
- Use d3c-button-transparent in sidebar
- Add focus indicator to buttons
- Rename CSS color variables and change definition of some
- Let pagination use input:Button
- Add some padding to the inline code component
2023-05-25 15:59:13 +02:00
518c47ab47 Improve overlay package
- Add toast overlays
- Add a way to color overlay containers and menus
- Add d3c-button-transparent CSS class
- Update overlay example page
2023-05-19 23:45:39 +02:00
6fbc00655f Rework colors and theming
- Add example colors page
- Store all theme colors in CSS variables
- Add layer container component
- Use accent color for active pagination page
- Automatically use layer-1 color in sidebar, sidebar menu and code containers
- Adjust tag padding
- Add base color scheme/theme
2023-05-18 13:55:48 +02:00
96e125316f Add navigation button example
- Add d3c-button-vertical class to buttons
2023-05-17 12:34:48 +02:00
e722ae1d2b Add pagination component
- Add and update example pages
- Add example address component
- Add vugu data tags to struct fields
- Fix some button padding values
- Remove debug log line
- Fix background color of the sidebar menu
2023-05-16 18:10:24 +02:00
c0f61b57ce Change colors and design
- Make sidebar gray
- Give buttons a line border
- Add active selector to buttons
- Change some margins
- Automatically make buttons transparent when they are in a sidebar
2023-05-15 11:24:25 +02:00
079b29a7fd Use em and rem for most sizes
- Removed d3c-size, elements now all scale by em
- Button text is now centered
- Button height is now fixed
2023-05-15 10:22:29 +02:00
e9c2353da3 Add utils package
- Add AttributesAppend type
- Add icon class and add styles to icons
- Change elements to use AttributesAppend in vg-attr
- Move example icons into their own component
2023-05-15 08:58:12 +02:00
0dda9f7767 Several changes
- Remove license headers
- Update example pages
- Move ButtonNav into navigation package as SidebarEntry
- Add sidebar collapse and hide functionality
- Add click event
- Add click handler to button
- Add ButtonFullscreen to navigation package
- Fix resulting suffix space in CodeInline
- Fix CSS class of Code
- Update icon sketches.cdr
2023-05-12 12:57:42 +02:00
a573067168 Update generated code 2023-05-09 11:02:53 +02:00
6a8d5ea13d Fix nav button class name 2023-05-09 10:59:57 +02:00
7d325f6da0 Initial commit 2023-05-08 20:43:07 +02:00