@steedos-widgets/amis-object 6.3.12-beta.1 → 6.3.12-beta.10
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/dist/amis-object.cjs.js +15 -34
- package/dist/amis-object.cjs.js.map +1 -1
- package/dist/amis-object.esm.js +16 -35
- package/dist/amis-object.esm.js.map +1 -1
- package/dist/amis-object.umd.js +14 -10
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets.json +21 -21
- package/package.json +3 -3
package/dist/amis-object.cjs.js
CHANGED
|
@@ -88,13 +88,6 @@ function __rest(s, e) {
|
|
|
88
88
|
return t;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
function __decorate(decorators, target, key, desc) {
|
|
92
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
93
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
94
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
95
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
91
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
99
92
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
100
93
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -8015,7 +8008,7 @@ const parseSingleExpression$1 = function (func, formData, dataPath, global, user
|
|
|
8015
8008
|
* @Author: baozhoutao@steedos.com
|
|
8016
8009
|
* @Date: 2022-11-01 15:51:00
|
|
8017
8010
|
* @LastEditors: baozhoutao@steedos.com
|
|
8018
|
-
* @LastEditTime: 2024-
|
|
8011
|
+
* @LastEditTime: 2024-12-26 20:28:43
|
|
8019
8012
|
* @Description:
|
|
8020
8013
|
*/
|
|
8021
8014
|
|
|
@@ -8175,20 +8168,23 @@ const getSchema$5 = async (uiSchema, ctx) => {
|
|
|
8175
8168
|
{
|
|
8176
8169
|
type: 'button',
|
|
8177
8170
|
actionType: 'cancel',
|
|
8178
|
-
label: instance.t('frontend_form_cancel')
|
|
8171
|
+
label: instance.t('frontend_form_cancel'),
|
|
8172
|
+
className: 'form-btn-cancel'
|
|
8179
8173
|
},
|
|
8180
8174
|
{
|
|
8181
8175
|
type: 'button',
|
|
8182
8176
|
label: instance.t('frontend_form_save_and_new'),
|
|
8183
8177
|
actionType: 'confirm',
|
|
8184
8178
|
close: false,
|
|
8185
|
-
id: "confirmAndNew"
|
|
8179
|
+
id: "confirmAndNew",
|
|
8180
|
+
className: 'form-btn-save_and_new'
|
|
8186
8181
|
},
|
|
8187
8182
|
{
|
|
8188
8183
|
type: 'button',
|
|
8189
8184
|
actionType: 'confirm',
|
|
8190
8185
|
label: instance.t('frontend_form_save'),
|
|
8191
|
-
primary: true
|
|
8186
|
+
primary: true,
|
|
8187
|
+
className: 'form-btn-save'
|
|
8192
8188
|
},
|
|
8193
8189
|
]
|
|
8194
8190
|
}
|
|
@@ -22268,6 +22264,7 @@ var Collapse = /** @class */ (function (_super) {
|
|
|
22268
22264
|
_this.basicCollapse = React__default["default"].createRef();
|
|
22269
22265
|
return _this;
|
|
22270
22266
|
}
|
|
22267
|
+
// @autobind
|
|
22271
22268
|
Collapse.prototype.handleCollapseChange = function (collapsed) {
|
|
22272
22269
|
return __awaiter(this, void 0, void 0, function () {
|
|
22273
22270
|
var _a, dispatchEvent, onCollapse, eventData, changeEvent, toggleEvent;
|
|
@@ -22335,9 +22332,6 @@ var Collapse = /** @class */ (function (_super) {
|
|
|
22335
22332
|
'collapseHeader',
|
|
22336
22333
|
'size'
|
|
22337
22334
|
];
|
|
22338
|
-
__decorate([
|
|
22339
|
-
amisCore.autobind
|
|
22340
|
-
], Collapse.prototype, "handleCollapseChange", null);
|
|
22341
22335
|
return Collapse;
|
|
22342
22336
|
}(React__default["default"].Component));
|
|
22343
22337
|
var FieldSetControl = /** @class */ (function (_super) {
|
|
@@ -24710,14 +24704,17 @@ var Container = /** @class */ (function (_super) {
|
|
|
24710
24704
|
function Container() {
|
|
24711
24705
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
24712
24706
|
}
|
|
24707
|
+
// @autobind
|
|
24713
24708
|
Container.prototype.handleClick = function (e) {
|
|
24714
24709
|
var _a = this.props, dispatchEvent = _a.dispatchEvent, data = _a.data;
|
|
24715
24710
|
dispatchEvent(e, data);
|
|
24716
24711
|
};
|
|
24712
|
+
// @autobind
|
|
24717
24713
|
Container.prototype.handleMouseEnter = function (e) {
|
|
24718
24714
|
var _a = this.props, dispatchEvent = _a.dispatchEvent, data = _a.data;
|
|
24719
24715
|
dispatchEvent(e, data);
|
|
24720
24716
|
};
|
|
24717
|
+
// @autobind
|
|
24721
24718
|
Container.prototype.handleMouseLeave = function (e) {
|
|
24722
24719
|
var _a = this.props, dispatchEvent = _a.dispatchEvent, data = _a.data;
|
|
24723
24720
|
dispatchEvent(e, data);
|
|
@@ -24771,15 +24768,6 @@ var Container = /** @class */ (function (_super) {
|
|
|
24771
24768
|
enableUserSelect: false
|
|
24772
24769
|
}
|
|
24773
24770
|
};
|
|
24774
|
-
__decorate([
|
|
24775
|
-
amisCore.autobind
|
|
24776
|
-
], Container.prototype, "handleClick", null);
|
|
24777
|
-
__decorate([
|
|
24778
|
-
amisCore.autobind
|
|
24779
|
-
], Container.prototype, "handleMouseEnter", null);
|
|
24780
|
-
__decorate([
|
|
24781
|
-
amisCore.autobind
|
|
24782
|
-
], Container.prototype, "handleMouseLeave", null);
|
|
24783
24771
|
return Container;
|
|
24784
24772
|
}(React__default["default"].Component));
|
|
24785
24773
|
// @Renderer({
|
|
@@ -25531,7 +25519,7 @@ var AmisProvider = function (props) { return __awaiter(void 0, void 0, void 0, f
|
|
|
25531
25519
|
* @Author: baozhoutao@steedos.com
|
|
25532
25520
|
* @Date: 2022-09-01 14:44:57
|
|
25533
25521
|
* @LastEditors: baozhoutao@steedos.com
|
|
25534
|
-
* @LastEditTime:
|
|
25522
|
+
* @LastEditTime: 2025-01-07 17:14:16
|
|
25535
25523
|
* @Description:
|
|
25536
25524
|
*/
|
|
25537
25525
|
var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -25818,7 +25806,7 @@ var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0
|
|
|
25818
25806
|
]
|
|
25819
25807
|
}
|
|
25820
25808
|
},
|
|
25821
|
-
isMobile
|
|
25809
|
+
isMobile || !isSpaceAdmin ? null : {
|
|
25822
25810
|
"type": "button",
|
|
25823
25811
|
"level": "link",
|
|
25824
25812
|
"label": "+ 新建应用",
|
|
@@ -27010,7 +26998,7 @@ function generateRandomString$1(length) {
|
|
|
27010
26998
|
return _$1.sampleSize(characters, length).join('');
|
|
27011
26999
|
}
|
|
27012
27000
|
var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void 0, function () {
|
|
27013
|
-
var steedosField, field, _a, readonly, _b, ctx, config, fStatic, env, inInputTable, className, _c, appId, formFactor, editorClassName, lookupATagClick, defaultSource, source, fieldBaseProps, referenceTo_1, fieldValue, fieldRefObject, _d, _e, _f, _g, res, valueOptions_1, fieldValue, values, disPlayValue_1, _h, _j, _k, _l, schema, fieldSchema, fieldValue,
|
|
27001
|
+
var steedosField, field, _a, readonly, _b, ctx, config, fStatic, env, inInputTable, className, _c, appId, formFactor, editorClassName, lookupATagClick, defaultSource, source, fieldBaseProps, referenceTo_1, fieldValue, fieldRefObject, _d, _e, _f, _g, res, valueOptions_1, fieldValue, values, disPlayValue_1, _h, _j, _k, _l, schema, fieldSchema, fieldValue, fieldHtml_1, schema, map, tableFields, _m, _o, subField, subFieldName, fieldAmis, schema, error_1;
|
|
27014
27002
|
var _p, _q, _r, _s, _t, _u, _v, _w, _x, e_1, _y;
|
|
27015
27003
|
var _z, _0, _1, _2, _3, _4, _5;
|
|
27016
27004
|
return __generator(this, function (_6) {
|
|
@@ -27342,18 +27330,11 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
|
|
|
27342
27330
|
if (steedosField.type === 'file' && fieldSchema.disabled) {
|
|
27343
27331
|
fieldValue = fieldSchema.value;
|
|
27344
27332
|
if (fieldValue && fieldValue.length) {
|
|
27345
|
-
hasImageOrFile_1 = false;
|
|
27346
27333
|
_$1.forEach(fieldValue, function (item) {
|
|
27347
27334
|
var fileName = item.name;
|
|
27348
27335
|
var match = fileName.match(/\.([^\.]+)$/);
|
|
27349
|
-
|
|
27350
|
-
if ([".pdf", ".jpg", ".jpeg", ".png", ".gif"].indexOf(fileType) > -1) {
|
|
27351
|
-
hasImageOrFile_1 = true;
|
|
27352
|
-
}
|
|
27336
|
+
match ? match[0] : '';
|
|
27353
27337
|
});
|
|
27354
|
-
if (!hasImageOrFile_1) {
|
|
27355
|
-
return [2 /*return*/, fieldSchema];
|
|
27356
|
-
}
|
|
27357
27338
|
fieldHtml_1 = "";
|
|
27358
27339
|
_$1.forEach(fieldValue, function (item) {
|
|
27359
27340
|
var fileName = item.name;
|