namirasoft-site-react 1.4.315 → 1.4.316
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.
|
@@ -9,6 +9,7 @@ export interface NSRepeaterNSBoxSchemaVariableProps extends IBaseComponentProps
|
|
|
9
9
|
min?: number;
|
|
10
10
|
max?: number;
|
|
11
11
|
item_title: string;
|
|
12
|
+
item?: IBaseComponentProps;
|
|
12
13
|
}
|
|
13
14
|
export declare class NSRepeaterNSBoxSchemaVariable extends Component<NSRepeaterNSBoxSchemaVariableProps> implements INSBox {
|
|
14
15
|
private Repeater_Refs;
|
|
@@ -29,7 +29,8 @@ export class NSRepeaterNSBoxSchemaVariable extends Component {
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
return _jsx(NSRepeater, Object.assign({ ref: this.Repeater_Refs }, this.props, { ignoreItemsHavingError: true, createItem: (gIndex, lIndex, ref, onChange, onDelete) => {
|
|
32
|
-
|
|
32
|
+
var _a, _b, _c;
|
|
33
|
+
return _jsx(NSBoxSchemaVariable, { id: (_a = this.props.item) === null || _a === void 0 ? void 0 : _a.id, classList: (_b = this.props.item) === null || _b === void 0 ? void 0 : _b.classList, style: (_c = this.props.item) === null || _c === void 0 ? void 0 : _c.style, ref: ref, name: `${this.props.name}_${gIndex}`, required: true, title: `${this.props.item_title} ${(lIndex + 1)}`, menu: { builtin: { delete: { enabled: true, onDelete: () => { onDelete === null || onDelete === void 0 ? void 0 : onDelete(lIndex); } } }, items: [] }, onChanged: onChange }, `NSRepeaterNSBoxSchemaVariable_${this.props.name}_item_${gIndex}`);
|
|
33
34
|
}, setValue: (item, _, value) => {
|
|
34
35
|
item.setValue(value);
|
|
35
36
|
}, getValue: (item, checkError) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSRepeaterNSBoxSchemaVariable.js","sourceRoot":"","sources":["../../src/components/NSRepeaterNSBoxSchemaVariable.tsx"],"names":[],"mappings":";AAAA,O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AAC,IAAI,SAAS,MAAM,EAAE,CAMrE,CAAA;YACH,CAAC,EACD,QAAQ,EAAE,CAAC,IAAyB,EAAE,CAAS,EAAE,KAAgC,EAAE,EAAE;gBAEpF,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YACtB,CAAC,EACD,QAAQ,EAAE,CAAC,IAAyB,EAAE,UAAmB,EAAE,EAAE;gBAE5D,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;YAClC,CAAC,EACD,OAAO,EAAE,CAAC,IAAyB,EAAE,KAAgC,EAAE,EAAE;gBAExE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC5B,CAAC,EACD,aAAa,EAAE,GAAG,EAAE;;gBAEnB,MAAA,MAAA,IAAI,CAAC,KAAK,EAAC,aAAa,mDAAG,IAAI,CAAC,CAAC;YAClC,CAAC,EACD,eAAe,EAAE,GAAG,EAAE;;gBAErB,MAAA,MAAA,IAAI,CAAC,KAAK,EAAC,eAAe,mDAAG,IAAI,CAAC,CAAC;YACpC,CAAC,IACA,CAAC;IACJ,CAAC;CACD"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.4.
|
|
11
|
+
"version": "1.4.316",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/main.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"link-react": "^3.0.0",
|
|
36
36
|
"namirasoft-api-link": "^1.4.14",
|
|
37
37
|
"namirasoft-api-product": "^1.4.20",
|
|
38
|
-
"namirasoft-core": "^1.4.
|
|
38
|
+
"namirasoft-core": "^1.4.61",
|
|
39
39
|
"namirasoft-schema": "^1.4.25",
|
|
40
40
|
"namirasoft-site": "^1.4.24",
|
|
41
41
|
"namirasoft-site-map": "^1.4.18",
|
|
@@ -13,6 +13,7 @@ export interface NSRepeaterNSBoxSchemaVariableProps extends IBaseComponentProps
|
|
|
13
13
|
min?: number;
|
|
14
14
|
max?: number;
|
|
15
15
|
item_title: string;
|
|
16
|
+
item?: IBaseComponentProps;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export class NSRepeaterNSBoxSchemaVariable extends Component<NSRepeaterNSBoxSchemaVariableProps> implements INSBox
|
|
@@ -51,6 +52,9 @@ export class NSRepeaterNSBoxSchemaVariable extends Component<NSRepeaterNSBoxSche
|
|
|
51
52
|
createItem={(gIndex: number, lIndex: number, ref: React.RefObject<NSBoxSchemaVariable>, onChange: () => void, onDelete: undefined | ((lIndex: number) => void)) =>
|
|
52
53
|
{
|
|
53
54
|
return <NSBoxSchemaVariable
|
|
55
|
+
id={this.props.item?.id}
|
|
56
|
+
classList={this.props.item?.classList}
|
|
57
|
+
style={this.props.item?.style}
|
|
54
58
|
ref={ref}
|
|
55
59
|
key={`NSRepeaterNSBoxSchemaVariable_${this.props.name}_item_${gIndex}`}
|
|
56
60
|
name={`${this.props.name}_${gIndex}`}
|