@sd-angular/core 1.1.99 → 1.2.3
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/autocomplete/sd-angular-core-autocomplete.metadata.json +1 -1
- package/bundles/sd-angular-core-autocomplete.umd.js +1 -1
- package/bundles/sd-angular-core-autocomplete.umd.js.map +1 -1
- package/bundles/sd-angular-core-autocomplete.umd.min.js +1 -1
- package/bundles/sd-angular-core-autocomplete.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-date-time.umd.js +1 -1
- package/bundles/sd-angular-core-date-time.umd.js.map +1 -1
- package/bundles/sd-angular-core-date-time.umd.min.js +1 -1
- package/bundles/sd-angular-core-date-time.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.js +25 -1
- package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js +2 -2
- package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-input-number.umd.js +1 -1
- package/bundles/sd-angular-core-input-number.umd.js.map +1 -1
- package/bundles/sd-angular-core-input-number.umd.min.js +1 -1
- package/bundles/sd-angular-core-input-number.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-input.umd.js +1 -1
- package/bundles/sd-angular-core-input.umd.js.map +1 -1
- package/bundles/sd-angular-core-input.umd.min.js +1 -1
- package/bundles/sd-angular-core-input.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-popover.umd.js +1 -1
- package/bundles/sd-angular-core-popover.umd.js.map +1 -1
- package/bundles/sd-angular-core-popover.umd.min.js +1 -1
- package/bundles/sd-angular-core-popover.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-select-editor.umd.js +7 -1
- package/bundles/sd-angular-core-select-editor.umd.js.map +1 -1
- package/bundles/sd-angular-core-select-editor.umd.min.js +2 -2
- package/bundles/sd-angular-core-select-editor.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-select.umd.js +1 -1
- package/bundles/sd-angular-core-select.umd.js.map +1 -1
- package/bundles/sd-angular-core-select.umd.min.js +1 -1
- package/bundles/sd-angular-core-select.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-tab-router.umd.js +47 -8
- package/bundles/sd-angular-core-tab-router.umd.js.map +1 -1
- package/bundles/sd-angular-core-tab-router.umd.min.js +2 -2
- package/bundles/sd-angular-core-tab-router.umd.min.js.map +1 -1
- package/date-time/sd-angular-core-date-time.metadata.json +1 -1
- package/esm2015/autocomplete/src/lib/autocomplete.component.js +2 -2
- package/esm2015/date-time/src/lib/date-time.component.js +2 -2
- package/esm2015/grid-material/src/lib/components/desktop-cell-editor/desktop-cell-editor.component.js +26 -2
- package/esm2015/grid-material/src/lib/models/grid-column.model.js +1 -1
- package/esm2015/input/src/lib/input.component.js +2 -2
- package/esm2015/input-number/src/lib/input-number.component.js +2 -2
- package/esm2015/popover/src/lib/directives/popover-trigger.directive.js +2 -2
- package/esm2015/select/src/lib/select.component.js +2 -2
- package/esm2015/select-editor/src/lib/select-editor.component.js +9 -3
- package/esm2015/tab-router/sd-angular-core-tab-router.js +2 -1
- package/esm2015/tab-router/src/lib/components/tab-router-nav/tab-router-nav.component.js +12 -5
- package/esm2015/tab-router/src/lib/directives/router-link-mouse-down.directive.js +22 -0
- package/esm2015/tab-router/src/lib/tab-router.module.js +11 -2
- package/fesm2015/sd-angular-core-autocomplete.js +1 -1
- package/fesm2015/sd-angular-core-autocomplete.js.map +1 -1
- package/fesm2015/sd-angular-core-date-time.js +1 -1
- package/fesm2015/sd-angular-core-date-time.js.map +1 -1
- package/fesm2015/sd-angular-core-grid-material.js +25 -1
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/fesm2015/sd-angular-core-input-number.js +1 -1
- package/fesm2015/sd-angular-core-input-number.js.map +1 -1
- package/fesm2015/sd-angular-core-input.js +1 -1
- package/fesm2015/sd-angular-core-input.js.map +1 -1
- package/fesm2015/sd-angular-core-popover.js +1 -1
- package/fesm2015/sd-angular-core-popover.js.map +1 -1
- package/fesm2015/sd-angular-core-select-editor.js +8 -2
- package/fesm2015/sd-angular-core-select-editor.js.map +1 -1
- package/fesm2015/sd-angular-core-select.js +1 -1
- package/fesm2015/sd-angular-core-select.js.map +1 -1
- package/fesm2015/sd-angular-core-tab-router.js +41 -7
- package/fesm2015/sd-angular-core-tab-router.js.map +1 -1
- package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
- package/grid-material/src/lib/components/desktop-cell-editor/desktop-cell-editor.component.d.ts +3 -0
- package/grid-material/src/lib/models/grid-column.model.d.ts +5 -2
- package/input/sd-angular-core-input.metadata.json +1 -1
- package/input-number/sd-angular-core-input-number.metadata.json +1 -1
- package/package.json +1 -1
- package/{sd-angular-core-1.1.99.tgz → sd-angular-core-1.2.3.tgz} +0 -0
- package/select/sd-angular-core-select.metadata.json +1 -1
- package/select-editor/sd-angular-core-select-editor.metadata.json +1 -1
- package/select-editor/src/lib/select-editor.component.d.ts +3 -0
- package/tab-router/sd-angular-core-tab-router.d.ts +1 -0
- package/tab-router/sd-angular-core-tab-router.metadata.json +1 -1
- package/tab-router/src/lib/components/tab-router-nav/tab-router-nav.component.d.ts +4 -1
- package/tab-router/src/lib/directives/router-link-mouse-down.directive.d.ts +4 -0
|
@@ -2946,12 +2946,36 @@ class SdDesktopCellEditor {
|
|
|
2946
2946
|
}
|
|
2947
2947
|
(_c = (_b = (_a = this.column) === null || _a === void 0 ? void 0 : _a.editor) === null || _b === void 0 ? void 0 : _b.change) === null || _c === void 0 ? void 0 : _c.call(_b, this.item, selected);
|
|
2948
2948
|
};
|
|
2949
|
+
this.editorOnAdd = () => {
|
|
2950
|
+
var _a, _b;
|
|
2951
|
+
if (this.column.type === 'children' || this.column.type === 'children-col') {
|
|
2952
|
+
return;
|
|
2953
|
+
}
|
|
2954
|
+
const editor = (_a = this.column) === null || _a === void 0 ? void 0 : _a.editor;
|
|
2955
|
+
(_b = editor === null || editor === void 0 ? void 0 : editor.add) === null || _b === void 0 ? void 0 : _b.apply(undefined);
|
|
2956
|
+
};
|
|
2957
|
+
this.editorOnEdit = (option) => {
|
|
2958
|
+
var _a, _b;
|
|
2959
|
+
if (this.column.type === 'children' || this.column.type === 'children-col') {
|
|
2960
|
+
return;
|
|
2961
|
+
}
|
|
2962
|
+
const editor = (_a = this.column) === null || _a === void 0 ? void 0 : _a.editor;
|
|
2963
|
+
(_b = editor === null || editor === void 0 ? void 0 : editor.edit) === null || _b === void 0 ? void 0 : _b.apply(undefined, [option, this.item]);
|
|
2964
|
+
};
|
|
2965
|
+
this.editorOnDelete = (option) => {
|
|
2966
|
+
var _a, _b;
|
|
2967
|
+
if (this.column.type === 'children' || this.column.type === 'children-col') {
|
|
2968
|
+
return;
|
|
2969
|
+
}
|
|
2970
|
+
const editor = (_a = this.column) === null || _a === void 0 ? void 0 : _a.editor;
|
|
2971
|
+
(_b = editor === null || editor === void 0 ? void 0 : editor.delete) === null || _b === void 0 ? void 0 : _b.apply(undefined, [option, this.item]);
|
|
2972
|
+
};
|
|
2949
2973
|
}
|
|
2950
2974
|
}
|
|
2951
2975
|
SdDesktopCellEditor.decorators = [
|
|
2952
2976
|
{ type: Component, args: [{
|
|
2953
2977
|
selector: 'sd-desktop-cell-editor',
|
|
2954
|
-
template: "<sd-input *ngIf=\"column.type === 'string'\" size=\"sm\" type=\"text\" [(model)]=\"item[column.field]\"
|
|
2978
|
+
template: "<sd-input *ngIf=\"column.type === 'string'\" size=\"sm\" type=\"text\" [(model)]=\"item[column.field]\"\r\n (sdChange)=\"onChange($event)\" disableErrorMessage>\r\n</sd-input>\r\n<sd-input-number *ngIf=\"column.type === 'number'\" size=\"sm\" [(model)]=\"item[column.field]\" (sdChange)=\"onChange($event)\"\r\n [min]=\"column?.editor?.minValue\" [max]=\"column?.editor?.maxValue\" disableErrorMessage>\r\n</sd-input-number>\r\n<sd-select *ngIf=\"column.type === 'bool'\" size=\"sm\" [items]=\"[\r\n { value: true, display: column.option?.displayOnTrue || 'True' },\r\n { value: false, display: column.option?.displayOnFalse || 'False' }\r\n ]\" valueField=\"value\" displayField=\"display\" [(model)]=\"item[column.field]\" (sdSelection)=\"onChange($event)\"\r\n disableErrorMessage>\r\n</sd-select>\r\n<sd-date-time *ngIf=\"\r\n column.type === 'date' ||\r\n column.type === 'datetime' ||\r\n column.type === 'time'\r\n \" size=\"sm\" [(model)]=\"item[column.field]\" [type]=\"column.type\" (sdChange)=\"onChange($event)\" disableErrorMessage>\r\n</sd-date-time>\r\n\r\n<ng-container *ngIf=\"column.type === 'values'\">\r\n <sd-select *ngIf=\"!column?.option?.selection\" size=\"sm\" [items]=\"column.option.items\"\r\n [valueField]=\"column.option.valueField\" [displayField]=\"column.option.displayField\" [(model)]=\"item[column.field]\"\r\n (sdSelection)=\"onChange($event)\" disableErrorMessage></sd-select>\r\n <sd-select *ngIf=\"\r\n column?.option?.selection === 'MULTIPLE' ||\r\n column?.option?.selection === 'MULTIPLEAUTOCOMPLETE'\r\n \" size=\"sm\" [items]=\"column.option.items\" [valueField]=\"column.option.valueField\"\r\n [displayField]=\"column.option.displayField\" [(model)]=\"item[column.field]\" (sdSelection)=\"onChange($event)\"\r\n [multiple]=\"\r\n column?.option?.selection === 'MULTIPLE' ||\r\n column?.option?.selection === 'MULTIPLEAUTOCOMPLETE'\r\n \" [filtered]=\"column?.option?.selection === 'MULTIPLEAUTOCOMPLETE'\" disableErrorMessage>\r\n </sd-select>\r\n <sd-autocomplete *ngIf=\"\r\n column?.option?.selection === 'AUTOCOMPLETE'\r\n \" size=\"sm\" [items]=\"column.option.items\" [valueField]=\"column.option.valueField\"\r\n [displayField]=\"column.option.displayField\" [(model)]=\"item[column.field]\" (sdChange)=\"onChange($event)\"\r\n disableErrorMessage>\r\n </sd-autocomplete>\r\n\r\n <!-- EDITOR -->\r\n <sd-select-editor *ngIf=\"\r\n column?.option?.selection === 'AUTOCOMPLETE_EDITOR'\r\n \" size=\"sm\" [items]=\"column.option.items\" [valueField]=\"column.option.valueField\"\r\n [displayField]=\"column.option.displayField\" [(model)]=\"item[column.field]\" (sdSelection)=\"onChange($event)\"\r\n filtered disableErrorMessage [addable]=\"column?.editor?.add\" [editable]=\"column?.editor?.edit\"\r\n [deletable]=\"column?.editor?.delete\" (sdAdd)=\"editorOnAdd()\" (sdEdit)=\"editorOnEdit($event)\"\r\n (sdDelete)=\"editorOnDelete($event)\">\r\n </sd-select-editor>\r\n <sd-select-editor *ngIf=\"\r\n column?.option?.selection === 'MULTIPLE_EDITOR'\r\n \" size=\"sm\" [items]=\"column.option.items\" [valueField]=\"column.option.valueField\"\r\n [displayField]=\"column.option.displayField\" [(model)]=\"item[column.field]\" (sdSelection)=\"onChange($event)\"\r\n multiple disableErrorMessage [addable]=\"column?.editor?.add\" [editable]=\"column?.editor?.edit\"\r\n [deletable]=\"column?.editor?.delete\" (sdAdd)=\"editorOnAdd()\" (sdEdit)=\"editorOnEdit($event)\"\r\n (sdDelete)=\"editorOnDelete($event)\">\r\n </sd-select-editor>\r\n <sd-select-editor *ngIf=\"\r\n column?.option?.selection === 'MULTIPLEAUTOCOMPLETE_EDITOR'\r\n \" size=\"sm\" [items]=\"column.option.items\" [valueField]=\"column.option.valueField\"\r\n [displayField]=\"column.option.displayField\" [(model)]=\"item[column.field]\" (sdSelection)=\"onChange($event)\"\r\n multiple filtered disableErrorMessage [addable]=\"column?.editor?.add\" [editable]=\"column?.editor?.edit\"\r\n [deletable]=\"column?.editor?.delete\" (sdAdd)=\"editorOnAdd()\" (sdEdit)=\"editorOnEdit($event)\"\r\n (sdDelete)=\"editorOnDelete($event)\">\r\n </sd-select-editor>\r\n <!-- END EDITOR -->\r\n</ng-container>",
|
|
2955
2979
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2956
2980
|
},] }
|
|
2957
2981
|
];
|