@rws-framework/client 2.20.1 → 2.20.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.
Files changed (84) hide show
  1. package/.bin/emerge.sh +15 -15
  2. package/builder/vite/index.ts +4 -4
  3. package/builder/vite/rws.vite.config.ts +132 -132
  4. package/builder/vite/rws_scss_plugin.ts +61 -61
  5. package/builder/webpack/index.js +10 -10
  6. package/builder/webpack/rws.webpack.config.js +161 -161
  7. package/builder/webpack/rws_scss_plugin.js +90 -90
  8. package/builder/webpack/rws_webpack_plugin.js +137 -137
  9. package/cfg/_default.cfg.js +26 -26
  10. package/cfg/_storage.d.ts +22 -22
  11. package/cfg/_storage.js +42 -42
  12. package/cfg/tsconfigSetup.js +146 -146
  13. package/docs/assets/26e93147f10415a0ed4a.svg +6 -6
  14. package/docs/assets/75c9471662e97ee24f29.svg +7 -7
  15. package/docs/assets/db90e4df2373980c497d.svg +9 -9
  16. package/docs/assets/highlight.css +127 -127
  17. package/docs/assets/main.js +59 -59
  18. package/docs/assets/style.css +1414 -1414
  19. package/docs/classes/ApiServiceInstance.html +25 -25
  20. package/docs/classes/ConfigServiceInstance.html +21 -21
  21. package/docs/classes/DOMServiceInstance.html +17 -17
  22. package/docs/classes/NotifyServiceInstance.html +15 -15
  23. package/docs/classes/RWSClientInstance.html +45 -45
  24. package/docs/classes/RWSPlugin.html +13 -13
  25. package/docs/classes/RWSService.html +10 -10
  26. package/docs/classes/RWSViewComponent.html +1022 -1022
  27. package/docs/classes/ServiceWorkerServiceInstance.html +13 -13
  28. package/docs/classes/UtilsServiceInstance.html +13 -13
  29. package/docs/functions/attr.html +5 -5
  30. package/docs/functions/observable.html +3 -3
  31. package/docs/index.html +179 -179
  32. package/docs/interfaces/HTMLTag.html +3 -3
  33. package/docs/interfaces/IRWSConfig.html +20 -20
  34. package/docs/interfaces/IRWSDecoratorOptions.html +5 -5
  35. package/docs/interfaces/IRWSHttpRoute.html +2 -2
  36. package/docs/interfaces/IRWSPrefixedHTTProutes.html +2 -2
  37. package/docs/interfaces/IRWSUser.html +5 -5
  38. package/docs/modules.html +45 -45
  39. package/foundation/index.js +1 -1
  40. package/foundation/rws-foundation.d.ts +7 -7
  41. package/foundation/rws-foundation.js +7 -7
  42. package/package.json +1 -1
  43. package/service_worker/src/_service_worker.ts +83 -83
  44. package/service_worker/tsconfig.json +20 -20
  45. package/service_worker/webpack.config.js +66 -66
  46. package/src/client/components.ts +67 -67
  47. package/src/client/config.ts +175 -175
  48. package/src/client/hotReload.ts +22 -22
  49. package/src/client/services.ts +27 -27
  50. package/src/client.ts +208 -208
  51. package/src/components/_component.ts +247 -247
  52. package/src/components/_container.ts +15 -15
  53. package/src/components/_decorator.ts +122 -122
  54. package/src/components/_definitions.ts +64 -64
  55. package/src/components/_event_handling.ts +40 -40
  56. package/src/components/index.ts +25 -25
  57. package/src/index.ts +86 -86
  58. package/src/plugins/_builder.js +31 -31
  59. package/src/plugins/_plugin.ts +60 -60
  60. package/src/services/ApiService.ts +105 -105
  61. package/src/services/ConfigService.ts +125 -125
  62. package/src/services/DOMService.ts +93 -93
  63. package/src/services/NotifyService.ts +47 -47
  64. package/src/services/ServiceWorkerService.ts +60 -60
  65. package/src/services/UtilsService.ts +60 -60
  66. package/src/services/_service.ts +64 -64
  67. package/src/styles/README.md +157 -157
  68. package/src/styles/_darkreader.scss +30 -30
  69. package/src/styles/_grid.scss +75 -75
  70. package/src/styles/_grid_legacy.scss +49 -49
  71. package/src/styles/_misc.scss +8 -8
  72. package/src/styles/_scrollbars.scss +40 -40
  73. package/src/styles/includes.scss +6 -6
  74. package/src/types/IBackendCore.ts +11 -11
  75. package/src/types/IRWSConfig.ts +29 -29
  76. package/src/types/IRWSPlugin.ts +23 -23
  77. package/src/types/IRWSResource.ts +4 -4
  78. package/src/types/IRWSUser.ts +6 -6
  79. package/src/types/IRWSViewComponent.ts +36 -36
  80. package/src/types/IReFormerField.ts +4 -4
  81. package/src/types/RWSNotify.ts +6 -6
  82. package/src/types/RWSWindow.ts +41 -41
  83. package/types/declarations.d.ts +8 -8
  84. package/types/docs-typings.d.ts +15 -15
