asksuite-citrus 3.16.21 → 3.16.23-beta.0

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.
Files changed (42) hide show
  1. package/esm2022/lib/asksuite-citrus.module.mjs +9 -4
  2. package/esm2022/lib/classes/richtext-wrapper.mjs +1 -6
  3. package/esm2022/lib/components/accordion/extendable-panel/extendable-panel.component.mjs +2 -2
  4. package/esm2022/lib/components/arrow-tag/arrow-tag.component.mjs +2 -2
  5. package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +2 -2
  6. package/esm2022/lib/components/avatar/avatar.component.mjs +2 -2
  7. package/esm2022/lib/components/box/box.component.mjs +2 -2
  8. package/esm2022/lib/components/button/button.component.mjs +2 -2
  9. package/esm2022/lib/components/character-counter/character-counter.component.mjs +2 -2
  10. package/esm2022/lib/components/checkbox/checkbox.component.mjs +2 -2
  11. package/esm2022/lib/components/chips/chips.component.mjs +2 -2
  12. package/esm2022/lib/components/date-picker/date-picker-calendar/date-picker-calendar.component.mjs +2 -2
  13. package/esm2022/lib/components/date-picker/date-picker.component.mjs +2 -2
  14. package/esm2022/lib/components/dropdown-container/dropdown-container.component.mjs +2 -2
  15. package/esm2022/lib/components/input/input.component.mjs +2 -2
  16. package/esm2022/lib/components/modal/confirmation-modal/confirmation-modal.component.mjs +2 -2
  17. package/esm2022/lib/components/modal/modal.component.mjs +2 -2
  18. package/esm2022/lib/components/notification-tooltip/notification-tooltip.component.mjs +48 -0
  19. package/esm2022/lib/components/pagination/pagination.component.mjs +2 -2
  20. package/esm2022/lib/components/phone-ddi/phone-ddi.component.mjs +2 -2
  21. package/esm2022/lib/components/richtext-toolbox/richtext-toolbox.component.mjs +2 -2
  22. package/esm2022/lib/components/richtext-url-prompt/richtext-url-prompt.component.mjs +2 -2
  23. package/esm2022/lib/components/select/select.component.mjs +2 -2
  24. package/esm2022/lib/components/tab-group/tab/tab.component.mjs +2 -2
  25. package/esm2022/lib/components/tab-group/tab-group.component.mjs +2 -2
  26. package/esm2022/lib/components/table/table.component.mjs +2 -2
  27. package/esm2022/lib/components/toast/toast.component.mjs +2 -2
  28. package/esm2022/lib/constants/url-regex.constant.mjs +2 -2
  29. package/esm2022/lib/directives/richtext-toolbox/richtext-toolbox.directive.mjs +1 -4
  30. package/esm2022/public-api.mjs +2 -1
  31. package/fesm2022/asksuite-citrus.mjs +101 -61
  32. package/fesm2022/asksuite-citrus.mjs.map +1 -1
  33. package/lib/asksuite-citrus.module.d.ts +12 -11
  34. package/lib/classes/richtext-wrapper.d.ts +0 -1
  35. package/lib/components/notification-tooltip/notification-tooltip.component.d.ts +19 -0
  36. package/lib/directives/richtext-toolbox/richtext-toolbox.directive.d.ts +0 -1
  37. package/package.json +1 -1
  38. package/public-api.d.ts +1 -0
  39. package/styles/colors-dark.scss +1 -3
  40. package/styles/colors-light.scss +2 -3
  41. package/styles/theme-colors.scss +0 -2
  42. package/styles/theme-primitives.scss +1 -21
