@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,64 @@
|
|
|
1
|
+
import { DestroyRef, ElementRef, EventEmitter, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, NgControl, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
+
import { NgxCurrencyConfig } from 'ngx-currency';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InputCurrencyComponent implements ControlValueAccessor, Validator, OnChanges {
|
|
6
|
+
prefixRef: TemplateRef<ElementRef> | null;
|
|
7
|
+
suffixRef: TemplateRef<ElementRef> | null;
|
|
8
|
+
ngControl?: NgControl;
|
|
9
|
+
matInputRef?: ElementRef<HTMLInputElement>;
|
|
10
|
+
protected readonly _matFormFieldUniqueId: string;
|
|
11
|
+
protected readonly _uniqueId: string;
|
|
12
|
+
private readonly _currencyOptions;
|
|
13
|
+
protected destroyRef: DestroyRef;
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
label: string;
|
|
17
|
+
placeholder: string;
|
|
18
|
+
hintLabel: string;
|
|
19
|
+
type: string;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
readonly: boolean;
|
|
22
|
+
required: boolean;
|
|
23
|
+
min: number;
|
|
24
|
+
max: number | null;
|
|
25
|
+
minLength: number;
|
|
26
|
+
maxLength: number;
|
|
27
|
+
private _options;
|
|
28
|
+
set options(value: Partial<NgxCurrencyConfig>);
|
|
29
|
+
get options(): Partial<NgxCurrencyConfig>;
|
|
30
|
+
help: string;
|
|
31
|
+
private _autocomplete;
|
|
32
|
+
get autocomplete(): 'on' | 'off';
|
|
33
|
+
set autocomplete(value: 'on' | 'off');
|
|
34
|
+
protected _value: number | null;
|
|
35
|
+
set value(value: number | null);
|
|
36
|
+
get value(): number | null;
|
|
37
|
+
readonly onFocusEvent: EventEmitter<FocusEvent>;
|
|
38
|
+
readonly onBlurEvent: EventEmitter<FocusEvent>;
|
|
39
|
+
readonly onKeydownEvent: EventEmitter<KeyboardEvent>;
|
|
40
|
+
readonly onChangeEvent: EventEmitter<Event>;
|
|
41
|
+
protected get errorState(): boolean;
|
|
42
|
+
constructor();
|
|
43
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
44
|
+
_onChange: (value: number | null) => void;
|
|
45
|
+
_onTouched: () => void;
|
|
46
|
+
_validatorChangeFn: () => void;
|
|
47
|
+
writeValue(value: number): void;
|
|
48
|
+
registerOnChange(fn: (value: number | null) => void): void;
|
|
49
|
+
registerOnTouched(fn: () => void): void;
|
|
50
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
51
|
+
validate(control: AbstractControl<number | null>): ValidationErrors | null;
|
|
52
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
53
|
+
handleChange(value: number | null): void;
|
|
54
|
+
protected onInputKeydown(event: KeyboardEvent): void;
|
|
55
|
+
protected onInputFocus(event: FocusEvent): void;
|
|
56
|
+
protected onInputBlur(event: FocusEvent): void;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputCurrencyComponent, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputCurrencyComponent, "gipi-input-currency", ["gInputCurrency"], { "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; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "options": { "alias": "options"; "required": false; }; "help": { "alias": "help"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "onFocusEvent": "focus"; "onBlurEvent": "blur"; "onKeydownEvent": "keydown"; "onChangeEvent": "change"; }, ["prefixRef", "suffixRef"], never, true, never>;
|
|
59
|
+
static ngAcceptInputType_disabled: unknown;
|
|
60
|
+
static ngAcceptInputType_readonly: unknown;
|
|
61
|
+
static ngAcceptInputType_required: unknown;
|
|
62
|
+
static ngAcceptInputType_minLength: unknown;
|
|
63
|
+
static ngAcceptInputType_maxLength: unknown;
|
|
64
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@use '../../theming/utils' as utils;
|
|
2
|
+
|
|
3
|
+
@mixin input-currency-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-input-currency-label {
|
|
9
|
+
@include utils.field-label($theme);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.g-input-currency {
|
|
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,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class InputGroupAddonComponent {
|
|
3
|
+
private _uniqueId;
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputGroupAddonComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputGroupAddonComponent, "gipi-input-group-addon", ["gInputGroupAddon"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class InputGroupComponent {
|
|
4
|
+
private _uniqueId;
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
label: string;
|
|
8
|
+
help: string;
|
|
9
|
+
hintLabel: string;
|
|
10
|
+
required: BooleanInput;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputGroupComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputGroupComponent, "gipi-input-group", ["gInputGroup"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "help": { "alias": "help"; "required": false; }; "hintLabel": { "alias": "hintLabel"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
13
|
+
static ngAcceptInputType_required: unknown;
|
|
14
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
@use '../../theming/utils' as utils;
|
|
2
|
+
|
|
3
|
+
@mixin input-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
|
+
$white-300: utils.get-color($theme, white, 300);
|
|
8
|
+
$black-300: utils.get-color($theme, black, 300);
|
|
9
|
+
$black-400: utils.get-color($theme, black, 400);
|
|
10
|
+
$primary-500: utils.get-color($theme, primary, 500);
|
|
11
|
+
$pastels-secondary: utils.get-color($theme, pastels, secondary);
|
|
12
|
+
|
|
13
|
+
.g-input-group-label {
|
|
14
|
+
@include utils.field-label($theme);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.g-input-group {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
gap: 4px;
|
|
21
|
+
font-family: $font-family;
|
|
22
|
+
color: $font-color;
|
|
23
|
+
position: relative;
|
|
24
|
+
overflow: visible;
|
|
25
|
+
min-width: 0;
|
|
26
|
+
width: 100%;
|
|
27
|
+
min-height: fit-content;
|
|
28
|
+
height: fit-content;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.g-input-group-content {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: row;
|
|
34
|
+
align-items: stretch;
|
|
35
|
+
width: 100%;
|
|
36
|
+
|
|
37
|
+
// ADDON à esquerda
|
|
38
|
+
&:has(> .g-input-group-addon:first-child) {
|
|
39
|
+
> *:has(.mat-mdc-form-field) {
|
|
40
|
+
border-top-left-radius: 0 !important;
|
|
41
|
+
border-bottom-left-radius: 0 !important;
|
|
42
|
+
|
|
43
|
+
.mdc-notched-outline__leading {
|
|
44
|
+
border-top-left-radius: 0 !important;
|
|
45
|
+
border-bottom-left-radius: 0 !important;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// ADDON à direita
|
|
51
|
+
&:has(> .g-input-group-addon:last-child) {
|
|
52
|
+
> *:has(.mat-mdc-form-field) {
|
|
53
|
+
border-top-right-radius: 0 !important;
|
|
54
|
+
border-bottom-right-radius: 0 !important;
|
|
55
|
+
|
|
56
|
+
.mdc-notched-outline__trailing {
|
|
57
|
+
border-top-right-radius: 0 !important;
|
|
58
|
+
border-bottom-right-radius: 0 !important;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.g-input-group-addon {
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
padding: 0.4rem 1rem;
|
|
69
|
+
background: $white-300;
|
|
70
|
+
color: $font-color;
|
|
71
|
+
border-block-start: 1px solid $black-400;
|
|
72
|
+
border-block-end: 1px solid $black-400;
|
|
73
|
+
min-width: 3.6rem;
|
|
74
|
+
flex: 1 0 auto;
|
|
75
|
+
|
|
76
|
+
&:first-child,
|
|
77
|
+
& + & {
|
|
78
|
+
border-inline-start: 1px solid $black-400;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:last-child,
|
|
82
|
+
& + & {
|
|
83
|
+
border-inline-end: 1px solid $black-400;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:first-child {
|
|
87
|
+
border-top-left-radius: 0.4rem;
|
|
88
|
+
border-bottom-left-radius: 0.4rem;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:last-child {
|
|
92
|
+
border-top-right-radius: 0.4rem;
|
|
93
|
+
border-bottom-right-radius: 0.4rem;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:has(.g-button) {
|
|
97
|
+
padding: 0;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
& .g-button .g-button-content {
|
|
102
|
+
border-radius: 0;
|
|
103
|
+
border: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:has(.g-button-content.g-button-primary) {
|
|
107
|
+
border-color: $primary-500;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:has(.g-button-content.g-button-secondary) {
|
|
111
|
+
border-color: $black-300;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&:has(.g-button-content.g-button-tertiary) {
|
|
115
|
+
border-color: $pastels-secondary;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './input-phone.component';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import { ElementRef, EventEmitter, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
|
|
3
|
+
import { AbstractControl, ControlValueAccessor, NgControl, ValidationErrors, Validator } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InputPhoneComponent implements ControlValueAccessor, Validator, OnChanges {
|
|
6
|
+
prefixRef: TemplateRef<ElementRef> | null;
|
|
7
|
+
suffixRef: TemplateRef<ElementRef> | null;
|
|
8
|
+
ngControl?: NgControl;
|
|
9
|
+
private readonly _destroyRef;
|
|
10
|
+
private readonly _changeDetectorRef;
|
|
11
|
+
private _inputEnter;
|
|
12
|
+
protected maskPhone: import("@angular/core").WritableSignal<string>;
|
|
13
|
+
protected readonly _matFormFieldUniqueId: string;
|
|
14
|
+
protected readonly _uniqueId: string;
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
label: string;
|
|
18
|
+
placeholder: string;
|
|
19
|
+
help: string;
|
|
20
|
+
hintLabel: string;
|
|
21
|
+
type: string;
|
|
22
|
+
disabled: BooleanInput;
|
|
23
|
+
readonly: BooleanInput;
|
|
24
|
+
required: BooleanInput;
|
|
25
|
+
min: number;
|
|
26
|
+
max: number;
|
|
27
|
+
minLength: number;
|
|
28
|
+
maxLength: number;
|
|
29
|
+
foreign: BooleanInput;
|
|
30
|
+
private _value;
|
|
31
|
+
get value(): string;
|
|
32
|
+
set value(value: string);
|
|
33
|
+
readonly onFocusEvent: EventEmitter<FocusEvent>;
|
|
34
|
+
readonly onBlurEvent: EventEmitter<FocusEvent>;
|
|
35
|
+
readonly onKeydownEvent: EventEmitter<KeyboardEvent>;
|
|
36
|
+
readonly onChangeEvent: EventEmitter<Event>;
|
|
37
|
+
protected get errorState(): boolean;
|
|
38
|
+
constructor();
|
|
39
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
40
|
+
_onChange: (value: string) => void;
|
|
41
|
+
_onTouched: () => void;
|
|
42
|
+
_validatorChangeFn: () => void;
|
|
43
|
+
writeValue(value: string): void;
|
|
44
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
45
|
+
registerOnTouched(fn: () => void): void;
|
|
46
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
47
|
+
validate(control: AbstractControl<string>): ValidationErrors | null;
|
|
48
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
49
|
+
onHandleInputEnter(): void;
|
|
50
|
+
onHandleInputExit(): void;
|
|
51
|
+
protected onInputKeydown(event: KeyboardEvent): void;
|
|
52
|
+
protected onInputFocus(event: FocusEvent): void;
|
|
53
|
+
protected onInputBlur(event: FocusEvent): void;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputPhoneComponent, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputPhoneComponent, "gipi-input-phone", ["gInputPhone"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "help": { "alias": "help"; "required": false; }; "hintLabel": { "alias": "hintLabel"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "foreign": { "alias": "foreign"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "onFocusEvent": "focus"; "onBlurEvent": "blur"; "onKeydownEvent": "keydown"; "onChangeEvent": "change"; }, ["prefixRef", "suffixRef"], never, true, never>;
|
|
56
|
+
static ngAcceptInputType_disabled: unknown;
|
|
57
|
+
static ngAcceptInputType_readonly: unknown;
|
|
58
|
+
static ngAcceptInputType_required: unknown;
|
|
59
|
+
static ngAcceptInputType_minLength: unknown;
|
|
60
|
+
static ngAcceptInputType_maxLength: unknown;
|
|
61
|
+
static ngAcceptInputType_foreign: unknown;
|
|
62
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@use '../../theming/utils' as utils;
|
|
2
|
+
|
|
3
|
+
@mixin input-phone-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-input-phone-label {
|
|
9
|
+
@include utils.field-label($theme);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.g-input-phone {
|
|
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 './loading.component';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
type tLoadingVariant = 'primary' | 'secondary' | 'light';
|
|
3
|
+
type tLoadingType = 'progress-bar' | 'dot-pulse';
|
|
4
|
+
export declare class LoadingComponent {
|
|
5
|
+
protected readonly _uniqueId: string;
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
variant: tLoadingVariant;
|
|
9
|
+
type: tLoadingType;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingComponent, "gipi-loading", ["gLoading"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
@use '../../theming/utils' as utils;
|
|
2
|
+
|
|
3
|
+
@mixin loading-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
|
+
$pastels-primary: utils.get-color($theme, pastels, primary);
|
|
8
|
+
$primary-500: utils.get-color($theme, primary, 500);
|
|
9
|
+
$secondary-500: utils.get-color($theme, secondary, 500);
|
|
10
|
+
$white-100: utils.get-color($theme, white, 100);
|
|
11
|
+
|
|
12
|
+
.g-loading-dot-pulse-content {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
height: 2rem;
|
|
17
|
+
|
|
18
|
+
.g-loading-dot-pulse {
|
|
19
|
+
position: relative;
|
|
20
|
+
left: -9999px;
|
|
21
|
+
width: 0.6rem;
|
|
22
|
+
height: 0.6rem;
|
|
23
|
+
border-radius: 50%;
|
|
24
|
+
box-shadow: 9999px 0 0 -0.6rem;
|
|
25
|
+
animation: dot-pulse 1.5s infinite linear;
|
|
26
|
+
animation-delay: 0.25s;
|
|
27
|
+
|
|
28
|
+
&::before,
|
|
29
|
+
&::after {
|
|
30
|
+
content: '';
|
|
31
|
+
display: inline-block;
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: 0;
|
|
34
|
+
width: 0.6rem;
|
|
35
|
+
height: 0.6rem;
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&::before {
|
|
40
|
+
box-shadow: 9984px 0 0 -0.6rem;
|
|
41
|
+
animation: dot-pulse-before 1.5s infinite linear;
|
|
42
|
+
animation-delay: 0s;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&::after {
|
|
46
|
+
box-shadow: 10014px 0 0 -0.6rem;
|
|
47
|
+
animation: dot-pulse-after 1.5s infinite linear;
|
|
48
|
+
animation-delay: 0.5s;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.g-loading-primary,
|
|
52
|
+
&.g-loading-primary::before,
|
|
53
|
+
&.g-loading-primary::after {
|
|
54
|
+
background-color: $primary-500;
|
|
55
|
+
color: $primary-500;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.g-loading-secondary,
|
|
59
|
+
&.g-loading-secondary::before,
|
|
60
|
+
&.g-loading-secondary::after {
|
|
61
|
+
border-color: $secondary-500;
|
|
62
|
+
color: $secondary-500;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.g-loading-light,
|
|
66
|
+
&.g-loading-light::before,
|
|
67
|
+
&.g-loading-light::after {
|
|
68
|
+
background-color: $white-100;
|
|
69
|
+
color: $white-100;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@keyframes dot-pulse-before {
|
|
74
|
+
0% {
|
|
75
|
+
box-shadow: 9984px 0 0 -0.6rem;
|
|
76
|
+
}
|
|
77
|
+
30% {
|
|
78
|
+
box-shadow: 9984px 0 0 2px;
|
|
79
|
+
}
|
|
80
|
+
60% {
|
|
81
|
+
box-shadow: 9984px 0 0 -0.6rem;
|
|
82
|
+
}
|
|
83
|
+
100% {
|
|
84
|
+
box-shadow: 9984px 0 0 -0.6rem;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@keyframes dot-pulse {
|
|
89
|
+
0% {
|
|
90
|
+
box-shadow: 9999px 0 0 -0.6rem;
|
|
91
|
+
}
|
|
92
|
+
30% {
|
|
93
|
+
box-shadow: 9999px 0 0 2px;
|
|
94
|
+
}
|
|
95
|
+
60% {
|
|
96
|
+
box-shadow: 9999px 0 0 -0.6rem;
|
|
97
|
+
}
|
|
98
|
+
100% {
|
|
99
|
+
box-shadow: 9999px 0 0 -0.6rem;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@keyframes dot-pulse-after {
|
|
104
|
+
0% {
|
|
105
|
+
box-shadow: 10014px 0 0 -0.6rem;
|
|
106
|
+
}
|
|
107
|
+
30% {
|
|
108
|
+
box-shadow: 10014px 0 0 2px;
|
|
109
|
+
}
|
|
110
|
+
60% {
|
|
111
|
+
box-shadow: 10014px 0 0 -0.6rem;
|
|
112
|
+
}
|
|
113
|
+
100% {
|
|
114
|
+
box-shadow: 10014px 0 0 -0.6rem;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.g-loading-progress-bar-content {
|
|
120
|
+
height: 4px;
|
|
121
|
+
width: 100%;
|
|
122
|
+
background-color: $pastels-primary;
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
|
|
125
|
+
.g-loading-progress-bar-inner {
|
|
126
|
+
width: 100%;
|
|
127
|
+
height: 100%;
|
|
128
|
+
background-color: $primary-500;
|
|
129
|
+
animation: progress-bar 1s infinite linear;
|
|
130
|
+
transform-origin: 0% 50%;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@keyframes progress-bar {
|
|
134
|
+
0% {
|
|
135
|
+
transform: translateX(0) scaleX(0);
|
|
136
|
+
}
|
|
137
|
+
40% {
|
|
138
|
+
transform: translateX(0) scaleX(0.4);
|
|
139
|
+
}
|
|
140
|
+
100% {
|
|
141
|
+
transform: translateX(100%) scaleX(0.5);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import { tLozengeFill } from './shared/lozenge-fill.type';
|
|
3
|
+
import { tLozengeVariant } from './shared/lozenge-variant.type';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/material/tooltip";
|
|
6
|
+
export declare class LozengeComponent {
|
|
7
|
+
private _uniqueId;
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
label: string;
|
|
11
|
+
tooltip: string;
|
|
12
|
+
showPill: BooleanInput;
|
|
13
|
+
pillPosition: 'left' | 'right';
|
|
14
|
+
fill: tLozengeFill;
|
|
15
|
+
variant: tLozengeVariant | null;
|
|
16
|
+
protected get variantClass(): string;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LozengeComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LozengeComponent, "gipi-lozenge", ["gLozenge"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "showPill": { "alias": "showPill"; "required": false; }; "pillPosition": { "alias": "pillPosition"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.MatTooltip; inputs: { "matTooltip": "tooltip"; }; outputs: {}; }]>;
|
|
19
|
+
static ngAcceptInputType_showPill: unknown;
|
|
20
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
@use '../../theming/utils' as utils;
|
|
2
|
+
|
|
3
|
+
@mixin lozenge-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-lozenge {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
gap: 1rem;
|
|
14
|
+
padding: 0.2rem 3rem;
|
|
15
|
+
font-family: $font-family;
|
|
16
|
+
font-size: 1.2rem;
|
|
17
|
+
font-weight: 700;
|
|
18
|
+
border-radius: 0.4rem;
|
|
19
|
+
text-align: center;
|
|
20
|
+
white-space: nowrap;
|
|
21
|
+
height: fit-content;
|
|
22
|
+
|
|
23
|
+
.g-lozenge-pill-left {
|
|
24
|
+
flex-direction: row;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.g-lozenge-pill-right {
|
|
28
|
+
flex-direction: row-reverse;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.g-lozenge-default {
|
|
32
|
+
background-color: #e5e7eb;
|
|
33
|
+
color: #111827;
|
|
34
|
+
}
|
|
35
|
+
&.g-lozenge-success {
|
|
36
|
+
background-color: utils.get-color($theme, pastels, success);
|
|
37
|
+
color: utils.get-color($theme, success, 700);
|
|
38
|
+
}
|
|
39
|
+
&.g-lozenge-information {
|
|
40
|
+
background-color: utils.get-color($theme, pastels, info);
|
|
41
|
+
color: utils.get-color($theme, information, 700);
|
|
42
|
+
}
|
|
43
|
+
&.g-lozenge-warning {
|
|
44
|
+
background-color: #fef3c7;
|
|
45
|
+
color: #bf620e;
|
|
46
|
+
}
|
|
47
|
+
&.g-lozenge-danger {
|
|
48
|
+
background-color: utils.get-color($theme, pastels, danger);
|
|
49
|
+
color: utils.get-color($theme, danger, 700);
|
|
50
|
+
}
|
|
51
|
+
&.g-lozenge-new {
|
|
52
|
+
background-color: #e0e7ff;
|
|
53
|
+
color: #4338ca;
|
|
54
|
+
}
|
|
55
|
+
&.g-lozenge-draft {
|
|
56
|
+
background-color: #ede9fe;
|
|
57
|
+
color: #6b21a8;
|
|
58
|
+
}
|
|
59
|
+
&.g-lozenge-highlight {
|
|
60
|
+
background-color: #fce7f3;
|
|
61
|
+
color: #9d174d;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.g-lozenge-pill {
|
|
65
|
+
position: relative;
|
|
66
|
+
display: flex;
|
|
67
|
+
width: 1rem;
|
|
68
|
+
height: 1rem;
|
|
69
|
+
|
|
70
|
+
.g-lozenge-pill-ping {
|
|
71
|
+
position: absolute;
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
width: 100%;
|
|
74
|
+
height: 100%;
|
|
75
|
+
border-radius: 50%;
|
|
76
|
+
opacity: 0.75;
|
|
77
|
+
animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
78
|
+
background-color: currentColor;
|
|
79
|
+
|
|
80
|
+
@keyframes ping {
|
|
81
|
+
75%,
|
|
82
|
+
100% {
|
|
83
|
+
opacity: 0;
|
|
84
|
+
transform: scale(2);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.g-lozenge-pill-badge {
|
|
90
|
+
position: relative;
|
|
91
|
+
display: inline-flex;
|
|
92
|
+
width: 1rem;
|
|
93
|
+
height: 1rem;
|
|
94
|
+
border-radius: 50%;
|
|
95
|
+
background-color: currentColor;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type tLozengeVariant = 'default' | 'success' | 'information' | 'warning' | 'danger' | 'new' | 'draft' | 'highlight';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { iPasswordRequeriment } from './shared/password-requeriments.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PasswordRequerimentsComponent implements ControlValueAccessor {
|
|
6
|
+
private readonly _uniqueId;
|
|
7
|
+
private _changeDetectorRef;
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
private _password;
|
|
11
|
+
get password(): string;
|
|
12
|
+
set password(value: string);
|
|
13
|
+
private _passwordRequirements;
|
|
14
|
+
get passwordRequirements(): iPasswordRequeriment[];
|
|
15
|
+
set passwordRequirements(value: iPasswordRequeriment[]);
|
|
16
|
+
onValidChange: EventEmitter<iPasswordRequeriment[]>;
|
|
17
|
+
constructor();
|
|
18
|
+
_onChange: (value: string) => void;
|
|
19
|
+
_onTouched: () => void;
|
|
20
|
+
writeValue(value: string): void;
|
|
21
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
22
|
+
registerOnTouched(fn: () => void): void;
|
|
23
|
+
setDisabledState?(_: boolean): void;
|
|
24
|
+
private _changeValidity;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PasswordRequerimentsComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PasswordRequerimentsComponent, "gipi-password-requeriments", never, { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "password": { "alias": "password"; "required": false; }; "passwordRequirements": { "alias": "passwordRequirements"; "required": false; }; }, { "onValidChange": "onValidChange"; }, never, never, true, never>;
|
|
27
|
+
}
|