@leanix/components 0.3.115 → 0.3.116
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/esm2020/index.mjs +1 -2
- package/esm2020/lib/forms-ui/forms-ui.module.mjs +1 -6
- package/esm2020/lib/modal-ui/components/modal/modal.component.mjs +2 -4
- package/fesm2015/leanix-components.mjs +2 -64
- package/fesm2015/leanix-components.mjs.map +1 -1
- package/fesm2020/leanix-components.mjs +2 -62
- package/fesm2020/leanix-components.mjs.map +1 -1
- package/index.d.ts +0 -1
- package/lib/forms-ui/forms-ui.module.d.ts +45 -46
- package/package.json +1 -2
- package/esm2020/lib/forms-ui/components/copy-button/copy-button.component.mjs +0 -59
- package/lib/forms-ui/components/copy-button/copy-button.component.d.ts +0 -25
|
@@ -2758,60 +2758,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImpor
|
|
|
2758
2758
|
args: ['dropdown']
|
|
2759
2759
|
}] } });
|
|
2760
2760
|
|
|
2761
|
-
// todo: replace with Angular CDK clipboard
|
|
2762
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
2763
|
-
const copy = require('clipboard-copy');
|
|
2764
|
-
class CopyButtonComponent {
|
|
2765
|
-
constructor() {
|
|
2766
|
-
/** JSON string or object to be saved/copied as JSON */
|
|
2767
|
-
this.data = '';
|
|
2768
|
-
/** Determine copy button Bootstrap class & color or hide it altogether */
|
|
2769
|
-
this.btn = 'default';
|
|
2770
|
-
this.success = new EventEmitter();
|
|
2771
|
-
this.error = new EventEmitter();
|
|
2772
|
-
this.NAME = 'CopyButtonComponent';
|
|
2773
|
-
// clipboard-copy uses document.execCommand to copy to clipboard. All our _whitelisted_ browsers support it.
|
|
2774
|
-
// The copy still fails on very rare occasions for unknown reasons. In those cases it's good for the user
|
|
2775
|
-
// to be able to try again. So clipboardSupport is not set to false in the catch below any more.
|
|
2776
|
-
this.clipboardSupport = typeof document.execCommand === 'function';
|
|
2777
|
-
}
|
|
2778
|
-
async copy() {
|
|
2779
|
-
try {
|
|
2780
|
-
const json = this.getStringData();
|
|
2781
|
-
await copy(json);
|
|
2782
|
-
this.success.emit({
|
|
2783
|
-
messageKey: this.dataDescription ? `${this.NAME}.dataCopySuccess` : `${this.NAME}.copySuccess`,
|
|
2784
|
-
translateParams: { data: this.dataDescription }
|
|
2785
|
-
});
|
|
2786
|
-
}
|
|
2787
|
-
catch (err) {
|
|
2788
|
-
this.error.emit({
|
|
2789
|
-
messageKey: this.dataDescription ? `${this.NAME}.dataCopyFailure` : `${this.NAME}.copyFailure`,
|
|
2790
|
-
translateParams: { data: this.dataDescription }
|
|
2791
|
-
});
|
|
2792
|
-
}
|
|
2793
|
-
}
|
|
2794
|
-
getStringData() {
|
|
2795
|
-
return _.isString(this.data) ? this.data : JSON.stringify(this.data, null, '\t');
|
|
2796
|
-
}
|
|
2797
|
-
}
|
|
2798
|
-
CopyButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: CopyButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2799
|
-
CopyButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.1", type: CopyButtonComponent, selector: "lx-copy-button", inputs: { data: "data", dataDescription: "dataDescription", btn: "btn" }, outputs: { success: "success", error: "error" }, ngImport: i0, template: "<button *ngIf=\"clipboardSupport\" (click)=\"copy()\" class=\"btn btn-{{ btn }} btnCopyJson\">\n <i class=\"far fa-copy\"></i>\n <span>\n {{ 'buttons.copy' | translate }}\n </span>\n</button>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }] });
|
|
2800
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: CopyButtonComponent, decorators: [{
|
|
2801
|
-
type: Component,
|
|
2802
|
-
args: [{ selector: 'lx-copy-button', template: "<button *ngIf=\"clipboardSupport\" (click)=\"copy()\" class=\"btn btn-{{ btn }} btnCopyJson\">\n <i class=\"far fa-copy\"></i>\n <span>\n {{ 'buttons.copy' | translate }}\n </span>\n</button>\n" }]
|
|
2803
|
-
}], ctorParameters: function () { return []; }, propDecorators: { data: [{
|
|
2804
|
-
type: Input
|
|
2805
|
-
}], dataDescription: [{
|
|
2806
|
-
type: Input
|
|
2807
|
-
}], btn: [{
|
|
2808
|
-
type: Input
|
|
2809
|
-
}], success: [{
|
|
2810
|
-
type: Output
|
|
2811
|
-
}], error: [{
|
|
2812
|
-
type: Output
|
|
2813
|
-
}] } });
|
|
2814
|
-
|
|
2815
2761
|
// Currency symbol map extracted from: http://symbologic.info/currency.htm
|
|
2816
2762
|
// Using custom symbology since Angular 2 currency pipe does not support all currency symbols:
|
|
2817
2763
|
// https://github.com/angular/angular/issues/6724
|
|
@@ -5933,7 +5879,6 @@ LxFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
5933
5879
|
ExpandedDropdownComponent,
|
|
5934
5880
|
BasicDropdownItemComponent,
|
|
5935
5881
|
BreadcrumbComponent,
|
|
5936
|
-
CopyButtonComponent,
|
|
5937
5882
|
CurrencyInputComponent,
|
|
5938
5883
|
CurrencySymbolComponent,
|
|
5939
5884
|
DateInputComponent,
|
|
@@ -5979,7 +5924,6 @@ LxFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
5979
5924
|
ExpandedDropdownComponent,
|
|
5980
5925
|
BasicDropdownItemComponent,
|
|
5981
5926
|
BreadcrumbComponent,
|
|
5982
|
-
CopyButtonComponent,
|
|
5983
5927
|
CurrencyInputComponent,
|
|
5984
5928
|
CurrencySymbolComponent,
|
|
5985
5929
|
DateInputComponent,
|
|
@@ -6033,7 +5977,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImpor
|
|
|
6033
5977
|
ExpandedDropdownComponent,
|
|
6034
5978
|
BasicDropdownItemComponent,
|
|
6035
5979
|
BreadcrumbComponent,
|
|
6036
|
-
CopyButtonComponent,
|
|
6037
5980
|
CurrencyInputComponent,
|
|
6038
5981
|
CurrencySymbolComponent,
|
|
6039
5982
|
DateInputComponent,
|
|
@@ -6087,7 +6030,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImpor
|
|
|
6087
6030
|
ExpandedDropdownComponent,
|
|
6088
6031
|
BasicDropdownItemComponent,
|
|
6089
6032
|
BreadcrumbComponent,
|
|
6090
|
-
CopyButtonComponent,
|
|
6091
6033
|
CurrencyInputComponent,
|
|
6092
6034
|
CurrencySymbolComponent,
|
|
6093
6035
|
DateInputComponent,
|
|
@@ -6271,9 +6213,7 @@ class ModalComponent {
|
|
|
6271
6213
|
return this.explicitContent || this.implicitContent;
|
|
6272
6214
|
}
|
|
6273
6215
|
onEscape() {
|
|
6274
|
-
|
|
6275
|
-
this.closeModal();
|
|
6276
|
-
}
|
|
6216
|
+
this.closeModal();
|
|
6277
6217
|
}
|
|
6278
6218
|
ngOnInit() {
|
|
6279
6219
|
this.closeModal$?.pipe(takeUntil(this.destroyed$)).subscribe(() => this.closeModal());
|
|
@@ -6935,5 +6875,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImpor
|
|
|
6935
6875
|
* Generated bundle index. Do not edit.
|
|
6936
6876
|
*/
|
|
6937
6877
|
|
|
6938
|
-
export { ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP, AfterViewInitDirective, AutocloseDirective, AutofocusDirective, BACKSPACE, BadgeComponent, BaseSelectDirective, BasicDropdownComponent, BasicDropdownItemComponent, BrPipe, BreadcrumbComponent, ButtonComponent, ButtonGroupComponent, CURRENCY_SYMBOL_MAP, CardComponent, CdkOptionsDropdownComponent, CdkOptionsSubDropdownComponent, CollapsibleComponent, ColoredLabelComponent, ContrastColorPipe,
|
|
6878
|
+
export { ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP, AfterViewInitDirective, AutocloseDirective, AutofocusDirective, BACKSPACE, BadgeComponent, BaseSelectDirective, BasicDropdownComponent, BasicDropdownItemComponent, BrPipe, BreadcrumbComponent, ButtonComponent, ButtonGroupComponent, CURRENCY_SYMBOL_MAP, CardComponent, CdkOptionsDropdownComponent, CdkOptionsSubDropdownComponent, CollapsibleComponent, ColoredLabelComponent, ContrastColorPipe, CurrencyInputComponent, CurrencySymbolComponent, CustomDatePipe, DATE_FN_LOCALE, DATE_FORMATS, DateInputComponent, DragAndDropListComponent, DragAndDropListItemComponent, ENTER, ESCAPE, EllipsisComponent, ErrorMessageComponent, ExpandedDropdownComponent, FORM_CONTROL_ERROR_DISPLAY_STRATEGY, FORM_CONTROL_ERROR_NAMESPACE, FilterSelectionPipe, FilterTermPipe, FormErrorComponent, FormErrorDirective, FormSubmitDirective, FormatNumberPipe, GLOBAL_TRANSLATION_OPTIONS, HighlightRangePipe, HighlightTermPipe, HtmlDirective, IconComponent, IconScaleComponent, KeyboardActionSourceDirective, KeyboardSelectAction, KeyboardSelectDirective, LOCALE_FN, LX_ELLIPSIS_DEBOUNCE_ON_RESIZE, LxCoreUiModule, LxDragAndDropListModule, LxFormsModule, LxIsUuidPipe, LxLinkifyPipe, LxModalModule, LxPopoverUiModule, LxTabUiModule, LxTimeAgo, LxTooltipModule, LxTranslatePipe, LxUnlinkifyPipe, MODAL_CLOSE, MarkInvalidDirective, MarkdownPipe, ModalComponent, ModalContentDirective, ModalFooterComponent, ModalHeaderComponent, MultiSelectComponent, NbspPipe, OptionComponent, OptionGroupComponent, OptionGroupDropdownComponent, OptionsDropdownComponent, OptionsSubDropdownComponent, PickerComponent, PickerOptionComponent, PickerTriggerDirective, PillItemComponent, PillListComponent, PopoverClickDirective, PopoverComponent, PopoverContentDirective, PopoverHoverDirective, RELEVANCE_SORTING_KEY, Required, ResizeObserverService, ResponsiveInputComponent, SPACE, SelectDropdownDirective, SelectListComponent, SelectableItemDirective, SelectedOptionDirective, SingleSelectComponent, SliderToggleComponent, SortPipe, Sorting, SortingDropdownComponent, SortingDropdownTriggerComponent, SpinnerComponent, TAB, TabComponent, TabGroupComponent, TableComponent, TableHeaderComponent, TinySpinnerComponent, TooltipComponent, TooltipDirective, TranslationAfterPipe, TranslationBeforePipe, TranslationBetweenPipe, UnescapeCurlyBracesPipe, ValidateDateInForeseeableFuture, ValidateStringNotInArray, ValidateStringNotInArrayAsync, getContrastColor, getTranslationParts, isValidHexColor, isValidX, isValidY, provideFormControlErrorDisplayStrategy, provideFormControlErrorNamespace, shorthandHexHandle };
|
|
6939
6879
|
//# sourceMappingURL=leanix-components.mjs.map
|