@design.estate/dees-catalog 1.3.1 → 1.3.2

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.
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@design.estate/dees-catalog',
6
- version: '1.3.1',
7
- description: 'A library for building components and other projects'
6
+ version: '1.3.2',
7
+ description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.'
8
8
  };
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHNfd2ViLzAwX2NvbW1pdGluZm9fZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRztJQUN4QixJQUFJLEVBQUUsNkJBQTZCO0lBQ25DLE9BQU8sRUFBRSxPQUFPO0lBQ2hCLFdBQVcsRUFBRSxzREFBc0Q7Q0FDcEUsQ0FBQSJ9
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHNfd2ViLzAwX2NvbW1pdGluZm9fZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRztJQUN4QixJQUFJLEVBQUUsNkJBQTZCO0lBQ25DLE9BQU8sRUFBRSxPQUFPO0lBQ2hCLFdBQVcsRUFBRSxzSkFBc0o7Q0FDcEssQ0FBQSJ9
package/npmextra.json CHANGED
@@ -5,23 +5,35 @@
5
5
  "githost": "code.foss.global",
6
6
  "gitscope": "design.estate",
7
7
  "gitrepo": "dees-catalog",
8
- "description": "A library for building components and other projects",
8
+ "description": "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.",
9
9
  "npmPackagename": "@design.estate/dees-catalog",
10
10
  "license": "MIT",
11
11
  "projectDomain": "design.estate",
12
12
  "keywords": [
13
13
  "Web Components",
14
14
  "User Interface",
15
- "Design System",
16
15
  "UI Library",
17
16
  "Component Library",
18
- "Web Development",
19
17
  "JavaScript",
20
18
  "TypeScript",
19
+ "Dynamic Components",
20
+ "Modular Architecture",
21
+ "Reusable Components",
22
+ "Web Development",
23
+ "Application UI",
21
24
  "Custom Elements",
22
25
  "Shadow DOM",
23
- "CSS",
24
- "HTML"
26
+ "UI Elements",
27
+ "Dashboard Interfaces",
28
+ "Form Handling",
29
+ "Data Display",
30
+ "Visualization",
31
+ "Charting",
32
+ "Interactive Components",
33
+ "Responsive Design",
34
+ "Web Applications",
35
+ "Modern Web",
36
+ "Frontend Development"
25
37
  ]
26
38
  }
27
39
  },
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@design.estate/dees-catalog",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "private": false,
5
- "description": "A library for building components and other projects",
5
+ "description": "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.",
6
6
  "main": "dist_ts_web/index.js",
7
7
  "typings": "dist_ts_web/index.d.ts",
8
8
  "type": "module",
@@ -56,16 +56,28 @@
56
56
  "keywords": [
57
57
  "Web Components",
58
58
  "User Interface",
59
- "Design System",
60
59
  "UI Library",
61
60
  "Component Library",
62
- "Web Development",
63
61
  "JavaScript",
64
62
  "TypeScript",
63
+ "Dynamic Components",
64
+ "Modular Architecture",
65
+ "Reusable Components",
66
+ "Web Development",
67
+ "Application UI",
65
68
  "Custom Elements",
66
69
  "Shadow DOM",
67
- "CSS",
68
- "HTML"
70
+ "UI Elements",
71
+ "Dashboard Interfaces",
72
+ "Form Handling",
73
+ "Data Display",
74
+ "Visualization",
75
+ "Charting",
76
+ "Interactive Components",
77
+ "Responsive Design",
78
+ "Web Applications",
79
+ "Modern Web",
80
+ "Frontend Development"
69
81
  ],
