keevo-components 2.0.286 → 2.0.288

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.
@@ -1,75 +1,29 @@
1
- import { Component, computed, input, HostListener, signal, ChangeDetectionStrategy } from '@angular/core';
1
+ import { Component, computed, input } from '@angular/core';
2
2
  import { KvButtonModule } from '../kv-button/kv-button.module';
3
3
  import { DividerModule } from 'primeng/divider';
4
4
  import { KvCardsInstructionComponent } from './components/cards-instruction/kv-cards-instruction.component';
5
+ import { SidebarModule } from 'primeng/sidebar';
5
6
  import * as i0 from "@angular/core";
6
7
  import * as i1 from "../kv-button/kv-button.component";
8
+ import * as i2 from "primeng/sidebar";
7
9
  export class KvInstructionPageComponent {
8
10
  constructor() {
9
11
  this.actions = input([]);
10
12
  this.camposObrigatorios = input(false);
11
- // Define se o painel inicia aberto (true) ou fechado (false). Por padrão é true no desktop.
12
- this.startExpanded = input(true);
13
13
  this.whiteCard = input(undefined);
14
14
  this.blackCard = input();
15
- this.isMobile = signal(false);
16
- this.userToggledPanel = signal(null);
17
- this.isPanelExpanded = computed(() => {
18
- // 1. Respeita a interação manual do usuário primeiro
19
- const toggled = this.userToggledPanel();
20
- if (toggled !== null)
21
- return toggled;
22
- // 2. Se for mobile, inicia sempre fechado como padrão por UX
23
- if (this.isMobile())
24
- return false;
25
- // 3. Respeita a propriedade (true ou false) definida pelo desenvolvedor na tela via @Input
26
- return this.startExpanded();
27
- });
28
- this.mainContentWidth = computed(() => {
29
- if (!this.whiteCard() && !this.blackCard())
30
- return '100%';
31
- const expanded = this.isPanelExpanded();
32
- const mobile = this.isMobile();
33
- if (mobile)
34
- return expanded ? '0%' : '100%';
35
- return expanded ? 'calc(75% - 0.25rem)' : '100%';
36
- });
37
- this.panelWidth = computed(() => {
15
+ this.sizeContent = computed(() => {
38
16
  if (!this.whiteCard() && !this.blackCard())
39
- return '0%';
40
- const expanded = this.isPanelExpanded();
41
- const mobile = this.isMobile();
42
- if (mobile)
43
- return expanded ? '100%' : '0%';
44
- return expanded ? 'calc(25% - 0.25rem)' : '0%';
17
+ return 'w-full';
18
+ return 'w-9';
45
19
  });
46
- }
47
- ngOnInit() {
48
- this.checkMobileState();
49
- }
50
- onResize() {
51
- this.checkMobileState();
52
- }
53
- checkMobileState() {
54
- if (typeof window !== 'undefined') {
55
- const isMob = window.innerWidth < 1024;
56
- // Atualiza o sinal apenas se houver mudança real, economiza ciclos do Change Detection
57
- if (this.isMobile() !== isMob) {
58
- this.isMobile.set(isMob);
59
- }
60
- }
61
- }
62
- togglePanel() {
63
- this.userToggledPanel.set(!this.isPanelExpanded());
20
+ this.verIntrucoes = false;
64
21
  }
65
22
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvInstructionPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
66
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.8", type: KvInstructionPageComponent, isStandalone: true, selector: "kv-instruction-page", inputs: { actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, camposObrigatorios: { classPropertyName: "camposObrigatorios", publicName: "camposObrigatorios", isSignal: true, isRequired: false, transformFunction: null }, startExpanded: { classPropertyName: "startExpanded", publicName: "startExpanded", isSignal: true, isRequired: false, transformFunction: null }, whiteCard: { classPropertyName: "whiteCard", publicName: "whiteCard", isSignal: true, isRequired: false, transformFunction: null }, blackCard: { classPropertyName: "blackCard", publicName: "blackCard", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "window:resize": "onResize()" } }, ngImport: i0, template: "<div class=\"h-full flex flex-column overflow-hidden relative\">\r\n <div class=\"flex-1 min-h-0 flex flex-row p-2 justify-content-between relative overflow-hidden\">\r\n <!-- Main Content Container -->\r\n <div class=\"h-full max-h-full transition-all duration-300 ease-in-out overflow-y-auto flex-shrink-0\"\r\n [style.width]=\"mainContentWidth()\" [class.opacity-0]=\"isMobile() && isPanelExpanded()\">\r\n <ng-content select=\"[main-content]\"></ng-content>\r\n </div>\r\n\r\n <!-- Instruction Page Panel (Side) -->\r\n <div class=\"h-full transition-all duration-300 ease-in-out flex-shrink-0 overflow-y-auto\"\r\n [style.width]=\"panelWidth()\" [class.opacity-0]=\"!isPanelExpanded()\">\r\n <kv-cards-instruction [whiteCard]=\"whiteCard()\" [blackCard]=\"blackCard()\" class=\"block w-full h-full\">\r\n <div white-card-content class=\"h-full\">\r\n <ng-content select=\"[white-card-content]\"></ng-content>\r\n </div>\r\n <div black-card-content class=\"h-full\">\r\n <ng-content select=\"[black-card-content]\"></ng-content>\r\n </div>\r\n </kv-cards-instruction>\r\n </div>\r\n\r\n <!-- Floating Toggle Button -->\r\n @if (whiteCard() || blackCard()) {\r\n <kv-button [severity]=\"'secondary'\" [size]=\"'large'\" [type]=\"isPanelExpanded() ? 'text' : undefined\"\r\n [icon]=\"isPanelExpanded() ? 'close' : 'quick_reference'\"\r\n class=\"absolute z-50 transition-all duration-300 ease-in-out bg-white inline-flex border-round\"\r\n [style.top]=\"'1rem'\" [style.right]=\"'1rem'\" (onClick)=\"togglePanel()\">\r\n </kv-button>\r\n }\r\n </div>\r\n\r\n @if (actions().length > 0) {\r\n <div class=\"flex-initial flex-none flex flex-row justify-content-{{\r\n camposObrigatorios() ? 'between' : 'end'\r\n }} align-items-center p-2\">\r\n @if (camposObrigatorios()) {\r\n <span class=\"text-xs text-red-500 font-semibold\">* Preenchimento obrigat\u00F3rio</span>\r\n }\r\n\r\n <div class=\"flex flex-row justify-content-end gap-2\">\r\n @for (action of actions().slice().reverse(); track action.index) {\r\n <kv-button [label]=\"action.label || ''\" [severity]=\"action.severity || 'tertiary'\"\r\n [disabled]=\"action.disabled || false\" [type]=\"action.type\" [size]=\"action.size || 'small'\"\r\n [icon]=\"action.icon || ''\" [iconPosition]=\"action.iconPosition || 'left'\" [items]=\"action.items || []\"\r\n [popup]=\"action.popup || false\" [popupIcon]=\"action.popupIcon || false\" [fullWidth]=\"action.fullWidth || false\"\r\n (onClick)=\"action?.command($event)\"></kv-button>\r\n }\r\n </div>\r\n </div>\r\n }\r\n</div>", styles: [""], dependencies: [{ kind: "ngmodule", type: KvButtonModule }, { kind: "component", type: i1.KvButtonComponent, selector: "kv-button", inputs: ["fullWidth", "type", "loading", "severity", "size", "icon", "iconPosition", "label", "disabled", "items", "popup", "popupIcon"], outputs: ["iconChange", "onClick"] }, { kind: "ngmodule", type: DividerModule }, { kind: "component", type: KvCardsInstructionComponent, selector: "kv-cards-instruction", inputs: ["whiteCard", "blackCard"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
23
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.8", type: KvInstructionPageComponent, isStandalone: true, selector: "kv-instruction-page", inputs: { actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, camposObrigatorios: { classPropertyName: "camposObrigatorios", publicName: "camposObrigatorios", isSignal: true, isRequired: false, transformFunction: null }, whiteCard: { classPropertyName: "whiteCard", publicName: "whiteCard", isSignal: true, isRequired: false, transformFunction: null }, blackCard: { classPropertyName: "blackCard", publicName: "blackCard", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"h-full flex flex-column overflow-hidden\">\r\n <div class=\"flex-1 min-h-0 flex flex-row p-2 gap-2\">\r\n <div\r\n class=\"h-full max-h-full overflow-y-auto w-12 lg:{{\r\n sizeContent()\r\n }} relative\"\r\n >\r\n @if (this.whiteCard() || this.blackCard()) {\r\n <kv-button\r\n [severity]=\"'secondary'\"\r\n [type]=\"'text'\"\r\n [size]=\"'large'\"\r\n [icon]=\"'quick_reference'\"\r\n class=\"block lg:hidden absolute top-0 right-0 pt-1 pr-1\"\r\n (onClick)=\"verIntrucoes = true\"\r\n >\r\n </kv-button>\r\n }\r\n\r\n <ng-content select=\"[main-content]\"></ng-content>\r\n </div>\r\n\r\n <div\r\n class=\"hidden lg:block w-3 h-full\"\r\n [class.none]=\"!whiteCard() && !blackCard()\"\r\n >\r\n <kv-cards-instruction\r\n [whiteCard]=\"whiteCard()\"\r\n [blackCard]=\"blackCard()\"\r\n >\r\n <div white-card-content class=\"h-full\">\r\n <ng-content select=\"[white-card-content]\"></ng-content>\r\n </div>\r\n <div black-card-content class=\"h-full\">\r\n <ng-content select=\"[black-card-content]\"></ng-content>\r\n </div>\r\n </kv-cards-instruction>\r\n </div>\r\n </div>\r\n\r\n @if (actions().length > 0) {\r\n <div\r\n class=\"flex-initial flex-none flex flex-row justify-content-{{\r\n camposObrigatorios() ? 'between' : 'end'\r\n }} align-items-center p-2\"\r\n >\r\n @if (camposObrigatorios()) {\r\n <span class=\"text-xs text-red-500 font-semibold\">* Preenchimento obrigat\u00F3rio</span>\r\n }\r\n\r\n <div class=\"flex flex-row justify-content-end gap-2\">\r\n @for (action of actions().slice().reverse(); track action.index) {\r\n <kv-button\r\n [label]=\"action.label || ''\"\r\n [severity]=\"action.severity || 'tertiary'\"\r\n [disabled]=\"action.disabled || false\"\r\n [type]=\"action.type\"\r\n [size]=\"action.size || 'small'\"\r\n [icon]=\"action.icon || ''\"\r\n [iconPosition]=\"action.iconPosition || 'left'\"\r\n [items]=\"action.items || []\"\r\n [popup]=\"action.popup || false\"\r\n [popupIcon]=\"action.popupIcon || false\"\r\n [fullWidth]=\"action.fullWidth || false\"\r\n (onClick)=\"action?.command($event)\"\r\n ></kv-button>\r\n }\r\n </div>\r\n </div>\r\n }\r\n</div>\r\n\r\n<p-sidebar\r\n [(visible)]=\"verIntrucoes\"\r\n position=\"right\"\r\n appendTo=\"body\"\r\n [showCloseIcon]=\"true\"\r\n styleClass=\"w-30rem\"\r\n>\r\n <kv-cards-instruction [whiteCard]=\"whiteCard()\" [blackCard]=\"blackCard()\">\r\n <div white-card-content>\r\n <ng-content select=\"[white-card-content]\"></ng-content>\r\n </div>\r\n <div black-card-content>\r\n <ng-content select=\"[black-card-content]\"></ng-content>\r\n </div>\r\n </kv-cards-instruction>\r\n</p-sidebar>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: KvButtonModule }, { kind: "component", type: i1.KvButtonComponent, selector: "kv-button", inputs: ["fullWidth", "type", "loading", "severity", "size", "icon", "iconPosition", "label", "disabled", "items", "popup", "popupIcon"], outputs: ["iconChange", "onClick"] }, { kind: "ngmodule", type: DividerModule }, { kind: "component", type: KvCardsInstructionComponent, selector: "kv-cards-instruction", inputs: ["whiteCard", "blackCard"] }, { kind: "ngmodule", type: SidebarModule }, { kind: "component", type: i2.Sidebar, selector: "p-sidebar", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen"], outputs: ["onShow", "onHide", "visibleChange"] }] }); }
67
24
  }
