boruto-xrmui 1.22.9 → 1.22.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.
@@ -2326,6 +2326,135 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
2326
2326
  args: [{ selector: 'xrmui-tabs', imports: [NgClass, MatIcon, MatBadge, MatButtonModule, MatMenuModule, MatIconModule], changeDetection: ChangeDetectionStrategy.Eager, providers: [], template: "<div class=\"xrmui-tabs\">\r\n@for (tab of tabs(); track tab; let idx = $index) {\r\n @if (tab.visible == undefined || tab.visible()) {\r\n <div class=\"xrmui-tab\" [ngClass]=\"{ 'current' : tab == current(), 'disabled': tab.disabled, error: tab != current() && tab.error != undefined && tab.error()}\" (click)=\"current.set(tab)\">\r\n @if (tab.badget != undefined && tab.badget > 0) {\r\n <div [matBadge]=\"tab.badget\" [matBadgeOverlap]=\"false\">\r\n @if (tab.icon != undefined && tab.icon != null && tab.icon != ''){<div class=\"icon\"><mat-icon class=\"mat-icon-14\">{{ tab.icon }}</mat-icon></div>}\r\n <span>\r\n @if (tab.label != undefined && tab.label != null && tab.label != '') { {{ tab.label }} }\r\n @if (tab.label == undefined || tab.label == null || tab.label == '') { {{ tab.id }} }\r\n </span>\r\n </div>\r\n }\r\n\r\n @if (tab.badget == undefined || tab.badget == 0) {\r\n @if (tab.icon != undefined && tab.icon != null && tab.icon != ''){<div class=\"icon\"><mat-icon class=\"mat-icon-14\">{{ tab.icon }}</mat-icon></div>}\r\n <span>\r\n @if (tab.label != undefined && tab.label != null && tab.label != '') { {{ tab.label }} }\r\n @if (tab.label == undefined || tab.label == null || tab.label == '') { {{ tab.id }} }\r\n </span>\r\n }\r\n </div>\r\n }\r\n}\r\n</div>", styles: [":host div.xrmui-tabs{display:flex}:host div.xrmui-tab{margin:10px 5px 5px;padding:10px 10px 8px;font-family:var(--mat-sys-body-medium-font);border:solid;border-width:0 0 2px 0;border-color:#d3d3d3;color:gray;cursor:pointer;font-size:small}:host div.xrmui-tab.current{border-color:#0f6cbd;color:#0f6cbd}:host div.xrmui-tab.disabled{border-color:#d3d3d3;color:#d3d3d3;cursor:auto}:host div.xrmui-tab.space{flex-grow:1;border-color:transparent;cursor:default}:host div.xrmui-burger{padding-top:15px;width:20px;cursor:pointer}:host button.xrmui-burger-button{border:none;background-color:transparent;height:25px;overflow:hidden;margin:0;padding:0}:host div.icon{float:left;padding-right:3px}:host mat-icon.mat-icon-14{font-size:14px;width:14px;height:14px}:host .error{--color1: #FF6347;--color2: #f7f7f7;--duration: 3s;background-color:var(--color1);-webkit-animation-name:colorPulser;-webkit-animation-duration:var(--duration);animation-name:colorPulser;animation-duration:var(--duration);animation-iteration-count:infinite}@-webkit-keyframes colorPulser{0%{background-color:var(--color1)}50%{background-color:var(--color2)}to{background-color:var(--color1)}}@keyframes colorPulser{0%{background-color:var(--color1)}50%{background-color:var(--color2)}to{background-color:var(--color1)}}\n"] }]
