@gipisistemas/ngx-core 1.0.1
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 +169 -0
- package/animations/fly-in-out.animation.d.ts +24 -0
- package/animations/index.d.ts +2 -0
- package/animations/rotate.animation.d.ts +35 -0
- package/base/components/base-form-dialog.component.d.ts +47 -0
- package/base/components/base-form.component.d.ts +54 -0
- package/base/components/base-list-dialog.component.d.ts +69 -0
- package/base/components/base-list.component.d.ts +77 -0
- package/base/components/base.component.d.ts +62 -0
- package/base/index.d.ts +20 -0
- package/base/models/base-applied-filter.model.d.ts +8 -0
- package/base/models/base-authority.model.d.ts +6 -0
- package/base/models/base-filter.model.d.ts +16 -0
- package/base/models/base-form-dialog-data.model.d.ts +11 -0
- package/base/models/base-list-dialog-data.model.d.ts +10 -0
- package/base/models/base-menu.model.d.ts +25 -0
- package/base/models/base-page.model.d.ts +11 -0
- package/base/models/base-query-params.model.d.ts +12 -0
- package/base/models/base-sort.model.d.ts +8 -0
- package/base/models/base-token.model.d.ts +11 -0
- package/base/models/base-user.model.d.ts +18 -0
- package/base/models/base.model.d.ts +20 -0
- package/base/services/base-auth.service.d.ts +31 -0
- package/base/services/base-crud.service.d.ts +178 -0
- package/base/services/base.service.d.ts +97 -0
- package/components/action-row/action-row.component.d.ts +8 -0
- package/components/action-row/action-row.component.scss +26 -0
- package/components/action-row/index.d.ts +1 -0
- package/components/auto-focus/auto-focus.directive.d.ts +17 -0
- package/components/auto-focus/index.d.ts +1 -0
- package/components/avatar/avatar.component.d.ts +23 -0
- package/components/avatar/avatar.component.scss +155 -0
- package/components/avatar/index.d.ts +1 -0
- package/components/button/button.component.d.ts +74 -0
- package/components/button/button.component.scss +196 -0
- package/components/button/index.d.ts +1 -0
- package/components/button-group/button-group.component.d.ts +39 -0
- package/components/button-group/button-group.component.scss +89 -0
- package/components/button-group/index.d.ts +2 -0
- package/components/button-group/shared/button-group-option.model.d.ts +6 -0
- package/components/checkbox/checkbox.component.d.ts +74 -0
- package/components/checkbox/checkbox.component.scss +147 -0
- package/components/checkbox/index.d.ts +1 -0
- package/components/chips/chips.component.d.ts +46 -0
- package/components/chips/chips.component.scss +127 -0
- package/components/chips/index.d.ts +1 -0
- package/components/confirm-dialog/confirm-dialog.component.d.ts +17 -0
- package/components/confirm-dialog/confirm-dialog.component.scss +121 -0
- package/components/confirm-dialog/index.d.ts +4 -0
- package/components/confirm-dialog/shared/confirm-dialog-types.enum.d.ts +7 -0
- package/components/confirm-dialog/shared/confirm-dialog.model.d.ts +25 -0
- package/components/confirm-dialog/shared/confirm-dialog.service.d.ts +17 -0
- package/components/date-picker/date-picker.component.d.ts +55 -0
- package/components/date-picker/date-picker.component.scss +27 -0
- package/components/date-picker/index.d.ts +1 -0
- package/components/date-range-picker/date-range-picker.component.d.ts +66 -0
- package/components/date-range-picker/date-range-picker.component.scss +89 -0
- package/components/date-range-picker/index.d.ts +6 -0
- package/components/date-range-picker/shared/calendar/calendar.component.d.ts +27 -0
- package/components/date-range-picker/shared/calendar/calendar.component.scss +13 -0
- package/components/date-range-picker/shared/default-preset-date-options.d.ts +2 -0
- package/components/date-range-picker/shared/preset-key.enum.d.ts +11 -0
- package/components/date-range-picker/shared/range-selection-strategy.service.d.ts +11 -0
- package/components/date-range-picker/shared/select-date-option.interface.d.ts +32 -0
- package/components/date-range-picker/shared/selected-date-event.interface.d.ts +6 -0
- package/components/datetime-picker/datetime-picker.component.d.ts +68 -0
- package/components/datetime-picker/datetime-picker.component.scss +28 -0
- package/components/datetime-picker/index.d.ts +3 -0
- package/components/datetime-picker/shared/datetime-picker-intl.d.ts +29 -0
- package/components/datetime-picker/shared/moment-datetime-formats.d.ts +2 -0
- package/components/disable-auto-fill/disable-auto-fill.directive.d.ts +11 -0
- package/components/disable-auto-fill/index.d.ts +1 -0
- package/components/echarts/echarts.directive.d.ts +100 -0
- package/components/echarts/index.d.ts +4 -0
- package/components/echarts/shared/echarts-change-filter.d.ts +11 -0
- package/components/echarts/shared/echarts-config.interface.d.ts +5 -0
- package/components/echarts/shared/echarts-theme.type.d.ts +1 -0
- package/components/empty/empty.component.d.ts +13 -0
- package/components/empty/empty.component.scss +36 -0
- package/components/empty/index.d.ts +1 -0
- package/components/expansion-panel/expansion-panel.component.d.ts +36 -0
- package/components/expansion-panel/expansion-panel.component.scss +99 -0
- package/components/expansion-panel/index.d.ts +1 -0
- package/components/field-error/field-error.component.d.ts +95 -0
- package/components/field-error/field-error.component.scss +7 -0
- package/components/field-error/index.d.ts +2 -0
- package/components/field-error/shared/field-error-custom-validators.type.d.ts +2 -0
- package/components/flex-layout/flex-layout.directive.d.ts +44 -0
- package/components/flex-layout/index.d.ts +1 -0
- package/components/form-wrapper/form-wrapper.component.d.ts +15 -0
- package/components/form-wrapper/form-wrapper.component.scss +121 -0
- package/components/form-wrapper/index.d.ts +1 -0
- package/components/helpful-tip/helpful-tip.component.d.ts +11 -0
- package/components/helpful-tip/helpful-tip.component.scss +14 -0
- package/components/helpful-tip/index.d.ts +1 -0
- package/components/icon/icon.component.d.ts +61 -0
- package/components/icon/icon.component.scss +29 -0
- package/components/icon/index.d.ts +1 -0
- package/components/index.d.ts +46 -0
- package/components/input/index.d.ts +4 -0
- package/components/input/input.component.d.ts +81 -0
- package/components/input/input.component.scss +27 -0
- package/components/input/shared/input-prefix.directive.d.ts +5 -0
- package/components/input/shared/input-suffix.directive.d.ts +5 -0
- package/components/input/shared/input.directive.d.ts +26 -0
- package/components/input-currency/index.d.ts +1 -0
- package/components/input-currency/input-currency.component.d.ts +64 -0
- package/components/input-currency/input-currency.component.scss +27 -0
- package/components/input-group/index.d.ts +2 -0
- package/components/input-group/input-group-addon.component.d.ts +8 -0
- package/components/input-group/input-group.component.d.ts +14 -0
- package/components/input-group/input-group.component.scss +118 -0
- package/components/input-phone/index.d.ts +1 -0
- package/components/input-phone/input-phone.component.d.ts +62 -0
- package/components/input-phone/input-phone.component.scss +27 -0
- package/components/loading/index.d.ts +1 -0
- package/components/loading/loading.component.d.ts +13 -0
- package/components/loading/loading.component.scss +145 -0
- package/components/lozenge/index.d.ts +3 -0
- package/components/lozenge/lozenge.component.d.ts +20 -0
- package/components/lozenge/lozenge.component.scss +99 -0
- package/components/lozenge/shared/lozenge-fill.type.d.ts +4 -0
- package/components/lozenge/shared/lozenge-variant.type.d.ts +1 -0
- package/components/password-requeriments/index.d.ts +3 -0
- package/components/password-requeriments/password-requeriments.component.d.ts +27 -0
- package/components/password-requeriments/password-requeriments.component.scss +53 -0
- package/components/password-requeriments/shared/password-requeriments.interface.d.ts +5 -0
- package/components/password-requeriments/shared/password-validation.util.d.ts +71 -0
- package/components/popover/index.d.ts +4 -0
- package/components/popover/popover-target.directive.d.ts +8 -0
- package/components/popover/popover-trigger.directive.d.ts +135 -0
- package/components/popover/popover.component.d.ts +121 -0
- package/components/popover/popover.component.scss +26 -0
- package/components/popover/popover.module.d.ts +9 -0
- package/components/popover/shared/popover-animations.d.ts +14 -0
- package/components/popover/shared/popover-errors.d.ts +14 -0
- package/components/popover/shared/popover-types.type.d.ts +4 -0
- package/components/popover/shared/popover.interface.d.ts +24 -0
- package/components/radio-button/radio-button.component.scss +0 -0
- package/components/radio-group/index.d.ts +2 -0
- package/components/radio-group/radio-group.component.d.ts +57 -0
- package/components/radio-group/radio-group.component.scss +69 -0
- package/components/radio-group/shared/option-radio-group.type.d.ts +1 -0
- package/components/scroll-fade/index.d.ts +1 -0
- package/components/scroll-fade/scroll-fade.directive.d.ts +24 -0
- package/components/select/index.d.ts +4 -0
- package/components/select/select.component.d.ts +85 -0
- package/components/select/select.component.scss +52 -0
- package/components/select/shared/mat-select-media-tracker.d.ts +15 -0
- package/components/select/shared/mat-select-options-helper.d.ts +6 -0
- package/components/select/shared/mat-select-styles.scss +429 -0
- package/components/select/shared/mat-select.directive.d.ts +127 -0
- package/components/select-enum/index.d.ts +3 -0
- package/components/select-enum/select-enum.component.d.ts +65 -0
- package/components/select-enum/select-enum.component.scss +41 -0
- package/components/select-enum/shared/option-select-enum.type.d.ts +6 -0
- package/components/select-enum/shared/select-check-all.component.d.ts +15 -0
- package/components/sidenav/index.d.ts +1 -0
- package/components/sidenav/shared/sidenav-arrow-animations.d.ts +1 -0
- package/components/sidenav/sidenav.component.d.ts +47 -0
- package/components/sidenav/sidenav.component.scss +187 -0
- package/components/skeleton/index.d.ts +1 -0
- package/components/skeleton/skeleton.component.d.ts +37 -0
- package/components/skeleton/skeleton.component.scss +76 -0
- package/components/stepper/index.d.ts +2 -0
- package/components/stepper/step.component.d.ts +24 -0
- package/components/stepper/stepper.component.d.ts +20 -0
- package/components/stepper/stepper.component.scss +120 -0
- package/components/table/index.d.ts +9 -0
- package/components/table/shared/table-column-action-type.enum.d.ts +1 -0
- package/components/table/shared/table-column-align-type.enum.d.ts +6 -0
- package/components/table/shared/table-column-builder.model.d.ts +109 -0
- package/components/table/shared/table-column-condition.enum.d.ts +2 -0
- package/components/table/shared/table-column-partial.model.d.ts +6 -0
- package/components/table/shared/table-column.model.d.ts +80 -0
- package/components/table/shared/table-menu-item-context-builder.model.d.ts +61 -0
- package/components/table/shared/table-menu-item-context.model.d.ts +45 -0
- package/components/table/table.component.d.ts +184 -0
- package/components/table/table.component.scss +255 -0
- package/components/tabs/index.d.ts +2 -0
- package/components/tabs/tab-group.component.d.ts +24 -0
- package/components/tabs/tab.component.d.ts +30 -0
- package/components/tabs/tabs.component.scss +170 -0
- package/components/tag/index.d.ts +1 -0
- package/components/tag/tag.component.d.ts +26 -0
- package/components/tag/tag.component.scss +78 -0
- package/components/text-ellipsis/index.d.ts +1 -0
- package/components/text-ellipsis/text-ellipsis.directive.d.ts +15 -0
- package/components/textarea/index.d.ts +1 -0
- package/components/textarea/textarea.component.d.ts +72 -0
- package/components/textarea/textarea.component.scss +31 -0
- package/components/toast/index.d.ts +4 -0
- package/components/toast/shared/toast-types.enum.d.ts +7 -0
- package/components/toast/shared/toast.model.d.ts +7 -0
- package/components/toast/shared/toast.service.d.ts +12 -0
- package/components/toast/toast.component.d.ts +18 -0
- package/components/toast/toast.component.scss +135 -0
- package/components/toggle-switch/index.d.ts +1 -0
- package/components/toggle-switch/toggle-switch.component.d.ts +49 -0
- package/components/toggle-switch/toggle-switch.component.scss +105 -0
- package/components/toolbar/index.d.ts +1 -0
- package/components/toolbar/toolbar.component.d.ts +9 -0
- package/components/toolbar/toolbar.component.scss +22 -0
- package/components/top-nav/index.d.ts +1 -0
- package/components/top-nav/top-nav.component.d.ts +9 -0
- package/components/top-nav/top-nav.component.scss +18 -0
- package/components/tree-table/index.d.ts +8 -0
- package/components/tree-table/shared/tree-table-arrow-animations.d.ts +1 -0
- package/components/tree-table/shared/tree-table-column-builder.model.d.ts +55 -0
- package/components/tree-table/shared/tree-table-column-condition.enum.d.ts +2 -0
- package/components/tree-table/shared/tree-table-column-partial.model.d.ts +6 -0
- package/components/tree-table/shared/tree-table-column.model.d.ts +40 -0
- package/components/tree-table/shared/tree-table-menu-item-context-builder.model.d.ts +61 -0
- package/components/tree-table/shared/tree-table-menu-item-context.model.d.ts +45 -0
- package/components/tree-table/tree-table.component.d.ts +91 -0
- package/components/tree-table/tree-table.component.scss +216 -0
- package/components/user-profile/index.d.ts +1 -0
- package/components/user-profile/shared/user-profile-arrow-animations.d.ts +1 -0
- package/components/user-profile/user-profile.component.d.ts +28 -0
- package/components/user-profile/user-profile.component.scss +76 -0
- package/decorators/debounce.decorator.d.ts +33 -0
- package/decorators/index.d.ts +1 -0
- package/enums/index.d.ts +3 -0
- package/enums/menu-type.enum.d.ts +6 -0
- package/enums/sort-direction.enum.d.ts +5 -0
- package/enums/type-operation-dialog.enum.d.ts +12 -0
- package/fesm2022/gipisistemas-ngx-core.mjs +19132 -0
- package/fesm2022/gipisistemas-ngx-core.mjs.map +1 -0
- package/guards/auth.guard.d.ts +3 -0
- package/guards/index.d.ts +2 -0
- package/guards/public.guard.d.ts +3 -0
- package/index.d.ts +5 -0
- package/interceptors/auth.interceptor.d.ts +2 -0
- package/interceptors/error.interceptor.d.ts +13 -0
- package/interceptors/index.d.ts +2 -0
- package/interfaces/index.d.ts +1 -0
- package/interfaces/permissions.interface.d.ts +10 -0
- package/package.json +59 -0
- package/pipes/index.d.ts +1 -0
- package/pipes/money.pipe.d.ts +20 -0
- package/public-api.d.ts +13 -0
- package/services/cacheable.service.d.ts +41 -0
- package/services/dialog.service.d.ts +65 -0
- package/services/file-saver.service.d.ts +11 -0
- package/services/filter-indexed-db.service.d.ts +100 -0
- package/services/filter-url.service.d.ts +81 -0
- package/services/index.d.ts +8 -0
- package/services/moment-date-adapter.service.d.ts +8 -0
- package/services/native-date-adapter.service.d.ts +8 -0
- package/services/svg-register.service.d.ts +33 -0
- package/theming/_breakpoints.scss +20 -0
- package/theming/_index.scss +19 -0
- package/theming/_palettes.scss +112 -0
- package/theming/_theme.scss +189 -0
- package/theming/_utils.scss +1424 -0
- package/tokens/allowed-public-routes.token.d.ts +26 -0
- package/tokens/app-messages.token.d.ts +13 -0
- package/tokens/base-auth-service.token.d.ts +5 -0
- package/tokens/echarts-core.token.d.ts +4 -0
- package/tokens/index.d.ts +6 -0
- package/tokens/ngx-currency-options.token.d.ts +5 -0
- package/tokens/paginator-intl.token.d.ts +5 -0
- package/types/booleanish.type.d.ts +1 -0
- package/types/implicit-template.type.d.ts +4 -0
- package/types/index.d.ts +8 -0
- package/types/mixable-object.type.d.ts +1 -0
- package/types/nullable.type.d.ts +1 -0
- package/types/numberish.type.d.ts +1 -0
- package/types/page-event.type.d.ts +6 -0
- package/types/uuid.type.d.ts +1 -0
- package/types/void-listener.type.d.ts +1 -0
- package/utils/array.util.d.ts +13 -0
- package/utils/css.util.d.ts +12 -0
- package/utils/currency.util.d.ts +83 -0
- package/utils/date.util.d.ts +166 -0
- package/utils/document.util.d.ts +126 -0
- package/utils/email.util.d.ts +19 -0
- package/utils/index.d.ts +14 -0
- package/utils/number-to-words.util.d.ts +17 -0
- package/utils/number.util.d.ts +40 -0
- package/utils/object.util.d.ts +83 -0
- package/utils/phone.util.d.ts +103 -0
- package/utils/states.util.d.ts +182 -0
- package/utils/storage.util.d.ts +78 -0
- package/utils/string.util.d.ts +89 -0
- package/utils/uuid.util.d.ts +33 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
2
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
4
|
+
import { type MatBadgePosition, type MatBadgeSize } from '@angular/material/badge';
|
|
5
|
+
import { Nullable } from '../../types/nullable.type';
|
|
6
|
+
import { tIconFontSet, tIconGrade, tIconOptical, tIconVariation, tIconWeight } from '../icon';
|
|
7
|
+
import { PopoverTriggerDirective } from '../popover/popover-trigger.directive';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
type tButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'icon' | 'link' | 'action' | 'input';
|
|
10
|
+
type tButtonIconPosition = 'left' | 'right';
|
|
11
|
+
type tButtonType = 'submit' | 'reset' | 'button';
|
|
12
|
+
type tButtonSize = 'small' | 'large';
|
|
13
|
+
export declare class ButtonComponent implements AfterViewInit, OnDestroy {
|
|
14
|
+
popoverTrigger: PopoverTriggerDirective;
|
|
15
|
+
protected readonly _uniqueId: string;
|
|
16
|
+
protected readonly invisibleBadgeChar = "\u2060";
|
|
17
|
+
private readonly _focusMonitor;
|
|
18
|
+
elementRef: ElementRef<HTMLElement>;
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
label: string;
|
|
22
|
+
title: string;
|
|
23
|
+
tooltip: string;
|
|
24
|
+
type: tButtonType;
|
|
25
|
+
size: tButtonSize;
|
|
26
|
+
iconPos: tButtonIconPosition;
|
|
27
|
+
variant: tButtonVariant;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
loading: boolean;
|
|
30
|
+
popover: BooleanInput;
|
|
31
|
+
ariaLabel: string;
|
|
32
|
+
ariaDisabled: boolean;
|
|
33
|
+
icon: string;
|
|
34
|
+
svgIcon: string;
|
|
35
|
+
iconFontSet: tIconFontSet;
|
|
36
|
+
iconSize: number;
|
|
37
|
+
iconVariation: tIconVariation;
|
|
38
|
+
iconWeight: tIconWeight;
|
|
39
|
+
iconGrade: tIconGrade;
|
|
40
|
+
iconOptical: tIconOptical;
|
|
41
|
+
badgeShow: boolean;
|
|
42
|
+
badgeOverlap: BooleanInput;
|
|
43
|
+
badgeContent: string | number | undefined | null;
|
|
44
|
+
badgePosition: MatBadgePosition;
|
|
45
|
+
badgeSize: MatBadgeSize;
|
|
46
|
+
onClickEvent: EventEmitter<MouseEvent>;
|
|
47
|
+
onFocusEvent: EventEmitter<FocusEvent>;
|
|
48
|
+
onBlurEvent: EventEmitter<FocusEvent>;
|
|
49
|
+
onOpenedEvent: EventEmitter<void>;
|
|
50
|
+
onClosedEvent: EventEmitter<void>;
|
|
51
|
+
protected get _ariaDisabled(): Nullable<boolean>;
|
|
52
|
+
constructor();
|
|
53
|
+
ngAfterViewInit(): void;
|
|
54
|
+
ngOnDestroy(): void;
|
|
55
|
+
focus(origin?: FocusOrigin, options?: FocusOptions): void;
|
|
56
|
+
onHandleClick(event: MouseEvent): void;
|
|
57
|
+
onHandleFocus(event: FocusEvent): void;
|
|
58
|
+
onHandleBlur(event: FocusEvent): void;
|
|
59
|
+
onHandleOpened(): void;
|
|
60
|
+
onHandleClosed(): void;
|
|
61
|
+
showPopover(): void;
|
|
62
|
+
closePopover(): void;
|
|
63
|
+
onResize(event: UIEvent): void;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "gipi-button", ["gButton"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "title": { "alias": "title"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "type": { "alias": "type"; "required": false; }; "size": { "alias": "size"; "required": false; }; "iconPos": { "alias": "iconPos"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "popover": { "alias": "popover"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaDisabled": { "alias": "aria-disabled"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "iconFontSet": { "alias": "iconFontSet"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "iconVariation": { "alias": "iconVariation"; "required": false; }; "iconWeight": { "alias": "weight"; "required": false; }; "iconGrade": { "alias": "grade"; "required": false; }; "iconOptical": { "alias": "optical"; "required": false; }; "badgeShow": { "alias": "badgeShow"; "required": false; }; "badgeOverlap": { "alias": "badgeOverlap"; "required": false; }; "badgeContent": { "alias": "badgeContent"; "required": false; }; "badgePosition": { "alias": "badgePosition"; "required": false; }; "badgeSize": { "alias": "badgeSize"; "required": false; }; }, { "onClickEvent": "click"; "onFocusEvent": "focus"; "onBlurEvent": "blur"; "onOpenedEvent": "opened"; "onClosedEvent": "closed"; }, never, ["*"], true, never>;
|
|
66
|
+
static ngAcceptInputType_disabled: unknown;
|
|
67
|
+
static ngAcceptInputType_loading: unknown;
|
|
68
|
+
static ngAcceptInputType_popover: unknown;
|
|
69
|
+
static ngAcceptInputType_ariaDisabled: unknown;
|
|
70
|
+
static ngAcceptInputType_iconSize: unknown;
|
|
71
|
+
static ngAcceptInputType_badgeShow: unknown;
|
|
72
|
+
static ngAcceptInputType_badgeOverlap: unknown;
|
|
73
|
+
}
|
|
74
|
+
export {};
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
@use '../../theming/utils' as utils;
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
position: relative;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@mixin button-theme($theme: ()) {
|
|
8
|
+
$font-family: utils.get-font-family($theme);
|
|
9
|
+
$font-size: utils.get-font-size($theme);
|
|
10
|
+
$font-color: utils.get-font-color($theme);
|
|
11
|
+
$white-100: utils.get-color($theme, white, 100);
|
|
12
|
+
$primary-500: utils.get-color($theme, primary, 500);
|
|
13
|
+
$primary-600: utils.get-color($theme, primary, 600);
|
|
14
|
+
$secondary-50: utils.get-color($theme, secondary, 50);
|
|
15
|
+
$secondary-100: utils.get-color($theme, secondary, 100);
|
|
16
|
+
$secondary-200: utils.get-color($theme, secondary, 200);
|
|
17
|
+
$secondary-500: utils.get-color($theme, secondary, 500);
|
|
18
|
+
$black-200: utils.get-color($theme, black, 200);
|
|
19
|
+
$black-300: utils.get-color($theme, black, 300);
|
|
20
|
+
$black-400: utils.get-color($theme, black, 400);
|
|
21
|
+
$warning-500: utils.get-color($theme, warning, 500);
|
|
22
|
+
$pastels-secondary: utils.get-color($theme, pastels, secondary);
|
|
23
|
+
|
|
24
|
+
@include utils.mat-badge-reset($theme);
|
|
25
|
+
|
|
26
|
+
.g-button {
|
|
27
|
+
display: block;
|
|
28
|
+
position: relative;
|
|
29
|
+
|
|
30
|
+
&:has(.g-button-only-icon) {
|
|
31
|
+
width: fit-content;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.g-button-content {
|
|
36
|
+
@include utils.button-reset($theme);
|
|
37
|
+
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: row;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: 0.6rem;
|
|
43
|
+
padding: 1rem 0.6rem;
|
|
44
|
+
width: 100%;
|
|
45
|
+
min-width: 3.6rem;
|
|
46
|
+
max-height: 3.6rem;
|
|
47
|
+
border-radius: 0.4rem;
|
|
48
|
+
text-align: center;
|
|
49
|
+
vertical-align: middle;
|
|
50
|
+
box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.1);
|
|
51
|
+
transition: 0.2s;
|
|
52
|
+
border: 1px solid transparent;
|
|
53
|
+
position: relative;
|
|
54
|
+
|
|
55
|
+
font-family: $font-family;
|
|
56
|
+
font-size: $font-size;
|
|
57
|
+
font-weight: 700;
|
|
58
|
+
line-height: 100%;
|
|
59
|
+
|
|
60
|
+
&.g-button-icon-left {
|
|
61
|
+
flex-direction: row;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.g-button-icon-right {
|
|
65
|
+
flex-direction: row-reverse;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.g-button-icon {
|
|
69
|
+
width: 2rem;
|
|
70
|
+
height: 2rem;
|
|
71
|
+
font-size: 2rem;
|
|
72
|
+
line-height: 100%;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.g-button-primary {
|
|
76
|
+
background-color: $primary-500;
|
|
77
|
+
color: $white-100;
|
|
78
|
+
|
|
79
|
+
&:not(:disabled):hover {
|
|
80
|
+
background-color: $primary-600;
|
|
81
|
+
}
|
|
82
|
+
.g-button-icon {
|
|
83
|
+
color: $white-100;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.mat-badge-content {
|
|
87
|
+
background-color: $warning-500 !important;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&.g-button-secondary {
|
|
92
|
+
background-color: transparent;
|
|
93
|
+
border-color: $black-300;
|
|
94
|
+
color: $black-300;
|
|
95
|
+
|
|
96
|
+
&:not(:disabled):hover {
|
|
97
|
+
background-color: $secondary-100;
|
|
98
|
+
}
|
|
99
|
+
.g-button-icon {
|
|
100
|
+
color: $black-300;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&.g-button-tertiary {
|
|
105
|
+
background-color: $pastels-secondary;
|
|
106
|
+
color: $black-300;
|
|
107
|
+
box-shadow: none;
|
|
108
|
+
|
|
109
|
+
&:not(:disabled):hover {
|
|
110
|
+
background-color: $secondary-100;
|
|
111
|
+
}
|
|
112
|
+
.g-button-icon {
|
|
113
|
+
color: $black-300;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&.g-button-link {
|
|
118
|
+
background-color: transparent;
|
|
119
|
+
color: $black-200;
|
|
120
|
+
box-shadow: none;
|
|
121
|
+
|
|
122
|
+
&:not(:disabled):hover .g-button-label {
|
|
123
|
+
text-decoration: underline;
|
|
124
|
+
text-decoration-color: $black-200;
|
|
125
|
+
color: $black-200;
|
|
126
|
+
}
|
|
127
|
+
&:not(:disabled):hover {
|
|
128
|
+
color: $black-200;
|
|
129
|
+
}
|
|
130
|
+
.g-button-icon {
|
|
131
|
+
color: $black-200;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&.g-button-only-icon {
|
|
136
|
+
background-color: transparent;
|
|
137
|
+
color: $black-200;
|
|
138
|
+
box-shadow: none;
|
|
139
|
+
width: 3.6rem;
|
|
140
|
+
height: 3.6rem;
|
|
141
|
+
|
|
142
|
+
&:not(:disabled):hover {
|
|
143
|
+
background-color: $secondary-100;
|
|
144
|
+
}
|
|
145
|
+
.g-button-icon {
|
|
146
|
+
color: $black-200;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&.g-button-action {
|
|
151
|
+
background-color: transparent;
|
|
152
|
+
box-shadow: none;
|
|
153
|
+
display: flex;
|
|
154
|
+
justify-content: flex-start !important;
|
|
155
|
+
color: $black-200;
|
|
156
|
+
|
|
157
|
+
&:not(:disabled):hover {
|
|
158
|
+
background-color: $secondary-50;
|
|
159
|
+
}
|
|
160
|
+
.g-button-icon {
|
|
161
|
+
color: $black-200;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&.g-button-input {
|
|
166
|
+
background-color: transparent;
|
|
167
|
+
box-shadow: none;
|
|
168
|
+
padding: 0.4rem;
|
|
169
|
+
border-radius: 50%;
|
|
170
|
+
transition: background-color 0.2s;
|
|
171
|
+
min-width: 3rem;
|
|
172
|
+
width: 3rem;
|
|
173
|
+
height: 3rem;
|
|
174
|
+
|
|
175
|
+
@include utils.user-select(none);
|
|
176
|
+
|
|
177
|
+
&:not(:disabled):hover {
|
|
178
|
+
background-color: $secondary-200 !important;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.g-button-icon {
|
|
182
|
+
color: $black-400;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&:disabled {
|
|
186
|
+
background-color: transparent !important;
|
|
187
|
+
border-color: transparent !important;
|
|
188
|
+
color: $secondary-500 !important;
|
|
189
|
+
|
|
190
|
+
.gipi-icon {
|
|
191
|
+
color: $secondary-500 !important;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './button.component';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
4
|
+
import { ButtonGroupOption } from './shared/button-group-option.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ButtonGroupComponent implements OnChanges {
|
|
7
|
+
protected readonly _controlUniqueId: string;
|
|
8
|
+
protected readonly _uniqueId: string;
|
|
9
|
+
private readonly _changeDetectorRef;
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
label: string;
|
|
13
|
+
help: string;
|
|
14
|
+
disabled: BooleanInput;
|
|
15
|
+
required: BooleanInput;
|
|
16
|
+
private _options;
|
|
17
|
+
set options(value: ButtonGroupOption[]);
|
|
18
|
+
get options(): ButtonGroupOption[];
|
|
19
|
+
private _value;
|
|
20
|
+
set value(value: string | number | null);
|
|
21
|
+
get value(): string | number | null;
|
|
22
|
+
constructor();
|
|
23
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
24
|
+
_onChange: (value: string | number | null) => void;
|
|
25
|
+
_onTouched: () => void;
|
|
26
|
+
_validatorChangeFn: () => void;
|
|
27
|
+
writeValue(value: string | number | null): void;
|
|
28
|
+
registerOnChange(fn: (value: string | number | null) => void): void;
|
|
29
|
+
registerOnTouched(fn: () => void): void;
|
|
30
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
31
|
+
validate(control: AbstractControl<string | number | null>): ValidationErrors | null;
|
|
32
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
33
|
+
protected isOptionDisabled(option: ButtonGroupOption): boolean;
|
|
34
|
+
onHandleOptionClick(option: ButtonGroupOption): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonGroupComponent, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroupComponent, "gipi-button-group", never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "help": { "alias": "help"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "options": { "alias": "options"; "required": true; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>;
|
|
37
|
+
static ngAcceptInputType_disabled: unknown;
|
|
38
|
+
static ngAcceptInputType_required: unknown;
|
|
39
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@use '../../theming/utils' as utils;
|
|
2
|
+
|
|
3
|
+
@mixin button-group-theme($theme: ()) {
|
|
4
|
+
$font-family: utils.get-font-family($theme);
|
|
5
|
+
$font-size: utils.get-font-size($theme);
|
|
6
|
+
$font-color: utils.get-font-color($theme);
|
|
7
|
+
|
|
8
|
+
$white-100: utils.get-color($theme, white, 100);
|
|
9
|
+
$black-300: utils.get-color($theme, black, 300);
|
|
10
|
+
$secondary-100: utils.get-color($theme, secondary, 100);
|
|
11
|
+
$primary-500: utils.get-color($theme, primary, 500);
|
|
12
|
+
$primary-600: utils.get-color($theme, primary, 600);
|
|
13
|
+
|
|
14
|
+
.g-button-group-label {
|
|
15
|
+
@include utils.field-label($theme);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.g-button-group {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
gap: 4px;
|
|
22
|
+
font-family: $font-family;
|
|
23
|
+
color: $font-color;
|
|
24
|
+
position: relative;
|
|
25
|
+
overflow: visible;
|
|
26
|
+
width: 100%;
|
|
27
|
+
flex: 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.g-button-group-option-list {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.1);
|
|
34
|
+
|
|
35
|
+
.g-button-group-option {
|
|
36
|
+
@include utils.button-reset($theme);
|
|
37
|
+
|
|
38
|
+
display: flex;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
align-items: center;
|
|
41
|
+
text-align: center;
|
|
42
|
+
vertical-align: middle;
|
|
43
|
+
padding: 1rem 0.6rem;
|
|
44
|
+
width: 100%;
|
|
45
|
+
min-width: 3.6rem;
|
|
46
|
+
max-height: 3.6rem;
|
|
47
|
+
transition: 0.2s;
|
|
48
|
+
border: 1px solid transparent;
|
|
49
|
+
position: relative;
|
|
50
|
+
|
|
51
|
+
font-family: $font-family;
|
|
52
|
+
font-size: $font-size;
|
|
53
|
+
font-weight: 700;
|
|
54
|
+
line-height: 100%;
|
|
55
|
+
|
|
56
|
+
background-color: transparent;
|
|
57
|
+
border-color: $black-300;
|
|
58
|
+
color: $black-300;
|
|
59
|
+
|
|
60
|
+
&:first-child {
|
|
61
|
+
border-top-left-radius: 0.4rem;
|
|
62
|
+
border-bottom-left-radius: 0.4rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:not(:first-child) {
|
|
66
|
+
border-left: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:last-child {
|
|
70
|
+
border-top-right-radius: 0.4rem;
|
|
71
|
+
border-bottom-right-radius: 0.4rem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:not(:disabled):hover {
|
|
75
|
+
background-color: $secondary-100;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.g-button-group-option-selected {
|
|
79
|
+
background-color: $primary-500;
|
|
80
|
+
border-color: $primary-500;
|
|
81
|
+
color: $white-100;
|
|
82
|
+
|
|
83
|
+
&:not(:disabled):hover {
|
|
84
|
+
background-color: $primary-600;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { Booleanish } from '../../types/booleanish.type';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CheckboxChange {
|
|
7
|
+
source: CheckboxComponent;
|
|
8
|
+
checked: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare enum eCheckboxState {
|
|
11
|
+
/** The initial state of the component before any user interaction. */
|
|
12
|
+
INIT = 0,
|
|
13
|
+
/** The state representing the component when it's becoming checked. */
|
|
14
|
+
CHECKED = 1,
|
|
15
|
+
/** The state representing the component when it's becoming unchecked. */
|
|
16
|
+
UNCHECKED = 2,
|
|
17
|
+
/** The state representing the component when it's becoming indeterminate. */
|
|
18
|
+
INDETERMINATE = 3
|
|
19
|
+
}
|
|
20
|
+
export declare class CheckboxComponent implements ControlValueAccessor, Validator, OnChanges, AfterViewInit {
|
|
21
|
+
_inputRef: ElementRef<HTMLInputElement>;
|
|
22
|
+
_labelRef?: ElementRef<HTMLInputElement>;
|
|
23
|
+
private readonly _uniqueId;
|
|
24
|
+
protected _inputId: string;
|
|
25
|
+
private _currentCheckState;
|
|
26
|
+
protected _currentCheckState$: BehaviorSubject<"INIT" | "CHECKED" | "UNCHECKED" | "INDETERMINATE">;
|
|
27
|
+
private _changeDetectorRef;
|
|
28
|
+
elementRef: ElementRef<HTMLElement>;
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
variant: 'primary' | 'secondary';
|
|
32
|
+
label: string;
|
|
33
|
+
help: string;
|
|
34
|
+
required: boolean;
|
|
35
|
+
private _disabled;
|
|
36
|
+
get disabled(): boolean;
|
|
37
|
+
set disabled(value: boolean);
|
|
38
|
+
private _checked;
|
|
39
|
+
get checked(): boolean;
|
|
40
|
+
set checked(value: boolean);
|
|
41
|
+
private _indeterminate;
|
|
42
|
+
get indeterminate(): boolean;
|
|
43
|
+
set indeterminate(value: boolean);
|
|
44
|
+
readonly onChange: EventEmitter<CheckboxChange>;
|
|
45
|
+
readonly onIndeterminate: EventEmitter<boolean>;
|
|
46
|
+
readonly onFocus: EventEmitter<FocusEvent>;
|
|
47
|
+
readonly onBlur: EventEmitter<FocusEvent>;
|
|
48
|
+
constructor();
|
|
49
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
50
|
+
ngAfterViewInit(): void;
|
|
51
|
+
_onChange: (value: Booleanish) => void;
|
|
52
|
+
_onTouched: () => void;
|
|
53
|
+
_validatorChangeFn: () => void;
|
|
54
|
+
writeValue(value: Booleanish): void;
|
|
55
|
+
registerOnChange(fn: (value: Booleanish) => void): void;
|
|
56
|
+
registerOnTouched(fn: () => void): void;
|
|
57
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
58
|
+
validate(control: AbstractControl<boolean>): ValidationErrors | null;
|
|
59
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
60
|
+
protected _preventBubblingFromLabel(event: MouseEvent): void;
|
|
61
|
+
protected _createChangeEvent(isChecked: boolean): CheckboxChange;
|
|
62
|
+
private _syncIndeterminate;
|
|
63
|
+
private _transitionCheckState;
|
|
64
|
+
onHandleClick(): void;
|
|
65
|
+
onHandleFocus(event: FocusEvent): void;
|
|
66
|
+
onHandleBlur(event: FocusEvent): void;
|
|
67
|
+
toggle(): void;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "gipi-checkbox", ["gCheckbox"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "label": { "alias": "label"; "required": false; }; "help": { "alias": "help"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; }, { "onChange": "onChange"; "onIndeterminate": "onIndeterminate"; "onFocus": "onFocus"; "onBlur": "onBlur"; }, never, never, true, never>;
|
|
70
|
+
static ngAcceptInputType_required: unknown;
|
|
71
|
+
static ngAcceptInputType_disabled: unknown;
|
|
72
|
+
static ngAcceptInputType_checked: unknown;
|
|
73
|
+
static ngAcceptInputType_indeterminate: unknown;
|
|
74
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
@use '../../theming/utils' as utils;
|
|
2
|
+
|
|
3
|
+
@mixin checkbox-theme($theme: ()) {
|
|
4
|
+
$font-family: utils.get-font-family($theme);
|
|
5
|
+
$font-size: utils.get-font-size($theme);
|
|
6
|
+
$font-color: utils.get-font-color($theme);
|
|
7
|
+
$white-100: utils.get-color($theme, white, 100);
|
|
8
|
+
$primary-500: utils.get-color($theme, primary, 500);
|
|
9
|
+
$secondary-200: utils.get-color($theme, secondary, 200);
|
|
10
|
+
$secondary-500: utils.get-color($theme, secondary, 500);
|
|
11
|
+
$secondary-300: utils.get-color($theme, secondary, 300);
|
|
12
|
+
|
|
13
|
+
.g-checkbox {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
width: fit-content;
|
|
17
|
+
gap: 1rem;
|
|
18
|
+
|
|
19
|
+
&:has(> input[type='checkbox']:disabled) {
|
|
20
|
+
cursor: not-allowed !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
> input[type='checkbox'] {
|
|
24
|
+
appearance: none;
|
|
25
|
+
width: 1.8rem;
|
|
26
|
+
height: 1.8rem;
|
|
27
|
+
border: 2px solid transparent;
|
|
28
|
+
border-radius: 0.4rem;
|
|
29
|
+
outline: none;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
background-color: $white-100;
|
|
32
|
+
position: relative;
|
|
33
|
+
transition:
|
|
34
|
+
background-color 0.3s ease,
|
|
35
|
+
border-color 0.3s ease;
|
|
36
|
+
|
|
37
|
+
&.primary {
|
|
38
|
+
border-color: $primary-500;
|
|
39
|
+
}
|
|
40
|
+
&.secondary {
|
|
41
|
+
border-color: $secondary-300;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:checked::after {
|
|
45
|
+
content: '✔';
|
|
46
|
+
display: block;
|
|
47
|
+
text-align: center;
|
|
48
|
+
font-family: $font-family;
|
|
49
|
+
font-size: 1.4rem;
|
|
50
|
+
font-weight: 400;
|
|
51
|
+
line-height: 1.6rem;
|
|
52
|
+
height: 1.6rem;
|
|
53
|
+
|
|
54
|
+
&.primary,
|
|
55
|
+
&.secondary {
|
|
56
|
+
color: $white-100;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&[data-state='INDETERMINATE']::after {
|
|
61
|
+
content: '-';
|
|
62
|
+
display: block;
|
|
63
|
+
text-align: center;
|
|
64
|
+
font-family: $font-family;
|
|
65
|
+
font-size: 2.6rem;
|
|
66
|
+
font-weight: 700;
|
|
67
|
+
line-height: 1.2rem;
|
|
68
|
+
height: 1.6rem;
|
|
69
|
+
|
|
70
|
+
&.primary,
|
|
71
|
+
&.secondary {
|
|
72
|
+
color: $primary-500;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Estado "unchecked" */
|
|
77
|
+
&:not(:checked)[data-state='UNCHECKED'] {
|
|
78
|
+
color: transparent;
|
|
79
|
+
|
|
80
|
+
&.primary {
|
|
81
|
+
background-color: $white-100;
|
|
82
|
+
border-color: $primary-500;
|
|
83
|
+
}
|
|
84
|
+
&.secondary {
|
|
85
|
+
background-color: $white-100;
|
|
86
|
+
border-color: $secondary-300;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Estado "checked" */
|
|
91
|
+
&:checked,
|
|
92
|
+
&[data-state='CHECKED'] {
|
|
93
|
+
color: $white-100;
|
|
94
|
+
|
|
95
|
+
&.primary,
|
|
96
|
+
&.secondary {
|
|
97
|
+
background-color: $primary-500;
|
|
98
|
+
border-color: $primary-500;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* Estado "indeterminate" */
|
|
103
|
+
&[data-state='INDETERMINATE'] {
|
|
104
|
+
&.primary {
|
|
105
|
+
background-color: $white-100;
|
|
106
|
+
border-color: $primary-500;
|
|
107
|
+
color: $primary-500;
|
|
108
|
+
}
|
|
109
|
+
&.secondary {
|
|
110
|
+
background-color: $white-100;
|
|
111
|
+
border-color: $secondary-300;
|
|
112
|
+
color: $secondary-300;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&:disabled {
|
|
117
|
+
color: $secondary-500 !important;
|
|
118
|
+
background-color: $secondary-200 !important;
|
|
119
|
+
border-color: $secondary-500 !important;
|
|
120
|
+
cursor: not-allowed !important;
|
|
121
|
+
|
|
122
|
+
&::after {
|
|
123
|
+
color: $secondary-500 !important;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
> label {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
gap: 0.2rem;
|
|
132
|
+
|
|
133
|
+
font-family: $font-family;
|
|
134
|
+
font-size: $font-size;
|
|
135
|
+
color: $font-color;
|
|
136
|
+
line-height: 2rem;
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
|
|
139
|
+
@include utils.user-select(none);
|
|
140
|
+
|
|
141
|
+
&.disabled {
|
|
142
|
+
cursor: not-allowed !important;
|
|
143
|
+
color: $secondary-200 !important;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './checkbox.component';
|