@libs-ui/components-checkbox-single 0.2.5
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/README.md +3 -0
- package/checkbox-single.component.d.ts +45 -0
- package/esm2022/checkbox-single.component.mjs +87 -0
- package/esm2022/index.mjs +3 -0
- package/esm2022/interfaces/checkbox.interface.mjs +2 -0
- package/esm2022/interfaces/index.mjs +2 -0
- package/esm2022/libs-ui-components-checkbox-single.mjs +5 -0
- package/fesm2022/libs-ui-components-checkbox-single.mjs +94 -0
- package/fesm2022/libs-ui-components-checkbox-single.mjs.map +1 -0
- package/index.d.ts +2 -0
- package/interfaces/checkbox.interface.d.ts +19 -0
- package/interfaces/index.d.ts +1 -0
- package/package.json +25 -0
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IAvatarConfig } from '@libs-ui/components-avatar';
|
|
2
|
+
import { IFlagMouse, IPopover, TYPE_POPOVER_EVENT, TYPE_POPOVER_TYPE } from '@libs-ui/components-popover';
|
|
3
|
+
import { ICheckboxBullet, ICheckboxEvent, ICheckboxItemDescription } from './interfaces';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LibsUiComponentsCheckboxSingleComponent {
|
|
6
|
+
protected descriptionComputed: import("@angular/core").Signal<string>;
|
|
7
|
+
readonly key: import("@angular/core").InputSignal<string | undefined>;
|
|
8
|
+
readonly checked: import("@angular/core").ModelSignal<boolean>;
|
|
9
|
+
readonly label: import("@angular/core").InputSignal<string | undefined>;
|
|
10
|
+
readonly classLabelInclude: import("@angular/core").InputSignalWithTransform<string | undefined, string | undefined>;
|
|
11
|
+
readonly ignoreShowPopoverLabel: import("@angular/core").InputSignal<boolean | undefined>;
|
|
12
|
+
readonly typeLabelPopover: import("@angular/core").InputSignalWithTransform<TYPE_POPOVER_TYPE, TYPE_POPOVER_TYPE>;
|
|
13
|
+
readonly popover: import("@angular/core").InputSignal<IPopover | undefined>;
|
|
14
|
+
readonly linkImage: import("@angular/core").ModelSignal<string | undefined>;
|
|
15
|
+
readonly linkImageError: import("@angular/core").InputSignal<string | undefined>;
|
|
16
|
+
readonly avatarConfig: import("@angular/core").InputSignal<IAvatarConfig | undefined>;
|
|
17
|
+
readonly classImageInclude: import("@angular/core").InputSignal<string | undefined>;
|
|
18
|
+
readonly imgTypeIcon: import("@angular/core").InputSignal<boolean | undefined>;
|
|
19
|
+
readonly bullet: import("@angular/core").InputSignal<ICheckboxBullet | undefined>;
|
|
20
|
+
readonly classInclude: import("@angular/core").InputSignalWithTransform<string | undefined, string | undefined>;
|
|
21
|
+
readonly clickExactly: import("@angular/core").InputSignalWithTransform<boolean | undefined, boolean | undefined>;
|
|
22
|
+
readonly disable: import("@angular/core").InputSignal<boolean | undefined>;
|
|
23
|
+
readonly disableLabel: import("@angular/core").InputSignal<boolean | undefined>;
|
|
24
|
+
readonly ignoreCheckbox: import("@angular/core").InputSignal<boolean | undefined>;
|
|
25
|
+
readonly zIndexLabel: import("@angular/core").InputSignalWithTransform<number | undefined, number | undefined>;
|
|
26
|
+
readonly stillOtherOptions: import("@angular/core").InputSignal<boolean | undefined>;
|
|
27
|
+
readonly error: import("@angular/core").InputSignal<boolean | undefined>;
|
|
28
|
+
readonly showBorderError: import("@angular/core").InputSignal<boolean | undefined>;
|
|
29
|
+
readonly description: import("@angular/core").InputSignal<ICheckboxItemDescription | undefined>;
|
|
30
|
+
readonly iconImageClass: import("@angular/core").InputSignal<string | undefined>;
|
|
31
|
+
readonly classIconInclude: import("@angular/core").InputSignal<string | undefined>;
|
|
32
|
+
readonly modeBorder: import("@angular/core").InputSignal<boolean | undefined>;
|
|
33
|
+
readonly outChange: import("@angular/core").OutputEmitterRef<ICheckboxEvent>;
|
|
34
|
+
readonly outEventPopover: import("@angular/core").OutputEmitterRef<TYPE_POPOVER_EVENT>;
|
|
35
|
+
readonly outClickLabel: import("@angular/core").OutputEmitterRef<void>;
|
|
36
|
+
readonly outChangStageFlagMousePopover: import("@angular/core").OutputEmitterRef<IFlagMouse>;
|
|
37
|
+
protected handlerErrorImage(event: Event): Promise<void>;
|
|
38
|
+
protected handlerClickRelatively(event?: Event): Promise<void>;
|
|
39
|
+
protected handlerChange(event?: Event): Promise<void>;
|
|
40
|
+
protected handlerEventLabel(event: string): Promise<void>;
|
|
41
|
+
protected handlerEventPopover(event: TYPE_POPOVER_EVENT): Promise<void>;
|
|
42
|
+
protected handlerChangStageFlagMouse(event: IFlagMouse): Promise<void>;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiComponentsCheckboxSingleComponent, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibsUiComponentsCheckboxSingleComponent, "libs_ui-components-checkbox-single", never, { "key": { "alias": "key"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "classLabelInclude": { "alias": "classLabelInclude"; "required": false; "isSignal": true; }; "ignoreShowPopoverLabel": { "alias": "ignoreShowPopoverLabel"; "required": false; "isSignal": true; }; "typeLabelPopover": { "alias": "typeLabelPopover"; "required": false; "isSignal": true; }; "popover": { "alias": "popover"; "required": false; "isSignal": true; }; "linkImage": { "alias": "linkImage"; "required": false; "isSignal": true; }; "linkImageError": { "alias": "linkImageError"; "required": false; "isSignal": true; }; "avatarConfig": { "alias": "avatarConfig"; "required": false; "isSignal": true; }; "classImageInclude": { "alias": "classImageInclude"; "required": false; "isSignal": true; }; "imgTypeIcon": { "alias": "imgTypeIcon"; "required": false; "isSignal": true; }; "bullet": { "alias": "bullet"; "required": false; "isSignal": true; }; "classInclude": { "alias": "classInclude"; "required": false; "isSignal": true; }; "clickExactly": { "alias": "clickExactly"; "required": false; "isSignal": true; }; "disable": { "alias": "disable"; "required": false; "isSignal": true; }; "disableLabel": { "alias": "disableLabel"; "required": false; "isSignal": true; }; "ignoreCheckbox": { "alias": "ignoreCheckbox"; "required": false; "isSignal": true; }; "zIndexLabel": { "alias": "zIndexLabel"; "required": false; "isSignal": true; }; "stillOtherOptions": { "alias": "stillOtherOptions"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "showBorderError": { "alias": "showBorderError"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "iconImageClass": { "alias": "iconImageClass"; "required": false; "isSignal": true; }; "classIconInclude": { "alias": "classIconInclude"; "required": false; "isSignal": true; }; "modeBorder": { "alias": "modeBorder"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "linkImage": "linkImageChange"; "outChange": "outChange"; "outEventPopover": "outEventPopover"; "outClickLabel": "outClickLabel"; "outChangStageFlagMousePopover": "outChangStageFlagMousePopover"; }, never, never, true, never>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { NgClass } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, input, model, output } from '@angular/core';
|
|
3
|
+
import { LibsUiComponentsAvatarComponent } from '@libs-ui/components-avatar';
|
|
4
|
+
import { LibsUiComponentsPopoverComponent } from '@libs-ui/components-popover';
|
|
5
|
+
import { escapeHtml } from '@libs-ui/utils';
|
|
6
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@ngx-translate/core";
|
|
9
|
+
export class LibsUiComponentsCheckboxSingleComponent {
|
|
10
|
+
/* PROPERTY */
|
|
11
|
+
descriptionComputed = computed(() => escapeHtml(this.description()?.content || ''));
|
|
12
|
+
/* INPUT */
|
|
13
|
+
key = input();
|
|
14
|
+
checked = model(false);
|
|
15
|
+
label = input();
|
|
16
|
+
classLabelInclude = input('libs-ui-font-h5r', { transform: value => value ?? 'libs-ui-font-h5r' });
|
|
17
|
+
ignoreShowPopoverLabel = input();
|
|
18
|
+
typeLabelPopover = input('text', { transform: value => value ?? 'text' });
|
|
19
|
+
popover = input();
|
|
20
|
+
linkImage = model();
|
|
21
|
+
linkImageError = input();
|
|
22
|
+
avatarConfig = input();
|
|
23
|
+
classImageInclude = input();
|
|
24
|
+
imgTypeIcon = input();
|
|
25
|
+
bullet = input();
|
|
26
|
+
classInclude = input('', { transform: value => value ?? '' });
|
|
27
|
+
clickExactly = input(true, { transform: value => value ?? true });
|
|
28
|
+
disable = input();
|
|
29
|
+
disableLabel = input();
|
|
30
|
+
ignoreCheckbox = input();
|
|
31
|
+
zIndexLabel = input(1200, { transform: value => value ?? 1200 });
|
|
32
|
+
stillOtherOptions = input();
|
|
33
|
+
error = input();
|
|
34
|
+
showBorderError = input();
|
|
35
|
+
description = input();
|
|
36
|
+
iconImageClass = input();
|
|
37
|
+
classIconInclude = input();
|
|
38
|
+
modeBorder = input();
|
|
39
|
+
/* OUTPUT */
|
|
40
|
+
outChange = output();
|
|
41
|
+
outEventPopover = output();
|
|
42
|
+
outClickLabel = output();
|
|
43
|
+
outChangStageFlagMousePopover = output();
|
|
44
|
+
/* FUNCTIONS */
|
|
45
|
+
async handlerErrorImage(event) {
|
|
46
|
+
event.stopPropagation();
|
|
47
|
+
this.linkImage.set(this.linkImageError());
|
|
48
|
+
}
|
|
49
|
+
async handlerClickRelatively(event) {
|
|
50
|
+
if (this.clickExactly()) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
event?.stopPropagation();
|
|
54
|
+
this.handlerChange(event);
|
|
55
|
+
}
|
|
56
|
+
async handlerChange(event) {
|
|
57
|
+
event?.stopPropagation();
|
|
58
|
+
if (this.disable()) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
this.checked.update(checked => !checked);
|
|
62
|
+
this.outChange.emit({ key: this.key, checked: this.checked() });
|
|
63
|
+
}
|
|
64
|
+
async handlerEventLabel(event) {
|
|
65
|
+
if (event === 'click') {
|
|
66
|
+
this.outClickLabel.emit();
|
|
67
|
+
this.handlerChange();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
async handlerEventPopover(event) {
|
|
71
|
+
this.outEventPopover.emit(event);
|
|
72
|
+
}
|
|
73
|
+
async handlerChangStageFlagMouse(event) {
|
|
74
|
+
this.outChangStageFlagMousePopover.emit(event);
|
|
75
|
+
}
|
|
76
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LibsUiComponentsCheckboxSingleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
77
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: LibsUiComponentsCheckboxSingleComponent, isStandalone: true, selector: "libs_ui-components-checkbox-single", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, classLabelInclude: { classPropertyName: "classLabelInclude", publicName: "classLabelInclude", isSignal: true, isRequired: false, transformFunction: null }, ignoreShowPopoverLabel: { classPropertyName: "ignoreShowPopoverLabel", publicName: "ignoreShowPopoverLabel", isSignal: true, isRequired: false, transformFunction: null }, typeLabelPopover: { classPropertyName: "typeLabelPopover", publicName: "typeLabelPopover", isSignal: true, isRequired: false, transformFunction: null }, popover: { classPropertyName: "popover", publicName: "popover", isSignal: true, isRequired: false, transformFunction: null }, linkImage: { classPropertyName: "linkImage", publicName: "linkImage", isSignal: true, isRequired: false, transformFunction: null }, linkImageError: { classPropertyName: "linkImageError", publicName: "linkImageError", isSignal: true, isRequired: false, transformFunction: null }, avatarConfig: { classPropertyName: "avatarConfig", publicName: "avatarConfig", isSignal: true, isRequired: false, transformFunction: null }, classImageInclude: { classPropertyName: "classImageInclude", publicName: "classImageInclude", isSignal: true, isRequired: false, transformFunction: null }, imgTypeIcon: { classPropertyName: "imgTypeIcon", publicName: "imgTypeIcon", isSignal: true, isRequired: false, transformFunction: null }, bullet: { classPropertyName: "bullet", publicName: "bullet", isSignal: true, isRequired: false, transformFunction: null }, classInclude: { classPropertyName: "classInclude", publicName: "classInclude", isSignal: true, isRequired: false, transformFunction: null }, clickExactly: { classPropertyName: "clickExactly", publicName: "clickExactly", isSignal: true, isRequired: false, transformFunction: null }, disable: { classPropertyName: "disable", publicName: "disable", isSignal: true, isRequired: false, transformFunction: null }, disableLabel: { classPropertyName: "disableLabel", publicName: "disableLabel", isSignal: true, isRequired: false, transformFunction: null }, ignoreCheckbox: { classPropertyName: "ignoreCheckbox", publicName: "ignoreCheckbox", isSignal: true, isRequired: false, transformFunction: null }, zIndexLabel: { classPropertyName: "zIndexLabel", publicName: "zIndexLabel", isSignal: true, isRequired: false, transformFunction: null }, stillOtherOptions: { classPropertyName: "stillOtherOptions", publicName: "stillOtherOptions", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, showBorderError: { classPropertyName: "showBorderError", publicName: "showBorderError", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, iconImageClass: { classPropertyName: "iconImageClass", publicName: "iconImageClass", isSignal: true, isRequired: false, transformFunction: null }, classIconInclude: { classPropertyName: "classIconInclude", publicName: "classIconInclude", isSignal: true, isRequired: false, transformFunction: null }, modeBorder: { classPropertyName: "modeBorder", publicName: "modeBorder", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", linkImage: "linkImageChange", outChange: "outChange", outEventPopover: "outEventPopover", outClickLabel: "outClickLabel", outChangStageFlagMousePopover: "outChangStageFlagMousePopover" }, ngImport: i0, template: "<div class=\"libs-ui-checkbox {{ classInclude() || '' }}\"\n [ngClass]=\"{\n 'cursor-pointer': !clickExactly() && !disable(),\n 'p-[8px] rounded-[4px]': modeBorder(),\n 'libs-ui-border-general': modeBorder() && !checked(),\n 'libs-ui-border-primary-general': modeBorder() && checked() \n }\"\n (click)=\"handlerClickRelatively($event)\">\n @if (!ignoreCheckbox()) {\n <i class=\"{{ classIconInclude() || '' }}\"\n [ngClass]=\"{\n 'libs-ui-icon-checkbox-unselected': !checked() && !stillOtherOptions(), \n 'libs-ui-icon-checkbox-selected': checked() && !stillOtherOptions(),\n 'libs-ui-icon-checkbox-indeterminate': stillOtherOptions(),\n 'libs-ui-disable pointer-events-none': disable(),\n 'libs-ui-disable-active': disable() && (checked() || stillOtherOptions()),\n 'libs-ui-text-error': showBorderError() || error()\n }\"\n (click)=\"handlerChange($event)\">\n </i>\n }\n @if (linkImage()) {\n <img [src]=\"linkImage()\"\n class=\"libs-ui-checkbox-image {{ classImageInclude() || '' }}\"\n [ngClass]=\"{\n 'cursor-default': disable(),\n 'w-[18px] h-[18px]': imgTypeIcon()\n }\"\n (click)=\"handlerChange($event)\"\n (error)=\"handlerErrorImage($event)\" />\n }\n @if (avatarConfig(); as avatarConfig) {\n <libs_ui-components-avatar [typeShape]=\"avatarConfig.typeShape\"\n [classInclude]=\"avatarConfig.classInclude\"\n [size]=\"avatarConfig.size || 24\"\n [linkAvatar]=\"avatarConfig.linkAvatar\"\n [linkAvatarError]=\"avatarConfig.linkAvatarError\"\n [idGenColor]=\"avatarConfig.idGenColor\"\n [textAvatar]=\"avatarConfig.textAvatar\" />\n }\n @if (!linkImage() && iconImageClass()) {\n <div [class]=\"iconImageClass()\"\n [class.cursor-default]=\"disable()\"></div>\n }\n @if (bullet(); as bullet) {\n <div class=\"libs-ui-checkbox-bullet {{ bullet.classInclude || '' }}\"\n [style.background-color]=\"bullet.backgroundColor\"\n [style.width.px]=\"bullet.width\"\n [style.height.px]=\"bullet.height\"\n [class.cursor-default]=\"disable()\"\n (click)=\"handlerChange($event)\">\n </div>\n }\n @if (label(); as label) {\n <div LibsUiComponentsPopoverDirective\n [type]=\"typeLabelPopover() || 'text'\"\n [attr.isLabel]=\"true\"\n [classInclude]=\"classLabelInclude() + (disable() ? ' cursor-default' : '')\"\n [class.libs-ui-disable]=\"disableLabel()\"\n [ignoreShowPopover]=\"ignoreShowPopoverLabel()\"\n [config]=\"{content: label, timerDestroy: 250, zIndex: zIndexLabel()}\"\n [ignoreCursorPointerModeLikeClick]=\"disableLabel() || disable()\"\n [innerHTML]=\"label | translate\"\n (outEvent)=\"handlerEventLabel($event)\"\n (outChangStageFlagMouse)=\"handlerChangStageFlagMouse($event)\"></div>\n }\n @if (popover(); as popover) {\n <libs_ui-components-popover class=\"flex\"\n [config]=\"popover.config\"\n (outEvent)=\"handlerEventPopover($event)\"\n (outChangStageFlagMouse)='handlerChangStageFlagMouse($event)'>\n @if (!popover.dataView) {\n <i [class]=\"popover.classInclude ?? 'libs-ui-icon-tooltip-line'\"></i>\n }\n @if (popover.dataView) {\n <div [innerHtml]=\"popover.dataView | translate\"></div>\n }\n </libs_ui-components-popover>\n }\n</div>\n@if (description(); as description) {\n <div [class]=\"description.classInclude\"\n [innerHtml]=\"descriptionComputed() | translate\">\n </div>\n}\n", styles: [":host .libs-ui-checkbox{display:flex;align-items:center}:host .libs-ui-checkbox .libs-ui-icon-checkbox-selected:before,:host .libs-ui-checkbox .libs-ui-icon-checkbox-indeterminate:before{color:var(--libs-ui-color-default, #226FF5)}:host .libs-ui-checkbox .libs-ui-checkbox-image{width:24px;height:24px;margin-right:8px;border-radius:12px;border:solid 1px #e6e8ed;cursor:pointer;flex-shrink:0}:host .libs-ui-checkbox .libs-ui-checkbox-bullet{min-width:10px;min-height:10px;border-radius:50%;margin-right:8px;cursor:pointer}:host .libs-ui-checkbox libs_ui-components-popover[isLabel=true]{margin-right:8px;max-width:100%;cursor:pointer}:host .libs-ui-checkbox>[class*=libs-ui-icon-]{font-size:16px;cursor:pointer;margin-right:8px}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "component", type: LibsUiComponentsAvatarComponent, selector: "libs_ui-components-avatar", inputs: ["typeShape", "classInclude", "size", "linkAvatar", "linkAvatarError", "idGenColor", "textAvatar", "classImageInclude"], outputs: ["outAvatarError"] }, { kind: "component", type: LibsUiComponentsPopoverComponent, selector: "libs_ui-components-popover,[LibsUiComponentsPopoverDirective]", inputs: ["flagMouse", "type", "mode", "config", "ignoreShowPopover", "elementRefCustom", "classInclude", "ignoreHiddenPopoverContentWhenMouseLeave", "ignoreStopPropagationEvent", "ignoreCursorPointerModeLikeClick", "isAddContentToParentDocument", "ignoreClickOutside"], outputs: ["outEvent", "outChangStageFlagMouse", "outEventPopoverContent", "outFunctionsControl"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
78
|
+
}
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LibsUiComponentsCheckboxSingleComponent, decorators: [{
|
|
80
|
+
type: Component,
|
|
81
|
+
args: [{ selector: 'libs_ui-components-checkbox-single', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
82
|
+
NgClass, TranslateModule,
|
|
83
|
+
LibsUiComponentsAvatarComponent,
|
|
84
|
+
LibsUiComponentsPopoverComponent
|
|
85
|
+
], template: "<div class=\"libs-ui-checkbox {{ classInclude() || '' }}\"\n [ngClass]=\"{\n 'cursor-pointer': !clickExactly() && !disable(),\n 'p-[8px] rounded-[4px]': modeBorder(),\n 'libs-ui-border-general': modeBorder() && !checked(),\n 'libs-ui-border-primary-general': modeBorder() && checked() \n }\"\n (click)=\"handlerClickRelatively($event)\">\n @if (!ignoreCheckbox()) {\n <i class=\"{{ classIconInclude() || '' }}\"\n [ngClass]=\"{\n 'libs-ui-icon-checkbox-unselected': !checked() && !stillOtherOptions(), \n 'libs-ui-icon-checkbox-selected': checked() && !stillOtherOptions(),\n 'libs-ui-icon-checkbox-indeterminate': stillOtherOptions(),\n 'libs-ui-disable pointer-events-none': disable(),\n 'libs-ui-disable-active': disable() && (checked() || stillOtherOptions()),\n 'libs-ui-text-error': showBorderError() || error()\n }\"\n (click)=\"handlerChange($event)\">\n </i>\n }\n @if (linkImage()) {\n <img [src]=\"linkImage()\"\n class=\"libs-ui-checkbox-image {{ classImageInclude() || '' }}\"\n [ngClass]=\"{\n 'cursor-default': disable(),\n 'w-[18px] h-[18px]': imgTypeIcon()\n }\"\n (click)=\"handlerChange($event)\"\n (error)=\"handlerErrorImage($event)\" />\n }\n @if (avatarConfig(); as avatarConfig) {\n <libs_ui-components-avatar [typeShape]=\"avatarConfig.typeShape\"\n [classInclude]=\"avatarConfig.classInclude\"\n [size]=\"avatarConfig.size || 24\"\n [linkAvatar]=\"avatarConfig.linkAvatar\"\n [linkAvatarError]=\"avatarConfig.linkAvatarError\"\n [idGenColor]=\"avatarConfig.idGenColor\"\n [textAvatar]=\"avatarConfig.textAvatar\" />\n }\n @if (!linkImage() && iconImageClass()) {\n <div [class]=\"iconImageClass()\"\n [class.cursor-default]=\"disable()\"></div>\n }\n @if (bullet(); as bullet) {\n <div class=\"libs-ui-checkbox-bullet {{ bullet.classInclude || '' }}\"\n [style.background-color]=\"bullet.backgroundColor\"\n [style.width.px]=\"bullet.width\"\n [style.height.px]=\"bullet.height\"\n [class.cursor-default]=\"disable()\"\n (click)=\"handlerChange($event)\">\n </div>\n }\n @if (label(); as label) {\n <div LibsUiComponentsPopoverDirective\n [type]=\"typeLabelPopover() || 'text'\"\n [attr.isLabel]=\"true\"\n [classInclude]=\"classLabelInclude() + (disable() ? ' cursor-default' : '')\"\n [class.libs-ui-disable]=\"disableLabel()\"\n [ignoreShowPopover]=\"ignoreShowPopoverLabel()\"\n [config]=\"{content: label, timerDestroy: 250, zIndex: zIndexLabel()}\"\n [ignoreCursorPointerModeLikeClick]=\"disableLabel() || disable()\"\n [innerHTML]=\"label | translate\"\n (outEvent)=\"handlerEventLabel($event)\"\n (outChangStageFlagMouse)=\"handlerChangStageFlagMouse($event)\"></div>\n }\n @if (popover(); as popover) {\n <libs_ui-components-popover class=\"flex\"\n [config]=\"popover.config\"\n (outEvent)=\"handlerEventPopover($event)\"\n (outChangStageFlagMouse)='handlerChangStageFlagMouse($event)'>\n @if (!popover.dataView) {\n <i [class]=\"popover.classInclude ?? 'libs-ui-icon-tooltip-line'\"></i>\n }\n @if (popover.dataView) {\n <div [innerHtml]=\"popover.dataView | translate\"></div>\n }\n </libs_ui-components-popover>\n }\n</div>\n@if (description(); as description) {\n <div [class]=\"description.classInclude\"\n [innerHtml]=\"descriptionComputed() | translate\">\n </div>\n}\n", styles: [":host .libs-ui-checkbox{display:flex;align-items:center}:host .libs-ui-checkbox .libs-ui-icon-checkbox-selected:before,:host .libs-ui-checkbox .libs-ui-icon-checkbox-indeterminate:before{color:var(--libs-ui-color-default, #226FF5)}:host .libs-ui-checkbox .libs-ui-checkbox-image{width:24px;height:24px;margin-right:8px;border-radius:12px;border:solid 1px #e6e8ed;cursor:pointer;flex-shrink:0}:host .libs-ui-checkbox .libs-ui-checkbox-bullet{min-width:10px;min-height:10px;border-radius:50%;margin-right:8px;cursor:pointer}:host .libs-ui-checkbox libs_ui-components-popover[isLabel=true]{margin-right:8px;max-width:100%;cursor:pointer}:host .libs-ui-checkbox>[class*=libs-ui-icon-]{font-size:16px;cursor:pointer;margin-right:8px}\n"] }]
|
|
86
|
+
}] });
|
|
87
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3gtc2luZ2xlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMtdWkvY29tcG9uZW50cy9jaGVja2JveC9zaW5nbGUvc3JjL2NoZWNrYm94LXNpbmdsZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9saWJzLXVpL2NvbXBvbmVudHMvY2hlY2tib3gvc2luZ2xlL3NyYy9jaGVja2JveC1zaW5nbGUuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJt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biAgfVxuPC9kaXY+XG5AaWYgKGRlc2NyaXB0aW9uKCk7IGFzIGRlc2NyaXB0aW9uKSB7XG4gIDxkaXYgW2NsYXNzXT1cImRlc2NyaXB0aW9uLmNsYXNzSW5jbHVkZVwiXG4gICAgW2lubmVySHRtbF09XCJkZXNjcmlwdGlvbkNvbXB1dGVkKCkgfCB0cmFuc2xhdGVcIj5cbiAgPC9kaXY+XG59XG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './checkbox-single.component';
|
|
2
|
+
export * from './interfaces';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzLXVpL2NvbXBvbmVudHMvY2hlY2tib3gvc2luZ2xlL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jaGVja2JveC1zaW5nbGUuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vaW50ZXJmYWNlcyc7Il19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3guaW50ZXJmYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy11aS9jb21wb25lbnRzL2NoZWNrYm94L3NpbmdsZS9zcmMvaW50ZXJmYWNlcy9jaGVja2JveC5pbnRlcmZhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIEB0eXBlc2NyaXB0LWVzbGludC9uby1leHBsaWNpdC1hbnkgKi9cbmV4cG9ydCBpbnRlcmZhY2UgSUNoZWNrYm94SXRlbURlc2NyaXB0aW9uIHtcbiAgY29udGVudDogc3RyaW5nO1xuICBjbGFzc0luY2x1ZGU6IHN0cmluZztcbn1cblxuZXhwb3J0IGludGVyZmFjZSBJQ2hlY2tib3hFdmVudCB7XG4gIGtleTogYW55O1xuICBjaGVja2VkOiBib29sZWFuO1xuICBhbGxDaGVja2JveENoZWNrZWQ/OiBBcnJheTxJQ2hlY2tib3hDaGVja2VkPlxufVxuXG5leHBvcnQgaW50ZXJmYWNlIElDaGVja2JveENoZWNrZWQge1xuICBrZXk6IHN0cmluZztcbiAgaXRlbTogYW55O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIElDaGVja2JveEJ1bGxldCB7XG4gIGNsYXNzSW5jbHVkZT86IHN0cmluZztcbiAgYmFja2dyb3VuZENvbG9yOiBzdHJpbmc7XG4gIHdpZHRoOiBudW1iZXI7XG4gIGhlaWdodDogbnVtYmVyO1xufSJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './checkbox.interface';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzLXVpL2NvbXBvbmVudHMvY2hlY2tib3gvc2luZ2xlL3NyYy9pbnRlcmZhY2VzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsc0JBQXNCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NoZWNrYm94LmludGVyZmFjZSc7Il19
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlicy11aS1jb21wb25lbnRzLWNoZWNrYm94LXNpbmdsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMtdWkvY29tcG9uZW50cy9jaGVja2JveC9zaW5nbGUvc3JjL2xpYnMtdWktY29tcG9uZW50cy1jaGVja2JveC1zaW5nbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0=
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { NgClass } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { computed, input, model, output, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
4
|
+
import { LibsUiComponentsAvatarComponent } from '@libs-ui/components-avatar';
|
|
5
|
+
import { LibsUiComponentsPopoverComponent } from '@libs-ui/components-popover';
|
|
6
|
+
import { escapeHtml } from '@libs-ui/utils';
|
|
7
|
+
import * as i1 from '@ngx-translate/core';
|
|
8
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
9
|
+
|
|
10
|
+
class LibsUiComponentsCheckboxSingleComponent {
|
|
11
|
+
/* PROPERTY */
|
|
12
|
+
descriptionComputed = computed(() => escapeHtml(this.description()?.content || ''));
|
|
13
|
+
/* INPUT */
|
|
14
|
+
key = input();
|
|
15
|
+
checked = model(false);
|
|
16
|
+
label = input();
|
|
17
|
+
classLabelInclude = input('libs-ui-font-h5r', { transform: value => value ?? 'libs-ui-font-h5r' });
|
|
18
|
+
ignoreShowPopoverLabel = input();
|
|
19
|
+
typeLabelPopover = input('text', { transform: value => value ?? 'text' });
|
|
20
|
+
popover = input();
|
|
21
|
+
linkImage = model();
|
|
22
|
+
linkImageError = input();
|
|
23
|
+
avatarConfig = input();
|
|
24
|
+
classImageInclude = input();
|
|
25
|
+
imgTypeIcon = input();
|
|
26
|
+
bullet = input();
|
|
27
|
+
classInclude = input('', { transform: value => value ?? '' });
|
|
28
|
+
clickExactly = input(true, { transform: value => value ?? true });
|
|
29
|
+
disable = input();
|
|
30
|
+
disableLabel = input();
|
|
31
|
+
ignoreCheckbox = input();
|
|
32
|
+
zIndexLabel = input(1200, { transform: value => value ?? 1200 });
|
|
33
|
+
stillOtherOptions = input();
|
|
34
|
+
error = input();
|
|
35
|
+
showBorderError = input();
|
|
36
|
+
description = input();
|
|
37
|
+
iconImageClass = input();
|
|
38
|
+
classIconInclude = input();
|
|
39
|
+
modeBorder = input();
|
|
40
|
+
/* OUTPUT */
|
|
41
|
+
outChange = output();
|
|
42
|
+
outEventPopover = output();
|
|
43
|
+
outClickLabel = output();
|
|
44
|
+
outChangStageFlagMousePopover = output();
|
|
45
|
+
/* FUNCTIONS */
|
|
46
|
+
async handlerErrorImage(event) {
|
|
47
|
+
event.stopPropagation();
|
|
48
|
+
this.linkImage.set(this.linkImageError());
|
|
49
|
+
}
|
|
50
|
+
async handlerClickRelatively(event) {
|
|
51
|
+
if (this.clickExactly()) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
event?.stopPropagation();
|
|
55
|
+
this.handlerChange(event);
|
|
56
|
+
}
|
|
57
|
+
async handlerChange(event) {
|
|
58
|
+
event?.stopPropagation();
|
|
59
|
+
if (this.disable()) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
this.checked.update(checked => !checked);
|
|
63
|
+
this.outChange.emit({ key: this.key, checked: this.checked() });
|
|
64
|
+
}
|
|
65
|
+
async handlerEventLabel(event) {
|
|
66
|
+
if (event === 'click') {
|
|
67
|
+
this.outClickLabel.emit();
|
|
68
|
+
this.handlerChange();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
async handlerEventPopover(event) {
|
|
72
|
+
this.outEventPopover.emit(event);
|
|
73
|
+
}
|
|
74
|
+
async handlerChangStageFlagMouse(event) {
|
|
75
|
+
this.outChangStageFlagMousePopover.emit(event);
|
|
76
|
+
}
|
|
77
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LibsUiComponentsCheckboxSingleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
78
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: LibsUiComponentsCheckboxSingleComponent, isStandalone: true, selector: "libs_ui-components-checkbox-single", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, classLabelInclude: { classPropertyName: "classLabelInclude", publicName: "classLabelInclude", isSignal: true, isRequired: false, transformFunction: null }, ignoreShowPopoverLabel: { classPropertyName: "ignoreShowPopoverLabel", publicName: "ignoreShowPopoverLabel", isSignal: true, isRequired: false, transformFunction: null }, typeLabelPopover: { classPropertyName: "typeLabelPopover", publicName: "typeLabelPopover", isSignal: true, isRequired: false, transformFunction: null }, popover: { classPropertyName: "popover", publicName: "popover", isSignal: true, isRequired: false, transformFunction: null }, linkImage: { classPropertyName: "linkImage", publicName: "linkImage", isSignal: true, isRequired: false, transformFunction: null }, linkImageError: { classPropertyName: "linkImageError", publicName: "linkImageError", isSignal: true, isRequired: false, transformFunction: null }, avatarConfig: { classPropertyName: "avatarConfig", publicName: "avatarConfig", isSignal: true, isRequired: false, transformFunction: null }, classImageInclude: { classPropertyName: "classImageInclude", publicName: "classImageInclude", isSignal: true, isRequired: false, transformFunction: null }, imgTypeIcon: { classPropertyName: "imgTypeIcon", publicName: "imgTypeIcon", isSignal: true, isRequired: false, transformFunction: null }, bullet: { classPropertyName: "bullet", publicName: "bullet", isSignal: true, isRequired: false, transformFunction: null }, classInclude: { classPropertyName: "classInclude", publicName: "classInclude", isSignal: true, isRequired: false, transformFunction: null }, clickExactly: { classPropertyName: "clickExactly", publicName: "clickExactly", isSignal: true, isRequired: false, transformFunction: null }, disable: { classPropertyName: "disable", publicName: "disable", isSignal: true, isRequired: false, transformFunction: null }, disableLabel: { classPropertyName: "disableLabel", publicName: "disableLabel", isSignal: true, isRequired: false, transformFunction: null }, ignoreCheckbox: { classPropertyName: "ignoreCheckbox", publicName: "ignoreCheckbox", isSignal: true, isRequired: false, transformFunction: null }, zIndexLabel: { classPropertyName: "zIndexLabel", publicName: "zIndexLabel", isSignal: true, isRequired: false, transformFunction: null }, stillOtherOptions: { classPropertyName: "stillOtherOptions", publicName: "stillOtherOptions", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, showBorderError: { classPropertyName: "showBorderError", publicName: "showBorderError", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, iconImageClass: { classPropertyName: "iconImageClass", publicName: "iconImageClass", isSignal: true, isRequired: false, transformFunction: null }, classIconInclude: { classPropertyName: "classIconInclude", publicName: "classIconInclude", isSignal: true, isRequired: false, transformFunction: null }, modeBorder: { classPropertyName: "modeBorder", publicName: "modeBorder", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", linkImage: "linkImageChange", outChange: "outChange", outEventPopover: "outEventPopover", outClickLabel: "outClickLabel", outChangStageFlagMousePopover: "outChangStageFlagMousePopover" }, ngImport: i0, template: "<div class=\"libs-ui-checkbox {{ classInclude() || '' }}\"\n [ngClass]=\"{\n 'cursor-pointer': !clickExactly() && !disable(),\n 'p-[8px] rounded-[4px]': modeBorder(),\n 'libs-ui-border-general': modeBorder() && !checked(),\n 'libs-ui-border-primary-general': modeBorder() && checked() \n }\"\n (click)=\"handlerClickRelatively($event)\">\n @if (!ignoreCheckbox()) {\n <i class=\"{{ classIconInclude() || '' }}\"\n [ngClass]=\"{\n 'libs-ui-icon-checkbox-unselected': !checked() && !stillOtherOptions(), \n 'libs-ui-icon-checkbox-selected': checked() && !stillOtherOptions(),\n 'libs-ui-icon-checkbox-indeterminate': stillOtherOptions(),\n 'libs-ui-disable pointer-events-none': disable(),\n 'libs-ui-disable-active': disable() && (checked() || stillOtherOptions()),\n 'libs-ui-text-error': showBorderError() || error()\n }\"\n (click)=\"handlerChange($event)\">\n </i>\n }\n @if (linkImage()) {\n <img [src]=\"linkImage()\"\n class=\"libs-ui-checkbox-image {{ classImageInclude() || '' }}\"\n [ngClass]=\"{\n 'cursor-default': disable(),\n 'w-[18px] h-[18px]': imgTypeIcon()\n }\"\n (click)=\"handlerChange($event)\"\n (error)=\"handlerErrorImage($event)\" />\n }\n @if (avatarConfig(); as avatarConfig) {\n <libs_ui-components-avatar [typeShape]=\"avatarConfig.typeShape\"\n [classInclude]=\"avatarConfig.classInclude\"\n [size]=\"avatarConfig.size || 24\"\n [linkAvatar]=\"avatarConfig.linkAvatar\"\n [linkAvatarError]=\"avatarConfig.linkAvatarError\"\n [idGenColor]=\"avatarConfig.idGenColor\"\n [textAvatar]=\"avatarConfig.textAvatar\" />\n }\n @if (!linkImage() && iconImageClass()) {\n <div [class]=\"iconImageClass()\"\n [class.cursor-default]=\"disable()\"></div>\n }\n @if (bullet(); as bullet) {\n <div class=\"libs-ui-checkbox-bullet {{ bullet.classInclude || '' }}\"\n [style.background-color]=\"bullet.backgroundColor\"\n [style.width.px]=\"bullet.width\"\n [style.height.px]=\"bullet.height\"\n [class.cursor-default]=\"disable()\"\n (click)=\"handlerChange($event)\">\n </div>\n }\n @if (label(); as label) {\n <div LibsUiComponentsPopoverDirective\n [type]=\"typeLabelPopover() || 'text'\"\n [attr.isLabel]=\"true\"\n [classInclude]=\"classLabelInclude() + (disable() ? ' cursor-default' : '')\"\n [class.libs-ui-disable]=\"disableLabel()\"\n [ignoreShowPopover]=\"ignoreShowPopoverLabel()\"\n [config]=\"{content: label, timerDestroy: 250, zIndex: zIndexLabel()}\"\n [ignoreCursorPointerModeLikeClick]=\"disableLabel() || disable()\"\n [innerHTML]=\"label | translate\"\n (outEvent)=\"handlerEventLabel($event)\"\n (outChangStageFlagMouse)=\"handlerChangStageFlagMouse($event)\"></div>\n }\n @if (popover(); as popover) {\n <libs_ui-components-popover class=\"flex\"\n [config]=\"popover.config\"\n (outEvent)=\"handlerEventPopover($event)\"\n (outChangStageFlagMouse)='handlerChangStageFlagMouse($event)'>\n @if (!popover.dataView) {\n <i [class]=\"popover.classInclude ?? 'libs-ui-icon-tooltip-line'\"></i>\n }\n @if (popover.dataView) {\n <div [innerHtml]=\"popover.dataView | translate\"></div>\n }\n </libs_ui-components-popover>\n }\n</div>\n@if (description(); as description) {\n <div [class]=\"description.classInclude\"\n [innerHtml]=\"descriptionComputed() | translate\">\n </div>\n}\n", styles: [":host .libs-ui-checkbox{display:flex;align-items:center}:host .libs-ui-checkbox .libs-ui-icon-checkbox-selected:before,:host .libs-ui-checkbox .libs-ui-icon-checkbox-indeterminate:before{color:var(--libs-ui-color-default, #226FF5)}:host .libs-ui-checkbox .libs-ui-checkbox-image{width:24px;height:24px;margin-right:8px;border-radius:12px;border:solid 1px #e6e8ed;cursor:pointer;flex-shrink:0}:host .libs-ui-checkbox .libs-ui-checkbox-bullet{min-width:10px;min-height:10px;border-radius:50%;margin-right:8px;cursor:pointer}:host .libs-ui-checkbox libs_ui-components-popover[isLabel=true]{margin-right:8px;max-width:100%;cursor:pointer}:host .libs-ui-checkbox>[class*=libs-ui-icon-]{font-size:16px;cursor:pointer;margin-right:8px}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "component", type: LibsUiComponentsAvatarComponent, selector: "libs_ui-components-avatar", inputs: ["typeShape", "classInclude", "size", "linkAvatar", "linkAvatarError", "idGenColor", "textAvatar", "classImageInclude"], outputs: ["outAvatarError"] }, { kind: "component", type: LibsUiComponentsPopoverComponent, selector: "libs_ui-components-popover,[LibsUiComponentsPopoverDirective]", inputs: ["flagMouse", "type", "mode", "config", "ignoreShowPopover", "elementRefCustom", "classInclude", "ignoreHiddenPopoverContentWhenMouseLeave", "ignoreStopPropagationEvent", "ignoreCursorPointerModeLikeClick", "isAddContentToParentDocument", "ignoreClickOutside"], outputs: ["outEvent", "outChangStageFlagMouse", "outEventPopoverContent", "outFunctionsControl"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
79
|
+
}
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LibsUiComponentsCheckboxSingleComponent, decorators: [{
|
|
81
|
+
type: Component,
|
|
82
|
+
args: [{ selector: 'libs_ui-components-checkbox-single', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
83
|
+
NgClass, TranslateModule,
|
|
84
|
+
LibsUiComponentsAvatarComponent,
|
|
85
|
+
LibsUiComponentsPopoverComponent
|
|
86
|
+
], template: "<div class=\"libs-ui-checkbox {{ classInclude() || '' }}\"\n [ngClass]=\"{\n 'cursor-pointer': !clickExactly() && !disable(),\n 'p-[8px] rounded-[4px]': modeBorder(),\n 'libs-ui-border-general': modeBorder() && !checked(),\n 'libs-ui-border-primary-general': modeBorder() && checked() \n }\"\n (click)=\"handlerClickRelatively($event)\">\n @if (!ignoreCheckbox()) {\n <i class=\"{{ classIconInclude() || '' }}\"\n [ngClass]=\"{\n 'libs-ui-icon-checkbox-unselected': !checked() && !stillOtherOptions(), \n 'libs-ui-icon-checkbox-selected': checked() && !stillOtherOptions(),\n 'libs-ui-icon-checkbox-indeterminate': stillOtherOptions(),\n 'libs-ui-disable pointer-events-none': disable(),\n 'libs-ui-disable-active': disable() && (checked() || stillOtherOptions()),\n 'libs-ui-text-error': showBorderError() || error()\n }\"\n (click)=\"handlerChange($event)\">\n </i>\n }\n @if (linkImage()) {\n <img [src]=\"linkImage()\"\n class=\"libs-ui-checkbox-image {{ classImageInclude() || '' }}\"\n [ngClass]=\"{\n 'cursor-default': disable(),\n 'w-[18px] h-[18px]': imgTypeIcon()\n }\"\n (click)=\"handlerChange($event)\"\n (error)=\"handlerErrorImage($event)\" />\n }\n @if (avatarConfig(); as avatarConfig) {\n <libs_ui-components-avatar [typeShape]=\"avatarConfig.typeShape\"\n [classInclude]=\"avatarConfig.classInclude\"\n [size]=\"avatarConfig.size || 24\"\n [linkAvatar]=\"avatarConfig.linkAvatar\"\n [linkAvatarError]=\"avatarConfig.linkAvatarError\"\n [idGenColor]=\"avatarConfig.idGenColor\"\n [textAvatar]=\"avatarConfig.textAvatar\" />\n }\n @if (!linkImage() && iconImageClass()) {\n <div [class]=\"iconImageClass()\"\n [class.cursor-default]=\"disable()\"></div>\n }\n @if (bullet(); as bullet) {\n <div class=\"libs-ui-checkbox-bullet {{ bullet.classInclude || '' }}\"\n [style.background-color]=\"bullet.backgroundColor\"\n [style.width.px]=\"bullet.width\"\n [style.height.px]=\"bullet.height\"\n [class.cursor-default]=\"disable()\"\n (click)=\"handlerChange($event)\">\n </div>\n }\n @if (label(); as label) {\n <div LibsUiComponentsPopoverDirective\n [type]=\"typeLabelPopover() || 'text'\"\n [attr.isLabel]=\"true\"\n [classInclude]=\"classLabelInclude() + (disable() ? ' cursor-default' : '')\"\n [class.libs-ui-disable]=\"disableLabel()\"\n [ignoreShowPopover]=\"ignoreShowPopoverLabel()\"\n [config]=\"{content: label, timerDestroy: 250, zIndex: zIndexLabel()}\"\n [ignoreCursorPointerModeLikeClick]=\"disableLabel() || disable()\"\n [innerHTML]=\"label | translate\"\n (outEvent)=\"handlerEventLabel($event)\"\n (outChangStageFlagMouse)=\"handlerChangStageFlagMouse($event)\"></div>\n }\n @if (popover(); as popover) {\n <libs_ui-components-popover class=\"flex\"\n [config]=\"popover.config\"\n (outEvent)=\"handlerEventPopover($event)\"\n (outChangStageFlagMouse)='handlerChangStageFlagMouse($event)'>\n @if (!popover.dataView) {\n <i [class]=\"popover.classInclude ?? 'libs-ui-icon-tooltip-line'\"></i>\n }\n @if (popover.dataView) {\n <div [innerHtml]=\"popover.dataView | translate\"></div>\n }\n </libs_ui-components-popover>\n }\n</div>\n@if (description(); as description) {\n <div [class]=\"description.classInclude\"\n [innerHtml]=\"descriptionComputed() | translate\">\n </div>\n}\n", styles: [":host .libs-ui-checkbox{display:flex;align-items:center}:host .libs-ui-checkbox .libs-ui-icon-checkbox-selected:before,:host .libs-ui-checkbox .libs-ui-icon-checkbox-indeterminate:before{color:var(--libs-ui-color-default, #226FF5)}:host .libs-ui-checkbox .libs-ui-checkbox-image{width:24px;height:24px;margin-right:8px;border-radius:12px;border:solid 1px #e6e8ed;cursor:pointer;flex-shrink:0}:host .libs-ui-checkbox .libs-ui-checkbox-bullet{min-width:10px;min-height:10px;border-radius:50%;margin-right:8px;cursor:pointer}:host .libs-ui-checkbox libs_ui-components-popover[isLabel=true]{margin-right:8px;max-width:100%;cursor:pointer}:host .libs-ui-checkbox>[class*=libs-ui-icon-]{font-size:16px;cursor:pointer;margin-right:8px}\n"] }]
|
|
87
|
+
}] });
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Generated bundle index. Do not edit.
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
export { LibsUiComponentsCheckboxSingleComponent };
|
|
94
|
+
//# sourceMappingURL=libs-ui-components-checkbox-single.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"libs-ui-components-checkbox-single.mjs","sources":["../../../../../../libs-ui/components/checkbox/single/src/checkbox-single.component.ts","../../../../../../libs-ui/components/checkbox/single/src/checkbox-single.component.html","../../../../../../libs-ui/components/checkbox/single/src/libs-ui-components-checkbox-single.ts"],"sourcesContent":["import { NgClass } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input, model, output } from '@angular/core';\nimport { IAvatarConfig, LibsUiComponentsAvatarComponent } from '@libs-ui/components-avatar';\nimport { IFlagMouse, IPopover, LibsUiComponentsPopoverComponent, TYPE_POPOVER_EVENT, TYPE_POPOVER_TYPE } from '@libs-ui/components-popover';\nimport { escapeHtml } from '@libs-ui/utils';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { ICheckboxBullet, ICheckboxEvent, ICheckboxItemDescription } from './interfaces';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'libs_ui-components-checkbox-single',\n templateUrl: './checkbox-single.component.html',\n styleUrls: ['./checkbox-single.component.scss'],\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n NgClass, TranslateModule,\n LibsUiComponentsAvatarComponent,\n LibsUiComponentsPopoverComponent\n ]\n})\nexport class LibsUiComponentsCheckboxSingleComponent {\n\n /* PROPERTY */\n protected descriptionComputed = computed(() => escapeHtml(this.description()?.content || ''));\n\n /* INPUT */\n readonly key = input<string>();\n readonly checked = model<boolean>(false);\n readonly label = input<string>();\n readonly classLabelInclude = input<string | undefined, string | undefined>('libs-ui-font-h5r', { transform: value => value ?? 'libs-ui-font-h5r' });\n readonly ignoreShowPopoverLabel = input<boolean>();\n readonly typeLabelPopover = input<TYPE_POPOVER_TYPE, TYPE_POPOVER_TYPE>('text', { transform: value => value ?? 'text' });\n readonly popover = input<IPopover>();\n readonly linkImage = model<string>();\n readonly linkImageError = input<string>();\n readonly avatarConfig = input<IAvatarConfig>();\n readonly classImageInclude = input<string>();\n readonly imgTypeIcon = input<boolean>();\n readonly bullet = input<ICheckboxBullet>();\n readonly classInclude = input<string | undefined, string | undefined>('', { transform: value => value ?? '' });\n readonly clickExactly = input<boolean | undefined, boolean | undefined>(true, { transform: value => value ?? true });\n readonly disable = input<boolean>();\n readonly disableLabel = input<boolean>();\n readonly ignoreCheckbox = input<boolean>();\n readonly zIndexLabel = input<number | undefined, number | undefined>(1200, { transform: value => value ?? 1200 });\n readonly stillOtherOptions = input<boolean>();\n readonly error = input<boolean>();\n readonly showBorderError = input<boolean>();\n readonly description = input<ICheckboxItemDescription>();\n readonly iconImageClass = input<string>();\n readonly classIconInclude = input<string>();\n readonly modeBorder = input<boolean>();\n\n /* OUTPUT */\n readonly outChange = output<ICheckboxEvent>();\n readonly outEventPopover = output<TYPE_POPOVER_EVENT>();\n readonly outClickLabel = output<void>();\n readonly outChangStageFlagMousePopover = output<IFlagMouse>();\n\n /* FUNCTIONS */\n protected async handlerErrorImage(event: Event) {\n event.stopPropagation();\n this.linkImage.set(this.linkImageError());\n }\n\n protected async handlerClickRelatively(event?: Event) {\n if (this.clickExactly()) {\n return;\n }\n event?.stopPropagation();\n this.handlerChange(event);\n }\n\n protected async handlerChange(event?: Event) {\n event?.stopPropagation();\n if (this.disable()) {\n return;\n }\n this.checked.update(checked => !checked);\n this.outChange.emit({ key: this.key, checked: this.checked() });\n }\n\n protected async handlerEventLabel(event: string) {\n if (event === 'click') {\n this.outClickLabel.emit();\n this.handlerChange();\n }\n }\n\n protected async handlerEventPopover(event: TYPE_POPOVER_EVENT) {\n this.outEventPopover.emit(event);\n }\n\n protected async handlerChangStageFlagMouse(event: IFlagMouse) {\n this.outChangStageFlagMousePopover.emit(event);\n }\n\n}\n","<div class=\"libs-ui-checkbox {{ classInclude() || '' }}\"\n [ngClass]=\"{\n 'cursor-pointer': !clickExactly() && !disable(),\n 'p-[8px] rounded-[4px]': modeBorder(),\n 'libs-ui-border-general': modeBorder() && !checked(),\n 'libs-ui-border-primary-general': modeBorder() && checked() \n }\"\n (click)=\"handlerClickRelatively($event)\">\n @if (!ignoreCheckbox()) {\n <i class=\"{{ classIconInclude() || '' }}\"\n [ngClass]=\"{\n 'libs-ui-icon-checkbox-unselected': !checked() && !stillOtherOptions(), \n 'libs-ui-icon-checkbox-selected': checked() && !stillOtherOptions(),\n 'libs-ui-icon-checkbox-indeterminate': stillOtherOptions(),\n 'libs-ui-disable pointer-events-none': disable(),\n 'libs-ui-disable-active': disable() && (checked() || stillOtherOptions()),\n 'libs-ui-text-error': showBorderError() || error()\n }\"\n (click)=\"handlerChange($event)\">\n </i>\n }\n @if (linkImage()) {\n <img [src]=\"linkImage()\"\n class=\"libs-ui-checkbox-image {{ classImageInclude() || '' }}\"\n [ngClass]=\"{\n 'cursor-default': disable(),\n 'w-[18px] h-[18px]': imgTypeIcon()\n }\"\n (click)=\"handlerChange($event)\"\n (error)=\"handlerErrorImage($event)\" />\n }\n @if (avatarConfig(); as avatarConfig) {\n <libs_ui-components-avatar [typeShape]=\"avatarConfig.typeShape\"\n [classInclude]=\"avatarConfig.classInclude\"\n [size]=\"avatarConfig.size || 24\"\n [linkAvatar]=\"avatarConfig.linkAvatar\"\n [linkAvatarError]=\"avatarConfig.linkAvatarError\"\n [idGenColor]=\"avatarConfig.idGenColor\"\n [textAvatar]=\"avatarConfig.textAvatar\" />\n }\n @if (!linkImage() && iconImageClass()) {\n <div [class]=\"iconImageClass()\"\n [class.cursor-default]=\"disable()\"></div>\n }\n @if (bullet(); as bullet) {\n <div class=\"libs-ui-checkbox-bullet {{ bullet.classInclude || '' }}\"\n [style.background-color]=\"bullet.backgroundColor\"\n [style.width.px]=\"bullet.width\"\n [style.height.px]=\"bullet.height\"\n [class.cursor-default]=\"disable()\"\n (click)=\"handlerChange($event)\">\n </div>\n }\n @if (label(); as label) {\n <div LibsUiComponentsPopoverDirective\n [type]=\"typeLabelPopover() || 'text'\"\n [attr.isLabel]=\"true\"\n [classInclude]=\"classLabelInclude() + (disable() ? ' cursor-default' : '')\"\n [class.libs-ui-disable]=\"disableLabel()\"\n [ignoreShowPopover]=\"ignoreShowPopoverLabel()\"\n [config]=\"{content: label, timerDestroy: 250, zIndex: zIndexLabel()}\"\n [ignoreCursorPointerModeLikeClick]=\"disableLabel() || disable()\"\n [innerHTML]=\"label | translate\"\n (outEvent)=\"handlerEventLabel($event)\"\n (outChangStageFlagMouse)=\"handlerChangStageFlagMouse($event)\"></div>\n }\n @if (popover(); as popover) {\n <libs_ui-components-popover class=\"flex\"\n [config]=\"popover.config\"\n (outEvent)=\"handlerEventPopover($event)\"\n (outChangStageFlagMouse)='handlerChangStageFlagMouse($event)'>\n @if (!popover.dataView) {\n <i [class]=\"popover.classInclude ?? 'libs-ui-icon-tooltip-line'\"></i>\n }\n @if (popover.dataView) {\n <div [innerHtml]=\"popover.dataView | translate\"></div>\n }\n </libs_ui-components-popover>\n }\n</div>\n@if (description(); as description) {\n <div [class]=\"description.classInclude\"\n [innerHtml]=\"descriptionComputed() | translate\">\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAqBa,uCAAuC,CAAA;;AAGxC,IAAA,mBAAmB,GAAG,QAAQ,CAAC,MAAM,UAAU,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,OAAO,IAAI,EAAE,CAAC,CAAC;;IAGpF,GAAG,GAAG,KAAK,EAAU;AACrB,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,CAAC;IAC/B,KAAK,GAAG,KAAK,EAAU;AACvB,IAAA,iBAAiB,GAAG,KAAK,CAAyC,kBAAkB,EAAE,EAAE,SAAS,EAAE,KAAK,IAAI,KAAK,IAAI,kBAAkB,EAAE,CAAC;IAC1I,sBAAsB,GAAG,KAAK,EAAW;AACzC,IAAA,gBAAgB,GAAG,KAAK,CAAuC,MAAM,EAAE,EAAE,SAAS,EAAE,KAAK,IAAI,KAAK,IAAI,MAAM,EAAE,CAAC;IAC/G,OAAO,GAAG,KAAK,EAAY;IAC3B,SAAS,GAAG,KAAK,EAAU;IAC3B,cAAc,GAAG,KAAK,EAAU;IAChC,YAAY,GAAG,KAAK,EAAiB;IACrC,iBAAiB,GAAG,KAAK,EAAU;IACnC,WAAW,GAAG,KAAK,EAAW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emDescription {
|
|
2
|
+
content: string;
|
|
3
|
+
classInclude: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ICheckboxEvent {
|
|
6
|
+
key: any;
|
|
7
|
+
checked: boolean;
|
|
8
|
+
allCheckboxChecked?: Array<ICheckboxChecked>;
|
|
9
|
+
}
|
|
10
|
+
export interface ICheckboxChecked {
|
|
11
|
+
key: string;
|
|
12
|
+
item: any;
|
|
13
|
+
}
|
|
14
|
+
export interface ICheckboxBullet {
|
|
15
|
+
classInclude?: string;
|
|
16
|
+
backgroundColor: string;
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './checkbox.interface';
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@libs-ui/components-checkbox-single",
|
|
3
|
+
"version": "0.2.5",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^18.2.0",
|
|
6
|
+
"@angular/core": "^18.2.0"
|
|
7
|
+
},
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"module": "fesm2022/libs-ui-components-checkbox-single.mjs",
|
|
10
|
+
"typings": "index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
"./package.json": {
|
|
13
|
+
"default": "./package.json"
|
|
14
|
+
},
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./index.d.ts",
|
|
17
|
+
"esm2022": "./esm2022/libs-ui-components-checkbox-single.mjs",
|
|
18
|
+
"esm": "./esm2022/libs-ui-components-checkbox-single.mjs",
|
|
19
|
+
"default": "./fesm2022/libs-ui-components-checkbox-single.mjs"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"tslib": "^2.3.0"
|
|
24
|
+
}
|
|
25
|
+
}
|