@nickaux/form-configurator 1.1.218 → 1.1.220
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/FormConfigurator.esm.js +555 -520
- package/dist/FormConfigurator.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -36294,10 +36294,10 @@ function requireLib$1() {
|
|
|
36294
36294
|
ElementType2["CDATA"] = "cdata";
|
|
36295
36295
|
ElementType2["Doctype"] = "doctype";
|
|
36296
36296
|
})(ElementType = exports2.ElementType || (exports2.ElementType = {}));
|
|
36297
|
-
function
|
|
36297
|
+
function isTag2(elem) {
|
|
36298
36298
|
return elem.type === ElementType.Tag || elem.type === ElementType.Script || elem.type === ElementType.Style;
|
|
36299
36299
|
}
|
|
36300
|
-
exports2.isTag =
|
|
36300
|
+
exports2.isTag = isTag2;
|
|
36301
36301
|
exports2.Root = ElementType.Root;
|
|
36302
36302
|
exports2.Text = ElementType.Text;
|
|
36303
36303
|
exports2.Directive = ElementType.Directive;
|
|
@@ -36310,406 +36310,399 @@ function requireLib$1() {
|
|
|
36310
36310
|
})(lib$4);
|
|
36311
36311
|
return lib$4;
|
|
36312
36312
|
}
|
|
36313
|
-
var
|
|
36314
|
-
function
|
|
36315
|
-
|
|
36316
|
-
|
|
36317
|
-
|
|
36318
|
-
|
|
36319
|
-
|
|
36320
|
-
|
|
36321
|
-
d4.__proto__ = b3;
|
|
36322
|
-
} || function(d4, b3) {
|
|
36323
|
-
for (var p2 in b3)
|
|
36324
|
-
if (Object.prototype.hasOwnProperty.call(b3, p2))
|
|
36325
|
-
d4[p2] = b3[p2];
|
|
36326
|
-
};
|
|
36327
|
-
return extendStatics(d3, b2);
|
|
36328
|
-
};
|
|
36329
|
-
return function(d3, b2) {
|
|
36330
|
-
if (typeof b2 !== "function" && b2 !== null)
|
|
36331
|
-
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
36332
|
-
extendStatics(d3, b2);
|
|
36333
|
-
function __() {
|
|
36334
|
-
this.constructor = d3;
|
|
36335
|
-
}
|
|
36336
|
-
d3.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
36313
|
+
var __extends$5 = commonjsGlobal && commonjsGlobal.__extends || function() {
|
|
36314
|
+
var extendStatics = function(d3, b2) {
|
|
36315
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d4, b3) {
|
|
36316
|
+
d4.__proto__ = b3;
|
|
36317
|
+
} || function(d4, b3) {
|
|
36318
|
+
for (var p2 in b3)
|
|
36319
|
+
if (Object.prototype.hasOwnProperty.call(b3, p2))
|
|
36320
|
+
d4[p2] = b3[p2];
|
|
36337
36321
|
};
|
|
36338
|
-
|
|
36339
|
-
|
|
36340
|
-
|
|
36341
|
-
|
|
36342
|
-
|
|
36343
|
-
|
|
36344
|
-
|
|
36345
|
-
|
|
36322
|
+
return extendStatics(d3, b2);
|
|
36323
|
+
};
|
|
36324
|
+
return function(d3, b2) {
|
|
36325
|
+
if (typeof b2 !== "function" && b2 !== null)
|
|
36326
|
+
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
36327
|
+
extendStatics(d3, b2);
|
|
36328
|
+
function __() {
|
|
36329
|
+
this.constructor = d3;
|
|
36330
|
+
}
|
|
36331
|
+
d3.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
36332
|
+
};
|
|
36333
|
+
}();
|
|
36334
|
+
var __assign$4 = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
36335
|
+
__assign$4 = Object.assign || function(t2) {
|
|
36336
|
+
for (var s4, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
36337
|
+
s4 = arguments[i2];
|
|
36338
|
+
for (var p2 in s4)
|
|
36339
|
+
if (Object.prototype.hasOwnProperty.call(s4, p2))
|
|
36340
|
+
t2[p2] = s4[p2];
|
|
36341
|
+
}
|
|
36342
|
+
return t2;
|
|
36343
|
+
};
|
|
36344
|
+
return __assign$4.apply(this, arguments);
|
|
36345
|
+
};
|
|
36346
|
+
Object.defineProperty(node$1, "__esModule", { value: true });
|
|
36347
|
+
node$1.cloneNode = node$1.hasChildren = node$1.isDocument = node$1.isDirective = node$1.isComment = node$1.isText = node$1.isCDATA = node$1.isTag = node$1.Element = node$1.Document = node$1.NodeWithChildren = node$1.ProcessingInstruction = node$1.Comment = node$1.Text = node$1.DataNode = node$1.Node = void 0;
|
|
36348
|
+
var domelementtype_1 = requireLib$1();
|
|
36349
|
+
var nodeTypes = /* @__PURE__ */ new Map([
|
|
36350
|
+
[domelementtype_1.ElementType.Tag, 1],
|
|
36351
|
+
[domelementtype_1.ElementType.Script, 1],
|
|
36352
|
+
[domelementtype_1.ElementType.Style, 1],
|
|
36353
|
+
[domelementtype_1.ElementType.Directive, 1],
|
|
36354
|
+
[domelementtype_1.ElementType.Text, 3],
|
|
36355
|
+
[domelementtype_1.ElementType.CDATA, 4],
|
|
36356
|
+
[domelementtype_1.ElementType.Comment, 8],
|
|
36357
|
+
[domelementtype_1.ElementType.Root, 9]
|
|
36358
|
+
]);
|
|
36359
|
+
var Node$1 = (
|
|
36360
|
+
/** @class */
|
|
36361
|
+
function() {
|
|
36362
|
+
function Node2(type) {
|
|
36363
|
+
this.type = type;
|
|
36364
|
+
this.parent = null;
|
|
36365
|
+
this.prev = null;
|
|
36366
|
+
this.next = null;
|
|
36367
|
+
this.startIndex = null;
|
|
36368
|
+
this.endIndex = null;
|
|
36369
|
+
}
|
|
36370
|
+
Object.defineProperty(Node2.prototype, "nodeType", {
|
|
36371
|
+
// Read-only aliases
|
|
36372
|
+
/**
|
|
36373
|
+
* [DOM spec](https://dom.spec.whatwg.org/#dom-node-nodetype)-compatible
|
|
36374
|
+
* node {@link type}.
|
|
36375
|
+
*/
|
|
36376
|
+
get: function() {
|
|
36377
|
+
var _a;
|
|
36378
|
+
return (_a = nodeTypes.get(this.type)) !== null && _a !== void 0 ? _a : 1;
|
|
36379
|
+
},
|
|
36380
|
+
enumerable: false,
|
|
36381
|
+
configurable: true
|
|
36382
|
+
});
|
|
36383
|
+
Object.defineProperty(Node2.prototype, "parentNode", {
|
|
36384
|
+
// Read-write aliases for properties
|
|
36385
|
+
/**
|
|
36386
|
+
* Same as {@link parent}.
|
|
36387
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
36388
|
+
*/
|
|
36389
|
+
get: function() {
|
|
36390
|
+
return this.parent;
|
|
36391
|
+
},
|
|
36392
|
+
set: function(parent) {
|
|
36393
|
+
this.parent = parent;
|
|
36394
|
+
},
|
|
36395
|
+
enumerable: false,
|
|
36396
|
+
configurable: true
|
|
36397
|
+
});
|
|
36398
|
+
Object.defineProperty(Node2.prototype, "previousSibling", {
|
|
36399
|
+
/**
|
|
36400
|
+
* Same as {@link prev}.
|
|
36401
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
36402
|
+
*/
|
|
36403
|
+
get: function() {
|
|
36404
|
+
return this.prev;
|
|
36405
|
+
},
|
|
36406
|
+
set: function(prev2) {
|
|
36407
|
+
this.prev = prev2;
|
|
36408
|
+
},
|
|
36409
|
+
enumerable: false,
|
|
36410
|
+
configurable: true
|
|
36411
|
+
});
|
|
36412
|
+
Object.defineProperty(Node2.prototype, "nextSibling", {
|
|
36413
|
+
/**
|
|
36414
|
+
* Same as {@link next}.
|
|
36415
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
36416
|
+
*/
|
|
36417
|
+
get: function() {
|
|
36418
|
+
return this.next;
|
|
36419
|
+
},
|
|
36420
|
+
set: function(next2) {
|
|
36421
|
+
this.next = next2;
|
|
36422
|
+
},
|
|
36423
|
+
enumerable: false,
|
|
36424
|
+
configurable: true
|
|
36425
|
+
});
|
|
36426
|
+
Node2.prototype.cloneNode = function(recursive) {
|
|
36427
|
+
if (recursive === void 0) {
|
|
36428
|
+
recursive = false;
|
|
36346
36429
|
}
|
|
36347
|
-
return
|
|
36430
|
+
return cloneNode(this, recursive);
|
|
36348
36431
|
};
|
|
36349
|
-
return
|
|
36350
|
-
}
|
|
36351
|
-
|
|
36352
|
-
|
|
36353
|
-
|
|
36354
|
-
|
|
36355
|
-
|
|
36356
|
-
|
|
36357
|
-
|
|
36358
|
-
|
|
36359
|
-
|
|
36360
|
-
|
|
36361
|
-
[domelementtype_1.ElementType.Comment, 8],
|
|
36362
|
-
[domelementtype_1.ElementType.Root, 9]
|
|
36363
|
-
]);
|
|
36364
|
-
var Node2 = (
|
|
36365
|
-
/** @class */
|
|
36366
|
-
function() {
|
|
36367
|
-
function Node3(type) {
|
|
36368
|
-
this.type = type;
|
|
36369
|
-
this.parent = null;
|
|
36370
|
-
this.prev = null;
|
|
36371
|
-
this.next = null;
|
|
36372
|
-
this.startIndex = null;
|
|
36373
|
-
this.endIndex = null;
|
|
36374
|
-
}
|
|
36375
|
-
Object.defineProperty(Node3.prototype, "nodeType", {
|
|
36376
|
-
// Read-only aliases
|
|
36377
|
-
/**
|
|
36378
|
-
* [DOM spec](https://dom.spec.whatwg.org/#dom-node-nodetype)-compatible
|
|
36379
|
-
* node {@link type}.
|
|
36380
|
-
*/
|
|
36381
|
-
get: function() {
|
|
36382
|
-
var _a;
|
|
36383
|
-
return (_a = nodeTypes.get(this.type)) !== null && _a !== void 0 ? _a : 1;
|
|
36384
|
-
},
|
|
36385
|
-
enumerable: false,
|
|
36386
|
-
configurable: true
|
|
36387
|
-
});
|
|
36388
|
-
Object.defineProperty(Node3.prototype, "parentNode", {
|
|
36389
|
-
// Read-write aliases for properties
|
|
36390
|
-
/**
|
|
36391
|
-
* Same as {@link parent}.
|
|
36392
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
36393
|
-
*/
|
|
36394
|
-
get: function() {
|
|
36395
|
-
return this.parent;
|
|
36396
|
-
},
|
|
36397
|
-
set: function(parent) {
|
|
36398
|
-
this.parent = parent;
|
|
36399
|
-
},
|
|
36400
|
-
enumerable: false,
|
|
36401
|
-
configurable: true
|
|
36402
|
-
});
|
|
36403
|
-
Object.defineProperty(Node3.prototype, "previousSibling", {
|
|
36404
|
-
/**
|
|
36405
|
-
* Same as {@link prev}.
|
|
36406
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
36407
|
-
*/
|
|
36408
|
-
get: function() {
|
|
36409
|
-
return this.prev;
|
|
36410
|
-
},
|
|
36411
|
-
set: function(prev2) {
|
|
36412
|
-
this.prev = prev2;
|
|
36413
|
-
},
|
|
36414
|
-
enumerable: false,
|
|
36415
|
-
configurable: true
|
|
36416
|
-
});
|
|
36417
|
-
Object.defineProperty(Node3.prototype, "nextSibling", {
|
|
36418
|
-
/**
|
|
36419
|
-
* Same as {@link next}.
|
|
36420
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
36421
|
-
*/
|
|
36422
|
-
get: function() {
|
|
36423
|
-
return this.next;
|
|
36424
|
-
},
|
|
36425
|
-
set: function(next2) {
|
|
36426
|
-
this.next = next2;
|
|
36427
|
-
},
|
|
36428
|
-
enumerable: false,
|
|
36429
|
-
configurable: true
|
|
36430
|
-
});
|
|
36431
|
-
Node3.prototype.cloneNode = function(recursive) {
|
|
36432
|
-
if (recursive === void 0) {
|
|
36433
|
-
recursive = false;
|
|
36434
|
-
}
|
|
36435
|
-
return cloneNode(this, recursive);
|
|
36436
|
-
};
|
|
36437
|
-
return Node3;
|
|
36438
|
-
}()
|
|
36439
|
-
);
|
|
36440
|
-
node$1.Node = Node2;
|
|
36441
|
-
var DataNode = (
|
|
36442
|
-
/** @class */
|
|
36443
|
-
function(_super) {
|
|
36444
|
-
__extends2(DataNode2, _super);
|
|
36445
|
-
function DataNode2(type, data2) {
|
|
36446
|
-
var _this = _super.call(this, type) || this;
|
|
36447
|
-
_this.data = data2;
|
|
36448
|
-
return _this;
|
|
36449
|
-
}
|
|
36450
|
-
Object.defineProperty(DataNode2.prototype, "nodeValue", {
|
|
36451
|
-
/**
|
|
36452
|
-
* Same as {@link data}.
|
|
36453
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
36454
|
-
*/
|
|
36455
|
-
get: function() {
|
|
36456
|
-
return this.data;
|
|
36457
|
-
},
|
|
36458
|
-
set: function(data2) {
|
|
36459
|
-
this.data = data2;
|
|
36460
|
-
},
|
|
36461
|
-
enumerable: false,
|
|
36462
|
-
configurable: true
|
|
36463
|
-
});
|
|
36464
|
-
return DataNode2;
|
|
36465
|
-
}(Node2)
|
|
36466
|
-
);
|
|
36467
|
-
node$1.DataNode = DataNode;
|
|
36468
|
-
var Text2 = (
|
|
36469
|
-
/** @class */
|
|
36470
|
-
function(_super) {
|
|
36471
|
-
__extends2(Text3, _super);
|
|
36472
|
-
function Text3(data2) {
|
|
36473
|
-
return _super.call(this, domelementtype_1.ElementType.Text, data2) || this;
|
|
36474
|
-
}
|
|
36475
|
-
return Text3;
|
|
36476
|
-
}(DataNode)
|
|
36477
|
-
);
|
|
36478
|
-
node$1.Text = Text2;
|
|
36479
|
-
var Comment2 = (
|
|
36480
|
-
/** @class */
|
|
36481
|
-
function(_super) {
|
|
36482
|
-
__extends2(Comment3, _super);
|
|
36483
|
-
function Comment3(data2) {
|
|
36484
|
-
return _super.call(this, domelementtype_1.ElementType.Comment, data2) || this;
|
|
36485
|
-
}
|
|
36486
|
-
return Comment3;
|
|
36487
|
-
}(DataNode)
|
|
36488
|
-
);
|
|
36489
|
-
node$1.Comment = Comment2;
|
|
36490
|
-
var ProcessingInstruction2 = (
|
|
36491
|
-
/** @class */
|
|
36492
|
-
function(_super) {
|
|
36493
|
-
__extends2(ProcessingInstruction3, _super);
|
|
36494
|
-
function ProcessingInstruction3(name, data2) {
|
|
36495
|
-
var _this = _super.call(this, domelementtype_1.ElementType.Directive, data2) || this;
|
|
36496
|
-
_this.name = name;
|
|
36497
|
-
return _this;
|
|
36498
|
-
}
|
|
36499
|
-
return ProcessingInstruction3;
|
|
36500
|
-
}(DataNode)
|
|
36501
|
-
);
|
|
36502
|
-
node$1.ProcessingInstruction = ProcessingInstruction2;
|
|
36503
|
-
var NodeWithChildren = (
|
|
36504
|
-
/** @class */
|
|
36505
|
-
function(_super) {
|
|
36506
|
-
__extends2(NodeWithChildren2, _super);
|
|
36507
|
-
function NodeWithChildren2(type, children) {
|
|
36508
|
-
var _this = _super.call(this, type) || this;
|
|
36509
|
-
_this.children = children;
|
|
36510
|
-
return _this;
|
|
36511
|
-
}
|
|
36512
|
-
Object.defineProperty(NodeWithChildren2.prototype, "firstChild", {
|
|
36513
|
-
// Aliases
|
|
36514
|
-
/** First child of the node. */
|
|
36515
|
-
get: function() {
|
|
36516
|
-
var _a;
|
|
36517
|
-
return (_a = this.children[0]) !== null && _a !== void 0 ? _a : null;
|
|
36518
|
-
},
|
|
36519
|
-
enumerable: false,
|
|
36520
|
-
configurable: true
|
|
36521
|
-
});
|
|
36522
|
-
Object.defineProperty(NodeWithChildren2.prototype, "lastChild", {
|
|
36523
|
-
/** Last child of the node. */
|
|
36524
|
-
get: function() {
|
|
36525
|
-
return this.children.length > 0 ? this.children[this.children.length - 1] : null;
|
|
36526
|
-
},
|
|
36527
|
-
enumerable: false,
|
|
36528
|
-
configurable: true
|
|
36529
|
-
});
|
|
36530
|
-
Object.defineProperty(NodeWithChildren2.prototype, "childNodes", {
|
|
36531
|
-
/**
|
|
36532
|
-
* Same as {@link children}.
|
|
36533
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
36534
|
-
*/
|
|
36535
|
-
get: function() {
|
|
36536
|
-
return this.children;
|
|
36537
|
-
},
|
|
36538
|
-
set: function(children) {
|
|
36539
|
-
this.children = children;
|
|
36540
|
-
},
|
|
36541
|
-
enumerable: false,
|
|
36542
|
-
configurable: true
|
|
36543
|
-
});
|
|
36544
|
-
return NodeWithChildren2;
|
|
36545
|
-
}(Node2)
|
|
36546
|
-
);
|
|
36547
|
-
node$1.NodeWithChildren = NodeWithChildren;
|
|
36548
|
-
var Document = (
|
|
36549
|
-
/** @class */
|
|
36550
|
-
function(_super) {
|
|
36551
|
-
__extends2(Document2, _super);
|
|
36552
|
-
function Document2(children) {
|
|
36553
|
-
return _super.call(this, domelementtype_1.ElementType.Root, children) || this;
|
|
36554
|
-
}
|
|
36555
|
-
return Document2;
|
|
36556
|
-
}(NodeWithChildren)
|
|
36557
|
-
);
|
|
36558
|
-
node$1.Document = Document;
|
|
36559
|
-
var Element2 = (
|
|
36560
|
-
/** @class */
|
|
36561
|
-
function(_super) {
|
|
36562
|
-
__extends2(Element3, _super);
|
|
36563
|
-
function Element3(name, attribs, children, type) {
|
|
36564
|
-
if (children === void 0) {
|
|
36565
|
-
children = [];
|
|
36566
|
-
}
|
|
36567
|
-
if (type === void 0) {
|
|
36568
|
-
type = name === "script" ? domelementtype_1.ElementType.Script : name === "style" ? domelementtype_1.ElementType.Style : domelementtype_1.ElementType.Tag;
|
|
36569
|
-
}
|
|
36570
|
-
var _this = _super.call(this, type, children) || this;
|
|
36571
|
-
_this.name = name;
|
|
36572
|
-
_this.attribs = attribs;
|
|
36573
|
-
return _this;
|
|
36574
|
-
}
|
|
36575
|
-
Object.defineProperty(Element3.prototype, "tagName", {
|
|
36576
|
-
// DOM Level 1 aliases
|
|
36577
|
-
/**
|
|
36578
|
-
* Same as {@link name}.
|
|
36579
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
36580
|
-
*/
|
|
36581
|
-
get: function() {
|
|
36582
|
-
return this.name;
|
|
36583
|
-
},
|
|
36584
|
-
set: function(name) {
|
|
36585
|
-
this.name = name;
|
|
36586
|
-
},
|
|
36587
|
-
enumerable: false,
|
|
36588
|
-
configurable: true
|
|
36589
|
-
});
|
|
36590
|
-
Object.defineProperty(Element3.prototype, "attributes", {
|
|
36591
|
-
get: function() {
|
|
36592
|
-
var _this = this;
|
|
36593
|
-
return Object.keys(this.attribs).map(function(name) {
|
|
36594
|
-
var _a, _b;
|
|
36595
|
-
return {
|
|
36596
|
-
name,
|
|
36597
|
-
value: _this.attribs[name],
|
|
36598
|
-
namespace: (_a = _this["x-attribsNamespace"]) === null || _a === void 0 ? void 0 : _a[name],
|
|
36599
|
-
prefix: (_b = _this["x-attribsPrefix"]) === null || _b === void 0 ? void 0 : _b[name]
|
|
36600
|
-
};
|
|
36601
|
-
});
|
|
36602
|
-
},
|
|
36603
|
-
enumerable: false,
|
|
36604
|
-
configurable: true
|
|
36605
|
-
});
|
|
36606
|
-
return Element3;
|
|
36607
|
-
}(NodeWithChildren)
|
|
36608
|
-
);
|
|
36609
|
-
node$1.Element = Element2;
|
|
36610
|
-
function isTag(node2) {
|
|
36611
|
-
return (0, domelementtype_1.isTag)(node2);
|
|
36612
|
-
}
|
|
36613
|
-
node$1.isTag = isTag;
|
|
36614
|
-
function isCDATA(node2) {
|
|
36615
|
-
return node2.type === domelementtype_1.ElementType.CDATA;
|
|
36616
|
-
}
|
|
36617
|
-
node$1.isCDATA = isCDATA;
|
|
36618
|
-
function isText(node2) {
|
|
36619
|
-
return node2.type === domelementtype_1.ElementType.Text;
|
|
36620
|
-
}
|
|
36621
|
-
node$1.isText = isText;
|
|
36622
|
-
function isComment(node2) {
|
|
36623
|
-
return node2.type === domelementtype_1.ElementType.Comment;
|
|
36624
|
-
}
|
|
36625
|
-
node$1.isComment = isComment;
|
|
36626
|
-
function isDirective(node2) {
|
|
36627
|
-
return node2.type === domelementtype_1.ElementType.Directive;
|
|
36628
|
-
}
|
|
36629
|
-
node$1.isDirective = isDirective;
|
|
36630
|
-
function isDocument(node2) {
|
|
36631
|
-
return node2.type === domelementtype_1.ElementType.Root;
|
|
36632
|
-
}
|
|
36633
|
-
node$1.isDocument = isDocument;
|
|
36634
|
-
function hasChildren(node2) {
|
|
36635
|
-
return Object.prototype.hasOwnProperty.call(node2, "children");
|
|
36636
|
-
}
|
|
36637
|
-
node$1.hasChildren = hasChildren;
|
|
36638
|
-
function cloneNode(node2, recursive) {
|
|
36639
|
-
if (recursive === void 0) {
|
|
36640
|
-
recursive = false;
|
|
36432
|
+
return Node2;
|
|
36433
|
+
}()
|
|
36434
|
+
);
|
|
36435
|
+
node$1.Node = Node$1;
|
|
36436
|
+
var DataNode = (
|
|
36437
|
+
/** @class */
|
|
36438
|
+
function(_super) {
|
|
36439
|
+
__extends$5(DataNode2, _super);
|
|
36440
|
+
function DataNode2(type, data2) {
|
|
36441
|
+
var _this = _super.call(this, type) || this;
|
|
36442
|
+
_this.data = data2;
|
|
36443
|
+
return _this;
|
|
36641
36444
|
}
|
|
36642
|
-
|
|
36643
|
-
|
|
36644
|
-
|
|
36645
|
-
|
|
36646
|
-
|
|
36647
|
-
|
|
36648
|
-
|
|
36649
|
-
|
|
36650
|
-
|
|
36651
|
-
|
|
36652
|
-
}
|
|
36653
|
-
|
|
36654
|
-
|
|
36655
|
-
|
|
36656
|
-
|
|
36657
|
-
|
|
36445
|
+
Object.defineProperty(DataNode2.prototype, "nodeValue", {
|
|
36446
|
+
/**
|
|
36447
|
+
* Same as {@link data}.
|
|
36448
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
36449
|
+
*/
|
|
36450
|
+
get: function() {
|
|
36451
|
+
return this.data;
|
|
36452
|
+
},
|
|
36453
|
+
set: function(data2) {
|
|
36454
|
+
this.data = data2;
|
|
36455
|
+
},
|
|
36456
|
+
enumerable: false,
|
|
36457
|
+
configurable: true
|
|
36458
|
+
});
|
|
36459
|
+
return DataNode2;
|
|
36460
|
+
}(Node$1)
|
|
36461
|
+
);
|
|
36462
|
+
node$1.DataNode = DataNode;
|
|
36463
|
+
var Text$2 = (
|
|
36464
|
+
/** @class */
|
|
36465
|
+
function(_super) {
|
|
36466
|
+
__extends$5(Text2, _super);
|
|
36467
|
+
function Text2(data2) {
|
|
36468
|
+
return _super.call(this, domelementtype_1.ElementType.Text, data2) || this;
|
|
36469
|
+
}
|
|
36470
|
+
return Text2;
|
|
36471
|
+
}(DataNode)
|
|
36472
|
+
);
|
|
36473
|
+
node$1.Text = Text$2;
|
|
36474
|
+
var Comment$1 = (
|
|
36475
|
+
/** @class */
|
|
36476
|
+
function(_super) {
|
|
36477
|
+
__extends$5(Comment2, _super);
|
|
36478
|
+
function Comment2(data2) {
|
|
36479
|
+
return _super.call(this, domelementtype_1.ElementType.Comment, data2) || this;
|
|
36480
|
+
}
|
|
36481
|
+
return Comment2;
|
|
36482
|
+
}(DataNode)
|
|
36483
|
+
);
|
|
36484
|
+
node$1.Comment = Comment$1;
|
|
36485
|
+
var ProcessingInstruction$1 = (
|
|
36486
|
+
/** @class */
|
|
36487
|
+
function(_super) {
|
|
36488
|
+
__extends$5(ProcessingInstruction2, _super);
|
|
36489
|
+
function ProcessingInstruction2(name, data2) {
|
|
36490
|
+
var _this = _super.call(this, domelementtype_1.ElementType.Directive, data2) || this;
|
|
36491
|
+
_this.name = name;
|
|
36492
|
+
return _this;
|
|
36493
|
+
}
|
|
36494
|
+
return ProcessingInstruction2;
|
|
36495
|
+
}(DataNode)
|
|
36496
|
+
);
|
|
36497
|
+
node$1.ProcessingInstruction = ProcessingInstruction$1;
|
|
36498
|
+
var NodeWithChildren = (
|
|
36499
|
+
/** @class */
|
|
36500
|
+
function(_super) {
|
|
36501
|
+
__extends$5(NodeWithChildren2, _super);
|
|
36502
|
+
function NodeWithChildren2(type, children) {
|
|
36503
|
+
var _this = _super.call(this, type) || this;
|
|
36504
|
+
_this.children = children;
|
|
36505
|
+
return _this;
|
|
36506
|
+
}
|
|
36507
|
+
Object.defineProperty(NodeWithChildren2.prototype, "firstChild", {
|
|
36508
|
+
// Aliases
|
|
36509
|
+
/** First child of the node. */
|
|
36510
|
+
get: function() {
|
|
36511
|
+
var _a;
|
|
36512
|
+
return (_a = this.children[0]) !== null && _a !== void 0 ? _a : null;
|
|
36513
|
+
},
|
|
36514
|
+
enumerable: false,
|
|
36515
|
+
configurable: true
|
|
36516
|
+
});
|
|
36517
|
+
Object.defineProperty(NodeWithChildren2.prototype, "lastChild", {
|
|
36518
|
+
/** Last child of the node. */
|
|
36519
|
+
get: function() {
|
|
36520
|
+
return this.children.length > 0 ? this.children[this.children.length - 1] : null;
|
|
36521
|
+
},
|
|
36522
|
+
enumerable: false,
|
|
36523
|
+
configurable: true
|
|
36524
|
+
});
|
|
36525
|
+
Object.defineProperty(NodeWithChildren2.prototype, "childNodes", {
|
|
36526
|
+
/**
|
|
36527
|
+
* Same as {@link children}.
|
|
36528
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
36529
|
+
*/
|
|
36530
|
+
get: function() {
|
|
36531
|
+
return this.children;
|
|
36532
|
+
},
|
|
36533
|
+
set: function(children) {
|
|
36534
|
+
this.children = children;
|
|
36535
|
+
},
|
|
36536
|
+
enumerable: false,
|
|
36537
|
+
configurable: true
|
|
36538
|
+
});
|
|
36539
|
+
return NodeWithChildren2;
|
|
36540
|
+
}(Node$1)
|
|
36541
|
+
);
|
|
36542
|
+
node$1.NodeWithChildren = NodeWithChildren;
|
|
36543
|
+
var Document = (
|
|
36544
|
+
/** @class */
|
|
36545
|
+
function(_super) {
|
|
36546
|
+
__extends$5(Document2, _super);
|
|
36547
|
+
function Document2(children) {
|
|
36548
|
+
return _super.call(this, domelementtype_1.ElementType.Root, children) || this;
|
|
36549
|
+
}
|
|
36550
|
+
return Document2;
|
|
36551
|
+
}(NodeWithChildren)
|
|
36552
|
+
);
|
|
36553
|
+
node$1.Document = Document;
|
|
36554
|
+
var Element$2 = (
|
|
36555
|
+
/** @class */
|
|
36556
|
+
function(_super) {
|
|
36557
|
+
__extends$5(Element2, _super);
|
|
36558
|
+
function Element2(name, attribs, children, type) {
|
|
36559
|
+
if (children === void 0) {
|
|
36560
|
+
children = [];
|
|
36658
36561
|
}
|
|
36659
|
-
if (
|
|
36660
|
-
|
|
36562
|
+
if (type === void 0) {
|
|
36563
|
+
type = name === "script" ? domelementtype_1.ElementType.Script : name === "style" ? domelementtype_1.ElementType.Style : domelementtype_1.ElementType.Tag;
|
|
36661
36564
|
}
|
|
36662
|
-
|
|
36663
|
-
|
|
36664
|
-
|
|
36665
|
-
|
|
36666
|
-
children.forEach(function(child) {
|
|
36667
|
-
return child.parent = clone_2;
|
|
36668
|
-
});
|
|
36669
|
-
result = clone_2;
|
|
36670
|
-
} else if (isDocument(node2)) {
|
|
36671
|
-
var children = recursive ? cloneChildren(node2.children) : [];
|
|
36672
|
-
var clone_3 = new Document(children);
|
|
36673
|
-
children.forEach(function(child) {
|
|
36674
|
-
return child.parent = clone_3;
|
|
36675
|
-
});
|
|
36676
|
-
if (node2["x-mode"]) {
|
|
36677
|
-
clone_3["x-mode"] = node2["x-mode"];
|
|
36678
|
-
}
|
|
36679
|
-
result = clone_3;
|
|
36680
|
-
} else if (isDirective(node2)) {
|
|
36681
|
-
var instruction = new ProcessingInstruction2(node2.name, node2.data);
|
|
36682
|
-
if (node2["x-name"] != null) {
|
|
36683
|
-
instruction["x-name"] = node2["x-name"];
|
|
36684
|
-
instruction["x-publicId"] = node2["x-publicId"];
|
|
36685
|
-
instruction["x-systemId"] = node2["x-systemId"];
|
|
36686
|
-
}
|
|
36687
|
-
result = instruction;
|
|
36688
|
-
} else {
|
|
36689
|
-
throw new Error("Not implemented yet: ".concat(node2.type));
|
|
36690
|
-
}
|
|
36691
|
-
result.startIndex = node2.startIndex;
|
|
36692
|
-
result.endIndex = node2.endIndex;
|
|
36693
|
-
if (node2.sourceCodeLocation != null) {
|
|
36694
|
-
result.sourceCodeLocation = node2.sourceCodeLocation;
|
|
36565
|
+
var _this = _super.call(this, type, children) || this;
|
|
36566
|
+
_this.name = name;
|
|
36567
|
+
_this.attribs = attribs;
|
|
36568
|
+
return _this;
|
|
36695
36569
|
}
|
|
36696
|
-
|
|
36570
|
+
Object.defineProperty(Element2.prototype, "tagName", {
|
|
36571
|
+
// DOM Level 1 aliases
|
|
36572
|
+
/**
|
|
36573
|
+
* Same as {@link name}.
|
|
36574
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
36575
|
+
*/
|
|
36576
|
+
get: function() {
|
|
36577
|
+
return this.name;
|
|
36578
|
+
},
|
|
36579
|
+
set: function(name) {
|
|
36580
|
+
this.name = name;
|
|
36581
|
+
},
|
|
36582
|
+
enumerable: false,
|
|
36583
|
+
configurable: true
|
|
36584
|
+
});
|
|
36585
|
+
Object.defineProperty(Element2.prototype, "attributes", {
|
|
36586
|
+
get: function() {
|
|
36587
|
+
var _this = this;
|
|
36588
|
+
return Object.keys(this.attribs).map(function(name) {
|
|
36589
|
+
var _a, _b;
|
|
36590
|
+
return {
|
|
36591
|
+
name,
|
|
36592
|
+
value: _this.attribs[name],
|
|
36593
|
+
namespace: (_a = _this["x-attribsNamespace"]) === null || _a === void 0 ? void 0 : _a[name],
|
|
36594
|
+
prefix: (_b = _this["x-attribsPrefix"]) === null || _b === void 0 ? void 0 : _b[name]
|
|
36595
|
+
};
|
|
36596
|
+
});
|
|
36597
|
+
},
|
|
36598
|
+
enumerable: false,
|
|
36599
|
+
configurable: true
|
|
36600
|
+
});
|
|
36601
|
+
return Element2;
|
|
36602
|
+
}(NodeWithChildren)
|
|
36603
|
+
);
|
|
36604
|
+
node$1.Element = Element$2;
|
|
36605
|
+
function isTag(node2) {
|
|
36606
|
+
return (0, domelementtype_1.isTag)(node2);
|
|
36607
|
+
}
|
|
36608
|
+
node$1.isTag = isTag;
|
|
36609
|
+
function isCDATA(node2) {
|
|
36610
|
+
return node2.type === domelementtype_1.ElementType.CDATA;
|
|
36611
|
+
}
|
|
36612
|
+
node$1.isCDATA = isCDATA;
|
|
36613
|
+
function isText(node2) {
|
|
36614
|
+
return node2.type === domelementtype_1.ElementType.Text;
|
|
36615
|
+
}
|
|
36616
|
+
node$1.isText = isText;
|
|
36617
|
+
function isComment(node2) {
|
|
36618
|
+
return node2.type === domelementtype_1.ElementType.Comment;
|
|
36619
|
+
}
|
|
36620
|
+
node$1.isComment = isComment;
|
|
36621
|
+
function isDirective(node2) {
|
|
36622
|
+
return node2.type === domelementtype_1.ElementType.Directive;
|
|
36623
|
+
}
|
|
36624
|
+
node$1.isDirective = isDirective;
|
|
36625
|
+
function isDocument(node2) {
|
|
36626
|
+
return node2.type === domelementtype_1.ElementType.Root;
|
|
36627
|
+
}
|
|
36628
|
+
node$1.isDocument = isDocument;
|
|
36629
|
+
function hasChildren(node2) {
|
|
36630
|
+
return Object.prototype.hasOwnProperty.call(node2, "children");
|
|
36631
|
+
}
|
|
36632
|
+
node$1.hasChildren = hasChildren;
|
|
36633
|
+
function cloneNode(node2, recursive) {
|
|
36634
|
+
if (recursive === void 0) {
|
|
36635
|
+
recursive = false;
|
|
36697
36636
|
}
|
|
36698
|
-
|
|
36699
|
-
|
|
36700
|
-
|
|
36701
|
-
|
|
36637
|
+
var result;
|
|
36638
|
+
if (isText(node2)) {
|
|
36639
|
+
result = new Text$2(node2.data);
|
|
36640
|
+
} else if (isComment(node2)) {
|
|
36641
|
+
result = new Comment$1(node2.data);
|
|
36642
|
+
} else if (isTag(node2)) {
|
|
36643
|
+
var children = recursive ? cloneChildren(node2.children) : [];
|
|
36644
|
+
var clone_1 = new Element$2(node2.name, __assign$4({}, node2.attribs), children);
|
|
36645
|
+
children.forEach(function(child) {
|
|
36646
|
+
return child.parent = clone_1;
|
|
36702
36647
|
});
|
|
36703
|
-
|
|
36704
|
-
|
|
36705
|
-
children[i2 - 1].next = children[i2];
|
|
36648
|
+
if (node2.namespace != null) {
|
|
36649
|
+
clone_1.namespace = node2.namespace;
|
|
36706
36650
|
}
|
|
36707
|
-
|
|
36651
|
+
if (node2["x-attribsNamespace"]) {
|
|
36652
|
+
clone_1["x-attribsNamespace"] = __assign$4({}, node2["x-attribsNamespace"]);
|
|
36653
|
+
}
|
|
36654
|
+
if (node2["x-attribsPrefix"]) {
|
|
36655
|
+
clone_1["x-attribsPrefix"] = __assign$4({}, node2["x-attribsPrefix"]);
|
|
36656
|
+
}
|
|
36657
|
+
result = clone_1;
|
|
36658
|
+
} else if (isCDATA(node2)) {
|
|
36659
|
+
var children = recursive ? cloneChildren(node2.children) : [];
|
|
36660
|
+
var clone_2 = new NodeWithChildren(domelementtype_1.ElementType.CDATA, children);
|
|
36661
|
+
children.forEach(function(child) {
|
|
36662
|
+
return child.parent = clone_2;
|
|
36663
|
+
});
|
|
36664
|
+
result = clone_2;
|
|
36665
|
+
} else if (isDocument(node2)) {
|
|
36666
|
+
var children = recursive ? cloneChildren(node2.children) : [];
|
|
36667
|
+
var clone_3 = new Document(children);
|
|
36668
|
+
children.forEach(function(child) {
|
|
36669
|
+
return child.parent = clone_3;
|
|
36670
|
+
});
|
|
36671
|
+
if (node2["x-mode"]) {
|
|
36672
|
+
clone_3["x-mode"] = node2["x-mode"];
|
|
36673
|
+
}
|
|
36674
|
+
result = clone_3;
|
|
36675
|
+
} else if (isDirective(node2)) {
|
|
36676
|
+
var instruction = new ProcessingInstruction$1(node2.name, node2.data);
|
|
36677
|
+
if (node2["x-name"] != null) {
|
|
36678
|
+
instruction["x-name"] = node2["x-name"];
|
|
36679
|
+
instruction["x-publicId"] = node2["x-publicId"];
|
|
36680
|
+
instruction["x-systemId"] = node2["x-systemId"];
|
|
36681
|
+
}
|
|
36682
|
+
result = instruction;
|
|
36683
|
+
} else {
|
|
36684
|
+
throw new Error("Not implemented yet: ".concat(node2.type));
|
|
36685
|
+
}
|
|
36686
|
+
result.startIndex = node2.startIndex;
|
|
36687
|
+
result.endIndex = node2.endIndex;
|
|
36688
|
+
if (node2.sourceCodeLocation != null) {
|
|
36689
|
+
result.sourceCodeLocation = node2.sourceCodeLocation;
|
|
36708
36690
|
}
|
|
36709
|
-
return
|
|
36691
|
+
return result;
|
|
36692
|
+
}
|
|
36693
|
+
node$1.cloneNode = cloneNode;
|
|
36694
|
+
function cloneChildren(childs) {
|
|
36695
|
+
var children = childs.map(function(child) {
|
|
36696
|
+
return cloneNode(child, true);
|
|
36697
|
+
});
|
|
36698
|
+
for (var i2 = 1; i2 < children.length; i2++) {
|
|
36699
|
+
children[i2].prev = children[i2 - 1];
|
|
36700
|
+
children[i2 - 1].next = children[i2];
|
|
36701
|
+
}
|
|
36702
|
+
return children;
|
|
36710
36703
|
}
|
|
36711
36704
|
var constants$1 = constants$2;
|
|
36712
|
-
var domhandler =
|
|
36705
|
+
var domhandler = node$1;
|
|
36713
36706
|
var CASE_SENSITIVE_TAG_NAMES = constants$1.CASE_SENSITIVE_TAG_NAMES;
|
|
36714
36707
|
var Comment = domhandler.Comment;
|
|
36715
36708
|
var Element$1 = domhandler.Element;
|
|
@@ -36931,9 +36924,9 @@ function requireLib() {
|
|
|
36931
36924
|
};
|
|
36932
36925
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
36933
36926
|
exports2.DomHandler = void 0;
|
|
36934
|
-
var
|
|
36935
|
-
var node_1 =
|
|
36936
|
-
__exportStar(
|
|
36927
|
+
var domelementtype_12 = requireLib$1();
|
|
36928
|
+
var node_1 = node$1;
|
|
36929
|
+
__exportStar(node$1, exports2);
|
|
36937
36930
|
var reWhitespace2 = /\s+/g;
|
|
36938
36931
|
var defaultOpts = {
|
|
36939
36932
|
normalizeWhitespace: false,
|
|
@@ -36994,7 +36987,7 @@ function requireLib() {
|
|
|
36994
36987
|
this.elementCB(elem);
|
|
36995
36988
|
};
|
|
36996
36989
|
DomHandler2.prototype.onopentag = function(name, attribs) {
|
|
36997
|
-
var type = this.options.xmlMode ?
|
|
36990
|
+
var type = this.options.xmlMode ? domelementtype_12.ElementType.Tag : void 0;
|
|
36998
36991
|
var element = new node_1.Element(name, attribs, void 0, type);
|
|
36999
36992
|
this.addNode(element);
|
|
37000
36993
|
this.tagStack.push(element);
|
|
@@ -37002,7 +36995,7 @@ function requireLib() {
|
|
|
37002
36995
|
DomHandler2.prototype.ontext = function(data2) {
|
|
37003
36996
|
var normalizeWhitespace = this.options.normalizeWhitespace;
|
|
37004
36997
|
var lastNode = this.lastNode;
|
|
37005
|
-
if (lastNode && lastNode.type ===
|
|
36998
|
+
if (lastNode && lastNode.type === domelementtype_12.ElementType.Text) {
|
|
37006
36999
|
if (normalizeWhitespace) {
|
|
37007
37000
|
lastNode.data = (lastNode.data + data2).replace(reWhitespace2, " ");
|
|
37008
37001
|
} else {
|
|
@@ -37021,7 +37014,7 @@ function requireLib() {
|
|
|
37021
37014
|
}
|
|
37022
37015
|
};
|
|
37023
37016
|
DomHandler2.prototype.oncomment = function(data2) {
|
|
37024
|
-
if (this.lastNode && this.lastNode.type ===
|
|
37017
|
+
if (this.lastNode && this.lastNode.type === domelementtype_12.ElementType.Comment) {
|
|
37025
37018
|
this.lastNode.data += data2;
|
|
37026
37019
|
return;
|
|
37027
37020
|
}
|
|
@@ -37034,7 +37027,7 @@ function requireLib() {
|
|
|
37034
37027
|
};
|
|
37035
37028
|
DomHandler2.prototype.oncdatastart = function() {
|
|
37036
37029
|
var text2 = new node_1.Text("");
|
|
37037
|
-
var node2 = new node_1.NodeWithChildren(
|
|
37030
|
+
var node2 = new node_1.NodeWithChildren(domelementtype_12.ElementType.CDATA, [text2]);
|
|
37038
37031
|
this.addNode(node2);
|
|
37039
37032
|
text2.parent = node2;
|
|
37040
37033
|
this.lastNode = text2;
|
|
@@ -39050,7 +39043,15 @@ if (process.env.NODE_ENV === "production") {
|
|
|
39050
39043
|
m$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
39051
39044
|
}
|
|
39052
39045
|
const checkUserRole = (p_user, p_role) => {
|
|
39053
|
-
|
|
39046
|
+
var _a, _b;
|
|
39047
|
+
if (p_user === null) {
|
|
39048
|
+
return false;
|
|
39049
|
+
}
|
|
39050
|
+
const userRole = ((_b = (_a = p_user == null ? void 0 : p_user.appUser) == null ? void 0 : _a.roles) == null ? void 0 : _b.length) ? p_user.appUser.roles : ["user"];
|
|
39051
|
+
if (userRole) {
|
|
39052
|
+
return userRole.includes(p_role);
|
|
39053
|
+
}
|
|
39054
|
+
return false;
|
|
39054
39055
|
};
|
|
39055
39056
|
const autoFormatValue = (p_value) => {
|
|
39056
39057
|
let r_value = p_value;
|
|
@@ -39772,7 +39773,7 @@ const Field = forwardRef(({ field, children }, ref2) => {
|
|
|
39772
39773
|
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
39773
39774
|
const [renderCounter, setRenderCounter] = useState(0);
|
|
39774
39775
|
let previousFocusedElement = null;
|
|
39775
|
-
const isUserAdmin = checkUserRole(field.formManager.options.user);
|
|
39776
|
+
const isUserAdmin = checkUserRole(field.formManager.options.user, "admin");
|
|
39776
39777
|
useImperativeHandle(ref2, () => ({
|
|
39777
39778
|
updateField: () => {
|
|
39778
39779
|
previousFocusedElement = document.activeElement;
|
|
@@ -100407,10 +100408,10 @@ var ace$3 = { exports: {} };
|
|
|
100407
100408
|
var EventEmitter = require2("./lib/event_emitter").EventEmitter;
|
|
100408
100409
|
var Range = require2("./range").Range;
|
|
100409
100410
|
var Anchor = require2("./anchor").Anchor;
|
|
100410
|
-
var
|
|
100411
|
+
var Document2 = (
|
|
100411
100412
|
/** @class */
|
|
100412
100413
|
function() {
|
|
100413
|
-
function
|
|
100414
|
+
function Document3(textOrLines) {
|
|
100414
100415
|
this.$lines = [""];
|
|
100415
100416
|
if (textOrLines.length === 0) {
|
|
100416
100417
|
this.$lines = [""];
|
|
@@ -100420,23 +100421,23 @@ var ace$3 = { exports: {} };
|
|
|
100420
100421
|
this.insert({ row: 0, column: 0 }, textOrLines);
|
|
100421
100422
|
}
|
|
100422
100423
|
}
|
|
100423
|
-
|
|
100424
|
+
Document3.prototype.setValue = function(text2) {
|
|
100424
100425
|
var len = this.getLength() - 1;
|
|
100425
100426
|
this.remove(new Range(0, 0, len, this.getLine(len).length));
|
|
100426
100427
|
this.insert({ row: 0, column: 0 }, text2 || "");
|
|
100427
100428
|
};
|
|
100428
|
-
|
|
100429
|
+
Document3.prototype.getValue = function() {
|
|
100429
100430
|
return this.getAllLines().join(this.getNewLineCharacter());
|
|
100430
100431
|
};
|
|
100431
|
-
|
|
100432
|
+
Document3.prototype.createAnchor = function(row, column2) {
|
|
100432
100433
|
return new Anchor(this, row, column2);
|
|
100433
100434
|
};
|
|
100434
|
-
|
|
100435
|
+
Document3.prototype.$detectNewLine = function(text2) {
|
|
100435
100436
|
var match2 = text2.match(/^.*?(\r\n|\r|\n)/m);
|
|
100436
100437
|
this.$autoNewLine = match2 ? match2[1] : "\n";
|
|
100437
100438
|
this._signal("changeNewLineMode");
|
|
100438
100439
|
};
|
|
100439
|
-
|
|
100440
|
+
Document3.prototype.getNewLineCharacter = function() {
|
|
100440
100441
|
switch (this.$newLineMode) {
|
|
100441
100442
|
case "windows":
|
|
100442
100443
|
return "\r\n";
|
|
@@ -100446,34 +100447,34 @@ var ace$3 = { exports: {} };
|
|
|
100446
100447
|
return this.$autoNewLine || "\n";
|
|
100447
100448
|
}
|
|
100448
100449
|
};
|
|
100449
|
-
|
|
100450
|
+
Document3.prototype.setNewLineMode = function(newLineMode) {
|
|
100450
100451
|
if (this.$newLineMode === newLineMode)
|
|
100451
100452
|
return;
|
|
100452
100453
|
this.$newLineMode = newLineMode;
|
|
100453
100454
|
this._signal("changeNewLineMode");
|
|
100454
100455
|
};
|
|
100455
|
-
|
|
100456
|
+
Document3.prototype.getNewLineMode = function() {
|
|
100456
100457
|
return this.$newLineMode;
|
|
100457
100458
|
};
|
|
100458
|
-
|
|
100459
|
+
Document3.prototype.isNewLine = function(text2) {
|
|
100459
100460
|
return text2 == "\r\n" || text2 == "\r" || text2 == "\n";
|
|
100460
100461
|
};
|
|
100461
|
-
|
|
100462
|
+
Document3.prototype.getLine = function(row) {
|
|
100462
100463
|
return this.$lines[row] || "";
|
|
100463
100464
|
};
|
|
100464
|
-
|
|
100465
|
+
Document3.prototype.getLines = function(firstRow, lastRow) {
|
|
100465
100466
|
return this.$lines.slice(firstRow, lastRow + 1);
|
|
100466
100467
|
};
|
|
100467
|
-
|
|
100468
|
+
Document3.prototype.getAllLines = function() {
|
|
100468
100469
|
return this.getLines(0, this.getLength());
|
|
100469
100470
|
};
|
|
100470
|
-
|
|
100471
|
+
Document3.prototype.getLength = function() {
|
|
100471
100472
|
return this.$lines.length;
|
|
100472
100473
|
};
|
|
100473
|
-
|
|
100474
|
+
Document3.prototype.getTextRange = function(range) {
|
|
100474
100475
|
return this.getLinesForRange(range).join(this.getNewLineCharacter());
|
|
100475
100476
|
};
|
|
100476
|
-
|
|
100477
|
+
Document3.prototype.getLinesForRange = function(range) {
|
|
100477
100478
|
var lines;
|
|
100478
100479
|
if (range.start.row === range.end.row) {
|
|
100479
100480
|
lines = [this.getLine(range.start.row).substring(range.start.column, range.end.column)];
|
|
@@ -100486,24 +100487,24 @@ var ace$3 = { exports: {} };
|
|
|
100486
100487
|
}
|
|
100487
100488
|
return lines;
|
|
100488
100489
|
};
|
|
100489
|
-
|
|
100490
|
+
Document3.prototype.insertLines = function(row, lines) {
|
|
100490
100491
|
console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead.");
|
|
100491
100492
|
return this.insertFullLines(row, lines);
|
|
100492
100493
|
};
|
|
100493
|
-
|
|
100494
|
+
Document3.prototype.removeLines = function(firstRow, lastRow) {
|
|
100494
100495
|
console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead.");
|
|
100495
100496
|
return this.removeFullLines(firstRow, lastRow);
|
|
100496
100497
|
};
|
|
100497
|
-
|
|
100498
|
+
Document3.prototype.insertNewLine = function(position3) {
|
|
100498
100499
|
console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.");
|
|
100499
100500
|
return this.insertMergedLines(position3, ["", ""]);
|
|
100500
100501
|
};
|
|
100501
|
-
|
|
100502
|
+
Document3.prototype.insert = function(position3, text2) {
|
|
100502
100503
|
if (this.getLength() <= 1)
|
|
100503
100504
|
this.$detectNewLine(text2);
|
|
100504
100505
|
return this.insertMergedLines(position3, this.$split(text2));
|
|
100505
100506
|
};
|
|
100506
|
-
|
|
100507
|
+
Document3.prototype.insertInLine = function(position3, text2) {
|
|
100507
100508
|
var start3 = this.clippedPos(position3.row, position3.column);
|
|
100508
100509
|
var end2 = this.pos(position3.row, position3.column + text2.length);
|
|
100509
100510
|
this.applyDelta({
|
|
@@ -100514,7 +100515,7 @@ var ace$3 = { exports: {} };
|
|
|
100514
100515
|
}, true);
|
|
100515
100516
|
return this.clonePos(end2);
|
|
100516
100517
|
};
|
|
100517
|
-
|
|
100518
|
+
Document3.prototype.clippedPos = function(row, column2) {
|
|
100518
100519
|
var length2 = this.getLength();
|
|
100519
100520
|
if (row === void 0) {
|
|
100520
100521
|
row = length2;
|
|
@@ -100530,13 +100531,13 @@ var ace$3 = { exports: {} };
|
|
|
100530
100531
|
column2 = Math.min(Math.max(column2, 0), line2.length);
|
|
100531
100532
|
return { row, column: column2 };
|
|
100532
100533
|
};
|
|
100533
|
-
|
|
100534
|
+
Document3.prototype.clonePos = function(pos) {
|
|
100534
100535
|
return { row: pos.row, column: pos.column };
|
|
100535
100536
|
};
|
|
100536
|
-
|
|
100537
|
+
Document3.prototype.pos = function(row, column2) {
|
|
100537
100538
|
return { row, column: column2 };
|
|
100538
100539
|
};
|
|
100539
|
-
|
|
100540
|
+
Document3.prototype.$clipPosition = function(position3) {
|
|
100540
100541
|
var length2 = this.getLength();
|
|
100541
100542
|
if (position3.row >= length2) {
|
|
100542
100543
|
position3.row = Math.max(0, length2 - 1);
|
|
@@ -100547,7 +100548,7 @@ var ace$3 = { exports: {} };
|
|
|
100547
100548
|
}
|
|
100548
100549
|
return position3;
|
|
100549
100550
|
};
|
|
100550
|
-
|
|
100551
|
+
Document3.prototype.insertFullLines = function(row, lines) {
|
|
100551
100552
|
row = Math.min(Math.max(row, 0), this.getLength());
|
|
100552
100553
|
var column2 = 0;
|
|
100553
100554
|
if (row < this.getLength()) {
|
|
@@ -100560,7 +100561,7 @@ var ace$3 = { exports: {} };
|
|
|
100560
100561
|
}
|
|
100561
100562
|
this.insertMergedLines({ row, column: column2 }, lines);
|
|
100562
100563
|
};
|
|
100563
|
-
|
|
100564
|
+
Document3.prototype.insertMergedLines = function(position3, lines) {
|
|
100564
100565
|
var start3 = this.clippedPos(position3.row, position3.column);
|
|
100565
100566
|
var end2 = {
|
|
100566
100567
|
row: start3.row + lines.length - 1,
|
|
@@ -100574,7 +100575,7 @@ var ace$3 = { exports: {} };
|
|
|
100574
100575
|
});
|
|
100575
100576
|
return this.clonePos(end2);
|
|
100576
100577
|
};
|
|
100577
|
-
|
|
100578
|
+
Document3.prototype.remove = function(range) {
|
|
100578
100579
|
var start3 = this.clippedPos(range.start.row, range.start.column);
|
|
100579
100580
|
var end2 = this.clippedPos(range.end.row, range.end.column);
|
|
100580
100581
|
this.applyDelta({
|
|
@@ -100585,7 +100586,7 @@ var ace$3 = { exports: {} };
|
|
|
100585
100586
|
});
|
|
100586
100587
|
return this.clonePos(start3);
|
|
100587
100588
|
};
|
|
100588
|
-
|
|
100589
|
+
Document3.prototype.removeInLine = function(row, startColumn, endColumn) {
|
|
100589
100590
|
var start3 = this.clippedPos(row, startColumn);
|
|
100590
100591
|
var end2 = this.clippedPos(row, endColumn);
|
|
100591
100592
|
this.applyDelta({
|
|
@@ -100596,7 +100597,7 @@ var ace$3 = { exports: {} };
|
|
|
100596
100597
|
}, true);
|
|
100597
100598
|
return this.clonePos(start3);
|
|
100598
100599
|
};
|
|
100599
|
-
|
|
100600
|
+
Document3.prototype.removeFullLines = function(firstRow, lastRow) {
|
|
100600
100601
|
firstRow = Math.min(Math.max(0, firstRow), this.getLength() - 1);
|
|
100601
100602
|
lastRow = Math.min(Math.max(0, lastRow), this.getLength() - 1);
|
|
100602
100603
|
var deleteFirstNewLine = lastRow == this.getLength() - 1 && firstRow > 0;
|
|
@@ -100615,7 +100616,7 @@ var ace$3 = { exports: {} };
|
|
|
100615
100616
|
});
|
|
100616
100617
|
return deletedLines;
|
|
100617
100618
|
};
|
|
100618
|
-
|
|
100619
|
+
Document3.prototype.removeNewLine = function(row) {
|
|
100619
100620
|
if (row < this.getLength() - 1 && row >= 0) {
|
|
100620
100621
|
this.applyDelta({
|
|
100621
100622
|
start: this.pos(row, this.getLine(row).length),
|
|
@@ -100625,7 +100626,7 @@ var ace$3 = { exports: {} };
|
|
|
100625
100626
|
});
|
|
100626
100627
|
}
|
|
100627
100628
|
};
|
|
100628
|
-
|
|
100629
|
+
Document3.prototype.replace = function(range, text2) {
|
|
100629
100630
|
if (!(range instanceof Range))
|
|
100630
100631
|
range = Range.fromPoints(range.start, range.end);
|
|
100631
100632
|
if (text2.length === 0 && range.isEmpty())
|
|
@@ -100641,17 +100642,17 @@ var ace$3 = { exports: {} };
|
|
|
100641
100642
|
}
|
|
100642
100643
|
return end2;
|
|
100643
100644
|
};
|
|
100644
|
-
|
|
100645
|
+
Document3.prototype.applyDeltas = function(deltas) {
|
|
100645
100646
|
for (var i2 = 0; i2 < deltas.length; i2++) {
|
|
100646
100647
|
this.applyDelta(deltas[i2]);
|
|
100647
100648
|
}
|
|
100648
100649
|
};
|
|
100649
|
-
|
|
100650
|
+
Document3.prototype.revertDeltas = function(deltas) {
|
|
100650
100651
|
for (var i2 = deltas.length - 1; i2 >= 0; i2--) {
|
|
100651
100652
|
this.revertDelta(deltas[i2]);
|
|
100652
100653
|
}
|
|
100653
100654
|
};
|
|
100654
|
-
|
|
100655
|
+
Document3.prototype.applyDelta = function(delta, doNotValidate) {
|
|
100655
100656
|
var isInsert = delta.action == "insert";
|
|
100656
100657
|
if (isInsert ? delta.lines.length <= 1 && !delta.lines[0] : !Range.comparePoints(delta.start, delta.end)) {
|
|
100657
100658
|
return;
|
|
@@ -100663,13 +100664,13 @@ var ace$3 = { exports: {} };
|
|
|
100663
100664
|
this._signal("change", delta);
|
|
100664
100665
|
}
|
|
100665
100666
|
};
|
|
100666
|
-
|
|
100667
|
+
Document3.prototype.$safeApplyDelta = function(delta) {
|
|
100667
100668
|
var docLength = this.$lines.length;
|
|
100668
100669
|
if (delta.action == "remove" && delta.start.row < docLength && delta.end.row < docLength || delta.action == "insert" && delta.start.row <= docLength) {
|
|
100669
100670
|
this.applyDelta(delta);
|
|
100670
100671
|
}
|
|
100671
100672
|
};
|
|
100672
|
-
|
|
100673
|
+
Document3.prototype.$splitAndapplyLargeDelta = function(delta, MAX) {
|
|
100673
100674
|
var lines = delta.lines;
|
|
100674
100675
|
var l2 = lines.length - MAX + 1;
|
|
100675
100676
|
var row = delta.start.row;
|
|
@@ -100690,7 +100691,7 @@ var ace$3 = { exports: {} };
|
|
|
100690
100691
|
delta.start.column = column2;
|
|
100691
100692
|
this.applyDelta(delta, true);
|
|
100692
100693
|
};
|
|
100693
|
-
|
|
100694
|
+
Document3.prototype.revertDelta = function(delta) {
|
|
100694
100695
|
this.$safeApplyDelta({
|
|
100695
100696
|
start: this.clonePos(delta.start),
|
|
100696
100697
|
end: this.clonePos(delta.end),
|
|
@@ -100698,7 +100699,7 @@ var ace$3 = { exports: {} };
|
|
|
100698
100699
|
lines: delta.lines.slice()
|
|
100699
100700
|
});
|
|
100700
100701
|
};
|
|
100701
|
-
|
|
100702
|
+
Document3.prototype.indexToPosition = function(index2, startRow) {
|
|
100702
100703
|
var lines = this.$lines || this.getAllLines();
|
|
100703
100704
|
var newlineLength = this.getNewLineCharacter().length;
|
|
100704
100705
|
for (var i2 = startRow || 0, l2 = lines.length; i2 < l2; i2++) {
|
|
@@ -100708,7 +100709,7 @@ var ace$3 = { exports: {} };
|
|
|
100708
100709
|
}
|
|
100709
100710
|
return { row: l2 - 1, column: index2 + lines[l2 - 1].length + newlineLength };
|
|
100710
100711
|
};
|
|
100711
|
-
|
|
100712
|
+
Document3.prototype.positionToIndex = function(pos, startRow) {
|
|
100712
100713
|
var lines = this.$lines || this.getAllLines();
|
|
100713
100714
|
var newlineLength = this.getNewLineCharacter().length;
|
|
100714
100715
|
var index2 = 0;
|
|
@@ -100717,16 +100718,16 @@ var ace$3 = { exports: {} };
|
|
|
100717
100718
|
index2 += lines[i2].length + newlineLength;
|
|
100718
100719
|
return index2 + pos.column;
|
|
100719
100720
|
};
|
|
100720
|
-
|
|
100721
|
+
Document3.prototype.$split = function(text2) {
|
|
100721
100722
|
return text2.split(/\r\n|\r|\n/);
|
|
100722
100723
|
};
|
|
100723
|
-
return
|
|
100724
|
+
return Document3;
|
|
100724
100725
|
}()
|
|
100725
100726
|
);
|
|
100726
|
-
|
|
100727
|
-
|
|
100728
|
-
oop.implement(
|
|
100729
|
-
exports3.Document =
|
|
100727
|
+
Document2.prototype.$autoNewLine = "";
|
|
100728
|
+
Document2.prototype.$newLineMode = "auto";
|
|
100729
|
+
oop.implement(Document2.prototype, EventEmitter);
|
|
100730
|
+
exports3.Document = Document2;
|
|
100730
100731
|
});
|
|
100731
100732
|
ace.define("ace/background_tokenizer", ["require", "exports", "module", "ace/lib/oop", "ace/lib/event_emitter"], function(require2, exports3, module3) {
|
|
100732
100733
|
var oop = require2("./lib/oop");
|
|
@@ -102852,7 +102853,7 @@ var ace$3 = { exports: {} };
|
|
|
102852
102853
|
var Selection = require2("./selection").Selection;
|
|
102853
102854
|
var TextMode = require2("./mode/text").Mode;
|
|
102854
102855
|
var Range = require2("./range").Range;
|
|
102855
|
-
var
|
|
102856
|
+
var Document2 = require2("./document").Document;
|
|
102856
102857
|
var BackgroundTokenizer = require2("./background_tokenizer").BackgroundTokenizer;
|
|
102857
102858
|
var SearchHighlight = require2("./search_highlight").SearchHighlight;
|
|
102858
102859
|
var UndoManager = require2("./undomanager").UndoManager;
|
|
@@ -102879,7 +102880,7 @@ var ace$3 = { exports: {} };
|
|
|
102879
102880
|
this.on("changeFold", this.onChangeFold.bind(this));
|
|
102880
102881
|
this.$onChange = this.onChange.bind(this);
|
|
102881
102882
|
if (typeof text2 != "object" || !text2.getLine)
|
|
102882
|
-
text2 = new
|
|
102883
|
+
text2 = new Document2(text2);
|
|
102883
102884
|
this.setDocument(text2);
|
|
102884
102885
|
this.selection = new Selection(this);
|
|
102885
102886
|
this.$bidiHandler = new BidiHandler(this);
|
|
@@ -118552,10 +118553,10 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118552
118553
|
var EventEmitter = require2("./lib/event_emitter").EventEmitter;
|
|
118553
118554
|
var Range = require2("./range").Range;
|
|
118554
118555
|
var Anchor = require2("./anchor").Anchor;
|
|
118555
|
-
var
|
|
118556
|
+
var Document2 = (
|
|
118556
118557
|
/** @class */
|
|
118557
118558
|
function() {
|
|
118558
|
-
function
|
|
118559
|
+
function Document3(textOrLines) {
|
|
118559
118560
|
this.$lines = [""];
|
|
118560
118561
|
if (textOrLines.length === 0) {
|
|
118561
118562
|
this.$lines = [""];
|
|
@@ -118565,23 +118566,23 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118565
118566
|
this.insert({ row: 0, column: 0 }, textOrLines);
|
|
118566
118567
|
}
|
|
118567
118568
|
}
|
|
118568
|
-
|
|
118569
|
+
Document3.prototype.setValue = function(text2) {
|
|
118569
118570
|
var len = this.getLength() - 1;
|
|
118570
118571
|
this.remove(new Range(0, 0, len, this.getLine(len).length));
|
|
118571
118572
|
this.insert({ row: 0, column: 0 }, text2 || "");
|
|
118572
118573
|
};
|
|
118573
|
-
|
|
118574
|
+
Document3.prototype.getValue = function() {
|
|
118574
118575
|
return this.getAllLines().join(this.getNewLineCharacter());
|
|
118575
118576
|
};
|
|
118576
|
-
|
|
118577
|
+
Document3.prototype.createAnchor = function(row, column2) {
|
|
118577
118578
|
return new Anchor(this, row, column2);
|
|
118578
118579
|
};
|
|
118579
|
-
|
|
118580
|
+
Document3.prototype.$detectNewLine = function(text2) {
|
|
118580
118581
|
var match2 = text2.match(/^.*?(\r\n|\r|\n)/m);
|
|
118581
118582
|
this.$autoNewLine = match2 ? match2[1] : "\n";
|
|
118582
118583
|
this._signal("changeNewLineMode");
|
|
118583
118584
|
};
|
|
118584
|
-
|
|
118585
|
+
Document3.prototype.getNewLineCharacter = function() {
|
|
118585
118586
|
switch (this.$newLineMode) {
|
|
118586
118587
|
case "windows":
|
|
118587
118588
|
return "\r\n";
|
|
@@ -118591,34 +118592,34 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118591
118592
|
return this.$autoNewLine || "\n";
|
|
118592
118593
|
}
|
|
118593
118594
|
};
|
|
118594
|
-
|
|
118595
|
+
Document3.prototype.setNewLineMode = function(newLineMode) {
|
|
118595
118596
|
if (this.$newLineMode === newLineMode)
|
|
118596
118597
|
return;
|
|
118597
118598
|
this.$newLineMode = newLineMode;
|
|
118598
118599
|
this._signal("changeNewLineMode");
|
|
118599
118600
|
};
|
|
118600
|
-
|
|
118601
|
+
Document3.prototype.getNewLineMode = function() {
|
|
118601
118602
|
return this.$newLineMode;
|
|
118602
118603
|
};
|
|
118603
|
-
|
|
118604
|
+
Document3.prototype.isNewLine = function(text2) {
|
|
118604
118605
|
return text2 == "\r\n" || text2 == "\r" || text2 == "\n";
|
|
118605
118606
|
};
|
|
118606
|
-
|
|
118607
|
+
Document3.prototype.getLine = function(row) {
|
|
118607
118608
|
return this.$lines[row] || "";
|
|
118608
118609
|
};
|
|
118609
|
-
|
|
118610
|
+
Document3.prototype.getLines = function(firstRow, lastRow) {
|
|
118610
118611
|
return this.$lines.slice(firstRow, lastRow + 1);
|
|
118611
118612
|
};
|
|
118612
|
-
|
|
118613
|
+
Document3.prototype.getAllLines = function() {
|
|
118613
118614
|
return this.getLines(0, this.getLength());
|
|
118614
118615
|
};
|
|
118615
|
-
|
|
118616
|
+
Document3.prototype.getLength = function() {
|
|
118616
118617
|
return this.$lines.length;
|
|
118617
118618
|
};
|
|
118618
|
-
|
|
118619
|
+
Document3.prototype.getTextRange = function(range) {
|
|
118619
118620
|
return this.getLinesForRange(range).join(this.getNewLineCharacter());
|
|
118620
118621
|
};
|
|
118621
|
-
|
|
118622
|
+
Document3.prototype.getLinesForRange = function(range) {
|
|
118622
118623
|
var lines;
|
|
118623
118624
|
if (range.start.row === range.end.row) {
|
|
118624
118625
|
lines = [this.getLine(range.start.row).substring(range.start.column, range.end.column)];
|
|
@@ -118631,24 +118632,24 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118631
118632
|
}
|
|
118632
118633
|
return lines;
|
|
118633
118634
|
};
|
|
118634
|
-
|
|
118635
|
+
Document3.prototype.insertLines = function(row, lines) {
|
|
118635
118636
|
console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead.");
|
|
118636
118637
|
return this.insertFullLines(row, lines);
|
|
118637
118638
|
};
|
|
118638
|
-
|
|
118639
|
+
Document3.prototype.removeLines = function(firstRow, lastRow) {
|
|
118639
118640
|
console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead.");
|
|
118640
118641
|
return this.removeFullLines(firstRow, lastRow);
|
|
118641
118642
|
};
|
|
118642
|
-
|
|
118643
|
+
Document3.prototype.insertNewLine = function(position3) {
|
|
118643
118644
|
console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.");
|
|
118644
118645
|
return this.insertMergedLines(position3, ["", ""]);
|
|
118645
118646
|
};
|
|
118646
|
-
|
|
118647
|
+
Document3.prototype.insert = function(position3, text2) {
|
|
118647
118648
|
if (this.getLength() <= 1)
|
|
118648
118649
|
this.$detectNewLine(text2);
|
|
118649
118650
|
return this.insertMergedLines(position3, this.$split(text2));
|
|
118650
118651
|
};
|
|
118651
|
-
|
|
118652
|
+
Document3.prototype.insertInLine = function(position3, text2) {
|
|
118652
118653
|
var start3 = this.clippedPos(position3.row, position3.column);
|
|
118653
118654
|
var end2 = this.pos(position3.row, position3.column + text2.length);
|
|
118654
118655
|
this.applyDelta({
|
|
@@ -118659,7 +118660,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118659
118660
|
}, true);
|
|
118660
118661
|
return this.clonePos(end2);
|
|
118661
118662
|
};
|
|
118662
|
-
|
|
118663
|
+
Document3.prototype.clippedPos = function(row, column2) {
|
|
118663
118664
|
var length2 = this.getLength();
|
|
118664
118665
|
if (row === void 0) {
|
|
118665
118666
|
row = length2;
|
|
@@ -118675,13 +118676,13 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118675
118676
|
column2 = Math.min(Math.max(column2, 0), line2.length);
|
|
118676
118677
|
return { row, column: column2 };
|
|
118677
118678
|
};
|
|
118678
|
-
|
|
118679
|
+
Document3.prototype.clonePos = function(pos) {
|
|
118679
118680
|
return { row: pos.row, column: pos.column };
|
|
118680
118681
|
};
|
|
118681
|
-
|
|
118682
|
+
Document3.prototype.pos = function(row, column2) {
|
|
118682
118683
|
return { row, column: column2 };
|
|
118683
118684
|
};
|
|
118684
|
-
|
|
118685
|
+
Document3.prototype.$clipPosition = function(position3) {
|
|
118685
118686
|
var length2 = this.getLength();
|
|
118686
118687
|
if (position3.row >= length2) {
|
|
118687
118688
|
position3.row = Math.max(0, length2 - 1);
|
|
@@ -118692,7 +118693,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118692
118693
|
}
|
|
118693
118694
|
return position3;
|
|
118694
118695
|
};
|
|
118695
|
-
|
|
118696
|
+
Document3.prototype.insertFullLines = function(row, lines) {
|
|
118696
118697
|
row = Math.min(Math.max(row, 0), this.getLength());
|
|
118697
118698
|
var column2 = 0;
|
|
118698
118699
|
if (row < this.getLength()) {
|
|
@@ -118705,7 +118706,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118705
118706
|
}
|
|
118706
118707
|
this.insertMergedLines({ row, column: column2 }, lines);
|
|
118707
118708
|
};
|
|
118708
|
-
|
|
118709
|
+
Document3.prototype.insertMergedLines = function(position3, lines) {
|
|
118709
118710
|
var start3 = this.clippedPos(position3.row, position3.column);
|
|
118710
118711
|
var end2 = {
|
|
118711
118712
|
row: start3.row + lines.length - 1,
|
|
@@ -118719,7 +118720,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118719
118720
|
});
|
|
118720
118721
|
return this.clonePos(end2);
|
|
118721
118722
|
};
|
|
118722
|
-
|
|
118723
|
+
Document3.prototype.remove = function(range) {
|
|
118723
118724
|
var start3 = this.clippedPos(range.start.row, range.start.column);
|
|
118724
118725
|
var end2 = this.clippedPos(range.end.row, range.end.column);
|
|
118725
118726
|
this.applyDelta({
|
|
@@ -118730,7 +118731,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118730
118731
|
});
|
|
118731
118732
|
return this.clonePos(start3);
|
|
118732
118733
|
};
|
|
118733
|
-
|
|
118734
|
+
Document3.prototype.removeInLine = function(row, startColumn, endColumn) {
|
|
118734
118735
|
var start3 = this.clippedPos(row, startColumn);
|
|
118735
118736
|
var end2 = this.clippedPos(row, endColumn);
|
|
118736
118737
|
this.applyDelta({
|
|
@@ -118741,7 +118742,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118741
118742
|
}, true);
|
|
118742
118743
|
return this.clonePos(start3);
|
|
118743
118744
|
};
|
|
118744
|
-
|
|
118745
|
+
Document3.prototype.removeFullLines = function(firstRow, lastRow) {
|
|
118745
118746
|
firstRow = Math.min(Math.max(0, firstRow), this.getLength() - 1);
|
|
118746
118747
|
lastRow = Math.min(Math.max(0, lastRow), this.getLength() - 1);
|
|
118747
118748
|
var deleteFirstNewLine = lastRow == this.getLength() - 1 && firstRow > 0;
|
|
@@ -118760,7 +118761,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118760
118761
|
});
|
|
118761
118762
|
return deletedLines;
|
|
118762
118763
|
};
|
|
118763
|
-
|
|
118764
|
+
Document3.prototype.removeNewLine = function(row) {
|
|
118764
118765
|
if (row < this.getLength() - 1 && row >= 0) {
|
|
118765
118766
|
this.applyDelta({
|
|
118766
118767
|
start: this.pos(row, this.getLine(row).length),
|
|
@@ -118770,7 +118771,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118770
118771
|
});
|
|
118771
118772
|
}
|
|
118772
118773
|
};
|
|
118773
|
-
|
|
118774
|
+
Document3.prototype.replace = function(range, text2) {
|
|
118774
118775
|
if (!(range instanceof Range))
|
|
118775
118776
|
range = Range.fromPoints(range.start, range.end);
|
|
118776
118777
|
if (text2.length === 0 && range.isEmpty())
|
|
@@ -118786,17 +118787,17 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118786
118787
|
}
|
|
118787
118788
|
return end2;
|
|
118788
118789
|
};
|
|
118789
|
-
|
|
118790
|
+
Document3.prototype.applyDeltas = function(deltas) {
|
|
118790
118791
|
for (var i2 = 0; i2 < deltas.length; i2++) {
|
|
118791
118792
|
this.applyDelta(deltas[i2]);
|
|
118792
118793
|
}
|
|
118793
118794
|
};
|
|
118794
|
-
|
|
118795
|
+
Document3.prototype.revertDeltas = function(deltas) {
|
|
118795
118796
|
for (var i2 = deltas.length - 1; i2 >= 0; i2--) {
|
|
118796
118797
|
this.revertDelta(deltas[i2]);
|
|
118797
118798
|
}
|
|
118798
118799
|
};
|
|
118799
|
-
|
|
118800
|
+
Document3.prototype.applyDelta = function(delta, doNotValidate) {
|
|
118800
118801
|
var isInsert = delta.action == "insert";
|
|
118801
118802
|
if (isInsert ? delta.lines.length <= 1 && !delta.lines[0] : !Range.comparePoints(delta.start, delta.end)) {
|
|
118802
118803
|
return;
|
|
@@ -118808,13 +118809,13 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118808
118809
|
this._signal("change", delta);
|
|
118809
118810
|
}
|
|
118810
118811
|
};
|
|
118811
|
-
|
|
118812
|
+
Document3.prototype.$safeApplyDelta = function(delta) {
|
|
118812
118813
|
var docLength = this.$lines.length;
|
|
118813
118814
|
if (delta.action == "remove" && delta.start.row < docLength && delta.end.row < docLength || delta.action == "insert" && delta.start.row <= docLength) {
|
|
118814
118815
|
this.applyDelta(delta);
|
|
118815
118816
|
}
|
|
118816
118817
|
};
|
|
118817
|
-
|
|
118818
|
+
Document3.prototype.$splitAndapplyLargeDelta = function(delta, MAX) {
|
|
118818
118819
|
var lines = delta.lines;
|
|
118819
118820
|
var l2 = lines.length - MAX + 1;
|
|
118820
118821
|
var row = delta.start.row;
|
|
@@ -118835,7 +118836,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118835
118836
|
delta.start.column = column2;
|
|
118836
118837
|
this.applyDelta(delta, true);
|
|
118837
118838
|
};
|
|
118838
|
-
|
|
118839
|
+
Document3.prototype.revertDelta = function(delta) {
|
|
118839
118840
|
this.$safeApplyDelta({
|
|
118840
118841
|
start: this.clonePos(delta.start),
|
|
118841
118842
|
end: this.clonePos(delta.end),
|
|
@@ -118843,7 +118844,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118843
118844
|
lines: delta.lines.slice()
|
|
118844
118845
|
});
|
|
118845
118846
|
};
|
|
118846
|
-
|
|
118847
|
+
Document3.prototype.indexToPosition = function(index2, startRow) {
|
|
118847
118848
|
var lines = this.$lines || this.getAllLines();
|
|
118848
118849
|
var newlineLength = this.getNewLineCharacter().length;
|
|
118849
118850
|
for (var i2 = startRow || 0, l2 = lines.length; i2 < l2; i2++) {
|
|
@@ -118853,7 +118854,7 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118853
118854
|
}
|
|
118854
118855
|
return { row: l2 - 1, column: index2 + lines[l2 - 1].length + newlineLength };
|
|
118855
118856
|
};
|
|
118856
|
-
|
|
118857
|
+
Document3.prototype.positionToIndex = function(pos, startRow) {
|
|
118857
118858
|
var lines = this.$lines || this.getAllLines();
|
|
118858
118859
|
var newlineLength = this.getNewLineCharacter().length;
|
|
118859
118860
|
var index2 = 0;
|
|
@@ -118862,16 +118863,16 @@ ace.define("ace/document", [], function(require2, exports2, module2) {
|
|
|
118862
118863
|
index2 += lines[i2].length + newlineLength;
|
|
118863
118864
|
return index2 + pos.column;
|
|
118864
118865
|
};
|
|
118865
|
-
|
|
118866
|
+
Document3.prototype.$split = function(text2) {
|
|
118866
118867
|
return text2.split(/\r\n|\r|\n/);
|
|
118867
118868
|
};
|
|
118868
|
-
return
|
|
118869
|
+
return Document3;
|
|
118869
118870
|
}()
|
|
118870
118871
|
);
|
|
118871
|
-
|
|
118872
|
-
|
|
118873
|
-
oop.implement(
|
|
118874
|
-
exports2.Document =
|
|
118872
|
+
Document2.prototype.$autoNewLine = "";
|
|
118873
|
+
Document2.prototype.$newLineMode = "auto";
|
|
118874
|
+
oop.implement(Document2.prototype, EventEmitter);
|
|
118875
|
+
exports2.Document = Document2;
|
|
118875
118876
|
});
|
|
118876
118877
|
ace.define("ace/lib/deep_copy", [], function(require2, exports2, module2) {
|
|
118877
118878
|
exports2.deepCopy = function deepCopy(obj) {
|
|
@@ -119046,11 +119047,11 @@ ace.define("ace/lib/lang", [], function(require2, exports2, module2) {
|
|
|
119046
119047
|
};
|
|
119047
119048
|
});
|
|
119048
119049
|
ace.define("ace/worker/mirror", [], function(require2, exports2, module2) {
|
|
119049
|
-
var
|
|
119050
|
+
var Document2 = require2("../document").Document;
|
|
119050
119051
|
var lang = require2("../lib/lang");
|
|
119051
119052
|
var Mirror = exports2.Mirror = function(sender) {
|
|
119052
119053
|
this.sender = sender;
|
|
119053
|
-
var doc = this.doc = new
|
|
119054
|
+
var doc = this.doc = new Document2("");
|
|
119054
119055
|
var deferredUpdate = this.deferredUpdate = lang.delayedCall(this.onUpdate.bind(this));
|
|
119055
119056
|
var _self = this;
|
|
119056
119057
|
sender.on("change", function(e2) {
|
|
@@ -148858,6 +148859,7 @@ class FormManager {
|
|
|
148858
148859
|
});
|
|
148859
148860
|
}
|
|
148860
148861
|
});
|
|
148862
|
+
// loop on all fields in fieldsByNode and get value if visible ( recursive )
|
|
148861
148863
|
__publicField(this, "getVisibleValue", (field = {
|
|
148862
148864
|
id: "__result__",
|
|
148863
148865
|
children: this.formElements.map((o2) => this.fieldsByPath[o2.id]),
|
|
@@ -148958,6 +148960,7 @@ class FormManager {
|
|
|
148958
148960
|
});
|
|
148959
148961
|
}
|
|
148960
148962
|
}
|
|
148963
|
+
// use for repeater
|
|
148961
148964
|
createDynamicField(field, p_position, p_data = null) {
|
|
148962
148965
|
const uniqueId = v4();
|
|
148963
148966
|
this.dynamicPathPart[uniqueId] = p_position;
|
|
@@ -149018,6 +149021,11 @@ class FormManager {
|
|
|
149018
149021
|
delete this.dynamicPathPart[p_itemId];
|
|
149019
149022
|
delete this.fields[p_itemId];
|
|
149020
149023
|
}
|
|
149024
|
+
//
|
|
149025
|
+
// removeDynamicField(p_uniqueId){
|
|
149026
|
+
// this.dynamicPathPart[p_uniqueId] =false;
|
|
149027
|
+
// }
|
|
149028
|
+
//
|
|
149021
149029
|
getField(p_item, v_item, custom_id, parentUid) {
|
|
149022
149030
|
if (typeField[v_item.format]) {
|
|
149023
149031
|
const currentTypeField = new typeField[v_item.format](
|
|
@@ -149042,6 +149050,7 @@ class FormManager {
|
|
|
149042
149050
|
return false;
|
|
149043
149051
|
}
|
|
149044
149052
|
}
|
|
149053
|
+
// get field path like path for data
|
|
149045
149054
|
getNormalizedFieldPath(path) {
|
|
149046
149055
|
const normalizedFieldPath = [];
|
|
149047
149056
|
var paths = ("" + path).split("__");
|
|
@@ -149158,6 +149167,8 @@ class FormManager {
|
|
|
149158
149167
|
return newField;
|
|
149159
149168
|
}) : [];
|
|
149160
149169
|
}
|
|
149170
|
+
initValueForm() {
|
|
149171
|
+
}
|
|
149161
149172
|
resolveFieldRefs(formJson, fieldsRefJson) {
|
|
149162
149173
|
const resolveRefsInForm = (formItem) => {
|
|
149163
149174
|
if (formItem.fieldRef && fieldsRefJson[formItem.fieldRef]) {
|
|
@@ -149178,7 +149189,6 @@ class FormManager {
|
|
|
149178
149189
|
return formJson.map((item) => resolveRefsInForm(item));
|
|
149179
149190
|
}
|
|
149180
149191
|
loadJsonForm(p_data) {
|
|
149181
|
-
console.log(p_data);
|
|
149182
149192
|
if (!p_data) {
|
|
149183
149193
|
return {};
|
|
149184
149194
|
}
|
|
@@ -149188,16 +149198,51 @@ class FormManager {
|
|
|
149188
149198
|
this.loadJsonFormNode(p_data.fieldsRef[key3]);
|
|
149189
149199
|
});
|
|
149190
149200
|
}
|
|
149191
|
-
console.log(p_data);
|
|
149192
|
-
console.log(Array.isArray(p_data == null ? void 0 : p_data.form));
|
|
149193
149201
|
const formData = Array.isArray(p_data == null ? void 0 : p_data.form) ? p_data.form : Array.isArray(p_data == null ? void 0 : p_data.content) ? p_data.content : Array.isArray(p_data) ? p_data : [];
|
|
149194
|
-
console.log(formData);
|
|
149195
149202
|
for (let i2 = 0; i2 < formData.length; i2++) {
|
|
149196
149203
|
formData[i2] = this.loadJsonFormNode(formData[i2], true);
|
|
149197
149204
|
}
|
|
149198
|
-
console.log(formData);
|
|
149199
149205
|
return formData;
|
|
149200
149206
|
}
|
|
149207
|
+
// getMaxContentLevel(p_item) {
|
|
149208
|
+
// let maxContentLevel = 0;
|
|
149209
|
+
// let rootItem = p_item;
|
|
149210
|
+
// // Vérifier si l'élément est un tableau
|
|
149211
|
+
// if (p_item && Array.isArray(p_item)) {
|
|
149212
|
+
// p_item.forEach((item) => {
|
|
149213
|
+
// if (item?.content) {
|
|
149214
|
+
// // Appeler récursivement pour trouver le niveau maximum
|
|
149215
|
+
// const currentContent = this.getMaxContentLevel(item.content);
|
|
149216
|
+
// if (currentContent.lvl > maxContentLevel) {
|
|
149217
|
+
// maxContentLevel = currentContent.lvl;
|
|
149218
|
+
// rootItem = item;
|
|
149219
|
+
// }
|
|
149220
|
+
// }
|
|
149221
|
+
// });
|
|
149222
|
+
// }
|
|
149223
|
+
// // Retourner le niveau de contenu maximum et l'élément racine associé
|
|
149224
|
+
// return { lvl: maxContentLevel + 1, rootItem: rootItem };
|
|
149225
|
+
// }
|
|
149226
|
+
// getMaxDepthOfContent(content) {
|
|
149227
|
+
// let maxDepth = 0;
|
|
149228
|
+
// const traverse = (items, depth = 1) => {
|
|
149229
|
+
// if (Array.isArray(items)) {
|
|
149230
|
+
// items.forEach((item) => {
|
|
149231
|
+
// if (item?.content && Array.isArray(item.content)) {
|
|
149232
|
+
// traverse(item.content, depth + 1);
|
|
149233
|
+
// }
|
|
149234
|
+
// if (item?.forms?.content && Array.isArray(item.forms.content)) {
|
|
149235
|
+
// traverse(item.forms.content, depth + 1);
|
|
149236
|
+
// }
|
|
149237
|
+
// });
|
|
149238
|
+
// }
|
|
149239
|
+
// if (depth > maxDepth) {
|
|
149240
|
+
// maxDepth = depth;
|
|
149241
|
+
// }
|
|
149242
|
+
// };
|
|
149243
|
+
// traverse(content);
|
|
149244
|
+
// return maxDepth;
|
|
149245
|
+
// }
|
|
149201
149246
|
/**
|
|
149202
149247
|
* Charge et fusionne un nœud JSON représentant un formulaire ou une structure de données.
|
|
149203
149248
|
*
|
|
@@ -149208,12 +149253,11 @@ class FormManager {
|
|
|
149208
149253
|
* @returns {Object} - L'objet `p_item` potentiellement modifié après traitement.
|
|
149209
149254
|
*/
|
|
149210
149255
|
loadJsonFormNode(p_item, test = false) {
|
|
149211
|
-
var _a, _b, _c, _d;
|
|
149256
|
+
var _a, _b, _c, _d, _e2;
|
|
149212
149257
|
if (p_item == null ? void 0 : p_item._fieldRefLinked) {
|
|
149213
149258
|
return p_item;
|
|
149214
149259
|
}
|
|
149215
|
-
if (p_item.fieldRef) {
|
|
149216
|
-
console.log("fieldRef", p_item.fieldRef);
|
|
149260
|
+
if (p_item.fieldRef && !(p_item == null ? void 0 : p_item._fieldRefLinked)) {
|
|
149217
149261
|
if ((_a = this.fieldsRef) == null ? void 0 : _a[p_item.fieldRef]) {
|
|
149218
149262
|
p_item.id = (p_item == null ? void 0 : p_item.id) ?? p_item.fieldRef;
|
|
149219
149263
|
p_item = _.merge(
|
|
@@ -149221,9 +149265,10 @@ class FormManager {
|
|
|
149221
149265
|
this.fieldsRef[p_item.fieldRef],
|
|
149222
149266
|
_.cloneDeep(p_item)
|
|
149223
149267
|
);
|
|
149224
|
-
|
|
149268
|
+
p_item.content = this.fieldsRef[p_item.fieldRef].content;
|
|
149269
|
+
const refContent = (_b = this.fieldsRef[p_item.fieldRef]) == null ? void 0 : _b.content;
|
|
149225
149270
|
if (refContent) {
|
|
149226
|
-
if (((
|
|
149271
|
+
if (((_c = p_item.content) == null ? void 0 : _c.length) && Array.isArray(p_item.content)) {
|
|
149227
149272
|
refContent.forEach((refItem, index2) => {
|
|
149228
149273
|
const item = p_item.content.find((item2) => item2.id === refItem.id);
|
|
149229
149274
|
const itemIndex = p_item.content.findIndex(
|
|
@@ -149253,13 +149298,15 @@ class FormManager {
|
|
|
149253
149298
|
return this.loadJsonFormNode(item);
|
|
149254
149299
|
});
|
|
149255
149300
|
}
|
|
149256
|
-
if (((
|
|
149301
|
+
if (((_d = p_item == null ? void 0 : p_item.forms) == null ? void 0 : _d.content) && Array.isArray((_e2 = p_item == null ? void 0 : p_item.forms) == null ? void 0 : _e2.content)) {
|
|
149257
149302
|
p_item.forms.content = p_item.forms.content.map((item) => {
|
|
149258
149303
|
return this.loadJsonFormNode(item);
|
|
149259
149304
|
});
|
|
149260
149305
|
}
|
|
149261
149306
|
return p_item;
|
|
149262
149307
|
}
|
|
149308
|
+
//initNodevValue: (p_node) => {},
|
|
149309
|
+
// check value of current field from validity param
|
|
149263
149310
|
checkValidity(item, p_TreeId = null, p_data = null) {
|
|
149264
149311
|
let resultCheckValidity = { type: "success", message: "" };
|
|
149265
149312
|
if (item["validity"] && Array.isArray(item["validity"]) && item["validity"].length) {
|
|
@@ -149309,7 +149356,8 @@ class FormManager {
|
|
|
149309
149356
|
resultCheckValidity = regex.test(testFieldValue) ? { type: "success", message: "" } : { type: "error", message: condition["message"] };
|
|
149310
149357
|
break;
|
|
149311
149358
|
case "mandatory":
|
|
149312
|
-
resultCheckValidity = testFieldValue !== "" && testFieldValue !== null && testFieldValue !== void 0 && testFieldValue !== false &&
|
|
149359
|
+
resultCheckValidity = testFieldValue !== "" && testFieldValue !== null && testFieldValue !== void 0 && testFieldValue !== false && // and test empty object or empty array
|
|
149360
|
+
(typeof testFieldValue !== "object" || typeof testFieldValue === "object" && Object.keys(testFieldValue).length !== 0) ? { type: "success", message: "" } : { type: "error", message: condition["message"] };
|
|
149313
149361
|
break;
|
|
149314
149362
|
case "compare":
|
|
149315
149363
|
resultCheckValidity = testValue(
|
|
@@ -149337,6 +149385,7 @@ class FormManager {
|
|
|
149337
149385
|
this.validityResult[item.id] = resultCheckValidity;
|
|
149338
149386
|
return resultCheckValidity;
|
|
149339
149387
|
}
|
|
149388
|
+
// check only first condition
|
|
149340
149389
|
checkCondition(item, p_TreeId = null, p_data = null) {
|
|
149341
149390
|
const evaluateCondition = (condition, treeId) => {
|
|
149342
149391
|
const operator = condition["operator"];
|
|
@@ -149350,45 +149399,31 @@ class FormManager {
|
|
|
149350
149399
|
const evaluateGroup = (group, treeId) => {
|
|
149351
149400
|
var _a;
|
|
149352
149401
|
let result = true;
|
|
149353
|
-
console.log("group length", group.conditions.length);
|
|
149354
149402
|
(_a = group == null ? void 0 : group.conditions) == null ? void 0 : _a.forEach((subCondition, subConditionIndex) => {
|
|
149355
149403
|
let subResult = false;
|
|
149356
|
-
console.log("subCondition", subCondition);
|
|
149357
149404
|
if (subCondition.conditions) {
|
|
149358
149405
|
subResult = evaluateGroup(subCondition, treeId);
|
|
149359
|
-
console.log("subResult evaluate group", subResult);
|
|
149360
149406
|
} else {
|
|
149361
149407
|
subResult = evaluateCondition(subCondition, treeId);
|
|
149362
|
-
console.log("subResult evaluate conditions", subResult);
|
|
149363
149408
|
}
|
|
149364
149409
|
if (subConditionIndex === 0) {
|
|
149365
149410
|
result = subResult;
|
|
149366
149411
|
} else {
|
|
149367
|
-
console.log("-----" + group.subCondition);
|
|
149368
149412
|
if (subCondition.logical_operator === "and") {
|
|
149369
|
-
console.log("and", result, subResult);
|
|
149370
149413
|
result = result && subResult;
|
|
149371
|
-
console.log("for", result);
|
|
149372
149414
|
} else if (subCondition.logical_operator === "or") {
|
|
149373
|
-
console.log("or", result, subResult);
|
|
149374
149415
|
result = result || subResult;
|
|
149375
|
-
console.log("for", result);
|
|
149376
149416
|
}
|
|
149377
149417
|
}
|
|
149378
149418
|
});
|
|
149379
|
-
console.log("group evaluate result", result);
|
|
149380
149419
|
return result;
|
|
149381
149420
|
};
|
|
149382
149421
|
let item_parent_value_treeId_array = (p_TreeId === null ? item.id : p_TreeId).split("__");
|
|
149383
149422
|
item_parent_value_treeId_array.pop();
|
|
149384
149423
|
const item_parent_value_treeId = item_parent_value_treeId_array.join("__");
|
|
149385
|
-
console.log("item", item);
|
|
149386
149424
|
const mainGroup = item.conditions && item.conditions.length > 0 ? { conditions: item.conditions } : null;
|
|
149387
149425
|
if (mainGroup) {
|
|
149388
|
-
console.log("-------------------------------Start");
|
|
149389
149426
|
const evaluateResult = evaluateGroup(mainGroup, item_parent_value_treeId);
|
|
149390
|
-
console.log(evaluateResult);
|
|
149391
|
-
console.log("-------------------------------End");
|
|
149392
149427
|
return evaluateResult;
|
|
149393
149428
|
} else {
|
|
149394
149429
|
return true;
|