@bizy/core 19.0.27 → 19.0.29
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/fesm2022/bizy-core.mjs +1496 -861
- package/fesm2022/bizy-core.mjs.map +1 -1
- package/lib/modules/accordion/accordion.module.d.ts +7 -0
- package/lib/modules/accordion/index.d.ts +1 -0
- package/lib/modules/audio-player/audio-player.component.d.ts +26 -0
- package/lib/modules/audio-player/audio-player.module.d.ts +7 -0
- package/lib/modules/audio-player/audio-player.types.d.ts +5 -0
- package/lib/modules/audio-player/index.d.ts +3 -0
- package/lib/modules/bar-line-chart/bar-line-chart.module.d.ts +7 -0
- package/lib/modules/bar-line-chart/index.d.ts +1 -0
- package/lib/modules/breadcrumb/breadcrumb.module.d.ts +7 -0
- package/lib/modules/breadcrumb/index.d.ts +1 -0
- package/lib/modules/button/button.module.d.ts +7 -0
- package/lib/modules/button/index.d.ts +1 -0
- package/lib/modules/calendar/calendar.module.d.ts +7 -0
- package/lib/modules/calendar/index.d.ts +2 -1
- package/lib/modules/card/card.module.d.ts +7 -0
- package/lib/modules/card/index.d.ts +1 -0
- package/lib/modules/checkbox/checkbox.module.d.ts +7 -0
- package/lib/modules/checkbox/index.d.ts +1 -0
- package/lib/modules/date-picker/date-picker.module.d.ts +7 -0
- package/lib/modules/date-picker/index.d.ts +1 -0
- package/lib/modules/file-uploader/file-uploader.module.d.ts +7 -0
- package/lib/modules/file-uploader/index.d.ts +1 -0
- package/lib/modules/filter/filter.module.d.ts +14 -0
- package/lib/modules/filter/index.d.ts +1 -0
- package/lib/modules/form/form.module.d.ts +7 -0
- package/lib/modules/form/index.d.ts +1 -0
- package/lib/modules/grid/grid.module.d.ts +9 -0
- package/lib/modules/grid/index.d.ts +1 -0
- package/lib/modules/index.d.ts +3 -2
- package/lib/modules/input/index.d.ts +1 -0
- package/lib/modules/input/input.module.d.ts +8 -0
- package/lib/modules/list/index.d.ts +1 -0
- package/lib/modules/list/list.module.d.ts +7 -0
- package/lib/modules/menu/index.d.ts +1 -0
- package/lib/modules/menu/menu.module.d.ts +9 -0
- package/lib/modules/pie-chart/index.d.ts +2 -1
- package/lib/modules/pie-chart/pie-chart.module.d.ts +7 -0
- package/lib/modules/radio/index.d.ts +1 -0
- package/lib/modules/radio/radio.module.d.ts +7 -0
- package/lib/modules/select/index.d.ts +1 -0
- package/lib/modules/select/select.module.d.ts +8 -0
- package/lib/modules/sidebar/index.d.ts +1 -0
- package/lib/modules/sidebar/sidebar.module.d.ts +10 -0
- package/lib/modules/skeleton/index.d.ts +1 -0
- package/lib/modules/skeleton/skeleton.module.d.ts +7 -0
- package/lib/modules/slider/index.d.ts +1 -0
- package/lib/modules/slider/slider.module.d.ts +7 -0
- package/lib/modules/table/index.d.ts +1 -0
- package/lib/modules/table/table.module.d.ts +15 -0
- package/lib/modules/tabs/index.d.ts +1 -0
- package/lib/modules/tabs/tabs.module.d.ts +8 -0
- package/lib/modules/tag/index.d.ts +2 -1
- package/lib/modules/tag/tag.module.d.ts +7 -0
- package/lib/modules/toggle/index.d.ts +2 -1
- package/lib/modules/toggle/toggle.module.d.ts +7 -0
- package/lib/modules/toolbar/index.d.ts +1 -0
- package/lib/modules/toolbar/toolbar.module.d.ts +7 -0
- package/package.json +1 -1
package/fesm2022/bizy-core.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, ChangeDetectorRef, Output, Input, Inject, ChangeDetectionStrategy, Component, NgModule, Renderer2, ElementRef, Injectable, Directive, ViewChild, ContentChildren, inject, ContentChild, Pipe, ViewContainerRef, TemplateRef, RendererFactory2, HostListener, Host } from '@angular/core';
|
|
1
3
|
import * as i1 from '@angular/common';
|
|
2
4
|
import { CommonModule, DOCUMENT, registerLocaleData, DatePipe } from '@angular/common';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
+
import { Subject, Subscription, BehaviorSubject, filter, take, skip, auditTime, throttleTime, debounceTime as debounceTime$1, interval, fromEvent, merge, timer, of } from 'rxjs';
|
|
6
|
+
import { debounceTime, distinctUntilChanged, takeUntil, map, filter as filter$1, switchMap } from 'rxjs/operators';
|
|
5
7
|
import * as echarts from 'echarts';
|
|
6
8
|
import html2canvas from 'html2canvas';
|
|
7
|
-
import { Subscription, BehaviorSubject, Subject, filter, take, skip, auditTime, throttleTime, debounceTime, interval, fromEvent, merge, timer, of } from 'rxjs';
|
|
8
9
|
import * as i2 from 'angular-calendar';
|
|
9
10
|
import { CalendarNativeDateFormatter, CalendarModule, CalendarUtils, CalendarA11y, CalendarEventTitleFormatter, DateAdapter, CalendarDateFormatter } from 'angular-calendar';
|
|
10
11
|
import { isSameMonth, isSameDay } from 'date-fns';
|
|
@@ -15,7 +16,6 @@ import { FormsModule, Validators, FormBuilder } from '@angular/forms';
|
|
|
15
16
|
import flatpickr from 'flatpickr';
|
|
16
17
|
import monthSelectPlugin from 'flatpickr/dist/plugins/monthSelect/index.js';
|
|
17
18
|
import { Spanish } from 'flatpickr/dist/l10n/es.js';
|
|
18
|
-
import { takeUntil, debounceTime as debounceTime$1, map, filter as filter$1, distinctUntilChanged, switchMap } from 'rxjs/operators';
|
|
19
19
|
import * as i2$2 from '@angular/cdk/overlay';
|
|
20
20
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
21
21
|
import AutoNumeric from 'autonumeric';
|
|
@@ -28,11 +28,11 @@ import * as i3 from '@angular/cdk/portal';
|
|
|
28
28
|
import { TemplatePortal, PortalModule } from '@angular/cdk/portal';
|
|
29
29
|
import * as i2$3 from '@angular/cdk/scrolling';
|
|
30
30
|
import { ScrollingModule, CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import * as i1$2 from '@angular/cdk/drag-drop';
|
|
31
|
+
import * as i1$2 from '@angular/cdk/dialog';
|
|
32
|
+
import { DIALOG_DATA, DialogRef, DialogModule, Dialog } from '@angular/cdk/dialog';
|
|
33
|
+
import * as i1$1 from '@angular/cdk/drag-drop';
|
|
35
34
|
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
35
|
+
import { TranslateService, TranslateModule } from '@ngx-translate/core';
|
|
36
36
|
import * as i1$3 from '@angular/router';
|
|
37
37
|
import { NavigationEnd, NavigationStart, Router } from '@angular/router';
|
|
38
38
|
import { Clipboard } from '@angular/cdk/clipboard';
|
|
@@ -82,6 +82,198 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
82
82
|
type: Output
|
|
83
83
|
}] } });
|
|
84
84
|
|
|
85
|
+
const COMPONENTS$q = [
|
|
86
|
+
BizyAccordionComponent,
|
|
87
|
+
];
|
|
88
|
+
class BizyAccordionModule {
|
|
89
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
90
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyAccordionModule, imports: [BizyAccordionComponent], exports: [BizyAccordionComponent] });
|
|
91
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyAccordionModule, imports: [COMPONENTS$q] });
|
|
92
|
+
}
|
|
93
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyAccordionModule, decorators: [{
|
|
94
|
+
type: NgModule,
|
|
95
|
+
args: [{
|
|
96
|
+
imports: COMPONENTS$q,
|
|
97
|
+
exports: COMPONENTS$q
|
|
98
|
+
}]
|
|
99
|
+
}] });
|
|
100
|
+
|
|
101
|
+
var MIME_TYPE;
|
|
102
|
+
(function (MIME_TYPE) {
|
|
103
|
+
MIME_TYPE["OGG"] = "audio/ogg";
|
|
104
|
+
MIME_TYPE["MPEG"] = "audio/mpeg";
|
|
105
|
+
MIME_TYPE["WAV"] = "audio/wav";
|
|
106
|
+
})(MIME_TYPE || (MIME_TYPE = {}));
|
|
107
|
+
|
|
108
|
+
class BizyButtonComponent {
|
|
109
|
+
id = `bizy-button-${Math.random()}`;
|
|
110
|
+
disabled = false;
|
|
111
|
+
type = 'button';
|
|
112
|
+
customClass = '';
|
|
113
|
+
onSelect = new EventEmitter();
|
|
114
|
+
_focused = false;
|
|
115
|
+
_onSelect(event) {
|
|
116
|
+
if (this.disabled || !this._focused) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
this.onSelect.emit(event);
|
|
120
|
+
}
|
|
121
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
122
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyButtonComponent, isStandalone: true, selector: "bizy-button", inputs: { id: "id", disabled: "disabled", type: "type", customClass: "customClass" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: "<button \n [type]=\"type\"\n [id]=\"id\"\n (focus)=\"_focused = true\"\n (blur)=\"_focused = false\"\n class=\"bizy-button {{customClass}}\"\n [ngClass]=\"{'bizy-button--disabled': disabled}\"\n (click)=\"_focused = true; _onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\">\n <span class=\"bizy-button__content\" (click)=\"_focused = true; _onSelect($event); $event.stopPropagation()\">\n <ng-content></ng-content>\n </span>\n \n</button>\n\n", styles: [":host{font-size:1rem}.bizy-button{display:flex;justify-content:space-between;align-items:center;column-gap:.5rem;width:100%;min-width:var(--bizy-button-min-width);height:100%;padding:var(--bizy-button-padding);border-radius:var(--bizy-button-border-radius);border:var(--bizy-button-border);cursor:pointer;background-color:var(--bizy-button-background-color)}::ng-deep .bizy-button *{color:var(--bizy-button-color);text-wrap:nowrap}.bizy-button:hover{filter:brightness(95%)}.bizy-button__content{width:100%;height:100%;display:flex;justify-content:center;align-items:center;column-gap:.3rem}.bizy-button--disabled{opacity:.5;cursor:not-allowed!important;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
123
|
+
}
|
|
124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyButtonComponent, decorators: [{
|
|
125
|
+
type: Component,
|
|
126
|
+
args: [{ selector: 'bizy-button', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button \n [type]=\"type\"\n [id]=\"id\"\n (focus)=\"_focused = true\"\n (blur)=\"_focused = false\"\n class=\"bizy-button {{customClass}}\"\n [ngClass]=\"{'bizy-button--disabled': disabled}\"\n (click)=\"_focused = true; _onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\">\n <span class=\"bizy-button__content\" (click)=\"_focused = true; _onSelect($event); $event.stopPropagation()\">\n <ng-content></ng-content>\n </span>\n \n</button>\n\n", styles: [":host{font-size:1rem}.bizy-button{display:flex;justify-content:space-between;align-items:center;column-gap:.5rem;width:100%;min-width:var(--bizy-button-min-width);height:100%;padding:var(--bizy-button-padding);border-radius:var(--bizy-button-border-radius);border:var(--bizy-button-border);cursor:pointer;background-color:var(--bizy-button-background-color)}::ng-deep .bizy-button *{color:var(--bizy-button-color);text-wrap:nowrap}.bizy-button:hover{filter:brightness(95%)}.bizy-button__content{width:100%;height:100%;display:flex;justify-content:center;align-items:center;column-gap:.3rem}.bizy-button--disabled{opacity:.5;cursor:not-allowed!important;pointer-events:none}\n"] }]
|
|
127
|
+
}], propDecorators: { id: [{
|
|
128
|
+
type: Input
|
|
129
|
+
}], disabled: [{
|
|
130
|
+
type: Input
|
|
131
|
+
}], type: [{
|
|
132
|
+
type: Input
|
|
133
|
+
}], customClass: [{
|
|
134
|
+
type: Input
|
|
135
|
+
}], onSelect: [{
|
|
136
|
+
type: Output
|
|
137
|
+
}] } });
|
|
138
|
+
|
|
139
|
+
const COMPONENTS$p = [
|
|
140
|
+
BizyButtonComponent,
|
|
141
|
+
];
|
|
142
|
+
class BizyButtonModule {
|
|
143
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
144
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyButtonModule, imports: [BizyButtonComponent], exports: [BizyButtonComponent] });
|
|
145
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyButtonModule, imports: [COMPONENTS$p] });
|
|
146
|
+
}
|
|
147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyButtonModule, decorators: [{
|
|
148
|
+
type: NgModule,
|
|
149
|
+
args: [{
|
|
150
|
+
imports: COMPONENTS$p,
|
|
151
|
+
exports: COMPONENTS$p
|
|
152
|
+
}]
|
|
153
|
+
}] });
|
|
154
|
+
|
|
155
|
+
class BizyAudioPlayerComponent {
|
|
156
|
+
document;
|
|
157
|
+
renderer;
|
|
158
|
+
id = `bizy-audio-player-${Math.random()}`;
|
|
159
|
+
mimeType = MIME_TYPE.MPEG;
|
|
160
|
+
showDownload = true;
|
|
161
|
+
autoplay = false;
|
|
162
|
+
downloadURL;
|
|
163
|
+
downloadFileName = 'bizy_audio';
|
|
164
|
+
onDownload = new EventEmitter();
|
|
165
|
+
onTrackPlayerRate = new EventEmitter();
|
|
166
|
+
set audioURL(audioURL) {
|
|
167
|
+
if (!audioURL) {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
this._audioURL = audioURL;
|
|
171
|
+
this._audioRef = this._audioRef ?? this.document.getElementById(this.id);
|
|
172
|
+
if (this._audioRef) {
|
|
173
|
+
this._audioRef.load();
|
|
174
|
+
if (this.autoplay) {
|
|
175
|
+
this._audioRef.play();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
_audioURL = null;
|
|
180
|
+
_audioRef;
|
|
181
|
+
_playbackRate = 1;
|
|
182
|
+
#trackPlaybackRate$ = new Subject();
|
|
183
|
+
#subscription = new Subscription();
|
|
184
|
+
constructor(document, renderer) {
|
|
185
|
+
this.document = document;
|
|
186
|
+
this.renderer = renderer;
|
|
187
|
+
}
|
|
188
|
+
trackPlayerRate() {
|
|
189
|
+
this.#subscription.add(this.#trackPlaybackRate$.pipe(debounceTime(500), distinctUntilChanged()).subscribe(value => {
|
|
190
|
+
this.onTrackPlayerRate.emit(value);
|
|
191
|
+
}));
|
|
192
|
+
}
|
|
193
|
+
_onTrackPlayerRate() {
|
|
194
|
+
this._audioRef = this._audioRef ?? this.document.getElementById(this.id);
|
|
195
|
+
if (this._audioRef) {
|
|
196
|
+
switch (this._audioRef.playbackRate) {
|
|
197
|
+
case 1:
|
|
198
|
+
this._audioRef.playbackRate = 1.5;
|
|
199
|
+
this._playbackRate = 1.5;
|
|
200
|
+
this.#trackPlaybackRate$.next('1.5');
|
|
201
|
+
break;
|
|
202
|
+
case 1.5:
|
|
203
|
+
this._audioRef.playbackRate = 2;
|
|
204
|
+
this._playbackRate = 2;
|
|
205
|
+
this.#trackPlaybackRate$.next('2');
|
|
206
|
+
break;
|
|
207
|
+
case 2:
|
|
208
|
+
this._audioRef.playbackRate = 1;
|
|
209
|
+
this._playbackRate = 1;
|
|
210
|
+
break;
|
|
211
|
+
default:
|
|
212
|
+
this._audioRef.playbackRate = 1;
|
|
213
|
+
this._playbackRate = 1;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
_onDownload() {
|
|
218
|
+
const downloadButton = this.renderer.createElement('a');
|
|
219
|
+
this.renderer.setAttribute(downloadButton, 'download', this.downloadFileName);
|
|
220
|
+
this.renderer.setProperty(downloadButton, 'href', this.downloadURL);
|
|
221
|
+
this.renderer.appendChild(this.document.body, downloadButton);
|
|
222
|
+
downloadButton.click();
|
|
223
|
+
this.renderer.removeChild(this.document.body, downloadButton);
|
|
224
|
+
this.onDownload.emit();
|
|
225
|
+
}
|
|
226
|
+
ngOnDestroy() {
|
|
227
|
+
this.#subscription.unsubscribe();
|
|
228
|
+
}
|
|
229
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyAudioPlayerComponent, deps: [{ token: DOCUMENT }, { token: Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
230
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyAudioPlayerComponent, isStandalone: true, selector: "bizy-audio-player", inputs: { id: "id", mimeType: "mimeType", showDownload: "showDownload", autoplay: "autoplay", downloadURL: "downloadURL", downloadFileName: "downloadFileName", audioURL: "audioURL" }, outputs: { onDownload: "onDownload", onTrackPlayerRate: "onTrackPlayerRate" }, ngImport: i0, template: "<div class=\"bizy-audio-player-component\">\n\n <span class=\"bizy-audio-player__audio-controls\">\n\n <audio\n *ngIf=\"_audioURL\" \n [id]=\"id\"\n [autoplay]=\"autoplay\"\n controls\n controlslist=\"nodownload noplaybackrate\">\n <source [src]=\"_audioURL\" [type]=\"mimeType\">\n {{audioPlayerError}}\n </audio>\n\n <bizy-button customClass=\"bizy-audio-player__audio-controls__playback-rate\" (onSelect)=\"_onTrackPlayerRate()\">\n <span>{{_playbackRate}}x</span>\n </bizy-button>\n\n <bizy-button customClass=\"bizy-audio-player__download-button\" *ngIf=\"showDownload\" (onSelect)=\"_onDownload()\">\n <svg \n class=\"bizy-audio-player__download-button__icon\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"/><polyline points=\"7 10 12 15 17 10\"/><line x1=\"12\" x2=\"12\" y1=\"15\" y2=\"3\"/>\n </svg>\n </bizy-button>\n\n </span>\n\n</div>", styles: [":host{font-size:1rem}.bizy-audio-player-component{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;row-gap:2rem}.bizy-audio-player__audio-controls{width:100%;display:flex;align-items:center;column-gap:1rem}::ng-deep .bizy-audio-player__audio-controls__playback-rate{font-size:1rem;--bizy-button-background-color: var(--bizy-audio-player-playback-rate-background-color);--bizy-button-color: var(--bizy-audio-player-playback-rate-color);font-weight:700;border-radius:50%!important;width:4rem;height:2rem;display:grid;place-items:center;cursor:pointer}::ng-deep .bizy-audio-player__download-button{--bizy-button-background-color: var(--bizy-audio-player-download-button-background-color);--bizy-button-color: var(--bizy-audio-player-download-button-color)}.bizy-audio-player__download-button__icon{height:1rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: BizyButtonModule }, { kind: "component", type: BizyButtonComponent, selector: "bizy-button", inputs: ["id", "disabled", "type", "customClass"], outputs: ["onSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
231
|
+
}
|
|
232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyAudioPlayerComponent, decorators: [{
|
|
233
|
+
type: Component,
|
|
234
|
+
args: [{ selector: 'bizy-audio-player', imports: [CommonModule, BizyButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"bizy-audio-player-component\">\n\n <span class=\"bizy-audio-player__audio-controls\">\n\n <audio\n *ngIf=\"_audioURL\" \n [id]=\"id\"\n [autoplay]=\"autoplay\"\n controls\n controlslist=\"nodownload noplaybackrate\">\n <source [src]=\"_audioURL\" [type]=\"mimeType\">\n {{audioPlayerError}}\n </audio>\n\n <bizy-button customClass=\"bizy-audio-player__audio-controls__playback-rate\" (onSelect)=\"_onTrackPlayerRate()\">\n <span>{{_playbackRate}}x</span>\n </bizy-button>\n\n <bizy-button customClass=\"bizy-audio-player__download-button\" *ngIf=\"showDownload\" (onSelect)=\"_onDownload()\">\n <svg \n class=\"bizy-audio-player__download-button__icon\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"/><polyline points=\"7 10 12 15 17 10\"/><line x1=\"12\" x2=\"12\" y1=\"15\" y2=\"3\"/>\n </svg>\n </bizy-button>\n\n </span>\n\n</div>", styles: [":host{font-size:1rem}.bizy-audio-player-component{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;row-gap:2rem}.bizy-audio-player__audio-controls{width:100%;display:flex;align-items:center;column-gap:1rem}::ng-deep .bizy-audio-player__audio-controls__playback-rate{font-size:1rem;--bizy-button-background-color: var(--bizy-audio-player-playback-rate-background-color);--bizy-button-color: var(--bizy-audio-player-playback-rate-color);font-weight:700;border-radius:50%!important;width:4rem;height:2rem;display:grid;place-items:center;cursor:pointer}::ng-deep .bizy-audio-player__download-button{--bizy-button-background-color: var(--bizy-audio-player-download-button-background-color);--bizy-button-color: var(--bizy-audio-player-download-button-color)}.bizy-audio-player__download-button__icon{height:1rem}\n"] }]
|
|
235
|
+
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
236
|
+
type: Inject,
|
|
237
|
+
args: [DOCUMENT]
|
|
238
|
+
}] }, { type: i0.Renderer2, decorators: [{
|
|
239
|
+
type: Inject,
|
|
240
|
+
args: [Renderer2]
|
|
241
|
+
}] }], propDecorators: { id: [{
|
|
242
|
+
type: Input
|
|
243
|
+
}], mimeType: [{
|
|
244
|
+
type: Input
|
|
245
|
+
}], showDownload: [{
|
|
246
|
+
type: Input
|
|
247
|
+
}], autoplay: [{
|
|
248
|
+
type: Input
|
|
249
|
+
}], downloadURL: [{
|
|
250
|
+
type: Input
|
|
251
|
+
}], downloadFileName: [{
|
|
252
|
+
type: Input
|
|
253
|
+
}], onDownload: [{
|
|
254
|
+
type: Output
|
|
255
|
+
}], onTrackPlayerRate: [{
|
|
256
|
+
type: Output
|
|
257
|
+
}], audioURL: [{
|
|
258
|
+
type: Input
|
|
259
|
+
}] } });
|
|
260
|
+
|
|
261
|
+
const COMPONENTS$o = [
|
|
262
|
+
BizyAudioPlayerComponent,
|
|
263
|
+
];
|
|
264
|
+
class BizyAudioPlayerModule {
|
|
265
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyAudioPlayerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
266
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyAudioPlayerModule, imports: [BizyAudioPlayerComponent], exports: [BizyAudioPlayerComponent] });
|
|
267
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyAudioPlayerModule, imports: [COMPONENTS$o] });
|
|
268
|
+
}
|
|
269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyAudioPlayerModule, decorators: [{
|
|
270
|
+
type: NgModule,
|
|
271
|
+
args: [{
|
|
272
|
+
imports: COMPONENTS$o,
|
|
273
|
+
exports: COMPONENTS$o
|
|
274
|
+
}]
|
|
275
|
+
}] });
|
|
276
|
+
|
|
85
277
|
const MIN_CHART_SIZE$1 = 350; // px;
|
|
86
278
|
const Y_AXIS_OFFSET = 80;
|
|
87
279
|
const GRID_BOTTOM = 30;
|
|
@@ -451,6 +643,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
451
643
|
type: Input
|
|
452
644
|
}] } });
|
|
453
645
|
|
|
646
|
+
const COMPONENTS$n = [
|
|
647
|
+
BizyBarLineChartComponent,
|
|
648
|
+
];
|
|
649
|
+
class BizyBarLineChartModule {
|
|
650
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyBarLineChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
651
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyBarLineChartModule, imports: [BizyBarLineChartComponent], exports: [BizyBarLineChartComponent] });
|
|
652
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyBarLineChartModule, imports: [COMPONENTS$n] });
|
|
653
|
+
}
|
|
654
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyBarLineChartModule, decorators: [{
|
|
655
|
+
type: NgModule,
|
|
656
|
+
args: [{
|
|
657
|
+
imports: COMPONENTS$n,
|
|
658
|
+
exports: COMPONENTS$n
|
|
659
|
+
}]
|
|
660
|
+
}] });
|
|
661
|
+
|
|
454
662
|
class BizyBreadcrumbComponent {
|
|
455
663
|
ref;
|
|
456
664
|
onSelect = new EventEmitter();
|
|
@@ -508,36 +716,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
508
716
|
type: Input
|
|
509
717
|
}] } });
|
|
510
718
|
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
_onSelect(event) {
|
|
519
|
-
if (this.disabled || !this._focused) {
|
|
520
|
-
return;
|
|
521
|
-
}
|
|
522
|
-
this.onSelect.emit(event);
|
|
523
|
-
}
|
|
524
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
525
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyButtonComponent, isStandalone: true, selector: "bizy-button", inputs: { id: "id", disabled: "disabled", type: "type", customClass: "customClass" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: "<button \n [type]=\"type\"\n [id]=\"id\"\n (focus)=\"_focused = true\"\n (blur)=\"_focused = false\"\n class=\"bizy-button {{customClass}}\"\n [ngClass]=\"{'bizy-button--disabled': disabled}\"\n (click)=\"_focused = true; _onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\">\n <span class=\"bizy-button__content\" (click)=\"_focused = true; _onSelect($event); $event.stopPropagation()\">\n <ng-content></ng-content>\n </span>\n \n</button>\n\n", styles: [":host{font-size:1rem}.bizy-button{display:flex;justify-content:space-between;align-items:center;column-gap:.5rem;width:100%;min-width:var(--bizy-button-min-width);height:100%;padding:var(--bizy-button-padding);border-radius:var(--bizy-button-border-radius);border:var(--bizy-button-border);cursor:pointer;background-color:var(--bizy-button-background-color)}::ng-deep .bizy-button *{color:var(--bizy-button-color);text-wrap:nowrap}.bizy-button:hover{filter:brightness(95%)}.bizy-button__content{width:100%;height:100%;display:flex;justify-content:center;align-items:center;column-gap:.3rem}.bizy-button--disabled{opacity:.5;cursor:not-allowed!important;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
719
|
+
const COMPONENTS$m = [
|
|
720
|
+
BizyBreadcrumbComponent,
|
|
721
|
+
];
|
|
722
|
+
class BizyBreadcrumbModule {
|
|
723
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyBreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
724
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyBreadcrumbModule, imports: [BizyBreadcrumbComponent], exports: [BizyBreadcrumbComponent] });
|
|
725
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyBreadcrumbModule, imports: [COMPONENTS$m] });
|
|
526
726
|
}
|
|
527
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type:
|
|
528
|
-
type:
|
|
529
|
-
args: [{
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
}], type: [{
|
|
535
|
-
type: Input
|
|
536
|
-
}], customClass: [{
|
|
537
|
-
type: Input
|
|
538
|
-
}], onSelect: [{
|
|
539
|
-
type: Output
|
|
540
|
-
}] } });
|
|
727
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyBreadcrumbModule, decorators: [{
|
|
728
|
+
type: NgModule,
|
|
729
|
+
args: [{
|
|
730
|
+
imports: COMPONENTS$m,
|
|
731
|
+
exports: COMPONENTS$m
|
|
732
|
+
}]
|
|
733
|
+
}] });
|
|
541
734
|
|
|
542
735
|
var BIZY_CALENDAR_MODE;
|
|
543
736
|
(function (BIZY_CALENDAR_MODE) {
|
|
@@ -796,6 +989,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
796
989
|
type: Input
|
|
797
990
|
}] } });
|
|
798
991
|
|
|
992
|
+
const COMPONENTS$l = [
|
|
993
|
+
BizyCalendarComponent,
|
|
994
|
+
];
|
|
995
|
+
class BizyCalendarModule {
|
|
996
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
997
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyCalendarModule, imports: [BizyCalendarComponent], exports: [BizyCalendarComponent] });
|
|
998
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyCalendarModule, imports: [COMPONENTS$l] });
|
|
999
|
+
}
|
|
1000
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyCalendarModule, decorators: [{
|
|
1001
|
+
type: NgModule,
|
|
1002
|
+
args: [{
|
|
1003
|
+
imports: COMPONENTS$l,
|
|
1004
|
+
exports: COMPONENTS$l
|
|
1005
|
+
}]
|
|
1006
|
+
}] });
|
|
1007
|
+
|
|
799
1008
|
class BizyCardComponent {
|
|
800
1009
|
id = `bizy-card-${Math.random()}`;
|
|
801
1010
|
disabled = false;
|
|
@@ -826,6 +1035,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
826
1035
|
type: Output
|
|
827
1036
|
}] } });
|
|
828
1037
|
|
|
1038
|
+
const COMPONENTS$k = [
|
|
1039
|
+
BizyCardComponent,
|
|
1040
|
+
];
|
|
1041
|
+
class BizyCardModule {
|
|
1042
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1043
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyCardModule, imports: [BizyCardComponent], exports: [BizyCardComponent] });
|
|
1044
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyCardModule, imports: [COMPONENTS$k] });
|
|
1045
|
+
}
|
|
1046
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyCardModule, decorators: [{
|
|
1047
|
+
type: NgModule,
|
|
1048
|
+
args: [{
|
|
1049
|
+
imports: COMPONENTS$k,
|
|
1050
|
+
exports: COMPONENTS$k
|
|
1051
|
+
}]
|
|
1052
|
+
}] });
|
|
1053
|
+
|
|
829
1054
|
class BizyCheckboxComponent {
|
|
830
1055
|
id = `bizy-checkbox-${Math.random()}`;
|
|
831
1056
|
selected = false;
|
|
@@ -858,6 +1083,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
858
1083
|
type: Output
|
|
859
1084
|
}] } });
|
|
860
1085
|
|
|
1086
|
+
const COMPONENTS$j = [
|
|
1087
|
+
BizyCheckboxComponent,
|
|
1088
|
+
];
|
|
1089
|
+
class BizyCheckboxModule {
|
|
1090
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1091
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyCheckboxModule, imports: [BizyCheckboxComponent], exports: [BizyCheckboxComponent] });
|
|
1092
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyCheckboxModule, imports: [COMPONENTS$j] });
|
|
1093
|
+
}
|
|
1094
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyCheckboxModule, decorators: [{
|
|
1095
|
+
type: NgModule,
|
|
1096
|
+
args: [{
|
|
1097
|
+
imports: COMPONENTS$j,
|
|
1098
|
+
exports: COMPONENTS$j
|
|
1099
|
+
}]
|
|
1100
|
+
}] });
|
|
1101
|
+
|
|
861
1102
|
class BizyInputOptionComponent {
|
|
862
1103
|
ref;
|
|
863
1104
|
id = `bizy-input-${Math.random()}`;
|
|
@@ -1059,7 +1300,7 @@ class BizyInputComponent {
|
|
|
1059
1300
|
if (this.type === 'currency' && this.bizyInput.nativeElement.setValue) {
|
|
1060
1301
|
this.bizyInput.nativeElement.setValue(this._currencyValue);
|
|
1061
1302
|
}
|
|
1062
|
-
this.#subscription.add(this.onChange$.pipe(debounceTime(this.debounceTime)).subscribe(value => {
|
|
1303
|
+
this.#subscription.add(this.onChange$.pipe(debounceTime$1(this.debounceTime)).subscribe(value => {
|
|
1063
1304
|
this.valueChange.emit(value);
|
|
1064
1305
|
this.onChange.emit(value);
|
|
1065
1306
|
}));
|
|
@@ -1368,6 +1609,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
1368
1609
|
type: Input
|
|
1369
1610
|
}] } });
|
|
1370
1611
|
|
|
1612
|
+
const COMPONENTS$i = [
|
|
1613
|
+
BizyDatePickerComponent,
|
|
1614
|
+
];
|
|
1615
|
+
class BizyDatePickerModule {
|
|
1616
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyDatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1617
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyDatePickerModule, imports: [BizyDatePickerComponent], exports: [BizyDatePickerComponent] });
|
|
1618
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyDatePickerModule, imports: [COMPONENTS$i] });
|
|
1619
|
+
}
|
|
1620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyDatePickerModule, decorators: [{
|
|
1621
|
+
type: NgModule,
|
|
1622
|
+
args: [{
|
|
1623
|
+
imports: COMPONENTS$i,
|
|
1624
|
+
exports: COMPONENTS$i
|
|
1625
|
+
}]
|
|
1626
|
+
}] });
|
|
1627
|
+
|
|
1371
1628
|
const ES = {
|
|
1372
1629
|
...es_ES,
|
|
1373
1630
|
strings: {
|
|
@@ -1704,161 +1961,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
1704
1961
|
type: Output
|
|
1705
1962
|
}] } });
|
|
1706
1963
|
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1964
|
+
const COMPONENTS$h = [
|
|
1965
|
+
BizyFileUploaderComponent,
|
|
1966
|
+
];
|
|
1967
|
+
class BizyFileUploaderModule {
|
|
1968
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFileUploaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1969
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyFileUploaderModule, imports: [BizyFileUploaderComponent], exports: [BizyFileUploaderComponent] });
|
|
1970
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFileUploaderModule, providers: [BizyFileUploaderService] });
|
|
1710
1971
|
}
|
|
1711
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type:
|
|
1712
|
-
type:
|
|
1713
|
-
args: [{
|
|
1972
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFileUploaderModule, decorators: [{
|
|
1973
|
+
type: NgModule,
|
|
1974
|
+
args: [{
|
|
1975
|
+
imports: COMPONENTS$h,
|
|
1976
|
+
exports: COMPONENTS$h,
|
|
1977
|
+
providers: [BizyFileUploaderService]
|
|
1978
|
+
}]
|
|
1714
1979
|
}] });
|
|
1715
1980
|
|
|
1716
|
-
class
|
|
1981
|
+
class BizyFilterSectionRangeOptionComponent {
|
|
1982
|
+
fb;
|
|
1717
1983
|
ref;
|
|
1718
|
-
id = `bizy-filter-section-
|
|
1984
|
+
id = `bizy-filter-section-range-option-${Math.random()}`;
|
|
1985
|
+
disabled = false;
|
|
1719
1986
|
customClass = '';
|
|
1720
|
-
valueChange = new EventEmitter();
|
|
1721
1987
|
onChange = new EventEmitter();
|
|
1722
|
-
|
|
1988
|
+
_minLimit;
|
|
1989
|
+
_maxLimit;
|
|
1723
1990
|
#activated = new BehaviorSubject(false);
|
|
1724
1991
|
get activated$() {
|
|
1725
1992
|
return this.#activated.asObservable();
|
|
1726
1993
|
}
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1994
|
+
form;
|
|
1995
|
+
set min(min) {
|
|
1996
|
+
if (typeof min === 'undefined' || min === null) {
|
|
1997
|
+
this.minValue.setValue(null);
|
|
1730
1998
|
}
|
|
1731
|
-
|
|
1732
|
-
|
|
1999
|
+
else {
|
|
2000
|
+
this.minValue.setValue(min);
|
|
1733
2001
|
}
|
|
1734
|
-
this.
|
|
1735
|
-
this.#activated.next(Boolean(value));
|
|
2002
|
+
this.#activated.next(Boolean(min));
|
|
1736
2003
|
this.ref.detectChanges();
|
|
1737
2004
|
}
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
getId = () => {
|
|
1748
|
-
return this.id;
|
|
1749
|
-
};
|
|
1750
|
-
getValue = () => {
|
|
1751
|
-
return this._value;
|
|
1752
|
-
};
|
|
1753
|
-
isActivated = () => {
|
|
1754
|
-
return this.#activated.value;
|
|
1755
|
-
};
|
|
1756
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterSectionSearchOptionComponent, deps: [{ token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1757
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyFilterSectionSearchOptionComponent, isStandalone: true, selector: "bizy-filter-section-search-option", inputs: { id: "id", customClass: "customClass", value: "value" }, outputs: { valueChange: "valueChange", onChange: "onChange" }, ngImport: i0, template: "<bizy-input\n [id]=\"id\" \n (onChange)=\"_onChange($event)\"\n [value]=\"_value\"\n class=\"bizy-filter-section-search-option {{customClass}}\">\n\n <span slot=\"header\"></span>\n\n <ng-container slot=\"prefix\">\n <ng-content select=\"[slot=prefix]\"></ng-content>\n </ng-container>\n\n <ng-container slot=\"suffix\">\n <ng-content select=\"[slot=suffix]\"></ng-content>\n </ng-container>\n\n</bizy-input>\n", styles: [":host{font-size:1rem;width:100%}.bizy-filter-section-search-option{--bizy-input-background-color: #f3f3f3 !important}\n"], dependencies: [{ kind: "component", type: BizyInputComponent, selector: "bizy-input", inputs: ["id", "name", "type", "customClass", "placeholder", "debounceTime", "rows", "disabled", "readonly", "autofocus", "value"], outputs: ["valueChange", "onChange", "onEnter", "onBackspace", "onSelect", "onBlur", "onFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1758
|
-
}
|
|
1759
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterSectionSearchOptionComponent, decorators: [{
|
|
1760
|
-
type: Component,
|
|
1761
|
-
args: [{ selector: 'bizy-filter-section-search-option', imports: [BizyInputComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bizy-input\n [id]=\"id\" \n (onChange)=\"_onChange($event)\"\n [value]=\"_value\"\n class=\"bizy-filter-section-search-option {{customClass}}\">\n\n <span slot=\"header\"></span>\n\n <ng-container slot=\"prefix\">\n <ng-content select=\"[slot=prefix]\"></ng-content>\n </ng-container>\n\n <ng-container slot=\"suffix\">\n <ng-content select=\"[slot=suffix]\"></ng-content>\n </ng-container>\n\n</bizy-input>\n", styles: [":host{font-size:1rem;width:100%}.bizy-filter-section-search-option{--bizy-input-background-color: #f3f3f3 !important}\n"] }]
|
|
1762
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
|
|
1763
|
-
type: Inject,
|
|
1764
|
-
args: [ChangeDetectorRef]
|
|
1765
|
-
}] }], propDecorators: { id: [{
|
|
1766
|
-
type: Input
|
|
1767
|
-
}], customClass: [{
|
|
1768
|
-
type: Input
|
|
1769
|
-
}], valueChange: [{
|
|
1770
|
-
type: Output
|
|
1771
|
-
}], onChange: [{
|
|
1772
|
-
type: Output
|
|
1773
|
-
}], value: [{
|
|
1774
|
-
type: Input
|
|
1775
|
-
}] } });
|
|
1776
|
-
|
|
1777
|
-
class BizyFilterSectionCheckboxOptionComponent {
|
|
1778
|
-
ref;
|
|
1779
|
-
id = `bizy-filter-section-checkbox-option-${Math.random()}`;
|
|
1780
|
-
disabled = false;
|
|
1781
|
-
customClass = '';
|
|
1782
|
-
onChange = new EventEmitter();
|
|
1783
|
-
set selected(selected) {
|
|
1784
|
-
if (typeof selected === 'undefined' || selected === null) {
|
|
1785
|
-
return;
|
|
1786
|
-
}
|
|
1787
|
-
this._selected = selected;
|
|
1788
|
-
this.onSelect(selected);
|
|
1789
|
-
}
|
|
1790
|
-
_selected = true;
|
|
1791
|
-
constructor(ref) {
|
|
1792
|
-
this.ref = ref;
|
|
1793
|
-
}
|
|
1794
|
-
onSelect = (selected) => {
|
|
1795
|
-
if (this.disabled) {
|
|
1796
|
-
return;
|
|
1797
|
-
}
|
|
1798
|
-
this._selected = selected;
|
|
1799
|
-
this.onChange.emit(selected);
|
|
1800
|
-
this.ref.detectChanges();
|
|
1801
|
-
};
|
|
1802
|
-
getSelected = () => {
|
|
1803
|
-
return this._selected;
|
|
1804
|
-
};
|
|
1805
|
-
getId = () => {
|
|
1806
|
-
return this.id;
|
|
1807
|
-
};
|
|
1808
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterSectionCheckboxOptionComponent, deps: [{ token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1809
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyFilterSectionCheckboxOptionComponent, isStandalone: true, selector: "bizy-filter-section-checkbox-option", inputs: { id: "id", disabled: "disabled", customClass: "customClass", selected: "selected" }, outputs: { onChange: "onChange" }, ngImport: i0, template: "<div \n class=\"bizy-filter-section-checkbox-option {{customClass}}\"\n [id]=\"id\"\n (click)=\"onSelect(!_selected)\"\n (keyup.enter)=\"onSelect(!_selected)\">\n\n <ng-content></ng-content>\n\n <bizy-checkbox \n class=\"bizy-filter-section-checkbox-option__checkbox\"\n [selected]=\"_selected\"\n [disabled]=\"disabled\">\n </bizy-checkbox>\n \n</div>", styles: [":host{font-size:1rem}.bizy-filter-section-checkbox-option{display:flex;align-items:center;column-gap:.3rem;justify-content:space-between;cursor:pointer}.bizy-filter-section-checkbox-option__checkbox{pointer-events:none}\n"], dependencies: [{ kind: "component", type: BizyCheckboxComponent, selector: "bizy-checkbox", inputs: ["id", "selected", "disabled"], outputs: ["selectedChange", "onSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1810
|
-
}
|
|
1811
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterSectionCheckboxOptionComponent, decorators: [{
|
|
1812
|
-
type: Component,
|
|
1813
|
-
args: [{ selector: 'bizy-filter-section-checkbox-option', imports: [BizyCheckboxComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div \n class=\"bizy-filter-section-checkbox-option {{customClass}}\"\n [id]=\"id\"\n (click)=\"onSelect(!_selected)\"\n (keyup.enter)=\"onSelect(!_selected)\">\n\n <ng-content></ng-content>\n\n <bizy-checkbox \n class=\"bizy-filter-section-checkbox-option__checkbox\"\n [selected]=\"_selected\"\n [disabled]=\"disabled\">\n </bizy-checkbox>\n \n</div>", styles: [":host{font-size:1rem}.bizy-filter-section-checkbox-option{display:flex;align-items:center;column-gap:.3rem;justify-content:space-between;cursor:pointer}.bizy-filter-section-checkbox-option__checkbox{pointer-events:none}\n"] }]
|
|
1814
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
|
|
1815
|
-
type: Inject,
|
|
1816
|
-
args: [ChangeDetectorRef]
|
|
1817
|
-
}] }], propDecorators: { id: [{
|
|
1818
|
-
type: Input
|
|
1819
|
-
}], disabled: [{
|
|
1820
|
-
type: Input
|
|
1821
|
-
}], customClass: [{
|
|
1822
|
-
type: Input
|
|
1823
|
-
}], onChange: [{
|
|
1824
|
-
type: Output
|
|
1825
|
-
}], selected: [{
|
|
1826
|
-
type: Input
|
|
1827
|
-
}] } });
|
|
1828
|
-
|
|
1829
|
-
class BizyFilterSectionRangeOptionComponent {
|
|
1830
|
-
fb;
|
|
1831
|
-
ref;
|
|
1832
|
-
id = `bizy-filter-section-range-option-${Math.random()}`;
|
|
1833
|
-
disabled = false;
|
|
1834
|
-
customClass = '';
|
|
1835
|
-
onChange = new EventEmitter();
|
|
1836
|
-
_minLimit;
|
|
1837
|
-
_maxLimit;
|
|
1838
|
-
#activated = new BehaviorSubject(false);
|
|
1839
|
-
get activated$() {
|
|
1840
|
-
return this.#activated.asObservable();
|
|
1841
|
-
}
|
|
1842
|
-
form;
|
|
1843
|
-
set min(min) {
|
|
1844
|
-
if (typeof min === 'undefined' || min === null) {
|
|
1845
|
-
this.minValue.setValue(null);
|
|
1846
|
-
}
|
|
1847
|
-
else {
|
|
1848
|
-
this.minValue.setValue(min);
|
|
1849
|
-
}
|
|
1850
|
-
this.#activated.next(Boolean(min));
|
|
1851
|
-
this.ref.detectChanges();
|
|
1852
|
-
}
|
|
1853
|
-
;
|
|
1854
|
-
set max(max) {
|
|
1855
|
-
if (typeof max === 'undefined' || max === null) {
|
|
1856
|
-
this.maxValue.setValue(null);
|
|
1857
|
-
}
|
|
1858
|
-
else {
|
|
1859
|
-
this.maxValue.setValue(max);
|
|
1860
|
-
}
|
|
1861
|
-
this.#activated.next(Boolean(max));
|
|
2005
|
+
;
|
|
2006
|
+
set max(max) {
|
|
2007
|
+
if (typeof max === 'undefined' || max === null) {
|
|
2008
|
+
this.maxValue.setValue(null);
|
|
2009
|
+
}
|
|
2010
|
+
else {
|
|
2011
|
+
this.maxValue.setValue(max);
|
|
2012
|
+
}
|
|
2013
|
+
this.#activated.next(Boolean(max));
|
|
1862
2014
|
this.ref.detectChanges();
|
|
1863
2015
|
}
|
|
1864
2016
|
;
|
|
@@ -1971,92 +2123,118 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
1971
2123
|
type: Input
|
|
1972
2124
|
}] } });
|
|
1973
2125
|
|
|
1974
|
-
class
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
if (_selected.length === states.length) {
|
|
1984
|
-
return items;
|
|
2126
|
+
class BizyFilterSectionCheckboxOptionComponent {
|
|
2127
|
+
ref;
|
|
2128
|
+
id = `bizy-filter-section-checkbox-option-${Math.random()}`;
|
|
2129
|
+
disabled = false;
|
|
2130
|
+
customClass = '';
|
|
2131
|
+
onChange = new EventEmitter();
|
|
2132
|
+
set selected(selected) {
|
|
2133
|
+
if (typeof selected === 'undefined' || selected === null) {
|
|
2134
|
+
return;
|
|
1985
2135
|
}
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
if (!state.selected) {
|
|
1989
|
-
return;
|
|
1990
|
-
}
|
|
1991
|
-
const res = items.filter(_item => {
|
|
1992
|
-
let _state = _item;
|
|
1993
|
-
const nestedProperty = property.split('.');
|
|
1994
|
-
nestedProperty.forEach(_property => {
|
|
1995
|
-
_state = _state[_property];
|
|
1996
|
-
});
|
|
1997
|
-
if (typeof state.id === 'boolean') {
|
|
1998
|
-
return Boolean(_state) === state.id;
|
|
1999
|
-
}
|
|
2000
|
-
if (Array.isArray(_state)) {
|
|
2001
|
-
return _state.includes(state.id);
|
|
2002
|
-
}
|
|
2003
|
-
return _state === state.id;
|
|
2004
|
-
});
|
|
2005
|
-
output = output.concat(res);
|
|
2006
|
-
});
|
|
2007
|
-
let map = new Map();
|
|
2008
|
-
output.forEach(obj => map.set(JSON.stringify(obj), obj));
|
|
2009
|
-
const uniqueArray = Array.from(map.values());
|
|
2010
|
-
return uniqueArray;
|
|
2136
|
+
this._selected = selected;
|
|
2137
|
+
this.onSelect(selected);
|
|
2011
2138
|
}
|
|
2012
|
-
|
|
2013
|
-
|
|
2139
|
+
_selected = true;
|
|
2140
|
+
constructor(ref) {
|
|
2141
|
+
this.ref = ref;
|
|
2142
|
+
}
|
|
2143
|
+
onSelect = (selected) => {
|
|
2144
|
+
if (this.disabled) {
|
|
2145
|
+
return;
|
|
2146
|
+
}
|
|
2147
|
+
this._selected = selected;
|
|
2148
|
+
this.onChange.emit(selected);
|
|
2149
|
+
this.ref.detectChanges();
|
|
2150
|
+
};
|
|
2151
|
+
getSelected = () => {
|
|
2152
|
+
return this._selected;
|
|
2153
|
+
};
|
|
2154
|
+
getId = () => {
|
|
2155
|
+
return this.id;
|
|
2156
|
+
};
|
|
2157
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterSectionCheckboxOptionComponent, deps: [{ token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2158
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyFilterSectionCheckboxOptionComponent, isStandalone: true, selector: "bizy-filter-section-checkbox-option", inputs: { id: "id", disabled: "disabled", customClass: "customClass", selected: "selected" }, outputs: { onChange: "onChange" }, ngImport: i0, template: "<div \n class=\"bizy-filter-section-checkbox-option {{customClass}}\"\n [id]=\"id\"\n (click)=\"onSelect(!_selected)\"\n (keyup.enter)=\"onSelect(!_selected)\">\n\n <ng-content></ng-content>\n\n <bizy-checkbox \n class=\"bizy-filter-section-checkbox-option__checkbox\"\n [selected]=\"_selected\"\n [disabled]=\"disabled\">\n </bizy-checkbox>\n \n</div>", styles: [":host{font-size:1rem}.bizy-filter-section-checkbox-option{display:flex;align-items:center;column-gap:.3rem;justify-content:space-between;cursor:pointer}.bizy-filter-section-checkbox-option__checkbox{pointer-events:none}\n"], dependencies: [{ kind: "component", type: BizyCheckboxComponent, selector: "bizy-checkbox", inputs: ["id", "selected", "disabled"], outputs: ["selectedChange", "onSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2014
2159
|
}
|
|
2015
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type:
|
|
2016
|
-
type:
|
|
2017
|
-
args: [{
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterSectionCheckboxOptionComponent, decorators: [{
|
|
2161
|
+
type: Component,
|
|
2162
|
+
args: [{ selector: 'bizy-filter-section-checkbox-option', imports: [BizyCheckboxComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div \n class=\"bizy-filter-section-checkbox-option {{customClass}}\"\n [id]=\"id\"\n (click)=\"onSelect(!_selected)\"\n (keyup.enter)=\"onSelect(!_selected)\">\n\n <ng-content></ng-content>\n\n <bizy-checkbox \n class=\"bizy-filter-section-checkbox-option__checkbox\"\n [selected]=\"_selected\"\n [disabled]=\"disabled\">\n </bizy-checkbox>\n \n</div>", styles: [":host{font-size:1rem}.bizy-filter-section-checkbox-option{display:flex;align-items:center;column-gap:.3rem;justify-content:space-between;cursor:pointer}.bizy-filter-section-checkbox-option__checkbox{pointer-events:none}\n"] }]
|
|
2163
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
|
|
2164
|
+
type: Inject,
|
|
2165
|
+
args: [ChangeDetectorRef]
|
|
2166
|
+
}] }], propDecorators: { id: [{
|
|
2167
|
+
type: Input
|
|
2168
|
+
}], disabled: [{
|
|
2169
|
+
type: Input
|
|
2170
|
+
}], customClass: [{
|
|
2171
|
+
type: Input
|
|
2172
|
+
}], onChange: [{
|
|
2173
|
+
type: Output
|
|
2174
|
+
}], selected: [{
|
|
2175
|
+
type: Input
|
|
2176
|
+
}] } });
|
|
2021
2177
|
|
|
2022
|
-
class
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2178
|
+
class BizyFilterSectionSearchOptionComponent {
|
|
2179
|
+
ref;
|
|
2180
|
+
id = `bizy-filter-section-search-option-${Math.random()}`;
|
|
2181
|
+
customClass = '';
|
|
2182
|
+
valueChange = new EventEmitter();
|
|
2183
|
+
onChange = new EventEmitter();
|
|
2184
|
+
_value = '';
|
|
2185
|
+
#activated = new BehaviorSubject(false);
|
|
2186
|
+
get activated$() {
|
|
2187
|
+
return this.#activated.asObservable();
|
|
2188
|
+
}
|
|
2189
|
+
set value(value) {
|
|
2190
|
+
if (typeof value === 'undefined' || value === null) {
|
|
2191
|
+
return;
|
|
2026
2192
|
}
|
|
2027
|
-
if (
|
|
2028
|
-
|
|
2193
|
+
if (Array.isArray(value)) {
|
|
2194
|
+
value = '';
|
|
2029
2195
|
}
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
const output = items.filter(_item => {
|
|
2034
|
-
let _value = _item;
|
|
2035
|
-
const nestedProperty = property.split('.');
|
|
2036
|
-
for (let i = 0; i < nestedProperty.length; i++) {
|
|
2037
|
-
const _property = nestedProperty[i];
|
|
2038
|
-
if (typeof _value[_property] === 'undefined' || _value[_property] === null) {
|
|
2039
|
-
itemsWithoutProperty.push(_item);
|
|
2040
|
-
return false;
|
|
2041
|
-
}
|
|
2042
|
-
_value = _value[_property];
|
|
2043
|
-
}
|
|
2044
|
-
if (isNaN(_value)) {
|
|
2045
|
-
return false;
|
|
2046
|
-
}
|
|
2047
|
-
return (min === null || _value >= min) && (max === null || _value <= max);
|
|
2048
|
-
});
|
|
2049
|
-
return itemsWithoutProperty.length === items.length ? items : output;
|
|
2196
|
+
this._value = value;
|
|
2197
|
+
this.#activated.next(Boolean(value));
|
|
2198
|
+
this.ref.detectChanges();
|
|
2050
2199
|
}
|
|
2051
|
-
|
|
2052
|
-
|
|
2200
|
+
constructor(ref) {
|
|
2201
|
+
this.ref = ref;
|
|
2202
|
+
}
|
|
2203
|
+
_onChange(value) {
|
|
2204
|
+
this.valueChange.emit(value);
|
|
2205
|
+
this.onChange.emit(value);
|
|
2206
|
+
this.#activated.next(Boolean(value));
|
|
2207
|
+
this.ref.detectChanges();
|
|
2208
|
+
}
|
|
2209
|
+
getId = () => {
|
|
2210
|
+
return this.id;
|
|
2211
|
+
};
|
|
2212
|
+
getValue = () => {
|
|
2213
|
+
return this._value;
|
|
2214
|
+
};
|
|
2215
|
+
isActivated = () => {
|
|
2216
|
+
return this.#activated.value;
|
|
2217
|
+
};
|
|
2218
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterSectionSearchOptionComponent, deps: [{ token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2219
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyFilterSectionSearchOptionComponent, isStandalone: true, selector: "bizy-filter-section-search-option", inputs: { id: "id", customClass: "customClass", value: "value" }, outputs: { valueChange: "valueChange", onChange: "onChange" }, ngImport: i0, template: "<bizy-input\n [id]=\"id\" \n (onChange)=\"_onChange($event)\"\n [value]=\"_value\"\n class=\"bizy-filter-section-search-option {{customClass}}\">\n\n <span slot=\"header\"></span>\n\n <ng-container slot=\"prefix\">\n <ng-content select=\"[slot=prefix]\"></ng-content>\n </ng-container>\n\n <ng-container slot=\"suffix\">\n <ng-content select=\"[slot=suffix]\"></ng-content>\n </ng-container>\n\n</bizy-input>\n", styles: [":host{font-size:1rem;width:100%}.bizy-filter-section-search-option{--bizy-input-background-color: #f3f3f3 !important}\n"], dependencies: [{ kind: "component", type: BizyInputComponent, selector: "bizy-input", inputs: ["id", "name", "type", "customClass", "placeholder", "debounceTime", "rows", "disabled", "readonly", "autofocus", "value"], outputs: ["valueChange", "onChange", "onEnter", "onBackspace", "onSelect", "onBlur", "onFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2053
2220
|
}
|
|
2054
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type:
|
|
2055
|
-
type:
|
|
2056
|
-
args: [{
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterSectionSearchOptionComponent, decorators: [{
|
|
2222
|
+
type: Component,
|
|
2223
|
+
args: [{ selector: 'bizy-filter-section-search-option', imports: [BizyInputComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bizy-input\n [id]=\"id\" \n (onChange)=\"_onChange($event)\"\n [value]=\"_value\"\n class=\"bizy-filter-section-search-option {{customClass}}\">\n\n <span slot=\"header\"></span>\n\n <ng-container slot=\"prefix\">\n <ng-content select=\"[slot=prefix]\"></ng-content>\n </ng-container>\n\n <ng-container slot=\"suffix\">\n <ng-content select=\"[slot=suffix]\"></ng-content>\n </ng-container>\n\n</bizy-input>\n", styles: [":host{font-size:1rem;width:100%}.bizy-filter-section-search-option{--bizy-input-background-color: #f3f3f3 !important}\n"] }]
|
|
2224
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
|
|
2225
|
+
type: Inject,
|
|
2226
|
+
args: [ChangeDetectorRef]
|
|
2227
|
+
}] }], propDecorators: { id: [{
|
|
2228
|
+
type: Input
|
|
2229
|
+
}], customClass: [{
|
|
2230
|
+
type: Input
|
|
2231
|
+
}], valueChange: [{
|
|
2232
|
+
type: Output
|
|
2233
|
+
}], onChange: [{
|
|
2234
|
+
type: Output
|
|
2235
|
+
}], value: [{
|
|
2236
|
+
type: Input
|
|
2237
|
+
}] } });
|
|
2060
2238
|
|
|
2061
2239
|
class BizyFilterSectionComponent {
|
|
2062
2240
|
document;
|
|
@@ -2263,35 +2441,172 @@ class BizyFilterComponent {
|
|
|
2263
2441
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterComponent, deps: [{ token: DOCUMENT }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2264
2442
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyFilterComponent, isStandalone: true, selector: "bizy-filter", inputs: { id: "id", disabled: "disabled", customClass: "customClass", opened: "opened" }, outputs: { onOpen: "onOpen", onChange: "onChange" }, queries: [{ propertyName: "sections", predicate: BizyFilterSectionComponent, descendants: true }], ngImport: i0, template: "<button \n type=\"button\"\n class=\"bizy-filter {{customClass}}\"\n [ngClass]=\"{'bizy-filter--disabled': disabled}\"\n [id]=\"id\"\n (click)=\"_onOpen($event)\"\n (keyup.enter)=\"_onOpen($event)\"\n cdkOverlayOrigin \n #bizyFilterTrigger=\"cdkOverlayOrigin\">\n\n <span class=\"bizy-filter__content\">\n <ng-content></ng-content>\n </span>\n\n <span class=\"bizy-filter__badge\" [ngClass]=\"{'bizy-filter__badge--visible': _activated}\"></span>\n \n</button>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayMinWidth]=\"_filterWidth\"\n [cdkConnectedOverlayOrigin]=\"bizyFilterTrigger\"\n (overlayOutsideClick)=\"close($event)\"\n [cdkConnectedOverlayOpen]=\"opened\">\n\n <span class=\"bizy-filter__sections-wrapper\">\n\n <bizy-filter-sections>\n \n <ng-content select=\"bizy-filter-section\"></ng-content>\n \n </bizy-filter-sections>\n\n <ng-content select=\"bizy-filter-content\"></ng-content>\n\n </span>\n\n</ng-template>\n", styles: [":host{font-size:1rem}.bizy-filter{font-size:1rem;width:100%;border:none;background-color:transparent;display:flex;align-items:center;justify-content:space-between;column-gap:.5rem;cursor:pointer;padding:var(--bizy-filter-padding);color:var(--bizy-filter-color);position:relative}.bizy-filter--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-filter__badge{position:absolute;top:-.2rem;right:-.2rem;height:.5rem;width:.5rem;border-radius:50%;background-color:var(--bizy-filter-badge-color);display:none}.bizy-filter__badge--visible{display:block!important}.bizy-filter__content{font-size:1rem;display:flex;align-items:center;column-gap:.3rem;pointer-events:none}.bizy-filter__sections-wrapper{background-color:var(--bizy-filter-background-color);display:flex;flex-direction:column;overflow-y:auto;max-height:30rem;max-width:90vw;padding:.5rem;box-shadow:0 7px 14px #32325d1a,0 3px 6px #00000014}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i2$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i2$2.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "component", type: BizyFilterSectionsComponent, selector: "bizy-filter-sections" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2265
2443
|
}
|
|
2266
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterComponent, decorators: [{
|
|
2267
|
-
type: Component,
|
|
2268
|
-
args: [{ selector: 'bizy-filter', imports: [
|
|
2269
|
-
CommonModule,
|
|
2270
|
-
OverlayModule,
|
|
2271
|
-
BizyFilterSectionsComponent
|
|
2272
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button \n type=\"button\"\n class=\"bizy-filter {{customClass}}\"\n [ngClass]=\"{'bizy-filter--disabled': disabled}\"\n [id]=\"id\"\n (click)=\"_onOpen($event)\"\n (keyup.enter)=\"_onOpen($event)\"\n cdkOverlayOrigin \n #bizyFilterTrigger=\"cdkOverlayOrigin\">\n\n <span class=\"bizy-filter__content\">\n <ng-content></ng-content>\n </span>\n\n <span class=\"bizy-filter__badge\" [ngClass]=\"{'bizy-filter__badge--visible': _activated}\"></span>\n \n</button>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayMinWidth]=\"_filterWidth\"\n [cdkConnectedOverlayOrigin]=\"bizyFilterTrigger\"\n (overlayOutsideClick)=\"close($event)\"\n [cdkConnectedOverlayOpen]=\"opened\">\n\n <span class=\"bizy-filter__sections-wrapper\">\n\n <bizy-filter-sections>\n \n <ng-content select=\"bizy-filter-section\"></ng-content>\n \n </bizy-filter-sections>\n\n <ng-content select=\"bizy-filter-content\"></ng-content>\n\n </span>\n\n</ng-template>\n", styles: [":host{font-size:1rem}.bizy-filter{font-size:1rem;width:100%;border:none;background-color:transparent;display:flex;align-items:center;justify-content:space-between;column-gap:.5rem;cursor:pointer;padding:var(--bizy-filter-padding);color:var(--bizy-filter-color);position:relative}.bizy-filter--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-filter__badge{position:absolute;top:-.2rem;right:-.2rem;height:.5rem;width:.5rem;border-radius:50%;background-color:var(--bizy-filter-badge-color);display:none}.bizy-filter__badge--visible{display:block!important}.bizy-filter__content{font-size:1rem;display:flex;align-items:center;column-gap:.3rem;pointer-events:none}.bizy-filter__sections-wrapper{background-color:var(--bizy-filter-background-color);display:flex;flex-direction:column;overflow-y:auto;max-height:30rem;max-width:90vw;padding:.5rem;box-shadow:0 7px 14px #32325d1a,0 3px 6px #00000014}\n"] }]
|
|
2273
|
-
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
2274
|
-
type: Inject,
|
|
2275
|
-
args: [DOCUMENT]
|
|
2276
|
-
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
2277
|
-
type: Inject,
|
|
2278
|
-
args: [ChangeDetectorRef]
|
|
2279
|
-
}] }], propDecorators: { sections: [{
|
|
2280
|
-
type: ContentChildren,
|
|
2281
|
-
args: [BizyFilterSectionComponent, { descendants: true }]
|
|
2282
|
-
}], id: [{
|
|
2283
|
-
type: Input
|
|
2284
|
-
}], disabled: [{
|
|
2285
|
-
type: Input
|
|
2286
|
-
}], customClass: [{
|
|
2287
|
-
type: Input
|
|
2288
|
-
}], opened: [{
|
|
2289
|
-
type: Input
|
|
2290
|
-
}], onOpen: [{
|
|
2291
|
-
type: Output
|
|
2292
|
-
}], onChange: [{
|
|
2293
|
-
type: Output
|
|
2294
|
-
}] } });
|
|
2444
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterComponent, decorators: [{
|
|
2445
|
+
type: Component,
|
|
2446
|
+
args: [{ selector: 'bizy-filter', imports: [
|
|
2447
|
+
CommonModule,
|
|
2448
|
+
OverlayModule,
|
|
2449
|
+
BizyFilterSectionsComponent
|
|
2450
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button \n type=\"button\"\n class=\"bizy-filter {{customClass}}\"\n [ngClass]=\"{'bizy-filter--disabled': disabled}\"\n [id]=\"id\"\n (click)=\"_onOpen($event)\"\n (keyup.enter)=\"_onOpen($event)\"\n cdkOverlayOrigin \n #bizyFilterTrigger=\"cdkOverlayOrigin\">\n\n <span class=\"bizy-filter__content\">\n <ng-content></ng-content>\n </span>\n\n <span class=\"bizy-filter__badge\" [ngClass]=\"{'bizy-filter__badge--visible': _activated}\"></span>\n \n</button>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayMinWidth]=\"_filterWidth\"\n [cdkConnectedOverlayOrigin]=\"bizyFilterTrigger\"\n (overlayOutsideClick)=\"close($event)\"\n [cdkConnectedOverlayOpen]=\"opened\">\n\n <span class=\"bizy-filter__sections-wrapper\">\n\n <bizy-filter-sections>\n \n <ng-content select=\"bizy-filter-section\"></ng-content>\n \n </bizy-filter-sections>\n\n <ng-content select=\"bizy-filter-content\"></ng-content>\n\n </span>\n\n</ng-template>\n", styles: [":host{font-size:1rem}.bizy-filter{font-size:1rem;width:100%;border:none;background-color:transparent;display:flex;align-items:center;justify-content:space-between;column-gap:.5rem;cursor:pointer;padding:var(--bizy-filter-padding);color:var(--bizy-filter-color);position:relative}.bizy-filter--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-filter__badge{position:absolute;top:-.2rem;right:-.2rem;height:.5rem;width:.5rem;border-radius:50%;background-color:var(--bizy-filter-badge-color);display:none}.bizy-filter__badge--visible{display:block!important}.bizy-filter__content{font-size:1rem;display:flex;align-items:center;column-gap:.3rem;pointer-events:none}.bizy-filter__sections-wrapper{background-color:var(--bizy-filter-background-color);display:flex;flex-direction:column;overflow-y:auto;max-height:30rem;max-width:90vw;padding:.5rem;box-shadow:0 7px 14px #32325d1a,0 3px 6px #00000014}\n"] }]
|
|
2451
|
+
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
2452
|
+
type: Inject,
|
|
2453
|
+
args: [DOCUMENT]
|
|
2454
|
+
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
2455
|
+
type: Inject,
|
|
2456
|
+
args: [ChangeDetectorRef]
|
|
2457
|
+
}] }], propDecorators: { sections: [{
|
|
2458
|
+
type: ContentChildren,
|
|
2459
|
+
args: [BizyFilterSectionComponent, { descendants: true }]
|
|
2460
|
+
}], id: [{
|
|
2461
|
+
type: Input
|
|
2462
|
+
}], disabled: [{
|
|
2463
|
+
type: Input
|
|
2464
|
+
}], customClass: [{
|
|
2465
|
+
type: Input
|
|
2466
|
+
}], opened: [{
|
|
2467
|
+
type: Input
|
|
2468
|
+
}], onOpen: [{
|
|
2469
|
+
type: Output
|
|
2470
|
+
}], onChange: [{
|
|
2471
|
+
type: Output
|
|
2472
|
+
}] } });
|
|
2473
|
+
|
|
2474
|
+
class BizyFilterContentComponent {
|
|
2475
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2476
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyFilterContentComponent, isStandalone: true, selector: "bizy-filter-content", ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{font-size:1rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2477
|
+
}
|
|
2478
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterContentComponent, decorators: [{
|
|
2479
|
+
type: Component,
|
|
2480
|
+
args: [{ selector: 'bizy-filter-content', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>", styles: [":host{font-size:1rem}\n"] }]
|
|
2481
|
+
}] });
|
|
2482
|
+
|
|
2483
|
+
class BizyFilterPipe {
|
|
2484
|
+
transform(items, property, states) {
|
|
2485
|
+
if (!items || items.length === 0) {
|
|
2486
|
+
return [];
|
|
2487
|
+
}
|
|
2488
|
+
if (!property || !states || states.length === 0) {
|
|
2489
|
+
return items;
|
|
2490
|
+
}
|
|
2491
|
+
const _selected = states.filter(_state => _state.selected);
|
|
2492
|
+
if (_selected.length === states.length) {
|
|
2493
|
+
return items;
|
|
2494
|
+
}
|
|
2495
|
+
let output = [];
|
|
2496
|
+
states.forEach(state => {
|
|
2497
|
+
if (!state.selected) {
|
|
2498
|
+
return;
|
|
2499
|
+
}
|
|
2500
|
+
const res = items.filter(_item => {
|
|
2501
|
+
let _state = _item;
|
|
2502
|
+
const nestedProperty = property.split('.');
|
|
2503
|
+
nestedProperty.forEach(_property => {
|
|
2504
|
+
_state = _state[_property];
|
|
2505
|
+
});
|
|
2506
|
+
if (typeof state.id === 'boolean') {
|
|
2507
|
+
return Boolean(_state) === state.id;
|
|
2508
|
+
}
|
|
2509
|
+
if (Array.isArray(_state)) {
|
|
2510
|
+
return _state.includes(state.id);
|
|
2511
|
+
}
|
|
2512
|
+
return _state === state.id;
|
|
2513
|
+
});
|
|
2514
|
+
output = output.concat(res);
|
|
2515
|
+
});
|
|
2516
|
+
let map = new Map();
|
|
2517
|
+
output.forEach(obj => map.set(JSON.stringify(obj), obj));
|
|
2518
|
+
const uniqueArray = Array.from(map.values());
|
|
2519
|
+
return uniqueArray;
|
|
2520
|
+
}
|
|
2521
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2522
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterPipe, isStandalone: true, name: "bizyFilter" });
|
|
2523
|
+
}
|
|
2524
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterPipe, decorators: [{
|
|
2525
|
+
type: Pipe,
|
|
2526
|
+
args: [{
|
|
2527
|
+
name: 'bizyFilter'
|
|
2528
|
+
}]
|
|
2529
|
+
}] });
|
|
2530
|
+
|
|
2531
|
+
class BizyRangeFilterPipe {
|
|
2532
|
+
transform(items, property, range) {
|
|
2533
|
+
if (!items || items.length === 0) {
|
|
2534
|
+
return [];
|
|
2535
|
+
}
|
|
2536
|
+
if (!property || !range) {
|
|
2537
|
+
return items;
|
|
2538
|
+
}
|
|
2539
|
+
const min = range.min ?? null;
|
|
2540
|
+
const max = range.max ?? null;
|
|
2541
|
+
let itemsWithoutProperty = [];
|
|
2542
|
+
const output = items.filter(_item => {
|
|
2543
|
+
let _value = _item;
|
|
2544
|
+
const nestedProperty = property.split('.');
|
|
2545
|
+
for (let i = 0; i < nestedProperty.length; i++) {
|
|
2546
|
+
const _property = nestedProperty[i];
|
|
2547
|
+
if (typeof _value[_property] === 'undefined' || _value[_property] === null) {
|
|
2548
|
+
itemsWithoutProperty.push(_item);
|
|
2549
|
+
return false;
|
|
2550
|
+
}
|
|
2551
|
+
_value = _value[_property];
|
|
2552
|
+
}
|
|
2553
|
+
if (isNaN(_value)) {
|
|
2554
|
+
return false;
|
|
2555
|
+
}
|
|
2556
|
+
return (min === null || _value >= min) && (max === null || _value <= max);
|
|
2557
|
+
});
|
|
2558
|
+
return itemsWithoutProperty.length === items.length ? items : output;
|
|
2559
|
+
}
|
|
2560
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyRangeFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2561
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyRangeFilterPipe, isStandalone: true, name: "bizyRangeFilter" });
|
|
2562
|
+
}
|
|
2563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyRangeFilterPipe, decorators: [{
|
|
2564
|
+
type: Pipe,
|
|
2565
|
+
args: [{
|
|
2566
|
+
name: 'bizyRangeFilter'
|
|
2567
|
+
}]
|
|
2568
|
+
}] });
|
|
2569
|
+
|
|
2570
|
+
const COMPONENTS$g = [
|
|
2571
|
+
BizyFilterComponent,
|
|
2572
|
+
BizyFilterContentComponent,
|
|
2573
|
+
BizyFilterSectionCheckboxOptionComponent,
|
|
2574
|
+
BizyFilterSectionRangeOptionComponent,
|
|
2575
|
+
BizyFilterSectionSearchOptionComponent,
|
|
2576
|
+
BizyFilterSectionsComponent
|
|
2577
|
+
];
|
|
2578
|
+
const PIPES$1 = [
|
|
2579
|
+
BizyFilterPipe,
|
|
2580
|
+
BizyRangeFilterPipe
|
|
2581
|
+
];
|
|
2582
|
+
class BizyFilterModule {
|
|
2583
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2584
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterModule, imports: [BizyFilterComponent,
|
|
2585
|
+
BizyFilterContentComponent,
|
|
2586
|
+
BizyFilterSectionCheckboxOptionComponent,
|
|
2587
|
+
BizyFilterSectionRangeOptionComponent,
|
|
2588
|
+
BizyFilterSectionSearchOptionComponent,
|
|
2589
|
+
BizyFilterSectionsComponent, BizyFilterPipe,
|
|
2590
|
+
BizyRangeFilterPipe], exports: [BizyFilterComponent,
|
|
2591
|
+
BizyFilterContentComponent,
|
|
2592
|
+
BizyFilterSectionCheckboxOptionComponent,
|
|
2593
|
+
BizyFilterSectionRangeOptionComponent,
|
|
2594
|
+
BizyFilterSectionSearchOptionComponent,
|
|
2595
|
+
BizyFilterSectionsComponent, BizyFilterPipe,
|
|
2596
|
+
BizyRangeFilterPipe] });
|
|
2597
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterModule, providers: PIPES$1, imports: [BizyFilterComponent,
|
|
2598
|
+
BizyFilterSectionCheckboxOptionComponent,
|
|
2599
|
+
BizyFilterSectionRangeOptionComponent,
|
|
2600
|
+
BizyFilterSectionSearchOptionComponent] });
|
|
2601
|
+
}
|
|
2602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFilterModule, decorators: [{
|
|
2603
|
+
type: NgModule,
|
|
2604
|
+
args: [{
|
|
2605
|
+
imports: COMPONENTS$g.concat(PIPES$1),
|
|
2606
|
+
exports: COMPONENTS$g.concat(PIPES$1),
|
|
2607
|
+
providers: PIPES$1
|
|
2608
|
+
}]
|
|
2609
|
+
}] });
|
|
2295
2610
|
|
|
2296
2611
|
class BizySelectOptionComponent {
|
|
2297
2612
|
elementRef;
|
|
@@ -2548,6 +2863,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
2548
2863
|
type: Input
|
|
2549
2864
|
}] } });
|
|
2550
2865
|
|
|
2866
|
+
const COMPONENTS$f = [
|
|
2867
|
+
BizyFormComponent,
|
|
2868
|
+
];
|
|
2869
|
+
class BizyFormModule {
|
|
2870
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2871
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyFormModule, imports: [BizyFormComponent], exports: [BizyFormComponent] });
|
|
2872
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFormModule, imports: [COMPONENTS$f] });
|
|
2873
|
+
}
|
|
2874
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyFormModule, decorators: [{
|
|
2875
|
+
type: NgModule,
|
|
2876
|
+
args: [{
|
|
2877
|
+
imports: COMPONENTS$f,
|
|
2878
|
+
exports: COMPONENTS$f,
|
|
2879
|
+
}]
|
|
2880
|
+
}] });
|
|
2881
|
+
|
|
2882
|
+
class BizyGridForDirective {
|
|
2883
|
+
viewContainerRef = inject(ViewContainerRef);
|
|
2884
|
+
templateRef = inject(TemplateRef);
|
|
2885
|
+
#items = new BehaviorSubject([]);
|
|
2886
|
+
get items$() {
|
|
2887
|
+
return this.#items.asObservable();
|
|
2888
|
+
}
|
|
2889
|
+
set gridForOf(items) {
|
|
2890
|
+
this.#items.next(items);
|
|
2891
|
+
}
|
|
2892
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyGridForDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2893
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.1", type: BizyGridForDirective, isStandalone: true, selector: "[gridFor]", inputs: { gridForOf: "gridForOf" }, ngImport: i0 });
|
|
2894
|
+
}
|
|
2895
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyGridForDirective, decorators: [{
|
|
2896
|
+
type: Directive,
|
|
2897
|
+
args: [{
|
|
2898
|
+
selector: '[gridFor]',
|
|
2899
|
+
}]
|
|
2900
|
+
}], propDecorators: { gridForOf: [{
|
|
2901
|
+
type: Input,
|
|
2902
|
+
args: ['gridForOf']
|
|
2903
|
+
}] } });
|
|
2904
|
+
|
|
2551
2905
|
class BizyGridRowComponent {
|
|
2552
2906
|
#elementRef = inject(ElementRef);
|
|
2553
2907
|
#ref = inject(ChangeDetectorRef);
|
|
@@ -2576,29 +2930,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
2576
2930
|
type: Input
|
|
2577
2931
|
}] } });
|
|
2578
2932
|
|
|
2579
|
-
class BizyGridForDirective {
|
|
2580
|
-
viewContainerRef = inject(ViewContainerRef);
|
|
2581
|
-
templateRef = inject(TemplateRef);
|
|
2582
|
-
#items = new BehaviorSubject([]);
|
|
2583
|
-
get items$() {
|
|
2584
|
-
return this.#items.asObservable();
|
|
2585
|
-
}
|
|
2586
|
-
set gridForOf(items) {
|
|
2587
|
-
this.#items.next(items);
|
|
2588
|
-
}
|
|
2589
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyGridForDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2590
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.1", type: BizyGridForDirective, isStandalone: true, selector: "[gridFor]", inputs: { gridForOf: "gridForOf" }, ngImport: i0 });
|
|
2591
|
-
}
|
|
2592
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyGridForDirective, decorators: [{
|
|
2593
|
-
type: Directive,
|
|
2594
|
-
args: [{
|
|
2595
|
-
selector: '[gridFor]',
|
|
2596
|
-
}]
|
|
2597
|
-
}], propDecorators: { gridForOf: [{
|
|
2598
|
-
type: Input,
|
|
2599
|
-
args: ['gridForOf']
|
|
2600
|
-
}] } });
|
|
2601
|
-
|
|
2602
2933
|
class BizyGridComponent {
|
|
2603
2934
|
ref;
|
|
2604
2935
|
document;
|
|
@@ -2654,7 +2985,7 @@ class BizyGridComponent {
|
|
|
2654
2985
|
this.#resizeObserver = new ResizeObserver(() => this.notifier$.next());
|
|
2655
2986
|
const resizeRef = this.resizeRef ? this.resizeRef : this.renderer.parentNode(this.elementRef.nativeElement) ? this.renderer.parentNode(this.elementRef.nativeElement) : this.elementRef.nativeElement;
|
|
2656
2987
|
this.#resizeObserver.observe(resizeRef);
|
|
2657
|
-
this.#subscription.add(this.notifier$.pipe(debounceTime(50)).subscribe(() => {
|
|
2988
|
+
this.#subscription.add(this.notifier$.pipe(debounceTime$1(50)).subscribe(() => {
|
|
2658
2989
|
this.#updateView();
|
|
2659
2990
|
}));
|
|
2660
2991
|
};
|
|
@@ -2741,6 +3072,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
2741
3072
|
type: Input
|
|
2742
3073
|
}] } });
|
|
2743
3074
|
|
|
3075
|
+
const COMPONENTS$e = [
|
|
3076
|
+
BizyGridComponent,
|
|
3077
|
+
BizyGridRowComponent
|
|
3078
|
+
];
|
|
3079
|
+
const DIRECTIVES$2 = [
|
|
3080
|
+
BizyGridForDirective,
|
|
3081
|
+
];
|
|
3082
|
+
class BizyGridModule {
|
|
3083
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3084
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyGridModule, imports: [BizyGridComponent,
|
|
3085
|
+
BizyGridRowComponent, BizyGridForDirective], exports: [BizyGridComponent,
|
|
3086
|
+
BizyGridRowComponent, BizyGridForDirective] });
|
|
3087
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyGridModule, imports: [BizyGridComponent,
|
|
3088
|
+
BizyGridRowComponent] });
|
|
3089
|
+
}
|
|
3090
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyGridModule, decorators: [{
|
|
3091
|
+
type: NgModule,
|
|
3092
|
+
args: [{
|
|
3093
|
+
imports: COMPONENTS$e.concat(DIRECTIVES$2),
|
|
3094
|
+
exports: COMPONENTS$e.concat(DIRECTIVES$2),
|
|
3095
|
+
}]
|
|
3096
|
+
}] });
|
|
3097
|
+
|
|
3098
|
+
const COMPONENTS$d = [
|
|
3099
|
+
BizyInputComponent,
|
|
3100
|
+
BizyInputOptionComponent
|
|
3101
|
+
];
|
|
3102
|
+
class BizyInputModule {
|
|
3103
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3104
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyInputModule, imports: [BizyInputComponent,
|
|
3105
|
+
BizyInputOptionComponent], exports: [BizyInputComponent,
|
|
3106
|
+
BizyInputOptionComponent] });
|
|
3107
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyInputModule, imports: [COMPONENTS$d] });
|
|
3108
|
+
}
|
|
3109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyInputModule, decorators: [{
|
|
3110
|
+
type: NgModule,
|
|
3111
|
+
args: [{
|
|
3112
|
+
imports: COMPONENTS$d,
|
|
3113
|
+
exports: COMPONENTS$d,
|
|
3114
|
+
}]
|
|
3115
|
+
}] });
|
|
3116
|
+
|
|
2744
3117
|
class BizyListComponent {
|
|
2745
3118
|
id = `bizy-list-${Math.random()}`;
|
|
2746
3119
|
customClass = '';
|
|
@@ -2756,17 +3129,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
2756
3129
|
type: Input
|
|
2757
3130
|
}] } });
|
|
2758
3131
|
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
3132
|
+
const COMPONENTS$c = [
|
|
3133
|
+
BizyListComponent,
|
|
3134
|
+
];
|
|
3135
|
+
class BizyListModule {
|
|
3136
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3137
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyListModule, imports: [BizyListComponent], exports: [BizyListComponent] });
|
|
3138
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyListModule, imports: [COMPONENTS$c] });
|
|
2763
3139
|
}
|
|
2764
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type:
|
|
2765
|
-
type:
|
|
2766
|
-
args: [{
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
3140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyListModule, decorators: [{
|
|
3141
|
+
type: NgModule,
|
|
3142
|
+
args: [{
|
|
3143
|
+
imports: COMPONENTS$c,
|
|
3144
|
+
exports: COMPONENTS$c,
|
|
3145
|
+
}]
|
|
3146
|
+
}] });
|
|
2770
3147
|
|
|
2771
3148
|
class BizyMenuOptionComponent {
|
|
2772
3149
|
id = `bizy-menu-option-${Math.random()}`;
|
|
@@ -2882,6 +3259,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
2882
3259
|
type: Output
|
|
2883
3260
|
}] } });
|
|
2884
3261
|
|
|
3262
|
+
class BizyMenuTitleComponent {
|
|
3263
|
+
customClass = '';
|
|
3264
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyMenuTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3265
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyMenuTitleComponent, isStandalone: true, selector: "bizy-menu-title", inputs: { customClass: "customClass" }, ngImport: i0, template: "<span class=\"bizy-menu-title {{customClass}}\">\n <ng-content></ng-content>\n</span>\n", styles: [":host{font-size:1rem}.bizy-menu-title{background-color:var(--bizy-menu-title-background-color);color:var(--bizy-menu-title-color);padding:.5rem;cursor:default;text-decoration:underline .1rem var(--bizy-menu-title-underline-color);text-underline-offset:.3rem;display:flex;align-items:center}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3266
|
+
}
|
|
3267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyMenuTitleComponent, decorators: [{
|
|
3268
|
+
type: Component,
|
|
3269
|
+
args: [{ selector: 'bizy-menu-title', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span class=\"bizy-menu-title {{customClass}}\">\n <ng-content></ng-content>\n</span>\n", styles: [":host{font-size:1rem}.bizy-menu-title{background-color:var(--bizy-menu-title-background-color);color:var(--bizy-menu-title-color);padding:.5rem;cursor:default;text-decoration:underline .1rem var(--bizy-menu-title-underline-color);text-underline-offset:.3rem;display:flex;align-items:center}\n"] }]
|
|
3270
|
+
}], propDecorators: { customClass: [{
|
|
3271
|
+
type: Input
|
|
3272
|
+
}] } });
|
|
3273
|
+
|
|
3274
|
+
const COMPONENTS$b = [
|
|
3275
|
+
BizyMenuComponent,
|
|
3276
|
+
BizyMenuOptionComponent,
|
|
3277
|
+
BizyMenuTitleComponent
|
|
3278
|
+
];
|
|
3279
|
+
class BizyMenuModule {
|
|
3280
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3281
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyMenuModule, imports: [BizyMenuComponent,
|
|
3282
|
+
BizyMenuOptionComponent,
|
|
3283
|
+
BizyMenuTitleComponent], exports: [BizyMenuComponent,
|
|
3284
|
+
BizyMenuOptionComponent,
|
|
3285
|
+
BizyMenuTitleComponent] });
|
|
3286
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyMenuModule, imports: [BizyMenuComponent,
|
|
3287
|
+
BizyMenuOptionComponent] });
|
|
3288
|
+
}
|
|
3289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyMenuModule, decorators: [{
|
|
3290
|
+
type: NgModule,
|
|
3291
|
+
args: [{
|
|
3292
|
+
imports: COMPONENTS$b,
|
|
3293
|
+
exports: COMPONENTS$b,
|
|
3294
|
+
}]
|
|
3295
|
+
}] });
|
|
3296
|
+
|
|
2885
3297
|
const EMPTY_CHART = [0];
|
|
2886
3298
|
const MIN_CHART_SIZE = 350; // px;
|
|
2887
3299
|
class BizyPieChartComponent {
|
|
@@ -3103,48 +3515,164 @@ class BizyPieChartComponent {
|
|
|
3103
3515
|
this.#echarts.clear();
|
|
3104
3516
|
}
|
|
3105
3517
|
}
|
|
3106
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyPieChartComponent, deps: [{ token: ElementRef }, { token: DOCUMENT }, { token: ChangeDetectorRef }, { token: Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
3107
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyPieChartComponent, isStandalone: true, selector: "bizy-pie-chart", inputs: { resizeRef: "resizeRef", tooltip: "tooltip", type: "type", download: "download", onLabelFormatter: "onLabelFormatter", onTooltipFormatter: "onTooltipFormatter", data: "data" }, outputs: { onSelect: "onSelect", onDownload: "onDownload" }, ngImport: i0, template: '', isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3518
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyPieChartComponent, deps: [{ token: ElementRef }, { token: DOCUMENT }, { token: ChangeDetectorRef }, { token: Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
3519
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyPieChartComponent, isStandalone: true, selector: "bizy-pie-chart", inputs: { resizeRef: "resizeRef", tooltip: "tooltip", type: "type", download: "download", onLabelFormatter: "onLabelFormatter", onTooltipFormatter: "onTooltipFormatter", data: "data" }, outputs: { onSelect: "onSelect", onDownload: "onDownload" }, ngImport: i0, template: '', isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3520
|
+
}
|
|
3521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyPieChartComponent, decorators: [{
|
|
3522
|
+
type: Component,
|
|
3523
|
+
args: [{
|
|
3524
|
+
selector: 'bizy-pie-chart',
|
|
3525
|
+
template: '',
|
|
3526
|
+
imports: [CommonModule],
|
|
3527
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
3528
|
+
}]
|
|
3529
|
+
}], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
|
|
3530
|
+
type: Inject,
|
|
3531
|
+
args: [ElementRef]
|
|
3532
|
+
}] }, { type: Document, decorators: [{
|
|
3533
|
+
type: Inject,
|
|
3534
|
+
args: [DOCUMENT]
|
|
3535
|
+
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
3536
|
+
type: Inject,
|
|
3537
|
+
args: [ChangeDetectorRef]
|
|
3538
|
+
}] }, { type: i0.Renderer2, decorators: [{
|
|
3539
|
+
type: Inject,
|
|
3540
|
+
args: [Renderer2]
|
|
3541
|
+
}] }], propDecorators: { resizeRef: [{
|
|
3542
|
+
type: Input
|
|
3543
|
+
}], tooltip: [{
|
|
3544
|
+
type: Input
|
|
3545
|
+
}], type: [{
|
|
3546
|
+
type: Input
|
|
3547
|
+
}], download: [{
|
|
3548
|
+
type: Input
|
|
3549
|
+
}], onLabelFormatter: [{
|
|
3550
|
+
type: Input
|
|
3551
|
+
}], onTooltipFormatter: [{
|
|
3552
|
+
type: Input
|
|
3553
|
+
}], onSelect: [{
|
|
3554
|
+
type: Output
|
|
3555
|
+
}], onDownload: [{
|
|
3556
|
+
type: Output
|
|
3557
|
+
}], data: [{
|
|
3558
|
+
type: Input
|
|
3559
|
+
}] } });
|
|
3560
|
+
|
|
3561
|
+
const COMPONENTS$a = [
|
|
3562
|
+
BizyPieChartComponent,
|
|
3563
|
+
];
|
|
3564
|
+
class BizyPieChartModule {
|
|
3565
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyPieChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3566
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyPieChartModule, imports: [BizyPieChartComponent], exports: [BizyPieChartComponent] });
|
|
3567
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyPieChartModule, imports: [COMPONENTS$a] });
|
|
3568
|
+
}
|
|
3569
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyPieChartModule, decorators: [{
|
|
3570
|
+
type: NgModule,
|
|
3571
|
+
args: [{
|
|
3572
|
+
imports: COMPONENTS$a,
|
|
3573
|
+
exports: COMPONENTS$a,
|
|
3574
|
+
}]
|
|
3575
|
+
}] });
|
|
3576
|
+
|
|
3577
|
+
class BizyPopupWrapperComponent {
|
|
3578
|
+
dynamicComponentContainer;
|
|
3579
|
+
#component = inject(DIALOG_DATA);
|
|
3580
|
+
#dialogRef = inject(DialogRef);
|
|
3581
|
+
#ref = inject(ChangeDetectorRef);
|
|
3582
|
+
ngAfterViewInit() {
|
|
3583
|
+
this.loadDynamicComponent();
|
|
3584
|
+
}
|
|
3585
|
+
loadDynamicComponent() {
|
|
3586
|
+
if (this.#component) {
|
|
3587
|
+
this.dynamicComponentContainer.clear();
|
|
3588
|
+
this.dynamicComponentContainer.createComponent(this.#component);
|
|
3589
|
+
this.#ref.detectChanges();
|
|
3590
|
+
}
|
|
3591
|
+
}
|
|
3592
|
+
close() {
|
|
3593
|
+
this.#dialogRef.close();
|
|
3594
|
+
}
|
|
3595
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyPopupWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3596
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyPopupWrapperComponent, isStandalone: true, selector: "bizy-popup-wrapper", viewQueries: [{ propertyName: "dynamicComponentContainer", first: true, predicate: ["dynamicComponentContainer"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<div class=\"bizy-popup-wrapper\" cdkDrag>\n\n <button class=\"bizy-popup-wrapper__drag-button\" cdkDragHandle>\n\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" class=\"bizy-popup-wrapper__drag-button__icon\">\n <path d=\"M278.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-64 64c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l9.4-9.4V224H109.3l9.4-9.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-9.4-9.4H224V402.7l-9.4-9.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-9.4 9.4V288H402.7l-9.4 9.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l9.4 9.4H288V109.3l9.4 9.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-64-64z\"/>\n </svg>\n\n </button>\n\n <button class=\"bizy-popup-wrapper__close-button\" (click)=\"close()\" (keyup.enter)=\"close()\">\n\n\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\" class=\"bizy-popup-wrapper__close-button__icon\">\n <path d=\"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z\"/>\n </svg>\n\n </button>\n\n <ng-container #dynamicComponentContainer></ng-container>\n\n</div>", styles: [":host{font-size:1rem}.bizy-popup-wrapper{position:relative;background-color:var(--bizy-popup-background-color);min-width:var(--bizy-popup-min-width);width:var(--bizy-popup-width);max-width:var(--bizy-popup-max-width)}.bizy-popup-wrapper__drag-button{position:absolute;left:-.9rem;top:-.9rem;border:.1rem solid var(--bizy-popup-drag-button-border-color);border-radius:50%;padding:.2rem;place-items:center;display:grid;border:.1rem solid #ccc;background-color:var(--bizy-popup-drag-button-background-color);cursor:pointer;transition:transform .2s;z-index:1}.bizy-popup-wrapper__drag-button:hover{transform:scale(1.1)}.bizy-popup-wrapper__drag-button__icon{height:1rem}.bizy-popup-wrapper__drag-button__icon{fill:var(--bizy-popup-drag-button-color)}.bizy-popup-wrapper__close-button{position:absolute;right:-.9rem;top:-.9rem;border:.1rem solid var(--bizy-popup-close-button-border-color);border-radius:50%;padding:.25rem .35rem;place-items:center;display:grid;border:.1rem solid #ccc;background-color:var(--bizy-popup-close-button-background-color);cursor:pointer;transition:transform .2s;z-index:1}.bizy-popup-wrapper__close-button:hover .bizy-popup-wrapper__close-button__icon{transform:scale(1.1)}.bizy-popup-wrapper__close-button:hover .bizy-popup-wrapper__close-button__icon{fill:var(--bizy-popup-close-button-hover-color)}.bizy-popup-wrapper__close-button__icon{height:1rem;transition:fill .2s ease,}.bizy-popup-wrapper__close-button__icon{fill:var(--bizy-popup-close-button-color)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: DialogModule }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i1$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3597
|
+
}
|
|
3598
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyPopupWrapperComponent, decorators: [{
|
|
3599
|
+
type: Component,
|
|
3600
|
+
args: [{ selector: 'bizy-popup-wrapper', imports: [CommonModule, DialogModule, DragDropModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"bizy-popup-wrapper\" cdkDrag>\n\n <button class=\"bizy-popup-wrapper__drag-button\" cdkDragHandle>\n\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" class=\"bizy-popup-wrapper__drag-button__icon\">\n <path d=\"M278.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-64 64c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l9.4-9.4V224H109.3l9.4-9.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-9.4-9.4H224V402.7l-9.4-9.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-9.4 9.4V288H402.7l-9.4 9.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l9.4 9.4H288V109.3l9.4 9.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-64-64z\"/>\n </svg>\n\n </button>\n\n <button class=\"bizy-popup-wrapper__close-button\" (click)=\"close()\" (keyup.enter)=\"close()\">\n\n\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\" class=\"bizy-popup-wrapper__close-button__icon\">\n <path d=\"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z\"/>\n </svg>\n\n </button>\n\n <ng-container #dynamicComponentContainer></ng-container>\n\n</div>", styles: [":host{font-size:1rem}.bizy-popup-wrapper{position:relative;background-color:var(--bizy-popup-background-color);min-width:var(--bizy-popup-min-width);width:var(--bizy-popup-width);max-width:var(--bizy-popup-max-width)}.bizy-popup-wrapper__drag-button{position:absolute;left:-.9rem;top:-.9rem;border:.1rem solid var(--bizy-popup-drag-button-border-color);border-radius:50%;padding:.2rem;place-items:center;display:grid;border:.1rem solid #ccc;background-color:var(--bizy-popup-drag-button-background-color);cursor:pointer;transition:transform .2s;z-index:1}.bizy-popup-wrapper__drag-button:hover{transform:scale(1.1)}.bizy-popup-wrapper__drag-button__icon{height:1rem}.bizy-popup-wrapper__drag-button__icon{fill:var(--bizy-popup-drag-button-color)}.bizy-popup-wrapper__close-button{position:absolute;right:-.9rem;top:-.9rem;border:.1rem solid var(--bizy-popup-close-button-border-color);border-radius:50%;padding:.25rem .35rem;place-items:center;display:grid;border:.1rem solid #ccc;background-color:var(--bizy-popup-close-button-background-color);cursor:pointer;transition:transform .2s;z-index:1}.bizy-popup-wrapper__close-button:hover .bizy-popup-wrapper__close-button__icon{transform:scale(1.1)}.bizy-popup-wrapper__close-button:hover .bizy-popup-wrapper__close-button__icon{fill:var(--bizy-popup-close-button-hover-color)}.bizy-popup-wrapper__close-button__icon{height:1rem;transition:fill .2s ease,}.bizy-popup-wrapper__close-button__icon{fill:var(--bizy-popup-close-button-color)}\n"] }]
|
|
3601
|
+
}], propDecorators: { dynamicComponentContainer: [{
|
|
3602
|
+
type: ViewChild,
|
|
3603
|
+
args: ['dynamicComponentContainer', { read: ViewContainerRef }]
|
|
3604
|
+
}] } });
|
|
3605
|
+
|
|
3606
|
+
class BizyPopupService {
|
|
3607
|
+
#dialog = inject(Dialog);
|
|
3608
|
+
static dialogs = new Set();
|
|
3609
|
+
#data = null;
|
|
3610
|
+
;
|
|
3611
|
+
open(data, callback) {
|
|
3612
|
+
this.#data = data.data;
|
|
3613
|
+
const dialogRef = this.#dialog.open(BizyPopupWrapperComponent, ({
|
|
3614
|
+
id: data.id,
|
|
3615
|
+
data: data.component,
|
|
3616
|
+
autoFocus: true,
|
|
3617
|
+
hasBackdrop: true,
|
|
3618
|
+
disableClose: data.disableClose ?? false,
|
|
3619
|
+
panelClass: ['bizy-popup', data.customClass]
|
|
3620
|
+
}));
|
|
3621
|
+
BizyPopupService.dialogs.add(dialogRef);
|
|
3622
|
+
dialogRef.closed.pipe(take(1)).subscribe(response => {
|
|
3623
|
+
BizyPopupService.dialogs.delete(dialogRef);
|
|
3624
|
+
if (callback) {
|
|
3625
|
+
callback(response);
|
|
3626
|
+
}
|
|
3627
|
+
});
|
|
3628
|
+
}
|
|
3629
|
+
getData() {
|
|
3630
|
+
return this.#data;
|
|
3631
|
+
}
|
|
3632
|
+
close(data) {
|
|
3633
|
+
let dialogRef = null;
|
|
3634
|
+
if (data && data.id) {
|
|
3635
|
+
dialogRef = Array.from(BizyPopupService.dialogs).find(_dialogRef => _dialogRef.id === data.id);
|
|
3636
|
+
}
|
|
3637
|
+
else {
|
|
3638
|
+
dialogRef = Array.from(BizyPopupService.dialogs).pop();
|
|
3639
|
+
}
|
|
3640
|
+
if (dialogRef) {
|
|
3641
|
+
dialogRef.close(data ? data.response : null);
|
|
3642
|
+
BizyPopupService.dialogs.delete(dialogRef);
|
|
3643
|
+
}
|
|
3644
|
+
this.#data = null;
|
|
3645
|
+
}
|
|
3646
|
+
closeAll() {
|
|
3647
|
+
Array.from(BizyPopupService.dialogs).forEach(_dialogRef => {
|
|
3648
|
+
_dialogRef.close();
|
|
3649
|
+
});
|
|
3650
|
+
BizyPopupService.dialogs.clear();
|
|
3651
|
+
this.#data = null;
|
|
3652
|
+
}
|
|
3653
|
+
openedPopups() {
|
|
3654
|
+
return BizyPopupService.dialogs.size;
|
|
3655
|
+
}
|
|
3656
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyPopupService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3657
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyPopupService });
|
|
3108
3658
|
}
|
|
3109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type:
|
|
3110
|
-
type:
|
|
3659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyPopupService, decorators: [{
|
|
3660
|
+
type: Injectable
|
|
3661
|
+
}] });
|
|
3662
|
+
|
|
3663
|
+
class BizyPopupModule {
|
|
3664
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3665
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyPopupModule, imports: [BizyPopupWrapperComponent], exports: [BizyPopupWrapperComponent] });
|
|
3666
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyPopupModule, providers: [BizyPopupService], imports: [BizyPopupWrapperComponent] });
|
|
3667
|
+
}
|
|
3668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyPopupModule, decorators: [{
|
|
3669
|
+
type: NgModule,
|
|
3111
3670
|
args: [{
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
3671
|
+
imports: [BizyPopupWrapperComponent],
|
|
3672
|
+
exports: [BizyPopupWrapperComponent],
|
|
3673
|
+
providers: [BizyPopupService]
|
|
3116
3674
|
}]
|
|
3117
|
-
}]
|
|
3118
|
-
type: Inject,
|
|
3119
|
-
args: [ElementRef]
|
|
3120
|
-
}] }, { type: Document, decorators: [{
|
|
3121
|
-
type: Inject,
|
|
3122
|
-
args: [DOCUMENT]
|
|
3123
|
-
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
3124
|
-
type: Inject,
|
|
3125
|
-
args: [ChangeDetectorRef]
|
|
3126
|
-
}] }, { type: i0.Renderer2, decorators: [{
|
|
3127
|
-
type: Inject,
|
|
3128
|
-
args: [Renderer2]
|
|
3129
|
-
}] }], propDecorators: { resizeRef: [{
|
|
3130
|
-
type: Input
|
|
3131
|
-
}], tooltip: [{
|
|
3132
|
-
type: Input
|
|
3133
|
-
}], type: [{
|
|
3134
|
-
type: Input
|
|
3135
|
-
}], download: [{
|
|
3136
|
-
type: Input
|
|
3137
|
-
}], onLabelFormatter: [{
|
|
3138
|
-
type: Input
|
|
3139
|
-
}], onTooltipFormatter: [{
|
|
3140
|
-
type: Input
|
|
3141
|
-
}], onSelect: [{
|
|
3142
|
-
type: Output
|
|
3143
|
-
}], onDownload: [{
|
|
3144
|
-
type: Output
|
|
3145
|
-
}], data: [{
|
|
3146
|
-
type: Input
|
|
3147
|
-
}] } });
|
|
3675
|
+
}] });
|
|
3148
3676
|
|
|
3149
3677
|
class BizyRadioComponent {
|
|
3150
3678
|
id = `bizy-radio-${Math.random()}`;
|
|
@@ -3180,20 +3708,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
3180
3708
|
type: Output
|
|
3181
3709
|
}] } });
|
|
3182
3710
|
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
static
|
|
3711
|
+
const COMPONENTS$9 = [
|
|
3712
|
+
BizyRadioComponent,
|
|
3713
|
+
];
|
|
3714
|
+
class BizyRadioModule {
|
|
3715
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3716
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyRadioModule, imports: [BizyRadioComponent], exports: [BizyRadioComponent] });
|
|
3717
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyRadioModule, imports: [COMPONENTS$9] });
|
|
3188
3718
|
}
|
|
3189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type:
|
|
3190
|
-
type:
|
|
3191
|
-
args: [{
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyRadioModule, decorators: [{
|
|
3720
|
+
type: NgModule,
|
|
3721
|
+
args: [{
|
|
3722
|
+
imports: COMPONENTS$9,
|
|
3723
|
+
exports: COMPONENTS$9,
|
|
3724
|
+
}]
|
|
3725
|
+
}] });
|
|
3726
|
+
|
|
3727
|
+
const COMPONENTS$8 = [
|
|
3728
|
+
BizySelectComponent,
|
|
3729
|
+
BizySelectOptionComponent
|
|
3730
|
+
];
|
|
3731
|
+
class BizySelectModule {
|
|
3732
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizySelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3733
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizySelectModule, imports: [BizySelectComponent,
|
|
3734
|
+
BizySelectOptionComponent], exports: [BizySelectComponent,
|
|
3735
|
+
BizySelectOptionComponent] });
|
|
3736
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizySelectModule, imports: [COMPONENTS$8] });
|
|
3737
|
+
}
|
|
3738
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizySelectModule, decorators: [{
|
|
3739
|
+
type: NgModule,
|
|
3740
|
+
args: [{
|
|
3741
|
+
imports: COMPONENTS$8,
|
|
3742
|
+
exports: COMPONENTS$8,
|
|
3743
|
+
}]
|
|
3744
|
+
}] });
|
|
3197
3745
|
|
|
3198
3746
|
class BizySidebarOptionComponent {
|
|
3199
3747
|
ref;
|
|
@@ -3533,6 +4081,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
3533
4081
|
type: Input
|
|
3534
4082
|
}] } });
|
|
3535
4083
|
|
|
4084
|
+
class BizySidebarFloatingOptionTitleComponent {
|
|
4085
|
+
id = `bizy-sidebar-floating-option-title-${Math.random()}`;
|
|
4086
|
+
customClass = '';
|
|
4087
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizySidebarFloatingOptionTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4088
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizySidebarFloatingOptionTitleComponent, isStandalone: true, selector: "bizy-sidebar-floating-option-title", inputs: { id: "id", customClass: "customClass" }, ngImport: i0, template: "<span class=\"bizy-sidebar-floating-option-title {{customClass}}\" [id]=\"id\">\n <ng-content></ng-content>\n</span>\n", styles: [":host{font-size:1rem;background-color:var(--bizy-sidebar-floating-option-title-background-color);position:sticky;top:0;z-index:1}.bizy-sidebar-floating-option-title{background-color:inherit;color:var(--bizy-sidebar-floating-option-title-color);padding:.5rem;cursor:default;text-decoration:underline .1rem var(--bizy-sidebar-floating-option-title-underline-color);text-underline-offset:.2rem;display:flex;align-items:center}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4089
|
+
}
|
|
4090
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizySidebarFloatingOptionTitleComponent, decorators: [{
|
|
4091
|
+
type: Component,
|
|
4092
|
+
args: [{ selector: 'bizy-sidebar-floating-option-title', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span class=\"bizy-sidebar-floating-option-title {{customClass}}\" [id]=\"id\">\n <ng-content></ng-content>\n</span>\n", styles: [":host{font-size:1rem;background-color:var(--bizy-sidebar-floating-option-title-background-color);position:sticky;top:0;z-index:1}.bizy-sidebar-floating-option-title{background-color:inherit;color:var(--bizy-sidebar-floating-option-title-color);padding:.5rem;cursor:default;text-decoration:underline .1rem var(--bizy-sidebar-floating-option-title-underline-color);text-underline-offset:.2rem;display:flex;align-items:center}\n"] }]
|
|
4093
|
+
}], propDecorators: { id: [{
|
|
4094
|
+
type: Input
|
|
4095
|
+
}], customClass: [{
|
|
4096
|
+
type: Input
|
|
4097
|
+
}] } });
|
|
4098
|
+
|
|
4099
|
+
const COMPONENTS$7 = [
|
|
4100
|
+
BizySidebarComponent,
|
|
4101
|
+
BizySidebarFloatingOptionComponent,
|
|
4102
|
+
BizySidebarFloatingOptionTitleComponent,
|
|
4103
|
+
BizySidebarOptionComponent
|
|
4104
|
+
];
|
|
4105
|
+
class BizySidebarModule {
|
|
4106
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizySidebarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4107
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizySidebarModule, imports: [BizySidebarComponent,
|
|
4108
|
+
BizySidebarFloatingOptionComponent,
|
|
4109
|
+
BizySidebarFloatingOptionTitleComponent,
|
|
4110
|
+
BizySidebarOptionComponent], exports: [BizySidebarComponent,
|
|
4111
|
+
BizySidebarFloatingOptionComponent,
|
|
4112
|
+
BizySidebarFloatingOptionTitleComponent,
|
|
4113
|
+
BizySidebarOptionComponent] });
|
|
4114
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizySidebarModule, imports: [BizySidebarComponent,
|
|
4115
|
+
BizySidebarFloatingOptionComponent,
|
|
4116
|
+
BizySidebarOptionComponent] });
|
|
4117
|
+
}
|
|
4118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizySidebarModule, decorators: [{
|
|
4119
|
+
type: NgModule,
|
|
4120
|
+
args: [{
|
|
4121
|
+
imports: COMPONENTS$7,
|
|
4122
|
+
exports: COMPONENTS$7,
|
|
4123
|
+
}]
|
|
4124
|
+
}] });
|
|
4125
|
+
|
|
3536
4126
|
var BIZY_SKELETON_SHAPE;
|
|
3537
4127
|
(function (BIZY_SKELETON_SHAPE) {
|
|
3538
4128
|
BIZY_SKELETON_SHAPE["CIRCLE"] = "circle";
|
|
@@ -3564,6 +4154,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
3564
4154
|
type: Input
|
|
3565
4155
|
}] } });
|
|
3566
4156
|
|
|
4157
|
+
const COMPONENTS$6 = [
|
|
4158
|
+
BizySkeletonComponent,
|
|
4159
|
+
];
|
|
4160
|
+
class BizySkeletonModule {
|
|
4161
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizySkeletonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4162
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizySkeletonModule, imports: [BizySkeletonComponent], exports: [BizySkeletonComponent] });
|
|
4163
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizySkeletonModule, imports: [COMPONENTS$6] });
|
|
4164
|
+
}
|
|
4165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizySkeletonModule, decorators: [{
|
|
4166
|
+
type: NgModule,
|
|
4167
|
+
args: [{
|
|
4168
|
+
imports: COMPONENTS$6,
|
|
4169
|
+
exports: COMPONENTS$6,
|
|
4170
|
+
}]
|
|
4171
|
+
}] });
|
|
4172
|
+
|
|
3567
4173
|
class BizySliderComponent {
|
|
3568
4174
|
fromSlider;
|
|
3569
4175
|
toSlider;
|
|
@@ -3630,6 +4236,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
3630
4236
|
type: Input
|
|
3631
4237
|
}] } });
|
|
3632
4238
|
|
|
4239
|
+
const COMPONENTS$5 = [
|
|
4240
|
+
BizySliderComponent,
|
|
4241
|
+
];
|
|
4242
|
+
class BizySliderModule {
|
|
4243
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizySliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4244
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizySliderModule, imports: [BizySliderComponent], exports: [BizySliderComponent] });
|
|
4245
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizySliderModule, imports: [COMPONENTS$5] });
|
|
4246
|
+
}
|
|
4247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizySliderModule, decorators: [{
|
|
4248
|
+
type: NgModule,
|
|
4249
|
+
args: [{
|
|
4250
|
+
imports: COMPONENTS$5,
|
|
4251
|
+
exports: COMPONENTS$5,
|
|
4252
|
+
}]
|
|
4253
|
+
}] });
|
|
4254
|
+
|
|
3633
4255
|
class BizyTableColumnFixedDirective {
|
|
3634
4256
|
#elementRef = inject(ElementRef);
|
|
3635
4257
|
#renderer = inject(Renderer2);
|
|
@@ -3653,176 +4275,36 @@ class BizyTableColumnFixedDirective {
|
|
|
3653
4275
|
this.#renderer.setStyle(this.#elementRef.nativeElement, 'backgroundColor', 'inherit');
|
|
3654
4276
|
this.#renderer.setStyle(this.#elementRef.nativeElement, 'position', 'relative');
|
|
3655
4277
|
this.#elementRef.nativeElement.setMarginLeft = this.setMarginLeft;
|
|
3656
|
-
}
|
|
3657
|
-
else {
|
|
3658
|
-
this.#renderer.setStyle(this.#elementRef.nativeElement, 'zIndex', this.#originalZIndex);
|
|
3659
|
-
this.#renderer.setStyle(this.#elementRef.nativeElement, 'position', this.#originalPosition);
|
|
3660
|
-
this.#renderer.setStyle(this.#elementRef.nativeElement, 'backgroundColor', this.#originalBackgroundColor);
|
|
3661
|
-
this.#elementRef.nativeElement.setMarginLeft = null;
|
|
3662
|
-
}
|
|
3663
|
-
}
|
|
3664
|
-
setMarginLeft = (marginLeft) => {
|
|
3665
|
-
if (marginLeft > 0) {
|
|
3666
|
-
this.#renderer.setStyle(this.#elementRef.nativeElement, 'boxShadow', '16px 0px 15px -5px rgba(0,0,0,0.37)');
|
|
3667
|
-
}
|
|
3668
|
-
else {
|
|
3669
|
-
this.#renderer.setStyle(this.#elementRef.nativeElement, 'zIndex', '0');
|
|
3670
|
-
this.#renderer.setStyle(this.#elementRef.nativeElement, 'boxShadow', this.#originalBoxShadow);
|
|
3671
|
-
}
|
|
3672
|
-
this.#renderer.setStyle(this.#elementRef.nativeElement, 'left', `${marginLeft - 5}px`);
|
|
3673
|
-
this.#renderer.setStyle(this.#elementRef.nativeElement, 'paddingLeft', '5px');
|
|
3674
|
-
};
|
|
3675
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableColumnFixedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3676
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.1", type: BizyTableColumnFixedDirective, isStandalone: true, selector: "[bizyTableColumnFixed]", inputs: { tableColumnFixed: ["bizyTableColumnFixed", "tableColumnFixed"] }, ngImport: i0 });
|
|
3677
|
-
}
|
|
3678
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableColumnFixedDirective, decorators: [{
|
|
3679
|
-
type: Directive,
|
|
3680
|
-
args: [{
|
|
3681
|
-
selector: '[bizyTableColumnFixed]',
|
|
3682
|
-
}]
|
|
3683
|
-
}], propDecorators: { tableColumnFixed: [{
|
|
3684
|
-
type: Input,
|
|
3685
|
-
args: ['bizyTableColumnFixed']
|
|
3686
|
-
}] } });
|
|
3687
|
-
|
|
3688
|
-
class BizyTableRowExpandContentComponent {
|
|
3689
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableRowExpandContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3690
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyTableRowExpandContentComponent, isStandalone: true, selector: "bizy-table-row-expand-content", ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{font-size:1rem;width:100%;background-color:var(--bizy-table-row-expand-content-background-color);border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem;padding:.5rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3691
|
-
}
|
|
3692
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableRowExpandContentComponent, decorators: [{
|
|
3693
|
-
type: Component,
|
|
3694
|
-
args: [{ selector: 'bizy-table-row-expand-content', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>", styles: [":host{font-size:1rem;width:100%;background-color:var(--bizy-table-row-expand-content-background-color);border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem;padding:.5rem}\n"] }]
|
|
3695
|
-
}] });
|
|
3696
|
-
|
|
3697
|
-
// FIX: This components fixes the bug with Angular CDK virtual scrolling not supporting content projection.
|
|
3698
|
-
// https://github.com/angular/components/issues/15277
|
|
3699
|
-
class BizyTableScrollingComponent {
|
|
3700
|
-
document;
|
|
3701
|
-
elementRef;
|
|
3702
|
-
ref;
|
|
3703
|
-
viewport;
|
|
3704
|
-
content;
|
|
3705
|
-
#view;
|
|
3706
|
-
items$;
|
|
3707
|
-
itemTemplate;
|
|
3708
|
-
itemSize;
|
|
3709
|
-
#subscription = new Subscription();
|
|
3710
|
-
#scrollTop = 0;
|
|
3711
|
-
constructor(document, elementRef, ref) {
|
|
3712
|
-
this.document = document;
|
|
3713
|
-
this.elementRef = elementRef;
|
|
3714
|
-
this.ref = ref;
|
|
3715
|
-
}
|
|
3716
|
-
/** Called by the virtual-for directive inside of the viewport. */
|
|
3717
|
-
attachView(tableDirective) {
|
|
3718
|
-
if (this.#view) {
|
|
3719
|
-
return;
|
|
3720
|
-
}
|
|
3721
|
-
let itemSize = 30;
|
|
3722
|
-
const rowHeight = getComputedStyle(this.document.documentElement).getPropertyValue('--bizy-table-row-height');
|
|
3723
|
-
const fontSize = getComputedStyle(this.document.documentElement).getPropertyValue('font-size');
|
|
3724
|
-
const gap = Number(fontSize.split('px')[0]) * 0.1;
|
|
3725
|
-
if (rowHeight && rowHeight.includes('rem')) {
|
|
3726
|
-
itemSize = Number(fontSize.split('px')[0]) * Number(rowHeight.split('rem')[0]);
|
|
3727
|
-
}
|
|
3728
|
-
else if (rowHeight && rowHeight.includes('px')) {
|
|
3729
|
-
itemSize = Number(rowHeight.split('px')[0]);
|
|
3730
|
-
}
|
|
3731
|
-
this.itemSize = itemSize + gap;
|
|
3732
|
-
this.items$ = tableDirective.items$;
|
|
3733
|
-
this.itemTemplate = tableDirective.template;
|
|
3734
|
-
this.#view = tableDirective.viewContainerRef;
|
|
3735
|
-
this.#view.createEmbeddedView(this.content);
|
|
3736
|
-
this.ref.detectChanges();
|
|
3737
|
-
this.#subscription.add(fromEvent(this.elementRef.nativeElement, 'scroll', { capture: true }).pipe(debounceTime(100)).subscribe(() => {
|
|
3738
|
-
this.#scrollTop = this.viewport.measureScrollOffset();
|
|
3739
|
-
}));
|
|
3740
|
-
this.#subscription.add(this.items$.pipe(skip(1)).subscribe(() => {
|
|
3741
|
-
if (this.viewport) {
|
|
3742
|
-
this.viewport.scrollToOffset(this.#scrollTop);
|
|
3743
|
-
this.ref.detectChanges();
|
|
3744
|
-
}
|
|
3745
|
-
}));
|
|
3746
|
-
}
|
|
3747
|
-
ngOnDestroy() {
|
|
3748
|
-
this.#subscription.unsubscribe();
|
|
3749
|
-
}
|
|
3750
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableScrollingComponent, deps: [{ token: DOCUMENT }, { token: ElementRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3751
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyTableScrollingComponent, isStandalone: true, selector: "bizy-table-scrolling", viewQueries: [{ propertyName: "viewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }, { propertyName: "content", first: true, predicate: ["tableScrollingContent"], descendants: true }], ngImport: i0, template: "<cdk-virtual-scroll-viewport \n [itemSize]=\"itemSize\"\n [minBufferPx]=\"itemSize + (itemSize * 20)\"\n [maxBufferPx]=\"itemSize + (itemSize * 40)\">\n \n <ng-content></ng-content>\n\n <ng-template #tableScrollingContent>\n <ng-template let-item cdkVirtualFor [cdkVirtualForOf]=\"items$ | async\">\n <ng-template *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-template>\n </ng-template>\n </ng-template>\n</cdk-virtual-scroll-viewport>", styles: ["::ng-deep .cdk-virtual-scrollable{height:100%;width:100%;overflow-y:auto!important;overflow-x:hidden!important;contain:inline-size!important}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar{width:.5rem;height:.5rem}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-table-scroll-bar-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-table-scroll-bar-hover-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-button{height:1rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i2$3.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i2$3.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i2$3.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }] });
|
|
3752
|
-
}
|
|
3753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableScrollingComponent, decorators: [{
|
|
3754
|
-
type: Component,
|
|
3755
|
-
args: [{ selector: 'bizy-table-scrolling', imports: [CommonModule, ScrollingModule], template: "<cdk-virtual-scroll-viewport \n [itemSize]=\"itemSize\"\n [minBufferPx]=\"itemSize + (itemSize * 20)\"\n [maxBufferPx]=\"itemSize + (itemSize * 40)\">\n \n <ng-content></ng-content>\n\n <ng-template #tableScrollingContent>\n <ng-template let-item cdkVirtualFor [cdkVirtualForOf]=\"items$ | async\">\n <ng-template *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-template>\n </ng-template>\n </ng-template>\n</cdk-virtual-scroll-viewport>", styles: ["::ng-deep .cdk-virtual-scrollable{height:100%;width:100%;overflow-y:auto!important;overflow-x:hidden!important;contain:inline-size!important}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar{width:.5rem;height:.5rem}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-table-scroll-bar-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-table-scroll-bar-hover-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-button{height:1rem}\n"] }]
|
|
3756
|
-
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
3757
|
-
type: Inject,
|
|
3758
|
-
args: [DOCUMENT]
|
|
3759
|
-
}] }, { type: i0.ElementRef, decorators: [{
|
|
3760
|
-
type: Inject,
|
|
3761
|
-
args: [ElementRef]
|
|
3762
|
-
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
3763
|
-
type: Inject,
|
|
3764
|
-
args: [ChangeDetectorRef]
|
|
3765
|
-
}] }], propDecorators: { viewport: [{
|
|
3766
|
-
type: ViewChild,
|
|
3767
|
-
args: [CdkVirtualScrollViewport]
|
|
3768
|
-
}], content: [{
|
|
3769
|
-
type: ViewChild,
|
|
3770
|
-
args: ['tableScrollingContent']
|
|
3771
|
-
}] } });
|
|
3772
|
-
|
|
3773
|
-
class BizyTableScrollingDirective {
|
|
3774
|
-
viewContainerRef;
|
|
3775
|
-
template;
|
|
3776
|
-
ref;
|
|
3777
|
-
#items = new BehaviorSubject([]);
|
|
3778
|
-
get items$() {
|
|
3779
|
-
return this.#items.asObservable();
|
|
3780
|
-
}
|
|
3781
|
-
set tableForIn(value) {
|
|
3782
|
-
this.#items.next(value);
|
|
3783
|
-
}
|
|
3784
|
-
constructor(viewContainerRef, template, ref) {
|
|
3785
|
-
this.viewContainerRef = viewContainerRef;
|
|
3786
|
-
this.template = template;
|
|
3787
|
-
this.ref = ref;
|
|
4278
|
+
}
|
|
4279
|
+
else {
|
|
4280
|
+
this.#renderer.setStyle(this.#elementRef.nativeElement, 'zIndex', this.#originalZIndex);
|
|
4281
|
+
this.#renderer.setStyle(this.#elementRef.nativeElement, 'position', this.#originalPosition);
|
|
4282
|
+
this.#renderer.setStyle(this.#elementRef.nativeElement, 'backgroundColor', this.#originalBackgroundColor);
|
|
4283
|
+
this.#elementRef.nativeElement.setMarginLeft = null;
|
|
4284
|
+
}
|
|
3788
4285
|
}
|
|
3789
|
-
|
|
3790
|
-
|
|
4286
|
+
setMarginLeft = (marginLeft) => {
|
|
4287
|
+
if (marginLeft > 0) {
|
|
4288
|
+
this.#renderer.setStyle(this.#elementRef.nativeElement, 'boxShadow', '16px 0px 15px -5px rgba(0,0,0,0.37)');
|
|
4289
|
+
}
|
|
4290
|
+
else {
|
|
4291
|
+
this.#renderer.setStyle(this.#elementRef.nativeElement, 'zIndex', '0');
|
|
4292
|
+
this.#renderer.setStyle(this.#elementRef.nativeElement, 'boxShadow', this.#originalBoxShadow);
|
|
4293
|
+
}
|
|
4294
|
+
this.#renderer.setStyle(this.#elementRef.nativeElement, 'left', `${marginLeft - 5}px`);
|
|
4295
|
+
this.#renderer.setStyle(this.#elementRef.nativeElement, 'paddingLeft', '5px');
|
|
4296
|
+
};
|
|
4297
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableColumnFixedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4298
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.1", type: BizyTableColumnFixedDirective, isStandalone: true, selector: "[bizyTableColumnFixed]", inputs: { tableColumnFixed: ["bizyTableColumnFixed", "tableColumnFixed"] }, ngImport: i0 });
|
|
3791
4299
|
}
|
|
3792
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type:
|
|
4300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableColumnFixedDirective, decorators: [{
|
|
3793
4301
|
type: Directive,
|
|
3794
4302
|
args: [{
|
|
3795
|
-
selector: '[
|
|
4303
|
+
selector: '[bizyTableColumnFixed]',
|
|
3796
4304
|
}]
|
|
3797
|
-
}],
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
}] }, { type: i0.TemplateRef, decorators: [{
|
|
3801
|
-
type: Inject,
|
|
3802
|
-
args: [TemplateRef]
|
|
3803
|
-
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
3804
|
-
type: Inject,
|
|
3805
|
-
args: [ChangeDetectorRef]
|
|
3806
|
-
}] }], propDecorators: { tableForIn: [{
|
|
3807
|
-
type: Input
|
|
3808
|
-
}] } });
|
|
3809
|
-
|
|
3810
|
-
class BizyTableColumnArrowsComponent {
|
|
3811
|
-
order = null;
|
|
3812
|
-
show = false;
|
|
3813
|
-
customClass = '';
|
|
3814
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableColumnArrowsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3815
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyTableColumnArrowsComponent, isStandalone: true, selector: "bizy-table-column-arrows", inputs: { order: "order", show: "show", customClass: "customClass" }, ngImport: i0, template: "<svg \n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 448 512\"\n *ngIf=\"order !== 'asc' && order !== 'desc'\"\n name=\"bizy-table-column-arrows\"\n class=\"bizy-table-column-arrows bizy-table-column-arrows__down-up animated fade-in {{customClass}}\">\n <path d=\"M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z\"/>\n</svg>\n\n<svg \n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 576 512\"\n *ngIf=\"order === 'desc'\"\n name=\"bizy-table-column-down-arrow\"\n class=\"bizy-table-column-arrows animated fade-in {{customClass}}\"\n [ngClass]=\"{'bizy-table-column-arrows--visible': show}\">\n <path d=\"M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V365.7l32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320z\"/>\n</svg>\n\n\n<svg \n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 576 512\"\n *ngIf=\"order === 'asc'\"\n class=\"bizy-table-column-arrows animated fade-in {{customClass}}\"\n [ngClass]=\"{'bizy-table-column-arrows--visible': show}\"\n name=\"bizy-table-column-up-arrow\">\n <path d=\"M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3V448c0 17.7 14.3 32 32 32s32-14.3 32-32V146.3l32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320z\"/>\n</svg>\n", styles: [":host{font-size:1rem}.bizy-table-column-arrows__down-up{transform:rotate(90deg)}.bizy-table-column-arrows{display:none;font-size:1rem;height:1rem;fill:var(--bizy-table-column-arrows-color)}.bizy-table-column-arrows--visible{display:inline-block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3816
|
-
}
|
|
3817
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableColumnArrowsComponent, decorators: [{
|
|
3818
|
-
type: Component,
|
|
3819
|
-
args: [{ selector: 'bizy-table-column-arrows', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg \n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 448 512\"\n *ngIf=\"order !== 'asc' && order !== 'desc'\"\n name=\"bizy-table-column-arrows\"\n class=\"bizy-table-column-arrows bizy-table-column-arrows__down-up animated fade-in {{customClass}}\">\n <path d=\"M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z\"/>\n</svg>\n\n<svg \n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 576 512\"\n *ngIf=\"order === 'desc'\"\n name=\"bizy-table-column-down-arrow\"\n class=\"bizy-table-column-arrows animated fade-in {{customClass}}\"\n [ngClass]=\"{'bizy-table-column-arrows--visible': show}\">\n <path d=\"M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V365.7l32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320z\"/>\n</svg>\n\n\n<svg \n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 576 512\"\n *ngIf=\"order === 'asc'\"\n class=\"bizy-table-column-arrows animated fade-in {{customClass}}\"\n [ngClass]=\"{'bizy-table-column-arrows--visible': show}\"\n name=\"bizy-table-column-up-arrow\">\n <path d=\"M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3V448c0 17.7 14.3 32 32 32s32-14.3 32-32V146.3l32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320z\"/>\n</svg>\n", styles: [":host{font-size:1rem}.bizy-table-column-arrows__down-up{transform:rotate(90deg)}.bizy-table-column-arrows{display:none;font-size:1rem;height:1rem;fill:var(--bizy-table-column-arrows-color)}.bizy-table-column-arrows--visible{display:inline-block}\n"] }]
|
|
3820
|
-
}], propDecorators: { order: [{
|
|
3821
|
-
type: Input
|
|
3822
|
-
}], show: [{
|
|
3823
|
-
type: Input
|
|
3824
|
-
}], customClass: [{
|
|
3825
|
-
type: Input
|
|
4305
|
+
}], propDecorators: { tableColumnFixed: [{
|
|
4306
|
+
type: Input,
|
|
4307
|
+
args: ['bizyTableColumnFixed']
|
|
3826
4308
|
}] } });
|
|
3827
4309
|
|
|
3828
4310
|
class BizyTableColumnComponent {
|
|
@@ -3853,6 +4335,129 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
3853
4335
|
type: Output
|
|
3854
4336
|
}] } });
|
|
3855
4337
|
|
|
4338
|
+
class BizyTableHeaderComponent {
|
|
4339
|
+
ref;
|
|
4340
|
+
elementRef;
|
|
4341
|
+
columns;
|
|
4342
|
+
id = `bizy-table-header-${Math.random()}`;
|
|
4343
|
+
customClass = '';
|
|
4344
|
+
selected = false;
|
|
4345
|
+
selectable = null;
|
|
4346
|
+
selectedChange = new EventEmitter();
|
|
4347
|
+
onSelect = new EventEmitter();
|
|
4348
|
+
marginRight = 0;
|
|
4349
|
+
constructor(ref, elementRef) {
|
|
4350
|
+
this.ref = ref;
|
|
4351
|
+
this.elementRef = elementRef;
|
|
4352
|
+
}
|
|
4353
|
+
getId = () => {
|
|
4354
|
+
return this.id;
|
|
4355
|
+
};
|
|
4356
|
+
getSelected = () => {
|
|
4357
|
+
return this.selected;
|
|
4358
|
+
};
|
|
4359
|
+
setSelectable = (selectable) => {
|
|
4360
|
+
if (this.selectable === false) {
|
|
4361
|
+
return;
|
|
4362
|
+
}
|
|
4363
|
+
this.selectable = selectable;
|
|
4364
|
+
this.ref.detectChanges();
|
|
4365
|
+
};
|
|
4366
|
+
setMarginRight(margin) {
|
|
4367
|
+
this.marginRight = margin - 5;
|
|
4368
|
+
this.ref.detectChanges();
|
|
4369
|
+
}
|
|
4370
|
+
setMarginLeft(margin) {
|
|
4371
|
+
if (this.columns.length === 0) {
|
|
4372
|
+
return;
|
|
4373
|
+
}
|
|
4374
|
+
this.columns.forEach(_column => {
|
|
4375
|
+
_column.setMarginLeft(margin);
|
|
4376
|
+
this.ref.detectChanges();
|
|
4377
|
+
});
|
|
4378
|
+
}
|
|
4379
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableHeaderComponent, deps: [{ token: ChangeDetectorRef }, { token: ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4380
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyTableHeaderComponent, isStandalone: true, selector: "bizy-table-header", inputs: { id: "id", customClass: "customClass", selected: "selected", selectable: "selectable" }, outputs: { selectedChange: "selectedChange", onSelect: "onSelect" }, queries: [{ propertyName: "columns", predicate: BizyTableColumnComponent }], ngImport: i0, template: "<div \n [id]=\"id\"\n class=\"bizy-table-header {{customClass}}\">\n\n <ng-content select=\"bizy-table-column\"></ng-content>\n\n <span \n *ngIf=\"selectable !== null\"\n class=\"bizy-table-header__checkbox-wrapper\"\n [ngStyle]=\"{right: marginRight + 'px'}\"\n [ngClass]=\"{'bizy-table-footer__checkbox--shadow': marginRight > 0}\">\n \n <bizy-checkbox \n [selected]=\"selected\"\n (selectedChange)=\"selectedChange.emit($event)\"\n (onSelect)=\"onSelect.emit($event)\"\n [ngClass]=\"{'bizy-table-header__checkbox--hidden': selectable === false}\">\n </bizy-checkbox>\n </span>\n\n</div>", styles: [":host{font-size:1rem;width:fit-content;min-width:100%}.bizy-table-header{font-size:1rem;padding:0 .3rem;display:flex;align-items:center;height:var(--bizy-table-header-height);width:fit-content;min-width:var(--bizy-table-width);background-color:var(--bizy-table-header-background-color)}.bizy-table-header__checkbox-wrapper{z-index:1;background-color:inherit;padding:0 10px;display:grid;place-items:center;position:relative;height:100%}.bizy-table-header__checkbox--shadow{box-shadow:-19px 0 28px -9px #00000080}.bizy-table-header__checkbox--hidden{pointer-events:none;visibility:hidden;opacity:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4381
|
+
}
|
|
4382
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableHeaderComponent, decorators: [{
|
|
4383
|
+
type: Component,
|
|
4384
|
+
args: [{ selector: 'bizy-table-header', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div \n [id]=\"id\"\n class=\"bizy-table-header {{customClass}}\">\n\n <ng-content select=\"bizy-table-column\"></ng-content>\n\n <span \n *ngIf=\"selectable !== null\"\n class=\"bizy-table-header__checkbox-wrapper\"\n [ngStyle]=\"{right: marginRight + 'px'}\"\n [ngClass]=\"{'bizy-table-footer__checkbox--shadow': marginRight > 0}\">\n \n <bizy-checkbox \n [selected]=\"selected\"\n (selectedChange)=\"selectedChange.emit($event)\"\n (onSelect)=\"onSelect.emit($event)\"\n [ngClass]=\"{'bizy-table-header__checkbox--hidden': selectable === false}\">\n </bizy-checkbox>\n </span>\n\n</div>", styles: [":host{font-size:1rem;width:fit-content;min-width:100%}.bizy-table-header{font-size:1rem;padding:0 .3rem;display:flex;align-items:center;height:var(--bizy-table-header-height);width:fit-content;min-width:var(--bizy-table-width);background-color:var(--bizy-table-header-background-color)}.bizy-table-header__checkbox-wrapper{z-index:1;background-color:inherit;padding:0 10px;display:grid;place-items:center;position:relative;height:100%}.bizy-table-header__checkbox--shadow{box-shadow:-19px 0 28px -9px #00000080}.bizy-table-header__checkbox--hidden{pointer-events:none;visibility:hidden;opacity:0}\n"] }]
|
|
4385
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
|
|
4386
|
+
type: Inject,
|
|
4387
|
+
args: [ChangeDetectorRef]
|
|
4388
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
4389
|
+
type: Inject,
|
|
4390
|
+
args: [ElementRef]
|
|
4391
|
+
}] }], propDecorators: { columns: [{
|
|
4392
|
+
type: ContentChildren,
|
|
4393
|
+
args: [BizyTableColumnComponent]
|
|
4394
|
+
}], id: [{
|
|
4395
|
+
type: Input
|
|
4396
|
+
}], customClass: [{
|
|
4397
|
+
type: Input
|
|
4398
|
+
}], selected: [{
|
|
4399
|
+
type: Input
|
|
4400
|
+
}], selectable: [{
|
|
4401
|
+
type: Input
|
|
4402
|
+
}], selectedChange: [{
|
|
4403
|
+
type: Output
|
|
4404
|
+
}], onSelect: [{
|
|
4405
|
+
type: Output
|
|
4406
|
+
}] } });
|
|
4407
|
+
|
|
4408
|
+
class BizyTableFooterComponent {
|
|
4409
|
+
ref;
|
|
4410
|
+
elementRef;
|
|
4411
|
+
columns;
|
|
4412
|
+
id = `bizy-table-footer-${Math.random()}`;
|
|
4413
|
+
customClass = '';
|
|
4414
|
+
marginRight = 0;
|
|
4415
|
+
_selectable = false;
|
|
4416
|
+
constructor(ref, elementRef) {
|
|
4417
|
+
this.ref = ref;
|
|
4418
|
+
this.elementRef = elementRef;
|
|
4419
|
+
}
|
|
4420
|
+
getId = () => {
|
|
4421
|
+
return this.id;
|
|
4422
|
+
};
|
|
4423
|
+
setSelectable = (selectable) => {
|
|
4424
|
+
this._selectable = selectable;
|
|
4425
|
+
this.ref.detectChanges();
|
|
4426
|
+
};
|
|
4427
|
+
setMarginRight(margin) {
|
|
4428
|
+
this.marginRight = margin - 5;
|
|
4429
|
+
this.ref.detectChanges();
|
|
4430
|
+
}
|
|
4431
|
+
setMarginLeft(margin) {
|
|
4432
|
+
if (this.columns.length === 0) {
|
|
4433
|
+
return;
|
|
4434
|
+
}
|
|
4435
|
+
this.columns.forEach(_column => {
|
|
4436
|
+
_column.setMarginLeft(margin);
|
|
4437
|
+
this.ref.detectChanges();
|
|
4438
|
+
});
|
|
4439
|
+
}
|
|
4440
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableFooterComponent, deps: [{ token: ChangeDetectorRef }, { token: ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4441
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyTableFooterComponent, isStandalone: true, selector: "bizy-table-footer", inputs: { id: "id", customClass: "customClass" }, queries: [{ propertyName: "columns", predicate: BizyTableColumnComponent }], ngImport: i0, template: "<div \n [id]=\"id\"\n class=\"bizy-table-footer {{customClass}}\">\n\n <ng-content select=\"bizy-table-column\"></ng-content>\n\n\n <span \n *ngIf=\"_selectable\"\n class=\"bizy-table-footer__checkbox-wrapper\"\n [ngStyle]=\"{right: marginRight + 'px'}\"\n [ngClass]=\"{'bizy-table-footer__checkbox--shadow': marginRight > 0}\">\n \n <bizy-checkbox \n class=\"bizy-table-footer__checkbox\">\n </bizy-checkbox>\n </span>\n \n</div>", styles: [":host{font-size:1rem;width:fit-content;min-width:100%}.bizy-table-footer{font-size:1rem;padding:0 .3rem;display:flex;align-items:center;height:var(--bizy-table-footer-height);width:fit-content;min-width:var(--bizy-table-width);background-color:var(--bizy-table-footer-background-color)}.bizy-table-footer__checkbox-wrapper{z-index:1;background-color:inherit;padding:0 10px;display:grid;place-items:center;position:relative;height:100%}.bizy-table-footer__checkbox{visibility:hidden;pointer-events:none;opacity:0}.bizy-table-footer__checkbox--shadow{box-shadow:-19px 0 28px -9px #00000080}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4442
|
+
}
|
|
4443
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableFooterComponent, decorators: [{
|
|
4444
|
+
type: Component,
|
|
4445
|
+
args: [{ selector: 'bizy-table-footer', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div \n [id]=\"id\"\n class=\"bizy-table-footer {{customClass}}\">\n\n <ng-content select=\"bizy-table-column\"></ng-content>\n\n\n <span \n *ngIf=\"_selectable\"\n class=\"bizy-table-footer__checkbox-wrapper\"\n [ngStyle]=\"{right: marginRight + 'px'}\"\n [ngClass]=\"{'bizy-table-footer__checkbox--shadow': marginRight > 0}\">\n \n <bizy-checkbox \n class=\"bizy-table-footer__checkbox\">\n </bizy-checkbox>\n </span>\n \n</div>", styles: [":host{font-size:1rem;width:fit-content;min-width:100%}.bizy-table-footer{font-size:1rem;padding:0 .3rem;display:flex;align-items:center;height:var(--bizy-table-footer-height);width:fit-content;min-width:var(--bizy-table-width);background-color:var(--bizy-table-footer-background-color)}.bizy-table-footer__checkbox-wrapper{z-index:1;background-color:inherit;padding:0 10px;display:grid;place-items:center;position:relative;height:100%}.bizy-table-footer__checkbox{visibility:hidden;pointer-events:none;opacity:0}.bizy-table-footer__checkbox--shadow{box-shadow:-19px 0 28px -9px #00000080}\n"] }]
|
|
4446
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef, decorators: [{
|
|
4447
|
+
type: Inject,
|
|
4448
|
+
args: [ChangeDetectorRef]
|
|
4449
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
4450
|
+
type: Inject,
|
|
4451
|
+
args: [ElementRef]
|
|
4452
|
+
}] }], propDecorators: { columns: [{
|
|
4453
|
+
type: ContentChildren,
|
|
4454
|
+
args: [BizyTableColumnComponent]
|
|
4455
|
+
}], id: [{
|
|
4456
|
+
type: Input
|
|
4457
|
+
}], customClass: [{
|
|
4458
|
+
type: Input
|
|
4459
|
+
}] } });
|
|
4460
|
+
|
|
3856
4461
|
class BizyTableRowComponent {
|
|
3857
4462
|
ref;
|
|
3858
4463
|
columns;
|
|
@@ -3945,127 +4550,117 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
3945
4550
|
type: Output
|
|
3946
4551
|
}] } });
|
|
3947
4552
|
|
|
3948
|
-
|
|
3949
|
-
|
|
4553
|
+
// FIX: This components fixes the bug with Angular CDK virtual scrolling not supporting content projection.
|
|
4554
|
+
// https://github.com/angular/components/issues/15277
|
|
4555
|
+
class BizyTableScrollingComponent {
|
|
4556
|
+
document;
|
|
3950
4557
|
elementRef;
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
4558
|
+
ref;
|
|
4559
|
+
viewport;
|
|
4560
|
+
content;
|
|
4561
|
+
#view;
|
|
4562
|
+
items$;
|
|
4563
|
+
itemTemplate;
|
|
4564
|
+
itemSize;
|
|
4565
|
+
#subscription = new Subscription();
|
|
4566
|
+
#scrollTop = 0;
|
|
4567
|
+
constructor(document, elementRef, ref) {
|
|
4568
|
+
this.document = document;
|
|
3958
4569
|
this.elementRef = elementRef;
|
|
4570
|
+
this.ref = ref;
|
|
3959
4571
|
}
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
setSelectable = (selectable) => {
|
|
3964
|
-
this._selectable = selectable;
|
|
3965
|
-
this.ref.detectChanges();
|
|
3966
|
-
};
|
|
3967
|
-
setMarginRight(margin) {
|
|
3968
|
-
this.marginRight = margin - 5;
|
|
3969
|
-
this.ref.detectChanges();
|
|
3970
|
-
}
|
|
3971
|
-
setMarginLeft(margin) {
|
|
3972
|
-
if (this.columns.length === 0) {
|
|
4572
|
+
/** Called by the virtual-for directive inside of the viewport. */
|
|
4573
|
+
attachView(tableDirective) {
|
|
4574
|
+
if (this.#view) {
|
|
3973
4575
|
return;
|
|
3974
4576
|
}
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
4577
|
+
let itemSize = 30;
|
|
4578
|
+
const rowHeight = getComputedStyle(this.document.documentElement).getPropertyValue('--bizy-table-row-height');
|
|
4579
|
+
const fontSize = getComputedStyle(this.document.documentElement).getPropertyValue('font-size');
|
|
4580
|
+
const gap = Number(fontSize.split('px')[0]) * 0.1;
|
|
4581
|
+
if (rowHeight && rowHeight.includes('rem')) {
|
|
4582
|
+
itemSize = Number(fontSize.split('px')[0]) * Number(rowHeight.split('rem')[0]);
|
|
4583
|
+
}
|
|
4584
|
+
else if (rowHeight && rowHeight.includes('px')) {
|
|
4585
|
+
itemSize = Number(rowHeight.split('px')[0]);
|
|
4586
|
+
}
|
|
4587
|
+
this.itemSize = itemSize + gap;
|
|
4588
|
+
this.items$ = tableDirective.items$;
|
|
4589
|
+
this.itemTemplate = tableDirective.template;
|
|
4590
|
+
this.#view = tableDirective.viewContainerRef;
|
|
4591
|
+
this.#view.createEmbeddedView(this.content);
|
|
4592
|
+
this.ref.detectChanges();
|
|
4593
|
+
this.#subscription.add(fromEvent(this.elementRef.nativeElement, 'scroll', { capture: true }).pipe(debounceTime$1(100)).subscribe(() => {
|
|
4594
|
+
this.#scrollTop = this.viewport.measureScrollOffset();
|
|
4595
|
+
}));
|
|
4596
|
+
this.#subscription.add(this.items$.pipe(skip(1)).subscribe(() => {
|
|
4597
|
+
if (this.viewport) {
|
|
4598
|
+
this.viewport.scrollToOffset(this.#scrollTop);
|
|
4599
|
+
this.ref.detectChanges();
|
|
4600
|
+
}
|
|
4601
|
+
}));
|
|
3979
4602
|
}
|
|
3980
|
-
|
|
3981
|
-
|
|
4603
|
+
ngOnDestroy() {
|
|
4604
|
+
this.#subscription.unsubscribe();
|
|
4605
|
+
}
|
|
4606
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableScrollingComponent, deps: [{ token: DOCUMENT }, { token: ElementRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4607
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyTableScrollingComponent, isStandalone: true, selector: "bizy-table-scrolling", viewQueries: [{ propertyName: "viewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }, { propertyName: "content", first: true, predicate: ["tableScrollingContent"], descendants: true }], ngImport: i0, template: "<cdk-virtual-scroll-viewport \n [itemSize]=\"itemSize\"\n [minBufferPx]=\"itemSize + (itemSize * 20)\"\n [maxBufferPx]=\"itemSize + (itemSize * 40)\">\n \n <ng-content></ng-content>\n\n <ng-template #tableScrollingContent>\n <ng-template let-item cdkVirtualFor [cdkVirtualForOf]=\"items$ | async\">\n <ng-template *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-template>\n </ng-template>\n </ng-template>\n</cdk-virtual-scroll-viewport>", styles: ["::ng-deep .cdk-virtual-scrollable{height:100%;width:100%;overflow-y:auto!important;overflow-x:hidden!important;contain:inline-size!important}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar{width:.5rem;height:.5rem}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-table-scroll-bar-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-table-scroll-bar-hover-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-button{height:1rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i2$3.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i2$3.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i2$3.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }] });
|
|
3982
4608
|
}
|
|
3983
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type:
|
|
4609
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableScrollingComponent, decorators: [{
|
|
3984
4610
|
type: Component,
|
|
3985
|
-
args: [{ selector: 'bizy-table-
|
|
3986
|
-
}], ctorParameters: () => [{ type:
|
|
4611
|
+
args: [{ selector: 'bizy-table-scrolling', imports: [CommonModule, ScrollingModule], template: "<cdk-virtual-scroll-viewport \n [itemSize]=\"itemSize\"\n [minBufferPx]=\"itemSize + (itemSize * 20)\"\n [maxBufferPx]=\"itemSize + (itemSize * 40)\">\n \n <ng-content></ng-content>\n\n <ng-template #tableScrollingContent>\n <ng-template let-item cdkVirtualFor [cdkVirtualForOf]=\"items$ | async\">\n <ng-template *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-template>\n </ng-template>\n </ng-template>\n</cdk-virtual-scroll-viewport>", styles: ["::ng-deep .cdk-virtual-scrollable{height:100%;width:100%;overflow-y:auto!important;overflow-x:hidden!important;contain:inline-size!important}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar{width:.5rem;height:.5rem}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-table-scroll-bar-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-table-scroll-bar-hover-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-button{height:1rem}\n"] }]
|
|
4612
|
+
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
3987
4613
|
type: Inject,
|
|
3988
|
-
args: [
|
|
4614
|
+
args: [DOCUMENT]
|
|
3989
4615
|
}] }, { type: i0.ElementRef, decorators: [{
|
|
3990
4616
|
type: Inject,
|
|
3991
4617
|
args: [ElementRef]
|
|
3992
|
-
}] }
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
type:
|
|
3997
|
-
|
|
3998
|
-
|
|
4618
|
+
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
4619
|
+
type: Inject,
|
|
4620
|
+
args: [ChangeDetectorRef]
|
|
4621
|
+
}] }], propDecorators: { viewport: [{
|
|
4622
|
+
type: ViewChild,
|
|
4623
|
+
args: [CdkVirtualScrollViewport]
|
|
4624
|
+
}], content: [{
|
|
4625
|
+
type: ViewChild,
|
|
4626
|
+
args: ['tableScrollingContent']
|
|
3999
4627
|
}] } });
|
|
4000
4628
|
|
|
4001
|
-
class
|
|
4629
|
+
class BizyTableScrollingDirective {
|
|
4630
|
+
viewContainerRef;
|
|
4631
|
+
template;
|
|
4002
4632
|
ref;
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
customClass = '';
|
|
4007
|
-
selected = false;
|
|
4008
|
-
selectable = null;
|
|
4009
|
-
selectedChange = new EventEmitter();
|
|
4010
|
-
onSelect = new EventEmitter();
|
|
4011
|
-
marginRight = 0;
|
|
4012
|
-
constructor(ref, elementRef) {
|
|
4013
|
-
this.ref = ref;
|
|
4014
|
-
this.elementRef = elementRef;
|
|
4633
|
+
#items = new BehaviorSubject([]);
|
|
4634
|
+
get items$() {
|
|
4635
|
+
return this.#items.asObservable();
|
|
4015
4636
|
}
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
};
|
|
4019
|
-
getSelected = () => {
|
|
4020
|
-
return this.selected;
|
|
4021
|
-
};
|
|
4022
|
-
setSelectable = (selectable) => {
|
|
4023
|
-
if (this.selectable === false) {
|
|
4024
|
-
return;
|
|
4025
|
-
}
|
|
4026
|
-
this.selectable = selectable;
|
|
4027
|
-
this.ref.detectChanges();
|
|
4028
|
-
};
|
|
4029
|
-
setMarginRight(margin) {
|
|
4030
|
-
this.marginRight = margin - 5;
|
|
4031
|
-
this.ref.detectChanges();
|
|
4637
|
+
set tableForIn(value) {
|
|
4638
|
+
this.#items.next(value);
|
|
4032
4639
|
}
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
this.columns.forEach(_column => {
|
|
4038
|
-
_column.setMarginLeft(margin);
|
|
4039
|
-
this.ref.detectChanges();
|
|
4040
|
-
});
|
|
4640
|
+
constructor(viewContainerRef, template, ref) {
|
|
4641
|
+
this.viewContainerRef = viewContainerRef;
|
|
4642
|
+
this.template = template;
|
|
4643
|
+
this.ref = ref;
|
|
4041
4644
|
}
|
|
4042
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type:
|
|
4043
|
-
static
|
|
4645
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableScrollingDirective, deps: [{ token: ViewContainerRef }, { token: TemplateRef }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4646
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.1", type: BizyTableScrollingDirective, isStandalone: true, selector: "[tableFor]", inputs: { tableForIn: "tableForIn" }, ngImport: i0 });
|
|
4044
4647
|
}
|
|
4045
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type:
|
|
4046
|
-
type:
|
|
4047
|
-
args: [{
|
|
4048
|
-
|
|
4648
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableScrollingDirective, decorators: [{
|
|
4649
|
+
type: Directive,
|
|
4650
|
+
args: [{
|
|
4651
|
+
selector: '[tableFor]',
|
|
4652
|
+
}]
|
|
4653
|
+
}], ctorParameters: () => [{ type: i0.ViewContainerRef, decorators: [{
|
|
4049
4654
|
type: Inject,
|
|
4050
|
-
args: [
|
|
4051
|
-
}] }, { type: i0.
|
|
4655
|
+
args: [ViewContainerRef]
|
|
4656
|
+
}] }, { type: i0.TemplateRef, decorators: [{
|
|
4052
4657
|
type: Inject,
|
|
4053
|
-
args: [
|
|
4054
|
-
}] }
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
type: Input
|
|
4059
|
-
}], customClass: [{
|
|
4060
|
-
type: Input
|
|
4061
|
-
}], selected: [{
|
|
4062
|
-
type: Input
|
|
4063
|
-
}], selectable: [{
|
|
4658
|
+
args: [TemplateRef]
|
|
4659
|
+
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
4660
|
+
type: Inject,
|
|
4661
|
+
args: [ChangeDetectorRef]
|
|
4662
|
+
}] }], propDecorators: { tableForIn: [{
|
|
4064
4663
|
type: Input
|
|
4065
|
-
}], selectedChange: [{
|
|
4066
|
-
type: Output
|
|
4067
|
-
}], onSelect: [{
|
|
4068
|
-
type: Output
|
|
4069
4664
|
}] } });
|
|
4070
4665
|
|
|
4071
4666
|
class BizyTableComponent {
|
|
@@ -4178,7 +4773,7 @@ class BizyTableComponent {
|
|
|
4178
4773
|
this.#resizeObserver = new ResizeObserver(() => this.notifier$.next());
|
|
4179
4774
|
const resizeRef = this.resizeRef ? this.resizeRef : this.renderer.parentNode(this.elementRef.nativeElement) ? this.renderer.parentNode(this.elementRef.nativeElement) : this.elementRef.nativeElement;
|
|
4180
4775
|
this.#resizeObserver.observe(resizeRef);
|
|
4181
|
-
this.#subscription.add(this.notifier$.pipe(skip(1), debounceTime(200)).subscribe(() => {
|
|
4776
|
+
this.#subscription.add(this.notifier$.pipe(skip(1), debounceTime$1(200)).subscribe(() => {
|
|
4182
4777
|
if (this.viewport && this.elementRef.nativeElement.offsetHeight) {
|
|
4183
4778
|
const fontSize = getComputedStyle(this.document.documentElement).getPropertyValue('font-size');
|
|
4184
4779
|
const gap = Number(fontSize.split('px')[0]) * 0.3;
|
|
@@ -4267,6 +4862,79 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
4267
4862
|
type: Input
|
|
4268
4863
|
}] } });
|
|
4269
4864
|
|
|
4865
|
+
class BizyTableColumnArrowsComponent {
|
|
4866
|
+
order = null;
|
|
4867
|
+
show = false;
|
|
4868
|
+
customClass = '';
|
|
4869
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableColumnArrowsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4870
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyTableColumnArrowsComponent, isStandalone: true, selector: "bizy-table-column-arrows", inputs: { order: "order", show: "show", customClass: "customClass" }, ngImport: i0, template: "<svg \n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 448 512\"\n *ngIf=\"order !== 'asc' && order !== 'desc'\"\n name=\"bizy-table-column-arrows\"\n class=\"bizy-table-column-arrows bizy-table-column-arrows__down-up animated fade-in {{customClass}}\">\n <path d=\"M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z\"/>\n</svg>\n\n<svg \n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 576 512\"\n *ngIf=\"order === 'desc'\"\n name=\"bizy-table-column-down-arrow\"\n class=\"bizy-table-column-arrows animated fade-in {{customClass}}\"\n [ngClass]=\"{'bizy-table-column-arrows--visible': show}\">\n <path d=\"M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V365.7l32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320z\"/>\n</svg>\n\n\n<svg \n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 576 512\"\n *ngIf=\"order === 'asc'\"\n class=\"bizy-table-column-arrows animated fade-in {{customClass}}\"\n [ngClass]=\"{'bizy-table-column-arrows--visible': show}\"\n name=\"bizy-table-column-up-arrow\">\n <path d=\"M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3V448c0 17.7 14.3 32 32 32s32-14.3 32-32V146.3l32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320z\"/>\n</svg>\n", styles: [":host{font-size:1rem}.bizy-table-column-arrows__down-up{transform:rotate(90deg)}.bizy-table-column-arrows{display:none;font-size:1rem;height:1rem;fill:var(--bizy-table-column-arrows-color)}.bizy-table-column-arrows--visible{display:inline-block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4871
|
+
}
|
|
4872
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableColumnArrowsComponent, decorators: [{
|
|
4873
|
+
type: Component,
|
|
4874
|
+
args: [{ selector: 'bizy-table-column-arrows', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg \n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 448 512\"\n *ngIf=\"order !== 'asc' && order !== 'desc'\"\n name=\"bizy-table-column-arrows\"\n class=\"bizy-table-column-arrows bizy-table-column-arrows__down-up animated fade-in {{customClass}}\">\n <path d=\"M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z\"/>\n</svg>\n\n<svg \n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 576 512\"\n *ngIf=\"order === 'desc'\"\n name=\"bizy-table-column-down-arrow\"\n class=\"bizy-table-column-arrows animated fade-in {{customClass}}\"\n [ngClass]=\"{'bizy-table-column-arrows--visible': show}\">\n <path d=\"M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V365.7l32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320z\"/>\n</svg>\n\n\n<svg \n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 576 512\"\n *ngIf=\"order === 'asc'\"\n class=\"bizy-table-column-arrows animated fade-in {{customClass}}\"\n [ngClass]=\"{'bizy-table-column-arrows--visible': show}\"\n name=\"bizy-table-column-up-arrow\">\n <path d=\"M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3V448c0 17.7 14.3 32 32 32s32-14.3 32-32V146.3l32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320z\"/>\n</svg>\n", styles: [":host{font-size:1rem}.bizy-table-column-arrows__down-up{transform:rotate(90deg)}.bizy-table-column-arrows{display:none;font-size:1rem;height:1rem;fill:var(--bizy-table-column-arrows-color)}.bizy-table-column-arrows--visible{display:inline-block}\n"] }]
|
|
4875
|
+
}], propDecorators: { order: [{
|
|
4876
|
+
type: Input
|
|
4877
|
+
}], show: [{
|
|
4878
|
+
type: Input
|
|
4879
|
+
}], customClass: [{
|
|
4880
|
+
type: Input
|
|
4881
|
+
}] } });
|
|
4882
|
+
|
|
4883
|
+
class BizyTableRowExpandContentComponent {
|
|
4884
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableRowExpandContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4885
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyTableRowExpandContentComponent, isStandalone: true, selector: "bizy-table-row-expand-content", ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{font-size:1rem;width:100%;background-color:var(--bizy-table-row-expand-content-background-color);border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem;padding:.5rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4886
|
+
}
|
|
4887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableRowExpandContentComponent, decorators: [{
|
|
4888
|
+
type: Component,
|
|
4889
|
+
args: [{ selector: 'bizy-table-row-expand-content', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>", styles: [":host{font-size:1rem;width:100%;background-color:var(--bizy-table-row-expand-content-background-color);border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem;padding:.5rem}\n"] }]
|
|
4890
|
+
}] });
|
|
4891
|
+
|
|
4892
|
+
const COMPONENTS$4 = [
|
|
4893
|
+
BizyTableComponent,
|
|
4894
|
+
BizyTableColumnComponent,
|
|
4895
|
+
BizyTableColumnArrowsComponent,
|
|
4896
|
+
BizyTableFooterComponent,
|
|
4897
|
+
BizyTableHeaderComponent,
|
|
4898
|
+
BizyTableRowComponent,
|
|
4899
|
+
BizyTableRowExpandContentComponent,
|
|
4900
|
+
BizyTableScrollingComponent
|
|
4901
|
+
];
|
|
4902
|
+
const DIRECTIVES$1 = [
|
|
4903
|
+
BizyTableColumnFixedDirective,
|
|
4904
|
+
];
|
|
4905
|
+
class BizyTableModule {
|
|
4906
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4907
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyTableModule, imports: [BizyTableComponent,
|
|
4908
|
+
BizyTableColumnComponent,
|
|
4909
|
+
BizyTableColumnArrowsComponent,
|
|
4910
|
+
BizyTableFooterComponent,
|
|
4911
|
+
BizyTableHeaderComponent,
|
|
4912
|
+
BizyTableRowComponent,
|
|
4913
|
+
BizyTableRowExpandContentComponent,
|
|
4914
|
+
BizyTableScrollingComponent, BizyTableColumnFixedDirective], exports: [BizyTableComponent,
|
|
4915
|
+
BizyTableColumnComponent,
|
|
4916
|
+
BizyTableColumnArrowsComponent,
|
|
4917
|
+
BizyTableFooterComponent,
|
|
4918
|
+
BizyTableHeaderComponent,
|
|
4919
|
+
BizyTableRowComponent,
|
|
4920
|
+
BizyTableRowExpandContentComponent,
|
|
4921
|
+
BizyTableScrollingComponent, BizyTableColumnFixedDirective] });
|
|
4922
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableModule, imports: [BizyTableComponent,
|
|
4923
|
+
BizyTableColumnComponent,
|
|
4924
|
+
BizyTableColumnArrowsComponent,
|
|
4925
|
+
BizyTableFooterComponent,
|
|
4926
|
+
BizyTableHeaderComponent,
|
|
4927
|
+
BizyTableRowComponent,
|
|
4928
|
+
BizyTableScrollingComponent] });
|
|
4929
|
+
}
|
|
4930
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTableModule, decorators: [{
|
|
4931
|
+
type: NgModule,
|
|
4932
|
+
args: [{
|
|
4933
|
+
imports: COMPONENTS$4.concat(DIRECTIVES$1),
|
|
4934
|
+
exports: COMPONENTS$4.concat(DIRECTIVES$1),
|
|
4935
|
+
}]
|
|
4936
|
+
}] });
|
|
4937
|
+
|
|
4270
4938
|
class BizyTabComponent {
|
|
4271
4939
|
elementRef;
|
|
4272
4940
|
id = `bizy-tab-${Math.random()}`;
|
|
@@ -4331,7 +4999,7 @@ class BizyTabsComponent {
|
|
|
4331
4999
|
this.bizyTabsWrapper.nativeElement.scrollLeft = this.#initialScroll;
|
|
4332
5000
|
this.#resizeObserver = new ResizeObserver(() => this.#resize$.next());
|
|
4333
5001
|
this.#resizeObserver.observe(this.bizyTabs.nativeElement);
|
|
4334
|
-
this.#subscription.add(this.#resize$.pipe(debounceTime(100)).subscribe(() => {
|
|
5002
|
+
this.#subscription.add(this.#resize$.pipe(debounceTime$1(100)).subscribe(() => {
|
|
4335
5003
|
this.#checkButtons();
|
|
4336
5004
|
}));
|
|
4337
5005
|
}
|
|
@@ -4377,156 +5045,74 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
4377
5045
|
args: ['bizyTabs']
|
|
4378
5046
|
}], bizyTabsWrapper: [{
|
|
4379
5047
|
type: ViewChild,
|
|
4380
|
-
args: ['bizyTabsWrapper']
|
|
4381
|
-
}], customClass: [{
|
|
4382
|
-
type: Input
|
|
4383
|
-
}] } });
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
;
|
|
4394
|
-
|
|
4395
|
-
class BizyTagComponent {
|
|
4396
|
-
id = `bizy-tag-${Math.random()}`;
|
|
4397
|
-
customClass = '';
|
|
4398
|
-
type = BIZY_TAG_TYPE.DEFAULT;
|
|
4399
|
-
onSelect = new EventEmitter();
|
|
4400
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4401
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyTagComponent, isStandalone: true, selector: "bizy-tag", inputs: { id: "id", customClass: "customClass", type: "type" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: "<button \n type=\"button\"\n [id]=\"id\"\n class=\"bizy-tag bizy-tag--{{type}} {{customClass}}\"\n (click)=\"onSelect.emit($event)\"\n (keyup.enter)=\"onSelect.emit($event)\">\n\n <ng-content></ng-content>\n\n</button>", styles: [":host{font-size:1rem}.bizy-tag{border:none;padding:var(--bizy-tag-padding);border-radius:.3rem;display:flex;justify-content:center;cursor:pointer;column-gap:.5rem;align-items:center;text-wrap:nowrap;width:fit-content}.bizy-tag--default{background-color:var(--bizy-tag-default-background-color)}::ng-deep .bizy-tag--default *{color:var(--bizy-tag-default-color)!important}.bizy-tag--info{background-color:var(--bizy-tag-info-background-color)}::ng-deep .bizy-tag--info *{color:var(--bizy-tag-info-color)!important}.bizy-tag--success{background-color:var(--bizy-tag-success-background-color)}::ng-deep .bizy-tag--success *{color:var(--bizy-tag-success-color)!important}.bizy-tag--warning{background-color:var(--bizy-tag-warning-background-color)}::ng-deep .bizy-tag--warning *{color:var(--bizy-tag-warning-color)!important}.bizy-tag--danger{background-color:var(--bizy-tag-danger-background-color)}::ng-deep .bizy-tag--danger *{color:var(--bizy-tag-danger-color)!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4402
|
-
}
|
|
4403
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTagComponent, decorators: [{
|
|
4404
|
-
type: Component,
|
|
4405
|
-
args: [{ selector: 'bizy-tag', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button \n type=\"button\"\n [id]=\"id\"\n class=\"bizy-tag bizy-tag--{{type}} {{customClass}}\"\n (click)=\"onSelect.emit($event)\"\n (keyup.enter)=\"onSelect.emit($event)\">\n\n <ng-content></ng-content>\n\n</button>", styles: [":host{font-size:1rem}.bizy-tag{border:none;padding:var(--bizy-tag-padding);border-radius:.3rem;display:flex;justify-content:center;cursor:pointer;column-gap:.5rem;align-items:center;text-wrap:nowrap;width:fit-content}.bizy-tag--default{background-color:var(--bizy-tag-default-background-color)}::ng-deep .bizy-tag--default *{color:var(--bizy-tag-default-color)!important}.bizy-tag--info{background-color:var(--bizy-tag-info-background-color)}::ng-deep .bizy-tag--info *{color:var(--bizy-tag-info-color)!important}.bizy-tag--success{background-color:var(--bizy-tag-success-background-color)}::ng-deep .bizy-tag--success *{color:var(--bizy-tag-success-color)!important}.bizy-tag--warning{background-color:var(--bizy-tag-warning-background-color)}::ng-deep .bizy-tag--warning *{color:var(--bizy-tag-warning-color)!important}.bizy-tag--danger{background-color:var(--bizy-tag-danger-background-color)}::ng-deep .bizy-tag--danger *{color:var(--bizy-tag-danger-color)!important}\n"] }]
|
|
4406
|
-
}], propDecorators: { id: [{
|
|
4407
|
-
type: Input
|
|
4408
|
-
}], customClass: [{
|
|
4409
|
-
type: Input
|
|
4410
|
-
}], type: [{
|
|
4411
|
-
type: Input
|
|
4412
|
-
}], onSelect: [{
|
|
4413
|
-
type: Output
|
|
4414
|
-
}] } });
|
|
4415
|
-
|
|
4416
|
-
class BizyToggleComponent {
|
|
4417
|
-
id = `bizy-toggle-${Math.random()}`;
|
|
4418
|
-
disabled = false;
|
|
4419
|
-
selected = false;
|
|
4420
|
-
onSelect = new EventEmitter();
|
|
4421
|
-
selectedChange = new EventEmitter();
|
|
4422
|
-
_onSelect(event) {
|
|
4423
|
-
if (this.disabled) {
|
|
4424
|
-
return;
|
|
4425
|
-
}
|
|
4426
|
-
this.selectedChange.emit(!this.selected);
|
|
4427
|
-
this.onSelect.emit(event);
|
|
4428
|
-
}
|
|
4429
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4430
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyToggleComponent, isStandalone: true, selector: "bizy-toggle", inputs: { id: "id", disabled: "disabled", selected: "selected" }, outputs: { onSelect: "onSelect", selectedChange: "selectedChange" }, ngImport: i0, template: "<button type=\"button\" class=\"bizy-toggle\" [ngClass]=\"{'bizy-toggle--disabled': disabled}\" (click)=\"_onSelect($event)\" (keyup.enter)=\"_onSelect($event)\">\n\n <ng-content select=\"[slot=start]\"></ng-content>\n\n <input \n class=\"bizy-toggle__toggle\"\n type=\"checkbox\"\n [id]=\"id\"\n [disabled]=\"disabled\"\n [checked]=\"selected\"\n readonly\n [ngClass]=\"{'bizy-toggle__toggle--disabled': disabled}\">\n\n <ng-content select=\"[slot=end]\"></ng-content>\n\n</button>", styles: [".bizy-toggle{width:fit-content;height:1.3rem;display:flex;column-gap:.5rem;align-items:center;border:none;cursor:pointer;background-color:transparent}.bizy-toggle--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-toggle__toggle{position:relative;pointer-events:none;height:.8rem;width:2.2rem;cursor:pointer;appearance:none;-webkit-appearance:none;border-radius:9999px;background-color:var(--bizy-toggle-background-color);transition:all .3s ease}.bizy-toggle__toggle:before{position:absolute;pointer-events:none;content:\"\";left:-.2rem;top:-.2rem;display:block;height:1.2rem;width:1.2rem;cursor:pointer;background-color:var(--bizy-toggle-color);border-radius:9999px;transition:all .3s ease}.bizy-toggle__toggle:checked{background-color:var(--bizy-toggle-selected-background-color)}.bizy-toggle__toggle:checked:before{background-color:var(--bizy-toggle-selected-color);transform:translate(100%)}.bizy-toggle__toggle--disabled{pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4431
|
-
}
|
|
4432
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyToggleComponent, decorators: [{
|
|
4433
|
-
type: Component,
|
|
4434
|
-
args: [{ selector: 'bizy-toggle', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button type=\"button\" class=\"bizy-toggle\" [ngClass]=\"{'bizy-toggle--disabled': disabled}\" (click)=\"_onSelect($event)\" (keyup.enter)=\"_onSelect($event)\">\n\n <ng-content select=\"[slot=start]\"></ng-content>\n\n <input \n class=\"bizy-toggle__toggle\"\n type=\"checkbox\"\n [id]=\"id\"\n [disabled]=\"disabled\"\n [checked]=\"selected\"\n readonly\n [ngClass]=\"{'bizy-toggle__toggle--disabled': disabled}\">\n\n <ng-content select=\"[slot=end]\"></ng-content>\n\n</button>", styles: [".bizy-toggle{width:fit-content;height:1.3rem;display:flex;column-gap:.5rem;align-items:center;border:none;cursor:pointer;background-color:transparent}.bizy-toggle--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-toggle__toggle{position:relative;pointer-events:none;height:.8rem;width:2.2rem;cursor:pointer;appearance:none;-webkit-appearance:none;border-radius:9999px;background-color:var(--bizy-toggle-background-color);transition:all .3s ease}.bizy-toggle__toggle:before{position:absolute;pointer-events:none;content:\"\";left:-.2rem;top:-.2rem;display:block;height:1.2rem;width:1.2rem;cursor:pointer;background-color:var(--bizy-toggle-color);border-radius:9999px;transition:all .3s ease}.bizy-toggle__toggle:checked{background-color:var(--bizy-toggle-selected-background-color)}.bizy-toggle__toggle:checked:before{background-color:var(--bizy-toggle-selected-color);transform:translate(100%)}.bizy-toggle__toggle--disabled{pointer-events:none}\n"] }]
|
|
4435
|
-
}], propDecorators: { id: [{
|
|
4436
|
-
type: Input
|
|
4437
|
-
}], disabled: [{
|
|
4438
|
-
type: Input
|
|
4439
|
-
}], selected: [{
|
|
4440
|
-
type: Input
|
|
4441
|
-
}], onSelect: [{
|
|
4442
|
-
type: Output
|
|
4443
|
-
}], selectedChange: [{
|
|
4444
|
-
type: Output
|
|
4445
|
-
}] } });
|
|
4446
|
-
|
|
4447
|
-
class BizyToolbarComponent {
|
|
4448
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4449
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyToolbarComponent, isStandalone: true, selector: "bizy-toolbar", ngImport: i0, template: "<div class=\"bizy-toolbar\">\n\n <span class=\"bizy-toolbar__start\">\n \n <ng-content select=\"[slot=start]\"></ng-content>\n\n </span>\n\n <span class=\"bizy-toolbar__end\">\n\n <ng-content select=\"[slot=end]\"></ng-content>\n\n </span>\n\n</div>\n", styles: [":host{font-size:1rem}.bizy-toolbar{height:var(--bizy-toolbar-height);width:100%;background-color:var(--bizy-toolbar-background-color);display:flex;align-items:center;justify-content:space-between;column-gap:var(--bizy-toolbar-column-gap);padding:var(--bizy-toolbar-padding)}.bizy-toolbar__start{height:100%;display:flex;align-items:center;column-gap:var(--bizy-toolbar-column-gap)}.bizy-toolbar__end{height:100%;display:flex;align-items:center;justify-content:flex-end;column-gap:var(--bizy-toolbar-column-gap)}::ng-deep .bizy-toolbar *[toolbar-option]{height:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4450
|
-
}
|
|
4451
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyToolbarComponent, decorators: [{
|
|
4452
|
-
type: Component,
|
|
4453
|
-
args: [{ selector: 'bizy-toolbar', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"bizy-toolbar\">\n\n <span class=\"bizy-toolbar__start\">\n \n <ng-content select=\"[slot=start]\"></ng-content>\n\n </span>\n\n <span class=\"bizy-toolbar__end\">\n\n <ng-content select=\"[slot=end]\"></ng-content>\n\n </span>\n\n</div>\n", styles: [":host{font-size:1rem}.bizy-toolbar{height:var(--bizy-toolbar-height);width:100%;background-color:var(--bizy-toolbar-background-color);display:flex;align-items:center;justify-content:space-between;column-gap:var(--bizy-toolbar-column-gap);padding:var(--bizy-toolbar-padding)}.bizy-toolbar__start{height:100%;display:flex;align-items:center;column-gap:var(--bizy-toolbar-column-gap)}.bizy-toolbar__end{height:100%;display:flex;align-items:center;justify-content:flex-end;column-gap:var(--bizy-toolbar-column-gap)}::ng-deep .bizy-toolbar *[toolbar-option]{height:100%}\n"] }]
|
|
4454
|
-
}] });
|
|
4455
|
-
|
|
4456
|
-
var LANGUAGE;
|
|
4457
|
-
(function (LANGUAGE) {
|
|
4458
|
-
LANGUAGE["SPANISH"] = "es";
|
|
4459
|
-
LANGUAGE["ENGLISH"] = "en";
|
|
4460
|
-
})(LANGUAGE || (LANGUAGE = {}));
|
|
4461
|
-
class BizyTranslateService {
|
|
4462
|
-
#translate = inject(TranslateService);
|
|
4463
|
-
loadTranslations(...args) {
|
|
4464
|
-
const locales = [...args];
|
|
4465
|
-
locales.forEach(locale => {
|
|
4466
|
-
this.#translate.setTranslation(locale.lang, locale.translations, true);
|
|
4467
|
-
});
|
|
4468
|
-
}
|
|
4469
|
-
addLangs(langs) {
|
|
4470
|
-
this.#translate.addLangs(langs);
|
|
4471
|
-
}
|
|
4472
|
-
getLangs() {
|
|
4473
|
-
return this.#translate.getLangs();
|
|
4474
|
-
}
|
|
4475
|
-
setDefault(lang) {
|
|
4476
|
-
this.#translate.setDefaultLang(lang);
|
|
4477
|
-
}
|
|
4478
|
-
getCurrentLang() {
|
|
4479
|
-
return this.#translate.currentLang;
|
|
4480
|
-
}
|
|
4481
|
-
use(lang) {
|
|
4482
|
-
this.#translate.use(lang);
|
|
4483
|
-
}
|
|
4484
|
-
get(translation) {
|
|
4485
|
-
return this.#translate.instant(translation);
|
|
4486
|
-
}
|
|
4487
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTranslateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4488
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTranslateService, providedIn: 'root' });
|
|
5048
|
+
args: ['bizyTabsWrapper']
|
|
5049
|
+
}], customClass: [{
|
|
5050
|
+
type: Input
|
|
5051
|
+
}] } });
|
|
5052
|
+
|
|
5053
|
+
const COMPONENTS$3 = [
|
|
5054
|
+
BizyTabsComponent,
|
|
5055
|
+
BizyTabComponent
|
|
5056
|
+
];
|
|
5057
|
+
class BizyTabsModule {
|
|
5058
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5059
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyTabsModule, imports: [BizyTabsComponent,
|
|
5060
|
+
BizyTabComponent], exports: [BizyTabsComponent,
|
|
5061
|
+
BizyTabComponent] });
|
|
5062
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTabsModule, imports: [COMPONENTS$3] });
|
|
4489
5063
|
}
|
|
4490
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type:
|
|
4491
|
-
type:
|
|
5064
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTabsModule, decorators: [{
|
|
5065
|
+
type: NgModule,
|
|
4492
5066
|
args: [{
|
|
4493
|
-
|
|
5067
|
+
imports: COMPONENTS$3,
|
|
5068
|
+
exports: COMPONENTS$3,
|
|
4494
5069
|
}]
|
|
4495
5070
|
}] });
|
|
4496
5071
|
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
5072
|
+
var BIZY_TAG_TYPE;
|
|
5073
|
+
(function (BIZY_TAG_TYPE) {
|
|
5074
|
+
BIZY_TAG_TYPE["DEFAULT"] = "default";
|
|
5075
|
+
BIZY_TAG_TYPE["SUCCESS"] = "success";
|
|
5076
|
+
BIZY_TAG_TYPE["INFO"] = "info";
|
|
5077
|
+
BIZY_TAG_TYPE["WARNING"] = "warning";
|
|
5078
|
+
BIZY_TAG_TYPE["DANGER"] = "danger";
|
|
5079
|
+
})(BIZY_TAG_TYPE || (BIZY_TAG_TYPE = {}));
|
|
5080
|
+
;
|
|
5081
|
+
|
|
5082
|
+
class BizyTagComponent {
|
|
5083
|
+
id = `bizy-tag-${Math.random()}`;
|
|
5084
|
+
customClass = '';
|
|
5085
|
+
type = BIZY_TAG_TYPE.DEFAULT;
|
|
5086
|
+
onSelect = new EventEmitter();
|
|
5087
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5088
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyTagComponent, isStandalone: true, selector: "bizy-tag", inputs: { id: "id", customClass: "customClass", type: "type" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: "<button \n type=\"button\"\n [id]=\"id\"\n class=\"bizy-tag bizy-tag--{{type}} {{customClass}}\"\n (click)=\"onSelect.emit($event)\"\n (keyup.enter)=\"onSelect.emit($event)\">\n\n <ng-content></ng-content>\n\n</button>", styles: [":host{font-size:1rem}.bizy-tag{border:none;padding:var(--bizy-tag-padding);border-radius:.3rem;display:flex;justify-content:center;cursor:pointer;column-gap:.5rem;align-items:center;text-wrap:nowrap;width:fit-content}.bizy-tag--default{background-color:var(--bizy-tag-default-background-color)}::ng-deep .bizy-tag--default *{color:var(--bizy-tag-default-color)!important}.bizy-tag--info{background-color:var(--bizy-tag-info-background-color)}::ng-deep .bizy-tag--info *{color:var(--bizy-tag-info-color)!important}.bizy-tag--success{background-color:var(--bizy-tag-success-background-color)}::ng-deep .bizy-tag--success *{color:var(--bizy-tag-success-color)!important}.bizy-tag--warning{background-color:var(--bizy-tag-warning-background-color)}::ng-deep .bizy-tag--warning *{color:var(--bizy-tag-warning-color)!important}.bizy-tag--danger{background-color:var(--bizy-tag-danger-background-color)}::ng-deep .bizy-tag--danger *{color:var(--bizy-tag-danger-color)!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4507
5089
|
}
|
|
4508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type:
|
|
4509
|
-
type:
|
|
4510
|
-
args: [{
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
5090
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTagComponent, decorators: [{
|
|
5091
|
+
type: Component,
|
|
5092
|
+
args: [{ selector: 'bizy-tag', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button \n type=\"button\"\n [id]=\"id\"\n class=\"bizy-tag bizy-tag--{{type}} {{customClass}}\"\n (click)=\"onSelect.emit($event)\"\n (keyup.enter)=\"onSelect.emit($event)\">\n\n <ng-content></ng-content>\n\n</button>", styles: [":host{font-size:1rem}.bizy-tag{border:none;padding:var(--bizy-tag-padding);border-radius:.3rem;display:flex;justify-content:center;cursor:pointer;column-gap:.5rem;align-items:center;text-wrap:nowrap;width:fit-content}.bizy-tag--default{background-color:var(--bizy-tag-default-background-color)}::ng-deep .bizy-tag--default *{color:var(--bizy-tag-default-color)!important}.bizy-tag--info{background-color:var(--bizy-tag-info-background-color)}::ng-deep .bizy-tag--info *{color:var(--bizy-tag-info-color)!important}.bizy-tag--success{background-color:var(--bizy-tag-success-background-color)}::ng-deep .bizy-tag--success *{color:var(--bizy-tag-success-color)!important}.bizy-tag--warning{background-color:var(--bizy-tag-warning-background-color)}::ng-deep .bizy-tag--warning *{color:var(--bizy-tag-warning-color)!important}.bizy-tag--danger{background-color:var(--bizy-tag-danger-background-color)}::ng-deep .bizy-tag--danger *{color:var(--bizy-tag-danger-color)!important}\n"] }]
|
|
5093
|
+
}], propDecorators: { id: [{
|
|
5094
|
+
type: Input
|
|
5095
|
+
}], customClass: [{
|
|
5096
|
+
type: Input
|
|
5097
|
+
}], type: [{
|
|
5098
|
+
type: Input
|
|
5099
|
+
}], onSelect: [{
|
|
5100
|
+
type: Output
|
|
5101
|
+
}] } });
|
|
4517
5102
|
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
static
|
|
5103
|
+
const COMPONENTS$2 = [
|
|
5104
|
+
BizyTagComponent,
|
|
5105
|
+
];
|
|
5106
|
+
class BizyTagModule {
|
|
5107
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTagModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5108
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyTagModule, imports: [BizyTagComponent], exports: [BizyTagComponent] });
|
|
5109
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTagModule, imports: [COMPONENTS$2] });
|
|
4523
5110
|
}
|
|
4524
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type:
|
|
5111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTagModule, decorators: [{
|
|
4525
5112
|
type: NgModule,
|
|
4526
5113
|
args: [{
|
|
4527
|
-
imports:
|
|
4528
|
-
exports:
|
|
4529
|
-
providers: [BizyTranslateService]
|
|
5114
|
+
imports: COMPONENTS$2,
|
|
5115
|
+
exports: COMPONENTS$2,
|
|
4530
5116
|
}]
|
|
4531
5117
|
}] });
|
|
4532
5118
|
|
|
@@ -4616,7 +5202,7 @@ class BizyToastService {
|
|
|
4616
5202
|
_a = BizyToastService;
|
|
4617
5203
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyToastService, decorators: [{
|
|
4618
5204
|
type: Injectable
|
|
4619
|
-
}], ctorParameters: () => [{ type: i1$
|
|
5205
|
+
}], ctorParameters: () => [{ type: i1$2.Dialog, decorators: [{
|
|
4620
5206
|
type: Inject,
|
|
4621
5207
|
args: [Dialog]
|
|
4622
5208
|
}] }] });
|
|
@@ -4670,103 +5256,152 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
4670
5256
|
}]
|
|
4671
5257
|
}] });
|
|
4672
5258
|
|
|
4673
|
-
class
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
if (this.#component) {
|
|
4683
|
-
this.dynamicComponentContainer.clear();
|
|
4684
|
-
this.dynamicComponentContainer.createComponent(this.#component);
|
|
4685
|
-
this.#ref.detectChanges();
|
|
5259
|
+
class BizyToggleComponent {
|
|
5260
|
+
id = `bizy-toggle-${Math.random()}`;
|
|
5261
|
+
disabled = false;
|
|
5262
|
+
selected = false;
|
|
5263
|
+
onSelect = new EventEmitter();
|
|
5264
|
+
selectedChange = new EventEmitter();
|
|
5265
|
+
_onSelect(event) {
|
|
5266
|
+
if (this.disabled) {
|
|
5267
|
+
return;
|
|
4686
5268
|
}
|
|
5269
|
+
this.selectedChange.emit(!this.selected);
|
|
5270
|
+
this.onSelect.emit(event);
|
|
4687
5271
|
}
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
}
|
|
4691
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyPopupWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4692
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyPopupWrapperComponent, isStandalone: true, selector: "bizy-popup-wrapper", viewQueries: [{ propertyName: "dynamicComponentContainer", first: true, predicate: ["dynamicComponentContainer"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<div class=\"bizy-popup-wrapper\" cdkDrag>\n\n <button class=\"bizy-popup-wrapper__drag-button\" cdkDragHandle>\n\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" class=\"bizy-popup-wrapper__drag-button__icon\">\n <path d=\"M278.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-64 64c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l9.4-9.4V224H109.3l9.4-9.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-9.4-9.4H224V402.7l-9.4-9.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-9.4 9.4V288H402.7l-9.4 9.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l9.4 9.4H288V109.3l9.4 9.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-64-64z\"/>\n </svg>\n\n </button>\n\n <button class=\"bizy-popup-wrapper__close-button\" (click)=\"close()\" (keyup.enter)=\"close()\">\n\n\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\" class=\"bizy-popup-wrapper__close-button__icon\">\n <path d=\"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z\"/>\n </svg>\n\n </button>\n\n <ng-container #dynamicComponentContainer></ng-container>\n\n</div>", styles: [":host{font-size:1rem}.bizy-popup-wrapper{position:relative;background-color:var(--bizy-popup-background-color);min-width:var(--bizy-popup-min-width);width:var(--bizy-popup-width);max-width:var(--bizy-popup-max-width)}.bizy-popup-wrapper__drag-button{position:absolute;left:-.9rem;top:-.9rem;border:.1rem solid var(--bizy-popup-drag-button-border-color);border-radius:50%;padding:.2rem;place-items:center;display:grid;border:.1rem solid #ccc;background-color:var(--bizy-popup-drag-button-background-color);cursor:pointer;transition:transform .2s;z-index:1}.bizy-popup-wrapper__drag-button:hover{transform:scale(1.1)}.bizy-popup-wrapper__drag-button__icon{height:1rem}.bizy-popup-wrapper__drag-button__icon{fill:var(--bizy-popup-drag-button-color)}.bizy-popup-wrapper__close-button{position:absolute;right:-.9rem;top:-.9rem;border:.1rem solid var(--bizy-popup-close-button-border-color);border-radius:50%;padding:.25rem .35rem;place-items:center;display:grid;border:.1rem solid #ccc;background-color:var(--bizy-popup-close-button-background-color);cursor:pointer;transition:transform .2s;z-index:1}.bizy-popup-wrapper__close-button:hover .bizy-popup-wrapper__close-button__icon{transform:scale(1.1)}.bizy-popup-wrapper__close-button:hover .bizy-popup-wrapper__close-button__icon{fill:var(--bizy-popup-close-button-hover-color)}.bizy-popup-wrapper__close-button__icon{height:1rem;transition:fill .2s ease,}.bizy-popup-wrapper__close-button__icon{fill:var(--bizy-popup-close-button-color)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: DialogModule }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1$2.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i1$2.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5272
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5273
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyToggleComponent, isStandalone: true, selector: "bizy-toggle", inputs: { id: "id", disabled: "disabled", selected: "selected" }, outputs: { onSelect: "onSelect", selectedChange: "selectedChange" }, ngImport: i0, template: "<button type=\"button\" class=\"bizy-toggle\" [ngClass]=\"{'bizy-toggle--disabled': disabled}\" (click)=\"_onSelect($event)\" (keyup.enter)=\"_onSelect($event)\">\n\n <ng-content select=\"[slot=start]\"></ng-content>\n\n <input \n class=\"bizy-toggle__toggle\"\n type=\"checkbox\"\n [id]=\"id\"\n [disabled]=\"disabled\"\n [checked]=\"selected\"\n readonly\n [ngClass]=\"{'bizy-toggle__toggle--disabled': disabled}\">\n\n <ng-content select=\"[slot=end]\"></ng-content>\n\n</button>", styles: [".bizy-toggle{width:fit-content;height:1.3rem;display:flex;column-gap:.5rem;align-items:center;border:none;cursor:pointer;background-color:transparent}.bizy-toggle--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-toggle__toggle{position:relative;pointer-events:none;height:.8rem;width:2.2rem;cursor:pointer;appearance:none;-webkit-appearance:none;border-radius:9999px;background-color:var(--bizy-toggle-background-color);transition:all .3s ease}.bizy-toggle__toggle:before{position:absolute;pointer-events:none;content:\"\";left:-.2rem;top:-.2rem;display:block;height:1.2rem;width:1.2rem;cursor:pointer;background-color:var(--bizy-toggle-color);border-radius:9999px;transition:all .3s ease}.bizy-toggle__toggle:checked{background-color:var(--bizy-toggle-selected-background-color)}.bizy-toggle__toggle:checked:before{background-color:var(--bizy-toggle-selected-color);transform:translate(100%)}.bizy-toggle__toggle--disabled{pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4693
5274
|
}
|
|
4694
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type:
|
|
5275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyToggleComponent, decorators: [{
|
|
4695
5276
|
type: Component,
|
|
4696
|
-
args: [{ selector: 'bizy-
|
|
4697
|
-
}], propDecorators: {
|
|
4698
|
-
type:
|
|
4699
|
-
|
|
5277
|
+
args: [{ selector: 'bizy-toggle', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button type=\"button\" class=\"bizy-toggle\" [ngClass]=\"{'bizy-toggle--disabled': disabled}\" (click)=\"_onSelect($event)\" (keyup.enter)=\"_onSelect($event)\">\n\n <ng-content select=\"[slot=start]\"></ng-content>\n\n <input \n class=\"bizy-toggle__toggle\"\n type=\"checkbox\"\n [id]=\"id\"\n [disabled]=\"disabled\"\n [checked]=\"selected\"\n readonly\n [ngClass]=\"{'bizy-toggle__toggle--disabled': disabled}\">\n\n <ng-content select=\"[slot=end]\"></ng-content>\n\n</button>", styles: [".bizy-toggle{width:fit-content;height:1.3rem;display:flex;column-gap:.5rem;align-items:center;border:none;cursor:pointer;background-color:transparent}.bizy-toggle--disabled{pointer-events:none;opacity:.5;cursor:not-allowed!important}.bizy-toggle__toggle{position:relative;pointer-events:none;height:.8rem;width:2.2rem;cursor:pointer;appearance:none;-webkit-appearance:none;border-radius:9999px;background-color:var(--bizy-toggle-background-color);transition:all .3s ease}.bizy-toggle__toggle:before{position:absolute;pointer-events:none;content:\"\";left:-.2rem;top:-.2rem;display:block;height:1.2rem;width:1.2rem;cursor:pointer;background-color:var(--bizy-toggle-color);border-radius:9999px;transition:all .3s ease}.bizy-toggle__toggle:checked{background-color:var(--bizy-toggle-selected-background-color)}.bizy-toggle__toggle:checked:before{background-color:var(--bizy-toggle-selected-color);transform:translate(100%)}.bizy-toggle__toggle--disabled{pointer-events:none}\n"] }]
|
|
5278
|
+
}], propDecorators: { id: [{
|
|
5279
|
+
type: Input
|
|
5280
|
+
}], disabled: [{
|
|
5281
|
+
type: Input
|
|
5282
|
+
}], selected: [{
|
|
5283
|
+
type: Input
|
|
5284
|
+
}], onSelect: [{
|
|
5285
|
+
type: Output
|
|
5286
|
+
}], selectedChange: [{
|
|
5287
|
+
type: Output
|
|
4700
5288
|
}] } });
|
|
4701
5289
|
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
;
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
})
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
5290
|
+
const COMPONENTS$1 = [
|
|
5291
|
+
BizyToggleComponent,
|
|
5292
|
+
];
|
|
5293
|
+
class BizyToggleModule {
|
|
5294
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyToggleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5295
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyToggleModule, imports: [BizyToggleComponent], exports: [BizyToggleComponent] });
|
|
5296
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyToggleModule, imports: [COMPONENTS$1] });
|
|
5297
|
+
}
|
|
5298
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyToggleModule, decorators: [{
|
|
5299
|
+
type: NgModule,
|
|
5300
|
+
args: [{
|
|
5301
|
+
imports: COMPONENTS$1,
|
|
5302
|
+
exports: COMPONENTS$1,
|
|
5303
|
+
}]
|
|
5304
|
+
}] });
|
|
5305
|
+
|
|
5306
|
+
class BizyToolbarComponent {
|
|
5307
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5308
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: BizyToolbarComponent, isStandalone: true, selector: "bizy-toolbar", ngImport: i0, template: "<div class=\"bizy-toolbar\">\n\n <span class=\"bizy-toolbar__start\">\n \n <ng-content select=\"[slot=start]\"></ng-content>\n\n </span>\n\n <span class=\"bizy-toolbar__end\">\n\n <ng-content select=\"[slot=end]\"></ng-content>\n\n </span>\n\n</div>\n", styles: [":host{font-size:1rem}.bizy-toolbar{height:var(--bizy-toolbar-height);width:100%;background-color:var(--bizy-toolbar-background-color);display:flex;align-items:center;justify-content:space-between;column-gap:var(--bizy-toolbar-column-gap);padding:var(--bizy-toolbar-padding)}.bizy-toolbar__start{height:100%;display:flex;align-items:center;column-gap:var(--bizy-toolbar-column-gap)}.bizy-toolbar__end{height:100%;display:flex;align-items:center;justify-content:flex-end;column-gap:var(--bizy-toolbar-column-gap)}::ng-deep .bizy-toolbar *[toolbar-option]{height:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5309
|
+
}
|
|
5310
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyToolbarComponent, decorators: [{
|
|
5311
|
+
type: Component,
|
|
5312
|
+
args: [{ selector: 'bizy-toolbar', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"bizy-toolbar\">\n\n <span class=\"bizy-toolbar__start\">\n \n <ng-content select=\"[slot=start]\"></ng-content>\n\n </span>\n\n <span class=\"bizy-toolbar__end\">\n\n <ng-content select=\"[slot=end]\"></ng-content>\n\n </span>\n\n</div>\n", styles: [":host{font-size:1rem}.bizy-toolbar{height:var(--bizy-toolbar-height);width:100%;background-color:var(--bizy-toolbar-background-color);display:flex;align-items:center;justify-content:space-between;column-gap:var(--bizy-toolbar-column-gap);padding:var(--bizy-toolbar-padding)}.bizy-toolbar__start{height:100%;display:flex;align-items:center;column-gap:var(--bizy-toolbar-column-gap)}.bizy-toolbar__end{height:100%;display:flex;align-items:center;justify-content:flex-end;column-gap:var(--bizy-toolbar-column-gap)}::ng-deep .bizy-toolbar *[toolbar-option]{height:100%}\n"] }]
|
|
5313
|
+
}] });
|
|
5314
|
+
|
|
5315
|
+
const COMPONENTS = [
|
|
5316
|
+
BizyToolbarComponent,
|
|
5317
|
+
];
|
|
5318
|
+
class BizyToolbarModule {
|
|
5319
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyToolbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5320
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyToolbarModule, imports: [BizyToolbarComponent], exports: [BizyToolbarComponent] });
|
|
5321
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyToolbarModule, imports: [COMPONENTS] });
|
|
5322
|
+
}
|
|
5323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyToolbarModule, decorators: [{
|
|
5324
|
+
type: NgModule,
|
|
5325
|
+
args: [{
|
|
5326
|
+
imports: COMPONENTS,
|
|
5327
|
+
exports: COMPONENTS,
|
|
5328
|
+
}]
|
|
5329
|
+
}] });
|
|
5330
|
+
|
|
5331
|
+
var LANGUAGE;
|
|
5332
|
+
(function (LANGUAGE) {
|
|
5333
|
+
LANGUAGE["SPANISH"] = "es";
|
|
5334
|
+
LANGUAGE["ENGLISH"] = "en";
|
|
5335
|
+
})(LANGUAGE || (LANGUAGE = {}));
|
|
5336
|
+
class BizyTranslateService {
|
|
5337
|
+
#translate = inject(TranslateService);
|
|
5338
|
+
loadTranslations(...args) {
|
|
5339
|
+
const locales = [...args];
|
|
5340
|
+
locales.forEach(locale => {
|
|
5341
|
+
this.#translate.setTranslation(locale.lang, locale.translations, true);
|
|
4723
5342
|
});
|
|
4724
5343
|
}
|
|
4725
|
-
|
|
4726
|
-
|
|
5344
|
+
addLangs(langs) {
|
|
5345
|
+
this.#translate.addLangs(langs);
|
|
4727
5346
|
}
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
if (data && data.id) {
|
|
4731
|
-
dialogRef = Array.from(BizyPopupService.dialogs).find(_dialogRef => _dialogRef.id === data.id);
|
|
4732
|
-
}
|
|
4733
|
-
else {
|
|
4734
|
-
dialogRef = Array.from(BizyPopupService.dialogs).pop();
|
|
4735
|
-
}
|
|
4736
|
-
if (dialogRef) {
|
|
4737
|
-
dialogRef.close(data ? data.response : null);
|
|
4738
|
-
BizyPopupService.dialogs.delete(dialogRef);
|
|
4739
|
-
}
|
|
4740
|
-
this.#data = null;
|
|
5347
|
+
getLangs() {
|
|
5348
|
+
return this.#translate.getLangs();
|
|
4741
5349
|
}
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
_dialogRef.close();
|
|
4745
|
-
});
|
|
4746
|
-
BizyPopupService.dialogs.clear();
|
|
4747
|
-
this.#data = null;
|
|
5350
|
+
setDefault(lang) {
|
|
5351
|
+
this.#translate.setDefaultLang(lang);
|
|
4748
5352
|
}
|
|
4749
|
-
|
|
4750
|
-
return
|
|
5353
|
+
getCurrentLang() {
|
|
5354
|
+
return this.#translate.currentLang;
|
|
4751
5355
|
}
|
|
4752
|
-
|
|
4753
|
-
|
|
5356
|
+
use(lang) {
|
|
5357
|
+
this.#translate.use(lang);
|
|
5358
|
+
}
|
|
5359
|
+
get(translation) {
|
|
5360
|
+
return this.#translate.instant(translation);
|
|
5361
|
+
}
|
|
5362
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTranslateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5363
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTranslateService, providedIn: 'root' });
|
|
4754
5364
|
}
|
|
4755
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type:
|
|
4756
|
-
type: Injectable
|
|
5365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTranslateService, decorators: [{
|
|
5366
|
+
type: Injectable,
|
|
5367
|
+
args: [{
|
|
5368
|
+
providedIn: 'root'
|
|
5369
|
+
}]
|
|
4757
5370
|
}] });
|
|
4758
5371
|
|
|
4759
|
-
class
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
5372
|
+
class BizyTranslatePipe {
|
|
5373
|
+
translate;
|
|
5374
|
+
constructor(translate) {
|
|
5375
|
+
this.translate = translate;
|
|
5376
|
+
}
|
|
5377
|
+
transform(label) {
|
|
5378
|
+
return this.translate.get(label);
|
|
5379
|
+
}
|
|
5380
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTranslatePipe, deps: [{ token: BizyTranslateService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5381
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyTranslatePipe, isStandalone: true, name: "translate" });
|
|
4763
5382
|
}
|
|
4764
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type:
|
|
5383
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTranslatePipe, decorators: [{
|
|
5384
|
+
type: Pipe,
|
|
5385
|
+
args: [{
|
|
5386
|
+
name: 'translate',
|
|
5387
|
+
}]
|
|
5388
|
+
}], ctorParameters: () => [{ type: BizyTranslateService, decorators: [{
|
|
5389
|
+
type: Inject,
|
|
5390
|
+
args: [BizyTranslateService]
|
|
5391
|
+
}] }] });
|
|
5392
|
+
|
|
5393
|
+
class BizyTranslateModule {
|
|
5394
|
+
static forRoot = TranslateModule.forRoot;
|
|
5395
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTranslateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5396
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: BizyTranslateModule, imports: [BizyTranslatePipe], exports: [BizyTranslatePipe] });
|
|
5397
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTranslateModule, providers: [BizyTranslateService] });
|
|
5398
|
+
}
|
|
5399
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: BizyTranslateModule, decorators: [{
|
|
4765
5400
|
type: NgModule,
|
|
4766
5401
|
args: [{
|
|
4767
|
-
imports: [
|
|
4768
|
-
exports: [
|
|
4769
|
-
providers: [
|
|
5402
|
+
imports: [BizyTranslatePipe],
|
|
5403
|
+
exports: [BizyTranslatePipe],
|
|
5404
|
+
providers: [BizyTranslateService]
|
|
4770
5405
|
}]
|
|
4771
5406
|
}] });
|
|
4772
5407
|
|
|
@@ -4834,7 +5469,7 @@ class BizyViewportService {
|
|
|
4834
5469
|
height: this.window.innerHeight
|
|
4835
5470
|
});
|
|
4836
5471
|
fromEvent(window, 'resize')
|
|
4837
|
-
.pipe(debounceTime
|
|
5472
|
+
.pipe(debounceTime(200), map((event) => ({
|
|
4838
5473
|
width: event.currentTarget.innerWidth,
|
|
4839
5474
|
height: event.currentTarget.innerHeight
|
|
4840
5475
|
})))
|
|
@@ -6534,7 +7169,7 @@ class BizyTextEllipsisDirective {
|
|
|
6534
7169
|
this.#resizeObserver = new ResizeObserver(() => this.notifier$.next());
|
|
6535
7170
|
const resizeRef = this.resizeRef ? this.resizeRef : this.#renderer.parentNode(this.#elementRef.nativeElement) ? this.#renderer.parentNode(this.#elementRef.nativeElement) : this.#elementRef.nativeElement;
|
|
6536
7171
|
this.#resizeObserver.observe(resizeRef);
|
|
6537
|
-
this.#subscription.add(this.notifier$.pipe(skip(1), debounceTime(150)).subscribe(() => {
|
|
7172
|
+
this.#subscription.add(this.notifier$.pipe(skip(1), debounceTime$1(150)).subscribe(() => {
|
|
6538
7173
|
this.#applyClamp();
|
|
6539
7174
|
}));
|
|
6540
7175
|
}
|
|
@@ -6849,5 +7484,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
6849
7484
|
* Generated bundle index. Do not edit.
|
|
6850
7485
|
*/
|
|
6851
7486
|
|
|
6852
|
-
export { BIZY_CALENDAR_DAY, BIZY_CALENDAR_EVENT_ACTION, BIZY_CALENDAR_LANGUAGE, BIZY_CALENDAR_MODE, BIZY_SKELETON_SHAPE, BIZY_TAG_TYPE, BizyAccordionComponent, BizyAnimationService, BizyAveragePipe, BizyBarLineChartComponent, BizyBreadcrumbComponent, BizyButtonComponent, BizyCacheService, BizyCalendarComponent, BizyCardComponent, BizyCheckboxComponent, BizyCopyToClipboardDirective, BizyCopyToClipboardService, BizyCurrencyFormatDirective, BizyDatePickerComponent, BizyDirectivesModule, BizyEnumToArrayPipe, BizyExportToCSVService, BizyFileUploaderComponent, BizyFileUploaderService, BizyFilterComponent, BizyFilterContentComponent, BizyFilterPipe, BizyFilterSectionCheckboxOptionComponent, BizyFilterSectionComponent, BizyFilterSectionRangeOptionComponent, BizyFilterSectionSearchOptionComponent, BizyFilterSectionsComponent, BizyFormComponent, BizyFormatSecondsPipe, BizyGridComponent, BizyGridForDirective, BizyGridRowComponent, BizyInputComponent, BizyInputOptionComponent, BizyKeyboardService, BizyListComponent, BizyLoadingDirective, BizyLogService, BizyLongPressDirective, BizyMenuComponent, BizyMenuOptionComponent, BizyMenuTitleComponent, BizyOnlyNumbersDirective, BizyOnlyPhoneDigitsDirective, BizyOrderByPipe, BizyPieChartComponent, BizyPipesModule, BizyPopupModule, BizyPopupService, BizyPopupWrapperComponent, BizyRadioComponent, BizyRangeFilterPipe, BizyReducePipe, BizyRepeatPipe, BizyRouterService, BizySafePipe, BizySearchPipe, BizySelectComponent, BizySelectOptionComponent, BizySelectedPipe, BizyServicesModule, BizySetToArrayPipe, BizySidebarComponent, BizySidebarFloatingOptionComponent, BizySidebarFloatingOptionTitleComponent, BizySidebarOptionComponent, BizySkeletonComponent, BizySliderComponent, BizyStorageService, BizyTabComponent, BizyTableColumnArrowsComponent, BizyTableColumnComponent, BizyTableColumnFixedDirective, BizyTableComponent, BizyTableFooterComponent, BizyTableHeaderComponent, BizyTableRowComponent, BizyTableRowExpandContentComponent, BizyTableScrollingComponent, BizyTableScrollingDirective, BizyTabsComponent, BizyTagComponent, BizyTextEllipsisDirective, BizyToastModule, BizyToastService, BizyToastWrapperComponent, BizyToggleComponent, BizyToolbarComponent, BizyTooltipDirective, BizyTrackByIdDirective, BizyTranslateModule, BizyTranslatePipe, BizyTranslateService, BizyUserAgentService, BizyValidatorService, BizyViewportService, LANGUAGE, LOADING_TYPE };
|
|
7487
|
+
export { BIZY_CALENDAR_DAY, BIZY_CALENDAR_EVENT_ACTION, BIZY_CALENDAR_LANGUAGE, BIZY_CALENDAR_MODE, BIZY_SKELETON_SHAPE, BIZY_TAG_TYPE, BizyAccordionComponent, BizyAccordionModule, BizyAnimationService, BizyAudioPlayerComponent, BizyAudioPlayerModule, BizyAveragePipe, BizyBarLineChartComponent, BizyBarLineChartModule, BizyBreadcrumbComponent, BizyBreadcrumbModule, BizyButtonComponent, BizyButtonModule, BizyCacheService, BizyCalendarComponent, BizyCalendarModule, BizyCardComponent, BizyCardModule, BizyCheckboxComponent, BizyCheckboxModule, BizyCopyToClipboardDirective, BizyCopyToClipboardService, BizyCurrencyFormatDirective, BizyDatePickerComponent, BizyDatePickerModule, BizyDirectivesModule, BizyEnumToArrayPipe, BizyExportToCSVService, BizyFileUploaderComponent, BizyFileUploaderModule, BizyFileUploaderService, BizyFilterComponent, BizyFilterContentComponent, BizyFilterModule, BizyFilterPipe, BizyFilterSectionCheckboxOptionComponent, BizyFilterSectionComponent, BizyFilterSectionRangeOptionComponent, BizyFilterSectionSearchOptionComponent, BizyFilterSectionsComponent, BizyFormComponent, BizyFormModule, BizyFormatSecondsPipe, BizyGridComponent, BizyGridForDirective, BizyGridModule, BizyGridRowComponent, BizyInputComponent, BizyInputModule, BizyInputOptionComponent, BizyKeyboardService, BizyListComponent, BizyListModule, BizyLoadingDirective, BizyLogService, BizyLongPressDirective, BizyMenuComponent, BizyMenuModule, BizyMenuOptionComponent, BizyMenuTitleComponent, BizyOnlyNumbersDirective, BizyOnlyPhoneDigitsDirective, BizyOrderByPipe, BizyPieChartComponent, BizyPieChartModule, BizyPipesModule, BizyPopupModule, BizyPopupService, BizyPopupWrapperComponent, BizyRadioComponent, BizyRadioModule, BizyRangeFilterPipe, BizyReducePipe, BizyRepeatPipe, BizyRouterService, BizySafePipe, BizySearchPipe, BizySelectComponent, BizySelectModule, BizySelectOptionComponent, BizySelectedPipe, BizyServicesModule, BizySetToArrayPipe, BizySidebarComponent, BizySidebarFloatingOptionComponent, BizySidebarFloatingOptionTitleComponent, BizySidebarModule, BizySidebarOptionComponent, BizySkeletonComponent, BizySkeletonModule, BizySliderComponent, BizySliderModule, BizyStorageService, BizyTabComponent, BizyTableColumnArrowsComponent, BizyTableColumnComponent, BizyTableColumnFixedDirective, BizyTableComponent, BizyTableFooterComponent, BizyTableHeaderComponent, BizyTableModule, BizyTableRowComponent, BizyTableRowExpandContentComponent, BizyTableScrollingComponent, BizyTableScrollingDirective, BizyTabsComponent, BizyTabsModule, BizyTagComponent, BizyTagModule, BizyTextEllipsisDirective, BizyToastModule, BizyToastService, BizyToastWrapperComponent, BizyToggleComponent, BizyToggleModule, BizyToolbarComponent, BizyToolbarModule, BizyTooltipDirective, BizyTrackByIdDirective, BizyTranslateModule, BizyTranslatePipe, BizyTranslateService, BizyUserAgentService, BizyValidatorService, BizyViewportService, LANGUAGE, LOADING_TYPE, MIME_TYPE };
|
|
6853
7488
|
//# sourceMappingURL=bizy-core.mjs.map
|