@arsedizioni/ars-utils 19.0.3 → 19.0.5
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/clipper.ui/ui/browser-dialog/browser-dialog.component.d.ts +1 -1
- package/clipper.ui/ui/document/document.component.d.ts +4 -4
- package/clipper.ui/ui/document-index/document-index.component.d.ts +3 -3
- package/clipper.ui/ui/references/references.component.d.ts +1 -1
- package/clipper.ui/ui/search-calendar/search-calendar.component.d.ts +2 -3
- package/clipper.ui/ui/search-dialog/search-dialog.component.d.ts +3 -3
- package/clipper.ui/ui/search-facets/search-facets.component.d.ts +1 -2
- package/clipper.ui/ui/search-free-text-query-builder/search-free-text-query-builder.component.d.ts +1 -2
- package/clipper.ui/ui/search-result-item/search-result-item.component.d.ts +1 -1
- package/clipper.ui/ui/search-result-manager/search-result-manager.d.ts +3 -3
- package/core/directives/changeDateIntervalDirective.d.ts +3 -3
- package/core/directives/copyClipboardDirective.d.ts +3 -4
- package/core/directives/validators.d.ts +14 -14
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +141 -158
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +57 -67
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-help.mjs +12 -13
- package/fesm2022/arsedizioni-ars-utils-help.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.ui.mjs +11 -13
- package/fesm2022/arsedizioni-ars-utils-support.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-tinymce.mjs +3 -5
- package/fesm2022/arsedizioni-ars-utils-tinymce.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +96 -149
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +13 -25
- package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +3 -5
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs.map +1 -1
- package/help/components/help-viewer/help-viewer.component.d.ts +1 -1
- package/package.json +8 -8
- package/support.ui/ui/notifications-browser/notifications-browser.component.d.ts +2 -2
- package/tinymce/full-screen-editor/full-screen-editor.component.d.ts +2 -2
- package/ui/ui/dialogs/confirm/confirm-dialog.component.d.ts +2 -2
- package/ui/ui/dialogs/credentials/credentials-dialog.component.d.ts +3 -3
- package/ui/ui/dialogs/recover-password/recover-password-dialog.component.d.ts +1 -2
- package/ui/ui/dialogs/reset-password/reset-password-dialog.component.d.ts +2 -2
- package/ui/ui/dialogs/toast/toast.component.d.ts +1 -2
- package/ui.application/ui/components/button-selector/button-selector.component.d.ts +3 -3
- package/ui.application/ui/components/button-toggle/button-toggle.component.d.ts +2 -2
- package/ui.application/ui/components/chips-selector/chips-selector.component.d.ts +2 -2
- package/ui.application/ui/components/file-input/file-input.component.d.ts +4 -4
- package/ui.application/ui/components/filter-bar/filter-bar.component.d.ts +2 -2
- package/ui.application/ui/dialogs/prompt/prompt-dialog.component.d.ts +3 -3
- package/ui.application/ui/dialogs/prompt-date/prompt-date-dialog.component.d.ts +3 -3
- package/ui.application/ui/dialogs/prompt-time/prompt-time-dialog.component.d.ts +3 -3
- package/ui.application/ui/dialogs/select/select-dialog.component.d.ts +11 -11
- package/ui.application/ui/dialogs/select-file/select-file-dialog.component.d.ts +1 -2
- package/ui.application/ui/dialogs/select-picture/select-picture-dialog.component.d.ts +1 -2
- package/ui.application/ui/dialogs/select-tree/select-tree-dialog.component.d.ts +2 -2
- package/ui.application/ui/dialogs/send-to/send-to-dialog.component.d.ts +3 -3
- package/ui.application/ui/directives/resize-table-column.directive.d.ts +3 -3
- package/ui.oauth/ui/components/login/login-oauth.component.d.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Injectable, Pipe,
|
|
2
|
+
import { inject, Injectable, Pipe, input, output, Directive, HostListener, forwardRef, Optional, Inject, ElementRef, EventEmitter, signal, RendererFactory2, computed, NgModule } from '@angular/core';
|
|
3
3
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
4
|
import { parseISO, parse, format, setHours, endOfDay, getYear, getMonth, getDate, getDay, getDaysInMonth, addYears, addMonths, addDays, formatISO, isDate, isValid } from 'date-fns';
|
|
5
5
|
import { it } from 'date-fns/locale';
|
|
@@ -856,18 +856,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
856
856
|
|
|
857
857
|
class CopyClipboardDirective {
|
|
858
858
|
constructor() {
|
|
859
|
-
this.
|
|
859
|
+
this.payload = input(undefined, { alias: "copyClipboard" });
|
|
860
|
+
this.copied = output({ alias: 'copied' });
|
|
860
861
|
}
|
|
861
862
|
onClick(event) {
|
|
862
863
|
event.preventDefault();
|
|
863
|
-
if (!this.payload)
|
|
864
|
+
if (!this.payload())
|
|
864
865
|
return;
|
|
865
866
|
if (SystemUtils.isBrowser()) {
|
|
866
867
|
let listener = (e) => {
|
|
867
868
|
let clipboard = e.clipboardData;
|
|
868
|
-
|
|
869
|
+
const payload = this.payload();
|
|
870
|
+
clipboard.setData('text/html', payload.toString());
|
|
869
871
|
e.preventDefault();
|
|
870
|
-
this.copied.emit(
|
|
872
|
+
this.copied.emit(payload);
|
|
871
873
|
};
|
|
872
874
|
document.addEventListener('copy', listener, false);
|
|
873
875
|
document.execCommand('copy');
|
|
@@ -875,7 +877,7 @@ class CopyClipboardDirective {
|
|
|
875
877
|
}
|
|
876
878
|
}
|
|
877
879
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CopyClipboardDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
878
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
880
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.0", type: CopyClipboardDirective, isStandalone: true, selector: "[copyClipboard]", inputs: { payload: { classPropertyName: "payload", publicName: "copyClipboard", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { copied: "copied" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); }
|
|
879
881
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CopyClipboardDirective }); }
|
|
880
882
|
}
|
|
881
883
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CopyClipboardDirective, decorators: [{
|
|
@@ -886,23 +888,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
886
888
|
selector: '[copyClipboard]',
|
|
887
889
|
standalone: true
|
|
888
890
|
}]
|
|
889
|
-
}], propDecorators: {
|
|
890
|
-
type: Input,
|
|
891
|
-
args: ['copyClipboard']
|
|
892
|
-
}], copied: [{
|
|
893
|
-
type: Output,
|
|
894
|
-
args: ['copied']
|
|
895
|
-
}], onClick: [{
|
|
891
|
+
}], propDecorators: { onClick: [{
|
|
896
892
|
type: HostListener,
|
|
897
893
|
args: ['click', ['$event']]
|
|
898
894
|
}] } });
|
|
899
895
|
|
|
900
896
|
class ValidatorDirective {
|
|
897
|
+
constructor() {
|
|
898
|
+
this.validator = input(undefined);
|
|
899
|
+
}
|
|
901
900
|
validate(control) {
|
|
902
|
-
return this.validator(control);
|
|
901
|
+
return this.validator()(control);
|
|
903
902
|
}
|
|
904
903
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
905
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
904
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.0", type: ValidatorDirective, isStandalone: true, selector: "[validator]", inputs: { validator: { classPropertyName: "validator", publicName: "validator", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{ provide: NG_VALIDATORS, useExisting: ValidatorDirective, multi: true }], ngImport: i0 }); }
|
|
906
905
|
}
|
|
907
906
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ValidatorDirective, decorators: [{
|
|
908
907
|
type: Directive,
|
|
@@ -911,18 +910,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
911
910
|
providers: [{ provide: NG_VALIDATORS, useExisting: ValidatorDirective, multi: true }],
|
|
912
911
|
standalone: true,
|
|
913
912
|
}]
|
|
914
|
-
}]
|
|
915
|
-
type: Input
|
|
916
|
-
}] } });
|
|
913
|
+
}] });
|
|
917
914
|
class ValidIfDirective {
|
|
918
915
|
constructor() {
|
|
919
|
-
this.validIf = false;
|
|
916
|
+
this.validIf = input(false);
|
|
920
917
|
}
|
|
921
918
|
validate(control) {
|
|
922
919
|
let isValid = false;
|
|
923
920
|
let c = control.value ? control.value : null;
|
|
924
921
|
if (!c)
|
|
925
|
-
isValid = this.validIf === true;
|
|
922
|
+
isValid = this.validIf() === true;
|
|
926
923
|
else {
|
|
927
924
|
try {
|
|
928
925
|
isValid = c.isValid();
|
|
@@ -937,7 +934,7 @@ class ValidIfDirective {
|
|
|
937
934
|
}
|
|
938
935
|
}
|
|
939
936
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ValidIfDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
940
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
937
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.0", type: ValidIfDirective, isStandalone: true, selector: "[validIf]", inputs: { validIf: { classPropertyName: "validIf", publicName: "validIf", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
941
938
|
{
|
|
942
939
|
provide: NG_VALIDATORS,
|
|
943
940
|
useExisting: forwardRef(() => ValidIfDirective),
|
|
@@ -958,15 +955,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
958
955
|
],
|
|
959
956
|
standalone: true,
|
|
960
957
|
}]
|
|
961
|
-
}]
|
|
962
|
-
type: Input
|
|
963
|
-
}] } });
|
|
958
|
+
}] });
|
|
964
959
|
class EqualsValidatorDirective {
|
|
965
960
|
constructor() {
|
|
966
|
-
this.equals = null;
|
|
961
|
+
this.equals = input(null);
|
|
967
962
|
}
|
|
968
963
|
validate(control) {
|
|
969
|
-
const isValid = this.equals.value === control.value;
|
|
964
|
+
const isValid = this.equals().value === control.value;
|
|
970
965
|
if (isValid) {
|
|
971
966
|
return null;
|
|
972
967
|
}
|
|
@@ -975,7 +970,7 @@ class EqualsValidatorDirective {
|
|
|
975
970
|
}
|
|
976
971
|
}
|
|
977
972
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: EqualsValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
978
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
973
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.0", type: EqualsValidatorDirective, isStandalone: true, selector: "[equals]", inputs: { equals: { classPropertyName: "equals", publicName: "equals", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
979
974
|
{
|
|
980
975
|
provide: NG_VALIDATORS,
|
|
981
976
|
useExisting: forwardRef(() => EqualsValidatorDirective),
|
|
@@ -996,27 +991,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
996
991
|
],
|
|
997
992
|
standalone: true,
|
|
998
993
|
}]
|
|
999
|
-
}]
|
|
1000
|
-
type: Input
|
|
1001
|
-
}] } });
|
|
994
|
+
}] });
|
|
1002
995
|
class NotEqualValidatorDirective {
|
|
996
|
+
constructor() {
|
|
997
|
+
this.notEqual = input(undefined);
|
|
998
|
+
}
|
|
1003
999
|
validate(control) {
|
|
1004
|
-
const
|
|
1000
|
+
const notEqual = this.notEqual();
|
|
1001
|
+
const isValid = (!notEqual.value && !control.value) || (notEqual.value !== control.value);
|
|
1005
1002
|
const errors = isValid ? null : { 'notequal': true };
|
|
1006
1003
|
// immediate show up
|
|
1004
|
+
const notEqualValue = this.notEqual();
|
|
1007
1005
|
if (errors) {
|
|
1008
1006
|
control.markAsTouched();
|
|
1009
1007
|
}
|
|
1010
|
-
else if (
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1008
|
+
else if (notEqualValue.hasError('notequal')) {
|
|
1009
|
+
notEqualValue.setErrors({ 'notequal': null });
|
|
1010
|
+
notEqualValue.updateValueAndValidity({ onlySelf: true, emitEvent: false });
|
|
1011
|
+
notEqualValue.markAsTouched();
|
|
1012
|
+
notEqualValue.markAsDirty();
|
|
1015
1013
|
}
|
|
1016
1014
|
return errors;
|
|
1017
1015
|
}
|
|
1018
1016
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: NotEqualValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1019
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
1017
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.0", type: NotEqualValidatorDirective, isStandalone: true, selector: "[notEqual]", inputs: { notEqual: { classPropertyName: "notEqual", publicName: "notEqual", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
1020
1018
|
{
|
|
1021
1019
|
provide: NG_VALIDATORS,
|
|
1022
1020
|
useExisting: forwardRef(() => NotEqualValidatorDirective),
|
|
@@ -1037,9 +1035,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
1037
1035
|
],
|
|
1038
1036
|
standalone: true,
|
|
1039
1037
|
}]
|
|
1040
|
-
}]
|
|
1041
|
-
type: Input
|
|
1042
|
-
}] } });
|
|
1038
|
+
}] });
|
|
1043
1039
|
class EmailsValidatorDirective {
|
|
1044
1040
|
validate(control) {
|
|
1045
1041
|
let isValid = true;
|
|
@@ -1232,15 +1228,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
1232
1228
|
}] });
|
|
1233
1229
|
class FileSizeValidatorDirective {
|
|
1234
1230
|
constructor() {
|
|
1235
|
-
this.maxSizeMb = 5;
|
|
1236
|
-
this.minSizeMb = 0;
|
|
1231
|
+
this.maxSizeMb = input(5);
|
|
1232
|
+
this.minSizeMb = input(0);
|
|
1233
|
+
this.size = input(undefined);
|
|
1237
1234
|
}
|
|
1238
1235
|
validate(control) {
|
|
1239
1236
|
let f = control.value;
|
|
1240
|
-
|
|
1237
|
+
const size = this.size();
|
|
1238
|
+
let s = size ? size : 0;
|
|
1241
1239
|
if (!f)
|
|
1242
1240
|
return null;
|
|
1243
|
-
let isValid = s <= this.maxSizeMb && s >= this.minSizeMb;
|
|
1241
|
+
let isValid = s <= this.maxSizeMb() && s >= this.minSizeMb();
|
|
1244
1242
|
if (isValid) {
|
|
1245
1243
|
return null;
|
|
1246
1244
|
}
|
|
@@ -1249,7 +1247,7 @@ class FileSizeValidatorDirective {
|
|
|
1249
1247
|
}
|
|
1250
1248
|
}
|
|
1251
1249
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: FileSizeValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1252
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
1250
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.0", type: FileSizeValidatorDirective, isStandalone: true, selector: "[fileSize]", inputs: { maxSizeMb: { classPropertyName: "maxSizeMb", publicName: "maxSizeMb", isSignal: true, isRequired: false, transformFunction: null }, minSizeMb: { classPropertyName: "minSizeMb", publicName: "minSizeMb", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
1253
1251
|
{
|
|
1254
1252
|
provide: NG_VALIDATORS,
|
|
1255
1253
|
useExisting: forwardRef(() => FileSizeValidatorDirective),
|
|
@@ -1270,13 +1268,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
1270
1268
|
],
|
|
1271
1269
|
standalone: true,
|
|
1272
1270
|
}]
|
|
1273
|
-
}]
|
|
1274
|
-
type: Input
|
|
1275
|
-
}], minSizeMb: [{
|
|
1276
|
-
type: Input
|
|
1277
|
-
}], size: [{
|
|
1278
|
-
type: Input
|
|
1279
|
-
}] } });
|
|
1271
|
+
}] });
|
|
1280
1272
|
class PasswordValidatorDirective {
|
|
1281
1273
|
validate(control) {
|
|
1282
1274
|
const input = control.value;
|
|
@@ -1324,6 +1316,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
1324
1316
|
}]
|
|
1325
1317
|
}] });
|
|
1326
1318
|
class TimeValidatorDirective {
|
|
1319
|
+
constructor() {
|
|
1320
|
+
this.slots = input(undefined);
|
|
1321
|
+
}
|
|
1327
1322
|
/**
|
|
1328
1323
|
* Retrieve hours as a number from a time string (e: 12:00)
|
|
1329
1324
|
* @param value : the time string
|
|
@@ -1348,8 +1343,9 @@ class TimeValidatorDirective {
|
|
|
1348
1343
|
let isValid = false;
|
|
1349
1344
|
const t = this.getTime(input);
|
|
1350
1345
|
if (t !== -1) {
|
|
1351
|
-
|
|
1352
|
-
|
|
1346
|
+
const slotsValue = this.slots();
|
|
1347
|
+
if (slotsValue) {
|
|
1348
|
+
const slots = slotsValue.split('|');
|
|
1353
1349
|
slots.forEach(s => {
|
|
1354
1350
|
const t1 = this.getTime(s.substring(0, 5));
|
|
1355
1351
|
const t2 = this.getTime(s.substring(6));
|
|
@@ -1369,7 +1365,7 @@ class TimeValidatorDirective {
|
|
|
1369
1365
|
}
|
|
1370
1366
|
}
|
|
1371
1367
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: TimeValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1372
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
1368
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.0", type: TimeValidatorDirective, isStandalone: true, selector: "[time]", inputs: { slots: { classPropertyName: "slots", publicName: "slots", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
1373
1369
|
{
|
|
1374
1370
|
provide: NG_VALIDATORS,
|
|
1375
1371
|
useExisting: forwardRef(() => TimeValidatorDirective),
|
|
@@ -1390,9 +1386,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
1390
1386
|
],
|
|
1391
1387
|
standalone: true,
|
|
1392
1388
|
}]
|
|
1393
|
-
}]
|
|
1394
|
-
type: Input
|
|
1395
|
-
}] } });
|
|
1389
|
+
}] });
|
|
1396
1390
|
|
|
1397
1391
|
class FileInfo {
|
|
1398
1392
|
isValid() {
|
|
@@ -1443,8 +1437,8 @@ class DateInterval {
|
|
|
1443
1437
|
|
|
1444
1438
|
class DateIntervalChangeDirective {
|
|
1445
1439
|
constructor() {
|
|
1446
|
-
this.dateIntervalChange = new DateInterval(null, null);
|
|
1447
|
-
this.end = false;
|
|
1440
|
+
this.dateIntervalChange = input(new DateInterval(null, null));
|
|
1441
|
+
this.end = input(false);
|
|
1448
1442
|
this.subject = new Subject();
|
|
1449
1443
|
}
|
|
1450
1444
|
ngOnInit() {
|
|
@@ -1452,7 +1446,7 @@ class DateIntervalChangeDirective {
|
|
|
1452
1446
|
.pipe(debounceTime(100))
|
|
1453
1447
|
.subscribe((e) => {
|
|
1454
1448
|
const value = e.target.value;
|
|
1455
|
-
SystemUtils.changeDateInterval(value, this.dateIntervalChange, this.end, e.key === ' ');
|
|
1449
|
+
SystemUtils.changeDateInterval(value, this.dateIntervalChange(), this.end(), e.key === ' ');
|
|
1456
1450
|
});
|
|
1457
1451
|
}
|
|
1458
1452
|
ngOnDestroy() {
|
|
@@ -1466,7 +1460,7 @@ class DateIntervalChangeDirective {
|
|
|
1466
1460
|
this.subject.next(event);
|
|
1467
1461
|
}
|
|
1468
1462
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: DateIntervalChangeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1469
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
1463
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.0", type: DateIntervalChangeDirective, isStandalone: true, selector: "[dateIntervalChange]", inputs: { dateIntervalChange: { classPropertyName: "dateIntervalChange", publicName: "dateIntervalChange", isSignal: true, isRequired: false, transformFunction: null }, end: { classPropertyName: "end", publicName: "end", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keyup": "onKeyup($event)" } }, ngImport: i0 }); }
|
|
1470
1464
|
}
|
|
1471
1465
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: DateIntervalChangeDirective, decorators: [{
|
|
1472
1466
|
type: Directive,
|
|
@@ -1474,11 +1468,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
1474
1468
|
selector: '[dateIntervalChange]',
|
|
1475
1469
|
standalone: true,
|
|
1476
1470
|
}]
|
|
1477
|
-
}], propDecorators: {
|
|
1478
|
-
type: Input
|
|
1479
|
-
}], end: [{
|
|
1480
|
-
type: Input
|
|
1481
|
-
}], onKeyup: [{
|
|
1471
|
+
}], propDecorators: { onKeyup: [{
|
|
1482
1472
|
type: HostListener,
|
|
1483
1473
|
args: ['keyup', ['$event']]
|
|
1484
1474
|
}] } });
|