2327
2327
  }], ctorParameters: () => [], propDecorators: { tabs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabs", required: true }] }], burgers: [{ type: i0.Input, args: [{ isSignal: true, alias: "burgers", required: false }] }], current: [{ type: i0.Input, args: [{ isSignal: true, alias: "current", required: true }] }, { type: i0.Output, args: ["currentChange"] }] } });
2328
2328
 
2329
+ class XrmuiSection {
2330
+ searchElement;
2331
+ title = '';
2332
+ topTitle = '';
2333
+ searchable = false;
2334
+ search = '';
2335
+ placeholder = '';
2336
+ searchChange = new EventEmitter();
2337
+ focusSearchTrigger = false;
2338
+ focusSearchTriggerChange = new EventEmitter();
2339
+ checkable = false;
2340
+ checked = false;
2341
+ checkChange = new EventEmitter();
2342
+ prev = new EventEmitter();
2343
+ next = new EventEmitter();
2344
+ enter = new EventEmitter();
2345
+ esc = new EventEmitter();
2346
+ constructor() {
2347
+ }
2348
+ ngOnChanges(changes) {
2349
+ if (this.focusSearchTrigger == true) {
2350
+ setTimeout(() => {
2351
+ this.focusSearch();
2352
+ this.focusSearchTriggerChange.emit(false);
2353
+ }, 10);
2354
+ }
2355
+ }
2356
+ searchChanged() {
2357
+ this.searchChange.emit(this.search);
2358
+ }
2359
+ check() {
2360
+ this.checked = true;
2361
+ this.checkChange.emit(this.checked);
2362
+ this.focusSearch();
2363
+ }
2364
+ uncheck() {
2365
+ this.checked = false;
2366
+ this.checkChange.emit(this.checked);
2367
+ this.focusSearch();
2368
+ }
2369
+ onkeydown(e) {
2370
+ if (this.prev.observed) {
2371
+ e.preventDefault();
2372
+ e.stopPropagation();
2373
+ this.prev.emit();
2374
+ }
2375
+ }
2376
+ onkeyup(e) {
2377
+ if (this.next.observed) {
2378
+ e.preventDefault();
2379
+ e.stopPropagation();
2380
+ this.next.emit();
2381
+ }
2382
+ }
2383
+ onkeyenter(e) {
2384
+ if (this.enter.observed) {
2385
+ e.preventDefault();
2386
+ e.stopPropagation();
2387
+ this.enter.emit();
2388
+ }
2389
+ }
2390
+ onkeyesc(e) {
2391
+ if (this.esc.observed) {
2392
+ e.preventDefault();
2393
+ e.stopPropagation();
2394
+ this.esc.emit();
2395
+ }
2396
+ }
2397
+ focusSearch() {
2398
+ if (this.searchElement != null) {
2399
+ this.searchElement.nativeElement.focus();
2400
+ }
2401
+ }
2402
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: XrmuiSection, deps: [], target: i0.ɵɵFactoryTarget.Component });
2403
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: XrmuiSection, isStandalone: true, selector: "xrmui-section", inputs: { title: "title", topTitle: ["top-title", "topTitle"], searchable: "searchable", search: "search", placeholder: "placeholder", focusSearchTrigger: ["focusSearch", "focusSearchTrigger"], checkable: "checkable", checked: "checked" }, outputs: { searchChange: "searchChange", focusSearchTriggerChange: "focusSearchChange", checkChange: "checkedChange", prev: "prev", next: "next", enter: "enter", esc: "esc" }, viewQueries: [{ propertyName: "searchElement", first: true, predicate: ["searchelement"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "@if (topTitle != '') {<div class=\"toptitle-container\">\r\n <div class=\"toptitle\">{{ topTitle }}</div>\r\n</div>}\r\n@if(title != '' && !searchable) {<div class=\"header\">{{ title }}</div>}\r\n@if (searchable) {\r\n<div class=\"search\">\r\n @if (checkable) {\r\n <div class=\"chexkbox\">\r\n @if (checked){<mat-icon title=\"Frav\u00E6lg alle\" (click)=\"uncheck()\">check_box</mat-icon>}\r\n @if(!checked) {<mat-icon title=\"V\u00E6lg alle\" (click)=\"check()\">check_box_outline_blank</mat-icon>}\r\n </div>\r\n }\r\n <input #searchelement [(ngModel)]=\"search\" (ngModelChange)=\"searchChanged()\" [placeholder]=\"title\"\r\n (keydown.esc)=\"onkeyesc($event)\" (keydown.arrowdown)=\"onkeydown($event)\" (keydown.arrowup)=\"onkeyup($event)\"\r\n (keydown.enter)=\"onkeyenter($event)\" \r\n [placeholder]=\"placeholder\" />\r\n <div class=\"therest\"></div>\r\n</div>\r\n}\r\n<div class=\"xrmui-section-content\" [ngClass]=\"{'nosearchortitle': searchable == false && title == ''}\"><ng-content></ng-content></div>", styles: [":host.all{position:absolute;inset:0}:host.all div.xrmui-section-content{position:absolute;inset:50px 1px 1px;overflow-y:auto}:host.all div.xrmui-section-content.nosearchortitle{top:1px}:host{border:solid;border-width:1px 1px 1px 1px;border-color:#d3d3d3;border-style:solid;border-radius:5px;display:block;margin:10px;padding:10px;box-shadow:1px 1px #d3d3d3}:host.nopadding{padding:0}:host.noborder{border:none;border-radius:0;margin:0;padding:0}:host.global{border-color:#4f8a4e}:host.nomargin{margin:0}:host div.toptitle-container{position:relative;width:100%}:host div.toptitle{position:absolute;left:0;right:0;margin-left:auto;margin-right:auto;background-color:gray;color:#fff;padding:1px 20px;max-width:fit-content;display:table;z-index:2;border-radius:15px;border:solid;border-width:1px 1px 1px 1px;border-color:gray}:host div.toptitle{top:-19px}:host div.header{border-width:0 0 1px 0;border-color:#d3d3d3;border-style:solid;font-size:16px;font-weight:700;margin-bottom:15px;padding-top:5px;padding-bottom:5px}:host div.search{border-width:0 0 1px 0;border-color:#d3d3d3;border-style:solid;margin-bottom:15px;padding-top:5px;padding-bottom:5px;display:flex}:host div.therest{flex-grow:1}:host div.chexkbox{width:25px;min-width:25px;max-width:25px}:host input{background-color:transparent;margin:0;border:none;height:29px;padding:0 0 0 15px}:host input[type=number]:focus,:host input[type=number]:hover{pointer-events:none;cursor:text}:host *:focus{outline:none}:host input:focus{outline:none;border:solid;border-width:0 0 2px 0;border-color:#0f6cbd}:host mat-icon{color:gray}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
2404
+ }
2405
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: XrmuiSection, decorators: [{
2406
+ type: Component,
2407
+ args: [{ selector: 'xrmui-section', imports: [FormsModule, MatIcon, NgClass], template: "@if (topTitle != '') {<div class=\"toptitle-container\">\r\n <div class=\"toptitle\">{{ topTitle }}</div>\r\n</div>}\r\n@if(title != '' && !searchable) {<div class=\"header\">{{ title }}</div>}\r\n@if (searchable) {\r\n<div class=\"search\">\r\n @if (checkable) {\r\n <div class=\"chexkbox\">\r\n @if (checked){<mat-icon title=\"Frav\u00E6lg alle\" (click)=\"uncheck()\">check_box</mat-icon>}\r\n @if(!checked) {<mat-icon title=\"V\u00E6lg alle\" (click)=\"check()\">check_box_outline_blank</mat-icon>}\r\n </div>\r\n }\r\n <input #searchelement [(ngModel)]=\"search\" (ngModelChange)=\"searchChanged()\" [placeholder]=\"title\"\r\n (keydown.esc)=\"onkeyesc($event)\" (keydown.arrowdown)=\"onkeydown($event)\" (keydown.arrowup)=\"onkeyup($event)\"\r\n (keydown.enter)=\"onkeyenter($event)\" \r\n [placeholder]=\"placeholder\" />\r\n <div class=\"therest\"></div>\r\n</div>\r\n}\r\n<div class=\"xrmui-section-content\" [ngClass]=\"{'nosearchortitle': searchable == false && title == ''}\"><ng-content></ng-content></div>", styles: [":host.all{position:absolute;inset:0}:host.all div.xrmui-section-content{position:absolute;inset:50px 1px 1px;overflow-y:auto}:host.all div.xrmui-section-content.nosearchortitle{top:1px}:host{border:solid;border-width:1px 1px 1px 1px;border-color:#d3d3d3;border-style:solid;border-radius:5px;display:block;margin:10px;padding:10px;box-shadow:1px 1px #d3d3d3}:host.nopadding{padding:0}:host.noborder{border:none;border-radius:0;margin:0;padding:0}:host.global{border-color:#4f8a4e}:host.nomargin{margin:0}:host div.toptitle-container{position:relative;width:100%}:host div.toptitle{position:absolute;left:0;right:0;margin-left:auto;margin-right:auto;background-color:gray;color:#fff;padding:1px 20px;max-width:fit-content;display:table;z-index:2;border-radius:15px;border:solid;border-width:1px 1px 1px 1px;border-color:gray}:host div.toptitle{top:-19px}:host div.header{border-width:0 0 1px 0;border-color:#d3d3d3;border-style:solid;font-size:16px;font-weight:700;margin-bottom:15px;padding-top:5px;padding-bottom:5px}:host div.search{border-width:0 0 1px 0;border-color:#d3d3d3;border-style:solid;margin-bottom:15px;padding-top:5px;padding-bottom:5px;display:flex}:host div.therest{flex-grow:1}:host div.chexkbox{width:25px;min-width:25px;max-width:25px}:host input{background-color:transparent;margin:0;border:none;height:29px;padding:0 0 0 15px}:host input[type=number]:focus,:host input[type=number]:hover{pointer-events:none;cursor:text}:host *:focus{outline:none}:host input:focus{outline:none;border:solid;border-width:0 0 2px 0;border-color:#0f6cbd}:host mat-icon{color:gray}\n"] }]
2408
+ }], ctorParameters: () => [], propDecorators: { searchElement: [{
2409
+ type: ViewChild,
2410
+ args: ['searchelement']
2411
+ }], title: [{
2412
+ type: Input,
2413
+ args: ['title']
2414
+ }], topTitle: [{
2415
+ type: Input,
2416
+ args: ['top-title']
2417
+ }], searchable: [{
2418
+ type: Input,
2419
+ args: ['searchable']
2420
+ }], search: [{
2421
+ type: Input,
2422
+ args: ['search']
2423
+ }], placeholder: [{
2424
+ type: Input,
2425
+ args: ['placeholder']
2426
+ }], searchChange: [{
2427
+ type: Output,
2428
+ args: ['searchChange']
2429
+ }], focusSearchTrigger: [{
2430
+ type: Input,
2431
+ args: ['focusSearch']
2432
+ }], focusSearchTriggerChange: [{
2433
+ type: Output,
2434
+ args: ['focusSearchChange']
2435
+ }], checkable: [{
2436
+ type: Input,
2437
+ args: ['checkable']
2438
+ }], checked: [{
2439
+ type: Input,
2440
+ args: ['checked']
2441
+ }], checkChange: [{
2442
+ type: Output,
2443
+ args: ['checkedChange']
2444
+ }], prev: [{
2445
+ type: Output,
2446
+ args: ['prev']
2447
+ }], next: [{
2448
+ type: Output,
2449
+ args: ['next']
2450
+ }], enter: [{
2451
+ type: Output,
2452
+ args: ['enter']
2453
+ }], esc: [{
2454
+ type: Output,
2455
+ args: ['esc']
2456
+ }] } });
2457
+
2329
2458
  class BorutoXrmUIModule {
2330
2459
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: BorutoXrmUIModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2331
2460
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: BorutoXrmUIModule, imports: [XrmuiInfo,
@@ -2338,6 +2467,7 @@ class BorutoXrmUIModule {
2338
2467
  XrmuiButton,
2339
2468
  XrmuiDevider,
2340
2469
  XrmuiTabs,
2470
+ XrmuiSection,
2341
2471
  ChangeScopeDirective,
2342
2472
  FormScopeDirective], exports: [XrmuiInfo,
2343
2473
  XrmuiLayout,
@@ -2349,6 +2479,7 @@ class BorutoXrmUIModule {
2349
2479
  XrmuiButton,
2350
2480
  XrmuiDevider,
2351
2481
  XrmuiTabs,
2482
+ XrmuiSection,
2352
2483
  ChangeScopeDirective,
2353
2484
  FormScopeDirective] });
2354
2485
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: BorutoXrmUIModule, imports: [XrmuiInfo,
@@ -2356,7 +2487,8 @@ class BorutoXrmUIModule {
2356
2487
  XrmuiInput,
2357
2488
  XrmuiSpinner,
2358
2489
  XrmuiButton,
2359
- XrmuiTabs] });
2490
+ XrmuiTabs,
2491
+ XrmuiSection] });
2360
2492
  }