@@ -1,42 +1,42 @@
1
- import { RWSClientInstance } from '../client';
2
- import { Container, InterfaceSymbol } from '../components/_container';
3
-
4
- import { RWSPlugin, DefaultRWSPluginOptionsType } from '../plugins/_plugin';
5
- import { v1 as uuid} from 'uuid';
6
- export type RWSWindowComponentInterface = (params?: any) => void;
7
- export type RWSWindowComponentEntry = { interface: RWSWindowComponentInterface, component: any };
8
- export type RWSWindowComponentRegister = { [key: string]: RWSWindowComponentEntry};
9
-
10
- export function loadRWSRichWindow(): RWSWindow
11
- {
12
- const richWindow: RWSWindow = window;
13
-
14
- if(!richWindow.RWS){
15
- const newNode = document.createElement('main');
16
- newNode.id = 'rws-cntr-id-' + uuid();
17
-
18
- console.log('\x1b[1m[RWS]\x1b[0m Created new container node: ', newNode.id);
19
-
20
- richWindow.RWS = {
21
- client: null,
22
- components: {},
23
- plugins: {},
24
- container: null,
25
- container_node: newNode,
26
- _registered: {}
27
- };
28
- }
29
-
30
- return richWindow;
31
- }
32
-
33
- export default interface RWSWindow extends Window {
34
- RWS?: {
35
- client?: RWSClientInstance
36
- components: RWSWindowComponentRegister
37
- plugins: {[key: string]: RWSPlugin<DefaultRWSPluginOptionsType>}
38
- container: Container | null
39
- container_node: Element | null
40
- _registered: {[key: string]: InterfaceSymbol<any>};
41
- }
1
+ import { RWSClientInstance } from '../client';
2
+ import { Container, InterfaceSymbol } from '../components/_container';
3
+
4
+ import { RWSPlugin, DefaultRWSPluginOptionsType } from '../plugins/_plugin';
5
+ import { v1 as uuid} from 'uuid';
6
+ export type RWSWindowComponentInterface = (params?: any) => void;
7
+ export type RWSWindowComponentEntry = { interface: RWSWindowComponentInterface, component: any };
8
+ export type RWSWindowComponentRegister = { [key: string]: RWSWindowComponentEntry};
9
+
10
+ export function loadRWSRichWindow(): RWSWindow
11
+ {
12
+ const richWindow: RWSWindow = window;
13
+
14
+ if(!richWindow.RWS){
15
+ const newNode = document.createElement('main');
16
+ newNode.id = 'rws-cntr-id-' + uuid();
17
+
18
+ console.log('\x1b[1m[RWS]\x1b[0m Created new container node: ', newNode.id);
19
+
20
+ richWindow.RWS = {
21
+ client: null,
22
+ components: {},
23
+ plugins: {},
24
+ container: null,
25
+ container_node: newNode,
26
+ _registered: {}
27
+ };
28
+ }
29
+
30
+ return richWindow;
31
+ }
32
+
33
+ export default interface RWSWindow extends Window {
34
+ RWS?: {
35
+ client?: RWSClientInstance
36
+ components: RWSWindowComponentRegister
37
+ plugins: {[key: string]: RWSPlugin<DefaultRWSPluginOptionsType>}
38
+ container: Container | null
39
+ container_node: Element | null
40
+ _registered: {[key: string]: InterfaceSymbol<any>};
41
+ }
42
42
  }
@@ -1,9 +1,9 @@
1
- declare module '*.scss' {
2
- const content: string;
3
- export default content;
4
- }
5
-
6
- declare module '*.html' {
7
- const content: string;
8
- export default content;
1
+ declare module '*.scss' {
2
+ const content: string;
3
+ export default content;
4
+ }
5
+
6
+ declare module '*.html' {
7
+ const content: string;
8
+ export default content;
9
9
  }
@@ -1,15 +1,15 @@
1
- // custom-typings.d.ts
2
- declare module 'glob' {
3
- import { Minimatch } from 'minimatch';
4
-
5
- namespace glob {
6
- interface IOptions {
7
- // Add only the options you need or leave it empty to bypass the error
8
- }
9
-
10
- interface IGlobBase {
11
- minimatch: Minimatch;
12
- options: IOptions;
13
- }
14
- }
15
- }
1
+ // custom-typings.d.ts
2
+ declare module 'glob' {
3
+ import { Minimatch } from 'minimatch';
4
+
5
+ namespace glob {
6
+ interface IOptions {
7
+ // Add only the options you need or leave it empty to bypass the error
8
+ }
9
+
10
+ interface IGlobBase {
11
+ minimatch: Minimatch;
12
+ options: IOptions;
13
+ }
14
+ }
15
+ }