@kubex/zinc 1.0.9 → 1.0.11

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 (29) hide show
  1. package/dist/custom-elements.json +282 -83
  2. package/dist/vscode.html-custom-data.json +25 -13
  3. package/dist/web-types.json +84 -27
  4. package/dist/zn.d.ts +40 -2
  5. package/dist/zn.min.js +260 -243
  6. package/docs/pages/components/dropdown.md +6 -1
  7. package/docs/pages/components/table.md +1 -1
  8. package/package.json +1 -1
  9. package/src/components/button-menu/button-menu.component.ts +1 -0
  10. package/src/components/editor/editor.component.ts +110 -55
  11. package/src/components/editor/modules/context-menu/context-menu-component.ts +1 -0
  12. package/src/components/editor/modules/context-menu/context-menu.scss +1 -1
  13. package/src/components/editor/modules/context-menu/context-menu.ts +58 -26
  14. package/src/components/editor/modules/context-menu/quick-action/quick-action.component.ts +1 -0
  15. package/src/components/editor/modules/toolbar/toolbar.component.ts +61 -33
  16. package/src/components/editor/modules/toolbar/toolbar.ts +19 -4
  17. package/src/components/header/header.scss +1 -0
  18. package/src/components/menu/menu.component.ts +2 -1
  19. package/src/components/menu-item/menu-item.component.ts +4 -0
  20. package/src/components/note/note.component.ts +2 -25
  21. package/src/components/note/note.scss +0 -7
  22. package/src/components/order-table/order-table.scss +16 -10
  23. package/src/components/panel/panel.component.ts +4 -2
  24. package/src/components/panel/panel.scss +4 -0
  25. package/src/components/popup/popup.component.ts +11 -21
  26. package/src/components/settings-container/settings-container.component.ts +21 -15
  27. package/src/components/settings-container/settings-container.scss +5 -4
  28. package/src/components/tooltip/tooltip.component.ts +7 -7
  29. package/src/zinc.ts +7 -1
