@acorex/components 19.11.0-next.1 → 19.11.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dropdown-button/lib/dropdown-button.component.d.ts +1 -0
- package/fesm2022/acorex-components-action-sheet.mjs +11 -11
- package/fesm2022/acorex-components-alert.mjs +8 -8
- package/fesm2022/acorex-components-audio-wave.mjs +8 -8
- package/fesm2022/acorex-components-avatar.mjs +11 -11
- package/fesm2022/acorex-components-badge.mjs +8 -8
- package/fesm2022/acorex-components-bottom-navigation.mjs +11 -11
- package/fesm2022/acorex-components-breadcrumbs.mjs +11 -11
- package/fesm2022/acorex-components-button-group.mjs +11 -11
- package/fesm2022/acorex-components-button.mjs +15 -15
- package/fesm2022/acorex-components-calendar.mjs +15 -15
- package/fesm2022/acorex-components-check-box.mjs +11 -11
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-chips.mjs +8 -8
- package/fesm2022/acorex-components-circular-progress.mjs +8 -8
- package/fesm2022/acorex-components-collapse.mjs +12 -12
- package/fesm2022/acorex-components-color-box.mjs +9 -9
- package/fesm2022/acorex-components-color-palette.mjs +26 -26
- package/fesm2022/acorex-components-comment.mjs +29 -29
- package/fesm2022/acorex-components-common.mjs +89 -89
- package/fesm2022/acorex-components-conversation.mjs +52 -52
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-cron-job.mjs +47 -47
- package/fesm2022/acorex-components-data-pager.mjs +32 -32
- package/fesm2022/acorex-components-data-table.mjs +41 -41
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +9 -9
- package/fesm2022/acorex-components-datetime-input.mjs +9 -9
- package/fesm2022/acorex-components-datetime-picker.mjs +9 -9
- package/fesm2022/acorex-components-decorators.mjs +26 -26
- package/fesm2022/acorex-components-dialog.mjs +12 -12
- package/fesm2022/acorex-components-drawer.mjs +14 -14
- package/fesm2022/acorex-components-dropdown-button.mjs +16 -10
- package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown.mjs +14 -14
- package/fesm2022/acorex-components-file-explorer.mjs +27 -27
- package/fesm2022/acorex-components-file-explorer.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +17 -17
- package/fesm2022/acorex-components-grid-layout-builder.mjs +92 -156
- package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-image-editor.mjs +23 -23
- package/fesm2022/acorex-components-image.mjs +8 -8
- package/fesm2022/acorex-components-json-viewer.mjs +8 -8
- package/fesm2022/acorex-components-kbd.mjs +11 -11
- package/fesm2022/acorex-components-label.mjs +8 -8
- package/fesm2022/acorex-components-list.mjs +9 -9
- package/fesm2022/acorex-components-loading-dialog.mjs +11 -11
- package/fesm2022/acorex-components-loading.mjs +17 -17
- package/fesm2022/acorex-components-map.mjs +13739 -39
- package/fesm2022/acorex-components-map.mjs.map +1 -1
- package/fesm2022/acorex-components-media-viewer.mjs +53 -39
- package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +17 -17
- package/fesm2022/acorex-components-navbar.mjs +8 -8
- package/fesm2022/acorex-components-notification.mjs +11 -11
- package/fesm2022/acorex-components-number-box.mjs +9 -9
- package/fesm2022/acorex-components-otp.mjs +9 -9
- package/fesm2022/acorex-components-page.mjs +11 -11
- package/fesm2022/acorex-components-paint.mjs +20 -20
- package/fesm2022/acorex-components-password-box.mjs +12 -12
- package/fesm2022/acorex-components-pdf-reader.mjs +8 -8
- package/fesm2022/acorex-components-phone-box.mjs +9 -9
- package/fesm2022/acorex-components-picker.mjs +14 -14
- package/fesm2022/acorex-components-popover.mjs +8 -8
- package/fesm2022/acorex-components-popup.mjs +11 -11
- package/fesm2022/acorex-components-progress-bar.mjs +8 -8
- package/fesm2022/acorex-components-qrcode.mjs +8 -8
- package/fesm2022/acorex-components-query-builder.mjs +8 -8
- package/fesm2022/acorex-components-radio.mjs +9 -9
- package/fesm2022/acorex-components-rail-navigation.mjs +14 -14
- package/fesm2022/acorex-components-range-slider.mjs +8 -8
- package/fesm2022/acorex-components-rate-picker.mjs +8 -8
- package/fesm2022/acorex-components-rest-api-generator.mjs +23 -23
- package/fesm2022/acorex-components-result.mjs +8 -8
- package/fesm2022/acorex-components-routing-progress.mjs +8 -8
- package/fesm2022/acorex-components-scheduler.mjs +14 -14
- package/fesm2022/acorex-components-scss.mjs +4 -4
- package/fesm2022/acorex-components-search-box.mjs +10 -10
- package/fesm2022/acorex-components-select-box.mjs +9 -9
- package/fesm2022/acorex-components-selection-list.mjs +9 -9
- package/fesm2022/acorex-components-side-menu.mjs +15 -15
- package/fesm2022/acorex-components-skeleton.mjs +8 -8
- package/fesm2022/acorex-components-slider.mjs +9 -9
- package/fesm2022/acorex-components-sliding-item.mjs +14 -14
- package/fesm2022/acorex-components-step-wizard.mjs +14 -14
- package/fesm2022/acorex-components-switch.mjs +11 -11
- package/fesm2022/acorex-components-tabs.mjs +14 -14
- package/fesm2022/acorex-components-tag.mjs +8 -8
- package/fesm2022/acorex-components-text-area.mjs +9 -9
- package/fesm2022/acorex-components-text-box.mjs +14 -14
- package/fesm2022/acorex-components-text-box.mjs.map +1 -1
- package/fesm2022/acorex-components-time-line.mjs +12 -12
- package/fesm2022/acorex-components-toast.mjs +11 -11
- package/fesm2022/acorex-components-toolbar.mjs +8 -8
- package/fesm2022/acorex-components-tooltip.mjs +11 -11
- package/fesm2022/acorex-components-tree-view.mjs +31 -27
- package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
- package/fesm2022/acorex-components-uploader.mjs +32 -27
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/fesm2022/acorex-components-video-player.mjs +8 -8
- package/fesm2022/acorex-components-wysiwyg.mjs +32 -32
- package/grid-layout-builder/lib/grid-layout-container.component.d.ts +12 -56
- package/grid-layout-builder/lib/grid-layout-widget.component.d.ts +19 -47
- package/map/index.d.ts +2 -0
- package/map/lib/map.component.d.ts +23 -4
- package/map/lib/map.service.d.ts +27 -1
- package/map/lib/map.utility.d.ts +2 -0
- package/map/lib/map.world-map.d.ts +28 -0
- package/package.json +1 -1
- package/tree-view/lib/tree-view-item.component.d.ts +3 -2
- package/tree-view/lib/tree-view.component.d.ts +6 -7
@@ -2,9 +2,9 @@ import { MXValueComponent, MXColorComponent, AXValuableComponent } from '@acorex
|
|
2
2
|
import { AXLabelComponent } from '@acorex/components/label';
|
3
3
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
4
4
|
import * as i0 from '@angular/core';
|
5
|
-
import { forwardRef,
|
5
|
+
import { forwardRef, HostBinding, HostListener, Input, ContentChildren, ChangeDetectionStrategy, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
6
6
|
import * as i1 from '@angular/forms';
|
7
|
-
import {
|
7
|
+
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
8
8
|
import { classes } from 'polytype';
|
9
9
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
10
10
|
import { CommonModule } from '@angular/common';
|
@@ -106,17 +106,17 @@ class AXCheckBoxComponent extends classes((MXValueComponent), MXColorComponent)
|
|
106
106
|
this.commitValue(!this.value, true);
|
107
107
|
}
|
108
108
|
}
|
109
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
110
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.
|
109
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXCheckBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
110
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: AXCheckBoxComponent, isStandalone: true, selector: "ax-check-box", inputs: { disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", color: "color", value: "value", name: "name", id: "id", checked: "checked", indeterminate: "indeterminate" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged" }, host: { listeners: { "click": "_handleClick($event)" }, properties: { "class": "this.__hostClass" } }, providers: [
|
111
111
|
{ provide: AXValuableComponent, useExisting: AXCheckBoxComponent },
|
112
112
|
{
|
113
113
|
provide: NG_VALUE_ACCESSOR,
|
114
114
|
useExisting: forwardRef(() => AXCheckBoxComponent),
|
115
115
|
multi: true,
|
116
116
|
},
|
117
|
-
], queries: [{ propertyName: "_labels", predicate: AXLabelComponent }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-checkbox-label\" [class.ax-state-readonly]=\"readonly\" [class.ax-state-disabled]=\"disabled\">\n <div class=\"ax-checkbox-start-side\">\n <input\n [id]=\"id\"\n class=\"ax-check-box\"\n type=\"checkbox\"\n [indeterminate]=\"_stateIndeterminate\"\n [ngModel]=\"value\"\n (ngModelChange)=\"_handleModelChange($event)\"\n [checked]=\"value\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [tabindex]=\"tabIndex\"\n (focus)=\"emitOnFocusEvent($event)\"\n (blur)=\"emitOnBlurEvent($event)\"\n #cb\n />\n <div class=\"ax-checkbox-background\" (click)=\"changeValue()\">\n @if (cb.indeterminate) {\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n <rect x=\"3\" y=\"7\" width=\"10\" height=\"2\" />\n </svg>\n }\n @if (cb.checked) {\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n <path\n d=\"M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z\"\n />\n </svg>\n }\n </div>\n </div>\n <div class=\"ax-checkbox-end-side\">\n <ng-content select=\"ax-label\"></ng-content>\n <ng-content select=\"ax-form-hint\"></ng-content>\n <span class=\"ax-error-container\"></span>\n </div>\n</div>\n<ng-content select=\"ax-validation-rule\"></ng-content>\n", styles: ["ax-check-box.ax-primary{--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-primary-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-primary-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-primary-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-primary-surface)}ax-check-box.ax-secondary{--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-secondary-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-secondary-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-secondary-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-secondary-surface)}ax-check-box.ax-success{--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-success-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-success-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-success-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-success-surface)}ax-check-box.ax-warning{--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-warning-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-warning-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-warning-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-warning-surface)}ax-check-box.ax-danger{--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-danger-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-danger-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-danger-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-danger-surface)}ax-check-box.ax-default{--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-primary-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-primary-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-primary-surface)}.ax-checkbox-label{display:flex;width:fit-content;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:flex-start;font-size:var(--ax-comp-checkbox-font-size, .875rem);line-height:var(--ax-comp-checkbox-line-height, 1.25rem)}.ax-checkbox-label.ax-state-readonly{opacity:var(--ax-comp-checkbox-readonly-opacity, .75)}.ax-checkbox-label.ax-state-disabled{cursor:not-allowed;opacity:var(--ax-comp-checkbox-disabled-opacity, .5)}.ax-checkbox-label.ax-state-disabled .ax-check-box:disabled{opacity:1}.ax-checkbox-label .ax-checkbox-start-side{display:flex;position:relative;align-items:center;height:1.25rem}.ax-checkbox-label .ax-checkbox-start-side .ax-check-box{margin:0;height:1rem;min-width:1rem;cursor:pointer;-webkit-appearance:none;appearance:none;outline-offset:2px;vertical-align:middle;outline:2px solid transparent;border-width:var(--ax-comp-checkbox-border-width, 1px);border-color:rgba(var(--ax-sys-color-border-surface));border-radius:var(--ax-comp-checkbox-border-radius, .25rem);transition-duration:var(--ax-sys-transition-duration);background-color:rgba(var(--ax-comp-checkbox-bg-color, var(--ax-sys-color-border-surface)));transition-timing-function:var(--ax-sys-transition-timing-function)}.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:checked,.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:indeterminate{background-size:contain;background-repeat:no-repeat;border-color:rgba(var(--ax-comp-checkbox-checked-border-color))!important;background-color:rgba(var(--ax-comp-checkbox-checked-bg-color))!important}.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:focus-visible,.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:focus{box-shadow:0 0 0 2px rgba(var(--ax-sys-color-surface)),0 0 0 4px rgba(var(--ax-comp-checkbox-checked-box-shadow-outline-color))}.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:disabled{cursor:not-allowed;opacity:var(--ax-comp-checkbox-disabled-opacity, .5)}.ax-checkbox-label .ax-checkbox-start-side .ax-checkbox-background{position:absolute}.ax-checkbox-label .ax-checkbox-start-side .ax-checkbox-background svg{fill:rgba(var(--ax-comp-checkbox-checked-bg-svg-fill))}.ax-checkbox-label .ax-checkbox-end-side{margin-inline-start:var(--ax-comp-checkbox-end-side-margin-s, .75rem)}.ax-checkbox-label .ax-checkbox-end-side ax-label label{margin-bottom:0}.ax-checkbox-label .ax-checkbox-end-side ax-form-hint{margin-top:var(--ax-comp-checkbox-end-side-hint-margin-t, .25rem);cursor:text;-webkit-user-select:text;user-select:text}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
117
|
+
], queries: [{ propertyName: "_labels", predicate: AXLabelComponent }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-checkbox-label\" [class.ax-state-readonly]=\"readonly\" [class.ax-state-disabled]=\"disabled\">\n <div class=\"ax-checkbox-start-side\">\n <input\n [id]=\"id\"\n class=\"ax-check-box\"\n type=\"checkbox\"\n [indeterminate]=\"_stateIndeterminate\"\n [ngModel]=\"value\"\n (ngModelChange)=\"_handleModelChange($event)\"\n [checked]=\"value\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [tabindex]=\"tabIndex\"\n (focus)=\"emitOnFocusEvent($event)\"\n (blur)=\"emitOnBlurEvent($event)\"\n #cb\n />\n <div class=\"ax-checkbox-background\" (click)=\"changeValue()\">\n @if (cb.indeterminate) {\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n <rect x=\"3\" y=\"7\" width=\"10\" height=\"2\" />\n </svg>\n }\n @if (cb.checked) {\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n <path\n d=\"M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z\"\n />\n </svg>\n }\n </div>\n </div>\n <div class=\"ax-checkbox-end-side\">\n <ng-content select=\"ax-label\"></ng-content>\n <ng-content select=\"ax-form-hint\"></ng-content>\n <span class=\"ax-error-container\"></span>\n </div>\n</div>\n<ng-content select=\"ax-validation-rule\"></ng-content>\n", styles: ["ax-check-box.ax-primary{--ax-comp-checkbox-bg-color: var(--ax-sys-color-lightest-surface);--ax-comp-checkbox-border-color: var(--ax-sys-color-border-surface);--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-primary-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-primary-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-primary-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-primary-surface)}ax-check-box.ax-secondary{--ax-comp-checkbox-bg-color: var(--ax-sys-color-lightest-surface);--ax-comp-checkbox-border-color: var(--ax-sys-color-border-surface);--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-secondary-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-secondary-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-secondary-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-secondary-surface)}ax-check-box.ax-success{--ax-comp-checkbox-bg-color: var(--ax-sys-color-lightest-surface);--ax-comp-checkbox-border-color: var(--ax-sys-color-border-surface);--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-success-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-success-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-success-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-success-surface)}ax-check-box.ax-warning{--ax-comp-checkbox-bg-color: var(--ax-sys-color-lightest-surface);--ax-comp-checkbox-border-color: var(--ax-sys-color-border-surface);--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-warning-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-warning-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-warning-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-warning-surface)}ax-check-box.ax-danger{--ax-comp-checkbox-bg-color: var(--ax-sys-color-lightest-surface);--ax-comp-checkbox-border-color: var(--ax-sys-color-border-surface);--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-danger-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-danger-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-danger-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-danger-surface)}ax-check-box.ax-default{--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-primary-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-primary-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-primary-surface)}.ax-checkbox-label{display:flex;width:fit-content;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:flex-start;font-size:var(--ax-comp-checkbox-font-size, .875rem);line-height:var(--ax-comp-checkbox-line-height, 1.25rem)}.ax-checkbox-label.ax-state-readonly{opacity:var(--ax-comp-checkbox-readonly-opacity, .75)}.ax-checkbox-label.ax-state-disabled{cursor:not-allowed;opacity:var(--ax-comp-checkbox-disabled-opacity, .5)}.ax-checkbox-label.ax-state-disabled .ax-check-box:disabled{opacity:1}.ax-checkbox-label .ax-checkbox-start-side{display:flex;position:relative;align-items:center;height:1.25rem}.ax-checkbox-label .ax-checkbox-start-side .ax-check-box{margin:0;height:1rem;min-width:1rem;cursor:pointer;-webkit-appearance:none;appearance:none;outline-offset:2px;vertical-align:middle;outline:2px solid transparent;border-width:var(--ax-comp-checkbox-border-width, 1px);border-color:rgba(var(--ax-comp-checkbox-border-color, var(--ax-sys-color-border-surface)));border-radius:var(--ax-comp-checkbox-border-radius, .25rem);transition-duration:var(--ax-sys-transition-duration);background-color:rgba(var(--ax-comp-checkbox-bg-color, var(--ax-sys-color-border-surface)));transition-timing-function:var(--ax-sys-transition-timing-function)}.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:checked,.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:indeterminate{background-size:contain;background-repeat:no-repeat;border-color:rgba(var(--ax-comp-checkbox-checked-border-color))!important;background-color:rgba(var(--ax-comp-checkbox-checked-bg-color))!important}.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:focus-visible,.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:focus{box-shadow:0 0 0 2px rgba(var(--ax-sys-color-surface)),0 0 0 4px rgba(var(--ax-comp-checkbox-checked-box-shadow-outline-color))}.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:disabled{cursor:not-allowed;opacity:var(--ax-comp-checkbox-disabled-opacity, .5)}.ax-checkbox-label .ax-checkbox-start-side .ax-checkbox-background{position:absolute}.ax-checkbox-label .ax-checkbox-start-side .ax-checkbox-background svg{fill:rgba(var(--ax-comp-checkbox-checked-bg-svg-fill))}.ax-checkbox-label .ax-checkbox-end-side{margin-inline-start:var(--ax-comp-checkbox-end-side-margin-s, .75rem)}.ax-checkbox-label .ax-checkbox-end-side ax-label label{margin-bottom:0}.ax-checkbox-label .ax-checkbox-end-side ax-form-hint{margin-top:var(--ax-comp-checkbox-end-side-hint-margin-t, .25rem);cursor:text;-webkit-user-select:text;user-select:text}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
118
118
|
}
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXCheckBoxComponent, decorators: [{
|
120
120
|
type: Component,
|
121
121
|
args: [{ selector: 'ax-check-box', inputs: ['disabled', 'tabIndex', 'readonly', 'color', 'value', 'name', 'id', 'checked'], outputs: ['onBlur', 'onFocus', 'valueChange', 'onValueChanged'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
122
122
|
{ provide: AXValuableComponent, useExisting: AXCheckBoxComponent },
|
@@ -125,7 +125,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImpor
|
|
125
125
|
useExisting: forwardRef(() => AXCheckBoxComponent),
|
126
126
|
multi: true,
|
127
127
|
},
|
128
|
-
], imports: [FormsModule], template: "<div class=\"ax-checkbox-label\" [class.ax-state-readonly]=\"readonly\" [class.ax-state-disabled]=\"disabled\">\n <div class=\"ax-checkbox-start-side\">\n <input\n [id]=\"id\"\n class=\"ax-check-box\"\n type=\"checkbox\"\n [indeterminate]=\"_stateIndeterminate\"\n [ngModel]=\"value\"\n (ngModelChange)=\"_handleModelChange($event)\"\n [checked]=\"value\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [tabindex]=\"tabIndex\"\n (focus)=\"emitOnFocusEvent($event)\"\n (blur)=\"emitOnBlurEvent($event)\"\n #cb\n />\n <div class=\"ax-checkbox-background\" (click)=\"changeValue()\">\n @if (cb.indeterminate) {\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n <rect x=\"3\" y=\"7\" width=\"10\" height=\"2\" />\n </svg>\n }\n @if (cb.checked) {\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n <path\n d=\"M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z\"\n />\n </svg>\n }\n </div>\n </div>\n <div class=\"ax-checkbox-end-side\">\n <ng-content select=\"ax-label\"></ng-content>\n <ng-content select=\"ax-form-hint\"></ng-content>\n <span class=\"ax-error-container\"></span>\n </div>\n</div>\n<ng-content select=\"ax-validation-rule\"></ng-content>\n", styles: ["ax-check-box.ax-primary{--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-primary-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-primary-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-primary-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-primary-surface)}ax-check-box.ax-secondary{--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-secondary-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-secondary-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-secondary-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-secondary-surface)}ax-check-box.ax-success{--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-success-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-success-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-success-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-success-surface)}ax-check-box.ax-warning{--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-warning-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-warning-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-warning-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-warning-surface)}ax-check-box.ax-danger{--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-danger-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-danger-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-danger-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-danger-surface)}ax-check-box.ax-default{--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-primary-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-primary-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-primary-surface)}.ax-checkbox-label{display:flex;width:fit-content;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:flex-start;font-size:var(--ax-comp-checkbox-font-size, .875rem);line-height:var(--ax-comp-checkbox-line-height, 1.25rem)}.ax-checkbox-label.ax-state-readonly{opacity:var(--ax-comp-checkbox-readonly-opacity, .75)}.ax-checkbox-label.ax-state-disabled{cursor:not-allowed;opacity:var(--ax-comp-checkbox-disabled-opacity, .5)}.ax-checkbox-label.ax-state-disabled .ax-check-box:disabled{opacity:1}.ax-checkbox-label .ax-checkbox-start-side{display:flex;position:relative;align-items:center;height:1.25rem}.ax-checkbox-label .ax-checkbox-start-side .ax-check-box{margin:0;height:1rem;min-width:1rem;cursor:pointer;-webkit-appearance:none;appearance:none;outline-offset:2px;vertical-align:middle;outline:2px solid transparent;border-width:var(--ax-comp-checkbox-border-width, 1px);border-color:rgba(var(--ax-sys-color-border-surface));border-radius:var(--ax-comp-checkbox-border-radius, .25rem);transition-duration:var(--ax-sys-transition-duration);background-color:rgba(var(--ax-comp-checkbox-bg-color, var(--ax-sys-color-border-surface)));transition-timing-function:var(--ax-sys-transition-timing-function)}.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:checked,.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:indeterminate{background-size:contain;background-repeat:no-repeat;border-color:rgba(var(--ax-comp-checkbox-checked-border-color))!important;background-color:rgba(var(--ax-comp-checkbox-checked-bg-color))!important}.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:focus-visible,.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:focus{box-shadow:0 0 0 2px rgba(var(--ax-sys-color-surface)),0 0 0 4px rgba(var(--ax-comp-checkbox-checked-box-shadow-outline-color))}.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:disabled{cursor:not-allowed;opacity:var(--ax-comp-checkbox-disabled-opacity, .5)}.ax-checkbox-label .ax-checkbox-start-side .ax-checkbox-background{position:absolute}.ax-checkbox-label .ax-checkbox-start-side .ax-checkbox-background svg{fill:rgba(var(--ax-comp-checkbox-checked-bg-svg-fill))}.ax-checkbox-label .ax-checkbox-end-side{margin-inline-start:var(--ax-comp-checkbox-end-side-margin-s, .75rem)}.ax-checkbox-label .ax-checkbox-end-side ax-label label{margin-bottom:0}.ax-checkbox-label .ax-checkbox-end-side ax-form-hint{margin-top:var(--ax-comp-checkbox-end-side-hint-margin-t, .25rem);cursor:text;-webkit-user-select:text;user-select:text}\n"] }]
|
128
|
+
], imports: [FormsModule], template: "<div class=\"ax-checkbox-label\" [class.ax-state-readonly]=\"readonly\" [class.ax-state-disabled]=\"disabled\">\n <div class=\"ax-checkbox-start-side\">\n <input\n [id]=\"id\"\n class=\"ax-check-box\"\n type=\"checkbox\"\n [indeterminate]=\"_stateIndeterminate\"\n [ngModel]=\"value\"\n (ngModelChange)=\"_handleModelChange($event)\"\n [checked]=\"value\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [tabindex]=\"tabIndex\"\n (focus)=\"emitOnFocusEvent($event)\"\n (blur)=\"emitOnBlurEvent($event)\"\n #cb\n />\n <div class=\"ax-checkbox-background\" (click)=\"changeValue()\">\n @if (cb.indeterminate) {\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n <rect x=\"3\" y=\"7\" width=\"10\" height=\"2\" />\n </svg>\n }\n @if (cb.checked) {\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n <path\n d=\"M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z\"\n />\n </svg>\n }\n </div>\n </div>\n <div class=\"ax-checkbox-end-side\">\n <ng-content select=\"ax-label\"></ng-content>\n <ng-content select=\"ax-form-hint\"></ng-content>\n <span class=\"ax-error-container\"></span>\n </div>\n</div>\n<ng-content select=\"ax-validation-rule\"></ng-content>\n", styles: ["ax-check-box.ax-primary{--ax-comp-checkbox-bg-color: var(--ax-sys-color-lightest-surface);--ax-comp-checkbox-border-color: var(--ax-sys-color-border-surface);--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-primary-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-primary-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-primary-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-primary-surface)}ax-check-box.ax-secondary{--ax-comp-checkbox-bg-color: var(--ax-sys-color-lightest-surface);--ax-comp-checkbox-border-color: var(--ax-sys-color-border-surface);--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-secondary-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-secondary-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-secondary-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-secondary-surface)}ax-check-box.ax-success{--ax-comp-checkbox-bg-color: var(--ax-sys-color-lightest-surface);--ax-comp-checkbox-border-color: var(--ax-sys-color-border-surface);--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-success-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-success-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-success-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-success-surface)}ax-check-box.ax-warning{--ax-comp-checkbox-bg-color: var(--ax-sys-color-lightest-surface);--ax-comp-checkbox-border-color: var(--ax-sys-color-border-surface);--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-warning-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-warning-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-warning-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-warning-surface)}ax-check-box.ax-danger{--ax-comp-checkbox-bg-color: var(--ax-sys-color-lightest-surface);--ax-comp-checkbox-border-color: var(--ax-sys-color-border-surface);--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-danger-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-danger-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-danger-surface);--ax-comp-checkbox-checked-box-shadow-outline-color: var(--ax-sys-color-danger-surface)}ax-check-box.ax-default{--ax-comp-checkbox-checked-bg-color: var(--ax-sys-color-primary-surface);--ax-comp-checkbox-checked-bg-svg-fill: var(--ax-sys-color-on-primary-surface);--ax-comp-checkbox-checked-border-color: var(--ax-sys-color-primary-surface)}.ax-checkbox-label{display:flex;width:fit-content;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:flex-start;font-size:var(--ax-comp-checkbox-font-size, .875rem);line-height:var(--ax-comp-checkbox-line-height, 1.25rem)}.ax-checkbox-label.ax-state-readonly{opacity:var(--ax-comp-checkbox-readonly-opacity, .75)}.ax-checkbox-label.ax-state-disabled{cursor:not-allowed;opacity:var(--ax-comp-checkbox-disabled-opacity, .5)}.ax-checkbox-label.ax-state-disabled .ax-check-box:disabled{opacity:1}.ax-checkbox-label .ax-checkbox-start-side{display:flex;position:relative;align-items:center;height:1.25rem}.ax-checkbox-label .ax-checkbox-start-side .ax-check-box{margin:0;height:1rem;min-width:1rem;cursor:pointer;-webkit-appearance:none;appearance:none;outline-offset:2px;vertical-align:middle;outline:2px solid transparent;border-width:var(--ax-comp-checkbox-border-width, 1px);border-color:rgba(var(--ax-comp-checkbox-border-color, var(--ax-sys-color-border-surface)));border-radius:var(--ax-comp-checkbox-border-radius, .25rem);transition-duration:var(--ax-sys-transition-duration);background-color:rgba(var(--ax-comp-checkbox-bg-color, var(--ax-sys-color-border-surface)));transition-timing-function:var(--ax-sys-transition-timing-function)}.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:checked,.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:indeterminate{background-size:contain;background-repeat:no-repeat;border-color:rgba(var(--ax-comp-checkbox-checked-border-color))!important;background-color:rgba(var(--ax-comp-checkbox-checked-bg-color))!important}.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:focus-visible,.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:focus{box-shadow:0 0 0 2px rgba(var(--ax-sys-color-surface)),0 0 0 4px rgba(var(--ax-comp-checkbox-checked-box-shadow-outline-color))}.ax-checkbox-label .ax-checkbox-start-side .ax-check-box:disabled{cursor:not-allowed;opacity:var(--ax-comp-checkbox-disabled-opacity, .5)}.ax-checkbox-label .ax-checkbox-start-side .ax-checkbox-background{position:absolute}.ax-checkbox-label .ax-checkbox-start-side .ax-checkbox-background svg{fill:rgba(var(--ax-comp-checkbox-checked-bg-svg-fill))}.ax-checkbox-label .ax-checkbox-end-side{margin-inline-start:var(--ax-comp-checkbox-end-side-margin-s, .75rem)}.ax-checkbox-label .ax-checkbox-end-side ax-label label{margin-bottom:0}.ax-checkbox-label .ax-checkbox-end-side ax-form-hint{margin-top:var(--ax-comp-checkbox-end-side-hint-margin-t, .25rem);cursor:text;-webkit-user-select:text;user-select:text}\n"] }]
|
129
129
|
}], propDecorators: { _labels: [{
|
130
130
|
type: ContentChildren,
|
131
131
|
args: [AXLabelComponent]
|
@@ -140,11 +140,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImpor
|
|
140
140
|
}] } });
|
141
141
|
|
142
142
|
class AXCheckBoxModule {
|
143
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
144
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.
|
145
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.
|
143
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXCheckBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
144
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: AXCheckBoxModule, imports: [CommonModule, FormsModule, AXDecoratorModule, AXCheckBoxComponent], exports: [AXCheckBoxComponent] }); }
|
145
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXCheckBoxModule, imports: [CommonModule, FormsModule, AXDecoratorModule, AXCheckBoxComponent] }); }
|
146
146
|
}
|
147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXCheckBoxModule, decorators: [{
|
148
148
|
type: NgModule,
|
149
149
|
args: [{
|
150
150
|
imports: [CommonModule, FormsModule, AXDecoratorModule, AXCheckBoxComponent],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-components-check-box.mjs","sources":["../../../../libs/components/check-box/src/lib/check-box.component.ts","../../../../libs/components/check-box/src/lib/check-box.component.html","../../../../libs/components/check-box/src/lib/check-box.module.ts","../../../../libs/components/check-box/src/acorex-components-check-box.ts"],"sourcesContent":["import { AXValuableComponent, MXColorComponent, MXValueComponent } from '@acorex/components/common';\n\nimport { AXLabelComponent } from '@acorex/components/label';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, Component, ContentChildren, HostBinding, HostListener, Input, QueryList, ViewEncapsulation, forwardRef } from '@angular/core';\nimport { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { classes } from 'polytype';\n\n/**\n * A checkbox component that allows users to select or deselect an option.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-check-box',\n templateUrl: './check-box.component.html',\n styleUrls: ['./check-box.component.scss'],\n inputs: ['disabled', 'tabIndex', 'readonly', 'color', 'value', 'name', 'id', 'checked'],\n outputs: ['onBlur', 'onFocus', 'valueChange', 'onValueChanged'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n { provide: AXValuableComponent, useExisting: AXCheckBoxComponent },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXCheckBoxComponent),\n multi: true,\n },\n ],\n imports: [FormsModule],\n})\nexport class AXCheckBoxComponent extends classes(MXValueComponent<boolean>, MXColorComponent) {\n /**\n * @ignore\n */\n @ContentChildren(AXLabelComponent)\n private _labels: QueryList<AXLabelComponent>;\n\n /**\n * Sets the checkbox to an indeterminate state.\n *\n * @defaultValue false\n */\n @Input()\n public indeterminate = false;\n\n /**\n * @ignore\n */\n protected _stateIndeterminate = false;\n\n /**\n * @ignore\n */\n protected override internalGetValue(value: unknown): boolean | null {\n if (!this.indeterminate && value == null) {\n return false;\n }\n if (this.indeterminate && value == null) {\n return null;\n }\n return coerceBooleanProperty(value);\n }\n\n /**\n * Sets the checkbox state based on the provided value.\n *\n * @param value - `boolean` or `null`. Determines if the checkbox is checked, unchecked, or indeterminate.\n */\n override internalSetValue(value: boolean | null) {\n if (this.indeterminate && value == null) {\n this._stateIndeterminate = true;\n return null;\n } else if (!this.indeterminate && value == null) {\n this._stateIndeterminate = false;\n return false;\n } else {\n this._stateIndeterminate = false;\n return value == true ? true : false;\n }\n }\n\n /**\n * @ignore\n */\n protected override ngOnInit(): void {\n super.ngOnInit();\n //\n this.registerValidation();\n }\n\n /**\n * @ignore\n */\n\n ngAfterViewInit() {\n this._labels?.forEach((c) => {\n //TODO: remove listener\n c.getHostElement().addEventListener('click', () => {\n this.changeValue();\n });\n });\n }\n\n /**\n * @ignore\n */\n @HostListener('click', ['$event'])\n private _handleClick(e: UIEvent) {\n e.stopPropagation();\n if (this.readonly || this.disabled) {\n e.preventDefault();\n return false;\n }\n return true;\n }\n\n /**\n * @ignore\n */\n protected _handleModelChange(value: boolean | null) {\n this.commitValue(value, true);\n }\n\n /**\n * @ignore\n */\n @HostBinding('class')\n private get __hostClass(): string {\n return `ax-${this.color ? this.color : 'primary'}`;\n }\n\n protected changeValue() {\n if (!this.readonly && !this.disabled) {\n this.commitValue(!this.value, true);\n }\n }\n}\n","<div class=\"ax-checkbox-label\" [class.ax-state-readonly]=\"readonly\" [class.ax-state-disabled]=\"disabled\">\n <div class=\"ax-checkbox-start-side\">\n <input\n [id]=\"id\"\n class=\"ax-check-box\"\n type=\"checkbox\"\n [indeterminate]=\"_stateIndeterminate\"\n [ngModel]=\"value\"\n (ngModelChange)=\"_handleModelChange($event)\"\n [checked]=\"value\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [tabindex]=\"tabIndex\"\n (focus)=\"emitOnFocusEvent($event)\"\n (blur)=\"emitOnBlurEvent($event)\"\n #cb\n />\n <div class=\"ax-checkbox-background\" (click)=\"changeValue()\">\n @if (cb.indeterminate) {\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n <rect x=\"3\" y=\"7\" width=\"10\" height=\"2\" />\n </svg>\n }\n @if (cb.checked) {\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n <path\n d=\"M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z\"\n />\n </svg>\n }\n </div>\n </div>\n <div class=\"ax-checkbox-end-side\">\n <ng-content select=\"ax-label\"></ng-content>\n <ng-content select=\"ax-form-hint\"></ng-content>\n <span class=\"ax-error-container\"></span>\n </div>\n</div>\n<ng-content select=\"ax-validation-rule\"></ng-content>\n","import { AXDecoratorModule } from '@acorex/components/decorators';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXCheckBoxComponent } from './check-box.component';\n@NgModule({\n imports: [CommonModule, FormsModule, AXDecoratorModule, AXCheckBoxComponent],\n exports: [AXCheckBoxComponent],\n providers: [],\n})\nexport class AXCheckBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAQA;;;;AAIG;AAmBG,MAAO,mBAAoB,SAAQ,OAAO,EAAC,gBAAyB,GAAE,gBAAgB,CAAC,CAAA;AAlB7F,IAAA,WAAA,GAAA;;AAyBE;;;;AAIG;QAEI,IAAa,CAAA,aAAA,GAAG,KAAK;AAE5B;;AAEG;QACO,IAAmB,CAAA,mBAAA,GAAG,KAAK;AAwFtC;AAtFC;;AAEG;AACgB,IAAA,gBAAgB,CAAC,KAAc,EAAA;QAChD,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,KAAK,IAAI,IAAI,EAAE;AACxC,YAAA,OAAO,KAAK;;QAEd,IAAI,IAAI,CAAC,aAAa,IAAI,KAAK,IAAI,IAAI,EAAE;AACvC,YAAA,OAAO,IAAI;;AAEb,QAAA,OAAO,qBAAqB,CAAC,KAAK,CAAC;;AAGrC;;;;AAIG;AACM,IAAA,gBAAgB,CAAC,KAAqB,EAAA;QAC7C,IAAI,IAAI,CAAC,aAAa,IAAI,KAAK,IAAI,IAAI,EAAE;AACvC,YAAA,I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../../../libs/components/check-box/src/lib/check-box.component.ts","../../../../libs/components/check-box/src/lib/check-box.component.html","../../../../libs/components/check-box/src/lib/check-box.module.ts","../../../../libs/components/check-box/src/acorex-components-check-box.ts"],"sourcesContent":["import { AXValuableComponent, MXColorComponent, MXValueComponent } from '@acorex/components/common';\n\nimport { AXLabelComponent } from '@acorex/components/label';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, Component, ContentChildren, HostBinding, HostListener, Input, QueryList, ViewEncapsulation, forwardRef } from '@angular/core';\nimport { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { classes } from 'polytype';\n\n/**\n * A checkbox component that allows users to select or deselect an option.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-check-box',\n templateUrl: './check-box.component.html',\n styleUrls: ['./check-box.component.scss'],\n inputs: ['disabled', 'tabIndex', 'readonly', 'color', 'value', 'name', 'id', 'checked'],\n outputs: ['onBlur', 'onFocus', 'valueChange', 'onValueChanged'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n { provide: AXValuableComponent, useExisting: AXCheckBoxComponent },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXCheckBoxComponent),\n multi: true,\n },\n ],\n imports: [FormsModule],\n})\nexport class AXCheckBoxComponent extends classes(MXValueComponent<boolean>, MXColorComponent) {\n /**\n * @ignore\n */\n @ContentChildren(AXLabelComponent)\n private _labels: QueryList<AXLabelComponent>;\n\n /**\n * Sets the checkbox to an indeterminate state.\n *\n * @defaultValue false\n */\n @Input()\n public indeterminate = false;\n\n /**\n * @ignore\n */\n protected _stateIndeterminate = false;\n\n /**\n * @ignore\n */\n protected override internalGetValue(value: unknown): boolean | null {\n if (!this.indeterminate && value == null) {\n return false;\n }\n if (this.indeterminate && value == null) {\n return null;\n }\n return coerceBooleanProperty(value);\n }\n\n /**\n * Sets the checkbox state based on the provided value.\n *\n * @param value - `boolean` or `null`. Determines if the checkbox is checked, unchecked, or indeterminate.\n */\n override internalSetValue(value: boolean | null) {\n if (this.indeterminate && value == null) {\n this._stateIndeterminate = true;\n return null;\n } else if (!this.indeterminate && value == null) {\n this._stateIndeterminate = false;\n return false;\n } else {\n this._stateIndeterminate = false;\n return value == true ? true : false;\n }\n }\n\n /**\n * @ignore\n */\n protected override ngOnInit(): void {\n super.ngOnInit();\n //\n this.registerValidation();\n }\n\n /**\n * @ignore\n */\n\n ngAfterViewInit() {\n this._labels?.forEach((c) => {\n //TODO: remove listener\n c.getHostElement().addEventListener('click', () => {\n this.changeValue();\n });\n });\n }\n\n /**\n * @ignore\n */\n @HostListener('click', ['$event'])\n private _handleClick(e: UIEvent) {\n e.stopPropagation();\n if (this.readonly || this.disabled) {\n e.preventDefault();\n return false;\n }\n return true;\n }\n\n /**\n * @ignore\n */\n protected _handleModelChange(value: boolean | null) {\n this.commitValue(value, true);\n }\n\n /**\n * @ignore\n */\n @HostBinding('class')\n private get __hostClass(): string {\n return `ax-${this.color ? this.color : 'primary'}`;\n }\n\n protected changeValue() {\n if (!this.readonly && !this.disabled) {\n this.commitValue(!this.value, true);\n }\n }\n}\n","<div class=\"ax-checkbox-label\" [class.ax-state-readonly]=\"readonly\" [class.ax-state-disabled]=\"disabled\">\n <div class=\"ax-checkbox-start-side\">\n <input\n [id]=\"id\"\n class=\"ax-check-box\"\n type=\"checkbox\"\n [indeterminate]=\"_stateIndeterminate\"\n [ngModel]=\"value\"\n (ngModelChange)=\"_handleModelChange($event)\"\n [checked]=\"value\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [tabindex]=\"tabIndex\"\n (focus)=\"emitOnFocusEvent($event)\"\n (blur)=\"emitOnBlurEvent($event)\"\n #cb\n />\n <div class=\"ax-checkbox-background\" (click)=\"changeValue()\">\n @if (cb.indeterminate) {\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n <rect x=\"3\" y=\"7\" width=\"10\" height=\"2\" />\n </svg>\n }\n @if (cb.checked) {\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n <path\n d=\"M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z\"\n />\n </svg>\n }\n </div>\n </div>\n <div class=\"ax-checkbox-end-side\">\n <ng-content select=\"ax-label\"></ng-content>\n <ng-content select=\"ax-form-hint\"></ng-content>\n <span class=\"ax-error-container\"></span>\n </div>\n</div>\n<ng-content select=\"ax-validation-rule\"></ng-content>\n","import { AXDecoratorModule } from '@acorex/components/decorators';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXCheckBoxComponent } from './check-box.component';\n@NgModule({\n imports: [CommonModule, FormsModule, AXDecoratorModule, AXCheckBoxComponent],\n exports: [AXCheckBoxComponent],\n providers: [],\n})\nexport class AXCheckBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAQA;;;;AAIG;AAmBG,MAAO,mBAAoB,SAAQ,OAAO,EAAC,gBAAyB,GAAE,gBAAgB,CAAC,CAAA;AAlB7F,IAAA,WAAA,GAAA;;AAyBE;;;;AAIG;QAEI,IAAa,CAAA,aAAA,GAAG,KAAK;AAE5B;;AAEG;QACO,IAAmB,CAAA,mBAAA,GAAG,KAAK;AAwFtC;AAtFC;;AAEG;AACgB,IAAA,gBAAgB,CAAC,KAAc,EAAA;QAChD,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,KAAK,IAAI,IAAI,EAAE;AACxC,YAAA,OAAO,KAAK;;QAEd,IAAI,IAAI,CAAC,aAAa,IAAI,KAAK,IAAI,IAAI,EAAE;AACvC,YAAA,OAAO,IAAI;;AAEb,QAAA,OAAO,qBAAqB,CAAC,KAAK,CAA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AAC,mBAAmB,CAAC;AAC9B,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA;;;ACTD;;AAEG;;;;"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as i1 from '@acorex/components/common';
|
2
2
|
import { MXColorComponent, AXRippleDirective } from '@acorex/components/common';
|
3
3
|
import * as i0 from '@angular/core';
|
4
|
-
import { model,
|
4
|
+
import { model, HostBinding, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
5
5
|
import { CommonModule } from '@angular/common';
|
6
6
|
|
7
7
|
/**
|
@@ -27,10 +27,10 @@ class AXChipsComponent extends MXColorComponent {
|
|
27
27
|
get __hostClass() {
|
28
28
|
return `ax-${this.color} ax-${this.look()} ${this.size()}`;
|
29
29
|
}
|
30
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
31
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: AXChipsComponent, isStandalone: true, selector: "ax-chips", inputs: { tabIndex: { classPropertyName: "tabIndex", publicName: "tabIndex", isSignal: false, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: false, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, look: { classPropertyName: "look", publicName: "look", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { text: "textChange", look: "lookChange", size: "sizeChange" }, host: { properties: { "class": "this.__hostClass" } }, usesInheritance: true, hostDirectives: [{ directive: i1.AXRippleDirective }], ngImport: i0, template: "<ng-content select=\"ax-prefix\"></ng-content>\n@if(text()){\n<div class=\"ax-chips-text\">{{ text() }}</div>\n}\n<ng-content select=\"ax-suffix\"></ng-content>", styles: [".ax-sm ax-chips,ax-chips.ax-sm{--ax-comp-chips-gap: .375rem;--ax-comp-chips-padding-y: 0;--ax-comp-chips-padding-x: .5rem;--ax-comp-chips-font-size: .75rem;--ax-comp-chips-decorator-font-size: .75rem}.ax-md ax-chips,ax-chips{--ax-comp-chips-gap: .5rem;--ax-comp-chips-padding-y: .125rem;--ax-comp-chips-padding-x: .75rem;--ax-comp-chips-font-size: .875rem;--ax-comp-chips-decorator-font-size: .938rem}.ax-lg ax-chips,ax-chips.ax-lg{--ax-comp-chips-gap: .75rem;--ax-comp-chips-padding-y: .25rem;--ax-comp-chips-padding-x: 1rem;--ax-comp-chips-font-size: .875rem;--ax-comp-chips-decorator-font-size: .938rem}ax-chips.ax-outline.ax-default{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-on-lightest-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-chips-border-color: var(--ax-sys-color-border-lightest-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-lighter-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-border-lighter-surface)}.ax-dark ax-chips.ax-outline.ax-default{--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-on-darkest-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-on-darkest-surface);--ax-comp-chips-border-color: var(--ax-sys-color-border-darkest-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-darker-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-border-darker-surface)}ax-chips.ax-outline.ax-primary{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-primary-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-primary-surface);--ax-comp-chips-border-color: var(--ax-sys-color-primary-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-primary-dark-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-primary-dark-surface)}ax-chips.ax-outline.ax-secondary{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-secondary-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-secondary-surface);--ax-comp-chips-border-color: var(--ax-sys-color-secondary-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-secondary-dark-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-secondary-dark-surface)}ax-chips.ax-outline.ax-success{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-success-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-success-surface);--ax-comp-chips-border-color: var(--ax-sys-color-success-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-success-dark-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-success-dark-surface)}ax-chips.ax-outline.ax-warning{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-warning-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-warning-surface);--ax-comp-chips-border-color: var(--ax-sys-color-warning-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-warning-dark-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-warning-dark-surface)}ax-chips.ax-outline.ax-danger{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-danger-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-danger-surface);--ax-comp-chips-border-color: var(--ax-sys-color-danger-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-danger-dark-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-danger-dark-surface)}ax-chips.ax-solid.ax-default{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-on-lightest-surface), .3);--ax-comp-chips-bg-color: var(--ax-sys-color-lightest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-chips-border-color: var(--ax-sys-color-border-lightest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-lighter-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-lighter-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-border-lighter-surface)}.ax-dark ax-chips.ax-solid.ax-default{--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-on-darkest-surface), .3);--ax-comp-chips-bg-color: var(--ax-sys-color-darkest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-darkest-surface);--ax-comp-chips-border-color: var(--ax-sys-color-border-darkest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-darker-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-darker-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-border-darker-surface)}ax-chips.ax-solid.ax-primary{--ax-comp-chips-bg-color: var(--ax-sys-color-primary-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-primary-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-primary-dark-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-primary-dark-surface)}ax-chips.ax-solid.ax-secondary{--ax-comp-chips-bg-color: var(--ax-sys-color-secondary-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-secondary-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-secondary-dark-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-secondary-dark-surface)}ax-chips.ax-solid.ax-success{--ax-comp-chips-bg-color: var(--ax-sys-color-success-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-success-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-success-dark-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-success-dark-surface)}ax-chips.ax-solid.ax-warning{--ax-comp-chips-bg-color: var(--ax-sys-color-warning-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-warning-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-warning-dark-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-warning-dark-surface)}ax-chips.ax-solid.ax-danger{--ax-comp-chips-bg-color: var(--ax-sys-color-danger-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-danger-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-danger-dark-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-danger-dark-surface)}ax-chips.ax-twotone.ax-default{--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-on-lightest-surface), .3);--ax-comp-chips-bg-color: var(--ax-sys-color-lighter-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-lighter-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-light-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-light-surface)}.ax-dark ax-chips.ax-twotone.ax-default{--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-on-darkest-surface), .3);--ax-comp-chips-bg-color: var(--ax-sys-color-darker-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-darker-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-dark-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-dark-surface)}ax-chips.ax-twotone.ax-primary{--ax-comp-chips-bg-color: var(--ax-sys-color-primary-lightest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-primary-lightest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-primary-lighter-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-primary-lighter-surface)}ax-chips.ax-twotone.ax-secondary{--ax-comp-chips-bg-color: var(--ax-sys-color-secondary-lightest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-secondary-lightest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-secondary-lighter-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-secondary-lighter-surface)}ax-chips.ax-twotone.ax-success{--ax-comp-chips-bg-color: var(--ax-sys-color-success-lightest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-success-lightest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-success-lighter-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-success-lighter-surface)}ax-chips.ax-twotone.ax-warning{--ax-comp-chips-bg-color: var(--ax-sys-color-warning-lightest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-warning-lightest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-warning-lighter-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-warning-lighter-surface)}ax-chips.ax-twotone.ax-danger{--ax-comp-chips-bg-color: var(--ax-sys-color-danger-lightest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-danger-lightest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-danger-lighter-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-danger-lighter-surface)}ax-chips{display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;align-items:center;justify-content:center;gap:var(--ax-comp-chips-gap);font-size:var(--ax-comp-chips-font-size);color:rgba(var(--ax-comp-chips-text-color));padding-left:var(--ax-comp-chips-padding-x);padding-right:var(--ax-comp-chips-padding-x);padding-top:var(--ax-comp-chips-padding-y);padding-bottom:var(--ax-comp-chips-padding-y);line-height:var(--ax-comp-chips-line-height, 1.25rem);font-weight:var(--ax-comp-chips-font-weight, 500);border-radius:var(--ax-comp-chips-border-radius, 9999px);border-width:var(--ax-comp-chips-border-width, 0);border-color:rgba(var(--ax-comp-chips-border-color));background-color:rgba(var(--ax-comp-chips-bg-color));transition-duration:var(--ax-sys-transition-duration);transition-timing-function:var(--ax-sys-transition-timing-function);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke}ax-chips:focus-visible{outline-width:var(--ax-comp-chips-focuse-outline-width, 2px);outline-color:var(--ax-comp-chips-focuse-outline-color, rgba(0, 0, 0, .5));outline-offset:var(--ax-comp-chips-focuse-outline-offset, 2px)}ax-chips:hover{color:rgba(var(--ax-comp-chips-hover-text-color, var(--ax-comp-chips-text-color)));background-color:rgba(var(--ax-comp-chips-hover-bg-color, var(--ax-comp-chips-bg-color)));border-color:rgba(var(--ax-comp-chips-hover-border-color, var(--ax-comp-chips-border-color)))}ax-chips .ax-chips-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}ax-chips ax-prefix,ax-chips ax-suffix{display:flex;align-items:center;font-size:var(--ax-comp-chips-decorator-font-size);line-height:var(--ax-comp-chips-decorator-line-height, 1.75rem)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
30
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXChipsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
31
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: AXChipsComponent, isStandalone: true, selector: "ax-chips", inputs: { tabIndex: { classPropertyName: "tabIndex", publicName: "tabIndex", isSignal: false, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: false, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, look: { classPropertyName: "look", publicName: "look", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { text: "textChange", look: "lookChange", size: "sizeChange" }, host: { properties: { "class": "this.__hostClass" } }, usesInheritance: true, hostDirectives: [{ directive: i1.AXRippleDirective }], ngImport: i0, template: "<ng-content select=\"ax-prefix\"></ng-content>\n@if(text()){\n<div class=\"ax-chips-text\">{{ text() }}</div>\n}\n<ng-content select=\"ax-suffix\"></ng-content>", styles: [".ax-sm ax-chips,ax-chips.ax-sm{--ax-comp-chips-gap: .375rem;--ax-comp-chips-padding-y: 0;--ax-comp-chips-padding-x: .5rem;--ax-comp-chips-font-size: .75rem;--ax-comp-chips-decorator-font-size: .75rem}.ax-md ax-chips,ax-chips{--ax-comp-chips-gap: .5rem;--ax-comp-chips-padding-y: .125rem;--ax-comp-chips-padding-x: .75rem;--ax-comp-chips-font-size: .875rem;--ax-comp-chips-decorator-font-size: .938rem}.ax-lg ax-chips,ax-chips.ax-lg{--ax-comp-chips-gap: .75rem;--ax-comp-chips-padding-y: .25rem;--ax-comp-chips-padding-x: 1rem;--ax-comp-chips-font-size: .875rem;--ax-comp-chips-decorator-font-size: .938rem}ax-chips.ax-outline.ax-default{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-on-lightest-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-chips-border-color: var(--ax-sys-color-border-lightest-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-lighter-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-border-lighter-surface)}.ax-dark ax-chips.ax-outline.ax-default{--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-on-darkest-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-on-darkest-surface);--ax-comp-chips-border-color: var(--ax-sys-color-border-darkest-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-darker-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-border-darker-surface)}ax-chips.ax-outline.ax-primary{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-primary-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-primary-surface);--ax-comp-chips-border-color: var(--ax-sys-color-primary-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-primary-dark-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-primary-dark-surface)}ax-chips.ax-outline.ax-secondary{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-secondary-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-secondary-surface);--ax-comp-chips-border-color: var(--ax-sys-color-secondary-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-secondary-dark-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-secondary-dark-surface)}ax-chips.ax-outline.ax-success{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-success-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-success-surface);--ax-comp-chips-border-color: var(--ax-sys-color-success-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-success-dark-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-success-dark-surface)}ax-chips.ax-outline.ax-warning{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-warning-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-warning-surface);--ax-comp-chips-border-color: var(--ax-sys-color-warning-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-warning-dark-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-warning-dark-surface)}ax-chips.ax-outline.ax-danger{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-danger-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-danger-surface);--ax-comp-chips-border-color: var(--ax-sys-color-danger-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-danger-dark-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-danger-dark-surface)}ax-chips.ax-solid.ax-default{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-on-lightest-surface), .3);--ax-comp-chips-bg-color: var(--ax-sys-color-lightest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-chips-border-color: var(--ax-sys-color-border-lightest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-lighter-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-lighter-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-border-lighter-surface)}.ax-dark ax-chips.ax-solid.ax-default{--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-on-darkest-surface), .3);--ax-comp-chips-bg-color: var(--ax-sys-color-darkest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-darkest-surface);--ax-comp-chips-border-color: var(--ax-sys-color-border-darkest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-darker-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-darker-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-border-darker-surface)}ax-chips.ax-solid.ax-primary{--ax-comp-chips-bg-color: var(--ax-sys-color-primary-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-primary-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-primary-dark-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-primary-dark-surface)}ax-chips.ax-solid.ax-secondary{--ax-comp-chips-bg-color: var(--ax-sys-color-secondary-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-secondary-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-secondary-dark-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-secondary-dark-surface)}ax-chips.ax-solid.ax-success{--ax-comp-chips-bg-color: var(--ax-sys-color-success-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-success-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-success-dark-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-success-dark-surface)}ax-chips.ax-solid.ax-warning{--ax-comp-chips-bg-color: var(--ax-sys-color-warning-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-warning-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-warning-dark-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-warning-dark-surface)}ax-chips.ax-solid.ax-danger{--ax-comp-chips-bg-color: var(--ax-sys-color-danger-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-danger-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-danger-dark-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-danger-dark-surface)}ax-chips.ax-twotone.ax-default{--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-on-lightest-surface), .3);--ax-comp-chips-bg-color: var(--ax-sys-color-lighter-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-lighter-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-light-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-light-surface)}.ax-dark ax-chips.ax-twotone.ax-default{--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-on-darkest-surface), .3);--ax-comp-chips-bg-color: var(--ax-sys-color-darker-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-darker-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-dark-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-dark-surface)}ax-chips.ax-twotone.ax-primary{--ax-comp-chips-bg-color: var(--ax-sys-color-primary-lightest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-primary-lightest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-primary-lighter-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-primary-lighter-surface)}ax-chips.ax-twotone.ax-secondary{--ax-comp-chips-bg-color: var(--ax-sys-color-secondary-lightest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-secondary-lightest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-secondary-lighter-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-secondary-lighter-surface)}ax-chips.ax-twotone.ax-success{--ax-comp-chips-bg-color: var(--ax-sys-color-success-lightest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-success-lightest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-success-lighter-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-success-lighter-surface)}ax-chips.ax-twotone.ax-warning{--ax-comp-chips-bg-color: var(--ax-sys-color-warning-lightest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-warning-lightest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-warning-lighter-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-warning-lighter-surface)}ax-chips.ax-twotone.ax-danger{--ax-comp-chips-bg-color: var(--ax-sys-color-danger-lightest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-danger-lightest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-danger-lighter-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-danger-lighter-surface)}ax-chips{display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;align-items:center;justify-content:center;gap:var(--ax-comp-chips-gap);font-size:var(--ax-comp-chips-font-size);color:rgba(var(--ax-comp-chips-text-color));padding-left:var(--ax-comp-chips-padding-x);padding-right:var(--ax-comp-chips-padding-x);padding-top:var(--ax-comp-chips-padding-y);padding-bottom:var(--ax-comp-chips-padding-y);line-height:var(--ax-comp-chips-line-height, 1.25rem);font-weight:var(--ax-comp-chips-font-weight, 500);border-radius:var(--ax-comp-chips-border-radius, 9999px);border-width:var(--ax-comp-chips-border-width, 0);border-color:rgba(var(--ax-comp-chips-border-color));background-color:rgba(var(--ax-comp-chips-bg-color));transition-duration:var(--ax-sys-transition-duration);transition-timing-function:var(--ax-sys-transition-timing-function);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke}ax-chips:focus-visible{outline-width:var(--ax-comp-chips-focuse-outline-width, 2px);outline-color:var(--ax-comp-chips-focuse-outline-color, rgba(0, 0, 0, .5));outline-offset:var(--ax-comp-chips-focuse-outline-offset, 2px)}ax-chips:hover{color:rgba(var(--ax-comp-chips-hover-text-color, var(--ax-comp-chips-text-color)));background-color:rgba(var(--ax-comp-chips-hover-bg-color, var(--ax-comp-chips-bg-color)));border-color:rgba(var(--ax-comp-chips-hover-border-color, var(--ax-comp-chips-border-color)))}ax-chips .ax-chips-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}ax-chips ax-prefix,ax-chips ax-suffix{display:flex;align-items:center;font-size:var(--ax-comp-chips-decorator-font-size);line-height:var(--ax-comp-chips-decorator-line-height, 1.75rem)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
32
32
|
}
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXChipsComponent, decorators: [{
|
34
34
|
type: Component,
|
35
35
|
args: [{ selector: 'ax-chips', inputs: ['tabIndex', 'color'], hostDirectives: [AXRippleDirective], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-content select=\"ax-prefix\"></ng-content>\n@if(text()){\n<div class=\"ax-chips-text\">{{ text() }}</div>\n}\n<ng-content select=\"ax-suffix\"></ng-content>", styles: [".ax-sm ax-chips,ax-chips.ax-sm{--ax-comp-chips-gap: .375rem;--ax-comp-chips-padding-y: 0;--ax-comp-chips-padding-x: .5rem;--ax-comp-chips-font-size: .75rem;--ax-comp-chips-decorator-font-size: .75rem}.ax-md ax-chips,ax-chips{--ax-comp-chips-gap: .5rem;--ax-comp-chips-padding-y: .125rem;--ax-comp-chips-padding-x: .75rem;--ax-comp-chips-font-size: .875rem;--ax-comp-chips-decorator-font-size: .938rem}.ax-lg ax-chips,ax-chips.ax-lg{--ax-comp-chips-gap: .75rem;--ax-comp-chips-padding-y: .25rem;--ax-comp-chips-padding-x: 1rem;--ax-comp-chips-font-size: .875rem;--ax-comp-chips-decorator-font-size: .938rem}ax-chips.ax-outline.ax-default{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-on-lightest-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-chips-border-color: var(--ax-sys-color-border-lightest-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-lighter-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-border-lighter-surface)}.ax-dark ax-chips.ax-outline.ax-default{--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-on-darkest-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-on-darkest-surface);--ax-comp-chips-border-color: var(--ax-sys-color-border-darkest-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-darker-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-border-darker-surface)}ax-chips.ax-outline.ax-primary{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-primary-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-primary-surface);--ax-comp-chips-border-color: var(--ax-sys-color-primary-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-primary-dark-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-primary-dark-surface)}ax-chips.ax-outline.ax-secondary{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-secondary-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-secondary-surface);--ax-comp-chips-border-color: var(--ax-sys-color-secondary-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-secondary-dark-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-secondary-dark-surface)}ax-chips.ax-outline.ax-success{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-success-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-success-surface);--ax-comp-chips-border-color: var(--ax-sys-color-success-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-success-dark-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-success-dark-surface)}ax-chips.ax-outline.ax-warning{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-warning-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-warning-surface);--ax-comp-chips-border-color: var(--ax-sys-color-warning-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-warning-dark-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-warning-dark-surface)}ax-chips.ax-outline.ax-danger{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-danger-surface), .3);--ax-comp-chips-text-color: var(--ax-sys-color-danger-surface);--ax-comp-chips-border-color: var(--ax-sys-color-danger-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-danger-dark-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-danger-dark-surface)}ax-chips.ax-solid.ax-default{--ax-comp-chips-border-width: 1px;--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-on-lightest-surface), .3);--ax-comp-chips-bg-color: var(--ax-sys-color-lightest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-chips-border-color: var(--ax-sys-color-border-lightest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-lighter-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-lighter-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-border-lighter-surface)}.ax-dark ax-chips.ax-solid.ax-default{--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-on-darkest-surface), .3);--ax-comp-chips-bg-color: var(--ax-sys-color-darkest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-darkest-surface);--ax-comp-chips-border-color: var(--ax-sys-color-border-darkest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-darker-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-darker-surface);--ax-comp-chips-hover-border-color: var(--ax-sys-color-border-darker-surface)}ax-chips.ax-solid.ax-primary{--ax-comp-chips-bg-color: var(--ax-sys-color-primary-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-primary-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-primary-dark-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-primary-dark-surface)}ax-chips.ax-solid.ax-secondary{--ax-comp-chips-bg-color: var(--ax-sys-color-secondary-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-secondary-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-secondary-dark-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-secondary-dark-surface)}ax-chips.ax-solid.ax-success{--ax-comp-chips-bg-color: var(--ax-sys-color-success-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-success-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-success-dark-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-success-dark-surface)}ax-chips.ax-solid.ax-warning{--ax-comp-chips-bg-color: var(--ax-sys-color-warning-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-warning-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-warning-dark-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-warning-dark-surface)}ax-chips.ax-solid.ax-danger{--ax-comp-chips-bg-color: var(--ax-sys-color-danger-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-danger-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-danger-dark-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-danger-dark-surface)}ax-chips.ax-twotone.ax-default{--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-on-lightest-surface), .3);--ax-comp-chips-bg-color: var(--ax-sys-color-lighter-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-lighter-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-light-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-light-surface)}.ax-dark ax-chips.ax-twotone.ax-default{--ax-comp-ripple-bg-color: rgba(var(--ax-sys-color-on-darkest-surface), .3);--ax-comp-chips-bg-color: var(--ax-sys-color-darker-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-darker-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-dark-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-dark-surface)}ax-chips.ax-twotone.ax-primary{--ax-comp-chips-bg-color: var(--ax-sys-color-primary-lightest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-primary-lightest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-primary-lighter-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-primary-lighter-surface)}ax-chips.ax-twotone.ax-secondary{--ax-comp-chips-bg-color: var(--ax-sys-color-secondary-lightest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-secondary-lightest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-secondary-lighter-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-secondary-lighter-surface)}ax-chips.ax-twotone.ax-success{--ax-comp-chips-bg-color: var(--ax-sys-color-success-lightest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-success-lightest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-success-lighter-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-success-lighter-surface)}ax-chips.ax-twotone.ax-warning{--ax-comp-chips-bg-color: var(--ax-sys-color-warning-lightest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-warning-lightest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-warning-lighter-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-warning-lighter-surface)}ax-chips.ax-twotone.ax-danger{--ax-comp-chips-bg-color: var(--ax-sys-color-danger-lightest-surface);--ax-comp-chips-text-color: var(--ax-sys-color-on-danger-lightest-surface);--ax-comp-chips-hover-bg-color: var(--ax-sys-color-danger-lighter-surface);--ax-comp-chips-hover-text-color: var(--ax-sys-color-on-danger-lighter-surface)}ax-chips{display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;align-items:center;justify-content:center;gap:var(--ax-comp-chips-gap);font-size:var(--ax-comp-chips-font-size);color:rgba(var(--ax-comp-chips-text-color));padding-left:var(--ax-comp-chips-padding-x);padding-right:var(--ax-comp-chips-padding-x);padding-top:var(--ax-comp-chips-padding-y);padding-bottom:var(--ax-comp-chips-padding-y);line-height:var(--ax-comp-chips-line-height, 1.25rem);font-weight:var(--ax-comp-chips-font-weight, 500);border-radius:var(--ax-comp-chips-border-radius, 9999px);border-width:var(--ax-comp-chips-border-width, 0);border-color:rgba(var(--ax-comp-chips-border-color));background-color:rgba(var(--ax-comp-chips-bg-color));transition-duration:var(--ax-sys-transition-duration);transition-timing-function:var(--ax-sys-transition-timing-function);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke}ax-chips:focus-visible{outline-width:var(--ax-comp-chips-focuse-outline-width, 2px);outline-color:var(--ax-comp-chips-focuse-outline-color, rgba(0, 0, 0, .5));outline-offset:var(--ax-comp-chips-focuse-outline-offset, 2px)}ax-chips:hover{color:rgba(var(--ax-comp-chips-hover-text-color, var(--ax-comp-chips-text-color)));background-color:rgba(var(--ax-comp-chips-hover-bg-color, var(--ax-comp-chips-bg-color)));border-color:rgba(var(--ax-comp-chips-hover-border-color, var(--ax-comp-chips-border-color)))}ax-chips .ax-chips-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}ax-chips ax-prefix,ax-chips ax-suffix{display:flex;align-items:center;font-size:var(--ax-comp-chips-decorator-font-size);line-height:var(--ax-comp-chips-decorator-line-height, 1.75rem)}\n"] }]
|
36
36
|
}], propDecorators: { __hostClass: [{
|
@@ -39,11 +39,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImpor
|
|
39
39
|
}] } });
|
40
40
|
|
41
41
|
class AXChipsModule {
|
42
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
43
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.
|
44
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.
|
42
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXChipsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
43
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: AXChipsModule, imports: [CommonModule, AXChipsComponent], exports: [AXChipsComponent] }); }
|
44
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXChipsModule, imports: [CommonModule] }); }
|
45
45
|
}
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXChipsModule, decorators: [{
|
47
47
|
type: NgModule,
|
48
48
|
args: [{
|
49
49
|
imports: [CommonModule, AXChipsComponent],
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { MXColorComponent } from '@acorex/components/common';
|
2
2
|
import * as i0 from '@angular/core';
|
3
|
-
import { viewChild, input, model, afterNextRender, effect,
|
3
|
+
import { viewChild, input, model, afterNextRender, effect, HostBinding, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
4
4
|
|
5
5
|
/**
|
6
6
|
* The Button is a component which detects user interaction and triggers a corresponding event
|
@@ -83,10 +83,10 @@ class AXCircularProgressComponent extends MXColorComponent {
|
|
83
83
|
this.progress.set(65);
|
84
84
|
}
|
85
85
|
}
|
86
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
87
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1.
|
86
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXCircularProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
87
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1.8", type: AXCircularProgressComponent, isStandalone: true, selector: "ax-circular-progress", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: false, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, progress: { classPropertyName: "progress", publicName: "progress", isSignal: true, isRequired: false, transformFunction: null }, stroke: { classPropertyName: "stroke", publicName: "stroke", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { progress: "progressChange", stroke: "strokeChange", size: "sizeChange" }, host: { properties: { "class": "this.__hostClass" } }, viewQueries: [{ propertyName: "circle", first: true, predicate: ["circle"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\"></ng-content>\n<div class=\"ax-progress-circular ax-progress-{{mode()}}\" #circle>\n <span class=\"ax-progress-content\">\n <ng-content></ng-content>\n </span>\n</div>\n\n<ng-content select=\"ax-suffix\"></ng-content>", styles: ["ax-circular-progress{--ax-comp-progress-circular-color: rgba(var(--ax-sys-color-primary-surface));--ax-comp-progress-circular-line-color: rgba(var(--ax-sys-color-primary-surface), .25)}ax-circular-progress.ax-primary .ax-progress-circular{--ax-comp-progress-circular-color: rgba(var(--ax-sys-color-primary-surface));--ax-comp-progress-circular-line-color: rgba(var(--ax-sys-color-primary-surface), .25)}ax-circular-progress.ax-secondary .ax-progress-circular{--ax-comp-progress-circular-color: rgba(var(--ax-sys-color-secondary-surface));--ax-comp-progress-circular-line-color: rgba(var(--ax-sys-color-secondary-surface), .25)}ax-circular-progress.ax-success .ax-progress-circular{--ax-comp-progress-circular-color: rgba(var(--ax-sys-color-success-surface));--ax-comp-progress-circular-line-color: rgba(var(--ax-sys-color-success-surface), .25)}ax-circular-progress.ax-warning .ax-progress-circular{--ax-comp-progress-circular-color: rgba(var(--ax-sys-color-warning-surface));--ax-comp-progress-circular-line-color: rgba(var(--ax-sys-color-warning-surface), .25)}ax-circular-progress.ax-danger .ax-progress-circular{--ax-comp-progress-circular-color: rgba(var(--ax-sys-color-danger-surface));--ax-comp-progress-circular-line-color: rgba(var(--ax-sys-color-danger-surface), .25)}.ax-dark ax-circular-progress{--ax-comp-progress-circular-inside-bg-color: var(--ax-sys-color-darkest-surface)}ax-circular-progress .ax-progress-circular{width:var(--ax-comp-circular-progress-circle-size, 48px);height:var(--ax-comp-circular-progress-circle-size, 48px);border-radius:9999px;background:conic-gradient(var(--ax-comp-progress-circular-color) 0deg,var(--ax-comp-progress-circular-line-color) 0deg);position:relative;display:flex;align-items:center;justify-content:center}ax-circular-progress .ax-progress-circular:before{content:\"\";position:absolute;border-radius:9999px;width:var(--ax-comp-circular-progress-stroke-size, 44px);height:var(--ax-comp-circular-progress-stroke-size, 44px);background-color:rgba(var(--ax-comp-progress-circular-inside-bg-color, var(--ax-sys-color-lightest-surface)))}ax-circular-progress .ax-progress-circular .ax-progress-content{position:relative;display:flex;align-items:center;justify-content:center}ax-circular-progress .ax-progress-circular.ax-progress-indeterminate{animation-name:rotate;animation-iteration-count:infinite;animation-timing-function:linear;animation-duration:var(--ax-comp-circular-progress-animation-duration, 1.5s)}@keyframes rotate{0%{transform:rotate(-360deg)}to{transform:rotate(360deg)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
88
88
|
}
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXCircularProgressComponent, decorators: [{
|
90
90
|
type: Component,
|
91
91
|
args: [{ selector: 'ax-circular-progress', inputs: ['color'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-content select=\"ax-prefix\"></ng-content>\n<div class=\"ax-progress-circular ax-progress-{{mode()}}\" #circle>\n <span class=\"ax-progress-content\">\n <ng-content></ng-content>\n </span>\n</div>\n\n<ng-content select=\"ax-suffix\"></ng-content>", styles: ["ax-circular-progress{--ax-comp-progress-circular-color: rgba(var(--ax-sys-color-primary-surface));--ax-comp-progress-circular-line-color: rgba(var(--ax-sys-color-primary-surface), .25)}ax-circular-progress.ax-primary .ax-progress-circular{--ax-comp-progress-circular-color: rgba(var(--ax-sys-color-primary-surface));--ax-comp-progress-circular-line-color: rgba(var(--ax-sys-color-primary-surface), .25)}ax-circular-progress.ax-secondary .ax-progress-circular{--ax-comp-progress-circular-color: rgba(var(--ax-sys-color-secondary-surface));--ax-comp-progress-circular-line-color: rgba(var(--ax-sys-color-secondary-surface), .25)}ax-circular-progress.ax-success .ax-progress-circular{--ax-comp-progress-circular-color: rgba(var(--ax-sys-color-success-surface));--ax-comp-progress-circular-line-color: rgba(var(--ax-sys-color-success-surface), .25)}ax-circular-progress.ax-warning .ax-progress-circular{--ax-comp-progress-circular-color: rgba(var(--ax-sys-color-warning-surface));--ax-comp-progress-circular-line-color: rgba(var(--ax-sys-color-warning-surface), .25)}ax-circular-progress.ax-danger .ax-progress-circular{--ax-comp-progress-circular-color: rgba(var(--ax-sys-color-danger-surface));--ax-comp-progress-circular-line-color: rgba(var(--ax-sys-color-danger-surface), .25)}.ax-dark ax-circular-progress{--ax-comp-progress-circular-inside-bg-color: var(--ax-sys-color-darkest-surface)}ax-circular-progress .ax-progress-circular{width:var(--ax-comp-circular-progress-circle-size, 48px);height:var(--ax-comp-circular-progress-circle-size, 48px);border-radius:9999px;background:conic-gradient(var(--ax-comp-progress-circular-color) 0deg,var(--ax-comp-progress-circular-line-color) 0deg);position:relative;display:flex;align-items:center;justify-content:center}ax-circular-progress .ax-progress-circular:before{content:\"\";position:absolute;border-radius:9999px;width:var(--ax-comp-circular-progress-stroke-size, 44px);height:var(--ax-comp-circular-progress-stroke-size, 44px);background-color:rgba(var(--ax-comp-progress-circular-inside-bg-color, var(--ax-sys-color-lightest-surface)))}ax-circular-progress .ax-progress-circular .ax-progress-content{position:relative;display:flex;align-items:center;justify-content:center}ax-circular-progress .ax-progress-circular.ax-progress-indeterminate{animation-name:rotate;animation-iteration-count:infinite;animation-timing-function:linear;animation-duration:var(--ax-comp-circular-progress-animation-duration, 1.5s)}@keyframes rotate{0%{transform:rotate(-360deg)}to{transform:rotate(360deg)}}\n"] }]
|
92
92
|
}], ctorParameters: () => [], propDecorators: { __hostClass: [{
|
@@ -95,11 +95,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImpor
|
|
95
95
|
}] } });
|
96
96
|
|
97
97
|
class AXCircularProgressModule {
|
98
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
99
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.
|
100
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.
|
98
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXCircularProgressModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
99
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: AXCircularProgressModule, imports: [AXCircularProgressComponent], exports: [AXCircularProgressComponent] }); }
|
100
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXCircularProgressModule }); }
|
101
101
|
}
|
102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXCircularProgressModule, decorators: [{
|
103
103
|
type: NgModule,
|
104
104
|
args: [{
|
105
105
|
imports: [AXCircularProgressComponent],
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import * as i1 from '@acorex/components/common';
|
2
2
|
import { AXClickEvent, MXInteractiveComponent, MXLookComponent, MXBaseComponent, MXLookableComponent } from '@acorex/components/common';
|
3
3
|
import * as i0 from '@angular/core';
|
4
|
-
import { EventEmitter,
|
4
|
+
import { EventEmitter, HostBinding, Input, Output, Optional, Host, ViewEncapsulation, ChangeDetectionStrategy, Component, ContentChildren, NgModule } from '@angular/core';
|
5
5
|
import { classes } from 'polytype';
|
6
6
|
import { AXLoadingComponent, AXLoadingModule } from '@acorex/components/loading';
|
7
|
-
import { trigger, state, style, AUTO_STYLE,
|
7
|
+
import { trigger, state, transition, style, AUTO_STYLE, animate } from '@angular/animations';
|
8
8
|
import { NgTemplateOutlet, NgClass, CommonModule } from '@angular/common';
|
9
9
|
|
10
10
|
class AXCollapseClickEvent extends AXClickEvent {
|
@@ -152,8 +152,8 @@ class AXCollapseComponent extends classes(MXInteractiveComponent, MXLookComponen
|
|
152
152
|
get __hostClass() {
|
153
153
|
return [`${this.disabled ? 'ax-state-disabled' : ''}`, `ax-${this.parent?.look ? this.parent.look : this.look}`];
|
154
154
|
}
|
155
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
156
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.
|
155
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXCollapseComponent, deps: [{ token: i1.MXLookableComponent, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
156
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: AXCollapseComponent, isStandalone: true, selector: "ax-collapse", inputs: { disabled: "disabled", look: "look", isCollapsed: "isCollapsed", showHeader: "showHeader", caption: "caption", icon: "icon", isLoading: "isLoading", headerTemplate: "headerTemplate" }, outputs: { onClick: "onClick", isCollapsedChange: "isCollapsedChange" }, host: { properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: "@if (showHeader) {\n <div class=\"ax-collapse-header\" [class.ax-state-collapsed]=\"isCollapsed\" (click)=\"handleHeaderClick($event)\">\n @if (headerTemplate) {\n <div class=\"ax-collapse-custom-header-container\">\n <ng-container [ngTemplateOutlet]=\"headerTemplate\" [ngTemplateOutletContext]=\"{ $implicit: { caption, isCollapsed } }\"></ng-container>\n </div>\n } @else {\n <div class=\"ax-collapse-header-container\">\n <div class=\"ax-collapse-header-start\">\n <span class=\"ax-collapse-header-icon\" [class]=\"icon\"> </span>\n <span>\n {{ caption }}\n </span>\n </div>\n <div class=\"ax-collapse-header-end\">\n @if (isLoading) {\n <ax-loading></ax-loading>\n } @else {\n <span class=\"ax-icon ax-icon-chevron-left ax-collapse-arrow\" [ngClass]=\"{ '-rotation-90': isCollapsed, 'rotation-90': !isCollapsed }\"></span>\n }\n </div>\n </div>\n }\n </div>\n}\n<div class=\"ax-collapse-body\" [@collapse]=\"isCollapsed\">\n <div class=\"ax-collapse-body-content\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: ["ax-collapse-group ax-collapse.ax-solid{--ax-comp-collapse-bg-color: var(--ax-sys-color-lightest-surface);--ax-comp-collapse-border-color: var(--ax-sys-color-border-lightest-surface);--ax-comp-collapse-border-width: 1px}.ax-dark ax-collapse-group ax-collapse.ax-solid{--ax-comp-collapse-bg-color: var(--ax-sys-color-darkest-surface);--ax-comp-collapse-border-color: var(--ax-sys-color-border-darkest-surface)}ax-collapse-group ax-collapse.ax-fill{--ax-comp-collapse-bg-color: var(--ax-sys-color-surface)}ax-collapse-group ax-collapse.ax-flat{--ax-comp-collapse-border-color: var(--ax-sys-color-border-lightest-surface);--ax-comp-collapse-border-width: 1px}ax-collapse-group ax-collapse.ax-outline{--ax-comp-collapse-border-color: var(--ax-sys-color-border-surface);--ax-comp-collapse-border-width: 1px}ax-collapse-group ax-collapse{--ax-comp-collapse-margin: .5rem}ax-collapse,ax-collapse-group{display:block;width:100%;overflow:hidden;font-size:1rem;line-height:1.5rem}ax-collapse-group ax-collapse{margin-bottom:var(--ax-comp-collapse-margin)}ax-collapse-group ax-collapse.ax-solid{border-radius:var(--ax-sys-border-radius);border-width:var(--ax-comp-collapse-border-width);border-color:rgba(var(--ax-comp-collapse-border-color))}ax-collapse-group ax-collapse.ax-solid .ax-collapse-header{background-color:rgba(var(--ax-comp-collapse-bg-color))}ax-collapse-group ax-collapse.ax-fill .ax-collapse-header{border-radius:var(--ax-sys-border-radius);background-color:rgba(var(--ax-comp-collapse-bg-color))}ax-collapse-group ax-collapse.ax-outline{border-radius:var(--ax-sys-border-radius);border-width:var(--ax-comp-collapse-border-width);border-color:rgba(var(--ax-comp-collapse-border-color))}ax-collapse-group ax-collapse.ax-outline .ax-collapse-header{background-color:transparent}ax-collapse-group ax-collapse.ax-flat{border-bottom-width:var(--ax-comp-collapse-border-width);border-color:rgba(var(--ax-comp-collapse-border-color))}ax-collapse-group ax-collapse.ax-flat .ax-collapse-header{background-color:transparent}ax-collapse.ax-state-disabled{cursor:not-allowed;opacity:.5}ax-collapse .ax-collapse-header,ax-collapse .ax-collapse-body{font-size:.875rem;line-height:1.25rem;color:rgba(var(--ax-sys-color-on-surface-high))!important}ax-collapse .ax-collapse-header{cursor:pointer;-webkit-user-select:none;user-select:none;padding:.75rem}ax-collapse .ax-collapse-header .ax-collapse-header-container{display:flex;justify-content:space-between}ax-collapse .ax-collapse-header .ax-collapse-header-container .ax-collapse-header-start{display:flex;align-items:center}ax-collapse .ax-collapse-header .ax-collapse-header-container .ax-collapse-header-start:not(:empty) .ax-collapse-header-icon{padding-inline-end:.5rem}ax-collapse .ax-collapse-header .ax-collapse-header-container .ax-collapse-header-end{display:flex;height:1.5rem;width:1.5rem;align-items:center;justify-content:center}ax-collapse .ax-collapse-header .ax-collapse-header-container .ax-collapse-header-end .ax-collapse-arrow{transition-property:all;transition-duration:var(--ax-sys-transition-duration);transition-timing-function:var(--ax-sys-transition-timing-function);display:block}ax-collapse .ax-collapse-header .ax-collapse-header-container .ax-collapse-header-end .ax-collapse-arrow.-rotation-90{transform:rotate(-90deg)}ax-collapse .ax-collapse-header .ax-collapse-header-container .ax-collapse-header-end .ax-collapse-arrow.rotation-90{transform:rotate(90deg)}ax-collapse .ax-collapse-body .ax-collapse-body-content{padding:1rem;padding-inline-end:1rem;padding-inline-start:1.25rem}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
|
157
157
|
trigger('collapse', [
|
158
158
|
state('false', style({ height: AUTO_STYLE, visibility: AUTO_STYLE })),
|
159
159
|
state('true', style({ height: '0', visibility: 'hidden' })),
|
@@ -162,7 +162,7 @@ class AXCollapseComponent extends classes(MXInteractiveComponent, MXLookComponen
|
|
162
162
|
]),
|
163
163
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
164
164
|
}
|
165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXCollapseComponent, decorators: [{
|
166
166
|
type: Component,
|
167
167
|
args: [{ selector: 'ax-collapse', inputs: ['disabled', 'look'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, animations: [
|
168
168
|
trigger('collapse', [
|
@@ -324,15 +324,15 @@ class AXCollapseGroupComponent extends classes(MXBaseComponent, MXLookComponent)
|
|
324
324
|
get __hostClass() {
|
325
325
|
return ['ax-collapse-group', `ax-${this.look}`];
|
326
326
|
}
|
327
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
328
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.
|
327
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXCollapseGroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
328
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: AXCollapseGroupComponent, isStandalone: true, selector: "ax-collapse-group", inputs: { look: "look", accordion: "accordion", activeIndex: "activeIndex" }, outputs: { accordionChange: "accordionChange", activeIndexChange: "activeIndexChange" }, host: { properties: { "class": "this.__hostClass" } }, providers: [
|
329
329
|
{
|
330
330
|
provide: MXLookableComponent,
|
331
331
|
useExisting: AXCollapseGroupComponent,
|
332
332
|
},
|
333
333
|
], queries: [{ propertyName: "_items", predicate: AXCollapseComponent }], usesInheritance: true, ngImport: i0, template: `<ng-content select="ax-collapse"></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
334
334
|
}
|
335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXCollapseGroupComponent, decorators: [{
|
336
336
|
type: Component,
|
337
337
|
args: [{
|
338
338
|
selector: 'ax-collapse-group',
|
@@ -366,11 +366,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImpor
|
|
366
366
|
const COMPONENT = [AXCollapseComponent, AXCollapseGroupComponent];
|
367
367
|
const MODULES = [CommonModule, AXLoadingModule];
|
368
368
|
class AXCollapseModule {
|
369
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
370
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.
|
371
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.
|
369
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXCollapseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
370
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: AXCollapseModule, imports: [CommonModule, AXLoadingModule, AXCollapseComponent, AXCollapseGroupComponent], exports: [AXCollapseComponent, AXCollapseGroupComponent] }); }
|
371
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXCollapseModule, imports: [MODULES, AXCollapseComponent] }); }
|
372
372
|
}
|
373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXCollapseModule, decorators: [{
|
374
374
|
type: NgModule,
|
375
375
|
args: [{
|
376
376
|
imports: [...MODULES, ...COMPONENT],
|
@@ -3,9 +3,9 @@ import { MXInputBaseValueComponent, MXColorLookComponent, AXComponent, AXFocusab
|
|
3
3
|
import { MXDropdownBoxBaseComponent, AXDropdownBoxComponent, AXDropdownModule } from '@acorex/components/dropdown';
|
4
4
|
import { NgStyle, CommonModule } from '@angular/common';
|
5
5
|
import * as i0 from '@angular/core';
|
6
|
-
import { input, viewChild, forwardRef,
|
6
|
+
import { input, viewChild, forwardRef, ViewChild, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
7
7
|
import * as i1 from '@angular/forms';
|
8
|
-
import {
|
8
|
+
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
9
9
|
import { classes } from 'polytype';
|
10
10
|
|
11
11
|
/**
|
@@ -67,8 +67,8 @@ class AXColorBoxComponent extends classes(MXDropdownBoxBaseComponent, (MXInputBa
|
|
67
67
|
internalValueChanged(value) {
|
68
68
|
//this.close();
|
69
69
|
}
|
70
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
71
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.
|
70
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXColorBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
71
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: AXColorBoxComponent, isStandalone: true, selector: "ax-color-box", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: false, isRequired: false, transformFunction: null }, tabIndex: { classPropertyName: "tabIndex", publicName: "tabIndex", isSignal: false, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: false, isRequired: false, transformFunction: null }, minValue: { classPropertyName: "minValue", publicName: "minValue", isSignal: false, isRequired: false, transformFunction: null }, maxValue: { classPropertyName: "maxValue", publicName: "maxValue", isSignal: false, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: false, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: false, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: false, isRequired: false, transformFunction: null }, look: { classPropertyName: "look", publicName: "look", isSignal: false, isRequired: false, transformFunction: null }, showBadge: { classPropertyName: "showBadge", publicName: "showBadge", isSignal: true, isRequired: false, transformFunction: null }, showValue: { classPropertyName: "showValue", publicName: "showValue", isSignal: true, isRequired: false, transformFunction: null }, showClearButton: { classPropertyName: "showClearButton", publicName: "showClearButton", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", stateChange: "stateChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", readonlyChange: "readonlyChange", disabledChange: "disabledChange" }, host: { attributes: { "ngSkipHydration": "true" } }, providers: [
|
72
72
|
{ provide: AXComponent, useExisting: AXColorBoxComponent },
|
73
73
|
{ provide: AXFocusableComponent, useExisting: AXColorBoxComponent },
|
74
74
|
{ provide: AXValuableComponent, useExisting: AXColorBoxComponent },
|
@@ -80,7 +80,7 @@ class AXColorBoxComponent extends classes(MXDropdownBoxBaseComponent, (MXInputBa
|
|
80
80
|
},
|
81
81
|
], viewQueries: [{ propertyName: "palettePicker", first: true, predicate: AXColorPalettePickerComponent, descendants: true, isSignal: true }, { propertyName: "picker", first: true, predicate: AXColorPalleteComponent, descendants: true }, { propertyName: "dropdown", first: true, predicate: AXDropdownBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-dropdown-box\n [look]=\"look\"\n [disabled]=\"disabled\"\n (onOpened)=\"_handleOnOpenedEvent($event)\"\n (onClosed)=\"_handleOnClosedEvent($event)\"\n>\n <ng-container input>\n <ng-content select=\"ax-prefix\"> </ng-content>\n <div class=\"ax-content\" (click)=\"_handleInputClickEvent($event)\" [tabindex]=\"tabIndex\">\n @if (value && showBadge()) {\n <div class=\"color-badge\" [ngStyle]=\"{ 'background-color': value }\"></div>\n } @else {\n <div class=\"color-placeholder\">{{ placeholder }}</div>\n }\n @if (showValue()) {\n <div class=\"color-value\">{{ value }}</div>\n }\n </div>\n @if (showClearButton()) {\n @if (value && !disabled && !readonly) {\n <ng-content select=\"ax-clear-button\"></ng-content>\n }\n }\n @if (showIcon()) {\n <button\n type=\"button\"\n class=\"ax-editor-button\"\n [tabIndex]=\"-1\"\n [disabled]=\"disabled\"\n (click)=\"_handleArrowClickEvent($event)\"\n >\n <span class=\"ax-icon ax-icon-color-palette\"></span>\n </button>\n }\n <ng-content select=\"ax-suffix\"> </ng-content>\n <ng-content select=\"ax-validation-rule\"> </ng-content>\n </ng-container>\n <ng-container panel>\n <ax-color-palette\n [ngModel]=\"value\"\n (ngModelChange)=\"_handleModelChange($event)\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n >\n <ax-color-palette-picker></ax-color-palette-picker>\n <ax-color-palette-swatches></ax-color-palette-swatches>\n <ax-color-palette-input></ax-color-palette-input>\n </ax-color-palette>\n </ng-container>\n</ax-dropdown-box>\n", styles: ["ax-color-box{--ax-comp-editor-decorator-button-x: 0;--ax-comp-editor-decorator-padding-x: 0;display:flex;flex:1 1 0%}ax-color-box .ax-editor-container{padding-inline-start:calc(var(--ax-comp-color-box-gap, .75rem) / 2);width:var(--ax-comp-color-box-width, 100%);font-size:var(--ax-comp-color-box-font-size, var(--ax-comp-editor-font-size))}ax-color-box .ax-editor-container .ax-content{gap:var(--ax-comp-color-box-gap, .75rem);display:flex;height:100%;flex:1 1 0%;align-items:center;outline-color:transparent}ax-color-box .ax-editor-container .ax-content .color-badge{width:var(--ax-comp-color-box-badge-width, 2.5rem);height:calc(100% - var(--ax-comp-color-box-gap, .75rem));display:block;border-radius:.25rem;border-width:1px;border-color:rgba(var(--ax-sys-color-border-surface))}ax-color-box .ax-editor-container .ax-content .color-placeholder{font-size:inherit;font-weight:400;color:rgb(var(--ax-sys-color-input-text),.5)}ax-color-box .ax-editor-container .ax-content .color-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:uppercase}ax-color-box .ax-editor-container .ax-clear-button{margin:0!important}\n"], dependencies: [{ kind: "component", type: AXDropdownBoxComponent, selector: "ax-dropdown-box", inputs: ["disabled", "look"], outputs: ["disabledChange", "onBlur", "onFocus", "onClick", "onOpened", "onClosed"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: AXColorPalleteComponent, selector: "ax-color-palette", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "checked"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: AXColorPalettePickerComponent, selector: "ax-color-palette-picker" }, { kind: "component", type: AXColorPaletteSwatchesComponent, selector: "ax-color-palette-swatches, ax-color-palette-favorite", inputs: ["colors"] }, { kind: "component", type: AXColorPaletteInputComponent, selector: "ax-color-palette-input" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
82
82
|
}
|
83
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXColorBoxComponent, decorators: [{
|
84
84
|
type: Component,
|
85
85
|
args: [{ selector: 'ax-color-box', inputs: ['disabled', 'readonly', 'tabIndex', 'placeholder', 'minValue', 'maxValue', 'value', 'state', 'name', 'id', 'type', 'look'], outputs: ['valueChange', 'stateChange', 'onValueChanged', 'onBlur', 'onFocus', 'readonlyChange', 'disabledChange'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
|
86
86
|
{ provide: AXComponent, useExisting: AXColorBoxComponent },
|
@@ -112,11 +112,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImpor
|
|
112
112
|
const COMPONENT = [AXColorBoxComponent];
|
113
113
|
const MODULES = [CommonModule, FormsModule, AXColorPaletteModule, AXDropdownModule];
|
114
114
|
class AXColorBoxModule {
|
115
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
116
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.
|
117
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.
|
115
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXColorBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
116
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: AXColorBoxModule, imports: [CommonModule, FormsModule, AXColorPaletteModule, AXDropdownModule, AXColorBoxComponent], exports: [AXColorBoxComponent] }); }
|
117
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXColorBoxModule, imports: [MODULES, COMPONENT] }); }
|
118
118
|
}
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXColorBoxModule, decorators: [{
|
120
120
|
type: NgModule,
|
121
121
|
args: [{
|
122
122
|
imports: [...MODULES, ...COMPONENT],
|