68
25
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvInstructionPageComponent, decorators: [{
69
26
  type: Component,
70
- args: [{ selector: 'kv-instruction-page', standalone: true, imports: [KvButtonModule, DividerModule, KvCardsInstructionComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"h-full flex flex-column overflow-hidden relative\">\r\n <div class=\"flex-1 min-h-0 flex flex-row p-2 justify-content-between relative overflow-hidden\">\r\n <!-- Main Content Container -->\r\n <div class=\"h-full max-h-full transition-all duration-300 ease-in-out overflow-y-auto flex-shrink-0\"\r\n [style.width]=\"mainContentWidth()\" [class.opacity-0]=\"isMobile() && isPanelExpanded()\">\r\n <ng-content select=\"[main-content]\"></ng-content>\r\n </div>\r\n\r\n <!-- Instruction Page Panel (Side) -->\r\n <div class=\"h-full transition-all duration-300 ease-in-out flex-shrink-0 overflow-y-auto\"\r\n [style.width]=\"panelWidth()\" [class.opacity-0]=\"!isPanelExpanded()\">\r\n <kv-cards-instruction [whiteCard]=\"whiteCard()\" [blackCard]=\"blackCard()\" class=\"block w-full h-full\">\r\n <div white-card-content class=\"h-full\">\r\n <ng-content select=\"[white-card-content]\"></ng-content>\r\n </div>\r\n <div black-card-content class=\"h-full\">\r\n <ng-content select=\"[black-card-content]\"></ng-content>\r\n </div>\r\n </kv-cards-instruction>\r\n </div>\r\n\r\n <!-- Floating Toggle Button -->\r\n @if (whiteCard() || blackCard()) {\r\n <kv-button [severity]=\"'secondary'\" [size]=\"'large'\" [type]=\"isPanelExpanded() ? 'text' : undefined\"\r\n [icon]=\"isPanelExpanded() ? 'close' : 'quick_reference'\"\r\n class=\"absolute z-50 transition-all duration-300 ease-in-out bg-white inline-flex border-round\"\r\n [style.top]=\"'1rem'\" [style.right]=\"'1rem'\" (onClick)=\"togglePanel()\">\r\n </kv-button>\r\n }\r\n </div>\r\n\r\n @if (actions().length > 0) {\r\n <div class=\"flex-initial flex-none flex flex-row justify-content-{{\r\n camposObrigatorios() ? 'between' : 'end'\r\n }} align-items-center p-2\">\r\n @if (camposObrigatorios()) {\r\n <span class=\"text-xs text-red-500 font-semibold\">* Preenchimento obrigat\u00F3rio</span>\r\n }\r\n\r\n <div class=\"flex flex-row justify-content-end gap-2\">\r\n @for (action of actions().slice().reverse(); track action.index) {\r\n <kv-button [label]=\"action.label || ''\" [severity]=\"action.severity || 'tertiary'\"\r\n [disabled]=\"action.disabled || false\" [type]=\"action.type\" [size]=\"action.size || 'small'\"\r\n [icon]=\"action.icon || ''\" [iconPosition]=\"action.iconPosition || 'left'\" [items]=\"action.items || []\"\r\n [popup]=\"action.popup || false\" [popupIcon]=\"action.popupIcon || false\" [fullWidth]=\"action.fullWidth || false\"\r\n (onClick)=\"action?.command($event)\"></kv-button>\r\n }\r\n </div>\r\n </div>\r\n }\r\n</div>" }]
71
- }], propDecorators: { onResize: [{
72
- type: HostListener,
73
- args: ['window:resize']
74
- }] } });
75
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia3YtaW5zdHJ1Y3Rpb24tcGFnZS5jb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WN0aW9uLnR5cGVcIiBbc2l6ZV09XCJhY3Rpb24uc2l6ZSB8fCAnc21hbGwnXCJcclxuICAgICAgICBbaWNvbl09XCJhY3Rpb24uaWNvbiB8fCAnJ1wiIFtpY29uUG9zaXRpb25dPVwiYWN0aW9uLmljb25Qb3NpdGlvbiB8fCAnbGVmdCdcIiBbaXRlbXNdPVwiYWN0aW9uLml0ZW1zIHx8IFtdXCJcclxuICAgICAgICBbcG9wdXBdPVwiYWN0aW9uLnBvcHVwIHx8IGZhbHNlXCIgW3BvcHVwSWNvbl09XCJhY3Rpb24ucG9wdXBJY29uIHx8IGZhbHNlXCIgW2Z1bGxXaWR0aF09XCJhY3Rpb24uZnVsbFdpZHRoIHx8IGZhbHNlXCJcclxuICAgICAgICAob25DbGljayk9XCJhY3Rpb24/LmNvbW1hbmQoJGV2ZW50KVwiPjwva3YtYnV0dG9uPlxyXG4gICAgICB9XHJcbiAgICA8L2Rpdj5cclxuICA8L2Rpdj5cclxuICB9XHJcbjwvZGl2PiJdfQ==
27
+ args: [{ selector: 'kv-instruction-page', standalone: true, imports: [KvButtonModule, DividerModule, KvCardsInstructionComponent, SidebarModule], template: "<div class=\"h-full flex flex-column overflow-hidden\">\r\n <div class=\"flex-1 min-h-0 flex flex-row p-2 gap-2\">\r\n <div\r\n class=\"h-full max-h-full overflow-y-auto w-12 lg:{{\r\n sizeContent()\r\n }} relative\"\r\n >\r\n @if (this.whiteCard() || this.blackCard()) {\r\n <kv-button\r\n [severity]=\"'secondary'\"\r\n [type]=\"'text'\"\r\n [size]=\"'large'\"\r\n [icon]=\"'quick_reference'\"\r\n class=\"block lg:hidden absolute top-0 right-0 pt-1 pr-1\"\r\n (onClick)=\"verIntrucoes = true\"\r\n >\r\n </kv-button>\r\n }\r\n\r\n <ng-content select=\"[main-content]\"></ng-content>\r\n </div>\r\n\r\n <div\r\n class=\"hidden lg:block w-3 h-full\"\r\n [class.none]=\"!whiteCard() && !blackCard()\"\r\n >\r\n <kv-cards-instruction\r\n [whiteCard]=\"whiteCard()\"\r\n [blackCard]=\"blackCard()\"\r\n >\r\n <div white-card-content class=\"h-full\">\r\n <ng-content select=\"[white-card-content]\"></ng-content>\r\n </div>\r\n <div black-card-content class=\"h-full\">\r\n <ng-content select=\"[black-card-content]\"></ng-content>\r\n </div>\r\n </kv-cards-instruction>\r\n </div>\r\n </div>\r\n\r\n @if (actions().length > 0) {\r\n <div\r\n class=\"flex-initial flex-none flex flex-row justify-content-{{\r\n camposObrigatorios() ? 'between' : 'end'\r\n }} align-items-center p-2\"\r\n >\r\n @if (camposObrigatorios()) {\r\n <span class=\"text-xs text-red-500 font-semibold\">* Preenchimento obrigat\u00F3rio</span>\r\n }\r\n\r\n <div class=\"flex flex-row justify-content-end gap-2\">\r\n @for (action of actions().slice().reverse(); track action.index) {\r\n <kv-button\r\n [label]=\"action.label || ''\"\r\n [severity]=\"action.severity || 'tertiary'\"\r\n [disabled]=\"action.disabled || false\"\r\n [type]=\"action.type\"\r\n [size]=\"action.size || 'small'\"\r\n [icon]=\"action.icon || ''\"\r\n [iconPosition]=\"action.iconPosition || 'left'\"\r\n [items]=\"action.items || []\"\r\n [popup]=\"action.popup || false\"\r\n [popupIcon]=\"action.popupIcon || false\"\r\n [fullWidth]=\"action.fullWidth || false\"\r\n (onClick)=\"action?.command($event)\"\r\n ></kv-button>\r\n }\r\n </div>\r\n </div>\r\n }\r\n</div>\r\n\r\n<p-sidebar\r\n [(visible)]=\"verIntrucoes\"\r\n position=\"right\"\r\n appendTo=\"body\"\r\n [showCloseIcon]=\"true\"\r\n styleClass=\"w-30rem\"\r\n>\r\n <kv-cards-instruction [whiteCard]=\"whiteCard()\" [blackCard]=\"blackCard()\">\r\n <div white-card-content>\r\n <ng-content select=\"[white-card-content]\"></ng-content>\r\n </div>\r\n <div black-card-content>\r\n <ng-content select=\"[black-card-content]\"></ng-content>\r\n </div>\r\n </kv-cards-instruction>\r\n</p-sidebar>\r\n" }]
28
+ }] });
29
+ //# sourceMappingURL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dpZHRoIHx8IGZhbHNlXCJcclxuICAgICAgICAgICAgKG9uQ2xpY2spPVwiYWN0aW9uPy5jb21tYW5kKCRldmVudClcIlxyXG4gICAgICAgICAgPjwva3YtYnV0dG9uPlxyXG4gICAgICAgIH1cclxuICAgICAgPC9kaXY+XHJcbiAgICA8L2Rpdj5cclxuICB9XHJcbjwvZGl2PlxyXG5cclxuPHAtc2lkZWJhclxyXG4gIFsodmlzaWJsZSldPVwidmVySW50cnVjb2VzXCJcclxuICBwb3NpdGlvbj1cInJpZ2h0XCJcclxuICBhcHBlbmRUbz1cImJvZHlcIlxyXG4gIFtzaG93Q2xvc2VJY29uXT1cInRydWVcIlxyXG4gIHN0eWxlQ2xhc3M9XCJ3LTMwcmVtXCJcclxuPlxyXG4gIDxrdi1jYXJkcy1pbnN0cnVjdGlvbiBbd2hpdGVDYXJkXT1cIndoaXRlQ2FyZCgpXCIgW2JsYWNrQ2FyZF09XCJibGFja0NhcmQoKVwiPlxyXG4gICAgPGRpdiB3aGl0ZS1jYXJkLWNvbnRlbnQ+XHJcbiAgICAgIDxuZy1jb250ZW50IHNlbGVjdD1cIlt3aGl0ZS1jYXJkLWNvbnRlbnRdXCI+PC9uZy1jb250ZW50PlxyXG4gICAgPC9kaXY+XHJcbiAgICA8ZGl2IGJsYWNrLWNhcmQtY29udGVudD5cclxuICAgICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiW2JsYWNrLWNhcmQtY29udGVudF1cIj48L25nLWNvbnRlbnQ+XHJcbiAgICA8L2Rpdj5cclxuICA8L2t2LWNhcmRzLWluc3RydWN0aW9uPlxyXG48L3Atc2lkZWJhcj5cclxuIl19
@@ -5143,31 +5143,6 @@ class KvEditorQuillService {
5143
5143
  Quill.register(Font, true);
5144
5144
  Quill.register(Size, true);
5145
5145
  Quill.register(AlignStyle, true);
5146
- // Registra formato customizado para as variáveis inseridas
5147
- const Inline = Quill.import('blots/inline');
5148
- class VariavelBlot extends Inline {
5149
- static { this.blotName = 'variavel'; }
5150
- static { this.tagName = 'span'; }
5151
- static { this.className = 'variavel-inserida'; }
5152
- static create(value) {
5153
- let node = super.create();
5154
- node.setAttribute('class', 'variavel-inserida');
5155
- node.setAttribute('style', 'background-color: #e6f7ff; color: #0066cc; border-radius: 3px; padding: 2px 4px; font-weight: 500;');
5156
- if (typeof value === 'object' && value && value.title) {
5157
- node.setAttribute('title', value.title);
5158
- }
5159
- else if (typeof value === 'string') {
5160
- node.setAttribute('title', value);
5161
- }
5162
- return node;
5163
- }
5164
- static formats(node) {
5165
- return {
5166
- title: node.getAttribute('title') || ''
5167
- };
5168
- }
5169
- }
5170
- Quill.register(VariavelBlot, true);
5171
5146
  }
