@acorex/components 17.0.11 → 17.0.12
Sign up to get free protection for your applications and to get access to all the features.
- package/audio-wave/lib/audio-wave.component.d.ts +1 -0
- package/audio-wave/lib/audio-wave.module.d.ts +2 -1
- package/calendar/lib/calendar-range.component.d.ts +2 -0
- package/calendar/lib/calendar.class.d.ts +3 -2
- package/calendar/lib/calendar.component.d.ts +2 -1
- package/chat/lib/chat-message/chat-message.component.d.ts +5 -1
- package/chat/lib/chat-messages/chat-messages-voice/chat-message-voice.component.d.ts +5 -2
- package/chat/lib/chat.module.d.ts +3 -1
- package/common/lib/classes/events.class.d.ts +1 -1
- package/common/lib/components/base-component.class.d.ts +4 -4
- package/common/lib/components/input-base-value-component.class.d.ts +1 -0
- package/data-pager/lib/data-pager-next-buttons.components.d.ts +2 -0
- package/data-pager/lib/data-pager-prev-buttons.component.d.ts +2 -0
- package/data-table/lib/columns/data-table-column.d.ts +2 -3
- package/data-table/lib/columns/data-text-column.component.d.ts +8 -4
- package/data-table/lib/columns/row-command-column.component.d.ts +8 -4
- package/data-table/lib/columns/row-index-column.component.d.ts +4 -2
- package/data-table/lib/columns/row-select-column.component.d.ts +7 -2
- package/data-table/lib/data-table/data-table.component.d.ts +1 -0
- package/datetime-picker/lib/datetime-picker.component.d.ts +2 -0
- package/esm2022/audio-wave/lib/audio-wave.component.mjs +21 -17
- package/esm2022/audio-wave/lib/audio-wave.module.mjs +5 -4
- package/esm2022/calendar/lib/calendar-range.component.mjs +10 -8
- package/esm2022/calendar/lib/calendar.class.mjs +14 -27
- package/esm2022/calendar/lib/calendar.component.mjs +14 -2
- package/esm2022/chat/lib/chat-message/chat-message.component.mjs +24 -5
- package/esm2022/chat/lib/chat-messages/chat-messages-voice/chat-message-voice.component.mjs +25 -14
- package/esm2022/chat/lib/chat.module.mjs +10 -3
- package/esm2022/common/lib/classes/events.class.mjs +1 -1
- package/esm2022/common/lib/components/base-component.class.mjs +14 -26
- package/esm2022/common/lib/components/input-base-value-component.class.mjs +8 -1
- package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +6 -2
- package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +13 -13
- package/esm2022/data-pager/lib/data-pager-prev-buttons.component.mjs +15 -47
- package/esm2022/data-pager/lib/data-pager.component.mjs +2 -2
- package/esm2022/data-table/lib/columns/data-table-column.mjs +2 -6
- package/esm2022/data-table/lib/columns/data-text-column.component.mjs +31 -25
- package/esm2022/data-table/lib/columns/row-command-column.component.mjs +97 -81
- package/esm2022/data-table/lib/columns/row-index-column.component.mjs +19 -11
- package/esm2022/data-table/lib/columns/row-select-column.component.mjs +61 -11
- package/esm2022/data-table/lib/data-table/data-table.component.mjs +5 -4
- package/esm2022/data-table/lib/infinite-scroll-data-table/infinite-scroll-data-table.component.mjs +3 -3
- package/esm2022/datetime-picker/lib/datetime-picker.component.mjs +21 -2
- package/esm2022/drawer/lib/drawer.component.mjs +2 -2
- package/esm2022/list/lib/list.component.mjs +13 -3
- package/esm2022/phone-box/lib/phone-box.component.mjs +29 -28
- package/esm2022/select-box/lib/select-box.component.mjs +29 -9
- package/esm2022/text-box/lib/mask-options.directive.mjs +16 -4
- package/esm2022/text-box/lib/text-box.component.mjs +8 -1
- package/fesm2022/acorex-components-audio-wave.mjs +24 -19
- package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +31 -31
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-chat.mjs +55 -21
- package/fesm2022/acorex-components-chat.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs +21 -25
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +31 -59
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +210 -133
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +20 -1
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer.mjs +2 -2
- package/fesm2022/acorex-components-drawer.mjs.map +1 -1
- package/fesm2022/acorex-components-list.mjs +13 -3
- package/fesm2022/acorex-components-list.mjs.map +1 -1
- package/fesm2022/acorex-components-phone-box.mjs +29 -29
- package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +28 -8
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-text-box.mjs +22 -3
- package/fesm2022/acorex-components-text-box.mjs.map +1 -1
- package/list/lib/list.component.d.ts +3 -2
- package/package.json +1 -1
- package/phone-box/lib/phone-box.component.d.ts +4 -2
- package/select-box/lib/select-box.component.d.ts +5 -4
- package/text-box/lib/mask-options.directive.d.ts +6 -2
- package/text-box/lib/text-box.component.d.ts +1 -0
@@ -53,10 +53,16 @@ export class AXSelectBoxComponent extends classes(MXDropdownBoxBaseComponent, MX
|
|
53
53
|
else {
|
54
54
|
this._listDataSource = this.dataSource;
|
55
55
|
}
|
56
|
-
|
56
|
+
//
|
57
|
+
//
|
58
|
+
this._listDataSource.onChanged
|
59
|
+
.pipe(this._unsubscriber.takeUntilDestroy)
|
60
|
+
.subscribe((data) => {
|
57
61
|
this.setDropdownSize(data.totalCount);
|
58
62
|
});
|
59
|
-
this._listDataSource.onLoadingChanged
|
63
|
+
this._listDataSource.onLoadingChanged
|
64
|
+
.pipe(this._unsubscriber.takeUntilDestroy)
|
65
|
+
.subscribe((loading) => {
|
60
66
|
this.isLoading.set(loading);
|
61
67
|
});
|
62
68
|
}
|
@@ -74,13 +80,22 @@ export class AXSelectBoxComponent extends classes(MXDropdownBoxBaseComponent, MX
|
|
74
80
|
getItemByKey(key) {
|
75
81
|
return this._listDataSource.find(key);
|
76
82
|
}
|
77
|
-
_handleOnOpenedEvent() {
|
83
|
+
_handleOnOpenedEvent(e) {
|
78
84
|
this.renderList = true;
|
79
85
|
this.list?.render();
|
80
86
|
this._handleFocus();
|
87
|
+
//
|
88
|
+
this.onOpened.emit({
|
89
|
+
component: this,
|
90
|
+
isUserInteraction: e.isUserInteraction
|
91
|
+
});
|
81
92
|
}
|
82
|
-
_handleOnClosedEvent() {
|
93
|
+
_handleOnClosedEvent(e) {
|
83
94
|
//this.input.focus();
|
95
|
+
this.onClosed.emit({
|
96
|
+
component: this,
|
97
|
+
isUserInteraction: e.isUserInteraction
|
98
|
+
});
|
84
99
|
this._unsubscriber.unsubscribe();
|
85
100
|
}
|
86
101
|
_handleFocus() {
|
@@ -115,6 +130,11 @@ export class AXSelectBoxComponent extends classes(MXDropdownBoxBaseComponent, MX
|
|
115
130
|
this.commitValue(e.component.selectedItems, true);
|
116
131
|
}
|
117
132
|
}
|
133
|
+
_handleOnItemClick(e) {
|
134
|
+
if (!this.multiple) {
|
135
|
+
this.close();
|
136
|
+
}
|
137
|
+
}
|
118
138
|
internalValueChanged() {
|
119
139
|
if (!this.multiple)
|
120
140
|
this.close();
|
@@ -209,7 +229,7 @@ export class AXSelectBoxComponent extends classes(MXDropdownBoxBaseComponent, MX
|
|
209
229
|
this.close();
|
210
230
|
}
|
211
231
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXSelectBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
212
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.2", type: AXSelectBoxComponent, selector: "ax-select-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", placeholder: "placeholder", minValue: "minValue", maxValue: "maxValue", value: "value", state: "state", name: "name", id: "id", type: "type", look: "look", multiple: "multiple", valueField: "valueField", textField: "textField", dataSource: "dataSource", caption: "caption", itemTemplate: "itemTemplate", selectedTemplate: "selectedTemplate", emptyTemplate: "emptyTemplate", loadingTemplate: "loadingTemplate", dropdownWidth: "dropdownWidth" }, outputs: { valueChange: "valueChange", stateChange: "stateChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", readonlyChange: "readonlyChange", disabledChange: "disabledChange" }, host: { attributes: { "ngSkipHydration": "true" }, listeners: { "keydown": "_handleKeydown($event)" } }, providers: [
|
232
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.2", type: AXSelectBoxComponent, selector: "ax-select-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", placeholder: "placeholder", minValue: "minValue", maxValue: "maxValue", value: "value", state: "state", name: "name", id: "id", type: "type", look: "look", multiple: "multiple", valueField: "valueField", textField: "textField", dataSource: "dataSource", caption: "caption", itemTemplate: "itemTemplate", selectedTemplate: "selectedTemplate", emptyTemplate: "emptyTemplate", loadingTemplate: "loadingTemplate", dropdownWidth: "dropdownWidth" }, outputs: { valueChange: "valueChange", stateChange: "stateChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", readonlyChange: "readonlyChange", disabledChange: "disabledChange", onOpened: "onOpened", onClosed: "onClosed" }, host: { attributes: { "ngSkipHydration": "true" }, listeners: { "keydown": "_handleKeydown($event)" } }, providers: [
|
213
233
|
{ provide: AXComponent, useExisting: AXSelectBoxComponent },
|
214
234
|
{ provide: AXFocusableComponent, useExisting: AXSelectBoxComponent },
|
215
235
|
{ provide: AXValuableComponent, useExisting: AXSelectBoxComponent },
|
@@ -226,7 +246,7 @@ export class AXSelectBoxComponent extends classes(MXDropdownBoxBaseComponent, MX
|
|
226
246
|
useClass: MXSelectionBridgeService,
|
227
247
|
},
|
228
248
|
AXUnsubscriber,
|
229
|
-
], queries: [{ propertyName: "searchBox", first: true, predicate: AXSearchBoxComponent, descendants: true, static: true }], viewQueries: [{ propertyName: "panel", first: true, predicate: ["panel"], descendants: true }, { propertyName: "list", first: true, predicate: AXListComponent, descendants: true }, { propertyName: "dropdown", first: true, predicate: AXDropdownBoxComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ax-dropdown-box [disabled]=\"disabled\" (onOpened)=\"_handleOnOpenedEvent()\"
|
249
|
+
], queries: [{ propertyName: "searchBox", first: true, predicate: AXSearchBoxComponent, descendants: true, static: true }], viewQueries: [{ propertyName: "panel", first: true, predicate: ["panel"], descendants: true }, { propertyName: "list", first: true, predicate: AXListComponent, descendants: true }, { propertyName: "dropdown", first: true, predicate: AXDropdownBoxComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ax-dropdown-box [disabled]=\"disabled\" (onOpened)=\"_handleOnOpenedEvent($event)\"\n (onClosed)=\"_handleOnClosedEvent($event)\" [look]=\"look\" [class.ax-auto-height]=\"autoHeight\">\n <ng-container input>\n <ng-content select=\"ax-prefix\"> </ng-content>\n <div class=\"ax-select-box-selection\" [class.ax-multiple]=\"multiple\" [tabindex]=\"tabIndex\"\n (focus)=\"emitOnFocusEvent($event)\" (blur)=\"emitOnBlurEvent($event)\" (click)=\"toggle()\">\n @if (selectedItems.length === 0) {\n <div class=\"ax-placeholder\" role=\"textbox\" area-readonly=\"true\">\n {{ placeholder }}\n </div>\n }\n @for (item of selectedItems; track $index) {\n @if(selectedTemplate) {\n <ng-template *ngTemplateOutlet=\"selectedTemplate; context: { $implicit: { data:item } }\"></ng-template>\n }\n @else{\n <div class=\"ax-selected-token\">\n {{ getDisplayText(item) }}\n @if (!disabled && !readonly && multiple) {\n <span class=\"ax-icon ax-icon-close\" (click)=\"_handleBadgeRemove($event, item)\"> </span>\n }\n </div>\n }\n }\n </div>\n @if (selectedItems?.length && !disabled && !readonly) {\n <ng-content select=\"ax-clear-button\"></ng-content>\n }\n <button type=\"button\" [disabled]=\"disabled\" [tabIndex]=\"-1\" class=\"ax-general-button ax-button-icon\"\n (click)=\"toggle()\">\n <!-- @if (isLoading() && !isOpen) {\n <ax-loading type=\"spinner\"></ax-loading>\n } @else { -->\n <span class=\"ax-icon ax-icon-chevron-left ax-arrow-button\" [ngClass]=\"{\n '-rotation-90': !isOpen,\n 'rotation-90': isOpen\n }\"></span>\n <!-- } -->\n </button>\n <ng-content select=\"ax-suffix\"> </ng-content>\n <ng-template #search>\n <ng-content select=\"ax-search-box\"> </ng-content>\n </ng-template>\n </ng-container>\n <ng-container panel>\n <div #panel class=\"ax-select-box-panel\" [style.min-width]=\"dropdownSizes.width\">\n @if (dropdown.isActionsheetStyle) {\n <ax-header class=\"ax-solid\">\n <ax-title>{{ caption || placeholder || 'selectbox.popover.title' | translate | async }}</ax-title>\n <ax-close-button\n [icon]=\"multiple ? 'ax-icon ax-icon-done !ax-text-primary-500' : 'ax-icon ax-icon-close'\"></ax-close-button>\n </ax-header>\n }\n @if (searchBox) {\n <div class=\"ax-search-container\">\n <ng-template [ngTemplateOutlet]=\"search\"></ng-template>\n </div>\n }\n @if (renderList) {\n <ax-list [dataSource]=\"_listDataSource\" [multiple]=\"multiple\" [style.height]=\"dropdownSizes.height\"\n [valueField]=\"valueField\" [textField]=\"textField\" [emptyTemplate]=\"emptyTemplate ?? empty\"\n [itemTemplate]=\"itemTemplate\" [loadingTemplate]=\"loadingTemplate\" [ngModel]=\"value\"\n (onValueChanged)=\"_handleValueChanged($event)\" [selectionMode]=\"'item'\"\n (onItemClick)=\"_handleOnItemClick($event)\">\n <ng-template #empty> No Items! </ng-template>\n </ax-list>\n }\n\n @if (isLoading()) {\n @if (loadingTemplate) {\n <ng-template *ngTemplateOutlet=\"loadingTemplate\"></ng-template>\n } @else {\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\n <ax-loading></ax-loading>\n </div>\n }\n }\n\n <ng-content select=\"ax-footer\"> </ng-content>\n </div>\n </ng-container>\n</ax-dropdown-box>\n<ng-content select=\"ax-validation-rule\"> </ng-content>", styles: ["ax-select-box{display:block;width:100%}ax-select-box ax-dropdown-box.ax-auto-height{height:auto!important}ax-select-box .ax-editor-container.ax-look-fill .ax-selected-token{background-color:rgba(var(--ax-color-surface))}ax-select-box .ax-selected-token{display:flex;align-items:center;border-radius:var(--ax-rounded-border-default);padding:.25rem .5rem;color:rgb(var(--ax-color-text-default))}ax-select-box .ax-selected-token .ax-icon-close{margin-inline-start:.5rem;cursor:pointer}ax-select-box .ax-select-box-selection{display:flex;flex:1 1 0%;cursor:pointer;-webkit-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:.25rem;padding:.25rem;outline:2px solid transparent;outline-offset:2px;height:100%}ax-select-box .ax-select-box-selection>span{white-space:nowrap;padding-inline-end:.75rem;padding-inline-start:1rem}ax-select-box .ax-select-box-selection .ax-selectbox-input{width:0px;opacity:0}ax-select-box .ax-select-box-selection.ax-multiple .ax-selected-token{background-color:rgba(var(--ax-color-on-surface))}ax-select-box .ax-placeholder{padding-inline-end:.75rem;padding-inline-start:1rem}ax-select-box .ax-general-button .ax-arrow-button{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}ax-select-box .ax-general-button .ax-arrow-button.-rotation-90{transform:rotate(-90deg)}ax-select-box .ax-general-button .ax-arrow-button.rotation-90{transform:rotate(90deg)}.ax-select-box-panel{height:fit-content}.ax-select-box-panel>ax-header.ax-solid{border-bottom-width:1px;border-color:rgba(var(--ax-color-border-default))}.ax-select-box-panel .ax-search-container{padding:.5rem}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title , ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "component", type: i4.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "component", type: i5.AXDropdownBoxComponent, selector: "ax-dropdown-box", inputs: ["disabled", "look"], outputs: ["disabledChange", "onBlur", "onFocus", "onClick", "onOpened", "onClosed"] }, { kind: "component", type: i6.AXListComponent, selector: "ax-list", inputs: ["id", "name", "disabled", "readonly", "valueField", "textField", "disabledField", "multiple", "selectionMode", "dataSource", "itemHeight", "itemTemplate", "emptyTemplate", "loadingTemplate", "checkbox"], outputs: ["onValueChanged", "disabledChange", "readOnlyChange", "onBlur", "onFocus", "onItemClick", "onScrolledIndexChanged"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
230
250
|
}
|
231
251
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXSelectBoxComponent, decorators: [{
|
232
252
|
type: Component,
|
@@ -246,7 +266,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
246
266
|
'multiple',
|
247
267
|
'valueField',
|
248
268
|
'textField',
|
249
|
-
], outputs: ['valueChange', 'stateChange', 'onValueChanged', 'onBlur', 'onFocus', 'readonlyChange', 'disabledChange'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
|
269
|
+
], outputs: ['valueChange', 'stateChange', 'onValueChanged', 'onBlur', 'onFocus', 'readonlyChange', 'disabledChange', 'onOpened', 'onClosed'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
|
250
270
|
{ provide: AXComponent, useExisting: AXSelectBoxComponent },
|
251
271
|
{ provide: AXFocusableComponent, useExisting: AXSelectBoxComponent },
|
252
272
|
{ provide: AXValuableComponent, useExisting: AXSelectBoxComponent },
|
@@ -263,7 +283,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
263
283
|
useClass: MXSelectionBridgeService,
|
264
284
|
},
|
265
285
|
AXUnsubscriber,
|
266
|
-
], host: { ngSkipHydration: 'true' }, template: "<ax-dropdown-box [disabled]=\"disabled\" (onOpened)=\"_handleOnOpenedEvent()\"
|
286
|
+
], host: { ngSkipHydration: 'true' }, template: "<ax-dropdown-box [disabled]=\"disabled\" (onOpened)=\"_handleOnOpenedEvent($event)\"\n (onClosed)=\"_handleOnClosedEvent($event)\" [look]=\"look\" [class.ax-auto-height]=\"autoHeight\">\n <ng-container input>\n <ng-content select=\"ax-prefix\"> </ng-content>\n <div class=\"ax-select-box-selection\" [class.ax-multiple]=\"multiple\" [tabindex]=\"tabIndex\"\n (focus)=\"emitOnFocusEvent($event)\" (blur)=\"emitOnBlurEvent($event)\" (click)=\"toggle()\">\n @if (selectedItems.length === 0) {\n <div class=\"ax-placeholder\" role=\"textbox\" area-readonly=\"true\">\n {{ placeholder }}\n </div>\n }\n @for (item of selectedItems; track $index) {\n @if(selectedTemplate) {\n <ng-template *ngTemplateOutlet=\"selectedTemplate; context: { $implicit: { data:item } }\"></ng-template>\n }\n @else{\n <div class=\"ax-selected-token\">\n {{ getDisplayText(item) }}\n @if (!disabled && !readonly && multiple) {\n <span class=\"ax-icon ax-icon-close\" (click)=\"_handleBadgeRemove($event, item)\"> </span>\n }\n </div>\n }\n }\n </div>\n @if (selectedItems?.length && !disabled && !readonly) {\n <ng-content select=\"ax-clear-button\"></ng-content>\n }\n <button type=\"button\" [disabled]=\"disabled\" [tabIndex]=\"-1\" class=\"ax-general-button ax-button-icon\"\n (click)=\"toggle()\">\n <!-- @if (isLoading() && !isOpen) {\n <ax-loading type=\"spinner\"></ax-loading>\n } @else { -->\n <span class=\"ax-icon ax-icon-chevron-left ax-arrow-button\" [ngClass]=\"{\n '-rotation-90': !isOpen,\n 'rotation-90': isOpen\n }\"></span>\n <!-- } -->\n </button>\n <ng-content select=\"ax-suffix\"> </ng-content>\n <ng-template #search>\n <ng-content select=\"ax-search-box\"> </ng-content>\n </ng-template>\n </ng-container>\n <ng-container panel>\n <div #panel class=\"ax-select-box-panel\" [style.min-width]=\"dropdownSizes.width\">\n @if (dropdown.isActionsheetStyle) {\n <ax-header class=\"ax-solid\">\n <ax-title>{{ caption || placeholder || 'selectbox.popover.title' | translate | async }}</ax-title>\n <ax-close-button\n [icon]=\"multiple ? 'ax-icon ax-icon-done !ax-text-primary-500' : 'ax-icon ax-icon-close'\"></ax-close-button>\n </ax-header>\n }\n @if (searchBox) {\n <div class=\"ax-search-container\">\n <ng-template [ngTemplateOutlet]=\"search\"></ng-template>\n </div>\n }\n @if (renderList) {\n <ax-list [dataSource]=\"_listDataSource\" [multiple]=\"multiple\" [style.height]=\"dropdownSizes.height\"\n [valueField]=\"valueField\" [textField]=\"textField\" [emptyTemplate]=\"emptyTemplate ?? empty\"\n [itemTemplate]=\"itemTemplate\" [loadingTemplate]=\"loadingTemplate\" [ngModel]=\"value\"\n (onValueChanged)=\"_handleValueChanged($event)\" [selectionMode]=\"'item'\"\n (onItemClick)=\"_handleOnItemClick($event)\">\n <ng-template #empty> No Items! </ng-template>\n </ax-list>\n }\n\n @if (isLoading()) {\n @if (loadingTemplate) {\n <ng-template *ngTemplateOutlet=\"loadingTemplate\"></ng-template>\n } @else {\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\n <ax-loading></ax-loading>\n </div>\n }\n }\n\n <ng-content select=\"ax-footer\"> </ng-content>\n </div>\n </ng-container>\n</ax-dropdown-box>\n<ng-content select=\"ax-validation-rule\"> </ng-content>", styles: ["ax-select-box{display:block;width:100%}ax-select-box ax-dropdown-box.ax-auto-height{height:auto!important}ax-select-box .ax-editor-container.ax-look-fill .ax-selected-token{background-color:rgba(var(--ax-color-surface))}ax-select-box .ax-selected-token{display:flex;align-items:center;border-radius:var(--ax-rounded-border-default);padding:.25rem .5rem;color:rgb(var(--ax-color-text-default))}ax-select-box .ax-selected-token .ax-icon-close{margin-inline-start:.5rem;cursor:pointer}ax-select-box .ax-select-box-selection{display:flex;flex:1 1 0%;cursor:pointer;-webkit-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:.25rem;padding:.25rem;outline:2px solid transparent;outline-offset:2px;height:100%}ax-select-box .ax-select-box-selection>span{white-space:nowrap;padding-inline-end:.75rem;padding-inline-start:1rem}ax-select-box .ax-select-box-selection .ax-selectbox-input{width:0px;opacity:0}ax-select-box .ax-select-box-selection.ax-multiple .ax-selected-token{background-color:rgba(var(--ax-color-on-surface))}ax-select-box .ax-placeholder{padding-inline-end:.75rem;padding-inline-start:1rem}ax-select-box .ax-general-button .ax-arrow-button{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}ax-select-box .ax-general-button .ax-arrow-button.-rotation-90{transform:rotate(-90deg)}ax-select-box .ax-general-button .ax-arrow-button.rotation-90{transform:rotate(90deg)}.ax-select-box-panel{height:fit-content}.ax-select-box-panel>ax-header.ax-solid{border-bottom-width:1px;border-color:rgba(var(--ax-color-border-default))}.ax-select-box-panel .ax-search-container{padding:.5rem}\n"] }]
|
267
287
|
}], propDecorators: { dataSource: [{
|
268
288
|
type: Input
|
269
289
|
}], placeholder: [{
|
@@ -296,4 +316,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
296
316
|
type: HostListener,
|
297
317
|
args: ['keydown', ['$event']]
|
298
318
|
}] } });
|
299
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LWJveC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvc2VsZW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1jZW50ZXIgYXgtcC00XCI+XG4gICAgICAgIDxheC1sb2FkaW5nPjwvYXgtbG9hZGluZz5cbiAgICAgIDwvZGl2PlxuICAgICAgfVxuICAgICAgfVxuXG4gICAgICA8bmctY29udGVudCBzZWxlY3Q9XCJheC1mb290ZXJcIj4gPC9uZy1jb250ZW50PlxuICAgIDwvZGl2PlxuICA8L25nLWNvbnRhaW5lcj5cbjwvYXgtZHJvcGRvd24tYm94PlxuPG5nLWNvbnRlbnQgc2VsZWN0PVwiYXgtdmFsaWRhdGlvbi1ydWxlXCI+IDwvbmctY29udGVudD4iXX0=
|
@@ -1,17 +1,29 @@
|
|
1
|
-
import { Directive, Input } from '@angular/core';
|
1
|
+
import { Directive, EventEmitter, Input, Output } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
export class AXMaskOptionsDirective {
|
4
|
+
constructor() {
|
5
|
+
this.onMaskChange = new EventEmitter();
|
6
|
+
}
|
7
|
+
get mask() {
|
8
|
+
return this._mask;
|
9
|
+
}
|
10
|
+
set mask(v) {
|
11
|
+
this._mask = v;
|
12
|
+
this.onMaskChange.emit(v);
|
13
|
+
}
|
4
14
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXMaskOptionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
5
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.2", type: AXMaskOptionsDirective, selector: "ax-mask-options", inputs: { mask: "mask", updateValue: "updateValue" }, ngImport: i0 }); }
|
15
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.2", type: AXMaskOptionsDirective, selector: "ax-mask-options", inputs: { mask: "mask", updateValue: "updateValue" }, outputs: { onMaskChange: "onMaskChange" }, ngImport: i0 }); }
|
6
16
|
}
|
7
17
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXMaskOptionsDirective, decorators: [{
|
8
18
|
type: Directive,
|
9
19
|
args: [{
|
10
20
|
selector: 'ax-mask-options',
|
11
21
|
}]
|
12
|
-
}], propDecorators: {
|
22
|
+
}], propDecorators: { onMaskChange: [{
|
23
|
+
type: Output
|
24
|
+
}], mask: [{
|
13
25
|
type: Input
|
14
26
|
}], updateValue: [{
|
15
27
|
type: Input
|
16
28
|
}] } });
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFzay1vcHRpb25zLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy90ZXh0LWJveC9zcmMvbGliL21hc2stb3B0aW9ucy5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFhdkUsTUFBTSxPQUFPLHNCQUFzQjtJQUhuQztRQVNTLGlCQUFZLEdBQUcsSUFBSSxZQUFZLEVBQW1DLENBQUM7S0FlM0U7SUFiQyxJQUNXLElBQUk7UUFDYixPQUFPLElBQUksQ0FBQyxLQUFLLENBQUM7SUFDcEIsQ0FBQztJQUVELElBQVcsSUFBSSxDQUFDLENBQWtDO1FBQ2hELElBQUksQ0FBQyxLQUFLLEdBQUcsQ0FBQyxDQUFDO1FBQ2YsSUFBSSxDQUFDLFlBQVksQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDNUIsQ0FBQzs4R0FoQlUsc0JBQXNCO2tHQUF0QixzQkFBc0I7OzJGQUF0QixzQkFBc0I7a0JBSGxDLFNBQVM7bUJBQUM7b0JBQ1QsUUFB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Mgc2V0IG1hc2sodjogTWFza2VkT3B0aW9ucyB8IHN0cmluZyB8IFJlZ0V4cCkge1xuICAgIHRoaXMuX21hc2sgPSB2O1xuICAgIHRoaXMub25NYXNrQ2hhbmdlLmVtaXQodik7XG4gIH1cblxuXG4gIEBJbnB1dCgpXG4gIHVwZGF0ZVZhbHVlPzogKG1hc2tlZDogc3RyaW5nLCB1bm1hc2tlZDogc3RyaW5nKSA9PiB2b2lkO1xufVxuIl19
|
@@ -23,6 +23,7 @@ export class AXTextBoxComponent extends classes((MXInputBaseValueComponent), MXL
|
|
23
23
|
}
|
24
24
|
set maskOptions(value) {
|
25
25
|
this._maskOptions = value;
|
26
|
+
this.setMask();
|
26
27
|
}
|
27
28
|
ngAfterContentInit() {
|
28
29
|
if (this._maskOptionsContent?.mask) {
|
@@ -38,6 +39,12 @@ export class AXTextBoxComponent extends classes((MXInputBaseValueComponent), MXL
|
|
38
39
|
}
|
39
40
|
}
|
40
41
|
//
|
42
|
+
this.setMask();
|
43
|
+
}
|
44
|
+
setMask() {
|
45
|
+
if (this._maskObj)
|
46
|
+
this._maskObj.destroy();
|
47
|
+
//
|
41
48
|
if (this.maskOptions?.mask) {
|
42
49
|
this._maskObj = IMask(this.input.nativeElement, this.maskOptions);
|
43
50
|
this._updateOn = 'submit';
|
@@ -128,4 +135,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
128
135
|
type: ContentChild,
|
129
136
|
args: [AXMaskOptionsDirective, { static: true }]
|
130
137
|
}] } });
|
131
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC1ib3guY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3RleHQtYm94L3NyYy9saWIvdGV4dC1ib3guY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4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lzYWJsZWRdPVwiZGlzYWJsZWRcIlxuICAgIFtjbGFzcy5heC1zdGF0ZS1yZWFkb25seV09XCJyZWFkb25seVwiIFtkaXNhYmxlZF09XCJkaXNhYmxlZFwiIFtyZWFkb25seV09XCJyZWFkb25seVwiIFt0YWJpbmRleF09XCJ0YWJJbmRleFwiXG4gICAgW25nTW9kZWxdPVwidmFsdWVcIiAobmdNb2RlbENoYW5nZSk9XCJfaGFuZGxlTW9kZWxDaGFuZ2UoJGV2ZW50KVwiIFtuZ01vZGVsT3B0aW9uc109XCJ7IHVwZGF0ZU9uOiBfdXBkYXRlT24gfVwiXG4gICAgKGtleWRvd24pPVwiZW1pdE9uS2V5ZG93bkV2ZW50KCRldmVudClcIiAoa2V5dXApPVwiZW1pdE9uS2V5dXBFdmVudCgkZXZlbnQpXCIgKGtleXByZXNzKT1cImVtaXRPbktleXByZXNzRXZlbnQoJGV2ZW50KVwiXG4gICAgKGZvY3VzKT1cImVtaXRPbkZvY3VzRXZlbnQoJGV2ZW50KVwiIChibHVyKT1cImVtaXRPbkJsdXJFdmVudCgkZXZlbnQpXCIgLz5cbiAgQGlmKGlucHV0LnZhbHVlICYmICFkaXNhYmxlZCAmJiAhcmVhZG9ubHkpe1xuICA8bmctY29udGVudCBzZWxlY3Q9XCJheC1jbGVhci1idXR0b25cIj48L25nLWNvbnRlbnQ+XG4gIH1cbiAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiYXgtc3VmZml4XCI+IDwvbmctY29udGVudD5cbjwvZGl2PlxuPG5nLWNvbnRlbnQgc2VsZWN0PVwiYXgtdmFsaWRhdGlvbi1ydWxlXCI+IDwvbmctY29udGVudD5cbjxkaXYgY2xhc3M9XCJheC1lcnJvci1jb250YWluZXJcIj48L2Rpdj4iXX0=
|
138
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC1ib3guY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiO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ZW50KCRldmVudClcIiAoYmx1cik9XCJlbWl0T25CbHVyRXZlbnQoJGV2ZW50KVwiIC8+XG4gIEBpZihpbnB1dC52YWx1ZSAmJiAhZGlzYWJsZWQgJiYgIXJlYWRvbmx5KXtcbiAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiYXgtY2xlYXItYnV0dG9uXCI+PC9uZy1jb250ZW50PlxuICB9XG4gIDxuZy1jb250ZW50IHNlbGVjdD1cImF4LXN1ZmZpeFwiPiA8L25nLWNvbnRlbnQ+XG48L2Rpdj5cbjxuZy1jb250ZW50IHNlbGVjdD1cImF4LXZhbGlkYXRpb24tcnVsZVwiPiA8L25nLWNvbnRlbnQ+XG48ZGl2IGNsYXNzPVwiYXgtZXJyb3ItY29udGFpbmVyXCI+PC9kaXY+Il19
|
@@ -1,18 +1,20 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { input, output, inject, NgZone, afterNextRender, Component, ViewEncapsulation, ViewChild, NgModule } from '@angular/core';
|
2
|
+
import { input, output, signal, inject, NgZone, afterNextRender, Component, ViewEncapsulation, ViewChild, NgModule } from '@angular/core';
|
3
3
|
import WaveSurfer from 'wavesurfer.js';
|
4
4
|
import { AXButtonModule } from '@acorex/components/button';
|
5
5
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
6
|
+
import { AXSkeletonModule } from '@acorex/components/skeleton';
|
6
7
|
import { CommonModule } from '@angular/common';
|
7
8
|
|
8
9
|
class AXAudioWaveComponent {
|
9
10
|
constructor() {
|
10
11
|
this.config = input();
|
11
12
|
this.onStatusChanged = output();
|
13
|
+
this.audioIsReady = signal(false);
|
12
14
|
this.ngZone = inject(NgZone);
|
13
15
|
afterNextRender(() => {
|
14
|
-
const primary500 = getComputedStyle(document.body).getPropertyValue('--ax-color-primary-
|
15
|
-
const primary700 = getComputedStyle(document.body).getPropertyValue('--ax-color-primary-
|
16
|
+
const primary500 = getComputedStyle(document.body).getPropertyValue('--ax-color-primary-200');
|
17
|
+
const primary700 = getComputedStyle(document.body).getPropertyValue('--ax-color-primary-500');
|
16
18
|
this.audio = WaveSurfer.create({
|
17
19
|
container: this.div.nativeElement,
|
18
20
|
waveColor: this.config()?.waveColor || `rgba(${primary500})`,
|
@@ -24,6 +26,9 @@ class AXAudioWaveComponent {
|
|
24
26
|
height: this.config()?.height || 18,
|
25
27
|
});
|
26
28
|
this.audio.load(this.config()?.url);
|
29
|
+
this.audio.on('ready', () => {
|
30
|
+
this.audioIsReady.set(true);
|
31
|
+
});
|
27
32
|
this.bindEvents();
|
28
33
|
});
|
29
34
|
}
|
@@ -34,7 +39,7 @@ class AXAudioWaveComponent {
|
|
34
39
|
this.audio.pause();
|
35
40
|
}
|
36
41
|
getDuration() {
|
37
|
-
return this.audio?.getDuration();
|
42
|
+
return this.audio?.getDuration() ?? 0;
|
38
43
|
}
|
39
44
|
getMediaElement() {
|
40
45
|
return this.audio?.getMediaElement();
|
@@ -61,7 +66,7 @@ class AXAudioWaveComponent {
|
|
61
66
|
handleLoad() {
|
62
67
|
this.audio.on('load', (url) => {
|
63
68
|
this.ngZone.run(() => {
|
64
|
-
this.onStatusChanged.emit({ component: this, data: { url }, status: 'load', isUserInteraction: false });
|
69
|
+
this.onStatusChanged.emit({ component: this, data: { url: url }, status: 'load', isUserInteraction: false });
|
65
70
|
});
|
66
71
|
});
|
67
72
|
}
|
@@ -69,7 +74,7 @@ class AXAudioWaveComponent {
|
|
69
74
|
handleLoading() {
|
70
75
|
this.audio.on('loading', (percent) => {
|
71
76
|
this.ngZone.run(() => {
|
72
|
-
this.onStatusChanged.emit({ component: this, data: { percent }, status: 'loading', isUserInteraction: false });
|
77
|
+
this.onStatusChanged.emit({ component: this, data: { percent: percent }, status: 'loading', isUserInteraction: false });
|
73
78
|
});
|
74
79
|
});
|
75
80
|
}
|
@@ -77,7 +82,7 @@ class AXAudioWaveComponent {
|
|
77
82
|
handleDecode() {
|
78
83
|
this.audio.on('decode', (duration) => {
|
79
84
|
this.ngZone.run(() => {
|
80
|
-
this.onStatusChanged.emit({ component: this, data: { duration }, status: 'decode', isUserInteraction: false });
|
85
|
+
this.onStatusChanged.emit({ component: this, data: { duration: duration }, status: 'decode', isUserInteraction: false });
|
81
86
|
});
|
82
87
|
});
|
83
88
|
}
|
@@ -85,7 +90,7 @@ class AXAudioWaveComponent {
|
|
85
90
|
handleReady() {
|
86
91
|
this.audio.on('ready', (duration) => {
|
87
92
|
this.ngZone.run(() => {
|
88
|
-
this.onStatusChanged.emit({ component: this, data: { duration }, status: 'ready', isUserInteraction: false });
|
93
|
+
this.onStatusChanged.emit({ component: this, data: { duration: duration }, status: 'ready', isUserInteraction: false });
|
89
94
|
});
|
90
95
|
});
|
91
96
|
}
|
@@ -125,7 +130,7 @@ class AXAudioWaveComponent {
|
|
125
130
|
handleTimeUpdate() {
|
126
131
|
this.audio.on('timeupdate', (currentTime) => {
|
127
132
|
this.ngZone.run(() => {
|
128
|
-
this.onStatusChanged.emit({ component: this, data: { currentTime }, status: 'timeupdate', isUserInteraction: false });
|
133
|
+
this.onStatusChanged.emit({ component: this, data: { currentTime: currentTime }, status: 'timeupdate', isUserInteraction: false });
|
129
134
|
});
|
130
135
|
});
|
131
136
|
}
|
@@ -133,7 +138,7 @@ class AXAudioWaveComponent {
|
|
133
138
|
handleSeeking() {
|
134
139
|
this.audio.on('seeking', (currentTime) => {
|
135
140
|
this.ngZone.run(() => {
|
136
|
-
this.onStatusChanged.emit({ component: this, data: { currentTime }, status: 'seeking', isUserInteraction: false });
|
141
|
+
this.onStatusChanged.emit({ component: this, data: { currentTime: currentTime }, status: 'seeking', isUserInteraction: false });
|
137
142
|
});
|
138
143
|
});
|
139
144
|
}
|
@@ -141,7 +146,7 @@ class AXAudioWaveComponent {
|
|
141
146
|
handleInteraction() {
|
142
147
|
this.audio.on('interaction', (newTime) => {
|
143
148
|
this.ngZone.run(() => {
|
144
|
-
this.onStatusChanged.emit({ component: this, data: { newTime }, status: 'interaction', isUserInteraction: false });
|
149
|
+
this.onStatusChanged.emit({ component: this, data: { newTime: newTime }, status: 'interaction', isUserInteraction: false });
|
145
150
|
});
|
146
151
|
});
|
147
152
|
}
|
@@ -149,7 +154,7 @@ class AXAudioWaveComponent {
|
|
149
154
|
handleClick() {
|
150
155
|
this.audio.on('click', (relativeX) => {
|
151
156
|
this.ngZone.run(() => {
|
152
|
-
this.onStatusChanged.emit({ component: this, data: { relativeX }, status: 'click', isUserInteraction: false });
|
157
|
+
this.onStatusChanged.emit({ component: this, data: { relativeX: relativeX }, status: 'click', isUserInteraction: false });
|
153
158
|
});
|
154
159
|
});
|
155
160
|
}
|
@@ -157,7 +162,7 @@ class AXAudioWaveComponent {
|
|
157
162
|
handleDrag() {
|
158
163
|
this.audio.on('drag', (relativeX) => {
|
159
164
|
this.ngZone.run(() => {
|
160
|
-
this.onStatusChanged.emit({ component: this, data: { relativeX }, status: 'drag', isUserInteraction: false });
|
165
|
+
this.onStatusChanged.emit({ component: this, data: { relativeX: relativeX }, status: 'drag', isUserInteraction: false });
|
161
166
|
});
|
162
167
|
});
|
163
168
|
}
|
@@ -178,7 +183,7 @@ class AXAudioWaveComponent {
|
|
178
183
|
handleZoom() {
|
179
184
|
this.audio.on('zoom', (minPxPerSec) => {
|
180
185
|
this.ngZone.run(() => {
|
181
|
-
this.onStatusChanged.emit({ component: this, data: { minPxPerSec }, status: 'zoom', isUserInteraction: false });
|
186
|
+
this.onStatusChanged.emit({ component: this, data: { minPxPerSec: minPxPerSec }, status: 'zoom', isUserInteraction: false });
|
182
187
|
});
|
183
188
|
});
|
184
189
|
}
|
@@ -191,11 +196,11 @@ class AXAudioWaveComponent {
|
|
191
196
|
});
|
192
197
|
}
|
193
198
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXAudioWaveComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
194
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
199
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.2", type: AXAudioWaveComponent, selector: "ax-audio-wave", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onStatusChanged: "onStatusChanged" }, viewQueries: [{ propertyName: "div", first: true, predicate: ["d"], descendants: true }], ngImport: i0, template: "@if(this.audioIsReady()){\n<div class=\"ax-audio-wave\" #d></div>\n} @else {\n<div class=\"ax-audio-skeleton\"></div>\n}", styles: ["ax-audio-wave{display:block;width:100%;flex:1;--ax-audio-skeleton-bg: rgba(var(--ax-color-primary-200))}ax-audio-wave .ax-audio-skeleton{position:relative;display:block;overflow:hidden;background-color:var(--ax-audio-skeleton-bg);height:1.125rem;border-radius:999rem}ax-audio-wave .ax-audio-skeleton:before{position:absolute;inset-inline-start:-13rem;top:0;display:block;height:100%;width:14rem;content:\"\";background:linear-gradient(to right,transparent 0%,rgba(var(--ax-color-black),20%) 50%,transparent 100%);animation:load 1s cubic-bezier(.4,0,.2,1) infinite}@keyframes load{0%{inset-inline-start:-13rem}to{inset-inline-start:100%}}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
195
200
|
}
|
196
201
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXAudioWaveComponent, decorators: [{
|
197
202
|
type: Component,
|
198
|
-
args: [{ selector: 'ax-audio-wave', encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-audio-wave\" #d></div
|
203
|
+
args: [{ selector: 'ax-audio-wave', encapsulation: ViewEncapsulation.None, template: "@if(this.audioIsReady()){\n<div class=\"ax-audio-wave\" #d></div>\n} @else {\n<div class=\"ax-audio-skeleton\"></div>\n}", styles: ["ax-audio-wave{display:block;width:100%;flex:1;--ax-audio-skeleton-bg: rgba(var(--ax-color-primary-200))}ax-audio-wave .ax-audio-skeleton{position:relative;display:block;overflow:hidden;background-color:var(--ax-audio-skeleton-bg);height:1.125rem;border-radius:999rem}ax-audio-wave .ax-audio-skeleton:before{position:absolute;inset-inline-start:-13rem;top:0;display:block;height:100%;width:14rem;content:\"\";background:linear-gradient(to right,transparent 0%,rgba(var(--ax-color-black),20%) 50%,transparent 100%);animation:load 1s cubic-bezier(.4,0,.2,1) infinite}@keyframes load{0%{inset-inline-start:-13rem}to{inset-inline-start:100%}}\n"] }]
|
199
204
|
}], ctorParameters: () => [], propDecorators: { div: [{
|
200
205
|
type: ViewChild,
|
201
206
|
args: ['d']
|
@@ -203,14 +208,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
203
208
|
|
204
209
|
class AXAudioWaveModule {
|
205
210
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXAudioWaveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
206
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.2", ngImport: i0, type: AXAudioWaveModule, declarations: [AXAudioWaveComponent], imports: [CommonModule, AXButtonModule, AXDecoratorModule], exports: [AXAudioWaveComponent] }); }
|
207
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXAudioWaveModule, imports: [CommonModule, AXButtonModule, AXDecoratorModule] }); }
|
211
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.2", ngImport: i0, type: AXAudioWaveModule, declarations: [AXAudioWaveComponent], imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXSkeletonModule], exports: [AXAudioWaveComponent] }); }
|
212
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXAudioWaveModule, imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXSkeletonModule] }); }
|
208
213
|
}
|
209
214
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXAudioWaveModule, decorators: [{
|
210
215
|
type: NgModule,
|
211
216
|
args: [{
|
212
217
|
declarations: [AXAudioWaveComponent],
|
213
|
-
imports: [CommonModule, AXButtonModule, AXDecoratorModule],
|
218
|
+
imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXSkeletonModule],
|
214
219
|
exports: [AXAudioWaveComponent],
|
215
220
|
}]
|
216
221
|
}] });
|