@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,46 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ChipsComponent<TChip = any> implements ControlValueAccessor, Validator, OnChanges {
|
|
5
|
+
protected readonly _uniqueId: string;
|
|
6
|
+
protected chips: import("@angular/core").WritableSignal<TChip[]>;
|
|
7
|
+
protected hasChips: import("@angular/core").Signal<boolean>;
|
|
8
|
+
private _changeDetectorRef;
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
label: string;
|
|
12
|
+
labelRemoveAll: string;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
required: boolean;
|
|
15
|
+
showRemove: boolean;
|
|
16
|
+
showRemoveAll: boolean;
|
|
17
|
+
property: string;
|
|
18
|
+
propertyFn: ((chip: TChip) => string) | null;
|
|
19
|
+
private _value;
|
|
20
|
+
set value(value: TChip[]);
|
|
21
|
+
get value(): TChip[];
|
|
22
|
+
onFocusEvent: EventEmitter<FocusEvent>;
|
|
23
|
+
onClickEvent: EventEmitter<FocusEvent>;
|
|
24
|
+
removeChangeEvent: EventEmitter<TChip>;
|
|
25
|
+
removeAllChangeEvent: EventEmitter<void>;
|
|
26
|
+
constructor();
|
|
27
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
28
|
+
_onChange: (value: TChip[]) => void;
|
|
29
|
+
_onTouched: () => void;
|
|
30
|
+
_validatorChangeFn: () => void;
|
|
31
|
+
writeValue(value: TChip[]): void;
|
|
32
|
+
registerOnChange(fn: (value: TChip[]) => void): void;
|
|
33
|
+
registerOnTouched(fn: () => void): void;
|
|
34
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
35
|
+
validate(control: AbstractControl<TChip[]>): ValidationErrors | null;
|
|
36
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
37
|
+
protected getChipLabel(chip: TChip): string;
|
|
38
|
+
protected remove(chip: TChip, index: number): void;
|
|
39
|
+
protected removeAll(): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipsComponent<any>, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipsComponent<any>, "gipi-chips", ["gChips"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "labelRemoveAll": { "alias": "labelRemoveAll"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "showRemove": { "alias": "showRemove"; "required": false; }; "showRemoveAll": { "alias": "showRemoveAll"; "required": false; }; "property": { "alias": "property"; "required": false; }; "propertyFn": { "alias": "propertyFn"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "onFocusEvent": "focus"; "onClickEvent": "click"; "removeChangeEvent": "remove"; "removeAllChangeEvent": "removeAll"; }, never, never, true, never>;
|
|
42
|
+
static ngAcceptInputType_disabled: unknown;
|
|
43
|
+
static ngAcceptInputType_required: unknown;
|
|
44
|
+
static ngAcceptInputType_showRemove: unknown;
|
|
45
|
+
static ngAcceptInputType_showRemoveAll: unknown;
|
|
46
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
@use '../../theming/utils' as utils;
|
|
2
|
+
|
|
3
|
+
@mixin chips-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
|
+
$secondary-50: utils.get-color($theme, secondary, 50);
|
|
9
|
+
$secondary-100: utils.get-color($theme, secondary, 100);
|
|
10
|
+
$secondary-200: utils.get-color($theme, secondary, 200);
|
|
11
|
+
$primary-500: utils.get-color($theme, primary, 500);
|
|
12
|
+
$primary-600: utils.get-color($theme, primary, 600);
|
|
13
|
+
|
|
14
|
+
.g-chips-control .mdc-evolution-chip-set__chips {
|
|
15
|
+
--mdc-chip-container-shape-radius: 2rem;
|
|
16
|
+
--mdc-chip-container-height: 2.6rem;
|
|
17
|
+
|
|
18
|
+
margin-left: 0 !important;
|
|
19
|
+
align-items: center !important;
|
|
20
|
+
gap: 1rem !important;
|
|
21
|
+
|
|
22
|
+
&:not(.g-chips-control-item-all) {
|
|
23
|
+
--mdc-chip-elevated-container-color: #{$secondary-100};
|
|
24
|
+
--mdc-chip-outline-color: #{$secondary-200};
|
|
25
|
+
--mdc-chip-label-text-color: #{$font-color};
|
|
26
|
+
cursor: default;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.g-chips-control-item-all {
|
|
30
|
+
--mdc-chip-elevated-container-color: #{$primary-500};
|
|
31
|
+
--mdc-chip-outline-color: #{$primary-600};
|
|
32
|
+
--mdc-chip-label-text-color: #{$white-100};
|
|
33
|
+
|
|
34
|
+
.mdc-evolution-chip__cell .mat-mdc-chip-action {
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.g-chips-control-item {
|
|
40
|
+
margin: 0 !important;
|
|
41
|
+
|
|
42
|
+
&.mat-mdc-chip-disabled {
|
|
43
|
+
--mat-chip-disabled-container-opacity: 1;
|
|
44
|
+
--mdc-chip-elevated-disabled-container-color: #{$secondary-50};
|
|
45
|
+
--mdc-chip-disabled-outline-color: #{$secondary-100};
|
|
46
|
+
--mdc-chip-disabled-label-text-color: #{$secondary-100};
|
|
47
|
+
|
|
48
|
+
cursor: not-allowed !important;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.mdc-evolution-chip__cell .mat-mdc-chip-action {
|
|
52
|
+
padding: 0 0.6rem 0 1rem !important;
|
|
53
|
+
|
|
54
|
+
.mat-mdc-chip-action-label {
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: space-between;
|
|
58
|
+
gap: 0.6rem;
|
|
59
|
+
font-family: $font-family !important;
|
|
60
|
+
font-size: 1.2rem !important;
|
|
61
|
+
font-weight: 500 !important;
|
|
62
|
+
line-height: var(--mdc-chip-container-height) !important;
|
|
63
|
+
letter-spacing: normal !important;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.g-control-item-button {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
width: 2rem;
|
|
74
|
+
height: 2rem;
|
|
75
|
+
outline: none;
|
|
76
|
+
border: none;
|
|
77
|
+
border-radius: 50%;
|
|
78
|
+
background-color: transparent;
|
|
79
|
+
transition: all 0.2s;
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
|
|
82
|
+
.g-control-item-button-icon {
|
|
83
|
+
width: 1.8rem;
|
|
84
|
+
height: 1.8rem;
|
|
85
|
+
font-size: 1.8rem;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:disabled {
|
|
89
|
+
cursor: not-allowed;
|
|
90
|
+
background-color: $secondary-50 !important;
|
|
91
|
+
color: $secondary-100 !important;
|
|
92
|
+
|
|
93
|
+
.g-control-item-button-icon {
|
|
94
|
+
color: inherit !important;
|
|
95
|
+
fill: currentColor !important;
|
|
96
|
+
stroke: currentColor !important;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&:not(:disabled):hover {
|
|
101
|
+
transform: scale(0.98);
|
|
102
|
+
|
|
103
|
+
&:not(.g-control-item-button-all) {
|
|
104
|
+
background-color: $secondary-200;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&.g-control-item-button-all {
|
|
108
|
+
background-color: $primary-600;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&:not(.g-control-item-button-all),
|
|
113
|
+
&.g-control-item-button-all {
|
|
114
|
+
.g-control-item-button-icon {
|
|
115
|
+
color: inherit;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&:not(.g-control-item-button-all) {
|
|
120
|
+
color: $font-color;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&.g-control-item-button-all {
|
|
124
|
+
color: $white-100;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './chips.component';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import type { tConfirmDialogTypes } from './shared/confirm-dialog-types.enum';
|
|
3
|
+
import { ConfirmDialogModel } from './shared/confirm-dialog.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ConfirmDialogIconComponent {
|
|
6
|
+
protected readonly _uniqueId: string;
|
|
7
|
+
type: tConfirmDialogTypes;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogIconComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogIconComponent, "gipi-confirm-dialog-icon", ["gConfirmDialogIcon"], { "type": { "alias": "type"; "required": true; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
11
|
+
export declare class ConfirmDialogComponent {
|
|
12
|
+
protected readonly _uniqueId: string;
|
|
13
|
+
protected readonly dialogRef: MatDialogRef<any, any>;
|
|
14
|
+
protected readonly dialogData: ConfirmDialogModel;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogComponent, "gipi-confirm-dialog", ["gConfirmDialog"], {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
@use '../../theming/utils' as utils;
|
|
2
|
+
|
|
3
|
+
@mixin confirm-dialog-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
|
+
$primary-600: utils.get-color($theme, primary, 600);
|
|
10
|
+
$secondary-50: utils.get-color($theme, secondary, 50);
|
|
11
|
+
$secondary-100: utils.get-color($theme, secondary, 100);
|
|
12
|
+
$secondary-200: utils.get-color($theme, secondary, 200);
|
|
13
|
+
$secondary-900: utils.get-color($theme, secondary, 900);
|
|
14
|
+
$black-100: utils.get-color($theme, black, 100);
|
|
15
|
+
$danger-500: utils.get-color($theme, danger, 500);
|
|
16
|
+
$danger-700: utils.get-color($theme, danger, 700);
|
|
17
|
+
$information-500: utils.get-color($theme, information, 500);
|
|
18
|
+
$information-700: utils.get-color($theme, information, 700);
|
|
19
|
+
$warning-500: utils.get-color($theme, warning, 500);
|
|
20
|
+
$warning-700: utils.get-color($theme, warning, 700);
|
|
21
|
+
|
|
22
|
+
.g-confirm-dialog-title {
|
|
23
|
+
display: flex !important;
|
|
24
|
+
align-items: center !important;
|
|
25
|
+
gap: 1rem !important;
|
|
26
|
+
padding: 1.6rem !important;
|
|
27
|
+
font-family: $font-family !important;
|
|
28
|
+
font-size: 2rem !important;
|
|
29
|
+
font-weight: 600 !important;
|
|
30
|
+
color: $black-100 !important;
|
|
31
|
+
line-height: 3.2rem !important;
|
|
32
|
+
|
|
33
|
+
.g-confirm-dialog-icon,
|
|
34
|
+
.g-confirm-dialog-icon > svg {
|
|
35
|
+
width: 3.2rem !important;
|
|
36
|
+
height: 3.2rem !important;
|
|
37
|
+
font-size: 3.2rem !important;
|
|
38
|
+
line-height: 3.2rem !important;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.g-confirm-dialog-content {
|
|
43
|
+
display: flex !important;
|
|
44
|
+
align-items: flex-start !important;
|
|
45
|
+
padding: 0 2rem !important;
|
|
46
|
+
color: $secondary-900 !important;
|
|
47
|
+
font-family: $font-family !important;
|
|
48
|
+
font-size: $font-size !important;
|
|
49
|
+
line-height: 2rem !important;
|
|
50
|
+
min-height: 8rem !important;
|
|
51
|
+
max-height: 30rem !important;
|
|
52
|
+
overflow-y: auto !important;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.g-confirm-dialog-actions {
|
|
56
|
+
display: flex !important;
|
|
57
|
+
align-items: center !important;
|
|
58
|
+
justify-content: flex-end !important;
|
|
59
|
+
gap: 1.6rem !important;
|
|
60
|
+
padding: 1.6rem 2rem !important;
|
|
61
|
+
|
|
62
|
+
.g-confirm-dialog-btn-action {
|
|
63
|
+
@include utils.button-reset($theme);
|
|
64
|
+
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
padding: 0.6rem 1.2rem;
|
|
69
|
+
max-width: 10rem;
|
|
70
|
+
border-radius: 0.4rem;
|
|
71
|
+
font-family: $font-family;
|
|
72
|
+
font-size: $font-size;
|
|
73
|
+
font-weight: 500;
|
|
74
|
+
line-height: 2rem;
|
|
75
|
+
color: $black-100;
|
|
76
|
+
background-color: transparent;
|
|
77
|
+
transition: all 0.2s;
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
|
|
80
|
+
&.g-cancel:not(:disabled):hover {
|
|
81
|
+
background-color: $secondary-100;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&.g-confirm {
|
|
85
|
+
background-color: $primary-500;
|
|
86
|
+
color: $white-100;
|
|
87
|
+
|
|
88
|
+
&:not(:disabled):hover {
|
|
89
|
+
background-color: $primary-600;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.g-confirm.g-warning {
|
|
94
|
+
background-color: $warning-500;
|
|
95
|
+
color: $white-100;
|
|
96
|
+
|
|
97
|
+
&:not(:disabled):hover {
|
|
98
|
+
background-color: $warning-700;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.g-confirm.g-danger {
|
|
103
|
+
background-color: $danger-500;
|
|
104
|
+
color: $white-100;
|
|
105
|
+
|
|
106
|
+
&:not(:disabled):hover {
|
|
107
|
+
background-color: $danger-700;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&.g-confirm.g-information {
|
|
112
|
+
background-color: $information-500;
|
|
113
|
+
color: $white-100;
|
|
114
|
+
|
|
115
|
+
&:not(:disabled):hover {
|
|
116
|
+
background-color: $information-700;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { tConfirmDialogTypes } from './confirm-dialog-types.enum';
|
|
2
|
+
export declare class ConfirmDialogModel {
|
|
3
|
+
title: string;
|
|
4
|
+
message?: string;
|
|
5
|
+
listMessage?: string[];
|
|
6
|
+
type?: tConfirmDialogTypes;
|
|
7
|
+
width?: string;
|
|
8
|
+
showConfirm?: boolean;
|
|
9
|
+
disableConfirm?: boolean;
|
|
10
|
+
labelConfirm?: string;
|
|
11
|
+
showCancel?: boolean;
|
|
12
|
+
disabledCancel?: boolean;
|
|
13
|
+
labelCancel?: string;
|
|
14
|
+
accept?: Function;
|
|
15
|
+
cancel?: Function;
|
|
16
|
+
constructor(init?: Partial<ConfirmDialogModel>);
|
|
17
|
+
/**
|
|
18
|
+
* Combina os valores fornecidos com os valores padrão do modelo.
|
|
19
|
+
* Se um valor não for fornecido, o padrão da classe será usado.
|
|
20
|
+
*
|
|
21
|
+
* @param data Objeto parcial contendo os valores personalizados do dialog.
|
|
22
|
+
* @returns Um novo objeto `ConfirmDialogModel` com os valores mesclados.
|
|
23
|
+
*/
|
|
24
|
+
static merge(data?: Partial<ConfirmDialogModel>): ConfirmDialogModel;
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
2
|
+
import { ConfirmDialogModel } from './confirm-dialog.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ConfirmDialogService {
|
|
5
|
+
protected matDialog: MatDialog;
|
|
6
|
+
constructor();
|
|
7
|
+
/**
|
|
8
|
+
* Exibe um dialog de confirmação com opções personalizadas.
|
|
9
|
+
* Caso algumas propriedades não sejam fornecidas, valores padrão serão aplicados.
|
|
10
|
+
*
|
|
11
|
+
* @param confirmDialog Objeto contendo as configurações do dialog.
|
|
12
|
+
* @returns Uma `Promise<boolean>` indicando se o usuário confirmou (true) ou cancelou (false) a ação.
|
|
13
|
+
*/
|
|
14
|
+
show(confirmDialog: Partial<ConfirmDialogModel>): Promise<boolean>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmDialogService>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import 'moment/locale/pt-br';
|
|
2
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
4
|
+
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
|
5
|
+
import { DateFilterFn } from '@angular/material/datepicker';
|
|
6
|
+
import { tFieldErrorCustomValidators } from '../field-error/shared/field-error-custom-validators.type';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class DatePickerComponent implements ControlValueAccessor, Validator, OnChanges {
|
|
9
|
+
protected readonly _matFormFieldUniqueId: string;
|
|
10
|
+
protected readonly _uniqueId: string;
|
|
11
|
+
private _dateAdapter;
|
|
12
|
+
private _changeDetectorRef;
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
label: string;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
hintLabel: string;
|
|
18
|
+
help: string;
|
|
19
|
+
disabled: BooleanInput;
|
|
20
|
+
readonly: BooleanInput;
|
|
21
|
+
required: BooleanInput;
|
|
22
|
+
startView: 'month' | 'year' | 'multi-year';
|
|
23
|
+
startAt: Date | null;
|
|
24
|
+
customErrors: tFieldErrorCustomValidators;
|
|
25
|
+
dateFilter: DateFilterFn<Date | null>;
|
|
26
|
+
private _min;
|
|
27
|
+
set min(value: Date | null);
|
|
28
|
+
get min(): Date | null;
|
|
29
|
+
private _max;
|
|
30
|
+
set max(value: Date | null);
|
|
31
|
+
get max(): Date | null;
|
|
32
|
+
private _value;
|
|
33
|
+
set value(value: Date | null);
|
|
34
|
+
get value(): Date | null;
|
|
35
|
+
readonly onFocusEvent: EventEmitter<FocusEvent>;
|
|
36
|
+
readonly onKeyupEvent: EventEmitter<KeyboardEvent>;
|
|
37
|
+
readonly onBlurEvent: EventEmitter<FocusEvent>;
|
|
38
|
+
constructor();
|
|
39
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
40
|
+
_onChange: (value: Date | null) => void;
|
|
41
|
+
_onTouched: () => void;
|
|
42
|
+
_validatorChangeFn: () => void;
|
|
43
|
+
writeValue(value: Date | null): void;
|
|
44
|
+
registerOnChange(fn: (value: Date | null) => void): void;
|
|
45
|
+
registerOnTouched(fn: () => void): void;
|
|
46
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
47
|
+
validate(control: AbstractControl<Date | null>): ValidationErrors | null;
|
|
48
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
49
|
+
protected onHandleBlur(event: FocusEvent): void;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "gipi-date-picker", ["gDatePicker"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hintLabel": { "alias": "hintLabel"; "required": false; }; "help": { "alias": "help"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "customErrors": { "alias": "customErrors"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "onFocusEvent": "focus"; "onKeyupEvent": "keyup"; "onBlurEvent": "blur"; }, never, never, true, never>;
|
|
52
|
+
static ngAcceptInputType_disabled: unknown;
|
|
53
|
+
static ngAcceptInputType_readonly: unknown;
|
|
54
|
+
static ngAcceptInputType_required: unknown;
|
|
55
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@use '../../theming/utils' as utils;
|
|
2
|
+
|
|
3
|
+
@mixin date-picker-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
|
+
.g-date-picker-label {
|
|
9
|
+
@include utils.field-label($theme);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.g-date-picker {
|
|
13
|
+
@include utils.mat-form-field-reset($theme);
|
|
14
|
+
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
gap: 4px;
|
|
18
|
+
font-family: $font-family;
|
|
19
|
+
color: $font-color;
|
|
20
|
+
position: relative;
|
|
21
|
+
overflow: visible;
|
|
22
|
+
min-width: 0;
|
|
23
|
+
width: 100%;
|
|
24
|
+
min-height: fit-content;
|
|
25
|
+
height: fit-content;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './date-picker.component';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import 'moment/locale/pt-br';
|
|
2
|
+
import { BooleanInput, type NumberInput } from '@angular/cdk/coercion';
|
|
3
|
+
import { AfterViewInit, EventEmitter, OnInit } from '@angular/core';
|
|
4
|
+
import { DateRange, type DateFilterFn } from '@angular/material/datepicker';
|
|
5
|
+
import { iSelectDateOption } from './shared/select-date-option.interface';
|
|
6
|
+
import { iSelectedDateEvent } from './shared/selected-date-event.interface';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class DateRangePickerComponent implements OnInit, AfterViewInit {
|
|
9
|
+
protected readonly _matFormFieldUniqueId: string;
|
|
10
|
+
private _uniqueId;
|
|
11
|
+
private _changeDetectorRef;
|
|
12
|
+
private _dateAdapter;
|
|
13
|
+
protected isCustomRange: import("@angular/core").WritableSignal<boolean>;
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
label: string;
|
|
17
|
+
placeholder: string;
|
|
18
|
+
hintLabel: string;
|
|
19
|
+
help: string;
|
|
20
|
+
disabled: BooleanInput;
|
|
21
|
+
readonly: BooleanInput;
|
|
22
|
+
required: BooleanInput;
|
|
23
|
+
startAt: Date | null;
|
|
24
|
+
dateFilter: DateFilterFn<Date | null>;
|
|
25
|
+
showPresetDefault: BooleanInput;
|
|
26
|
+
startPresetIndex: NumberInput;
|
|
27
|
+
dateFormat: string;
|
|
28
|
+
private _minDate;
|
|
29
|
+
set minDate(value: Date | null);
|
|
30
|
+
get minDate(): Date | null;
|
|
31
|
+
private _maxDate;
|
|
32
|
+
set maxDate(value: Date | null);
|
|
33
|
+
get maxDate(): Date | null;
|
|
34
|
+
private _dateDropDownOptions;
|
|
35
|
+
set dateDropDownOptions(value: iSelectDateOption[]);
|
|
36
|
+
get dateDropDownOptions(): iSelectDateOption[];
|
|
37
|
+
selectedDates: DateRange<Date>;
|
|
38
|
+
onDateSelectionChanged: EventEmitter<iSelectedDateEvent>;
|
|
39
|
+
dateListOptions: EventEmitter<iSelectDateOption[]>;
|
|
40
|
+
constructor();
|
|
41
|
+
ngOnInit(): void;
|
|
42
|
+
ngAfterViewInit(): void;
|
|
43
|
+
protected toggleDateOptionSelectionList(event?: MouseEvent): void;
|
|
44
|
+
protected updateCustomRange(selectedDates: DateRange<Date> | null): void;
|
|
45
|
+
private _getDateRangeFromOption;
|
|
46
|
+
private _areDatesEqual;
|
|
47
|
+
protected updateSelection(option: iSelectDateOption): void;
|
|
48
|
+
protected selectCustomOption(): void;
|
|
49
|
+
protected toggleCustomDateRangeView(): void;
|
|
50
|
+
protected clearSelection(event: MouseEvent): void;
|
|
51
|
+
private _resetOptionSelection;
|
|
52
|
+
private _updateDateOnOptionSelect;
|
|
53
|
+
private _updateSelectedDates;
|
|
54
|
+
private _getDaysInMonth;
|
|
55
|
+
private _getClone;
|
|
56
|
+
private _updateDefaultDatesValues;
|
|
57
|
+
private _updatedFromListValueSelection;
|
|
58
|
+
private _initializeDefaultSelection;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerComponent, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "gipi-date-range-picker", ["gDateRangePicker"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hintLabel": { "alias": "hintLabel"; "required": false; }; "help": { "alias": "help"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "showPresetDefault": { "alias": "showPresetDefault"; "required": false; }; "startPresetIndex": { "alias": "startPresetIndex"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "minDate": { "alias": "min"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "dateDropDownOptions": { "alias": "dateDropDownOptions"; "required": false; }; "selectedDates": { "alias": "selectedDates"; "required": false; }; }, { "onDateSelectionChanged": "onDateSelectionChanged"; "dateListOptions": "dateListOptions"; }, never, never, true, never>;
|
|
61
|
+
static ngAcceptInputType_disabled: unknown;
|
|
62
|
+
static ngAcceptInputType_readonly: unknown;
|
|
63
|
+
static ngAcceptInputType_required: unknown;
|
|
64
|
+
static ngAcceptInputType_showPresetDefault: unknown;
|
|
65
|
+
static ngAcceptInputType_startPresetIndex: unknown;
|
|
66
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@use '../../theming/utils' as utils;
|
|
2
|
+
@use './shared/calendar/calendar.component.scss' as calendar;
|
|
3
|
+
|
|
4
|
+
@mixin date-range-picker-theme($theme: ()) {
|
|
5
|
+
$font-family: utils.get-font-family($theme);
|
|
6
|
+
$font-size: utils.get-font-size($theme);
|
|
7
|
+
$font-color: utils.get-font-color($theme);
|
|
8
|
+
$white-100: utils.get-color($theme, white, 100);
|
|
9
|
+
$white-400: utils.get-color($theme, white, 400);
|
|
10
|
+
$black-300: utils.get-color($theme, black, 300);
|
|
11
|
+
$primary-500: utils.get-color($theme, primary, 500);
|
|
12
|
+
$primary-700: utils.get-color($theme, primary, 700);
|
|
13
|
+
$secondary-100: utils.get-color($theme, secondary, 100);
|
|
14
|
+
|
|
15
|
+
@include calendar.calendar-theme($theme);
|
|
16
|
+
|
|
17
|
+
.g-date-range-picker-label {
|
|
18
|
+
@include utils.field-label($theme);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.g-date-range-picker {
|
|
22
|
+
@include utils.mat-form-field-reset($theme);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.cdk-overlay-pane:has(.g-date-range-picker-ckd-container) {
|
|
26
|
+
@include utils.overlay();
|
|
27
|
+
|
|
28
|
+
max-height: 100vh;
|
|
29
|
+
border-radius: 0.4rem;
|
|
30
|
+
overflow-y: auto;
|
|
31
|
+
overflow-x: hidden;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.g-date-range-picker-custom-calendar-container {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: row;
|
|
37
|
+
width: 100%;
|
|
38
|
+
border-radius: 0.4rem;
|
|
39
|
+
background-color: $white-100;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.g-preset-ranges {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
gap: 0.2rem;
|
|
47
|
+
padding: 0.8rem;
|
|
48
|
+
min-width: 14rem;
|
|
49
|
+
height: 100%;
|
|
50
|
+
background: $white-400;
|
|
51
|
+
border-top-left-radius: 0.6rem;
|
|
52
|
+
border-bottom-left-radius: 0.6rem;
|
|
53
|
+
border-right: 1px solid $secondary-100;
|
|
54
|
+
|
|
55
|
+
.g-preset-ranges-button {
|
|
56
|
+
@include utils.user-select(none);
|
|
57
|
+
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: flex-start;
|
|
61
|
+
padding: 0.8rem;
|
|
62
|
+
height: 3.6rem;
|
|
63
|
+
border-radius: 0.6rem;
|
|
64
|
+
background-color: transparent;
|
|
65
|
+
outline: none;
|
|
66
|
+
font-family: $font-family;
|
|
67
|
+
font-size: 1.2rem;
|
|
68
|
+
font-weight: 500;
|
|
69
|
+
color: $black-300;
|
|
70
|
+
border: none;
|
|
71
|
+
transition: all 0.2s;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
|
|
74
|
+
&.g-preset-ranges-button-selected {
|
|
75
|
+
background-color: $primary-500;
|
|
76
|
+
color: $white-100;
|
|
77
|
+
|
|
78
|
+
&:hover {
|
|
79
|
+
background-color: $primary-700;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&:hover {
|
|
84
|
+
background-color: $primary-500;
|
|
85
|
+
color: $white-100;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './date-range-picker.component';
|
|
2
|
+
export * from './shared/calendar/calendar.component';
|
|
3
|
+
export * from './shared/default-preset-date-options';
|
|
4
|
+
export * from './shared/preset-key.enum';
|
|
5
|
+
export * from './shared/select-date-option.interface';
|
|
6
|
+
export * from './shared/selected-date-event.interface';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import 'moment/locale/pt-br';
|
|
2
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
3
|
+
import { DateFilterFn, DateRange, MatCalendar } from '@angular/material/datepicker';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CalendarComponent implements OnInit {
|
|
6
|
+
calendarView: MatCalendar<Date>;
|
|
7
|
+
private readonly _uniqueId;
|
|
8
|
+
private _changeDetectorRef;
|
|
9
|
+
private _dateAdapter;
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
selectedDates: DateRange<Date> | null;
|
|
13
|
+
startAt: Date | null;
|
|
14
|
+
dateFilter: DateFilterFn<Date | null>;
|
|
15
|
+
private _min;
|
|
16
|
+
set min(value: Date | null);
|
|
17
|
+
get min(): Date | null;
|
|
18
|
+
private _max;
|
|
19
|
+
set max(value: Date | null);
|
|
20
|
+
get max(): Date | null;
|
|
21
|
+
dateRangeCompleted: EventEmitter<DateRange<Date>>;
|
|
22
|
+
constructor();
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
protected updateDateRangeSelection(date: Date | null): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent, "gipi-calendar", ["gCalendar"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "selectedDates": { "alias": "selectedDates"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, { "dateRangeCompleted": "dateRangeCompleted"; }, never, never, true, never>;
|
|
27
|
+
}
|