@twobirds/microcomponents 0.0.48 → 0.0.50

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 (100) hide show
  1. package/assets/Grandparent.css +13 -0
  2. package/assets/documentation/MC.md +380 -166
  3. package/assets/test.html +5 -1
  4. package/dist/MC.d.ts +1 -0
  5. package/dist/MC.d.ts.map +1 -1
  6. package/dist/MC.min.js +44 -0
  7. package/dist/MC.ts +65 -0
  8. package/dist/elements.min.js +1 -1
  9. package/dist/elements.ts +10 -10
  10. package/dist/formValues.d.ts +3 -2
  11. package/dist/formValues.d.ts.map +1 -1
  12. package/dist/formValues.ts +206 -203
  13. package/dist/formvValues.min.js +1 -1
  14. package/dist/helpers.d.ts +1 -0
  15. package/dist/helpers.d.ts.map +1 -1
  16. package/dist/helpers.ts +9 -0
  17. package/dist/microcomponents.min.js +1 -1
  18. package/dist/observables.d.ts +1 -1
  19. package/dist/observables.d.ts.map +1 -1
  20. package/dist/observables.min.js +1 -1
  21. package/dist/observables.ts +64 -31
  22. package/dist/selectors.min.js +1 -1
  23. package/dist/test.ts +8 -5
  24. package/package.json +1 -1
  25. package/public/Grandparent.css +13 -0
  26. package/public/Grandparent.js +338 -0
  27. package/public/MC.js +43 -0
  28. package/public/MC.js.map +1 -1
  29. package/public/MC.min.js +44 -0
  30. package/public/TestForm.css +47 -0
  31. package/public/TestForm.html +56 -0
  32. package/public/TestForm.js +56 -0
  33. package/public/TestForm.json +27 -0
  34. package/public/Testform.js +149 -0
  35. package/public/classes/MC.DC.html +13 -13
  36. package/public/classes/MC.MC.html +7 -7
  37. package/public/classes/MC.McBase.html +4 -4
  38. package/public/classes/MC.McEvent.html +13 -13
  39. package/public/documentation/MC.md +380 -166
  40. package/public/documentation/observe.md +317 -0
  41. package/public/elements.js +9 -9
  42. package/public/elements.js.map +1 -1
  43. package/public/elements.min.js +1 -1
  44. package/public/formValues.js +142 -133
  45. package/public/formValues.js.map +1 -1
  46. package/public/formvValues.min.js +1 -1
  47. package/public/functions/MC.addListener.html +1 -1
  48. package/public/functions/MC.removeListener.html +1 -1
  49. package/public/functions/elements.defineCE.html +1 -1
  50. package/public/functions/elements.getCE.html +1 -1
  51. package/public/functions/formValues.formValues.html +1 -1
  52. package/public/functions/observables.observe.html +1 -1
  53. package/public/functions/selectors._d.html +1 -1
  54. package/public/functions/selectors._t.html +1 -1
  55. package/public/helpers.js +8 -0
  56. package/public/helpers.js.map +1 -1
  57. package/public/interfaces/MC.HTMLMcElement.html +2 -2
  58. package/public/interfaces/selectors.DSelector.html +55 -55
  59. package/public/interfaces/selectors.TSelector.html +37 -37
  60. package/public/microcomponents.min.js +1 -1
  61. package/public/modules/MC.html +1 -1
  62. package/public/modules/elements.html +1 -1
  63. package/public/modules/formValues.html +1 -1
  64. package/public/modules/observables.html +1 -1
  65. package/public/modules/selectors.html +1 -1
  66. package/public/observables.js +31 -19
  67. package/public/observables.js.map +1 -1
  68. package/public/observables.min.js +1 -1
  69. package/public/selectors.min.js +1 -1
  70. package/public/src/MC.ts +65 -0
  71. package/public/src/elements.ts +10 -10
  72. package/public/src/formValues.ts +206 -203
  73. package/public/src/helpers.ts +9 -0
  74. package/public/src/observables.ts +64 -31
  75. package/public/src/test.ts +8 -5
  76. package/public/test/Grandparent.js +1 -0
  77. package/public/test/Testform.js +1 -0
  78. package/public/test.html +5 -1
  79. package/public/test.js +3 -4
  80. package/public/test.js.map +1 -1
  81. package/public/types/observables.Observable.html +1 -1
  82. package/public/types/selectors.selection.html +1 -1
  83. package/public/types/selectors.singleSelector.html +1 -1
  84. package/src/MC.ts +65 -0
  85. package/src/elements.ts +10 -10
  86. package/src/formValues.ts +206 -203
  87. package/src/helpers.ts +9 -0
  88. package/src/observables.ts +64 -31
  89. package/src/test/Child.ts +21 -0
  90. package/src/test/Grandchild.ts +21 -0
  91. package/src/test/Grandparent.css +11 -0
  92. package/src/test/Grandparent.ts +21 -0
  93. package/src/test/Greatgrandchild.ts +42 -0
  94. package/src/test/Parent.ts +21 -0
  95. package/src/test/Testform.css +47 -0
  96. package/src/test/Testform.html +56 -0
  97. package/src/test/Testform.json +27 -0
  98. package/src/test/Testform.ts +159 -0
  99. package/src/test.ts +8 -5
  100. package/webpack.config.js +135 -61
