@keenthemes/ktui 1.0.27 → 1.0.28

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/CONTRIBUTING.md CHANGED
@@ -31,6 +31,19 @@ If you need any help, feel free to reach out us via [@keenthemes](https://x.com/
31
31
  ```sh
32
32
  npm run lint
33
33
  ```
34
+ 4. Build the project:
35
+ ```sh
36
+ npm run build
37
+ ```
38
+ 5. Start development mode (watch for changes):
39
+ ```sh
40
+ npm run dev
41
+ ```
42
+
43
+ ### Build Commands
44
+
45
+ - **`npm run build`**: Performs a one-off build and exits. Use this for production builds and CI/CD pipelines.
46
+ - **`npm run dev`**: Starts development mode with file watching. Use this during development for live reloading when files change.
34
47
 
35
48
  ## Format and lint your code
36
49
 
package/dist/ktui.js CHANGED
@@ -8343,7 +8343,19 @@ var KTDataTable = /** @class */ (function (_super) {
8343
8343
  return [3 /*break*/, 5];
8344
8344
  case 4:
8345
8345
  error_1 = _a.sent();
8346
- this._noticeOnTable('Error parsing API response as JSON: ' + String(error_1));
8346
+ // Fire event with complete error context for application handling
8347
+ this._fireEvent('parseError', {
8348
+ response: response,
8349
+ error: String(error_1),
8350
+ status: response.status,
8351
+ statusText: response.statusText
8352
+ });
8353
+ this._dispatchEvent('parseError', {
8354
+ response: response,
8355
+ error: String(error_1),
8356
+ status: response.status,
8357
+ statusText: response.statusText
8358
+ });
8347
8359
  return [2 /*return*/];
8348
8360
  case 5:
8349
8361
  this._fireEvent('fetched', { response: responseData });