fantasy-ngzorro 1.2.9 → 1.2.11
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/bundles/fantasy-ngzorro.umd.js +70 -26
- package/bundles/fantasy-ngzorro.umd.js.map +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js +2 -2
- package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
- package/esm2015/hd-form/hd-form.component.js +18 -6
- package/esm2015/hd-form/hd-form.service.js +3 -1
- package/esm2015/hd-form-lines/hd-form-lines.component.js +48 -18
- package/esm2015/hd-form-lines/hd-form-lines.service.js +3 -1
- package/esm5/hd-form/hd-form.component.js +18 -6
- package/esm5/hd-form/hd-form.service.js +3 -1
- package/esm5/hd-form-lines/hd-form-lines.component.js +48 -18
- package/esm5/hd-form-lines/hd-form-lines.service.js +3 -1
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +67 -23
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +67 -23
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-form/hd-form.service.d.ts +1 -0
- package/hd-form-lines/hd-form-lines.service.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ng-zorro-antd'), require('@angular/cdk/drag-drop'), require('lodash'), require('ng-zorro-antd/core'), require('ng-zorro-antd/table'), require('ng-zorro-antd/modal'), require('ng-zorro-antd/dropdown'), require('ng-zorro-antd/icon'), require('ng-zorro-antd/popconfirm'), require('ng-zorro-antd/resizable'), require('ng-zorro-antd/tooltip'), require('ng-zorro-antd/tree'), require('localforage'), require('rxjs')
|
|
3
|
-
typeof define === 'function' && define.amd ? define('fantasy-ngzorro', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'ng-zorro-antd', '@angular/cdk/drag-drop', 'lodash', 'ng-zorro-antd/core', 'ng-zorro-antd/table', 'ng-zorro-antd/modal', 'ng-zorro-antd/dropdown', 'ng-zorro-antd/icon', 'ng-zorro-antd/popconfirm', 'ng-zorro-antd/resizable', 'ng-zorro-antd/tooltip', 'ng-zorro-antd/tree', 'localforage', 'rxjs'
|
|
4
|
-
(global = global || self, factory(global['fantasy-ngzorro'] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ngZorroAntd, global.ng.cdk['drag-drop'], global.lodash, global.core$1, global.table, global.modal, global.dropdown, global.icon, global.popconfirm, global.resizable, global.tooltip, global.tree, global.localforage, global.rxjs
|
|
5
|
-
}(this, (function (exports, core, common, forms, ngZorroAntd, dragDrop, lodash, core$1, table, modal, dropdown, icon, popconfirm, resizable, tooltip, tree, localforage, rxjs
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ng-zorro-antd'), require('@angular/cdk/drag-drop'), require('lodash'), require('ng-zorro-antd/core'), require('ng-zorro-antd/table'), require('rxjs/operators'), require('ng-zorro-antd/modal'), require('ng-zorro-antd/dropdown'), require('ng-zorro-antd/icon'), require('ng-zorro-antd/popconfirm'), require('ng-zorro-antd/resizable'), require('ng-zorro-antd/tooltip'), require('ng-zorro-antd/tree'), require('localforage'), require('rxjs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('fantasy-ngzorro', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'ng-zorro-antd', '@angular/cdk/drag-drop', 'lodash', 'ng-zorro-antd/core', 'ng-zorro-antd/table', 'rxjs/operators', 'ng-zorro-antd/modal', 'ng-zorro-antd/dropdown', 'ng-zorro-antd/icon', 'ng-zorro-antd/popconfirm', 'ng-zorro-antd/resizable', 'ng-zorro-antd/tooltip', 'ng-zorro-antd/tree', 'localforage', 'rxjs'], factory) :
|
|
4
|
+
(global = global || self, factory(global['fantasy-ngzorro'] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ngZorroAntd, global.ng.cdk['drag-drop'], global.lodash, global.core$1, global.table, global.rxjs.operators, global.modal, global.dropdown, global.icon, global.popconfirm, global.resizable, global.tooltip, global.tree, global.localforage, global.rxjs));
|
|
5
|
+
}(this, (function (exports, core, common, forms, ngZorroAntd, dragDrop, lodash, core$1, table, operators, modal, dropdown, icon, popconfirm, resizable, tooltip, tree, localforage, rxjs) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1572,11 +1572,20 @@
|
|
|
1572
1572
|
*/
|
|
1573
1573
|
function (item) {
|
|
1574
1574
|
if (item.onChangeEvent) {
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1575
|
+
if (item.onChangeEventDebounceTime) {
|
|
1576
|
+
formGroupTmp.get(item.name).valueChanges.pipe(operators.debounceTime(item.onChangeEventDebounceTime)).subscribe((/**
|
|
1577
|
+
* @param {?} value
|
|
1578
|
+
* @return {?}
|
|
1579
|
+
*/
|
|
1580
|
+
function (value) { return _this.triggerEvent(item.onChangeEvent, value, formGroupTmp); }));
|
|
1581
|
+
}
|
|
1582
|
+
else {
|
|
1583
|
+
formGroupTmp.get(item.name).valueChanges.subscribe((/**
|
|
1584
|
+
* @param {?} value
|
|
1585
|
+
* @return {?}
|
|
1586
|
+
*/
|
|
1587
|
+
function (value) { return _this.triggerEvent(item.onChangeEvent, value, formGroupTmp); }));
|
|
1588
|
+
}
|
|
1580
1589
|
}
|
|
1581
1590
|
}));
|
|
1582
1591
|
((/** @type {?} */ (tmpValidateHdFormLines.get('lines')))).insert(((/** @type {?} */ (tmpValidateHdFormLines.get('lines')))).controls.length, formGroupTmp);
|
|
@@ -1853,11 +1862,20 @@
|
|
|
1853
1862
|
function (item) {
|
|
1854
1863
|
if (item.onChangeEvent) {
|
|
1855
1864
|
if (item.onChangeEvent) {
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1865
|
+
if (item.onChangeEventDebounceTime) {
|
|
1866
|
+
formGroupSubmit.get(item.name).valueChanges.pipe(operators.debounceTime(item.onChangeEventDebounceTime)).subscribe((/**
|
|
1867
|
+
* @param {?} value
|
|
1868
|
+
* @return {?}
|
|
1869
|
+
*/
|
|
1870
|
+
function (value) { return _this.triggerEvent(item.onChangeEvent, value, formGroupSubmit); }));
|
|
1871
|
+
}
|
|
1872
|
+
else {
|
|
1873
|
+
formGroupSubmit.get(item.name).valueChanges.subscribe((/**
|
|
1874
|
+
* @param {?} value
|
|
1875
|
+
* @return {?}
|
|
1876
|
+
*/
|
|
1877
|
+
function (value) { return _this.triggerEvent(item.onChangeEvent, value, formGroupSubmit); }));
|
|
1878
|
+
}
|
|
1861
1879
|
}
|
|
1862
1880
|
}
|
|
1863
1881
|
}));
|
|
@@ -1921,13 +1939,24 @@
|
|
|
1921
1939
|
*/
|
|
1922
1940
|
function (item) {
|
|
1923
1941
|
if (item.onChangeEvent) {
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1942
|
+
if (item.onChangeEventDebounceTime) {
|
|
1943
|
+
formGroupTmp.get(item.name).valueChanges.pipe(operators.debounceTime(item.onChangeEventDebounceTime)).subscribe((/**
|
|
1944
|
+
* @param {?} value
|
|
1945
|
+
* @return {?}
|
|
1946
|
+
*/
|
|
1947
|
+
function (value) {
|
|
1948
|
+
_this.triggerEvent(item.onChangeEvent, value, formGroupTmp);
|
|
1949
|
+
}));
|
|
1950
|
+
}
|
|
1951
|
+
else {
|
|
1952
|
+
formGroupTmp.get(item.name).valueChanges.subscribe((/**
|
|
1953
|
+
* @param {?} value
|
|
1954
|
+
* @return {?}
|
|
1955
|
+
*/
|
|
1956
|
+
function (value) {
|
|
1957
|
+
_this.triggerEvent(item.onChangeEvent, value, formGroupTmp);
|
|
1958
|
+
}));
|
|
1959
|
+
}
|
|
1931
1960
|
}
|
|
1932
1961
|
}));
|
|
1933
1962
|
_this.linesFormArray.insert(_this.linesFormArray.controls.length, formGroupTmp);
|
|
@@ -2570,11 +2599,22 @@
|
|
|
2570
2599
|
function (item) {
|
|
2571
2600
|
if (item.onChangeEvent) {
|
|
2572
2601
|
if (item.onChangeEvent) {
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2602
|
+
if (item.onChangeEventDebounceTime) {
|
|
2603
|
+
_this.validateHdForm.get(item.name).valueChanges
|
|
2604
|
+
.pipe(operators.debounceTime(item.onChangeEventDebounceTime))
|
|
2605
|
+
.subscribe((/**
|
|
2606
|
+
* @param {?} value
|
|
2607
|
+
* @return {?}
|
|
2608
|
+
*/
|
|
2609
|
+
function (value) { return _this.triggerEvent(item.onChangeEvent, value); }));
|
|
2610
|
+
}
|
|
2611
|
+
else {
|
|
2612
|
+
_this.validateHdForm.get(item.name).valueChanges.subscribe((/**
|
|
2613
|
+
* @param {?} value
|
|
2614
|
+
* @return {?}
|
|
2615
|
+
*/
|
|
2616
|
+
function (value) { return _this.triggerEvent(item.onChangeEvent, value); }));
|
|
2617
|
+
}
|
|
2578
2618
|
}
|
|
2579
2619
|
}
|
|
2580
2620
|
}));
|
|
@@ -5025,6 +5065,8 @@
|
|
|
5025
5065
|
FormLine.prototype.style;
|
|
5026
5066
|
/** @type {?} */
|
|
5027
5067
|
FormLine.prototype.canSearch;
|
|
5068
|
+
/** @type {?} */
|
|
5069
|
+
FormLine.prototype.onChangeEventDebounceTime;
|
|
5028
5070
|
}
|
|
5029
5071
|
var ColorOption = /** @class */ (function () {
|
|
5030
5072
|
function ColorOption() {
|
|
@@ -5168,6 +5210,8 @@
|
|
|
5168
5210
|
FormItem.prototype.validatorKeys;
|
|
5169
5211
|
/** @type {?} */
|
|
5170
5212
|
FormItem.prototype.validator;
|
|
5213
|
+
/** @type {?} */
|
|
5214
|
+
FormItem.prototype.onChangeEventDebounceTime;
|
|
5171
5215
|
}
|
|
5172
5216
|
var ValidatorKey = /** @class */ (function () {
|
|
5173
5217
|
function ValidatorKey() {
|