2361
2493
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: BorutoXrmUIModule, decorators: [{
2362
2494
  type: NgModule,
@@ -2372,6 +2504,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
2372
2504
  XrmuiButton,
2373
2505
  XrmuiDevider,
2374
2506
  XrmuiTabs,
2507
+ XrmuiSection,
2375
2508
  ChangeScopeDirective,
2376
2509
  FormScopeDirective,
2377
2510
  ],
@@ -2386,6 +2519,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
2386
2519
  XrmuiButton,
2387
2520
  XrmuiDevider,
2388
2521
  XrmuiTabs,
2522
+ XrmuiSection,
2389
2523
  ChangeScopeDirective,
2390
2524
  FormScopeDirective
2391
2525
  ]
@@ -2400,5 +2534,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
2400
2534
  * Generated bundle index. Do not edit.
2401
2535
  */
2402
2536
 
2403
- export { BorutoXrmUIModule, CTRL_KEYS, ChangeScopeDirective, DECIMALS, DKCustomDateAdapter, FormScopeDirective, KiponUiModule, KoAlertComponent, KoButtonGroupComponent, KoDecimalDirective, KoDivider, KoExpansionPanelComponent, KoFocusDirective, KoHeaderComponent, KoHorizontalScrollComponent, KoHorizontalSplitComponent, KoLeftMenuComponent, KoMainComponent, KoNavigationByCssClass, KoNavigationByImageUrl, KoOverDirective, KoTablePanelComponent, KoTitlePanelComponent, KoTopMenuComponent, KoVerticalScrollComponent, KoVerticalSplitComponent, KoViewComponent, KoWriteDirective, NAVIGATIONKEYS, NUMBERS, XrmuiButton, XrmuiDevider, XrmuiIcon, XrmuiInfo, XrmuiInput, XrmuiLayout, XrmuiPanel, XrmuiRibbon, XrmuiSpinner, XrmuiTabs, nFormater };
2537
+ export { BorutoXrmUIModule, CTRL_KEYS, ChangeScopeDirective, DECIMALS, DKCustomDateAdapter, FormScopeDirective, KiponUiModule, KoAlertComponent, KoButtonGroupComponent, KoDecimalDirective, KoDivider, KoExpansionPanelComponent, KoFocusDirective, KoHeaderComponent, KoHorizontalScrollComponent, KoHorizontalSplitComponent, KoLeftMenuComponent, KoMainComponent, KoNavigationByCssClass, KoNavigationByImageUrl, KoOverDirective, KoTablePanelComponent, KoTitlePanelComponent, KoTopMenuComponent, KoVerticalScrollComponent, KoVerticalSplitComponent, KoViewComponent, KoWriteDirective, NAVIGATIONKEYS, NUMBERS, XrmuiButton, XrmuiDevider, XrmuiIcon, XrmuiInfo, XrmuiInput, XrmuiLayout, XrmuiPanel, XrmuiRibbon, XrmuiSection, XrmuiSpinner, XrmuiTabs, nFormater };
2404
2538
  //# sourceMappingURL=boruto-xrmui.mjs.map