@indice/ng-components 0.2.92 → 0.2.96
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/indice-ng-components.umd.js +22 -19
- package/bundles/indice-ng-components.umd.js.map +1 -1
- package/esm2015/lib/controls/toggle/toggle.component.js +1 -1
- package/esm2015/lib/icons.js +2 -1
- package/esm2015/lib/layouts/views/form-layout/form-layout.component.js +13 -12
- package/esm2015/lib/layouts/views/view-layout/view-layout.component.js +10 -8
- package/fesm2015/indice-ng-components.js +22 -18
- package/fesm2015/indice-ng-components.js.map +1 -1
- package/indice-ng-components.metadata.json +1 -1
- package/lib/icons.d.ts +1 -0
- package/package.json +1 -1
|
@@ -623,6 +623,7 @@
|
|
|
623
623
|
Icons.SendEmail = "ms-Icon ms-Icon--NewMail";
|
|
624
624
|
Icons.Filter = "ms-Icon ms-Icon--Filter";
|
|
625
625
|
Icons.Export = "ms-Icon ms-Icon--ExcelDocument";
|
|
626
|
+
Icons.Import = "ms-Icon ms-Icon--PeopleAdd";
|
|
626
627
|
Icons.TilesView = "ms-Icon ms-Icon--AppIconDefault";
|
|
627
628
|
Icons.TableView = "ms-Icon ms-Icon--Table";
|
|
628
629
|
Icons.MapView = "ms-Icon ms-Icon--MapPin";
|
|
@@ -2086,13 +2087,15 @@
|
|
|
2086
2087
|
}
|
|
2087
2088
|
ViewLayoutComponent.prototype.ngOnInit = function () {
|
|
2088
2089
|
var _a;
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2090
|
+
if ((_a = this.searchInput$) === null || _a === void 0 ? void 0 : _a.nativeElement) {
|
|
2091
|
+
rxjs.fromEvent(this.searchInput$.nativeElement, 'keyup').pipe(operators.map(function (event) {
|
|
2092
|
+
return event.target.value; // Get input value.
|
|
2093
|
+
}), operators.filter(function (inputValue) { return inputValue.length >= 3 || inputValue.length === 0; }),
|
|
2094
|
+
// If character length greater than minimumSearchCharacters setting.
|
|
2095
|
+
operators.debounceTime(1000), // Time in milliseconds between key events.
|
|
2096
|
+
operators.distinctUntilChanged() // If previous query is different from current.
|
|
2097
|
+
).subscribe();
|
|
2098
|
+
}
|
|
2096
2099
|
};
|
|
2097
2100
|
ViewLayoutComponent.prototype.emitActionClick = function (action) {
|
|
2098
2101
|
this.onAction.emit(action);
|
|
@@ -2298,6 +2301,16 @@
|
|
|
2298
2301
|
this.onComplete = new i0.EventEmitter();
|
|
2299
2302
|
}
|
|
2300
2303
|
FormLayoutComponent.prototype.ngOnInit = function () {
|
|
2304
|
+
var _a;
|
|
2305
|
+
if ((_a = this.searchInput$) === null || _a === void 0 ? void 0 : _a.nativeElement) {
|
|
2306
|
+
rxjs.fromEvent(this.searchInput$.nativeElement, 'keyup').pipe(operators.map(function (event) {
|
|
2307
|
+
return event.target.value; // Get input value.
|
|
2308
|
+
}), operators.filter(function (inputValue) { return inputValue.length >= 3 || inputValue.length === 0; }),
|
|
2309
|
+
// If character length greater than minimumSearchCharacters setting.
|
|
2310
|
+
operators.debounceTime(1000), // Time in milliseconds between key events.
|
|
2311
|
+
operators.distinctUntilChanged() // If previous query is different from current.
|
|
2312
|
+
).subscribe();
|
|
2313
|
+
}
|
|
2301
2314
|
};
|
|
2302
2315
|
FormLayoutComponent.prototype.onSidePaneDeactivated = function ($event) {
|
|
2303
2316
|
this.onComplete.emit(true);
|
|
@@ -2309,18 +2322,8 @@
|
|
|
2309
2322
|
this.onSearch.emit(text);
|
|
2310
2323
|
};
|
|
2311
2324
|
FormLayoutComponent.prototype.searchActionType = function (text) {
|
|
2312
|
-
var _this = this;
|
|
2313
2325
|
var _a;
|
|
2314
|
-
|
|
2315
|
-
return event.target.value; // Get input value.
|
|
2316
|
-
}), operators.filter(function (inputValue) { return inputValue.length >= 3 || inputValue.length === 0; }),
|
|
2317
|
-
// If character length greater than minimumSearchCharacters setting.
|
|
2318
|
-
operators.debounceTime(1000), // Time in milliseconds between key events.
|
|
2319
|
-
operators.distinctUntilChanged() // If previous query is different from current.
|
|
2320
|
-
).subscribe(function (_) {
|
|
2321
|
-
var _a;
|
|
2322
|
-
_this.onSearch.emit((_a = _this.searchInput$) === null || _a === void 0 ? void 0 : _a.nativeElement.value);
|
|
2323
|
-
});
|
|
2326
|
+
this.onSearch.emit((_a = this.searchInput$) === null || _a === void 0 ? void 0 : _a.nativeElement.value);
|
|
2324
2327
|
};
|
|
2325
2328
|
FormLayoutComponent.prototype.routerLinkActionClick = function (action, relative) {
|
|
2326
2329
|
if (relative === void 0) { relative = false; }
|
|
@@ -2336,7 +2339,7 @@
|
|
|
2336
2339
|
FormLayoutComponent.decorators = [
|
|
2337
2340
|
{ type: i0.Component, args: [{
|
|
2338
2341
|
selector: 'lib-form-layout',
|
|
2339
|
-
template: "<div class=\"form-layout-container\">\r\n <div class=\"form-header\">\r\n <div class=\"form-header-inner\">\r\n <h3 class=\"form-title\">\r\n {{ title }}\r\n </h3>\r\n <p class=\"form-subtitle\">\r\n {{ subTitle }}\r\n </p>\r\n </div>\r\n <div class=\"form-header-actions\">\r\n <ng-container *ngFor=\"let action of actions\"\r\n [ngSwitch]=\"action.type\">\r\n <ng-container *ngSwitchCase=\"'search'\">\r\n <label for=\"search\"\r\n class=\"sr-only\">Search</label>\r\n <div class=\"search-container\">\r\n <div class=\"pointer-events-none absolute inset-y-0 left-0 pl-3 flex items-center\">\r\n <!--<svg class=\"h-5 w-5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\">\r\n <path fill-rule=\"evenodd\" d=\"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z\" clip-rule=\"evenodd\" />\r\n </svg>-->\r\n </div>\r\n <input id=\"search\"\r\n #search\r\n class=\"form-search-input\"\r\n [placeholder]=\"searchPlaceholder\"\r\n type=\"search\"\r\n name=\"search\"\r\n (input)=\"searchActionType(search.value)\">\r\n </div>\r\n <button type=\"button\"\r\n href=\"#\"\r\n class=\"btn-form-view-header-search\"\r\n [title]=\"action.tooltip\"\r\n (click)=\"searchActionClick(action, search.value)\">\r\n <i [class]=\"action.icon\"></i>\r\n </button>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'router-link'\">\r\n <button type=\"button\"\r\n href=\"#\"\r\n class=\"ml-1 btn-form-view-header\"\r\n [title]=\"action.tooltip\"\r\n (click)=\"routerLinkActionClick(action)\">\r\n <i [class]=\"action.icon\"></i>\r\n </button>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <button type=\"button\"\r\n class=\"ml-1 btn-form-view-header\"\r\n [title]=\"action.tooltip\"\r\n (click)=\"emitActionClick(action)\">\r\n <i [class]=\"action.icon\"></i>\r\n </button>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"form-content-container\">\r\n <div [ngClass]=\"{'form-content-container-inner': actions}\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n <lib-side-pane #formPane (onComplete)=\"onSidePaneDeactivated($event)\">\r\n <router-outlet name=\"formRightPane\"\r\n (activate)=\"formPane.onSidePaneActivated($event)\"\r\n (deactivate)=\"formPane.onSidePaneDeactivated($event)\"></router-outlet>\r\n </lib-side-pane>\r\n</div>\r\n"
|
|
2342
|
+
template: "<div class=\"form-layout-container\">\r\n <div class=\"form-header\" *ngIf=\"title || subTitle || actions\">\r\n <div class=\"form-header-inner\">\r\n <h3 class=\"form-title\">\r\n {{ title }}\r\n </h3>\r\n <p class=\"form-subtitle\">\r\n {{ subTitle }}\r\n </p>\r\n </div>\r\n <div class=\"form-header-actions\">\r\n <ng-container *ngFor=\"let action of actions\"\r\n [ngSwitch]=\"action.type\">\r\n <ng-container *ngSwitchCase=\"'search'\">\r\n <label for=\"search\"\r\n class=\"sr-only\">Search</label>\r\n <div class=\"search-container\">\r\n <div class=\"pointer-events-none absolute inset-y-0 left-0 pl-3 flex items-center\">\r\n <!--<svg class=\"h-5 w-5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\">\r\n <path fill-rule=\"evenodd\" d=\"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z\" clip-rule=\"evenodd\" />\r\n </svg>-->\r\n </div>\r\n <input id=\"search\"\r\n #search\r\n class=\"form-search-input\"\r\n [placeholder]=\"searchPlaceholder\"\r\n type=\"search\"\r\n name=\"search\"\r\n (input)=\"searchActionType(search.value)\">\r\n </div>\r\n <button type=\"button\"\r\n href=\"#\"\r\n class=\"btn-form-view-header-search\"\r\n [title]=\"action.tooltip\"\r\n (click)=\"searchActionClick(action, search.value)\">\r\n <i [class]=\"action.icon\"></i>\r\n </button>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'router-link'\">\r\n <button type=\"button\"\r\n href=\"#\"\r\n class=\"ml-1 btn-form-view-header\"\r\n [title]=\"action.tooltip\"\r\n (click)=\"routerLinkActionClick(action)\">\r\n <i [class]=\"action.icon\"></i>\r\n </button>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <button type=\"button\"\r\n class=\"ml-1 btn-form-view-header\"\r\n [title]=\"action.tooltip\"\r\n (click)=\"emitActionClick(action)\">\r\n <i [class]=\"action.icon\"></i>\r\n </button>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"form-content-container\">\r\n <div [ngClass]=\"{'form-content-container-inner': actions}\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n <lib-side-pane #formPane (onComplete)=\"onSidePaneDeactivated($event)\">\r\n <router-outlet name=\"formRightPane\"\r\n (activate)=\"formPane.onSidePaneActivated($event)\"\r\n (deactivate)=\"formPane.onSidePaneDeactivated($event)\"></router-outlet>\r\n </lib-side-pane>\r\n</div>\r\n"
|
|
2340
2343
|
},] }
|
|
2341
2344
|
];
|
|
2342
2345
|
FormLayoutComponent.ctorParameters = function () { return [
|