@base-framework/base 3.0.226 → 3.0.227

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.
@@ -1,8 +1,3 @@
1
- /**
2
- * This defines an object that can have arbitrary string keys.
3
- * @typedef {Object} Props
4
- * @property {any} [key] - Catch-all for dynamic props
5
- */
6
1
  /**
7
2
  * Component
8
3
  *
@@ -150,15 +145,6 @@ export class Component extends Unit {
150
145
  */
151
146
  protected removeEvents(): void;
152
147
  }
153
- /**
154
- * This defines an object that can have arbitrary string keys.
155
- */
156
- export type Props = {
157
- /**
158
- * - Catch-all for dynamic props
159
- */
160
- key?: any;
161
- };
162
148
  import { Unit } from './unit.js';
163
149
  import { StateHelper } from './state-helper.js';
164
150
  import { EventHelper } from './event-helper.js';
@@ -1,13 +1 @@
1
- export function parseArgs(args: (Props | string | object[])[]): {
2
- props?: Props;
3
- children?: (string | object[]);
4
- };
5
- /**
6
- * This defines an object that can have arbitrary string keys.
7
- */
8
- export type Props = {
9
- /**
10
- * - Catch-all for dynamic props
11
- */
12
- key?: any;
13
- };
1
+ export function parseArgs(args: any[]): object;
@@ -1,13 +1,4 @@
1
1
  export function DefaultProps(): object;
2
2
  export function StringProp(value: string): object;
3
3
  export function ArrayProp(value: any[]): object;
4
- export function ObjectProp(args: (Props | string | object[])[]): object;
5
- /**
6
- * This defines an object that can have arbitrary string keys.
7
- */
8
- export type Props = {
9
- /**
10
- * - Catch-all for dynamic props
11
- */
12
- key?: any;
13
- };
4
+ export function ObjectProp(args: any[]): object;
@@ -22,14 +22,9 @@ export class Unit {
22
22
  * This will create a unit.
23
23
  *
24
24
  * @constructor
25
- * @param {...(Props|string|Array<object>)} args
26
- * An array of arguments that can be:
27
- * - A `Props` object
28
- * - A string child
29
- * - An array of child objects
30
- * etc.
25
+ * @param {array} args
31
26
  */
32
- constructor(...args: (Props | string | Array<object>)[]);
27
+ constructor(...args: any[]);
33
28
  /**
34
29
  * @member {boolean} isUnit
35
30
  */
@@ -45,7 +40,7 @@ export class Unit {
45
40
  /**
46
41
  * @member {?array} children
47
42
  */
48
- children: string | any[];
43
+ children: any;
49
44
  /**
50
45
  * @member {?array} nest
51
46
  */
@@ -73,13 +68,19 @@ export class Unit {
73
68
  */
74
69
  protected init(): void;
75
70
  id: string;
71
+ /**
72
+ * This will declare the component props.
73
+ *
74
+ * @returns {void}
75
+ */
76
+ declareProps(): void;
76
77
  /**
77
78
  * This will setup the component props.
78
79
  *
79
- * @param {Props} [props]
80
+ * @param {object} [props]
80
81
  * @returns {void}
81
82
  */
82
- setupProps(props?: Props): void;
83
+ setupProps(props?: object): void;
83
84
  /**
84
85
  * This will get the child scope instance of the component.
85
86
  *
@@ -297,12 +298,3 @@ export class Unit {
297
298
  */
298
299
  destroy(): void;
299
300
  }
300
- /**
301
- * This defines an object that can have arbitrary string keys.
302
- */
303
- export type Props = {
304
- /**
305
- * - Catch-all for dynamic props
306
- */
307
- key?: any;
308
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/base",
3
- "version": "3.0.226",
3
+ "version": "3.0.227",
4
4
  "description": "This is a javascript framework.",
5
5
  "main": "./dist/base.js",
6
6
  "type": "module",