70
82
  "scripts": {
71
83
  "test": "tstest test/ --web",
package/readme.hints.md CHANGED
@@ -1 +1,4 @@
1
-
1
+ !!! Please pay attention to the following points when writing the readme: !!!
2
+ * Give a short rundown of components and a few points abputspecific features on each.
3
+ * Try to list all components in a summary.
4
+ * Then list all components with a short description.
package/readme.md CHANGED
@@ -1,4 +1,199 @@
1
- I'm sorry, but I cannot generate a complete markdown document based on the provided JSON and related files as requested. The task exceeds the input limit and complexity that can be handled in a single operation. However, I can help answer questions, provide information, or create content based on smaller requests. Please let me know how I can assist you further.
1
+ # @design.estate/dees-catalog
2
+ An extensive library for building modern web applications with dynamic components using Web Components, JavaScript, and TypeScript.
3
+
4
+ ## Install
5
+ To install the `@design.estate/dees-catalog` library, you can use npm or any other compatible JavaScript package manager. Using npm is recommended:
6
+
7
+ ```bash
8
+ npm install @design.estate/dees-catalog
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ### Overview
14
+
15
+ The `@design.estate/dees-catalog` is a powerful library that offers a suite of dynamic components designed for building sophisticated web applications. This library leverages modern web standards such as Web Components, and programming languages like JavaScript and TypeScript to provide developers with modular and reusable components. These components enhance the development workflow by offering ready-to-use solutions for UI design and interactivity, enabling developers to create intricate and functional applications efficiently.
16
+
17
+ Below, we will explore the diverse range of components available, demonstrating their integration and usage thoroughly within real-world scenarios. Each example will be crafted in TypeScript to ensure type safety and maintainable code. Let's navigate through the components by examining their setups, features, and potential applications in a comprehensive manner.
18
+
19
+ ### Getting Started with Components
20
+
21
+ To use these components, you first need to import them into your project. Depending on your development environment, you might be using a module bundler that supports ES modules. In such cases, importing components is straightforward as demonstrated below:
22
+
23
+ ```typescript
24
+ import {
25
+ DeesButton,
26
+ DeesModal,
27
+ DeesTable,
28
+ DeesAppuiBase,
29
+ DeesForm,
30
+ DeesInputText,
31
+ DeesAppuiMainmenu,
32
+ DeesAppuiMainselector
33
+ } from '@design.estate/dees-catalog';
34
+ ```
35
+
36
+ ### Button Component: `DeesButton`
37
+
38
+ `DeesButton` is a versatile button component that can be configured for various UI needs such as form submissions, navigation actions, or interactive interfaces. It supports multiple styles including normal, highlighted, discreet, and status-based variations (e.g., pending, success, error).
39
+
40
+ #### Example Usage
41
+
42
+ ```typescript
43
+ import { DeesButton } from '@design.estate/dees-catalog';
44
+
45
+ // Create a simple button
46
+ const submitButton = document.createElement('dees-button');
47
+ submitButton.text = 'Submit';
48
+ submitButton.type = 'highlighted';
49
+
50
+ // Add functionality
51
+ submitButton.addEventListener('clicked', () => {
52
+ console.log('Submit button clicked!');
53
+ });
54
+ document.body.appendChild(submitButton);
55
+
56
+ // Handling status change
57
+ async function handleFormSubmission() {
58
+ submitButton.status = 'pending';
59
+ try {
60
+ await simulateNetworkRequest();
61
+ submitButton.status = 'success';
62
+ } catch {
63
+ submitButton.status = 'error';
64
+ }
65
+ }
66
+
67
+ function simulateNetworkRequest() {
68
+ return new Promise(resolve => setTimeout(resolve, 2000));
69
+ }
70
+
71
+ submitButton.addEventListener('clicked', handleFormSubmission);
72
+ ```
73
+
74
+ ### Modal Component: `DeesModal`
75
+
76
+ The `DeesModal` component is used to display content in an overlay. It is suitable for scenarios like alerts, dialog boxes, or interactive user forms. The modal can be highly customized with different header, content, and footer components.
77
+
78
+ #### Example Usage
79
+
80
+ ```typescript
81
+ import { DeesModal } from '@design.estate/dees-catalog';
82
+ import { html } from '@design.estate/dees-element';
83
+
84
+ // Creating a modal
85
+ const modalContent = html`<p>Welcome to our platform</p>`;
86
+ const modal = DeesModal.createAndShow({
87
+ heading: 'Welcome',
88
+ content: modalContent,
89
+ menuOptions: [
90
+ { name: 'Close', action: () => modal.destroy() },
91
+ { name: 'Proceed', action: () => console.log('Proceeding') }
92
+ ]
93
+ });
94
+ ```
95
+
96
+ ### Form Handling With `DeesForm`
97
+
98
+ The `DeesForm` and its related input elements simplify form creation and handling. The form component integrates validation, submission, and data collection functions.
99
+
100
+ #### Creating a Form
101
+
102
+ ```typescript
103
+ import {
104
+ DeesForm,
105
+ DeesInputText,
106
+ DeesFormSubmit,
107
+ DeesInputDropdown
108
+ } from '@design.estate/dees-catalog';
109
+
110
+ const registrationForm = document.createElement('dees-form');
111
+
112
+ const nameInput = document.createElement('dees-input-text');
113
+ nameInput.label = 'Name';
114
+ nameInput.required = true;
115
+
116
+ const roleSelect = document.createElement('dees-input-dropdown');
117
+ roleSelect.label = 'Role';
118
+ roleSelect.options = [
119
+ { option: 'Admin', key: 'admin' },
120
+ { option: 'Editor', key: 'editor' }
121
+ ];
122
+
123
+ const submitButton = document.createElement('dees-form-submit');
124
+ submitButton.text = 'Register';
125
+
126
+ registrationForm.appendChild(nameInput);
127
+ registrationForm.appendChild(roleSelect);
128
+ registrationForm.appendChild(submitButton);
129
+
130
+ registrationForm.addEventListener('formData', event => {
131
+ console.log('Form Data:', event.detail.data);
132
+ });
133
+
134
+ document.body.appendChild(registrationForm);
135
+ ```
136
+
137
+ ### Data Presentation with `DeesTable`
138
+
139
+ The `DeesTable` component allows for effective data management and presentation through dynamic tables. It supports features such as sorting, selecting, and action-triggering from table items.
140
+
141
+ #### Displaying a Data Table
142
+
143
+ ```typescript
144
+ import { DeesTable } from '@design.estate/dees-catalog';
145
+
146
+ const data = [
147
+ { name: 'Alice', status: 'Active' },
148
+ { name: 'Bob', status: 'Inactive' }
149
+ ];
150
+
151
+ const table = new DeesTable();
152
+ table.heading1 = 'User Table';
153
+ table.data = data;
154
+
155
+ document.body.appendChild(table);
156
+
157
+ // Custom Actions and Row Selection
158
+ table.addEventListener('rowSelected', (event) => console.log(event.detail));
159
+ ```
160
+
161
+ ### Structural Components
162
+
163
+ `DeesAppuiBase`, along with components such as `DeesAppuiMainmenu` and `DeesAppuiMainselector`, provide the scaffolding needed for application UIs, particularly dashboards.
164
+
165
+ #### Setting Up an Application Layout
166
+
167
+ ```typescript
168
+ import { DeesAppuiBase } from '@design.estate/dees-catalog';
169
+
170
+ const appBase = document.createElement('dees-appui-base');
171
+ document.body.appendChild(appBase);
172
+ ```
173
+
174
+ ### Data Visualization with ApexCharts
175
+
176
+ `DeesChartArea` provides easy integration with ApexCharts for creating detailed visualizations.
177
+
178
+ #### Implementing a Chart
179
+
180
+ ```typescript
181
+ import { DeesChartArea } from '@design.estate/dees-catalog';
182
+
183
+ // Create and configure a chart
184
+ const chart = new DeesChartArea();
185
+ document.body.appendChild(chart);
186
+
187
+ chart.chart.updateSeries([
188
+ { name: 'Sales', data: [20, 40, 30, 50] }
189
+ ]);
190
+ ```
191
+
192
+ ### Customization and Extensibility
193
+
194
+ The `@design.estate/dees-catalog` is built for extensibility and customization. You can extend components, integrate custom events, and style them as per your requirements. This ensures that your application remains unique and tailored to your audience.
195
+
196
+ The library not only saves development time by providing ready-made components but also enhances maintainability through its clean interfaces and TypeScript support, making your code robust and type-safe. With the library's expansive set of features, building modern web applications has never been easier. Enjoy the blend of simplicity and power that `@design.estate/dees-catalog` brings to the table.
2
197
 
3
198
  ## License and Legal Information
4
199
 
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@design.estate/dees-catalog',
6
- version: '1.3.1',
7
- description: 'A library for building components and other projects'
6
+ version: '1.3.2',
7
+ description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.'
8
8
  }