@koobiq/components 18.3.0 → 18.4.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/accordion/accordion-tokens.scss +0 -2
- package/alert/alert-tokens.scss +0 -2
- package/autocomplete/autocomplete-tokens.scss +0 -2
- package/badge/badge-tokens.scss +0 -2
- package/button/button-tokens.scss +7 -2
- package/button/button.scss +0 -2
- package/button-toggle/button-toggle-tokens.scss +0 -2
- package/checkbox/checkbox-tokens.scss +0 -2
- package/code-block/_code-block-theme.scss +1 -1
- package/code-block/actionbar.component.d.ts +14 -4
- package/code-block/code-block-tokens.scss +4 -6
- package/code-block/code-block.component.d.ts +12 -15
- package/code-block/code-block.types.d.ts +12 -0
- package/core/common-behaviors/color.d.ts +1 -1
- package/core/formatters/date/formatter.pipe.d.ts +82 -65
- package/core/formatters/index.d.ts +1 -1
- package/core/forms/forms-tokens.scss +0 -2
- package/core/forms/validators.d.ts +21 -0
- package/core/locales/en-US.d.ts +13 -0
- package/core/locales/es-LA.d.ts +13 -0
- package/core/locales/fa-IR.d.ts +13 -0
- package/core/locales/locale-service.d.ts +78 -0
- package/core/locales/pt-BR.d.ts +13 -0
- package/core/locales/ru-RU.d.ts +13 -0
- package/core/locales/zh-CN.d.ts +13 -0
- package/core/option/optgroup-tokens.scss +0 -2
- package/core/option/option-action-tokens.scss +0 -2
- package/core/option/option-tokens.scss +0 -2
- package/core/select/common.d.ts +2 -0
- package/core/selection/pseudo-checkbox/pseudo-checkbox-tokens.scss +0 -2
- package/core/services/theme.service.d.ts +2 -2
- package/core/styles/theming/_components-theming.scss +1 -1
- package/core/styles/theming/_theming.scss +1 -1
- package/core/styles/theming/scrollbar-tokens.scss +0 -2
- package/datepicker/_datepicker-theme.scss +1 -1
- package/datepicker/datepicker-tokens.scss +2 -4
- package/divider/divider-tokens.scss +0 -2
- package/dl/dl-tokens.scss +0 -2
- package/dropdown/_dropdown-theme.scss +1 -1
- package/dropdown/dropdown-tokens.scss +1 -3
- package/empty-state/empty-state-tokens.scss +0 -2
- package/esm2022/button/button.component.mjs +2 -2
- package/esm2022/code-block/actionbar.component.mjs +35 -8
- package/esm2022/code-block/code-block.component.mjs +28 -19
- package/esm2022/code-block/code-block.types.mjs +5 -2
- package/esm2022/core/common-behaviors/color.mjs +2 -2
- package/esm2022/core/formatters/date/formatter.pipe.mjs +280 -120
- package/esm2022/core/formatters/index.mjs +65 -12
- package/esm2022/core/forms/validators.mjs +32 -1
- package/esm2022/core/locales/en-US.mjs +14 -1
- package/esm2022/core/locales/es-LA.mjs +14 -1
- package/esm2022/core/locales/fa-IR.mjs +14 -1
- package/esm2022/core/locales/pt-BR.mjs +14 -1
- package/esm2022/core/locales/ru-RU.mjs +14 -1
- package/esm2022/core/locales/zh-CN.mjs +14 -1
- package/esm2022/core/select/common.mjs +7 -1
- package/esm2022/core/services/theme.service.mjs +3 -3
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/datepicker.component.mjs +3 -3
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/file-upload/file-upload.mjs +2 -3
- package/esm2022/file-upload/multiple-file-upload.component.mjs +57 -17
- package/esm2022/file-upload/single-file-upload.component.mjs +31 -19
- package/esm2022/form-field/validate.directive.mjs +21 -1
- package/esm2022/markdown/markdown.values.mjs +4 -2
- package/esm2022/modal/modal.component.mjs +2 -2
- package/esm2022/navbar/navbar-item.component.mjs +2 -2
- package/esm2022/navbar/navbar.component.mjs +2 -2
- package/esm2022/navbar/vertical-navbar.component.mjs +2 -2
- package/esm2022/popover/popover-confirm.component.mjs +3 -3
- package/esm2022/popover/popover.component.mjs +3 -3
- package/esm2022/select/select.component.mjs +1 -1
- package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
- package/esm2022/splitter/splitter.component.mjs +2 -2
- package/esm2022/timezone/timezone-select.component.mjs +20 -10
- package/esm2022/toast/toast.component.mjs +3 -3
- package/esm2022/tooltip/tooltip.component.mjs +13 -1
- package/fesm2022/koobiq-components-button.mjs +2 -2
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +58 -24
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +461 -131
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +2 -2
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +2 -2
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +76 -27
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +20 -0
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +3 -1
- package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +2 -2
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +6 -6
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +4 -4
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +2 -2
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +1 -1
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +18 -8
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +2 -2
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +12 -0
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +6 -10
- package/file-upload/file-upload-tokens.scss +0 -2
- package/file-upload/file-upload.d.ts +3 -0
- package/file-upload/file-upload.scss +6 -0
- package/file-upload/multiple-file-upload.component.d.ts +28 -5
- package/file-upload/multiple-file-upload.component.scss +0 -4
- package/file-upload/single-file-upload.component.d.ts +13 -4
- package/file-upload/single-file-upload.component.scss +0 -12
- package/form-field/form-field-tokens.scss +0 -2
- package/form-field/hint-tokens.scss +0 -2
- package/form-field/validate.directive.d.ts +20 -0
- package/icon/icon-button-tokens.scss +0 -2
- package/icon/icon-item-tokens.scss +0 -2
- package/icon/icon-tokens.scss +0 -2
- package/input/input-tokens.scss +0 -2
- package/link/link-tokens.scss +0 -2
- package/list/list-tokens.scss +0 -2
- package/loader-overlay/loader-overlay-tokens.scss +0 -2
- package/markdown/markdown-tokens.scss +0 -2
- package/markdown/markdown.values.d.ts +3 -0
- package/modal/_modal-theme.scss +1 -1
- package/modal/modal-tokens.scss +2 -4
- package/navbar/_navbar-theme.scss +1 -1
- package/navbar/navbar-tokens.scss +2 -10
- package/package.json +4 -4
- package/popover/_popover-theme.scss +2 -2
- package/popover/popover-tokens.scss +2 -4
- package/popover/popover.scss +2 -2
- package/progress-bar/progress-bar-tokens.scss +0 -2
- package/progress-spinner/progress-spinner-tokens.scss +0 -2
- package/radio/radio-tokens.scss +0 -2
- package/risk-level/risk-level-tokens.scss +0 -2
- package/schematics/ng-add/index.js +2 -2
- package/scrollbar/scrollbar-tokens.scss +0 -2
- package/select/select-tokens.scss +0 -2
- package/select/select.component.d.ts +1 -1
- package/sidepanel/_sidepanel-theme.scss +1 -1
- package/sidepanel/sidepanel-tokens.scss +2 -4
- package/table/table-tokens.scss +0 -2
- package/tabs/tabs-tokens.scss +0 -2
- package/tags/tag-input-tokens.scss +0 -2
- package/tags/tag-tokens.scss +0 -2
- package/textarea/textarea-tokens.scss +0 -2
- package/timezone/timezone-option-tokens.scss +0 -2
- package/timezone/timezone-select.component.d.ts +5 -6
- package/toast/toast-tokens.scss +4 -3
- package/toggle/toggle-tokens.scss +0 -2
- package/tooltip/tooltip-tokens.scss +0 -2
- package/tooltip/tooltip.component.d.ts +9 -0
- package/tree/tree-tokens.scss +0 -2
- package/tree-select/tree-select-tokens.scss +0 -2
- package/splitter/splitter-tokens.scss +0 -1
|
@@ -96,7 +96,7 @@ var KbqComponentColors;
|
|
|
96
96
|
KbqComponentColors["Warning"] = "warning";
|
|
97
97
|
KbqComponentColors["Success"] = "success";
|
|
98
98
|
KbqComponentColors["Default"] = "contrast";
|
|
99
|
-
KbqComponentColors["Empty"] = "";
|
|
99
|
+
KbqComponentColors["Empty"] = "empty";
|
|
100
100
|
})(KbqComponentColors || (KbqComponentColors = {}));
|
|
101
101
|
function mixinColor(base, defaultColor = KbqComponentColors.Empty) {
|
|
102
102
|
return class extends base {
|
|
@@ -335,219 +335,381 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
335
335
|
args: [KBQ_DATE_LOCALE]
|
|
336
336
|
}] }] });
|
|
337
337
|
|
|
338
|
-
class
|
|
339
|
-
constructor(
|
|
340
|
-
this.adapter =
|
|
341
|
-
this.formatter =
|
|
338
|
+
class BaseFormatterPipe {
|
|
339
|
+
constructor() {
|
|
340
|
+
this.adapter = inject((DateAdapter));
|
|
341
|
+
this.formatter = inject((DateFormatter));
|
|
342
342
|
}
|
|
343
|
+
}
|
|
344
|
+
class AbsoluteDateFormatterPipe extends BaseFormatterPipe {
|
|
343
345
|
transform(value, currYear) {
|
|
344
346
|
const date = this.adapter.deserialize(value);
|
|
345
347
|
return date ? this.formatter.absoluteLongDate(date, currYear) : '';
|
|
346
348
|
}
|
|
347
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateFormatterPipe, deps:
|
|
348
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateFormatterPipe, name: "absoluteLongDate" }); }
|
|
349
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
350
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateFormatterPipe, isStandalone: true, name: "absoluteLongDate" }); }
|
|
349
351
|
}
|
|
350
352
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateFormatterPipe, decorators: [{
|
|
351
353
|
type: Pipe,
|
|
352
|
-
args: [{
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
354
|
+
args: [{
|
|
355
|
+
standalone: true,
|
|
356
|
+
name: 'absoluteLongDate'
|
|
357
|
+
}]
|
|
358
|
+
}] });
|
|
359
|
+
// eslint-disable-next-line @angular-eslint/use-pipe-transform-interface
|
|
360
|
+
class AbsoluteDateFormatterImpurePipe extends AbsoluteDateFormatterPipe {
|
|
361
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
362
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateFormatterImpurePipe, isStandalone: true, name: "absoluteLongDateImpurePipe", pure: false }); }
|
|
363
|
+
}
|
|
364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateFormatterImpurePipe, decorators: [{
|
|
365
|
+
type: Pipe,
|
|
366
|
+
args: [{
|
|
367
|
+
standalone: true,
|
|
368
|
+
name: 'absoluteLongDateImpurePipe',
|
|
369
|
+
pure: false
|
|
370
|
+
}]
|
|
371
|
+
}] });
|
|
372
|
+
class AbsoluteDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
359
373
|
transform(value, options) {
|
|
360
374
|
const date = this.adapter.deserialize(value);
|
|
361
375
|
return date ? this.formatter.absoluteLongDateTime(date, options) : '';
|
|
362
376
|
}
|
|
363
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, deps:
|
|
364
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, name: "absoluteLongDateTime" }); }
|
|
377
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
378
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, isStandalone: true, name: "absoluteLongDateTime" }); }
|
|
365
379
|
}
|
|
366
380
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, decorators: [{
|
|
367
381
|
type: Pipe,
|
|
368
|
-
args: [{
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
382
|
+
args: [{
|
|
383
|
+
standalone: true,
|
|
384
|
+
name: 'absoluteLongDateTime'
|
|
385
|
+
}]
|
|
386
|
+
}] });
|
|
387
|
+
// eslint-disable-next-line @angular-eslint/use-pipe-transform-interface
|
|
388
|
+
class AbsoluteDateTimeFormatterImpurePipe extends AbsoluteDateTimeFormatterPipe {
|
|
389
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateTimeFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
390
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateTimeFormatterImpurePipe, isStandalone: true, name: "absoluteLongDateTimeImpurePipe", pure: false }); }
|
|
391
|
+
}
|
|
392
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateTimeFormatterImpurePipe, decorators: [{
|
|
393
|
+
type: Pipe,
|
|
394
|
+
args: [{
|
|
395
|
+
standalone: true,
|
|
396
|
+
name: 'absoluteLongDateTimeImpurePipe',
|
|
397
|
+
pure: false
|
|
398
|
+
}]
|
|
399
|
+
}] });
|
|
400
|
+
class AbsoluteDateShortFormatterPipe extends BaseFormatterPipe {
|
|
375
401
|
transform(value, currYear) {
|
|
376
402
|
const date = this.adapter.deserialize(value);
|
|
377
403
|
return date ? this.formatter.absoluteShortDate(date, currYear) : '';
|
|
378
404
|
}
|
|
379
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateShortFormatterPipe, deps:
|
|
380
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateShortFormatterPipe, name: "absoluteShortDate" }); }
|
|
405
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateShortFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
406
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateShortFormatterPipe, isStandalone: true, name: "absoluteShortDate" }); }
|
|
381
407
|
}
|
|
382
408
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateShortFormatterPipe, decorators: [{
|
|
383
409
|
type: Pipe,
|
|
384
|
-
args: [{
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
410
|
+
args: [{
|
|
411
|
+
standalone: true,
|
|
412
|
+
name: 'absoluteShortDate'
|
|
413
|
+
}]
|
|
414
|
+
}] });
|
|
415
|
+
// eslint-disable-next-line @angular-eslint/use-pipe-transform-interface
|
|
416
|
+
class AbsoluteDateShortFormatterImpurePipe extends AbsoluteDateShortFormatterPipe {
|
|
417
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateShortFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
418
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateShortFormatterImpurePipe, isStandalone: true, name: "absoluteShortDateImpurePipe", pure: false }); }
|
|
419
|
+
}
|
|
420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteDateShortFormatterImpurePipe, decorators: [{
|
|
421
|
+
type: Pipe,
|
|
422
|
+
args: [{
|
|
423
|
+
standalone: true,
|
|
424
|
+
name: 'absoluteShortDateImpurePipe',
|
|
425
|
+
pure: false
|
|
426
|
+
}]
|
|
427
|
+
}] });
|
|
428
|
+
class AbsoluteShortDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
391
429
|
transform(value, options) {
|
|
392
430
|
const date = this.adapter.deserialize(value);
|
|
393
431
|
return date ? this.formatter.absoluteShortDateTime(date, options) : '';
|
|
394
432
|
}
|
|
395
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, deps:
|
|
396
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, name: "absoluteShortDateTime" }); }
|
|
433
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
434
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, isStandalone: true, name: "absoluteShortDateTime" }); }
|
|
397
435
|
}
|
|
398
436
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, decorators: [{
|
|
399
437
|
type: Pipe,
|
|
400
|
-
args: [{
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
438
|
+
args: [{
|
|
439
|
+
standalone: true,
|
|
440
|
+
name: 'absoluteShortDateTime'
|
|
441
|
+
}]
|
|
442
|
+
}] });
|
|
443
|
+
// eslint-disable-next-line @angular-eslint/use-pipe-transform-interface
|
|
444
|
+
class AbsoluteShortDateTimeFormatterImpurePipe extends AbsoluteShortDateTimeFormatterPipe {
|
|
445
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteShortDateTimeFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
446
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteShortDateTimeFormatterImpurePipe, isStandalone: true, name: "absoluteShortDateTimeImpurePipe", pure: false }); }
|
|
447
|
+
}
|
|
448
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AbsoluteShortDateTimeFormatterImpurePipe, decorators: [{
|
|
449
|
+
type: Pipe,
|
|
450
|
+
args: [{
|
|
451
|
+
standalone: true,
|
|
452
|
+
name: 'absoluteShortDateTimeImpurePipe',
|
|
453
|
+
pure: false
|
|
454
|
+
}]
|
|
455
|
+
}] });
|
|
456
|
+
class RelativeDateFormatterPipe extends BaseFormatterPipe {
|
|
407
457
|
transform(value) {
|
|
408
458
|
const date = this.adapter.deserialize(value);
|
|
409
459
|
return date ? this.formatter.relativeLongDate(date) : '';
|
|
410
460
|
}
|
|
411
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeDateFormatterPipe, deps:
|
|
412
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RelativeDateFormatterPipe, name: "relativeLongDate" }); }
|
|
461
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeDateFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
462
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RelativeDateFormatterPipe, isStandalone: true, name: "relativeLongDate" }); }
|
|
413
463
|
}
|
|
414
464
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeDateFormatterPipe, decorators: [{
|
|
415
465
|
type: Pipe,
|
|
416
|
-
args: [{
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
466
|
+
args: [{
|
|
467
|
+
standalone: true,
|
|
468
|
+
name: 'relativeLongDate'
|
|
469
|
+
}]
|
|
470
|
+
}] });
|
|
471
|
+
// eslint-disable-next-line @angular-eslint/use-pipe-transform-interface
|
|
472
|
+
class RelativeDateFormatterImpurePipe extends RelativeDateFormatterPipe {
|
|
473
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeDateFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
474
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RelativeDateFormatterImpurePipe, isStandalone: true, name: "relativeLongDateImpurePipe", pure: false }); }
|
|
475
|
+
}
|
|
476
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeDateFormatterImpurePipe, decorators: [{
|
|
477
|
+
type: Pipe,
|
|
478
|
+
args: [{
|
|
479
|
+
standalone: true,
|
|
480
|
+
name: 'relativeLongDateImpurePipe',
|
|
481
|
+
pure: false
|
|
482
|
+
}]
|
|
483
|
+
}] });
|
|
484
|
+
class RelativeDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
423
485
|
transform(value, options) {
|
|
424
486
|
const date = this.adapter.deserialize(value);
|
|
425
487
|
return date ? this.formatter.relativeLongDateTime(date, options) : '';
|
|
426
488
|
}
|
|
427
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeDateTimeFormatterPipe, deps:
|
|
428
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RelativeDateTimeFormatterPipe, name: "relativeLongDateTime" }); }
|
|
489
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeDateTimeFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
490
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RelativeDateTimeFormatterPipe, isStandalone: true, name: "relativeLongDateTime" }); }
|
|
429
491
|
}
|
|
430
492
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeDateTimeFormatterPipe, decorators: [{
|
|
431
493
|
type: Pipe,
|
|
432
|
-
args: [{
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
494
|
+
args: [{
|
|
495
|
+
standalone: true,
|
|
496
|
+
name: 'relativeLongDateTime'
|
|
497
|
+
}]
|
|
498
|
+
}] });
|
|
499
|
+
// eslint-disable-next-line @angular-eslint/use-pipe-transform-interface
|
|
500
|
+
class RelativeDateTimeFormatterImpurePipe extends RelativeDateTimeFormatterPipe {
|
|
501
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeDateTimeFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
502
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RelativeDateTimeFormatterImpurePipe, isStandalone: true, name: "relativeLongDateTimeImpurePipe", pure: false }); }
|
|
503
|
+
}
|
|
504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeDateTimeFormatterImpurePipe, decorators: [{
|
|
505
|
+
type: Pipe,
|
|
506
|
+
args: [{
|
|
507
|
+
standalone: true,
|
|
508
|
+
name: 'relativeLongDateTimeImpurePipe',
|
|
509
|
+
pure: false
|
|
510
|
+
}]
|
|
511
|
+
}] });
|
|
512
|
+
class RelativeShortDateFormatterPipe extends BaseFormatterPipe {
|
|
439
513
|
transform(value) {
|
|
440
514
|
const date = this.adapter.deserialize(value);
|
|
441
515
|
return date ? this.formatter.relativeShortDate(date) : '';
|
|
442
516
|
}
|
|
443
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeShortDateFormatterPipe, deps:
|
|
444
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RelativeShortDateFormatterPipe, name: "relativeShortDate" }); }
|
|
517
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeShortDateFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
518
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RelativeShortDateFormatterPipe, isStandalone: true, name: "relativeShortDate" }); }
|
|
445
519
|
}
|
|
446
520
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeShortDateFormatterPipe, decorators: [{
|
|
447
521
|
type: Pipe,
|
|
448
|
-
args: [{
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
522
|
+
args: [{
|
|
523
|
+
standalone: true,
|
|
524
|
+
name: 'relativeShortDate'
|
|
525
|
+
}]
|
|
526
|
+
}] });
|
|
527
|
+
// eslint-disable-next-line @angular-eslint/use-pipe-transform-interface
|
|
528
|
+
class RelativeShortDateFormatterImpurePipe extends RelativeShortDateFormatterPipe {
|
|
529
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeShortDateFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
530
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RelativeShortDateFormatterImpurePipe, isStandalone: true, name: "relativeShortDateImpurePipe", pure: false }); }
|
|
531
|
+
}
|
|
532
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeShortDateFormatterImpurePipe, decorators: [{
|
|
533
|
+
type: Pipe,
|
|
534
|
+
args: [{
|
|
535
|
+
standalone: true,
|
|
536
|
+
name: 'relativeShortDateImpurePipe',
|
|
537
|
+
pure: false
|
|
538
|
+
}]
|
|
539
|
+
}] });
|
|
540
|
+
class RelativeShortDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
455
541
|
transform(value, options) {
|
|
456
542
|
const date = this.adapter.deserialize(value);
|
|
457
543
|
return date ? this.formatter.relativeShortDateTime(date, options) : '';
|
|
458
544
|
}
|
|
459
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, deps:
|
|
460
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, name: "relativeShortDateTime" }); }
|
|
545
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
546
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, isStandalone: true, name: "relativeShortDateTime" }); }
|
|
461
547
|
}
|
|
462
548
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, decorators: [{
|
|
463
549
|
type: Pipe,
|
|
464
|
-
args: [{
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
550
|
+
args: [{
|
|
551
|
+
standalone: true,
|
|
552
|
+
name: 'relativeShortDateTime'
|
|
553
|
+
}]
|
|
554
|
+
}] });
|
|
555
|
+
// eslint-disable-next-line @angular-eslint/use-pipe-transform-interface
|
|
556
|
+
class RelativeShortDateTimeFormatterImpurePipe extends RelativeShortDateTimeFormatterPipe {
|
|
557
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeShortDateTimeFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
558
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RelativeShortDateTimeFormatterImpurePipe, isStandalone: true, name: "relativeShortDateTimeImpurePipe", pure: false }); }
|
|
559
|
+
}
|
|
560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RelativeShortDateTimeFormatterImpurePipe, decorators: [{
|
|
561
|
+
type: Pipe,
|
|
562
|
+
args: [{
|
|
563
|
+
standalone: true,
|
|
564
|
+
name: 'relativeShortDateTimeImpurePipe',
|
|
565
|
+
pure: false
|
|
566
|
+
}]
|
|
567
|
+
}] });
|
|
568
|
+
class RangeDateFormatterPipe extends BaseFormatterPipe {
|
|
471
569
|
transform([value1, value2]) {
|
|
472
570
|
const date1 = this.adapter.deserialize(value1);
|
|
473
571
|
const date2 = this.adapter.deserialize(value2);
|
|
474
572
|
return this.formatter.rangeLongDate(date1, date2);
|
|
475
573
|
}
|
|
476
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeDateFormatterPipe, deps:
|
|
477
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RangeDateFormatterPipe, name: "rangeLongDate" }); }
|
|
574
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeDateFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
575
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RangeDateFormatterPipe, isStandalone: true, name: "rangeLongDate" }); }
|
|
478
576
|
}
|
|
479
577
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeDateFormatterPipe, decorators: [{
|
|
480
578
|
type: Pipe,
|
|
481
|
-
args: [{
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
579
|
+
args: [{
|
|
580
|
+
standalone: true,
|
|
581
|
+
name: 'rangeLongDate'
|
|
582
|
+
}]
|
|
583
|
+
}] });
|
|
584
|
+
// eslint-disable-next-line @angular-eslint/use-pipe-transform-interface
|
|
585
|
+
class RangeDateFormatterImpurePipe extends RangeDateFormatterPipe {
|
|
586
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeDateFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
587
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RangeDateFormatterImpurePipe, isStandalone: true, name: "rangeLongDateImpurePipe", pure: false }); }
|
|
588
|
+
}
|
|
589
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeDateFormatterImpurePipe, decorators: [{
|
|
590
|
+
type: Pipe,
|
|
591
|
+
args: [{
|
|
592
|
+
standalone: true,
|
|
593
|
+
name: 'rangeLongDateImpurePipe',
|
|
594
|
+
pure: false
|
|
595
|
+
}]
|
|
596
|
+
}] });
|
|
597
|
+
class RangeShortDateFormatterPipe extends BaseFormatterPipe {
|
|
488
598
|
transform([value1, value2]) {
|
|
489
599
|
const date1 = this.adapter.deserialize(value1);
|
|
490
600
|
const date2 = this.adapter.deserialize(value2);
|
|
491
601
|
return this.formatter.rangeShortDate(date1, date2);
|
|
492
602
|
}
|
|
493
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeShortDateFormatterPipe, deps:
|
|
494
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RangeShortDateFormatterPipe, name: "rangeShortDate" }); }
|
|
603
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeShortDateFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
604
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RangeShortDateFormatterPipe, isStandalone: true, name: "rangeShortDate" }); }
|
|
495
605
|
}
|
|
496
606
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeShortDateFormatterPipe, decorators: [{
|
|
497
607
|
type: Pipe,
|
|
498
|
-
args: [{
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
608
|
+
args: [{
|
|
609
|
+
standalone: true,
|
|
610
|
+
name: 'rangeShortDate'
|
|
611
|
+
}]
|
|
612
|
+
}] });
|
|
613
|
+
// eslint-disable-next-line @angular-eslint/use-pipe-transform-interface
|
|
614
|
+
class RangeShortDateFormatterImpurePipe extends RangeShortDateFormatterPipe {
|
|
615
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeShortDateFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
616
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RangeShortDateFormatterImpurePipe, isStandalone: true, name: "rangeShortDateImpurePipe", pure: false }); }
|
|
617
|
+
}
|
|
618
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeShortDateFormatterImpurePipe, decorators: [{
|
|
619
|
+
type: Pipe,
|
|
620
|
+
args: [{
|
|
621
|
+
standalone: true,
|
|
622
|
+
name: 'rangeShortDateImpurePipe',
|
|
623
|
+
pure: false
|
|
624
|
+
}]
|
|
625
|
+
}] });
|
|
626
|
+
class RangeDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
505
627
|
transform([value1, value2], options) {
|
|
506
628
|
const date1 = this.adapter.deserialize(value1);
|
|
507
629
|
const date2 = this.adapter.deserialize(value2);
|
|
508
630
|
return this.formatter.rangeLongDateTime(date1, date2, options);
|
|
509
631
|
}
|
|
510
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeDateTimeFormatterPipe, deps:
|
|
511
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RangeDateTimeFormatterPipe, name: "rangeLongDateTime" }); }
|
|
632
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeDateTimeFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
633
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RangeDateTimeFormatterPipe, isStandalone: true, name: "rangeLongDateTime" }); }
|
|
512
634
|
}
|
|
513
635
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeDateTimeFormatterPipe, decorators: [{
|
|
514
636
|
type: Pipe,
|
|
515
|
-
args: [{
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
637
|
+
args: [{
|
|
638
|
+
standalone: true,
|
|
639
|
+
name: 'rangeLongDateTime'
|
|
640
|
+
}]
|
|
641
|
+
}] });
|
|
642
|
+
// eslint-disable-next-line @angular-eslint/use-pipe-transform-interface
|
|
643
|
+
class RangeDateTimeFormatterImpurePipe extends RangeDateTimeFormatterPipe {
|
|
644
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeDateTimeFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
645
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RangeDateTimeFormatterImpurePipe, isStandalone: true, name: "rangeLongDateTimeImpurePipe", pure: false }); }
|
|
646
|
+
}
|
|
647
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeDateTimeFormatterImpurePipe, decorators: [{
|
|
648
|
+
type: Pipe,
|
|
649
|
+
args: [{
|
|
650
|
+
standalone: true,
|
|
651
|
+
name: 'rangeLongDateTimeImpurePipe',
|
|
652
|
+
pure: false
|
|
653
|
+
}]
|
|
654
|
+
}] });
|
|
655
|
+
class RangeMiddleDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
522
656
|
transform([value1, value2], options) {
|
|
523
657
|
const date1 = this.adapter.deserialize(value1);
|
|
524
658
|
const date2 = this.adapter.deserialize(value2);
|
|
525
659
|
return this.formatter.rangeMiddleDateTime(date1, date2, options);
|
|
526
660
|
}
|
|
527
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, deps:
|
|
528
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, name: "rangeMiddleDateTime" }); }
|
|
661
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
662
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, isStandalone: true, name: "rangeMiddleDateTime" }); }
|
|
529
663
|
}
|
|
530
664
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, decorators: [{
|
|
531
665
|
type: Pipe,
|
|
532
|
-
args: [{
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
666
|
+
args: [{
|
|
667
|
+
standalone: true,
|
|
668
|
+
name: 'rangeMiddleDateTime'
|
|
669
|
+
}]
|
|
670
|
+
}] });
|
|
671
|
+
// eslint-disable-next-line @angular-eslint/use-pipe-transform-interface
|
|
672
|
+
class RangeMiddleDateTimeFormatterImpurePipe extends RangeMiddleDateTimeFormatterPipe {
|
|
673
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeMiddleDateTimeFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
674
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RangeMiddleDateTimeFormatterImpurePipe, isStandalone: true, name: "rangeMiddleDateTimeImpurePipe", pure: false }); }
|
|
675
|
+
}
|
|
676
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeMiddleDateTimeFormatterImpurePipe, decorators: [{
|
|
677
|
+
type: Pipe,
|
|
678
|
+
args: [{
|
|
679
|
+
standalone: true,
|
|
680
|
+
name: 'rangeMiddleDateTimeImpurePipe',
|
|
681
|
+
pure: false
|
|
682
|
+
}]
|
|
683
|
+
}] });
|
|
684
|
+
class RangeShortDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
539
685
|
transform([value1, value2], options) {
|
|
540
686
|
const date1 = this.adapter.deserialize(value1);
|
|
541
687
|
const date2 = this.adapter.deserialize(value2);
|
|
542
688
|
return this.formatter.rangeShortDateTime(date1, date2, options);
|
|
543
689
|
}
|
|
544
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeShortDateTimeFormatterPipe, deps:
|
|
545
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RangeShortDateTimeFormatterPipe, name: "rangeShortDateTime" }); }
|
|
690
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeShortDateTimeFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
691
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RangeShortDateTimeFormatterPipe, isStandalone: true, name: "rangeShortDateTime" }); }
|
|
546
692
|
}
|
|
547
693
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeShortDateTimeFormatterPipe, decorators: [{
|
|
548
694
|
type: Pipe,
|
|
549
|
-
args: [{
|
|
550
|
-
|
|
695
|
+
args: [{
|
|
696
|
+
standalone: true,
|
|
697
|
+
name: 'rangeShortDateTime'
|
|
698
|
+
}]
|
|
699
|
+
}] });
|
|
700
|
+
// eslint-disable-next-line @angular-eslint/use-pipe-transform-interface
|
|
701
|
+
class RangeShortDateTimeFormatterImpurePipe extends RangeShortDateTimeFormatterPipe {
|
|
702
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeShortDateTimeFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
703
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: RangeShortDateTimeFormatterImpurePipe, isStandalone: true, name: "rangeShortDateTimeImpurePipe", pure: false }); }
|
|
704
|
+
}
|
|
705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: RangeShortDateTimeFormatterImpurePipe, decorators: [{
|
|
706
|
+
type: Pipe,
|
|
707
|
+
args: [{
|
|
708
|
+
standalone: true,
|
|
709
|
+
name: 'rangeShortDateTimeImpurePipe',
|
|
710
|
+
pure: false
|
|
711
|
+
}]
|
|
712
|
+
}] });
|
|
551
713
|
|
|
552
714
|
const enUSLocaleData = {
|
|
553
715
|
select: { hiddenItemsText: '{{ number }} more' },
|
|
@@ -577,6 +739,19 @@ const enUSLocaleData = {
|
|
|
577
739
|
size: 'Size'
|
|
578
740
|
}
|
|
579
741
|
}
|
|
742
|
+
},
|
|
743
|
+
codeBlock: {
|
|
744
|
+
softWrapOnTooltip: 'Enable word wrap',
|
|
745
|
+
softWrapOffTooltip: 'Disable word wrap',
|
|
746
|
+
downloadTooltip: 'Download',
|
|
747
|
+
copiedTooltip: '✓ Copied',
|
|
748
|
+
copyTooltip: 'Copy',
|
|
749
|
+
viewAllText: 'Show all',
|
|
750
|
+
viewLessText: 'Show less',
|
|
751
|
+
openExternalSystemTooltip: 'Open in the external system'
|
|
752
|
+
},
|
|
753
|
+
timezone: {
|
|
754
|
+
searchPlaceholder: 'City or time zone'
|
|
580
755
|
}
|
|
581
756
|
};
|
|
582
757
|
|
|
@@ -607,6 +782,19 @@ const esLALocaleData = {
|
|
|
607
782
|
size: 'Tamaño'
|
|
608
783
|
}
|
|
609
784
|
}
|
|
785
|
+
},
|
|
786
|
+
codeBlock: {
|
|
787
|
+
softWrapOnTooltip: 'Activar el ajuste de texto',
|
|
788
|
+
softWrapOffTooltip: 'Desactivar el ajuste de texto',
|
|
789
|
+
downloadTooltip: 'Descargar',
|
|
790
|
+
copiedTooltip: '✓ Copiado',
|
|
791
|
+
copyTooltip: 'Copiar',
|
|
792
|
+
viewAllText: 'Mostrar todo',
|
|
793
|
+
viewLessText: 'Mostrar menos',
|
|
794
|
+
openExternalSystemTooltip: 'Abrir en el sistema externo'
|
|
795
|
+
},
|
|
796
|
+
timezone: {
|
|
797
|
+
searchPlaceholder: 'Ciudad o zona horaria'
|
|
610
798
|
}
|
|
611
799
|
};
|
|
612
800
|
|
|
@@ -637,6 +825,19 @@ const faIRLocaleData = {
|
|
|
637
825
|
size: 'اندازه'
|
|
638
826
|
}
|
|
639
827
|
}
|
|
828
|
+
},
|
|
829
|
+
codeBlock: {
|
|
830
|
+
softWrapOnTooltip: 'فعالسازی سطربندی',
|
|
831
|
+
softWrapOffTooltip: 'غیرفعالسازی سطربندی',
|
|
832
|
+
downloadTooltip: 'دانلود',
|
|
833
|
+
copiedTooltip: '✓ کپی شد',
|
|
834
|
+
copyTooltip: 'کپی',
|
|
835
|
+
viewAllText: 'نمایش همه',
|
|
836
|
+
viewLessText: 'نمایش کمتر',
|
|
837
|
+
openExternalSystemTooltip: 'باز کردن در سیستم خارجی'
|
|
838
|
+
},
|
|
839
|
+
timezone: {
|
|
840
|
+
searchPlaceholder: ' شهر یا منطقه زمانی '
|
|
640
841
|
}
|
|
641
842
|
};
|
|
642
843
|
|
|
@@ -667,6 +868,19 @@ const ptBRLocaleData = {
|
|
|
667
868
|
size: 'Tamanho'
|
|
668
869
|
}
|
|
669
870
|
}
|
|
871
|
+
},
|
|
872
|
+
codeBlock: {
|
|
873
|
+
softWrapOnTooltip: 'Ativar quebra de linha',
|
|
874
|
+
softWrapOffTooltip: 'Desativar quebra de linha',
|
|
875
|
+
downloadTooltip: 'Baixar',
|
|
876
|
+
copiedTooltip: '✓ Copiado',
|
|
877
|
+
copyTooltip: 'Copiar',
|
|
878
|
+
viewAllText: 'Mostrar todos',
|
|
879
|
+
viewLessText: 'Mostrar menos',
|
|
880
|
+
openExternalSystemTooltip: 'Abrir em sistema externo'
|
|
881
|
+
},
|
|
882
|
+
timezone: {
|
|
883
|
+
searchPlaceholder: 'Cidade ou fuso horário'
|
|
670
884
|
}
|
|
671
885
|
};
|
|
672
886
|
|
|
@@ -698,6 +912,19 @@ const ruRULocaleData = {
|
|
|
698
912
|
size: 'Размер'
|
|
699
913
|
}
|
|
700
914
|
}
|
|
915
|
+
},
|
|
916
|
+
codeBlock: {
|
|
917
|
+
softWrapOnTooltip: 'Включить перенос по словам',
|
|
918
|
+
softWrapOffTooltip: 'Выключить перенос по словам',
|
|
919
|
+
downloadTooltip: 'Скачать',
|
|
920
|
+
copiedTooltip: '✓ Скопировано',
|
|
921
|
+
copyTooltip: 'Скопировать',
|
|
922
|
+
viewAllText: 'Показать все',
|
|
923
|
+
viewLessText: 'Свернуть',
|
|
924
|
+
openExternalSystemTooltip: 'Открыть во внешней системе'
|
|
925
|
+
},
|
|
926
|
+
timezone: {
|
|
927
|
+
searchPlaceholder: 'Город или часовой пояс'
|
|
701
928
|
}
|
|
702
929
|
};
|
|
703
930
|
|
|
@@ -728,6 +955,19 @@ const zhCNLocaleData = {
|
|
|
728
955
|
size: '大小'
|
|
729
956
|
}
|
|
730
957
|
}
|
|
958
|
+
},
|
|
959
|
+
codeBlock: {
|
|
960
|
+
softWrapOnTooltip: '启用文本换行',
|
|
961
|
+
softWrapOffTooltip: '禁用文本换行',
|
|
962
|
+
downloadTooltip: '下载',
|
|
963
|
+
copiedTooltip: '✓已复制',
|
|
964
|
+
copyTooltip: '复制',
|
|
965
|
+
viewAllText: '显示全部',
|
|
966
|
+
viewLessText: '显示部分',
|
|
967
|
+
openExternalSystemTooltip: '在外部系统中打开'
|
|
968
|
+
},
|
|
969
|
+
timezone: {
|
|
970
|
+
searchPlaceholder: '城市或时区'
|
|
731
971
|
}
|
|
732
972
|
};
|
|
733
973
|
|
|
@@ -1407,8 +1647,7 @@ class KbqFormattersModule {
|
|
|
1407
1647
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: KbqFormattersModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1408
1648
|
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.6", ngImport: i0, type: KbqFormattersModule, declarations: [KbqDecimalPipe,
|
|
1409
1649
|
KbqRoundDecimalPipe,
|
|
1410
|
-
KbqTableNumberPipe,
|
|
1411
|
-
AbsoluteDateFormatterPipe,
|
|
1650
|
+
KbqTableNumberPipe], imports: [AbsoluteDateFormatterPipe,
|
|
1412
1651
|
AbsoluteDateTimeFormatterPipe,
|
|
1413
1652
|
AbsoluteDateShortFormatterPipe,
|
|
1414
1653
|
AbsoluteShortDateTimeFormatterPipe,
|
|
@@ -1420,7 +1659,20 @@ class KbqFormattersModule {
|
|
|
1420
1659
|
RangeShortDateFormatterPipe,
|
|
1421
1660
|
RangeDateTimeFormatterPipe,
|
|
1422
1661
|
RangeShortDateTimeFormatterPipe,
|
|
1423
|
-
RangeMiddleDateTimeFormatterPipe
|
|
1662
|
+
RangeMiddleDateTimeFormatterPipe,
|
|
1663
|
+
AbsoluteDateFormatterImpurePipe,
|
|
1664
|
+
AbsoluteDateTimeFormatterImpurePipe,
|
|
1665
|
+
AbsoluteDateShortFormatterImpurePipe,
|
|
1666
|
+
AbsoluteShortDateTimeFormatterImpurePipe,
|
|
1667
|
+
RelativeDateFormatterImpurePipe,
|
|
1668
|
+
RelativeDateTimeFormatterImpurePipe,
|
|
1669
|
+
RelativeShortDateFormatterImpurePipe,
|
|
1670
|
+
RelativeShortDateTimeFormatterImpurePipe,
|
|
1671
|
+
RangeDateFormatterImpurePipe,
|
|
1672
|
+
RangeShortDateFormatterImpurePipe,
|
|
1673
|
+
RangeDateTimeFormatterImpurePipe,
|
|
1674
|
+
RangeShortDateTimeFormatterImpurePipe,
|
|
1675
|
+
RangeMiddleDateTimeFormatterImpurePipe], exports: [KbqDecimalPipe,
|
|
1424
1676
|
KbqRoundDecimalPipe,
|
|
1425
1677
|
KbqTableNumberPipe,
|
|
1426
1678
|
AbsoluteDateFormatterPipe,
|
|
@@ -1435,16 +1687,26 @@ class KbqFormattersModule {
|
|
|
1435
1687
|
RangeShortDateFormatterPipe,
|
|
1436
1688
|
RangeDateTimeFormatterPipe,
|
|
1437
1689
|
RangeShortDateTimeFormatterPipe,
|
|
1438
|
-
RangeMiddleDateTimeFormatterPipe
|
|
1690
|
+
RangeMiddleDateTimeFormatterPipe,
|
|
1691
|
+
AbsoluteDateFormatterImpurePipe,
|
|
1692
|
+
AbsoluteDateTimeFormatterImpurePipe,
|
|
1693
|
+
AbsoluteDateShortFormatterImpurePipe,
|
|
1694
|
+
AbsoluteShortDateTimeFormatterImpurePipe,
|
|
1695
|
+
RelativeDateFormatterImpurePipe,
|
|
1696
|
+
RelativeDateTimeFormatterImpurePipe,
|
|
1697
|
+
RelativeShortDateFormatterImpurePipe,
|
|
1698
|
+
RelativeShortDateTimeFormatterImpurePipe,
|
|
1699
|
+
RangeDateFormatterImpurePipe,
|
|
1700
|
+
RangeShortDateFormatterImpurePipe,
|
|
1701
|
+
RangeDateTimeFormatterImpurePipe,
|
|
1702
|
+
RangeShortDateTimeFormatterImpurePipe,
|
|
1703
|
+
RangeMiddleDateTimeFormatterImpurePipe] }); }
|
|
1439
1704
|
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: KbqFormattersModule, providers: [{ provide: DateFormatter, deps: [DateAdapter, KBQ_DATE_LOCALE] }] }); }
|
|
1440
1705
|
}
|
|
1441
1706
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: KbqFormattersModule, decorators: [{
|
|
1442
1707
|
type: NgModule,
|
|
1443
1708
|
args: [{
|
|
1444
|
-
|
|
1445
|
-
KbqDecimalPipe,
|
|
1446
|
-
KbqRoundDecimalPipe,
|
|
1447
|
-
KbqTableNumberPipe,
|
|
1709
|
+
imports: [
|
|
1448
1710
|
AbsoluteDateFormatterPipe,
|
|
1449
1711
|
AbsoluteDateTimeFormatterPipe,
|
|
1450
1712
|
AbsoluteDateShortFormatterPipe,
|
|
@@ -1457,7 +1719,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
1457
1719
|
RangeShortDateFormatterPipe,
|
|
1458
1720
|
RangeDateTimeFormatterPipe,
|
|
1459
1721
|
RangeShortDateTimeFormatterPipe,
|
|
1460
|
-
RangeMiddleDateTimeFormatterPipe
|
|
1722
|
+
RangeMiddleDateTimeFormatterPipe,
|
|
1723
|
+
AbsoluteDateFormatterImpurePipe,
|
|
1724
|
+
AbsoluteDateTimeFormatterImpurePipe,
|
|
1725
|
+
AbsoluteDateShortFormatterImpurePipe,
|
|
1726
|
+
AbsoluteShortDateTimeFormatterImpurePipe,
|
|
1727
|
+
RelativeDateFormatterImpurePipe,
|
|
1728
|
+
RelativeDateTimeFormatterImpurePipe,
|
|
1729
|
+
RelativeShortDateFormatterImpurePipe,
|
|
1730
|
+
RelativeShortDateTimeFormatterImpurePipe,
|
|
1731
|
+
RangeDateFormatterImpurePipe,
|
|
1732
|
+
RangeShortDateFormatterImpurePipe,
|
|
1733
|
+
RangeDateTimeFormatterImpurePipe,
|
|
1734
|
+
RangeShortDateTimeFormatterImpurePipe,
|
|
1735
|
+
RangeMiddleDateTimeFormatterImpurePipe
|
|
1736
|
+
],
|
|
1737
|
+
declarations: [
|
|
1738
|
+
KbqDecimalPipe,
|
|
1739
|
+
KbqRoundDecimalPipe,
|
|
1740
|
+
KbqTableNumberPipe
|
|
1461
1741
|
],
|
|
1462
1742
|
exports: [
|
|
1463
1743
|
KbqDecimalPipe,
|
|
@@ -1475,7 +1755,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
1475
1755
|
RangeShortDateFormatterPipe,
|
|
1476
1756
|
RangeDateTimeFormatterPipe,
|
|
1477
1757
|
RangeShortDateTimeFormatterPipe,
|
|
1478
|
-
RangeMiddleDateTimeFormatterPipe
|
|
1758
|
+
RangeMiddleDateTimeFormatterPipe,
|
|
1759
|
+
AbsoluteDateFormatterImpurePipe,
|
|
1760
|
+
AbsoluteDateTimeFormatterImpurePipe,
|
|
1761
|
+
AbsoluteDateShortFormatterImpurePipe,
|
|
1762
|
+
AbsoluteShortDateTimeFormatterImpurePipe,
|
|
1763
|
+
RelativeDateFormatterImpurePipe,
|
|
1764
|
+
RelativeDateTimeFormatterImpurePipe,
|
|
1765
|
+
RelativeShortDateFormatterImpurePipe,
|
|
1766
|
+
RelativeShortDateTimeFormatterImpurePipe,
|
|
1767
|
+
RangeDateFormatterImpurePipe,
|
|
1768
|
+
RangeShortDateFormatterImpurePipe,
|
|
1769
|
+
RangeDateTimeFormatterImpurePipe,
|
|
1770
|
+
RangeShortDateTimeFormatterImpurePipe,
|
|
1771
|
+
RangeMiddleDateTimeFormatterImpurePipe
|
|
1479
1772
|
],
|
|
1480
1773
|
providers: [{ provide: DateFormatter, deps: [DateAdapter, KBQ_DATE_LOCALE] }]
|
|
1481
1774
|
}]
|
|
@@ -1697,6 +1990,37 @@ class PasswordValidators {
|
|
|
1697
1990
|
};
|
|
1698
1991
|
}
|
|
1699
1992
|
}
|
|
1993
|
+
/** Provides a set of validators for file-related form controls. */
|
|
1994
|
+
class FileValidators {
|
|
1995
|
+
/**
|
|
1996
|
+
* Validator that checks if the file size is less than or equal to the provided `maxSize`.
|
|
1997
|
+
*
|
|
1998
|
+
* @param maxSize - The maximum allowed file size in bytes.
|
|
1999
|
+
*
|
|
2000
|
+
* @returns A ValidatorFn function that checks the file size.
|
|
2001
|
+
*
|
|
2002
|
+
* ## Usage:
|
|
2003
|
+
*
|
|
2004
|
+
* ```typescript
|
|
2005
|
+
* const control = new FormControl(null, [FileValidators.maxFileSize(1024 * 1024)]); // 1MB
|
|
2006
|
+
* control.setValue(FILE_LESS_OR_EQUAL_THAN_1MB);
|
|
2007
|
+
* console.log(control.errors); // null
|
|
2008
|
+
* control.setValue(FILE_MORE_THAN_1MB);
|
|
2009
|
+
* console.log(control.errors); // {maxFileSize: { max: 1048576, actual: FILE_MORE_THAN_1MB.size }}
|
|
2010
|
+
* ```
|
|
2011
|
+
*/
|
|
2012
|
+
static maxFileSize(maxSize) {
|
|
2013
|
+
return ({ value }) => {
|
|
2014
|
+
if (!value)
|
|
2015
|
+
return null;
|
|
2016
|
+
const size = value instanceof File ? value.size : value.file.size;
|
|
2017
|
+
if (size > maxSize) {
|
|
2018
|
+
return { maxFileSize: { max: maxSize, actual: size } };
|
|
2019
|
+
}
|
|
2020
|
+
return null;
|
|
2021
|
+
};
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
1700
2024
|
|
|
1701
2025
|
function escapeRegExp(value) {
|
|
1702
2026
|
if (value) {
|
|
@@ -3015,6 +3339,12 @@ class KbqSelectSearch {
|
|
|
3015
3339
|
this.isSearchChanged = false;
|
|
3016
3340
|
formField.canCleanerClearByEsc = false;
|
|
3017
3341
|
}
|
|
3342
|
+
setPlaceholder(value) {
|
|
3343
|
+
this.formField.control.placeholder = value;
|
|
3344
|
+
}
|
|
3345
|
+
hasPlaceholder() {
|
|
3346
|
+
return !!this.formField?.control.placeholder;
|
|
3347
|
+
}
|
|
3018
3348
|
focus() {
|
|
3019
3349
|
this.formField.focusViaKeyboard();
|
|
3020
3350
|
}
|
|
@@ -3190,11 +3520,11 @@ var KbqThemeSelector;
|
|
|
3190
3520
|
* This is the standard theme that is applied
|
|
3191
3521
|
* when the application is first loaded if nothing else provided
|
|
3192
3522
|
*/
|
|
3193
|
-
KbqThemeSelector["Default"] = "kbq-
|
|
3523
|
+
KbqThemeSelector["Default"] = "kbq-light";
|
|
3194
3524
|
/**
|
|
3195
3525
|
* This theme is used to provide a darker visual experience, often preferred in low-light environments.
|
|
3196
3526
|
*/
|
|
3197
|
-
KbqThemeSelector["Dark"] = "kbq-
|
|
3527
|
+
KbqThemeSelector["Dark"] = "kbq-dark";
|
|
3198
3528
|
})(KbqThemeSelector || (KbqThemeSelector = {}));
|
|
3199
3529
|
const KbqDefaultThemes = [
|
|
3200
3530
|
{
|
|
@@ -3363,11 +3693,11 @@ const KBQ_VALIDATION = new InjectionToken('KbqUseValidation', {
|
|
|
3363
3693
|
factory: () => ({ useValidation: true })
|
|
3364
3694
|
});
|
|
3365
3695
|
|
|
3366
|
-
const VERSION = new Version('18.
|
|
3696
|
+
const VERSION = new Version('18.4.1+sha-fb2ada4');
|
|
3367
3697
|
|
|
3368
3698
|
/**
|
|
3369
3699
|
* Generated bundle index. Do not edit.
|
|
3370
3700
|
*/
|
|
3371
3701
|
|
|
3372
|
-
export { AbsoluteDateFormatterPipe, AbsoluteDateShortFormatterPipe, AbsoluteDateTimeFormatterPipe, AbsoluteShortDateTimeFormatterPipe, AnimationCurves, BOTTOM_LEFT_POSITION_PRIORITY, BOTTOM_POSITION_PRIORITY, BOTTOM_RIGHT_POSITION_PRIORITY, DateAdapter, DateFormatter, EXTENDED_OVERLAY_POSITIONS, ErrorStateMatcher, KBQ_CUSTOM_SCROLL_STRATEGY_PROVIDER, KBQ_DATE_FORMATS, KBQ_DATE_LOCALE, KBQ_DATE_LOCALE_FACTORY, KBQ_DEFAULT_LOCALE_DATA_FACTORY, KBQ_DEFAULT_LOCALE_ID, KBQ_FORM_FIELD_REF, KBQ_LOCALE_DATA, KBQ_LOCALE_ID, KBQ_LOCALE_SERVICE, KBQ_NUMBER_FORMATTER_DEFAULT_OPTIONS, KBQ_NUMBER_FORMATTER_OPTIONS, KBQ_OPTION_ACTION_PARENT, KBQ_OPTION_PARENT_COMPONENT, KBQ_PARENT_ANIMATION_COMPONENT, KBQ_SANITY_CHECKS, KBQ_SELECT_SCROLL_STRATEGY, KBQ_SELECT_SCROLL_STRATEGY_PROVIDER, KBQ_SIZE_UNITS_CONFIG, KBQ_SIZE_UNITS_DEFAULT_CONFIG, KBQ_TITLE_TEXT_REF, KBQ_VALIDATION, KbqCommonModule, KbqComponentColors, KbqDataSizePipe, KbqDecimalPipe, KbqDefaultThemes, KbqForm, KbqFormElement, KbqFormattersModule, KbqFormsModule, KbqHighlightModule, KbqHighlightPipe, KbqLine, KbqLineModule, KbqLineSetter, KbqLocaleService, KbqLocaleServiceModule, KbqMeasureScrollbarService, KbqOptgroup, KbqOptgroupBase, KbqOptgroupMixinBase, KbqOption, KbqOptionActionBase, KbqOptionActionComponent, KbqOptionActionMixinBase, KbqOptionBase, KbqOptionModule, KbqOptionSelectionChange, KbqPopUp, KbqPopUpTrigger, KbqPseudoCheckbox, KbqPseudoCheckboxBase, KbqPseudoCheckboxMixinBase, KbqPseudoCheckboxModule, KbqRoundDecimalPipe, KbqSelectFooter, KbqSelectMatcher, KbqSelectSearch, KbqSelectSearchEmptyResult, KbqSelectTrigger, KbqTableNumberPipe, KbqThemeSelector, KbqVirtualOption, LEFT_BOTTOM_POSITION_PRIORITY, LEFT_POSITION_PRIORITY, LEFT_TOP_POSITION_PRIORITY, MeasurementSystem, MultipleMode, NUMBER_FORMAT_REGEXP, POSITION_MAP, POSITION_PRIORITY_STRATEGY, POSITION_TO_CSS_MAP, PasswordValidators, PopUpPlacements, PopUpSizes, PopUpTriggers, PopUpVisibility, RIGHT_BOTTOM_POSITION_PRIORITY, RIGHT_POSITION_PRIORITY, RIGHT_TOP_POSITION_PRIORITY, RangeDateFormatterPipe, RangeDateTimeFormatterPipe, RangeMiddleDateTimeFormatterPipe, RangeShortDateFormatterPipe, RangeShortDateTimeFormatterPipe, RelativeDateFormatterPipe, RelativeDateTimeFormatterPipe, RelativeShortDateFormatterPipe, RelativeShortDateTimeFormatterPipe, SELECT_PANEL_INDENT_PADDING_X, SELECT_PANEL_MAX_HEIGHT, SELECT_PANEL_PADDING_X, SELECT_PANEL_VIEWPORT_PADDING, ShowOnControlDirtyErrorStateMatcher, ShowOnFormSubmitErrorStateMatcher, TOP_LEFT_POSITION_PRIORITY, TOP_POSITION_PRIORITY, TOP_RIGHT_POSITION_PRIORITY, ThemePalette, ThemeService, VERSION, applyPopupMargins, checkAndNormalizeLocalizedNumber, countGroupLabelsBeforeOption, enUSFormattersData, enUSLocaleData, esLAFormattersData, esLALocaleData, escapeRegExp, faIRFormattersData, faIRLocaleData, fadeAnimation, formatDataSize, getHumanizedBytes, getKbqSelectDynamicMultipleError, getKbqSelectNonArrayValueError, getKbqSelectNonFunctionValueError, getOptionScrollPosition, isBoolean, isWithin, kbqSelectAnimations, kbqSelectScrollStrategyProviderFactory, mixinColor, mixinDisabled, mixinErrorState, mixinTabIndex, normalizeNumber, ptBRFormattersData, ptBRLocaleData, ruRUFormattersData, ruRULocaleData, selectEvents, toBoolean, validationTooltipHideDelay, validationTooltipShowDelay, zhCNFormattersData, zhCNLocaleData };
|
|
3702
|
+
export { AbsoluteDateFormatterImpurePipe, AbsoluteDateFormatterPipe, AbsoluteDateShortFormatterImpurePipe, AbsoluteDateShortFormatterPipe, AbsoluteDateTimeFormatterImpurePipe, AbsoluteDateTimeFormatterPipe, AbsoluteShortDateTimeFormatterImpurePipe, AbsoluteShortDateTimeFormatterPipe, AnimationCurves, BOTTOM_LEFT_POSITION_PRIORITY, BOTTOM_POSITION_PRIORITY, BOTTOM_RIGHT_POSITION_PRIORITY, BaseFormatterPipe, DateAdapter, DateFormatter, EXTENDED_OVERLAY_POSITIONS, ErrorStateMatcher, FileValidators, KBQ_CUSTOM_SCROLL_STRATEGY_PROVIDER, KBQ_DATE_FORMATS, KBQ_DATE_LOCALE, KBQ_DATE_LOCALE_FACTORY, KBQ_DEFAULT_LOCALE_DATA_FACTORY, KBQ_DEFAULT_LOCALE_ID, KBQ_FORM_FIELD_REF, KBQ_LOCALE_DATA, KBQ_LOCALE_ID, KBQ_LOCALE_SERVICE, KBQ_NUMBER_FORMATTER_DEFAULT_OPTIONS, KBQ_NUMBER_FORMATTER_OPTIONS, KBQ_OPTION_ACTION_PARENT, KBQ_OPTION_PARENT_COMPONENT, KBQ_PARENT_ANIMATION_COMPONENT, KBQ_SANITY_CHECKS, KBQ_SELECT_SCROLL_STRATEGY, KBQ_SELECT_SCROLL_STRATEGY_PROVIDER, KBQ_SIZE_UNITS_CONFIG, KBQ_SIZE_UNITS_DEFAULT_CONFIG, KBQ_TITLE_TEXT_REF, KBQ_VALIDATION, KbqCommonModule, KbqComponentColors, KbqDataSizePipe, KbqDecimalPipe, KbqDefaultThemes, KbqForm, KbqFormElement, KbqFormattersModule, KbqFormsModule, KbqHighlightModule, KbqHighlightPipe, KbqLine, KbqLineModule, KbqLineSetter, KbqLocaleService, KbqLocaleServiceModule, KbqMeasureScrollbarService, KbqOptgroup, KbqOptgroupBase, KbqOptgroupMixinBase, KbqOption, KbqOptionActionBase, KbqOptionActionComponent, KbqOptionActionMixinBase, KbqOptionBase, KbqOptionModule, KbqOptionSelectionChange, KbqPopUp, KbqPopUpTrigger, KbqPseudoCheckbox, KbqPseudoCheckboxBase, KbqPseudoCheckboxMixinBase, KbqPseudoCheckboxModule, KbqRoundDecimalPipe, KbqSelectFooter, KbqSelectMatcher, KbqSelectSearch, KbqSelectSearchEmptyResult, KbqSelectTrigger, KbqTableNumberPipe, KbqThemeSelector, KbqVirtualOption, LEFT_BOTTOM_POSITION_PRIORITY, LEFT_POSITION_PRIORITY, LEFT_TOP_POSITION_PRIORITY, MeasurementSystem, MultipleMode, NUMBER_FORMAT_REGEXP, POSITION_MAP, POSITION_PRIORITY_STRATEGY, POSITION_TO_CSS_MAP, PasswordValidators, PopUpPlacements, PopUpSizes, PopUpTriggers, PopUpVisibility, RIGHT_BOTTOM_POSITION_PRIORITY, RIGHT_POSITION_PRIORITY, RIGHT_TOP_POSITION_PRIORITY, RangeDateFormatterImpurePipe, RangeDateFormatterPipe, RangeDateTimeFormatterImpurePipe, RangeDateTimeFormatterPipe, RangeMiddleDateTimeFormatterImpurePipe, RangeMiddleDateTimeFormatterPipe, RangeShortDateFormatterImpurePipe, RangeShortDateFormatterPipe, RangeShortDateTimeFormatterImpurePipe, RangeShortDateTimeFormatterPipe, RelativeDateFormatterImpurePipe, RelativeDateFormatterPipe, RelativeDateTimeFormatterImpurePipe, RelativeDateTimeFormatterPipe, RelativeShortDateFormatterImpurePipe, RelativeShortDateFormatterPipe, RelativeShortDateTimeFormatterImpurePipe, RelativeShortDateTimeFormatterPipe, SELECT_PANEL_INDENT_PADDING_X, SELECT_PANEL_MAX_HEIGHT, SELECT_PANEL_PADDING_X, SELECT_PANEL_VIEWPORT_PADDING, ShowOnControlDirtyErrorStateMatcher, ShowOnFormSubmitErrorStateMatcher, TOP_LEFT_POSITION_PRIORITY, TOP_POSITION_PRIORITY, TOP_RIGHT_POSITION_PRIORITY, ThemePalette, ThemeService, VERSION, applyPopupMargins, checkAndNormalizeLocalizedNumber, countGroupLabelsBeforeOption, enUSFormattersData, enUSLocaleData, esLAFormattersData, esLALocaleData, escapeRegExp, faIRFormattersData, faIRLocaleData, fadeAnimation, formatDataSize, getHumanizedBytes, getKbqSelectDynamicMultipleError, getKbqSelectNonArrayValueError, getKbqSelectNonFunctionValueError, getOptionScrollPosition, isBoolean, isWithin, kbqSelectAnimations, kbqSelectScrollStrategyProviderFactory, mixinColor, mixinDisabled, mixinErrorState, mixinTabIndex, normalizeNumber, ptBRFormattersData, ptBRLocaleData, ruRUFormattersData, ruRULocaleData, selectEvents, toBoolean, validationTooltipHideDelay, validationTooltipShowDelay, zhCNFormattersData, zhCNLocaleData };
|
|
3373
3703
|
//# sourceMappingURL=koobiq-components-core.mjs.map
|