package/dist/zn.d.ts CHANGED
@@ -575,6 +575,7 @@ declare module "components/menu-item/menu-item.component" {
575
575
  dataTarget: 'modal' | 'slide' | string;
576
576
  rel: string;
577
577
  gaid: string;
578
+ confirm: boolean;
578
579
  private readonly localize;
579
580
  private readonly hasSlotController;
580
581
  private submenuController;
@@ -2848,7 +2849,6 @@ declare module "components/note/note.component" {
2848
2849
  body: string;
2849
2850
  collapseAtLines: number;
2850
2851
  private expanded;
2851
- private _isOverflowing;
2852
2852
  private _toggleExpand;
2853
2853
  private _measureOverflow;
2854
2854
  protected firstUpdated(): void;
@@ -3489,6 +3489,7 @@ declare module "components/panel/panel.component" {
3489
3489
  flushY: boolean;
3490
3490
  flushFooter: boolean;
3491
3491
  transparent: boolean;
3492
+ shadow: boolean;
3492
3493
  protected firstUpdated(_changedProperties: PropertyValues): void;
3493
3494
  connectedCallback(): void;
3494
3495
  protected render(): unknown;
@@ -4170,6 +4171,7 @@ declare module "components/editor/modules/toolbar/tool/index" {
4170
4171
  declare module "components/editor/modules/toolbar/toolbar.component" {
4171
4172
  import { type CSSResultGroup, type PropertyValues } from "lit";
4172
4173
  import ZincElement from "internal/zinc-element";
4174
+ import type { EditorFeatureConfig } from "components/editor/editor.component";
4173
4175
  export default class ToolbarComponent extends ZincElement {
4174
4176
  static styles: CSSResultGroup;
4175
4177
  containerWidth: number;
@@ -4177,6 +4179,7 @@ declare module "components/editor/modules/toolbar/toolbar.component" {
4177
4179
  private _groups;
4178
4180
  private _overflowMenu;
4179
4181
  private _overflowGroup;
4182
+ private _featureConfig;
4180
4183
  private _resizeObserver;
4181
4184
  private _resizeId;
4182
4185
  private _movedContent;
@@ -4184,6 +4187,7 @@ declare module "components/editor/modules/toolbar/toolbar.component" {
4184
4187
  disconnectedCallback(): void;
4185
4188
  protected firstUpdated(_changedProperties: PropertyValues): void;
4186
4189
  handleResize: () => void;
4190
+ configureToolbar(config: EditorFeatureConfig): void;
4187
4191
  private getToolbarWidth;
4188
4192
  private getOverflowGroupWidth;
4189
4193
  private restoreMovedContent;
@@ -4255,6 +4259,7 @@ declare module "components/editor/modules/toolbar/toolbar" {
4255
4259
  import "components/editor/modules/toolbar/toolbar.component";
4256
4260
  import Quill from "quill";
4257
4261
  import QuillToolbar from "quill/modules/toolbar";
4262
+ import type { EditorFeatureConfig } from "components/editor/editor.component";
4258
4263
  import type ToolbarComponent from "components/editor/modules/toolbar/toolbar.component";
4259
4264
  class Toolbar extends QuillToolbar {
4260
4265
  private readonly _quill;
@@ -4264,6 +4269,7 @@ declare module "components/editor/modules/toolbar/toolbar" {
4264
4269
  constructor(quill: Quill, options: {
4265
4270
  container: ToolbarComponent;
4266
4271
  handlers?: Record<string, (value?: any) => void>;
4272
+ config?: EditorFeatureConfig;
4267
4273
  });
4268
4274
  callFormat(key: string, value?: string | boolean | undefined): void;
4269
4275
  trigger(key: string): void;
@@ -4325,6 +4331,7 @@ declare module "components/editor/modules/context-menu/context-menu-component" {
4325
4331
  format?: string;
4326
4332
  key?: string;
4327
4333
  value?: string | boolean;
4334
+ order?: number;
4328
4335
  }
4329
4336
  export default class ContextMenuComponent extends ZincElement {
4330
4337
  static styles: CSSResultGroup;
@@ -4350,6 +4357,7 @@ declare module "components/editor/modules/context-menu/quick-action/quick-action
4350
4357
  content: string;
4351
4358
  key: string;
4352
4359
  icon: string;
4360
+ order?: number | null;
4353
4361
  render(): import("lit").TemplateResult<1>;
4354
4362
  }
4355
4363
  }
@@ -4366,6 +4374,7 @@ declare module "components/editor/modules/context-menu/quick-action/index" {
4366
4374
  declare module "components/editor/modules/context-menu/context-menu" {
4367
4375
  import "components/editor/modules/context-menu/context-menu-component";
4368
4376
  import Quill from "quill";
4377
+ import type { EditorFeatureConfig } from "components/editor/editor.component";
4369
4378
  class ContextMenu {
4370
4379
  private _quill;
4371
4380
  private readonly _toolbarModule;
@@ -4373,7 +4382,10 @@ declare module "components/editor/modules/context-menu/context-menu" {
4373
4382
  private _startIndex;
4374
4383
  private _keydownHandler;
4375
4384
  private _docClickHandler;
4376
- constructor(quill: Quill);
4385
+ private _featureConfig;
4386
+ constructor(quill: Quill, options: {
4387
+ config: EditorFeatureConfig;
4388
+ });
4377
4389
  private initComponent;
4378
4390
  private attachEvents;
4379
4391
  private createComponent;
@@ -4740,6 +4752,17 @@ declare module "components/editor/editor.component" {
4740
4752
  import { type CSSResultGroup, type PropertyValues } from 'lit';
4741
4753
  import ZincElement from "internal/zinc-element";
4742
4754
  import type { ZincFormControl } from "internal/zinc-element";
4755
+ export interface EditorFeatureConfig {
4756
+ codeBlocksEnabled?: boolean;
4757
+ dividersEnabled?: boolean;
4758
+ linksEnabled?: boolean;
4759
+ attachmentsEnabled?: boolean;
4760
+ imagesEnabled?: boolean;
4761
+ videosEnabled?: boolean;
4762
+ datesEnabled?: boolean;
4763
+ emojisEnabled?: boolean;
4764
+ codeEnabled?: boolean;
4765
+ }
4743
4766
  /**
4744
4767
  * @summary Short summary of the component's intended use.
4745
4768
  * @documentation https://zinc.style/components/editor
@@ -4768,6 +4791,16 @@ declare module "components/editor/editor.component" {
4768
4791
  value: string;
4769
4792
  interactionType: 'ticket' | 'chat';
4770
4793
  uploadAttachmentUrl: string;
4794
+ codeBlocksEnabled: boolean;
4795
+ dividersEnabled: boolean;
4796
+ linksEnabled: boolean;
4797
+ attachmentsEnabled: boolean;
4798
+ imagesEnabled: boolean;
4799
+ videosEnabled: boolean;
4800
+ datesEnabled: boolean;
4801
+ emojisEnabled: boolean;
4802
+ codeEnabled: boolean;
4803
+ aiEnabled: boolean;
4771
4804
  aiPath: string;
4772
4805
  private quillElement;
4773
4806
  private _content;
@@ -6402,6 +6435,7 @@ declare module "components/settings-container/settings-container.component" {
6402
6435
  updateFilters(): void;
6403
6436
  updateFilter(e: ZnChangeEvent): void;
6404
6437
  render(): import("lit").TemplateResult<1>;
6438
+ private getDropdownContent;
6405
6439
  }
6406
6440
  }
6407
6441
  declare module "components/settings-container/index" {
@@ -6553,6 +6587,10 @@ declare module "zinc" {
6553
6587
  export { default as ContentBlock } from "components/content-block/index";
6554
6588
  export { default as FilterWrapper } from "components/filter-wrapper/index";
6555
6589
  export { default as SettingsContainer } from "components/settings-container/index";
6590
+ export * from "internal/zinc-element";
6591
+ export * from "utilities/on";
6592
+ export * from "utilities/query";
6593
+ export * from "utilities/lit-to-html";
6556
6594
  export * from "events/events";
6557
6595
  }
6558
6596
  declare module "components/editor/modules/events/zn-command-select" {