@progress/kendo-angular-common 14.4.0-develop.9 → 15.0.0-develop.2
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/NOTICE.txt +146 -593
- package/adornments/adornments.module.d.ts +16 -0
- package/adornments/prefix.directive.d.ts +42 -0
- package/adornments/separator-orientation.d.ts +5 -0
- package/adornments/separator.component.d.ts +36 -0
- package/adornments/suffix.directive.d.ts +41 -0
- package/adornments.d.ts +9 -0
- package/esm2020/adornments/adornments.module.mjs +24 -0
- package/esm2020/adornments/prefix.directive.mjs +57 -0
- package/esm2020/adornments/separator-orientation.mjs +5 -0
- package/esm2020/adornments/separator.component.mjs +60 -0
- package/esm2020/adornments/suffix.directive.mjs +56 -0
- package/esm2020/adornments.mjs +8 -0
- package/esm2020/index.mjs +1 -0
- package/fesm2015/progress-kendo-angular-common.mjs +180 -2
- package/fesm2020/progress-kendo-angular-common.mjs +176 -2
- package/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { EventEmitter, Directive, Input, Output, NgModule, Injectable, Component, HostBinding, ViewChild } from '@angular/core';
|
|
6
|
+
import { EventEmitter, Directive, Input, Output, NgModule, Injectable, Component, HostBinding, ViewChild, Optional } from '@angular/core';
|
|
7
7
|
import { detectDesktopBrowser, detectMobileOS } from '@progress/kendo-common';
|
|
8
8
|
import { Draggable } from '@progress/kendo-draggable';
|
|
9
9
|
import * as i1 from '@angular/common';
|
|
@@ -983,6 +983,180 @@ function shouldShowValidationUI(isPackageValid) {
|
|
|
983
983
|
return !skip && !isPackageValid;
|
|
984
984
|
}
|
|
985
985
|
|
|
986
|
+
/**
|
|
987
|
+
* Specifies the adornments in the prefix container of the [Inputs]({% slug adornments_textbox %}#toc-prefixadornments) and [DropDowns]({% slug adornments_multiselect %}#toc-prefixadornments).
|
|
988
|
+
* ```ts-no-run
|
|
989
|
+
* _@Component({
|
|
990
|
+
* selector: 'my-app',
|
|
991
|
+
* template: `
|
|
992
|
+
* <kendo-textbox>
|
|
993
|
+
* <ng-template kendoPrefixTemplate>
|
|
994
|
+
* <button kendoButton look="clear" icon="image"></button>
|
|
995
|
+
* </ng-template>
|
|
996
|
+
* </kendo-textbox>
|
|
997
|
+
*
|
|
998
|
+
* <kendo-multiselect [data]="data" [(ngModel)]="value">
|
|
999
|
+
* <ng-template kendoPrefixTemplate>
|
|
1000
|
+
* <button kendoButton look="clear" icon="image"></button>
|
|
1001
|
+
* </ng-template>
|
|
1002
|
+
* </kendo-multiselect>
|
|
1003
|
+
* `
|
|
1004
|
+
* })
|
|
1005
|
+
* class AppComponent {}
|
|
1006
|
+
* ```
|
|
1007
|
+
*/
|
|
1008
|
+
class PrefixTemplateDirective {
|
|
1009
|
+
constructor(templateRef) {
|
|
1010
|
+
this.templateRef = templateRef;
|
|
1011
|
+
this._showSeparator = false;
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
* Sets the `showSeparator` attribute of the `prefixTemplate`.
|
|
1015
|
+
*
|
|
1016
|
+
* @default false
|
|
1017
|
+
*/
|
|
1018
|
+
set showSeparator(value) {
|
|
1019
|
+
this._showSeparator = value;
|
|
1020
|
+
}
|
|
1021
|
+
get showSeparator() {
|
|
1022
|
+
return this._showSeparator;
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
PrefixTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PrefixTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1026
|
+
PrefixTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: PrefixTemplateDirective, selector: "[kendoPrefixTemplate]", inputs: { showSeparator: "showSeparator" }, ngImport: i0 });
|
|
1027
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PrefixTemplateDirective, decorators: [{
|
|
1028
|
+
type: Directive,
|
|
1029
|
+
args: [{
|
|
1030
|
+
selector: '[kendoPrefixTemplate]'
|
|
1031
|
+
}]
|
|
1032
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
1033
|
+
type: Optional
|
|
1034
|
+
}] }]; }, propDecorators: { showSeparator: [{
|
|
1035
|
+
type: Input
|
|
1036
|
+
}] } });
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* Specifies the adornments in the suffix container of the [Inputs]({% slug adornments_textbox %}#toc-suffixadornments) and [DropDowns]({% slug adornments_multiselect %}#toc-suffixadornments).
|
|
1040
|
+
* ```ts-no-run
|
|
1041
|
+
* _@Component({
|
|
1042
|
+
* selector: 'my-app',
|
|
1043
|
+
* template: `
|
|
1044
|
+
* <kendo-textbox>
|
|
1045
|
+
* <ng-template kendoSuffixTemplate>
|
|
1046
|
+
* <button kendoButton look="clear" icon="image"></button>
|
|
1047
|
+
* </ng-template>
|
|
1048
|
+
* </kendo-textbox>
|
|
1049
|
+
* `
|
|
1050
|
+
* <kendo-multiselect [data]="data" [(ngModel)]="value">
|
|
1051
|
+
* <ng-template kendoSuffixTemplate>
|
|
1052
|
+
* <button kendoButton look="clear" icon="image"></button>
|
|
1053
|
+
* </ng-template>
|
|
1054
|
+
* </kendo-multiselect>
|
|
1055
|
+
* })
|
|
1056
|
+
* class AppComponent {}
|
|
1057
|
+
* ```
|
|
1058
|
+
*/
|
|
1059
|
+
class SuffixTemplateDirective {
|
|
1060
|
+
constructor(templateRef) {
|
|
1061
|
+
this.templateRef = templateRef;
|
|
1062
|
+
this._showSeparator = false;
|
|
1063
|
+
}
|
|
1064
|
+
/**
|
|
1065
|
+
* Sets the `showSeparator` attribute of the `suffixTemplate`.
|
|
1066
|
+
*
|
|
1067
|
+
* @default false
|
|
1068
|
+
*/
|
|
1069
|
+
set showSeparator(value) {
|
|
1070
|
+
this._showSeparator = value;
|
|
1071
|
+
}
|
|
1072
|
+
get showSeparator() {
|
|
1073
|
+
return this._showSeparator;
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
SuffixTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SuffixTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1077
|
+
SuffixTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: SuffixTemplateDirective, selector: "[kendoSuffixTemplate]", inputs: { showSeparator: "showSeparator" }, ngImport: i0 });
|
|
1078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SuffixTemplateDirective, decorators: [{
|
|
1079
|
+
type: Directive,
|
|
1080
|
+
args: [{
|
|
1081
|
+
selector: '[kendoSuffixTemplate]'
|
|
1082
|
+
}]
|
|
1083
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
1084
|
+
type: Optional
|
|
1085
|
+
}] }]; }, propDecorators: { showSeparator: [{
|
|
1086
|
+
type: Input
|
|
1087
|
+
}] } });
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* Specifies a separator in the content of the [Inputs]({% slug adornments_textbox %}#toc-separator) and [DropDowns]({% slug adornments_multiselect %}#toc-separator).
|
|
1091
|
+
* @example
|
|
1092
|
+
* ```ts-no-run
|
|
1093
|
+
* _@Component({
|
|
1094
|
+
* selector: 'my-app',
|
|
1095
|
+
* template: `
|
|
1096
|
+
* <kendo-textbox>
|
|
1097
|
+
* <ng-template kendoSuffixTemplate>
|
|
1098
|
+
* <button kendoButton look="clear" icon="image"></button>
|
|
1099
|
+
* <kendo-separator></kendo-separator>
|
|
1100
|
+
* <button kendoButton look="clear" icon="image"></button>
|
|
1101
|
+
* </ng-template>
|
|
1102
|
+
* </kendo-textbox>
|
|
1103
|
+
* `
|
|
1104
|
+
* })
|
|
1105
|
+
* class AppComponent {}
|
|
1106
|
+
* ```
|
|
1107
|
+
*/
|
|
1108
|
+
class SeparatorComponent {
|
|
1109
|
+
constructor() {
|
|
1110
|
+
/**
|
|
1111
|
+
* @hidden
|
|
1112
|
+
*/
|
|
1113
|
+
this.orientation = 'vertical';
|
|
1114
|
+
this.hostClass = true;
|
|
1115
|
+
}
|
|
1116
|
+
get vertical() {
|
|
1117
|
+
return this.orientation === 'vertical';
|
|
1118
|
+
}
|
|
1119
|
+
get horizontal() {
|
|
1120
|
+
return this.orientation === 'horizontal';
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
SeparatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1124
|
+
SeparatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SeparatorComponent, selector: "kendo-separator", inputs: { orientation: "orientation" }, host: { properties: { "class.k-input-separator-vertical": "this.vertical", "class.k-input-separator-horizontal": "this.horizontal", "class.k-input-separator": "this.hostClass" } }, ngImport: i0, template: ``, isInline: true });
|
|
1125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SeparatorComponent, decorators: [{
|
|
1126
|
+
type: Component,
|
|
1127
|
+
args: [{
|
|
1128
|
+
selector: 'kendo-separator',
|
|
1129
|
+
template: ``
|
|
1130
|
+
}]
|
|
1131
|
+
}], propDecorators: { orientation: [{
|
|
1132
|
+
type: Input
|
|
1133
|
+
}], vertical: [{
|
|
1134
|
+
type: HostBinding,
|
|
1135
|
+
args: ['class.k-input-separator-vertical']
|
|
1136
|
+
}], horizontal: [{
|
|
1137
|
+
type: HostBinding,
|
|
1138
|
+
args: ['class.k-input-separator-horizontal']
|
|
1139
|
+
}], hostClass: [{
|
|
1140
|
+
type: HostBinding,
|
|
1141
|
+
args: ['class.k-input-separator']
|
|
1142
|
+
}] } });
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* @hidden
|
|
1146
|
+
*/
|
|
1147
|
+
class AdornmentsModule {
|
|
1148
|
+
}
|
|
1149
|
+
AdornmentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AdornmentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1150
|
+
AdornmentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AdornmentsModule, declarations: [PrefixTemplateDirective, SuffixTemplateDirective, SeparatorComponent], exports: [PrefixTemplateDirective, SuffixTemplateDirective, SeparatorComponent] });
|
|
1151
|
+
AdornmentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AdornmentsModule });
|
|
1152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AdornmentsModule, decorators: [{
|
|
1153
|
+
type: NgModule,
|
|
1154
|
+
args: [{
|
|
1155
|
+
declarations: [PrefixTemplateDirective, SuffixTemplateDirective, SeparatorComponent],
|
|
1156
|
+
exports: [PrefixTemplateDirective, SuffixTemplateDirective, SeparatorComponent]
|
|
1157
|
+
}]
|
|
1158
|
+
}] });
|
|
1159
|
+
|
|
986
1160
|
class PreventableEvent {
|
|
987
1161
|
constructor() {
|
|
988
1162
|
this.prevented = false;
|
|
@@ -1048,5 +1222,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1048
1222
|
* Generated bundle index. Do not edit.
|
|
1049
1223
|
*/
|
|
1050
1224
|
|
|
1051
|
-
export { DraggableDirective, DraggableModule, EventsModule, EventsOutsideAngularDirective, KendoInput, Keys, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ResizeSensorModule, ScrollbarWidthService, WatermarkModule, WatermarkOverlayComponent, anyChanged, closest, closestBySelector, closestInScope, contains, findElement, findFocusable, findFocusableChild, focusableSelector, guid, hasClasses, hasObservers, isChanged, isDocumentAvailable, isFirefox, isFocusable, isFocusableWithTabKey, isObject, isPresent, isSafari, isString, isVisible, matchesClasses, matchesNodeName, parseCSSClassNames, rtlScrollPosition, scrollbarWidth, shouldShowValidationUI, splitStringToArray };
|
|
1225
|
+
export { AdornmentsModule, DraggableDirective, DraggableModule, EventsModule, EventsOutsideAngularDirective, KendoInput, Keys, PrefixTemplateDirective, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ResizeSensorModule, ScrollbarWidthService, SeparatorComponent, SuffixTemplateDirective, WatermarkModule, WatermarkOverlayComponent, anyChanged, closest, closestBySelector, closestInScope, contains, findElement, findFocusable, findFocusableChild, focusableSelector, guid, hasClasses, hasObservers, isChanged, isDocumentAvailable, isFirefox, isFocusable, isFocusableWithTabKey, isObject, isPresent, isSafari, isString, isVisible, matchesClasses, matchesNodeName, parseCSSClassNames, rtlScrollPosition, scrollbarWidth, shouldShowValidationUI, splitStringToArray };
|
|
1052
1226
|
|
package/index.d.ts
CHANGED
|
@@ -12,5 +12,6 @@ export * from './enums';
|
|
|
12
12
|
export * from './utils/focusable-selectors';
|
|
13
13
|
export * from './utils/ng-class-parser';
|
|
14
14
|
export * from './watermark';
|
|
15
|
+
export * from './adornments';
|
|
15
16
|
export { PreventableEvent } from './preventable-event';
|
|
16
17
|
export { ScrollbarWidthService, scrollbarWidth } from './utils/scrollbar-width.service';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0-develop.2",
|
|
4
4
|
"description": "Kendo UI for Angular - Utility Package",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@progress/kendo-common": "^0.2.1",
|
|
24
24
|
"@progress/kendo-draggable": "^3.0.2",
|
|
25
25
|
"tslib": "^2.3.1",
|
|
26
|
-
"@progress/kendo-angular-schematics": "
|
|
26
|
+
"@progress/kendo-angular-schematics": "15.0.0-develop.2"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|