@sapphire-ion/framework 1.2.22 → 1.2.25
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/esm2022/lib/components/default/default-table/th-filter/th-filter.component.mjs +12 -5
- package/esm2022/lib/components/default/default.module.mjs +6 -3
- package/esm2022/lib/components/inputs/input-date/input-date.component.mjs +116 -44
- package/esm2022/lib/components/inputs/inputs.module.mjs +22 -5
- package/esm2022/lib/services/utils.service.mjs +21 -1
- package/fesm2022/sapphire-ion-framework.mjs +166 -49
- package/fesm2022/sapphire-ion-framework.mjs.map +1 -1
- package/lib/components/default/default-table/th-filter/th-filter.component.d.ts +4 -1
- package/lib/components/default/default.module.d.ts +2 -1
- package/lib/components/inputs/input-date/input-date.component.d.ts +39 -7
- package/lib/components/inputs/inputs.module.d.ts +3 -1
- package/lib/components/stepper/step/step.component.d.ts +1 -1
- package/lib/services/utils.service.d.ts +7 -0
- package/package.json +2 -2
- package/themes/compiled-styles.scss +0 -4
- package/themes/components/inputs/input-date/input-date.component.scss +3 -32
- package/themes/styles/core.styles.scss +45 -9
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, QueryList } from '@angular/core';
|
|
2
2
|
import { TableField } from '../../../../classes/inputs/table-field';
|
|
3
3
|
import { InputConfiguration } from '../../../inputs/input-configuration';
|
|
4
|
+
import { InputDateComponent } from '../../../inputs/input-date/input-date.component';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ThFilterComponent implements OnInit {
|
|
6
7
|
field: TableField;
|
|
@@ -15,6 +16,8 @@ export declare class ThFilterComponent implements OnInit {
|
|
|
15
16
|
changeEmitter: EventEmitter<void>;
|
|
16
17
|
Change(): void;
|
|
17
18
|
SetInactive(): void;
|
|
19
|
+
lstInputDate: QueryList<InputDateComponent>;
|
|
20
|
+
WillDismiss(): void;
|
|
18
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThFilterComponent, never>;
|
|
19
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<ThFilterComponent, "th-filter", never, { "field": { "alias": "field"; "required": false; }; }, { "changeEmitter": "change"; }, never, never, false, never>;
|
|
20
23
|
}
|
|
@@ -15,6 +15,7 @@ import * as i13 from "../loading/loading.component";
|
|
|
15
15
|
import * as i14 from "../../directives/ng-var.directive";
|
|
16
16
|
import * as i15 from "../popover/sion-popover.module";
|
|
17
17
|
import * as i16 from "../content-block/content-block.component";
|
|
18
|
+
import * as i17 from "@angular/cdk/drag-drop";
|
|
18
19
|
/** Modulo parão, inclui os seguiintes componentes:
|
|
19
20
|
* - HeaderListComponent,
|
|
20
21
|
- DefaultListComponent,
|
|
@@ -25,6 +26,6 @@ import * as i16 from "../content-block/content-block.component";
|
|
|
25
26
|
*/
|
|
26
27
|
export declare class DefaultModule {
|
|
27
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultModule, never>;
|
|
28
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DefaultModule, [typeof i1.HeaderListComponent, typeof i2.DefaultListComponent, typeof i3.DefaultViewComponent, typeof i4.HeaderViewComponent, typeof i5.DefaultTableComponent, typeof i6.DefaultPaginationComponent, typeof i7.ThFilterComponent], [typeof i8.IonicModule, typeof i9.CommonModule, typeof i10.InputsModule, typeof i11.ReactiveFormsModule, typeof i12.RouterLink, typeof i11.FormsModule, typeof i12.RouterModule, typeof i12.RouterOutlet, typeof i12.RouterLink, typeof i13.LoadingComponent, typeof i14.NgVarDirective, typeof i15.SIonPopoverModule, typeof i16.ContentBlockComponent], [typeof i1.HeaderListComponent, typeof i2.DefaultListComponent, typeof i3.DefaultViewComponent, typeof i4.HeaderViewComponent, typeof i5.DefaultTableComponent, typeof i6.DefaultPaginationComponent, typeof i7.ThFilterComponent]>;
|
|
29
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DefaultModule, [typeof i1.HeaderListComponent, typeof i2.DefaultListComponent, typeof i3.DefaultViewComponent, typeof i4.HeaderViewComponent, typeof i5.DefaultTableComponent, typeof i6.DefaultPaginationComponent, typeof i7.ThFilterComponent], [typeof i8.IonicModule, typeof i9.CommonModule, typeof i10.InputsModule, typeof i11.ReactiveFormsModule, typeof i12.RouterLink, typeof i11.FormsModule, typeof i12.RouterModule, typeof i12.RouterOutlet, typeof i12.RouterLink, typeof i13.LoadingComponent, typeof i14.NgVarDirective, typeof i15.SIonPopoverModule, typeof i16.ContentBlockComponent, typeof i17.CdkDragPlaceholder], [typeof i1.HeaderListComponent, typeof i2.DefaultListComponent, typeof i3.DefaultViewComponent, typeof i4.HeaderViewComponent, typeof i5.DefaultTableComponent, typeof i6.DefaultPaginationComponent, typeof i7.ThFilterComponent]>;
|
|
29
30
|
static ɵinj: i0.ɵɵInjectorDeclaration<DefaultModule>;
|
|
30
31
|
}
|
|
@@ -1,27 +1,59 @@
|
|
|
1
|
-
import { ElementRef, InputSignal } from '@angular/core';
|
|
1
|
+
import { ElementRef, InputSignal, Signal, WritableSignal } from '@angular/core';
|
|
2
2
|
import { MaskitoOptions } from '@maskito/core';
|
|
3
3
|
import moment from 'moment';
|
|
4
4
|
import { InputDateConfiguration } from './input-date.configuration';
|
|
5
5
|
import { CustomInput } from '../custom-input';
|
|
6
6
|
import { IonDatetime, IonModal } from '@ionic/angular';
|
|
7
7
|
import { SIonPopoverComponent } from '../../popover/sion-popover/sion-popover.component';
|
|
8
|
+
import { MatCalendar } from '@angular/material/datepicker';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class InputDateComponent extends CustomInput<string> {
|
|
10
11
|
elementRef: ElementRef;
|
|
12
|
+
static FormatISO: string;
|
|
11
13
|
configuration: InputSignal<InputDateConfiguration>;
|
|
12
14
|
input: ElementRef<HTMLInputElement>;
|
|
13
15
|
inputContainer: ElementRef<HTMLDivElement>;
|
|
14
16
|
setFocus(event: MouseEvent | null): void;
|
|
15
17
|
options: MaskitoOptions;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
momentFormat: 'DD/MM/YYYY HH:mm' | 'DD/MM/YYYY' | 'HH:mm';
|
|
19
|
+
windowSize: WritableSignal<number>;
|
|
20
|
+
onResize(event: any): void;
|
|
21
|
+
interface: Signal<DateInterfaces>;
|
|
22
|
+
DateInterfaces: typeof DateInterfaces;
|
|
18
23
|
constructor(elementRef: ElementRef);
|
|
19
|
-
presentation:
|
|
20
|
-
|
|
24
|
+
presentation: DatePresentation;
|
|
25
|
+
readableValue: string;
|
|
26
|
+
SetValueFromReadable(value: string): void;
|
|
27
|
+
SetValueFromMoment(value: moment.Moment | null): void;
|
|
28
|
+
calendar: MatCalendar<moment.Moment>;
|
|
29
|
+
/**
|
|
30
|
+
* @param obj String in ISO format (YYYY-MM-DDThh:mm:ss)
|
|
31
|
+
*/
|
|
32
|
+
SetValue(obj: string): void;
|
|
33
|
+
momentValue?: moment.Moment;
|
|
21
34
|
datetime: IonDatetime;
|
|
22
35
|
writeValue(obj: string): void | Promise<void>;
|
|
23
|
-
|
|
24
|
-
|
|
36
|
+
popover: SIonPopoverComponent;
|
|
37
|
+
modal: IonModal;
|
|
38
|
+
Present(event: MouseEvent): Promise<void>;
|
|
39
|
+
Dismiss(): Promise<void>;
|
|
40
|
+
DatePresentation: typeof DatePresentation;
|
|
41
|
+
lstHours: string[];
|
|
42
|
+
lstMinutes: string[];
|
|
43
|
+
hour: string;
|
|
44
|
+
minute: string;
|
|
45
|
+
OnChangeHour(event: string): void;
|
|
46
|
+
OnChangeMinute(event: string): void;
|
|
25
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputDateComponent, never>;
|
|
26
48
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputDateComponent, "input-date, input-date-time, input-time", never, { "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
27
49
|
}
|
|
50
|
+
declare enum DatePresentation {
|
|
51
|
+
DateTime = 1,
|
|
52
|
+
Date = 2,
|
|
53
|
+
Time = 3
|
|
54
|
+
}
|
|
55
|
+
declare enum DateInterfaces {
|
|
56
|
+
Popover = 1,
|
|
57
|
+
Modal = 2
|
|
58
|
+
}
|
|
59
|
+
export {};
|
|
@@ -24,8 +24,10 @@ import * as i22 from "../popover/sion-popover.module";
|
|
|
24
24
|
import * as i23 from "../loading/loading.component";
|
|
25
25
|
import * as i24 from "../../directives/ng-var.directive";
|
|
26
26
|
import * as i25 from "@angular/cdk/overlay";
|
|
27
|
+
import * as i26 from "@angular/material/datepicker";
|
|
28
|
+
import * as i27 from "@angular/material/card";
|
|
27
29
|
export declare class InputsModule {
|
|
28
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputsModule, never>;
|
|
29
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<InputsModule, [typeof i1.InputBoolComponent, typeof i2.InputCepComponent, typeof i3.InputColorComponent, typeof i4.InputCpfCnpjComponent, typeof i5.InputDateComponent, typeof i6.InputDecimalComponent, typeof i7.InputFileComponent, typeof i8.InputIconComponent, typeof i9.InputSelectComponent, typeof i10.SIonLabelTemplateDirective, typeof i11.SIonOptionTemplateDirective, typeof i12.SIonPlaceholderTemplateDirective, typeof i13.InputStringComponent, typeof i14.InputTelefoneComponent, typeof i15.InputTextareaComponent, typeof i16.DownloadButtonComponent], [typeof i17.IonicModule, typeof i18.CommonModule, typeof i19.ReactiveFormsModule, typeof i19.FormsModule, typeof i20.ImageComponent, typeof i21.MaskitoDirective, typeof i22.SIonPopoverModule, typeof i23.LoadingComponent, typeof i24.NgVarDirective, typeof i25.OverlayModule], [typeof i1.InputBoolComponent, typeof i2.InputCepComponent, typeof i3.InputColorComponent, typeof i4.InputCpfCnpjComponent, typeof i5.InputDateComponent, typeof i6.InputDecimalComponent, typeof i7.InputFileComponent, typeof i8.InputIconComponent, typeof i9.InputSelectComponent, typeof i10.SIonLabelTemplateDirective, typeof i11.SIonOptionTemplateDirective, typeof i12.SIonPlaceholderTemplateDirective, typeof i13.InputStringComponent, typeof i14.InputTelefoneComponent, typeof i15.InputTextareaComponent, typeof i16.DownloadButtonComponent]>;
|
|
31
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<InputsModule, [typeof i1.InputBoolComponent, typeof i2.InputCepComponent, typeof i3.InputColorComponent, typeof i4.InputCpfCnpjComponent, typeof i5.InputDateComponent, typeof i6.InputDecimalComponent, typeof i7.InputFileComponent, typeof i8.InputIconComponent, typeof i9.InputSelectComponent, typeof i10.SIonLabelTemplateDirective, typeof i11.SIonOptionTemplateDirective, typeof i12.SIonPlaceholderTemplateDirective, typeof i13.InputStringComponent, typeof i14.InputTelefoneComponent, typeof i15.InputTextareaComponent, typeof i16.DownloadButtonComponent], [typeof i17.IonicModule, typeof i18.CommonModule, typeof i19.ReactiveFormsModule, typeof i19.FormsModule, typeof i20.ImageComponent, typeof i21.MaskitoDirective, typeof i22.SIonPopoverModule, typeof i23.LoadingComponent, typeof i24.NgVarDirective, typeof i25.OverlayModule, typeof i26.MatDatepickerModule, typeof i27.MatCardModule], [typeof i1.InputBoolComponent, typeof i2.InputCepComponent, typeof i3.InputColorComponent, typeof i4.InputCpfCnpjComponent, typeof i5.InputDateComponent, typeof i6.InputDecimalComponent, typeof i7.InputFileComponent, typeof i8.InputIconComponent, typeof i9.InputSelectComponent, typeof i10.SIonLabelTemplateDirective, typeof i11.SIonOptionTemplateDirective, typeof i12.SIonPlaceholderTemplateDirective, typeof i13.InputStringComponent, typeof i14.InputTelefoneComponent, typeof i15.InputTextareaComponent, typeof i16.DownloadButtonComponent]>;
|
|
30
32
|
static ɵinj: i0.ɵɵInjectorDeclaration<InputsModule>;
|
|
31
33
|
}
|
|
@@ -9,7 +9,7 @@ export declare class StepComponent implements OnInit {
|
|
|
9
9
|
get index(): number;
|
|
10
10
|
get fill(): boolean;
|
|
11
11
|
get selected(): boolean;
|
|
12
|
-
get _fill():
|
|
12
|
+
get _fill(): 0 | 1;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepComponent, never>;
|
|
14
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<StepComponent, "step", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, ["ion-icon, ion-text"], false, never>;
|
|
15
15
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ActionSheetController } from '@ionic/angular';
|
|
2
|
+
import { PickFilesOptions } from '@capawesome/capacitor-file-picker';
|
|
2
3
|
import { CameraSource } from '@capacitor/camera';
|
|
3
4
|
import { InputFileConfiguration } from '../components/inputs/input-file/input-file.configuration';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
@@ -39,6 +40,12 @@ export declare class Utils {
|
|
|
39
40
|
blob: Blob;
|
|
40
41
|
fileName: string;
|
|
41
42
|
}>;
|
|
43
|
+
static PickFile(options?: PickFilesOptions): Promise<{
|
|
44
|
+
blob: Blob;
|
|
45
|
+
mimeType: string;
|
|
46
|
+
name: string;
|
|
47
|
+
size: number;
|
|
48
|
+
}[]>;
|
|
42
49
|
static FindMimeFromNameOrExtension(pathOrExtension: string): string;
|
|
43
50
|
}
|
|
44
51
|
export declare function Search<T = any>(items: T[], Search: string, bindLabel: ((obj: T) => string)): T[];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapphire-ion/framework",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.25",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^18.2.8",
|
|
7
7
|
"@angular/core": "^18.2.8",
|
|
8
8
|
"@angular/forms": "^18.2.8",
|
|
9
|
-
"@ionic/angular": "^8.
|
|
9
|
+
"@ionic/angular": "^8.7.3",
|
|
10
10
|
"@maskito/angular": "^3.1.2",
|
|
11
11
|
"@maskito/core": "^3.1.2",
|
|
12
12
|
"@maskito/kit": "^3.1.0",
|
|
@@ -5,36 +5,7 @@
|
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
ion-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
--width: 8rem;
|
|
12
|
-
}
|
|
13
|
-
&.date{
|
|
14
|
-
--width: 21.5rem;
|
|
15
|
-
}
|
|
16
|
-
&.datetime{
|
|
17
|
-
--width: 29rem;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
ion-modal{
|
|
21
|
-
--height: auto;
|
|
22
|
-
&.time{
|
|
23
|
-
--width: 8rem;
|
|
24
|
-
}
|
|
25
|
-
&.date{
|
|
26
|
-
--width: 21.5rem;
|
|
27
|
-
}
|
|
28
|
-
&.datetime{
|
|
29
|
-
--width: 29rem;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
ion-datetime{
|
|
33
|
-
--wheel-highlight-background: var(--ion-color-primary) !important;
|
|
34
|
-
&.date{
|
|
35
|
-
width: 21.5rem;
|
|
36
|
-
}
|
|
37
|
-
&.time{
|
|
38
|
-
width: 8rem;
|
|
39
|
-
}
|
|
8
|
+
ion-picker{
|
|
9
|
+
@apply h-full;
|
|
10
|
+
--fade-background-rgb: transparent;
|
|
40
11
|
}
|
|
@@ -79,7 +79,7 @@ ion-modal.filter-modal{
|
|
|
79
79
|
--max-width: 80%;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
table{
|
|
82
|
+
table:not(.mat-calendar-table){
|
|
83
83
|
color: var(--ion-color-dark);
|
|
84
84
|
@apply min-w-full text-sm text-left rtl:text-right table-fixed;
|
|
85
85
|
thead{
|
|
@@ -106,14 +106,6 @@ table{
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
//--background: rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.07);
|
|
110
|
-
//--ion-text-color-rgb: 255,255,255;
|
|
111
|
-
body{
|
|
112
|
-
table{
|
|
113
|
-
color: var(--ion-color-step-700);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
109
|
|
|
118
110
|
*{
|
|
119
111
|
font-family: 'Poppins';
|
|
@@ -472,4 +464,48 @@ text-tooltip{
|
|
|
472
464
|
|
|
473
465
|
ion-card::part(native){
|
|
474
466
|
height: 100%
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
ion-popover.th-filter{
|
|
470
|
+
--height: fit-content;
|
|
471
|
+
--width: fit-content;
|
|
472
|
+
.popover-viewport{
|
|
473
|
+
height: fit-content;
|
|
474
|
+
width: fit-content;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
:host{
|
|
479
|
+
--fade-background-rgb: transparent !important;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
mat-calendar{
|
|
483
|
+
--mat-datepicker-calendar-date-text-color: var(--ion-color-dark);
|
|
484
|
+
--mat-datepicker-calendar-header-color: var(--ion-color-dark);
|
|
485
|
+
.mat-calendar-table-header th{
|
|
486
|
+
padding: 0 !important;
|
|
487
|
+
color: var(--ion-color-medium);
|
|
488
|
+
span {
|
|
489
|
+
justify-content: center;
|
|
490
|
+
align-items: center;
|
|
491
|
+
display: flex;
|
|
492
|
+
height: 100%;
|
|
493
|
+
width: 100%;
|
|
494
|
+
padding: .5rem;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
.mat-calendar-body-label, .mdc-button__label{
|
|
498
|
+
color: var(--ion-color-dark);
|
|
499
|
+
}
|
|
500
|
+
--mdc-text-button-label-text-color: var(--ion-color-dark);
|
|
501
|
+
.mat-calendar-controls{
|
|
502
|
+
margin: 0 !important;
|
|
503
|
+
}
|
|
504
|
+
--mat-datepicker-calendar-date-selected-state-background-color: var(--ion-color-primary);
|
|
505
|
+
--mat-datepicker-calendar-date-today-outline-color: var(--ion-color-primary);
|
|
506
|
+
--mdc-text-button-label-text-color: var(--ion-color-dark);
|
|
507
|
+
--mat-datepicker-calendar-period-button-icon-color: var(--ion-color-dark);
|
|
508
|
+
}
|
|
509
|
+
body{
|
|
510
|
+
--mat-app-primary: var(--ion-color-primary);
|
|
475
511
|
}
|