@sixbell-telco/sdk 0.2.1 → 0.3.0
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/CHANGELOG.md +4 -0
- package/_index.scss +0 -2
- package/components/button/src/button.component.d.ts +25 -37
- package/components/dual-list/src/dual-list.component.d.ts +11 -60
- package/components/modal/src/modal.component.d.ts +4 -2
- package/components/table/src/table.component.d.ts +14 -19
- package/esm2022/components/button/src/button.component.mjs +45 -110
- package/esm2022/components/dual-list/src/dual-list.component.mjs +23 -63
- package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +3 -3
- package/esm2022/components/forms/select/src/select.component.mjs +2 -2
- package/esm2022/components/modal/src/modal.component.mjs +11 -5
- package/esm2022/components/table/src/table.component.mjs +35 -40
- package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +3 -3
- package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +45 -110
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +21 -61
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs +10 -4
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +36 -41
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,51 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, Component } from '@angular/core';
|
|
3
3
|
import { IconComponent } from '@sixbell-telco/sdk/components/icon';
|
|
4
|
-
import { matSearchOutline } from '@sixbell-telco/sdk/components/icon/material/outline';
|
|
5
4
|
import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
|
|
6
5
|
import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
7
|
-
import { cva
|
|
6
|
+
import { cva } from 'class-variance-authority';
|
|
8
7
|
|
|
9
|
-
const
|
|
8
|
+
const buttonComponent = cva(['btn'], {
|
|
10
9
|
variants: {
|
|
11
10
|
variant: {
|
|
12
|
-
primary: ['btn-primary'
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
'
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
'text-neutral',
|
|
20
|
-
'hover:text-primary-content',
|
|
21
|
-
'hover:bg-primary',
|
|
22
|
-
'active:focus:bg-primary',
|
|
23
|
-
'active:focus:border-primary',
|
|
24
|
-
'focus-visible:outline-current',
|
|
25
|
-
],
|
|
26
|
-
'ghost-error': [
|
|
27
|
-
'btn-ghost',
|
|
28
|
-
'h-auto',
|
|
29
|
-
'text-neutral',
|
|
30
|
-
'hover:text-error-content',
|
|
31
|
-
'hover:bg-error',
|
|
32
|
-
'active:focus:bg-error',
|
|
33
|
-
'active:focus:border-error',
|
|
34
|
-
'focus-visible:outline-current',
|
|
35
|
-
],
|
|
36
|
-
circle: [
|
|
37
|
-
'btn-circle',
|
|
38
|
-
'btn-outline',
|
|
39
|
-
'text-neutral',
|
|
40
|
-
'border-ring',
|
|
41
|
-
'hover:text-neutral',
|
|
42
|
-
'hover:border-ring-accent',
|
|
43
|
-
'hover:bg-transparent',
|
|
44
|
-
'active:hover:text-neutral-content',
|
|
45
|
-
'active:hover:bg-ring-accent',
|
|
46
|
-
'active:focus:border-ring-accent',
|
|
47
|
-
'focus-visible:outline-ring-accent',
|
|
48
|
-
],
|
|
11
|
+
primary: ['btn-primary'],
|
|
12
|
+
secondary: ['btn-secondary'],
|
|
13
|
+
accent: ['btn-accent'],
|
|
14
|
+
info: ['btn-info'],
|
|
15
|
+
success: ['btn-success'],
|
|
16
|
+
warning: ['btn-warning'],
|
|
17
|
+
error: ['btn-error'],
|
|
49
18
|
icon: [
|
|
50
19
|
'btn-ghost',
|
|
51
20
|
'text-neutral',
|
|
@@ -56,109 +25,75 @@ const buttonContainer = cva(['btn'], {
|
|
|
56
25
|
'focus-visible:outline-current',
|
|
57
26
|
],
|
|
58
27
|
},
|
|
59
|
-
|
|
28
|
+
border: {
|
|
60
29
|
'round-none': ['rounded-none'],
|
|
61
30
|
'round-sm': ['rounded-btn-sm'],
|
|
62
31
|
'round-md': ['rounded-btn-md'],
|
|
63
32
|
'round-lg': ['rounded-btn-lg'],
|
|
33
|
+
'round-full': ['rounded-full'],
|
|
64
34
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
lg: ['px-8'],
|
|
71
|
-
},
|
|
72
|
-
height: {
|
|
73
|
-
fit: ['h-fit', 'min-h-[auto]'],
|
|
74
|
-
auto: ['h-auto', 'min-h-[auto]'],
|
|
75
|
-
full: ['h-full', 'min-h-full'],
|
|
76
|
-
'min-content': ['h-min', 'min-h-min'],
|
|
77
|
-
'max-content': ['h-max', 'min-h-max'],
|
|
78
|
-
normal: ['h-auto', 'min-h-12'],
|
|
35
|
+
size: {
|
|
36
|
+
xs: ['btn-xs'],
|
|
37
|
+
sm: ['btn-sm'],
|
|
38
|
+
md: ['btn-md'],
|
|
39
|
+
lg: ['btn-lg'],
|
|
79
40
|
},
|
|
80
|
-
width: {
|
|
81
|
-
fit: ['w-fit', 'min-w-[auto]'],
|
|
82
|
-
auto: ['w-auto', 'min-w-[auto]'],
|
|
83
|
-
full: ['w-full', 'min-w-full'],
|
|
84
|
-
'min-content': ['w-min', 'min-w-min'],
|
|
85
|
-
'max-content': ['w-max', 'min-w-max'],
|
|
86
|
-
normal: ['w-auto', 'min-w-fit'],
|
|
87
|
-
},
|
|
88
|
-
alignment: {
|
|
89
|
-
center: ['justify-center'],
|
|
90
|
-
left: ['justify-start'],
|
|
91
|
-
right: ['justify-end'],
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
compoundVariants: [],
|
|
95
|
-
defaultVariants: {
|
|
96
|
-
variant: 'primary',
|
|
97
|
-
shape: 'round-md',
|
|
98
|
-
padding: 'md',
|
|
99
|
-
height: 'normal',
|
|
100
|
-
width: 'normal',
|
|
101
|
-
alignment: 'center',
|
|
102
|
-
},
|
|
103
|
-
});
|
|
104
|
-
const buttonIcon = cva(['flex items-center'], {
|
|
105
|
-
variants: {
|
|
106
41
|
iconPosition: {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
right: ['flex-row-reverse gap-2'],
|
|
42
|
+
left: [''],
|
|
43
|
+
right: ['flex-row-reverse'],
|
|
110
44
|
},
|
|
111
45
|
},
|
|
112
46
|
compoundVariants: [],
|
|
113
47
|
defaultVariants: {
|
|
114
|
-
|
|
48
|
+
variant: 'primary',
|
|
49
|
+
border: 'round-sm',
|
|
50
|
+
size: 'md',
|
|
115
51
|
},
|
|
116
52
|
});
|
|
117
|
-
const buttonComponent = ({ variant, shape, padding, height, width, alignment, iconPosition } = {}) => cx(buttonContainer({ variant, shape, padding, height, width, alignment }), buttonIcon({ iconPosition }));
|
|
118
53
|
class ButtonComponent {
|
|
119
54
|
variant = input();
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
55
|
+
ghost = input(false);
|
|
56
|
+
outline = input(false);
|
|
57
|
+
circle = input(false);
|
|
58
|
+
square = input(false);
|
|
59
|
+
glass = input(false);
|
|
60
|
+
block = input(false);
|
|
61
|
+
loader = input(false);
|
|
62
|
+
border = input();
|
|
63
|
+
size = input();
|
|
125
64
|
iconPosition = input();
|
|
126
65
|
fontSize = input('body');
|
|
127
|
-
containerClasses = input('');
|
|
128
|
-
iconClasses = input('');
|
|
129
66
|
label = input('');
|
|
130
67
|
type = input('button');
|
|
131
68
|
icon = input();
|
|
132
|
-
fallbackIcon = matSearchOutline;
|
|
133
69
|
disabled = input(false);
|
|
134
70
|
get containerClass() {
|
|
135
|
-
return cn(
|
|
71
|
+
return cn(buttonComponent({
|
|
136
72
|
variant: this.variant(),
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
height: this.height(),
|
|
140
|
-
width: this.width(),
|
|
141
|
-
alignment: this.alignment(),
|
|
142
|
-
class: this.containerClasses(),
|
|
143
|
-
}));
|
|
144
|
-
}
|
|
145
|
-
get iconClass() {
|
|
146
|
-
return cn(buttonIcon({
|
|
73
|
+
border: this.border(),
|
|
74
|
+
size: this.size(),
|
|
147
75
|
iconPosition: this.iconPosition(),
|
|
148
|
-
|
|
149
|
-
|
|
76
|
+
}), {
|
|
77
|
+
'btn-ghost': this.ghost(),
|
|
78
|
+
'btn-outline': this.outline(),
|
|
79
|
+
'btn-circle rounded-full': this.circle(),
|
|
80
|
+
'btn-square': this.square(),
|
|
81
|
+
glass: this.glass(),
|
|
82
|
+
'w-full': this.block(),
|
|
83
|
+
'btn-loading': this.loader(),
|
|
84
|
+
});
|
|
150
85
|
}
|
|
151
86
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
152
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: ButtonComponent, isStandalone: true, selector: "st-button", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null },
|
|
87
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: ButtonComponent, isStandalone: true, selector: "st-button", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, ghost: { classPropertyName: "ghost", publicName: "ghost", isSignal: true, isRequired: false, transformFunction: null }, outline: { classPropertyName: "outline", publicName: "outline", isSignal: true, isRequired: false, transformFunction: null }, circle: { classPropertyName: "circle", publicName: "circle", isSignal: true, isRequired: false, transformFunction: null }, square: { classPropertyName: "square", publicName: "square", isSignal: true, isRequired: false, transformFunction: null }, glass: { classPropertyName: "glass", publicName: "glass", isSignal: true, isRequired: false, transformFunction: null }, block: { classPropertyName: "block", publicName: "block", isSignal: true, isRequired: false, transformFunction: null }, loader: { classPropertyName: "loader", publicName: "loader", isSignal: true, isRequired: false, transformFunction: null }, border: { classPropertyName: "border", publicName: "border", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, fontSize: { classPropertyName: "fontSize", publicName: "fontSize", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let iconVar = icon();\n@let fontSizeVar = fontSize();\n@let loaderVar = loader();\n\n<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t@if (iconVar) {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t}\n\t@if (loaderVar) {\n\t\t<span class=\"loading loading-spinner\"></span>\n\t}\n\t@if (!iconVar && this.label()) {\n\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t}\n</button>\n", styles: [""], dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "classes", "icon"] }] });
|
|
153
88
|
}
|
|
154
89
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
155
90
|
type: Component,
|
|
156
|
-
args: [{ selector: 'st-button', standalone: true, imports: [TypographyDirective, IconComponent], template: "@let
|
|
91
|
+
args: [{ selector: 'st-button', standalone: true, imports: [TypographyDirective, IconComponent], template: "@let iconVar = icon();\n@let fontSizeVar = fontSize();\n@let loaderVar = loader();\n\n<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t@if (iconVar) {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t}\n\t@if (loaderVar) {\n\t\t<span class=\"loading loading-spinner\"></span>\n\t}\n\t@if (!iconVar && this.label()) {\n\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t}\n</button>\n" }]
|
|
157
92
|
}] });
|
|
158
93
|
|
|
159
94
|
/**
|
|
160
95
|
* Generated bundle index. Do not edit.
|
|
161
96
|
*/
|
|
162
97
|
|
|
163
|
-
export { ButtonComponent, buttonComponent
|
|
98
|
+
export { ButtonComponent, buttonComponent };
|
|
164
99
|
//# sourceMappingURL=sixbell-telco-sdk-components-button.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-button.mjs","sources":["../../../projects/sdk/components/button/src/button.component.ts","../../../projects/sdk/components/button/src/button.component.html","../../../projects/sdk/components/button/sixbell-telco-sdk-components-button.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matSearchOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { TypographyDirective, TypographyVariantProps } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\nexport const buttonContainer = cva(['btn'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['btn-primary', 'h-auto', 'active:hover:shadow-primary', 'active:focus:shadow-primary'],\n\t\t\twarning: ['btn-warning', 'h-auto'],\n\t\t\terror: ['btn-error', 'h-auto'],\n\t\t\tsecondary: ['btn-secondary', 'h-auto'],\n\t\t\t'ghost-primary': [\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:text-primary-content',\n\t\t\t\t'hover:bg-primary',\n\t\t\t\t'active:focus:bg-primary',\n\t\t\t\t'active:focus:border-primary',\n\t\t\t\t'focus-visible:outline-current',\n\t\t\t],\n\t\t\t'ghost-error': [\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:text-error-content',\n\t\t\t\t'hover:bg-error',\n\t\t\t\t'active:focus:bg-error',\n\t\t\t\t'active:focus:border-error',\n\t\t\t\t'focus-visible:outline-current',\n\t\t\t],\n\t\t\tcircle: [\n\t\t\t\t'btn-circle',\n\t\t\t\t'btn-outline',\n\t\t\t\t'text-neutral',\n\t\t\t\t'border-ring',\n\t\t\t\t'hover:text-neutral',\n\t\t\t\t'hover:border-ring-accent',\n\t\t\t\t'hover:bg-transparent',\n\t\t\t\t'active:hover:text-neutral-content',\n\t\t\t\t'active:hover:bg-ring-accent',\n\t\t\t\t'active:focus:border-ring-accent',\n\t\t\t\t'focus-visible:outline-ring-accent',\n\t\t\t],\n\t\t\ticon: [\n\t\t\t\t'btn-ghost',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:text-primary',\n\t\t\t\t'hover:bg-transparent',\n\t\t\t\t'active:focus:bg-transparent',\n\t\t\t\t'active:focus:border-transparent',\n\t\t\t\t'focus-visible:outline-current',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['rounded-none'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tpadding: {\n\t\t\tnone: ['px-0', 'py-0'],\n\t\t\tnormal: ['px-3', 'py-3'],\n\t\t\tsm: ['px-4'],\n\t\t\tmd: ['px-6'],\n\t\t\tlg: ['px-8'],\n\t\t},\n\t\theight: {\n\t\t\tfit: ['h-fit', 'min-h-[auto]'],\n\t\t\tauto: ['h-auto', 'min-h-[auto]'],\n\t\t\tfull: ['h-full', 'min-h-full'],\n\t\t\t'min-content': ['h-min', 'min-h-min'],\n\t\t\t'max-content': ['h-max', 'min-h-max'],\n\t\t\tnormal: ['h-auto', 'min-h-12'],\n\t\t},\n\t\twidth: {\n\t\t\tfit: ['w-fit', 'min-w-[auto]'],\n\t\t\tauto: ['w-auto', 'min-w-[auto]'],\n\t\t\tfull: ['w-full', 'min-w-full'],\n\t\t\t'min-content': ['w-min', 'min-w-min'],\n\t\t\t'max-content': ['w-max', 'min-w-max'],\n\t\t\tnormal: ['w-auto', 'min-w-fit'],\n\t\t},\n\t\talignment: {\n\t\t\tcenter: ['justify-center'],\n\t\t\tleft: ['justify-start'],\n\t\t\tright: ['justify-end'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'primary',\n\t\tshape: 'round-md',\n\t\tpadding: 'md',\n\t\theight: 'normal',\n\t\twidth: 'normal',\n\t\talignment: 'center',\n\t},\n});\n\nexport type ButtonContainerVariantProps =\n\t| 'primary'\n\t| 'warning'\n\t| 'error'\n\t| 'secondary'\n\t| 'ghost-primary'\n\t| 'ghost-error'\n\t| 'circle'\n\t| 'icon'\n\t| null\n\t| undefined;\nexport type ButtonContainerShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type ButtonContainerPaddingProps = 'none' | 'normal' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type ButtonContainerHeightProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | 'normal' | null | undefined;\nexport type ButtonContainerWidthProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | 'normal' | null | undefined;\nexport type ButtonContainerAlignmentProps = 'center' | 'left' | 'right' | null | undefined;\n\nexport const buttonIcon = cva(['flex items-center'], {\n\tvariants: {\n\t\ticonPosition: {\n\t\t\tcenter: ['justify-center'],\n\t\t\tleft: ['flex-row gap-2'],\n\t\t\tright: ['flex-row-reverse gap-2'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\ticonPosition: 'left',\n\t},\n});\n\nexport type ButtonIconVariantProps = 'center' | 'left' | 'right' | null | undefined;\n\nexport type ButtonProps = {\n\tvariant?: ButtonContainerVariantProps;\n\tshape?: ButtonContainerShapeProps;\n\tpadding?: ButtonContainerPaddingProps;\n\theight?: ButtonContainerHeightProps;\n\twidth?: ButtonContainerWidthProps;\n\talignment?: ButtonContainerAlignmentProps;\n\ticonPosition?: ButtonIconVariantProps;\n};\nexport const buttonComponent = ({ variant, shape, padding, height, width, alignment, iconPosition }: ButtonProps = {}) =>\n\tcx(buttonContainer({ variant, shape, padding, height, width, alignment }), buttonIcon({ iconPosition }));\n\ntype HTMLButtonType = 'button' | 'submit' | 'reset';\n\n@Component({\n\tselector: 'st-button',\n\tstandalone: true,\n\timports: [TypographyDirective, IconComponent],\n\ttemplateUrl: './button.component.html',\n\tstyles: '',\n})\nexport class ButtonComponent {\n\tvariant = input<ButtonContainerVariantProps>();\n\tshape = input<ButtonContainerShapeProps>();\n\tpadding = input<ButtonContainerPaddingProps>();\n\theight = input<ButtonContainerHeightProps>();\n\twidth = input<ButtonContainerWidthProps>();\n\talignment = input<ButtonContainerAlignmentProps>();\n\ticonPosition = input<ButtonIconVariantProps>();\n\tfontSize = input<TypographyVariantProps>('body');\n\tcontainerClasses = input<string>('');\n\ticonClasses = input<string>('');\n\tlabel = input<string>('');\n\ttype = input<HTMLButtonType>('button');\n\ticon = input<string | undefined>();\n\tfallbackIcon = matSearchOutline;\n\tdisabled = input<boolean>(false);\n\n\tget containerClass() {\n\t\treturn cn(\n\t\t\tbuttonContainer({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\theight: this.height(),\n\t\t\t\twidth: this.width(),\n\t\t\t\talignment: this.alignment(),\n\t\t\t\tclass: this.containerClasses(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget iconClass() {\n\t\treturn cn(\n\t\t\tbuttonIcon({\n\t\t\t\ticonPosition: this.iconPosition(),\n\t\t\t\tclass: this.iconClasses(),\n\t\t\t}),\n\t\t);\n\t}\n}\n","@let variantVar = variant();\n@let iconVar = icon();\n@let fontSizeVar = fontSize();\n\n@if (\n\tvariantVar === 'primary' ||\n\tvariantVar === 'warning' ||\n\tvariantVar === 'error' ||\n\tvariantVar === 'secondary' ||\n\tvariantVar === 'ghost-primary' ||\n\tvariantVar === 'ghost-error'\n) {\n\t<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t\t@if (iconVar) {\n\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t@if (this.label()) {\n\t\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t\t}\n\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t}\n\t\t\t</span>\n\t\t}\n\t\t@if (!iconVar && this.label()) {\n\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t}\n\t</button>\n} @else if (variantVar === 'circle' || variantVar === 'icon') {\n\t<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"md\"></st-icon>\n\t</button>\n} @else {\n\t<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t\t@if (iconVar) {\n\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t@if (this.label()) {\n\t\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t\t\t}\n\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t}\n\t\t\t</span>\n\t\t}\n\t\t@if (!iconVar && this.label()) {\n\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t\t}\n\t</button>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAMa,eAAe,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE;AAC3C,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,6BAA6B,EAAE,6BAA6B,CAAC;AAChG,YAAA,OAAO,EAAE,CAAC,aAAa,EAAE,QAAQ,CAAC;AAClC,YAAA,KAAK,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC;AAC9B,YAAA,SAAS,EA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A,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,0mEAkDA,EDsGW,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,mBAAmB,8IAAE,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,SAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIhC,eAAe,EAAA,UAAA,EAAA,CAAA;kBAP3B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,cACT,IAAI,EAAA,OAAA,EACP,CAAC,mBAAmB,EAAE,aAAa,CAAC,EAAA,QAAA,EAAA,0mEAAA,EAAA,CAAA;;;AExJ9C;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-button.mjs","sources":["../../../projects/sdk/components/button/src/button.component.ts","../../../projects/sdk/components/button/src/button.component.html","../../../projects/sdk/components/button/sixbell-telco-sdk-components-button.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { TypographyDirective, TypographyVariantProps } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nexport const buttonComponent = cva(['btn'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['btn-primary'],\n\t\t\tsecondary: ['btn-secondary'],\n\t\t\taccent: ['btn-accent'],\n\t\t\tinfo: ['btn-info'],\n\t\t\tsuccess: ['btn-success'],\n\t\t\twarning: ['btn-warning'],\n\t\t\terror: ['btn-error'],\n\t\t\ticon: [\n\t\t\t\t'btn-ghost',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:text-primary',\n\t\t\t\t'hover:bg-transparent',\n\t\t\t\t'active:focus:bg-transparent',\n\t\t\t\t'active:focus:border-transparent',\n\t\t\t\t'focus-visible:outline-current',\n\t\t\t],\n\t\t},\n\t\tborder: {\n\t\t\t'round-none': ['rounded-none'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t\t'round-full': ['rounded-full'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['btn-xs'],\n\t\t\tsm: ['btn-sm'],\n\t\t\tmd: ['btn-md'],\n\t\t\tlg: ['btn-lg'],\n\t\t},\n\t\ticonPosition: {\n\t\t\tleft: [''],\n\t\t\tright: ['flex-row-reverse'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'primary',\n\t\tborder: 'round-sm',\n\t\tsize: 'md',\n\t},\n});\n\nexport type ButtonComponentVariantProps = 'primary' | 'warning' | 'error' | 'secondary' | 'icon' | null | undefined;\nexport type ButtonComponentBorderProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type ButtonComponentSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type ButtonComponentIconPositionProps = 'left' | 'right' | null | undefined;\n\nexport type ButtonProps = {\n\tvariant?: ButtonComponentVariantProps;\n\tborder?: ButtonComponentBorderProps;\n\tsize?: ButtonComponentSizeProps;\n\ticonPosition?: ButtonComponentIconPositionProps;\n};\n\ntype HTMLButtonType = 'button' | 'submit' | 'reset';\n\n@Component({\n\tselector: 'st-button',\n\tstandalone: true,\n\timports: [TypographyDirective, IconComponent],\n\ttemplateUrl: './button.component.html',\n\tstyles: '',\n})\nexport class ButtonComponent {\n\tvariant = input<ButtonComponentVariantProps>();\n\tghost = input<boolean>(false);\n\toutline = input<boolean>(false);\n\tcircle = input<boolean>(false);\n\tsquare = input<boolean>(false);\n\tglass = input<boolean>(false);\n\tblock = input<boolean>(false);\n\tloader = input<boolean>(false);\n\tborder = input<ButtonComponentBorderProps>();\n\tsize = input<ButtonComponentSizeProps>();\n\ticonPosition = input<ButtonComponentIconPositionProps>();\n\tfontSize = input<TypographyVariantProps>('body');\n\tlabel = input<string>('');\n\ttype = input<HTMLButtonType>('button');\n\ticon = input<string | undefined>();\n\tdisabled = input<boolean>(false);\n\n\tget containerClass() {\n\t\treturn cn(\n\t\t\tbuttonComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tborder: this.border(),\n\t\t\t\tsize: this.size(),\n\t\t\t\ticonPosition: this.iconPosition(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'btn-ghost': this.ghost(),\n\t\t\t\t'btn-outline': this.outline(),\n\t\t\t\t'btn-circle rounded-full': this.circle(),\n\t\t\t\t'btn-square': this.square(),\n\t\t\t\tglass: this.glass(),\n\t\t\t\t'w-full': this.block(),\n\t\t\t\t'btn-loading': this.loader(),\n\t\t\t},\n\t\t);\n\t}\n}\n","@let iconVar = icon();\n@let fontSizeVar = fontSize();\n@let loaderVar = loader();\n\n<button [class]=\"containerClass\" [type]=\"type()\" [disabled]=\"disabled()\">\n\t@if (iconVar) {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t}\n\t@if (loaderVar) {\n\t\t<span class=\"loading loading-spinner\"></span>\n\t}\n\t@if (!iconVar && this.label()) {\n\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ label() }}</span>\n\t}\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAKa,eAAe,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE;AAC3C,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,aAAa,CAAC;YACxB,SAAS,EAAE,CAAC,eAAe,CAAC;YAC5B,MAAM,EAAE,CAAC,YAAY,CAAC;YACtB,IAAI,EAAE,CAAC,UAAU,CAAC;YAClB,OAAO,EAAE,CAAC,aAAa,CAAC;YACxB,OAAO,EAAE,CAAC,aAAa,CAAC;YACxB,KAAK,EAAE,CAAC,WAAW,CAAC;AACpB,YAAA,IAAI,EAAE;gBACL,WAAW;gBACX,cAAc;gBACd,oBAAoB;gBACpB,sBAAsB;gBACtB,6BAA6B;gBAC7B,iCAAiC;gBACjC,+BAA+B;AAC/B,aAAA;AACD,SAAA;AACD,QAAA,MAAM,EAAE;YACP,YAAY,EAAE,CAAC,cAAc,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,YAAY,EAAE,CAAC,cAAc,CAAC;AAC9B,SAAA;AACD,QAAA,IAAI,EAAE;YACL,EAAE,EAAE,CAAC,QAAQ,CAAC;YACd,EAAE,EAAE,CAAC,QAAQ,CAAC;YACd,EAAE,EAAE,CAAC,QAAQ,CAAC;YACd,EAAE,EAAE,CAAC,QAAQ,CAAC;AACd,SAAA;AACD,QAAA,YAAY,EAAE;YACb,IAAI,EAAE,CAAC,EAAE,CAAC;YACV,KAAK,EAAE,CAAC,kBAAkB,CAAC;AAC3B,SAAA;AACD,KAA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/components/button';
|
|
5
5
|
import { CheckboxComponent } from '@sixbell-telco/sdk/components/forms/checkbox';
|
|
6
6
|
import { InputComponent } from '@sixbell-telco/sdk/components/forms/input';
|
|
7
|
+
import { matChevronLeftOutline, matChevronRightOutline } from '@sixbell-telco/sdk/components/icon/material/outline';
|
|
7
8
|
import { TableComponent } from '@sixbell-telco/sdk/components/table';
|
|
8
9
|
import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
|
|
9
|
-
import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
10
10
|
import * as i1 from 'ngx-pagination';
|
|
11
11
|
import { NgxPaginationModule } from 'ngx-pagination';
|
|
12
12
|
|
|
13
13
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
14
14
|
class DualListComponent {
|
|
15
15
|
// Styles for tables
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
leftTableShape = input();
|
|
21
|
-
leftTableContentClasses = input('');
|
|
22
|
-
leftTableContainerClasses = input('');
|
|
23
|
-
rightTableVariant = input();
|
|
24
|
-
rightTableSize = input();
|
|
25
|
-
rightTableHeight = input();
|
|
26
|
-
rightTableShadow = input();
|
|
27
|
-
rightTableShape = input();
|
|
28
|
-
rightTableContentClasses = input('');
|
|
29
|
-
rightTableContainerClasses = input('');
|
|
30
|
-
leftTableVariantsClasses() {
|
|
31
|
-
return {
|
|
32
|
-
variant: this.leftTableVariant() ?? 'zebra',
|
|
33
|
-
height: this.leftTableHeight() ?? 'full',
|
|
34
|
-
size: this.leftTableSize(),
|
|
35
|
-
shadow: this.leftTableShadow(),
|
|
36
|
-
shape: this.leftTableShape(),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
rightTableVariantsClasses() {
|
|
40
|
-
return {
|
|
41
|
-
variant: this.rightTableVariant() ?? 'zebra',
|
|
42
|
-
height: this.rightTableHeight() ?? 'full',
|
|
43
|
-
size: this.rightTableSize(),
|
|
44
|
-
shadow: this.rightTableShadow(),
|
|
45
|
-
shape: this.rightTableShape(),
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
get leftTableContainerClass() {
|
|
49
|
-
return cn('px-0 flex-1', this.leftTableContainerClasses());
|
|
50
|
-
}
|
|
51
|
-
get rightTableContainerClass() {
|
|
52
|
-
return cn('px-0 flex-1', this.rightTableContainerClasses());
|
|
53
|
-
}
|
|
16
|
+
size = input('md');
|
|
17
|
+
height = input('sm');
|
|
18
|
+
inputPlaceholder = input('Search');
|
|
19
|
+
emptyListMessage = input('No items to show');
|
|
54
20
|
// Styles for buttons
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
buttonAddIconClasses = input('');
|
|
58
|
-
buttonAddLabel = input('Agregar');
|
|
59
|
-
buttonRemoveVariant = input({ variant: 'secondary', width: 'full' });
|
|
60
|
-
buttonRemoveContainerClasses = input('');
|
|
61
|
-
buttonRemoveIconClasses = input('');
|
|
62
|
-
buttonRemoveLabel = input('Quitar');
|
|
63
|
-
buttonAddClasses() {
|
|
64
|
-
const { variant, width, height, shape, padding, iconPosition, alignment } = this.buttonAddVariant();
|
|
65
|
-
return { variant: variant ?? 'primary', width: width ?? 'full', height, shape, padding, iconPosition, alignment };
|
|
66
|
-
}
|
|
67
|
-
buttonRemoveClasses() {
|
|
68
|
-
const { variant, width, height, shape, padding, iconPosition, alignment } = this.buttonRemoveVariant();
|
|
69
|
-
return { variant: variant ?? 'secondary', width: width ?? 'full', height, shape, padding, iconPosition, alignment };
|
|
70
|
-
}
|
|
21
|
+
chevronLeftIcon = matChevronLeftOutline;
|
|
22
|
+
chevronRightIcon = matChevronRightOutline;
|
|
71
23
|
// Key and label inputs and getters
|
|
72
24
|
key = input('id');
|
|
73
|
-
|
|
25
|
+
value = input('item');
|
|
26
|
+
label = input('');
|
|
74
27
|
titleLeft = input('');
|
|
75
28
|
titleRight = input('');
|
|
76
29
|
getKey(item) {
|
|
77
30
|
return item[this.key()];
|
|
78
31
|
}
|
|
79
|
-
|
|
80
|
-
return item[this.
|
|
32
|
+
getValue(item) {
|
|
33
|
+
return item[this.value()];
|
|
34
|
+
}
|
|
35
|
+
getLabel() {
|
|
36
|
+
return this.label()
|
|
37
|
+
.replace(/([A-Z])/g, ' $1')
|
|
38
|
+
.replace(/^./, function (str) {
|
|
39
|
+
return str.toUpperCase();
|
|
40
|
+
});
|
|
81
41
|
}
|
|
82
42
|
// Signals for dual list management
|
|
83
43
|
items = input.required();
|
|
@@ -120,7 +80,7 @@ class DualListComponent {
|
|
|
120
80
|
searchTargetComputed = computed(() => {
|
|
121
81
|
if (this.searchTarget() === '')
|
|
122
82
|
return this.target();
|
|
123
|
-
return this.target().filter((item) => `${item[this.
|
|
83
|
+
return this.target().filter((item) => `${item[this.value()]}`.toLowerCase().includes(this.searchTarget().toLowerCase()));
|
|
124
84
|
});
|
|
125
85
|
handleTargetListSearch(search) {
|
|
126
86
|
this.searchTarget.set(search);
|
|
@@ -206,11 +166,11 @@ class DualListComponent {
|
|
|
206
166
|
this.target.set(items);
|
|
207
167
|
}
|
|
208
168
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: DualListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
209
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: DualListComponent, isStandalone: true, selector: "st-dual-list", inputs: { leftTableVariant: { classPropertyName: "leftTableVariant", publicName: "leftTableVariant", isSignal: true, isRequired: false, transformFunction: null }, leftTableSize: { classPropertyName: "leftTableSize", publicName: "leftTableSize", isSignal: true, isRequired: false, transformFunction: null }, leftTableHeight: { classPropertyName: "leftTableHeight", publicName: "leftTableHeight", isSignal: true, isRequired: false, transformFunction: null }, leftTableShadow: { classPropertyName: "leftTableShadow", publicName: "leftTableShadow", isSignal: true, isRequired: false, transformFunction: null }, leftTableShape: { classPropertyName: "leftTableShape", publicName: "leftTableShape", isSignal: true, isRequired: false, transformFunction: null }, leftTableContentClasses: { classPropertyName: "leftTableContentClasses", publicName: "leftTableContentClasses", isSignal: true, isRequired: false, transformFunction: null }, leftTableContainerClasses: { classPropertyName: "leftTableContainerClasses", publicName: "leftTableContainerClasses", isSignal: true, isRequired: false, transformFunction: null }, rightTableVariant: { classPropertyName: "rightTableVariant", publicName: "rightTableVariant", isSignal: true, isRequired: false, transformFunction: null }, rightTableSize: { classPropertyName: "rightTableSize", publicName: "rightTableSize", isSignal: true, isRequired: false, transformFunction: null }, rightTableHeight: { classPropertyName: "rightTableHeight", publicName: "rightTableHeight", isSignal: true, isRequired: false, transformFunction: null }, rightTableShadow: { classPropertyName: "rightTableShadow", publicName: "rightTableShadow", isSignal: true, isRequired: false, transformFunction: null }, rightTableShape: { classPropertyName: "rightTableShape", publicName: "rightTableShape", isSignal: true, isRequired: false, transformFunction: null }, rightTableContentClasses: { classPropertyName: "rightTableContentClasses", publicName: "rightTableContentClasses", isSignal: true, isRequired: false, transformFunction: null }, rightTableContainerClasses: { classPropertyName: "rightTableContainerClasses", publicName: "rightTableContainerClasses", isSignal: true, isRequired: false, transformFunction: null }, buttonAddVariant: { classPropertyName: "buttonAddVariant", publicName: "buttonAddVariant", isSignal: true, isRequired: false, transformFunction: null }, buttonAddContainerClasses: { classPropertyName: "buttonAddContainerClasses", publicName: "buttonAddContainerClasses", isSignal: true, isRequired: false, transformFunction: null }, buttonAddIconClasses: { classPropertyName: "buttonAddIconClasses", publicName: "buttonAddIconClasses", isSignal: true, isRequired: false, transformFunction: null }, buttonAddLabel: { classPropertyName: "buttonAddLabel", publicName: "buttonAddLabel", isSignal: true, isRequired: false, transformFunction: null }, buttonRemoveVariant: { classPropertyName: "buttonRemoveVariant", publicName: "buttonRemoveVariant", isSignal: true, isRequired: false, transformFunction: null }, buttonRemoveContainerClasses: { classPropertyName: "buttonRemoveContainerClasses", publicName: "buttonRemoveContainerClasses", isSignal: true, isRequired: false, transformFunction: null }, buttonRemoveIconClasses: { classPropertyName: "buttonRemoveIconClasses", publicName: "buttonRemoveIconClasses", isSignal: true, isRequired: false, transformFunction: null }, buttonRemoveLabel: { classPropertyName: "buttonRemoveLabel", publicName: "buttonRemoveLabel", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, titleLeft: { classPropertyName: "titleLeft", publicName: "titleLeft", isSignal: true, isRequired: false, transformFunction: null }, titleRight: { classPropertyName: "titleRight", publicName: "titleRight", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, addedItems: { classPropertyName: "addedItems", publicName: "addedItems", isSignal: true, isRequired: true, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onListChange: "onListChange", onSearch: "onSearch", onPageChange: "onPageChange", onPageSizeChange: "onPageSizeChange" }, ngImport: i0, template: "@let id = pagination().id;\n@let currentPage = pagination().currentPage;\n@let itemsPerPage = pagination().itemsPerPage;\n@let titleLeftVar = titleLeft();\n@let titleRightVar = titleRight();\n<div class=\"grid grid-cols-[3fr_min-content_3fr] gap-6\">\n\t<div class=\"flex flex-col rounded-[16px] border-[1px] border-secondary p-4 shadow-secondary\">\n\t\t@if (titleLeftVar) {\n\t\t\t<div class=\"mb-5\">\n\t\t\t\t<h3 typography [typographyVariant]=\"'h3'\">{{ titleLeftVar }}</h3>\n\t\t\t</div>\n\t\t}\n\t\t<st-input placeholder=\"Buscar...\" (onEnter)=\"handleSearch($event)\" (onDebounceChange)=\"handleSearch($event)\" [variant]=\"'icon'\" />\n\t\t<st-table\n\t\t\t[pagination]=\"pagination()\"\n\t\t\t[totalItems]=\"totalItems()\"\n\t\t\terror=\"No se encontraron elementos\"\n\t\t\t(onPageChange)=\"handlePageChange($event)\"\n\t\t\t(onPageSizeChange)=\"handlePageSizeChange($event)\"\n\t\t\t[showItemsPerPage]=\"false\"\n\t\t\t[showEntries]=\"false\"\n\t\t\t[maxSize]=\"6\"\n\t\t\t[contentClasses]=\"leftTableContentClasses()\"\n\t\t\t[containerClasses]=\"leftTableContainerClass\"\n\t\t\t[variant]=\"leftTableVariantsClasses().variant\"\n\t\t\t[size]=\"leftTableVariantsClasses().size\"\n\t\t\t[height]=\"leftTableVariantsClasses().height\"\n\t\t\t[shadow]=\"leftTableVariantsClasses().shadow\"\n\t\t\t[shape]=\"leftTableVariantsClasses().shape\"\n\t\t\tclass=\"h-full\"\n\t\t\t[showEntries]=\"false\"\n\t\t\t[showItemsPerPage]=\"false\"\n\t\t>\n\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t<th class=\"rounded-bl-box-lg rounded-tl-box-lg border-[1px] border-r-0 border-solid border-accent\">\n\t\t\t\t\t\t<st-checkbox [value]=\"allToAdd()\" (onChange)=\"handleSelectAll($event)\"></st-checkbox>\n\t\t\t\t\t</th>\n\t\t\t\t\t<th class=\"rounded-br-box-lg rounded-tr-box-lg border-[1px] border-l-0 border-solid border-accent\">Item</th>\n\t\t\t\t</tr>\n\t\t\t</thead>\n\t\t\t<tbody>\n\t\t\t\t@for (item of computedItems() | paginate: { id, currentPage, itemsPerPage, totalItems: totalItems() }; track getKey(item)) {\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<st-checkbox [(value)]=\"item.selected\" (onChange)=\"handleSelectSourceItem($event, item)\"></st-checkbox>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>{{ getLabel(item) }}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t}\n\t\t\t</tbody>\n\t\t</st-table>\n\t</div>\n\n\t<!-- Buttons -->\n\t@let buttonAddContainerClassesVar = buttonAddContainerClasses();\n\t@let buttonAddIconClassesVar = buttonAddIconClasses();\n\t@let buttonAddLabelVar = buttonAddLabel();\n\t@let buttonRemoveContainerClassesVar = buttonRemoveContainerClasses();\n\t@let buttonRemoveIconClassesVar = buttonRemoveIconClasses();\n\t@let buttonRemoveLabelVar = buttonRemoveLabel();\n\n\t<div class=\"grid place-content-center gap-4\">\n\t\t<st-button\n\t\t\t[variant]=\"this.buttonAddClasses().variant\"\n\t\t\t[shape]=\"this.buttonAddClasses().shape\"\n\t\t\t[padding]=\"this.buttonAddClasses().padding\"\n\t\t\t[height]=\"this.buttonAddClasses().height\"\n\t\t\t[width]=\"this.buttonAddClasses().width\"\n\t\t\t[alignment]=\"this.buttonAddClasses().alignment\"\n\t\t\t[iconPosition]=\"this.buttonAddClasses().iconPosition\"\n\t\t\t[label]=\"buttonAddLabelVar\"\n\t\t\t[containerClasses]=\"buttonAddContainerClassesVar\"\n\t\t\t[iconClasses]=\"buttonAddIconClassesVar\"\n\t\t\t(click)=\"handleAddItems()\"\n\t\t/>\n\t\t<st-button\n\t\t\t[variant]=\"this.buttonRemoveClasses().variant\"\n\t\t\t[shape]=\"this.buttonRemoveClasses().shape\"\n\t\t\t[padding]=\"this.buttonRemoveClasses().padding\"\n\t\t\t[height]=\"this.buttonRemoveClasses().height\"\n\t\t\t[width]=\"this.buttonRemoveClasses().width\"\n\t\t\t[alignment]=\"this.buttonRemoveClasses().alignment\"\n\t\t\t[iconPosition]=\"this.buttonRemoveClasses().iconPosition\"\n\t\t\t[label]=\"buttonRemoveLabelVar\"\n\t\t\t[containerClasses]=\"buttonRemoveContainerClassesVar\"\n\t\t\t[iconClasses]=\"buttonRemoveIconClassesVar\"\n\t\t\t(click)=\"handleRemoveItems()\"\n\t\t/>\n\t</div>\n\n\t<!-- END Buttons -->\n\n\t<div class=\"flex flex-col rounded-[16px] border-[1px] border-secondary p-4 shadow-secondary\">\n\t\t@if (titleRightVar) {\n\t\t\t<div class=\"mb-5\">\n\t\t\t\t<h3 typography [typographyVariant]=\"'h3'\">{{ titleRightVar }}</h3>\n\t\t\t</div>\n\t\t}\n\t\t<st-input\n\t\t\tplaceholder=\"Buscar...\"\n\t\t\t(onEnter)=\"handleTargetListSearch($event)\"\n\t\t\t(onDebounceChange)=\"handleTargetListSearch($event)\"\n\t\t\t[variant]=\"'icon'\"\n\t\t/>\n\t\t@let added = searchTargetComputed();\n\t\t@if (added) {\n\t\t\t<st-table\n\t\t\t\t[data]=\"added\"\n\t\t\t\terror=\"Sin elementos para mostrar\"\n\t\t\t\t[contentClasses]=\"rightTableContentClasses()\"\n\t\t\t\t[containerClasses]=\"rightTableContainerClass\"\n\t\t\t\t[variant]=\"rightTableVariantsClasses().variant\"\n\t\t\t\t[size]=\"rightTableVariantsClasses().size\"\n\t\t\t\t[height]=\"rightTableVariantsClasses().height\"\n\t\t\t\t[shadow]=\"rightTableVariantsClasses().shadow\"\n\t\t\t\t[shape]=\"rightTableVariantsClasses().shape\"\n\t\t\t>\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th class=\"rounded-bl-box-lg rounded-tl-box-lg border-[1px] border-r-0 border-solid border-accent\">\n\t\t\t\t\t\t\t@if (searchTarget() === '') {\n\t\t\t\t\t\t\t\t<st-checkbox [value]=\"allToRemove()\" (onChange)=\"handleSelectAllToRemove($event)\"></st-checkbox>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</th>\n\t\t\t\t\t\t<th class=\"rounded-br-box-lg rounded-tr-box-lg border-[1px] border-l-0 border-solid border-accent\">Item</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t@for (item of added; track getKey(item)) {\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<st-checkbox [(value)]=\"item.selected\" (onChange)=\"handleSelectTargetItem($event, item)\"></st-checkbox>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td>{{ getLabel(item) }}</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t}\n\t\t\t\t</tbody>\n\t\t\t</st-table>\n\t\t}\n\t</div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: TableComponent, selector: "st-table", inputs: ["variant", "size", "height", "shadow", "shape", "contentClasses", "containerClasses", "paginatorType", "data", "totalItems", "error", "pagination", "maxSize", "showItemsPerPage", "showEntries"], outputs: ["onPageChange", "onPageSizeChange", "onCheck"] }, { kind: "component", type: CheckboxComponent, selector: "st-checkbox", inputs: ["variant", "size", "classes", "label", "name", "value", "disabled"], outputs: ["valueChange", "disabledChange", "onChange"] }, { kind: "component", type: InputComponent, selector: "st-input", inputs: ["variant", "shape", "size", "classes", "label", "type", "name", "placeholder", "icon", "iconPosition", "iconClasses", "readonly", "value", "parentForm", "formControlName", "disabled", "debounceTime"], outputs: ["valueChange", "disabledChange", "onEnter", "onBlur", "onDebounceChange"] }, { kind: "ngmodule", type: NgxPaginationModule }, { kind: "pipe", type: i1.PaginatePipe, name: "paginate" }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "shape", "padding", "height", "width", "alignment", "iconPosition", "fontSize", "containerClasses", "iconClasses", "label", "type", "icon", "disabled"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }] });
|
|
169
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: DualListComponent, isStandalone: true, selector: "st-dual-list", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, inputPlaceholder: { classPropertyName: "inputPlaceholder", publicName: "inputPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, emptyListMessage: { classPropertyName: "emptyListMessage", publicName: "emptyListMessage", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, titleLeft: { classPropertyName: "titleLeft", publicName: "titleLeft", isSignal: true, isRequired: false, transformFunction: null }, titleRight: { classPropertyName: "titleRight", publicName: "titleRight", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, addedItems: { classPropertyName: "addedItems", publicName: "addedItems", isSignal: true, isRequired: true, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onListChange: "onListChange", onSearch: "onSearch", onPageChange: "onPageChange", onPageSizeChange: "onPageSizeChange" }, ngImport: i0, template: "@let id = pagination().id;\n@let currentPage = pagination().currentPage;\n@let itemsPerPage = pagination().itemsPerPage;\n@let titleLeftVar = titleLeft();\n@let titleRightVar = titleRight();\n@let heightVar = height();\n@let sizeVar = size();\n@let inputPlaceholderVar = inputPlaceholder();\n@let emptyListMessageVar = emptyListMessage();\n<div class=\"grid flex-1 grid-cols-[3fr_min-content_3fr] gap-6\">\n\t<div class=\"flex flex-col gap-6 rounded-box border border-neutral p-6\">\n\t\t@if (titleLeftVar) {\n\t\t\t<div>\n\t\t\t\t<h3 typography [typographyVariant]=\"'h3'\">{{ titleLeftVar }}</h3>\n\t\t\t</div>\n\t\t}\n\t\t<div class=\"flex h-full flex-col gap-4\">\n\t\t\t<st-input [placeholder]=\"inputPlaceholderVar\" (onEnter)=\"handleSearch($event)\" (onDebounceChange)=\"handleSearch($event)\" [variant]=\"'icon'\" />\n\t\t\t<st-table\n\t\t\t\t[pagination]=\"pagination()\"\n\t\t\t\t[totalItems]=\"totalItems()\"\n\t\t\t\t[error]=\"emptyListMessageVar\"\n\t\t\t\t(onPageChange)=\"handlePageChange($event)\"\n\t\t\t\t(onPageSizeChange)=\"handlePageSizeChange($event)\"\n\t\t\t\t[showItemsPerPage]=\"false\"\n\t\t\t\t[showEntries]=\"false\"\n\t\t\t\t[maxSize]=\"6\"\n\t\t\t\t[size]=\"sizeVar\"\n\t\t\t\t[height]=\"heightVar\"\n\t\t\t\t[pinRows]=\"true\"\n\t\t\t\tclass=\"h-full\"\n\t\t\t\t[showEntries]=\"false\"\n\t\t\t\t[showItemsPerPage]=\"false\"\n\t\t\t>\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th class=\"w-6\">\n\t\t\t\t\t\t\t<st-checkbox [value]=\"allToAdd()\" (onChange)=\"handleSelectAll($event)\"></st-checkbox>\n\t\t\t\t\t\t</th>\n\t\t\t\t\t\t<th>{{ getLabel() }}</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t@for (item of computedItems() | paginate: { id, currentPage, itemsPerPage, totalItems: totalItems() }; track getKey(item)) {\n\t\t\t\t\t\t<tr class=\"hover\">\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<st-checkbox [(value)]=\"item.selected\" (onChange)=\"handleSelectSourceItem($event, item)\"></st-checkbox>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td>{{ getValue(item) }}</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t}\n\t\t\t\t</tbody>\n\t\t\t</st-table>\n\t\t</div>\n\t</div>\n\n\t<!-- Buttons -->\n\t<div class=\"grid place-content-center gap-4\">\n\t\t<st-button variant=\"secondary\" [circle]=\"true\" [icon]=\"chevronRightIcon\" (click)=\"handleAddItems()\" />\n\t\t<st-button variant=\"secondary\" [circle]=\"true\" [icon]=\"chevronLeftIcon\" (click)=\"handleRemoveItems()\" />\n\t</div>\n\n\t<!-- END Buttons -->\n\n\t<div class=\"flex flex-1 flex-col gap-6 rounded-box border border-neutral p-6\">\n\t\t@if (titleRightVar) {\n\t\t\t<div>\n\t\t\t\t<h3 typography [typographyVariant]=\"'h3'\">{{ titleRightVar }}</h3>\n\t\t\t</div>\n\t\t}\n\t\t<div class=\"flex h-full flex-col gap-4\">\n\t\t\t<st-input\n\t\t\t\t[placeholder]=\"inputPlaceholderVar\"\n\t\t\t\t(onEnter)=\"handleTargetListSearch($event)\"\n\t\t\t\t(onDebounceChange)=\"handleTargetListSearch($event)\"\n\t\t\t\t[variant]=\"'icon'\"\n\t\t\t/>\n\t\t\t@let added = searchTargetComputed();\n\t\t\t@if (added) {\n\t\t\t\t<st-table\n\t\t\t\t\t[data]=\"added\"\n\t\t\t\t\t[error]=\"emptyListMessageVar\"\n\t\t\t\t\t[size]=\"sizeVar\"\n\t\t\t\t\t[height]=\"heightVar\"\n\t\t\t\t\t[pinRows]=\"true\"\n\t\t\t\t\t[showItemsPerPage]=\"false\"\n\t\t\t\t\t[showPagination]=\"false\"\n\t\t\t\t\t[totalItems]=\"added.length\"\n\t\t\t\t\tclass=\"h-full\"\n\t\t\t\t>\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th class=\"w-6\">\n\t\t\t\t\t\t\t\t@if (searchTarget() === '') {\n\t\t\t\t\t\t\t\t\t<st-checkbox [value]=\"allToRemove()\" (onChange)=\"handleSelectAllToRemove($event)\"></st-checkbox>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t<th>{{ getLabel() }}</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody>\n\t\t\t\t\t\t@for (item of added; track getKey(item)) {\n\t\t\t\t\t\t\t<tr class=\"hover\">\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<st-checkbox [(value)]=\"item.selected\" (onChange)=\"handleSelectTargetItem($event, item)\"></st-checkbox>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td>{{ getValue(item) }}</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t}\n\t\t\t\t\t</tbody>\n\t\t\t\t</st-table>\n\t\t\t}\n\t\t</div>\n\t</div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: TableComponent, selector: "st-table", inputs: ["size", "height", "pinRows", "pinColumns", "zebra", "paginatorType", "labelEntriesByPage", "labelShowEntriesOf", "labelShowEntries", "data", "totalItems", "error", "pagination", "maxSize", "showItemsPerPage", "showEntries", "showPagination"], outputs: ["onPageChange", "onPageSizeChange", "onCheck"] }, { kind: "component", type: CheckboxComponent, selector: "st-checkbox", inputs: ["variant", "size", "classes", "label", "name", "value", "disabled"], outputs: ["valueChange", "disabledChange", "onChange"] }, { kind: "component", type: InputComponent, selector: "st-input", inputs: ["variant", "shape", "size", "classes", "label", "type", "name", "placeholder", "icon", "iconPosition", "iconClasses", "readonly", "value", "parentForm", "formControlName", "disabled", "debounceTime"], outputs: ["valueChange", "disabledChange", "onEnter", "onBlur", "onDebounceChange"] }, { kind: "ngmodule", type: NgxPaginationModule }, { kind: "pipe", type: i1.PaginatePipe, name: "paginate" }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "circle", "square", "glass", "block", "loader", "border", "size", "iconPosition", "fontSize", "label", "type", "icon", "disabled"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }] });
|
|
210
170
|
}
|
|
211
171
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: DualListComponent, decorators: [{
|
|
212
172
|
type: Component,
|
|
213
|
-
args: [{ selector: 'st-dual-list', standalone: true, imports: [ReactiveFormsModule, TableComponent, CheckboxComponent, InputComponent, NgxPaginationModule, ButtonComponent, TypographyDirective], template: "@let id = pagination().id;\n@let currentPage = pagination().currentPage;\n@let itemsPerPage = pagination().itemsPerPage;\n@let titleLeftVar = titleLeft();\n@let titleRightVar = titleRight();\n<div class=\"grid grid-cols-[3fr_min-content_3fr] gap-6\">\n\t<div class=\"flex flex-col rounded-
|
|
173
|
+
args: [{ selector: 'st-dual-list', standalone: true, imports: [ReactiveFormsModule, TableComponent, CheckboxComponent, InputComponent, NgxPaginationModule, ButtonComponent, TypographyDirective], template: "@let id = pagination().id;\n@let currentPage = pagination().currentPage;\n@let itemsPerPage = pagination().itemsPerPage;\n@let titleLeftVar = titleLeft();\n@let titleRightVar = titleRight();\n@let heightVar = height();\n@let sizeVar = size();\n@let inputPlaceholderVar = inputPlaceholder();\n@let emptyListMessageVar = emptyListMessage();\n<div class=\"grid flex-1 grid-cols-[3fr_min-content_3fr] gap-6\">\n\t<div class=\"flex flex-col gap-6 rounded-box border border-neutral p-6\">\n\t\t@if (titleLeftVar) {\n\t\t\t<div>\n\t\t\t\t<h3 typography [typographyVariant]=\"'h3'\">{{ titleLeftVar }}</h3>\n\t\t\t</div>\n\t\t}\n\t\t<div class=\"flex h-full flex-col gap-4\">\n\t\t\t<st-input [placeholder]=\"inputPlaceholderVar\" (onEnter)=\"handleSearch($event)\" (onDebounceChange)=\"handleSearch($event)\" [variant]=\"'icon'\" />\n\t\t\t<st-table\n\t\t\t\t[pagination]=\"pagination()\"\n\t\t\t\t[totalItems]=\"totalItems()\"\n\t\t\t\t[error]=\"emptyListMessageVar\"\n\t\t\t\t(onPageChange)=\"handlePageChange($event)\"\n\t\t\t\t(onPageSizeChange)=\"handlePageSizeChange($event)\"\n\t\t\t\t[showItemsPerPage]=\"false\"\n\t\t\t\t[showEntries]=\"false\"\n\t\t\t\t[maxSize]=\"6\"\n\t\t\t\t[size]=\"sizeVar\"\n\t\t\t\t[height]=\"heightVar\"\n\t\t\t\t[pinRows]=\"true\"\n\t\t\t\tclass=\"h-full\"\n\t\t\t\t[showEntries]=\"false\"\n\t\t\t\t[showItemsPerPage]=\"false\"\n\t\t\t>\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th class=\"w-6\">\n\t\t\t\t\t\t\t<st-checkbox [value]=\"allToAdd()\" (onChange)=\"handleSelectAll($event)\"></st-checkbox>\n\t\t\t\t\t\t</th>\n\t\t\t\t\t\t<th>{{ getLabel() }}</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t@for (item of computedItems() | paginate: { id, currentPage, itemsPerPage, totalItems: totalItems() }; track getKey(item)) {\n\t\t\t\t\t\t<tr class=\"hover\">\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<st-checkbox [(value)]=\"item.selected\" (onChange)=\"handleSelectSourceItem($event, item)\"></st-checkbox>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td>{{ getValue(item) }}</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t}\n\t\t\t\t</tbody>\n\t\t\t</st-table>\n\t\t</div>\n\t</div>\n\n\t<!-- Buttons -->\n\t<div class=\"grid place-content-center gap-4\">\n\t\t<st-button variant=\"secondary\" [circle]=\"true\" [icon]=\"chevronRightIcon\" (click)=\"handleAddItems()\" />\n\t\t<st-button variant=\"secondary\" [circle]=\"true\" [icon]=\"chevronLeftIcon\" (click)=\"handleRemoveItems()\" />\n\t</div>\n\n\t<!-- END Buttons -->\n\n\t<div class=\"flex flex-1 flex-col gap-6 rounded-box border border-neutral p-6\">\n\t\t@if (titleRightVar) {\n\t\t\t<div>\n\t\t\t\t<h3 typography [typographyVariant]=\"'h3'\">{{ titleRightVar }}</h3>\n\t\t\t</div>\n\t\t}\n\t\t<div class=\"flex h-full flex-col gap-4\">\n\t\t\t<st-input\n\t\t\t\t[placeholder]=\"inputPlaceholderVar\"\n\t\t\t\t(onEnter)=\"handleTargetListSearch($event)\"\n\t\t\t\t(onDebounceChange)=\"handleTargetListSearch($event)\"\n\t\t\t\t[variant]=\"'icon'\"\n\t\t\t/>\n\t\t\t@let added = searchTargetComputed();\n\t\t\t@if (added) {\n\t\t\t\t<st-table\n\t\t\t\t\t[data]=\"added\"\n\t\t\t\t\t[error]=\"emptyListMessageVar\"\n\t\t\t\t\t[size]=\"sizeVar\"\n\t\t\t\t\t[height]=\"heightVar\"\n\t\t\t\t\t[pinRows]=\"true\"\n\t\t\t\t\t[showItemsPerPage]=\"false\"\n\t\t\t\t\t[showPagination]=\"false\"\n\t\t\t\t\t[totalItems]=\"added.length\"\n\t\t\t\t\tclass=\"h-full\"\n\t\t\t\t>\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th class=\"w-6\">\n\t\t\t\t\t\t\t\t@if (searchTarget() === '') {\n\t\t\t\t\t\t\t\t\t<st-checkbox [value]=\"allToRemove()\" (onChange)=\"handleSelectAllToRemove($event)\"></st-checkbox>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t<th>{{ getLabel() }}</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody>\n\t\t\t\t\t\t@for (item of added; track getKey(item)) {\n\t\t\t\t\t\t\t<tr class=\"hover\">\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<st-checkbox [(value)]=\"item.selected\" (onChange)=\"handleSelectTargetItem($event, item)\"></st-checkbox>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td>{{ getValue(item) }}</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t}\n\t\t\t\t\t</tbody>\n\t\t\t\t</st-table>\n\t\t\t}\n\t\t</div>\n\t</div>\n</div>\n" }]
|
|
214
174
|
}] });
|
|
215
175
|
|
|
216
176
|
/**
|