From b41e9f31e7965781f87bb7f189776d2455bf5a43 Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Thu, 26 Jun 2025 14:46:37 +0000 Subject: [PATCH] add proper input demo page --- .gitignore | 1 - ts_web/pages/index.ts | 2 + ts_web/pages/input-showcase.ts | 593 +++++++++++++++++++++++++++++++++ ts_web/pages/mainpage.ts | 6 + 4 files changed, 601 insertions(+), 1 deletion(-) create mode 100644 ts_web/pages/index.ts create mode 100644 ts_web/pages/input-showcase.ts create mode 100644 ts_web/pages/mainpage.ts diff --git a/.gitignore b/.gitignore index ef13c79..352c177 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,6 @@ # artifacts coverage/ public/ -pages/ # installs node_modules/ diff --git a/ts_web/pages/index.ts b/ts_web/pages/index.ts new file mode 100644 index 0000000..081febb --- /dev/null +++ b/ts_web/pages/index.ts @@ -0,0 +1,2 @@ +export * from './mainpage.js'; +export * from './input-showcase.js'; \ No newline at end of file diff --git a/ts_web/pages/input-showcase.ts b/ts_web/pages/input-showcase.ts new file mode 100644 index 0000000..3f37033 --- /dev/null +++ b/ts_web/pages/input-showcase.ts @@ -0,0 +1,593 @@ +import { html, css, cssManager } from '@design.estate/dees-element'; +import '../elements/index.js'; + +export const inputShowcase = () => html` +
+ + +
+ + + +
+

Input Components Showcase

+

+ A comprehensive collection of input components for building modern web forms and interfaces. +
All components support dark mode, validation, and integrate seamlessly with dees-form. +

+
+ + +
+
+
📝
+

Text Inputs

+
+

+ Standard text input components for collecting various types of textual data. + Includes password fields, validation, and specialized formatting. +

+ + +
+ + + + + + + +
+
+ + + + +
+// Search with custom suggestions +<dees-searchbar + .placeholder="Search products..." + .suggestions=${['Laptop', 'Phone', 'Tablet']} +></dees-searchbar> +
+
+
+ + +
+
+
☑️
+

Selection Inputs

+
+

+ Components for selecting from predefined options. Includes checkboxes, radio buttons, + dropdowns, and multi-select controls. +

+ + +
+
+ + + + + +
+ +
+ +
+
+
+ + +
+ + + +
+
+ + + + + + + + + + +
+ + +
+
+
🔢
+

Numeric Inputs

+
+

+ Specialized inputs for numeric values, including quantity selectors and formatted inputs. +

+ + +
+ + + +
+
+
+ + +
+
+
+

Special Inputs

+
+

+ Specialized input components for specific data types like phone numbers, IBAN, and file uploads. +

+ + +
+ + + +
+
+ + + + + + +
+ + +
+
+
📄
+

Rich Text Editors

+ New! +
+

+ Advanced text editors for creating rich content with formatting, images, and structured blocks. +

+ + + + + + + + +
+ + +
+
+
📋
+

Form Integration

+
+

+ All input components integrate seamlessly with dees-form for validation, + submission handling, and data management. +

+ + + +

User Registration

+ +
+ + + +
+ + + + + + + + + + + + + + + + +
+
+ + +
+
+ ✅ Validation +

Built-in validation for all input types

+
+
+ 🔄 Two-way Binding +

Automatic data synchronization

+
+
+ 📊 Data Collection +

Easy form data extraction

+
+
+ 🎨 Theming +

Consistent styling across all inputs

+
+
+
+
+
+
+`; \ No newline at end of file diff --git a/ts_web/pages/mainpage.ts b/ts_web/pages/mainpage.ts new file mode 100644 index 0000000..51e66a4 --- /dev/null +++ b/ts_web/pages/mainpage.ts @@ -0,0 +1,6 @@ +import { html } from '@design.estate/dees-element'; + +export const mainPage = () => html` + + +`; \ No newline at end of file