5172
5147
  /**
5173
5148
  * Cria uma instância do Quill com a configuração fornecida
@@ -5953,54 +5928,6 @@ class KvEditorComponent extends BaseComponentInput {
5953
5928
  return delta;
5954
5929
  }]
5955
5930
  ]
5956
- },
5957
- keyboard: {
5958
- bindings: {
5959
- backspaceVariable: {
5960
- key: 'Backspace',
5961
- collapsed: true,
5962
- handler: (range, context) => {
5963
- if (range.index === 0)
5964
- return true;
5965
- const [leaf] = this.quill.getLeaf(range.index - 1);
5966
- if (leaf && leaf.parent && leaf.parent.statics.blotName === 'variavel') {
5967
- const blotOffset = this.quill.getIndex(leaf.parent);
5968
- const blotLength = leaf.parent.length();
5969
- this.quill.deleteText(blotOffset, blotLength, 'user');
5970
- return false;
5971
- }
5972
- return true;
5973
- }
5974
- },
5975
- deleteVariable: {
5976
- key: 'Delete',
5977
- collapsed: true,
5978
- handler: (range, context) => {
5979
- const [leaf] = this.quill.getLeaf(range.index);
5980
- if (leaf && leaf.parent && leaf.parent.statics.blotName === 'variavel') {
5981
- const blotOffset = this.quill.getIndex(leaf.parent);
5982
- const blotLength = leaf.parent.length();
5983
- this.quill.deleteText(blotOffset, blotLength, 'user');
5984
- return false;
5985
- }
5986
- return true;
5987
- }
5988
- },
5989
- spaceVariable: {
5990
- key: ' ',
5991
- collapsed: true,
5992
- handler: (range, context) => {
5993
- const [leaf] = this.quill.getLeaf(range.index);
5994
- if (leaf && leaf.parent && leaf.parent.statics.blotName === 'variavel') {
5995
- return false;
5996
- }
5997
- if (context.format && context.format.variavel) {
5998
- return false;
5999
- }
6000
- return true;
6001
- }
6002
- }
6003
- }
6004
5931
  }
6005
5932
  },
6006
5933
  placeholder: this.label ? this.label : '',
@@ -14628,70 +14555,22 @@ class KvInstructionPageComponent {
14628
14555
  constructor() {
14629
14556
  this.actions = input([]);
14630
14557
  this.camposObrigatorios = input(false);
14631
- // Define se o painel inicia aberto (true) ou fechado (false). Por padrão é true no desktop.
14632
- this.startExpanded = input(true);
14633
14558
  this.whiteCard = input(undefined);
14634
14559
  this.blackCard = input();
14635
- this.isMobile = signal(false);
14636
- this.userToggledPanel = signal(null);
14637
- this.isPanelExpanded = computed(() => {
14638
- // 1. Respeita a interação manual do usuário primeiro
14639
- const toggled = this.userToggledPanel();
14640
- if (toggled !== null)
14641
- return toggled;
14642
- // 2. Se for mobile, inicia sempre fechado como padrão por UX
14643
- if (this.isMobile())
14644
- return false;
14645
- // 3. Respeita a propriedade (true ou false) definida pelo desenvolvedor na tela via @Input
14646
- return this.startExpanded();
14647
- });
14648
- this.mainContentWidth = computed(() => {
14560
+ this.sizeContent = computed(() => {
14649
14561
  if (!this.whiteCard() && !this.blackCard())
14650
- return '100%';
14651
- const expanded = this.isPanelExpanded();
14652
- const mobile = this.isMobile();
14653
- if (mobile)
14654
- return expanded ? '0%' : '100%';
14655
- return expanded ? 'calc(75% - 0.25rem)' : '100%';
14656
- });
14657
- this.panelWidth = computed(() => {
14658
- if (!this.whiteCard() && !this.blackCard())
14659
- return '0%';
14660
- const expanded = this.isPanelExpanded();
14661
- const mobile = this.isMobile();
14662
- if (mobile)
14663
- return expanded ? '100%' : '0%';
14664
- return expanded ? 'calc(25% - 0.25rem)' : '0%';
14562
+ return 'w-full';
14563
+ return 'w-9';
14665
14564
  });
14666
- }
14667
- ngOnInit() {
14668
- this.checkMobileState();
14669
- }
14670
- onResize() {
14671
- this.checkMobileState();
14672
- }
14673
- checkMobileState() {
14674
- if (typeof window !== 'undefined') {
14675
- const isMob = window.innerWidth < 1024;
14676
- // Atualiza o sinal apenas se houver mudança real, economiza ciclos do Change Detection
14677
- if (this.isMobile() !== isMob) {
14678
- this.isMobile.set(isMob);
14679
- }
14680
- }
14681
- }
14682
- togglePanel() {
14683
- this.userToggledPanel.set(!this.isPanelExpanded());
14565
+ this.verIntrucoes = false;
14684
14566
  }
14685
14567
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvInstructionPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
14686
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.8", type: KvInstructionPageComponent, isStandalone: true, selector: "kv-instruction-page", inputs: { actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, camposObrigatorios: { classPropertyName: "camposObrigatorios", publicName: "camposObrigatorios", isSignal: true, isRequired: false, transformFunction: null }, startExpanded: { classPropertyName: "startExpanded", publicName: "startExpanded", isSignal: true, isRequired: false, transformFunction: null }, whiteCard: { classPropertyName: "whiteCard", publicName: "whiteCard", isSignal: true, isRequired: false, transformFunction: null }, blackCard: { classPropertyName: "blackCard", publicName: "blackCard", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "window:resize": "onResize()" } }, ngImport: i0, template: "<div class=\"h-full flex flex-column overflow-hidden relative\">\r\n <div class=\"flex-1 min-h-0 flex flex-row p-2 justify-content-between relative overflow-hidden\">\r\n <!-- Main Content Container -->\r\n <div class=\"h-full max-h-full transition-all duration-300 ease-in-out overflow-y-auto flex-shrink-0\"\r\n [style.width]=\"mainContentWidth()\" [class.opacity-0]=\"isMobile() && isPanelExpanded()\">\r\n <ng-content select=\"[main-content]\"></ng-content>\r\n </div>\r\n\r\n <!-- Instruction Page Panel (Side) -->\r\n <div class=\"h-full transition-all duration-300 ease-in-out flex-shrink-0 overflow-y-auto\"\r\n [style.width]=\"panelWidth()\" [class.opacity-0]=\"!isPanelExpanded()\">\r\n <kv-cards-instruction [whiteCard]=\"whiteCard()\" [blackCard]=\"blackCard()\" class=\"block w-full h-full\">\r\n <div white-card-content class=\"h-full\">\r\n <ng-content select=\"[white-card-content]\"></ng-content>\r\n </div>\r\n <div black-card-content class=\"h-full\">\r\n <ng-content select=\"[black-card-content]\"></ng-content>\r\n </div>\r\n </kv-cards-instruction>\r\n </div>\r\n\r\n <!-- Floating Toggle Button -->\r\n @if (whiteCard() || blackCard()) {\r\n <kv-button [severity]=\"'secondary'\" [size]=\"'large'\" [type]=\"isPanelExpanded() ? 'text' : undefined\"\r\n [icon]=\"isPanelExpanded() ? 'close' : 'quick_reference'\"\r\n class=\"absolute z-50 transition-all duration-300 ease-in-out bg-white inline-flex border-round\"\r\n [style.top]=\"'1rem'\" [style.right]=\"'1rem'\" (onClick)=\"togglePanel()\">\r\n </kv-button>\r\n }\r\n </div>\r\n\r\n @if (actions().length > 0) {\r\n <div class=\"flex-initial flex-none flex flex-row justify-content-{{\r\n camposObrigatorios() ? 'between' : 'end'\r\n }} align-items-center p-2\">\r\n @if (camposObrigatorios()) {\r\n <span class=\"text-xs text-red-500 font-semibold\">* Preenchimento obrigat\u00F3rio</span>\r\n }\r\n\r\n <div class=\"flex flex-row justify-content-end gap-2\">\r\n @for (action of actions().slice().reverse(); track action.index) {\r\n <kv-button [label]=\"action.label || ''\" [severity]=\"action.severity || 'tertiary'\"\r\n [disabled]=\"action.disabled || false\" [type]=\"action.type\" [size]=\"action.size || 'small'\"\r\n [icon]=\"action.icon || ''\" [iconPosition]=\"action.iconPosition || 'left'\" [items]=\"action.items || []\"\r\n [popup]=\"action.popup || false\" [popupIcon]=\"action.popupIcon || false\" [fullWidth]=\"action.fullWidth || false\"\r\n (onClick)=\"action?.command($event)\"></kv-button>\r\n }\r\n </div>\r\n </div>\r\n }\r\n</div>", styles: [""], dependencies: [{ kind: "ngmodule", type: KvButtonModule }, { kind: "component", type: KvButtonComponent, selector: "kv-button", inputs: ["fullWidth", "type", "loading", "severity", "size", "icon", "iconPosition", "label", "disabled", "items", "popup", "popupIcon"], outputs: ["iconChange", "onClick"] }, { kind: "ngmodule", type: DividerModule }, { kind: "component", type: KvCardsInstructionComponent, selector: "kv-cards-instruction", inputs: ["whiteCard", "blackCard"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
14568
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.8", type: KvInstructionPageComponent, isStandalone: true, selector: "kv-instruction-page", inputs: { actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, camposObrigatorios: { classPropertyName: "camposObrigatorios", publicName: "camposObrigatorios", isSignal: true, isRequired: false, transformFunction: null }, whiteCard: { classPropertyName: "whiteCard", publicName: "whiteCard", isSignal: true, isRequired: false, transformFunction: null }, blackCard: { classPropertyName: "blackCard", publicName: "blackCard", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"h-full flex flex-column overflow-hidden\">\r\n <div class=\"flex-1 min-h-0 flex flex-row p-2 gap-2\">\r\n <div\r\n class=\"h-full max-h-full overflow-y-auto w-12 lg:{{\r\n sizeContent()\r\n }} relative\"\r\n >\r\n @if (this.whiteCard() || this.blackCard()) {\r\n <kv-button\r\n [severity]=\"'secondary'\"\r\n [type]=\"'text'\"\r\n [size]=\"'large'\"\r\n [icon]=\"'quick_reference'\"\r\n class=\"block lg:hidden absolute top-0 right-0 pt-1 pr-1\"\r\n (onClick)=\"verIntrucoes = true\"\r\n >\r\n </kv-button>\r\n }\r\n\r\n <ng-content select=\"[main-content]\"></ng-content>\r\n </div>\r\n\r\n <div\r\n class=\"hidden lg:block w-3 h-full\"\r\n [class.none]=\"!whiteCard() && !blackCard()\"\r\n >\r\n <kv-cards-instruction\r\n [whiteCard]=\"whiteCard()\"\r\n [blackCard]=\"blackCard()\"\r\n >\r\n <div white-card-content class=\"h-full\">\r\n <ng-content select=\"[white-card-content]\"></ng-content>\r\n </div>\r\n <div black-card-content class=\"h-full\">\r\n <ng-content select=\"[black-card-content]\"></ng-content>\r\n </div>\r\n </kv-cards-instruction>\r\n </div>\r\n </div>\r\n\r\n @if (actions().length > 0) {\r\n <div\r\n class=\"flex-initial flex-none flex flex-row justify-content-{{\r\n camposObrigatorios() ? 'between' : 'end'\r\n }} align-items-center p-2\"\r\n >\r\n @if (camposObrigatorios()) {\r\n <span class=\"text-xs text-red-500 font-semibold\">* Preenchimento obrigat\u00F3rio</span>\r\n }\r\n\r\n <div class=\"flex flex-row justify-content-end gap-2\">\r\n @for (action of actions().slice().reverse(); track action.index) {\r\n <kv-button\r\n [label]=\"action.label || ''\"\r\n [severity]=\"action.severity || 'tertiary'\"\r\n [disabled]=\"action.disabled || false\"\r\n [type]=\"action.type\"\r\n [size]=\"action.size || 'small'\"\r\n [icon]=\"action.icon || ''\"\r\n [iconPosition]=\"action.iconPosition || 'left'\"\r\n [items]=\"action.items || []\"\r\n [popup]=\"action.popup || false\"\r\n [popupIcon]=\"action.popupIcon || false\"\r\n [fullWidth]=\"action.fullWidth || false\"\r\n (onClick)=\"action?.command($event)\"\r\n ></kv-button>\r\n }\r\n </div>\r\n </div>\r\n }\r\n</div>\r\n\r\n<p-sidebar\r\n [(visible)]=\"verIntrucoes\"\r\n position=\"right\"\r\n appendTo=\"body\"\r\n [showCloseIcon]=\"true\"\r\n styleClass=\"w-30rem\"\r\n>\r\n <kv-cards-instruction [whiteCard]=\"whiteCard()\" [blackCard]=\"blackCard()\">\r\n <div white-card-content>\r\n <ng-content select=\"[white-card-content]\"></ng-content>\r\n </div>\r\n <div black-card-content>\r\n <ng-content select=\"[black-card-content]\"></ng-content>\r\n </div>\r\n </kv-cards-instruction>\r\n</p-sidebar>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: KvButtonModule }, { kind: "component", type: KvButtonComponent, selector: "kv-button", inputs: ["fullWidth", "type", "loading", "severity", "size", "icon", "iconPosition", "label", "disabled", "items", "popup", "popupIcon"], outputs: ["iconChange", "onClick"] }, { kind: "ngmodule", type: DividerModule }, { kind: "component", type: KvCardsInstructionComponent, selector: "kv-cards-instruction", inputs: ["whiteCard", "blackCard"] }, { kind: "ngmodule", type: SidebarModule }, { kind: "component", type: i10$1.Sidebar, selector: "p-sidebar", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen"], outputs: ["onShow", "onHide", "visibleChange"] }] }); }
14687
14569
  }
14688
14570
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KvInstructionPageComponent, decorators: [{
14689
14571
  type: Component,
14690
- args: [{ selector: 'kv-instruction-page', standalone: true, imports: [KvButtonModule, DividerModule, KvCardsInstructionComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"h-full flex flex-column overflow-hidden relative\">\r\n <div class=\"flex-1 min-h-0 flex flex-row p-2 justify-content-between relative overflow-hidden\">\r\n <!-- Main Content Container -->\r\n <div class=\"h-full max-h-full transition-all duration-300 ease-in-out overflow-y-auto flex-shrink-0\"\r\n [style.width]=\"mainContentWidth()\" [class.opacity-0]=\"isMobile() && isPanelExpanded()\">\r\n <ng-content select=\"[main-content]\"></ng-content>\r\n </div>\r\n\r\n <!-- Instruction Page Panel (Side) -->\r\n <div class=\"h-full transition-all duration-300 ease-in-out flex-shrink-0 overflow-y-auto\"\r\n [style.width]=\"panelWidth()\" [class.opacity-0]=\"!isPanelExpanded()\">\r\n <kv-cards-instruction [whiteCard]=\"whiteCard()\" [blackCard]=\"blackCard()\" class=\"block w-full h-full\">\r\n <div white-card-content class=\"h-full\">\r\n <ng-content select=\"[white-card-content]\"></ng-content>\r\n </div>\r\n <div black-card-content class=\"h-full\">\r\n <ng-content select=\"[black-card-content]\"></ng-content>\r\n </div>\r\n </kv-cards-instruction>\r\n </div>\r\n\r\n <!-- Floating Toggle Button -->\r\n @if (whiteCard() || blackCard()) {\r\n <kv-button [severity]=\"'secondary'\" [size]=\"'large'\" [type]=\"isPanelExpanded() ? 'text' : undefined\"\r\n [icon]=\"isPanelExpanded() ? 'close' : 'quick_reference'\"\r\n class=\"absolute z-50 transition-all duration-300 ease-in-out bg-white inline-flex border-round\"\r\n [style.top]=\"'1rem'\" [style.right]=\"'1rem'\" (onClick)=\"togglePanel()\">\r\n </kv-button>\r\n }\r\n </div>\r\n\r\n @if (actions().length > 0) {\r\n <div class=\"flex-initial flex-none flex flex-row justify-content-{{\r\n camposObrigatorios() ? 'between' : 'end'\r\n }} align-items-center p-2\">\r\n @if (camposObrigatorios()) {\r\n <span class=\"text-xs text-red-500 font-semibold\">* Preenchimento obrigat\u00F3rio</span>\r\n }\r\n\r\n <div class=\"flex flex-row justify-content-end gap-2\">\r\n @for (action of actions().slice().reverse(); track action.index) {\r\n <kv-button [label]=\"action.label || ''\" [severity]=\"action.severity || 'tertiary'\"\r\n [disabled]=\"action.disabled || false\" [type]=\"action.type\" [size]=\"action.size || 'small'\"\r\n [icon]=\"action.icon || ''\" [iconPosition]=\"action.iconPosition || 'left'\" [items]=\"action.items || []\"\r\n [popup]=\"action.popup || false\" [popupIcon]=\"action.popupIcon || false\" [fullWidth]=\"action.fullWidth || false\"\r\n (onClick)=\"action?.command($event)\"></kv-button>\r\n }\r\n </div>\r\n </div>\r\n }\r\n</div>" }]
14691
- }], propDecorators: { onResize: [{
14692
- type: HostListener,
14693
- args: ['window:resize']
14694
- }] } });
14572
+ args: [{ selector: 'kv-instruction-page', standalone: true, imports: [KvButtonModule, DividerModule, KvCardsInstructionComponent, SidebarModule], template: "<div class=\"h-full flex flex-column overflow-hidden\">\r\n <div class=\"flex-1 min-h-0 flex flex-row p-2 gap-2\">\r\n <div\r\n class=\"h-full max-h-full overflow-y-auto w-12 lg:{{\r\n sizeContent()\r\n }} relative\"\r\n >\r\n @if (this.whiteCard() || this.blackCard()) {\r\n <kv-button\r\n [severity]=\"'secondary'\"\r\n [type]=\"'text'\"\r\n [size]=\"'large'\"\r\n [icon]=\"'quick_reference'\"\r\n class=\"block lg:hidden absolute top-0 right-0 pt-1 pr-1\"\r\n (onClick)=\"verIntrucoes = true\"\r\n >\r\n </kv-button>\r\n }\r\n\r\n <ng-content select=\"[main-content]\"></ng-content>\r\n </div>\r\n\r\n <div\r\n class=\"hidden lg:block w-3 h-full\"\r\n [class.none]=\"!whiteCard() && !blackCard()\"\r\n >\r\n <kv-cards-instruction\r\n [whiteCard]=\"whiteCard()\"\r\n [blackCard]=\"blackCard()\"\r\n >\r\n <div white-card-content class=\"h-full\">\r\n <ng-content select=\"[white-card-content]\"></ng-content>\r\n </div>\r\n <div black-card-content class=\"h-full\">\r\n <ng-content select=\"[black-card-content]\"></ng-content>\r\n </div>\r\n </kv-cards-instruction>\r\n </div>\r\n </div>\r\n\r\n @if (actions().length > 0) {\r\n <div\r\n class=\"flex-initial flex-none flex flex-row justify-content-{{\r\n camposObrigatorios() ? 'between' : 'end'\r\n }} align-items-center p-2\"\r\n >\r\n @if (camposObrigatorios()) {\r\n <span class=\"text-xs text-red-500 font-semibold\">* Preenchimento obrigat\u00F3rio</span>\r\n }\r\n\r\n <div class=\"flex flex-row justify-content-end gap-2\">\r\n @for (action of actions().slice().reverse(); track action.index) {\r\n <kv-button\r\n [label]=\"action.label || ''\"\r\n [severity]=\"action.severity || 'tertiary'\"\r\n [disabled]=\"action.disabled || false\"\r\n [type]=\"action.type\"\r\n [size]=\"action.size || 'small'\"\r\n [icon]=\"action.icon || ''\"\r\n [iconPosition]=\"action.iconPosition || 'left'\"\r\n [items]=\"action.items || []\"\r\n [popup]=\"action.popup || false\"\r\n [popupIcon]=\"action.popupIcon || false\"\r\n [fullWidth]=\"action.fullWidth || false\"\r\n (onClick)=\"action?.command($event)\"\r\n ></kv-button>\r\n }\r\n </div>\r\n </div>\r\n }\r\n</div>\r\n\r\n<p-sidebar\r\n [(visible)]=\"verIntrucoes\"\r\n position=\"right\"\r\n appendTo=\"body\"\r\n [showCloseIcon]=\"true\"\r\n styleClass=\"w-30rem\"\r\n>\r\n <kv-cards-instruction [whiteCard]=\"whiteCard()\" [blackCard]=\"blackCard()\">\r\n <div white-card-content>\r\n <ng-content select=\"[white-card-content]\"></ng-content>\r\n </div>\r\n <div black-card-content>\r\n <ng-content select=\"[black-card-content]\"></ng-content>\r\n </div>\r\n </kv-cards-instruction>\r\n</p-sidebar>\r\n" }]
14573
+ }] });
14695
14574
 
14696
14575
  class KvChipsComponent {
14697
14576
  constructor() {