package/webpack.config.js CHANGED
@@ -1,15 +1,15 @@
1
- const path = require("path");
1
+ const path = require('path');
2
2
 
3
3
  module.exports = [
4
4
  {
5
- entry: "./build/MC.js",
6
- mode: "production",
5
+ entry: './build/MC.js',
6
+ mode: 'production',
7
7
  output: {
8
- path: path.resolve(__dirname, "dist"),
9
- filename: "MC.min.js",
10
- libraryTarget: "umd",
11
- library: "MC",
12
- globalObject: "this",
8
+ path: path.resolve(__dirname, 'dist'),
9
+ filename: 'MC.min.js',
10
+ libraryTarget: 'umd',
11
+ library: 'MC',
12
+ globalObject: 'this',
13
13
  },
14
14
  module: {
15
15
  rules: [
@@ -17,13 +17,13 @@ module.exports = [
17
17
  // test: /\.tsx?$/,
18
18
  use: [
19
19
  {
20
- loader: "ts-loader",
20
+ loader: 'ts-loader',
21
21
  options: {
22
22
  transpileOnly: true, // Avoid type checking during webpack build
23
23
  compilerOptions: {
24
24
  declaration: false, // Generate .d.ts files
25
25
  declarationMap: false, // Generate .d.ts.map files
26
- outDir: "build/types", // Output .d.ts and .d.ts.map to a different directory
26
+ outDir: 'build/types', // Output .d.ts and .d.ts.map to a different directory
27
27
  },
28
28
  },
29
29
  },
@@ -33,21 +33,21 @@ module.exports = [
33
33
  ],
34
34
  },
35
35
  resolve: {
36
- extensions: [".tsx", ".ts", ".js"],
36
+ extensions: ['.tsx', '.ts', '.js'],
37
37
  },
38
38
  optimization: {
39
39
  minimize: false, // Enable minification
40
40
  },
41
41
  },
42
42
  {
43
- entry: "./build/elements.js",
44
- mode: "production",
43
+ entry: './build/elements.js',
44
+ mode: 'production',
45
45
  output: {
46
- path: path.resolve(__dirname, "dist"),
47
- filename: "elements.min.js",
48
- libraryTarget: "umd",
49
- library: "elements",
50
- globalObject: "this",
46
+ path: path.resolve(__dirname, 'dist'),
47
+ filename: 'elements.min.js',
48
+ libraryTarget: 'umd',
49
+ library: 'elements',
50
+ globalObject: 'this',
51
51
  },
52
52
  module: {
53
53
  rules: [
@@ -55,13 +55,13 @@ module.exports = [
55
55
  // test: /\.tsx?$/,
56
56
  use: [
57
57
  {
58
- loader: "ts-loader",
58
+ loader: 'ts-loader',
59
59
  options: {
60
60
  transpileOnly: true, // Avoid type checking during webpack build
61
61
  compilerOptions: {
62
62
  declaration: false, // Generate .d.ts files
63
63
  declarationMap: false, // Generate .d.ts.map files
64
- outDir: "build/types", // Output .d.ts and .d.ts.map to a different directory
64
+ outDir: 'build/types', // Output .d.ts and .d.ts.map to a different directory
65
65
  },
66
66
  },
67
67
  },
@@ -71,21 +71,21 @@ module.exports = [
71
71
  ],
72
72
  },
73
73
  resolve: {
74
- extensions: [".tsx", ".ts", ".js"],
74
+ extensions: ['.tsx', '.ts', '.js'],
75
75
  },
76
76
  optimization: {
77
77
  minimize: true, // Enable minification
78
78
  },
79
79
  },
80
80
  {
81
- entry: "./build/selectors.js",
82
- mode: "production",
81
+ entry: './build/selectors.js',
82
+ mode: 'production',
83
83
  output: {
84
- path: path.resolve(__dirname, "dist"),
85
- filename: "selectors.min.js",
86
- libraryTarget: "umd",
87
- library: "selectors",
88
- globalObject: "this",
84
+ path: path.resolve(__dirname, 'dist'),
85
+ filename: 'selectors.min.js',
86
+ libraryTarget: 'umd',
87
+ library: 'selectors',
88
+ globalObject: 'this',
89
89
  },
90
90
  module: {
91
91
  rules: [
@@ -93,13 +93,13 @@ module.exports = [
93
93
  // test: /\.tsx?$/,
94
94
  use: [
95
95
  {
96
- loader: "ts-loader",
96
+ loader: 'ts-loader',
97
97
  options: {
98
98
  transpileOnly: true, // Avoid type checking during webpack build
99
99
  compilerOptions: {
100
100
  declaration: false, // Generate .d.ts files
101
101
  declarationMap: false, // Generate .d.ts.map files
102
- outDir: "build/types", // Output .d.ts and .d.ts.map to a different directory
102
+ outDir: 'build/types', // Output .d.ts and .d.ts.map to a different directory
103
103
  },
104
104
  },
105
105
  },
@@ -109,21 +109,21 @@ module.exports = [
109
109
  ],
110
110
  },
111
111
  resolve: {
112
- extensions: [".tsx", ".ts", ".js"],
112
+ extensions: ['.tsx', '.ts', '.js'],
113
113
  },
114
114
  optimization: {
115
115
  minimize: true, // Enable minification
116
116
  },
117
117
  },
118
118
  {
119
- entry: "./build/formValues.js",
120
- mode: "production",
119
+ entry: './build/formValues.js',
120
+ mode: 'production',
121
121
  output: {
122
- path: path.resolve(__dirname, "dist"),
123
- filename: "formvValues.min.js",
124
- libraryTarget: "umd",
125
- library: "formValues",
126
- globalObject: "this",
122
+ path: path.resolve(__dirname, 'dist'),
123
+ filename: 'formvValues.min.js',
124
+ libraryTarget: 'umd',
125
+ library: 'formValues',
126
+ globalObject: 'this',
127
127
  },
128
128
  module: {
129
129
  rules: [
@@ -131,13 +131,13 @@ module.exports = [
131
131
  // test: /\.tsx?$/,
132
132
  use: [
133
133
  {
134
- loader: "ts-loader",
134
+ loader: 'ts-loader',
135
135
  options: {
136
136
  transpileOnly: true, // Avoid type checking during webpack build
137
137
  compilerOptions: {
138
138
  declaration: false, // Generate .d.ts files
139
139
  declarationMap: false, // Generate .d.ts.map files
140
- outDir: "build/types", // Output .d.ts and .d.ts.map to a different directory
140
+ outDir: 'build/types', // Output .d.ts and .d.ts.map to a different directory
141
141
  },
142
142
  },
143
143
  },
@@ -147,21 +147,21 @@ module.exports = [
147
147
  ],
148
148
  },
149
149
  resolve: {
150
- extensions: [".tsx", ".ts", ".js"],
150
+ extensions: ['.tsx', '.ts', '.js'],
151
151
  },
152
152
  optimization: {
153
153
  minimize: true, // Enable minification
154
154
  },
155
155
  },
156
156
  {
157
- entry: "./build/observables.js",
158
- mode: "production",
157
+ entry: './build/observables.js',
158
+ mode: 'production',
159
159
  output: {
160
- path: path.resolve(__dirname, "dist"),
161
- filename: "observables.min.js",
162
- libraryTarget: "umd",
163
- library: "observables",
164
- globalObject: "this",
160
+ path: path.resolve(__dirname, 'dist'),
161
+ filename: 'observables.min.js',
162
+ libraryTarget: 'umd',
163
+ library: 'observables',
164
+ globalObject: 'this',
165
165
  },
166
166
  module: {
167
167
  rules: [
@@ -169,13 +169,13 @@ module.exports = [
169
169
  // test: /\.tsx?$/,
170
170
  use: [
171
171
  {
172
- loader: "ts-loader",
172
+ loader: 'ts-loader',
173
173
  options: {
174
174
  transpileOnly: true, // Avoid type checking during webpack build
175
175
  compilerOptions: {
176
176
  declaration: false, // Generate .d.ts files
177
177
  declarationMap: false, // Generate .d.ts.map files
178
- outDir: "build/types", // Output .d.ts and .d.ts.map to a different directory
178
+ outDir: 'build/types', // Output .d.ts and .d.ts.map to a different directory
179
179
  },
180
180
  },
181
181
  },
@@ -185,7 +185,7 @@ module.exports = [
185
185
  ],
186
186
  },
187
187
  resolve: {
188
- extensions: [".tsx", ".ts", ".js"],
188
+ extensions: ['.tsx', '.ts', '.js'],
189
189
  },
190
190
  optimization: {
191
191
  minimize: true, // Enable minification
@@ -193,14 +193,14 @@ module.exports = [
193
193
  },
194
194
  // bundle files
195
195
  {
196
- entry: "./build/microcomponents.js",
197
- mode: "production",
196
+ entry: './build/microcomponents.js',
197
+ mode: 'production',
198
198
  output: {
199
- path: path.resolve(__dirname, "dist"),
200
- filename: "microcomponents.min.js",
201
- libraryTarget: "umd",
202
- library: "microcomponents",
203
- globalObject: "this",
199
+ path: path.resolve(__dirname, 'dist'),
200
+ filename: 'microcomponents.min.js',
201
+ libraryTarget: 'umd',
202
+ library: 'microcomponents',
203
+ globalObject: 'this',
204
204
  },
205
205
  module: {
206
206
  rules: [
@@ -208,13 +208,13 @@ module.exports = [
208
208
  // test: /\.tsx?$/,
209
209
  use: [
210
210
  {
211
- loader: "ts-loader",
211
+ loader: 'ts-loader',
212
212
  options: {
213
213
  transpileOnly: true, // Avoid type checking during webpack build
214
214
  compilerOptions: {
215
215
  declaration: false, // Generate .d.ts files
216
216
  declarationMap: false, // Generate .d.ts.map files
217
- outDir: "build/types", // Output .d.ts and .d.ts.map to a different directory
217
+ outDir: 'build/types', // Output .d.ts and .d.ts.map to a different directory
218
218
  },
219
219
  },
220
220
  },
@@ -224,7 +224,81 @@ module.exports = [
224
224
  ],
225
225
  },
226
226
  resolve: {
227
- extensions: [".tsx", ".ts", ".js"],
227
+ extensions: ['.tsx', '.ts', '.js'],
228
+ },
229
+ optimization: {
230
+ minimize: true, // Enable minification
231
+ },
232
+ },
233
+ {
234
+ entry: './build/test/Grandparent.js',
235
+ mode: 'production',
236
+ output: {
237
+ path: path.resolve(__dirname, 'public/test'),
238
+ filename: 'Grandparent.js',
239
+ libraryTarget: 'umd',
240
+ library: 'TestGrandparent',
241
+ },
242
+ module: {
243
+ rules: [
244
+ {
245
+ // test: /\.tsx?$/,
246
+ use: [
247
+ {
248
+ loader: 'ts-loader',
249
+ options: {
250
+ transpileOnly: true, // Avoid type checking during webpack build
251
+ compilerOptions: {
252
+ declaration: false, // Generate .d.ts files
253
+ declarationMap: false, // Generate .d.ts.map files
254
+ outDir: 'build/types', // Output .d.ts and .d.ts.map to a different directory
255
+ },
256
+ },
257
+ },
258
+ ],
259
+ exclude: /node_modules/,
260
+ },
261
+ ],
262
+ },
263
+ resolve: {
264
+ extensions: ['.tsx', '.ts', '.js'],
265
+ },
266
+ optimization: {
267
+ minimize: true, // Enable minification
268
+ },
269
+ },
270
+ {
271
+ entry: './build/test/Testform.js',
272
+ mode: 'production',
273
+ output: {
274
+ path: path.resolve(__dirname, 'public/test'),
275
+ filename: 'Testform.js',
276
+ libraryTarget: 'umd',
277
+ library: 'TestTestform',
278
+ },
279
+ module: {
280
+ rules: [
281
+ {
282
+ // test: /\.tsx?$/,
283
+ use: [
284
+ {
285
+ loader: 'ts-loader',
286
+ options: {
287
+ transpileOnly: true, // Avoid type checking during webpack build
288
+ compilerOptions: {
289
+ declaration: false, // Generate .d.ts files
290
+ declarationMap: false, // Generate .d.ts.map files
291
+ outDir: 'build/types', // Output .d.ts and .d.ts.map to a different directory
292
+ },
293
+ },
294
+ },
295
+ ],
296
+ exclude: /node_modules/,
297
+ },
298
+ ],
299
+ },
300
+ resolve: {
301
+ extensions: ['.tsx', '.ts', '.js'],
228
302
  },
229
303
  optimization: {
230
304
  minimize: true, // Enable minification