@coolon/angular-ui-powerups 1.21.0 → 2.0.0-alpha.0
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/CHANGELOG.md +9 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +12 -12
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/forms/abstract-list-input.component.js +3 -3
- package/esm2015/lib/components/forms/abstract-list-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-value-input.component.js +3 -3
- package/esm2015/lib/components/forms/abstract-value-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/number-input/number-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/password-input/password-input.component.js +1 -1
- package/esm2015/lib/components/forms/password-input/password-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/password-input/password-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.js +3 -3
- package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.js.map +1 -1
- package/esm2015/lib/components/table/cell-editors.js.map +1 -1
- package/esm2015/lib/components/table/column-model.js.map +1 -1
- package/esm2015/lib/components/table/column-model.metadata.json +1 -1
- package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.js.map +1 -1
- package/esm2015/lib/components/table/edit-session.js.map +1 -1
- package/esm2015/lib/components/table/edit-session.metadata.json +1 -1
- package/esm2015/lib/components/table/table-model.js +4 -4
- package/esm2015/lib/components/table/table-model.js.map +1 -1
- package/esm2015/lib/components/table/table-model.metadata.json +1 -1
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js +2 -2
- package/esm2015/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity-data.js.map +1 -1
- package/esm5/lib/components/forms/abstract-list-input.component.js +3 -3
- package/esm5/lib/components/forms/abstract-list-input.component.js.map +1 -1
- package/esm5/lib/components/forms/abstract-value-input.component.js +3 -3
- package/esm5/lib/components/forms/abstract-value-input.component.js.map +1 -1
- package/esm5/lib/components/forms/checkbox-input/checkbox-input.component.js.map +1 -1
- package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +1 -1
- package/esm5/lib/components/forms/number-input/number-input.component.js.map +1 -1
- package/esm5/lib/components/forms/password-input/password-input.component.js +1 -1
- package/esm5/lib/components/forms/password-input/password-input.component.js.map +1 -1
- package/esm5/lib/components/forms/select-input/select-input.component.js +3 -3
- package/esm5/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm5/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/esm5/lib/components/forms/text-input/text-input.component.js.map +1 -1
- package/esm5/lib/components/table/cell-editors.js.map +1 -1
- package/esm5/lib/components/table/column-model.js.map +1 -1
- package/esm5/lib/components/table/edit-row-controls/edit-row-controls.component.js.map +1 -1
- package/esm5/lib/components/table/edit-session.js.map +1 -1
- package/esm5/lib/components/table/table-model.js +4 -4
- package/esm5/lib/components/table/table-model.js.map +1 -1
- package/esm5/lib/interaction/components/input-activities/abstract-input-activity.js +2 -2
- package/esm5/lib/interaction/components/input-activities/abstract-input-activity.js.map +1 -1
- package/esm5/lib/interaction/components/input-activities/input-activity-data.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +13 -13
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +13 -13
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/forms/abstract-list-input.component.d.ts +3 -3
- package/lib/components/forms/abstract-value-input.component.d.ts +3 -3
- package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +2 -2
- package/lib/components/forms/multiple-select-input/multiple-select-input.component.d.ts +2 -2
- package/lib/components/forms/number-input/number-input.component.d.ts +2 -2
- package/lib/components/forms/password-input/password-input.component.d.ts +2 -2
- package/lib/components/forms/select-input/select-input.component.d.ts +2 -2
- package/lib/components/forms/string-input/string-input.component.d.ts +2 -2
- package/lib/components/forms/text-input/text-input.component.d.ts +2 -2
- package/lib/components/table/cell-editors.d.ts +3 -3
- package/lib/components/table/column-model.d.ts +2 -2
- package/lib/components/table/edit-row-controls/edit-row-controls.component.d.ts +2 -2
- package/lib/components/table/edit-session.d.ts +4 -4
- package/lib/components/table/table-model.d.ts +5 -5
- package/lib/interaction/components/input-activities/abstract-input-activity.d.ts +2 -2
- package/lib/interaction/components/input-activities/input-activity-data.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.0.0-alpha.0](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.21.0...v2.0.0-alpha.0) (2020-07-02)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* updated to pectin 3.0
|
|
11
|
+
|
|
12
|
+
* updated to pectin 3.0 ([5c2ca5c](https://bitbucket.org/coolon/angular-ui-powerups/commit/5c2ca5c39789f9f38a8bd36a2d1401349550e62c))
|
|
13
|
+
|
|
5
14
|
## [1.21.0](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.20.0...v1.21.0) (2020-06-30)
|
|
6
15
|
|
|
7
16
|
|
|
@@ -860,14 +860,14 @@
|
|
|
860
860
|
* A backing model for all our @Input() valueModel properties which should be defined as follows.
|
|
861
861
|
*
|
|
862
862
|
* @Input() @TrackExternal({useExisting: "inputModel"})
|
|
863
|
-
* valueModel:
|
|
863
|
+
* valueModel: Form.ListModelBase<string> | IMutableListModel<string>;
|
|
864
864
|
*
|
|
865
865
|
* This approach allows the input to accept plain or form models but all backed by a form
|
|
866
866
|
* friendly delegate. We have to use an existing delegate for union types as pectin just
|
|
867
867
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
868
868
|
*/
|
|
869
869
|
// We have to register it as a disposable so it ditches any listeners when we're disposed.
|
|
870
|
-
_this.inputModel = _this.registerDisposable(new pectin.
|
|
870
|
+
_this.inputModel = _this.registerDisposable(new pectin.Form.DelegatingListModel());
|
|
871
871
|
return _this;
|
|
872
872
|
}
|
|
873
873
|
AbstractListInputComponent = __decorate([
|
|
@@ -884,14 +884,14 @@
|
|
|
884
884
|
* A backing model for all our @Input() valueModel properties which should be defined as follows.
|
|
885
885
|
*
|
|
886
886
|
* @Input() @TrackExternal({useExisting: "inputModel"})
|
|
887
|
-
* valueModel:
|
|
887
|
+
* valueModel: DirtyTrackingForm.ValueModel<string> | IMutableValueModel<string>;
|
|
888
888
|
*
|
|
889
889
|
* This approach allows the input to accept plain or form models but all backed by a form
|
|
890
890
|
* friendly delegate. We have to use an existing delegate for union types as pectin just
|
|
891
891
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
892
892
|
*/
|
|
893
893
|
// We have to register it as a disposable so it ditches any listeners when we're disposed.
|
|
894
|
-
_this.inputModel = _this.registerDisposable(new pectin.
|
|
894
|
+
_this.inputModel = _this.registerDisposable(new pectin.Form.DelegatingValueModel());
|
|
895
895
|
return _this;
|
|
896
896
|
}
|
|
897
897
|
AbstractValueInputComponent = __decorate([
|
|
@@ -974,7 +974,7 @@
|
|
|
974
974
|
PasswordInputComponent.prototype.ngOnInit = function () {
|
|
975
975
|
};
|
|
976
976
|
__decorate([
|
|
977
|
-
core.Input(), pectin.TrackExternal({ delegateTo:
|
|
977
|
+
core.Input(), pectin.TrackExternal({ delegateTo: 'inputModel' }),
|
|
978
978
|
__metadata("design:type", Object)
|
|
979
979
|
], PasswordInputComponent.prototype, "valueModel", void 0);
|
|
980
980
|
PasswordInputComponent = __decorate([
|
|
@@ -998,7 +998,7 @@
|
|
|
998
998
|
SelectInputComponent.prototype.ngOnInit = function () {
|
|
999
999
|
};
|
|
1000
1000
|
__decorate([
|
|
1001
|
-
core.Input(), pectin.TrackExternal({ delegateTo:
|
|
1001
|
+
core.Input(), pectin.TrackExternal({ delegateTo: 'inputModel' }),
|
|
1002
1002
|
__metadata("design:type", Object)
|
|
1003
1003
|
], SelectInputComponent.prototype, "valueModel", void 0);
|
|
1004
1004
|
__decorate([
|
|
@@ -1018,11 +1018,11 @@
|
|
|
1018
1018
|
__metadata("design:type", Boolean)
|
|
1019
1019
|
], SelectInputComponent.prototype, "allowNil", void 0);
|
|
1020
1020
|
__decorate([
|
|
1021
|
-
core.ContentChild(
|
|
1021
|
+
core.ContentChild('optionTemplate'),
|
|
1022
1022
|
__metadata("design:type", core.TemplateRef)
|
|
1023
1023
|
], SelectInputComponent.prototype, "optionTemplateRef", void 0);
|
|
1024
1024
|
__decorate([
|
|
1025
|
-
core.ContentChild(
|
|
1025
|
+
core.ContentChild('nilOptionTemplate'),
|
|
1026
1026
|
__metadata("design:type", core.TemplateRef)
|
|
1027
1027
|
], SelectInputComponent.prototype, "nilOptionTemplateRef", void 0);
|
|
1028
1028
|
__decorate([
|
|
@@ -1878,7 +1878,7 @@
|
|
|
1878
1878
|
* }
|
|
1879
1879
|
* const colorsNames: ListModel<string> = ...;
|
|
1880
1880
|
* const model = TableModel.fromList(heroList, table => {
|
|
1881
|
-
* table.pluck("firstName").cellEditor(StringInputComponent); <-- interface CellEditor { valueModel:
|
|
1881
|
+
* table.pluck("firstName").cellEditor(StringInputComponent); <-- interface CellEditor { valueModel: DirtyTrackingForm.ValueModel<string> | ValueModel<string>; }
|
|
1882
1882
|
* table.pluck("lastName").cellEditor(StringInputComponent, {
|
|
1883
1883
|
* validators: [Validator.present("We need a last name")]
|
|
1884
1884
|
* });
|
|
@@ -1907,7 +1907,7 @@
|
|
|
1907
1907
|
* // configure your component with what ever you need.
|
|
1908
1908
|
* });
|
|
1909
1909
|
* .cellRenderer(CellRendererComponent) // <-- interface CellEditor { value: string; }
|
|
1910
|
-
* .cellEditor(CellEditorComponent.); // <-- interface CellEditor { valueModel:
|
|
1910
|
+
* .cellEditor(CellEditorComponent.); // <-- interface CellEditor { valueModel: DirtyTrackingForm.ValueModel<string> | ValueModel<string>; }
|
|
1911
1911
|
* table.addCustomColumn("fullName", hero => `${hero.firstName} ${hero.lastName}`);
|
|
1912
1912
|
* });
|
|
1913
1913
|
*
|
|
@@ -1936,7 +1936,7 @@
|
|
|
1936
1936
|
this._columns = new pectin.MutableListModel();
|
|
1937
1937
|
this._editorSessions = new pectin.MutableListModel();
|
|
1938
1938
|
this.rowClassNamePredicates = [];
|
|
1939
|
-
this._createForm = function (row) { return new pectin.
|
|
1939
|
+
this._createForm = function (row) { return new pectin.DirtyTrackingForm(); };
|
|
1940
1940
|
this.identityOf = sourceOfTruth.identityOf;
|
|
1941
1941
|
var _a = pectin.Dsl.disposeWith(this._garbage), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
1942
1942
|
this._columnsById = chain(this._columns).indexBy('columnId');
|
|
@@ -3743,7 +3743,7 @@
|
|
|
3743
3743
|
var _this = _super.call(this) || this;
|
|
3744
3744
|
_this.data = data;
|
|
3745
3745
|
_this.class = 'aup-input-activity';
|
|
3746
|
-
var form = new pectin.
|
|
3746
|
+
var form = new pectin.DirtyTrackingForm();
|
|
3747
3747
|
_this.valueModel = form.valueModel(_this.data.initialValue);
|
|
3748
3748
|
_this.valueModel.validateUsing(data.validators || []);
|
|
3749
3749
|
_this.confirmCommand = pectin.Command.create(function () {
|