@@ -0,0 +1,48 @@
1
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/common";
4
+ import * as i2 from "@ngx-translate/core";
5
+ export class NotificationTooltipComponent {
6
+ constructor() {
7
+ this.title = '';
8
+ this.message = '';
9
+ this.direction = 'horizontal';
10
+ this.positionArrowHorizontal = 'center';
11
+ this.positionArrowVertical = 'center';
12
+ this.sideArrow = 'bottom';
13
+ this.buttonTitle = "'ACTIONS.CLOSE' | translate'";
14
+ this.onClick = new EventEmitter();
15
+ this.visible = true;
16
+ this.class = '';
17
+ }
18
+ ngOnInit() {
19
+ this.class = `tooltip-arrow-${this.direction} -side-${this.sideArrow} -${this.direction === 'horizontal'
20
+ ? this.positionArrowHorizontal : this.positionArrowVertical}`;
21
+ }
22
+ closeTooltip() {
23
+ this.visible = false;
24
+ }
25
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: NotificationTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
26
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.7", type: NotificationTooltipComponent, selector: "app-tooltip", inputs: { title: "title", message: "message", direction: "direction", positionArrowHorizontal: "positionArrowHorizontal", positionArrowVertical: "positionArrowVertical", sideArrow: "sideArrow", buttonTitle: "buttonTitle" }, outputs: { onClick: "onClick" }, ngImport: i0, template: "\n <div class=\"tooltip-container\">\n <div [ngClass]=\"class\"></div>\n <div class=\"tooltip-content\">\n @if(title !==''){\n <p class=\"title\">{{ title | translate }}</p>\n }\n <p class=\"message\">{{ message | translate }}</p>\n <button class=\"button\" (click)=\"onClick.emit($event)\">{{buttonTitle | translate}}</button>\n </div>\n </div>\n\n", styles: [".tooltip-container{display:flex;padding:12px 16px;flex-direction:column;justify-content:center;align-items:center;gap:12px;flex:1 0 0;z-index:1000;position:absolute}.tooltip-arrow-horizontal{position:absolute;transform:translate(-50%);width:0;height:0;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px);z-index:1001}.tooltip-arrow-horizontal.-side-top{border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:8px solid var(--color-background-alpha-bolder-default);top:4%}.tooltip-arrow-horizontal.-side-bottom{border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid var(--color-background-alpha-bolder-default);top:90%}.tooltip-arrow-horizontal.-left{left:7%}.tooltip-arrow-horizontal.-center{left:50%}.tooltip-arrow-horizontal.-right{left:93%}.tooltip-arrow-vertical{position:absolute;transform:translate(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:8px solid var(--color-background-alpha-bolder-default);z-index:1001}.tooltip-arrow-vertical.-side-left{border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:8px solid;left:4%}.tooltip-arrow-vertical.-side-right{border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:8px solid;left:96%}.tooltip-arrow-vertical.-top{top:18%}.tooltip-arrow-vertical.-center{top:45%}.tooltip-arrow-vertical.-bottom{top:73%}.tooltip-content{display:flex;padding:12px 16px;flex-direction:column;justify-content:center;align-items:center;gap:12px;flex:1 0 0;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px);width:214px;border-radius:8px;background:var(--color-background-alpha-bolder-default);align-self:stretch}.button{display:flex;height:32px;width:168px;padding:6px 12px;justify-content:center;align-items:center;gap:8px;border-radius:8px;background-color:var(--color-background-inverse-default);color:var(--color-texticon-contrast)}.title{color:var(--color-texticon-inverse-default);font-family:Inter;font-size:14px;font-style:normal;font-weight:500;line-height:20px;align-self:stretch}.message{color:var(--color-texticon-inverse-default, #FFF);font-family:Inter;font-size:13px;font-style:normal;font-weight:400;line-height:20px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] }); }
27
+ }
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: NotificationTooltipComponent, decorators: [{
29
+ type: Component,
30
+ args: [{ selector: 'app-tooltip', template: "\n <div class=\"tooltip-container\">\n <div [ngClass]=\"class\"></div>\n <div class=\"tooltip-content\">\n @if(title !==''){\n <p class=\"title\">{{ title | translate }}</p>\n }\n <p class=\"message\">{{ message | translate }}</p>\n <button class=\"button\" (click)=\"onClick.emit($event)\">{{buttonTitle | translate}}</button>\n </div>\n </div>\n\n", styles: [".tooltip-container{display:flex;padding:12px 16px;flex-direction:column;justify-content:center;align-items:center;gap:12px;flex:1 0 0;z-index:1000;position:absolute}.tooltip-arrow-horizontal{position:absolute;transform:translate(-50%);width:0;height:0;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px);z-index:1001}.tooltip-arrow-horizontal.-side-top{border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:8px solid var(--color-background-alpha-bolder-default);top:4%}.tooltip-arrow-horizontal.-side-bottom{border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid var(--color-background-alpha-bolder-default);top:90%}.tooltip-arrow-horizontal.-left{left:7%}.tooltip-arrow-horizontal.-center{left:50%}.tooltip-arrow-horizontal.-right{left:93%}.tooltip-arrow-vertical{position:absolute;transform:translate(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:8px solid var(--color-background-alpha-bolder-default);z-index:1001}.tooltip-arrow-vertical.-side-left{border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:8px solid;left:4%}.tooltip-arrow-vertical.-side-right{border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:8px solid;left:96%}.tooltip-arrow-vertical.-top{top:18%}.tooltip-arrow-vertical.-center{top:45%}.tooltip-arrow-vertical.-bottom{top:73%}.tooltip-content{display:flex;padding:12px 16px;flex-direction:column;justify-content:center;align-items:center;gap:12px;flex:1 0 0;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px);width:214px;border-radius:8px;background:var(--color-background-alpha-bolder-default);align-self:stretch}.button{display:flex;height:32px;width:168px;padding:6px 12px;justify-content:center;align-items:center;gap:8px;border-radius:8px;background-color:var(--color-background-inverse-default);color:var(--color-texticon-contrast)}.title{color:var(--color-texticon-inverse-default);font-family:Inter;font-size:14px;font-style:normal;font-weight:500;line-height:20px;align-self:stretch}.message{color:var(--color-texticon-inverse-default, #FFF);font-family:Inter;font-size:13px;font-style:normal;font-weight:400;line-height:20px}\n"] }]
31
+ }], ctorParameters: () => [], propDecorators: { title: [{
32
+ type: Input
33
+ }], message: [{
34
+ type: Input
35
+ }], direction: [{
36
+ type: Input
37
+ }], positionArrowHorizontal: [{
38
+ type: Input
39
+ }], positionArrowVertical: [{
40
+ type: Input
41
+ }], sideArrow: [{
42
+ type: Input
43
+ }], buttonTitle: [{
44
+ type: Input
45
+ }], onClick: [{
46
+ type: Output
47
+ }] } });
48
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2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