@kubex/zinc 1.1.11 → 1.1.13

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,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@kubex/zinc",
4
- "version": "1.1.11",
4
+ "version": "1.1.13",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -633,6 +633,241 @@
633
633
  "events": []
634
634
  }
635
635
  },
636
+ {
637
+ "name": "zn-channel-tile",
638
+ "description": "A channel/queue slot tile with two faces: an active (occupied) state\nshowing an in-progress item, and an available (empty) state advertising\ncapacity — optionally reserving an incoming item with an auto-accept countdown.\n---\n\n\n### **Events:**\n - **zn-accept** - Emitted when an available tile is accepted (click or auto-accept). Cancelable — call `preventDefault()` to suppress the built-in `accept-uri` fetch.\n- **zn-reject** - Emitted when the reject control is pressed.\n\n### **Slots:**\n - **leading** - Replaces the leading icon in the active state.\n- **action** - Action content for the available state (e.g. a form). Falls back to a default accept button.\n- **footer** - Trailing content (e.g. status badges) in the active state.\n\n### **CSS Properties:**\n - **--channel-tile-color** - Resolved accent color (set from the `color` property). _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **progress** - The progress indicator (incoming countdown overlay or active progress bar).",
639
+ "doc-url": "",
640
+ "attributes": [
641
+ {
642
+ "name": "available",
643
+ "description": "Renders the empty/available face instead of the active face.",
644
+ "value": { "type": "boolean", "default": "false" }
645
+ },
646
+ {
647
+ "name": "incoming",
648
+ "description": "(Available only) the tile is reserving an incoming item awaiting acceptance.",
649
+ "value": { "type": "boolean", "default": "false" }
650
+ },
651
+ {
652
+ "name": "variant",
653
+ "description": "Free-form grouping/theming key (reflected so consumers can query/style by it).",
654
+ "value": { "type": "string", "default": "''" }
655
+ },
656
+ {
657
+ "name": "header",
658
+ "description": "Top-bar text (e.g. brand).",
659
+ "value": { "type": "string", "default": "''" }
660
+ },
661
+ {
662
+ "name": "icon",
663
+ "description": "Leading icon (active state).",
664
+ "value": { "type": "string", "default": "''" }
665
+ },
666
+ {
667
+ "name": "color",
668
+ "description": "Accent color driving the leading icon and `--channel-tile-color`.",
669
+ "value": { "type": "ChannelTileColor", "default": "'default'" }
670
+ },
671
+ {
672
+ "name": "title",
673
+ "description": "Primary line. Defaults to \"Available\" in the available state when unset.",
674
+ "value": { "type": "string", "default": "''" }
675
+ },
676
+ {
677
+ "name": "subtitle",
678
+ "description": "Secondary line.",
679
+ "value": { "type": "string", "default": "''" }
680
+ },
681
+ {
682
+ "name": "progress",
683
+ "description": "(Active only) progress bar fill, 0–100.",
684
+ "value": { "type": "number", "default": "0" }
685
+ },
686
+ {
687
+ "name": "progress-color",
688
+ "description": "(Active only) CSS color for the progress bar fill.",
689
+ "value": { "type": "string", "default": "''" }
690
+ },
691
+ {
692
+ "name": "fid",
693
+ "description": "Identifier carried in `zn-accept` / `zn-reject` event details.",
694
+ "value": { "type": "string", "default": "''" }
695
+ },
696
+ {
697
+ "name": "accept-uri",
698
+ "description": "(Available only) when set, accepting fetches this URI unless `zn-accept` is canceled.",
699
+ "value": { "type": "string", "default": "''" }
700
+ },
701
+ {
702
+ "name": "reserved-until",
703
+ "description": "(Available/incoming) epoch (seconds or millis) at which the reservation window ends.",
704
+ "value": { "type": "number", "default": "0" }
705
+ },
706
+ {
707
+ "name": "auto-accept-delay",
708
+ "description": "(Available/incoming) auto-accept window length in milliseconds.",
709
+ "value": { "type": "number", "default": "0" }
710
+ },
711
+ {
712
+ "name": "rejectable",
713
+ "description": "(Available/incoming) whether a reject control is offered.",
714
+ "value": { "type": "boolean", "default": "false" }
715
+ },
716
+ {
717
+ "name": "accept-icon",
718
+ "description": "Icon for the built-in accept button.",
719
+ "value": { "type": "string", "default": "'plus@lu'" }
720
+ },
721
+ {
722
+ "name": "accept-gaid",
723
+ "description": "Optional analytics id forwarded to the built-in accept button.",
724
+ "value": { "type": "string", "default": "''" }
725
+ },
726
+ {
727
+ "name": "reject-icon",
728
+ "description": "Icon for the reject control.",
729
+ "value": { "type": "string", "default": "'call_end'" }
730
+ },
731
+ {
732
+ "name": "reject-label",
733
+ "description": "Accessible label for the reject control.",
734
+ "value": { "type": "string", "default": "'Reject'" }
735
+ }
736
+ ],
737
+ "slots": [
738
+ {
739
+ "name": "leading",
740
+ "description": "Replaces the leading icon in the active state."
741
+ },
742
+ {
743
+ "name": "action",
744
+ "description": "Action content for the available state (e.g. a form). Falls back to a default accept button."
745
+ },
746
+ {
747
+ "name": "footer",
748
+ "description": "Trailing content (e.g. status badges) in the active state."
749
+ }
750
+ ],
751
+ "events": [
752
+ {
753
+ "name": "zn-accept",
754
+ "description": "Emitted when an available tile is accepted (click or auto-accept). Cancelable — call `preventDefault()` to suppress the built-in `accept-uri` fetch."
755
+ },
756
+ {
757
+ "name": "zn-reject",
758
+ "description": "Emitted when the reject control is pressed."
759
+ }
760
+ ],
761
+ "js": {
762
+ "properties": [
763
+ {
764
+ "name": "available",
765
+ "description": "Renders the empty/available face instead of the active face.",
766
+ "type": "boolean"
767
+ },
768
+ {
769
+ "name": "incoming",
770
+ "description": "(Available only) the tile is reserving an incoming item awaiting acceptance.",
771
+ "type": "boolean"
772
+ },
773
+ {
774
+ "name": "variant",
775
+ "description": "Free-form grouping/theming key (reflected so consumers can query/style by it).",
776
+ "type": "string"
777
+ },
778
+ {
779
+ "name": "header",
780
+ "description": "Top-bar text (e.g. brand).",
781
+ "type": "string"
782
+ },
783
+ {
784
+ "name": "icon",
785
+ "description": "Leading icon (active state).",
786
+ "type": "string"
787
+ },
788
+ {
789
+ "name": "color",
790
+ "description": "Accent color driving the leading icon and `--channel-tile-color`.",
791
+ "type": "ChannelTileColor"
792
+ },
793
+ {
794
+ "name": "title",
795
+ "description": "Primary line. Defaults to \"Available\" in the available state when unset.",
796
+ "type": "string"
797
+ },
798
+ {
799
+ "name": "subtitle",
800
+ "description": "Secondary line.",
801
+ "type": "string"
802
+ },
803
+ {
804
+ "name": "progress",
805
+ "description": "(Active only) progress bar fill, 0–100.",
806
+ "type": "number"
807
+ },
808
+ {
809
+ "name": "progressColor",
810
+ "description": "(Active only) CSS color for the progress bar fill.",
811
+ "type": "string"
812
+ },
813
+ {
814
+ "name": "fid",
815
+ "description": "Identifier carried in `zn-accept` / `zn-reject` event details.",
816
+ "type": "string"
817
+ },
818
+ {
819
+ "name": "acceptUri",
820
+ "description": "(Available only) when set, accepting fetches this URI unless `zn-accept` is canceled.",
821
+ "type": "string"
822
+ },
823
+ {
824
+ "name": "reservedUntil",
825
+ "description": "(Available/incoming) epoch (seconds or millis) at which the reservation window ends.",
826
+ "type": "number"
827
+ },
828
+ {
829
+ "name": "autoAcceptDelay",
830
+ "description": "(Available/incoming) auto-accept window length in milliseconds.",
831
+ "type": "number"
832
+ },
833
+ {
834
+ "name": "rejectable",
835
+ "description": "(Available/incoming) whether a reject control is offered.",
836
+ "type": "boolean"
837
+ },
838
+ {
839
+ "name": "acceptIcon",
840
+ "description": "Icon for the built-in accept button.",
841
+ "type": "string"
842
+ },
843
+ {
844
+ "name": "acceptGaid",
845
+ "description": "Optional analytics id forwarded to the built-in accept button.",
846
+ "type": "string"
847
+ },
848
+ {
849
+ "name": "rejectIcon",
850
+ "description": "Icon for the reject control.",
851
+ "type": "string"
852
+ },
853
+ {
854
+ "name": "rejectLabel",
855
+ "description": "Accessible label for the reject control.",
856
+ "type": "string"
857
+ }
858
+ ],
859
+ "events": [
860
+ {
861
+ "name": "zn-accept",
862
+ "description": "Emitted when an available tile is accepted (click or auto-accept). Cancelable — call `preventDefault()` to suppress the built-in `accept-uri` fetch."
863
+ },
864
+ {
865
+ "name": "zn-reject",
866
+ "description": "Emitted when the reject control is pressed."
867
+ }
868
+ ]
869
+ }
870
+ },
636
871
  {
637
872
  "name": "zn-chart",
638
873
  "description": "Chart component powered by Apache ECharts.\n---\n\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
package/dist/zn.d.ts CHANGED
@@ -3609,6 +3609,103 @@ declare module "components/tile-property/index" {
3609
3609
  }
3610
3610
  }
3611
3611
  }
3612
+ declare module "components/channel-tile/channel-tile.component" {
3613
+ import { type CSSResultGroup, type PropertyValues } from 'lit';
3614
+ import ZincElement from "internal/zinc-element";
3615
+ export type ChannelTileColor = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'error' | 'disabled';
3616
+ /**
3617
+ * @summary A channel/queue slot tile with two faces: an active (occupied) state
3618
+ * showing an in-progress item, and an available (empty) state advertising
3619
+ * capacity — optionally reserving an incoming item with an auto-accept countdown.
3620
+ * @documentation https://zinc.style/components/channel-tile
3621
+ * @status experimental
3622
+ * @since 1.0
3623
+ *
3624
+ * @dependency zn-button
3625
+ * @dependency zn-icon
3626
+ *
3627
+ * @event zn-accept - Emitted when an available tile is accepted (click or auto-accept).
3628
+ * Cancelable — call `preventDefault()` to suppress the built-in `accept-uri` fetch.
3629
+ * @event zn-reject - Emitted when the reject control is pressed.
3630
+ *
3631
+ * @slot leading - Replaces the leading icon in the active state.
3632
+ * @slot action - Action content for the available state (e.g. a form). Falls back to a default accept button.
3633
+ * @slot footer - Trailing content (e.g. status badges) in the active state.
3634
+ *
3635
+ * @csspart base - The component's base wrapper.
3636
+ * @csspart progress - The progress indicator (incoming countdown overlay or active progress bar).
3637
+ *
3638
+ * @cssproperty --channel-tile-color - Resolved accent color (set from the `color` property).
3639
+ */
3640
+ export default class ZnChannelTile extends ZincElement {
3641
+ static styles: CSSResultGroup;
3642
+ /** Renders the empty/available face instead of the active face. */
3643
+ available: boolean;
3644
+ /** (Available only) the tile is reserving an incoming item awaiting acceptance. */
3645
+ incoming: boolean;
3646
+ /** Free-form grouping/theming key (reflected so consumers can query/style by it). */
3647
+ variant: string;
3648
+ /** Top-bar text (e.g. brand). */
3649
+ header: string;
3650
+ /** Leading icon (active state). */
3651
+ icon: string;
3652
+ /** Accent color driving the leading icon and `--channel-tile-color`. */
3653
+ color: ChannelTileColor;
3654
+ /** Primary line. Defaults to "Available" in the available state when unset. */
3655
+ title: string;
3656
+ /** Secondary line. */
3657
+ subtitle: string;
3658
+ /** (Active only) progress bar fill, 0–100. */
3659
+ progress: number;
3660
+ /** (Active only) CSS color for the progress bar fill. */
3661
+ progressColor: string;
3662
+ /** Identifier carried in `zn-accept` / `zn-reject` event details. */
3663
+ fid: string;
3664
+ /** (Available only) when set, accepting fetches this URI unless `zn-accept` is canceled. */
3665
+ acceptUri: string;
3666
+ /** (Available/incoming) epoch (seconds or millis) at which the reservation window ends. */
3667
+ reservedUntil: number;
3668
+ /** (Available/incoming) auto-accept window length in milliseconds. */
3669
+ autoAcceptDelay: number;
3670
+ /** (Available/incoming) whether a reject control is offered. */
3671
+ rejectable: boolean;
3672
+ /** Icon for the built-in accept button. */
3673
+ acceptIcon: string;
3674
+ /** Optional analytics id forwarded to the built-in accept button. */
3675
+ acceptGaid: string;
3676
+ /** Icon for the reject control. */
3677
+ rejectIcon: string;
3678
+ /** Accessible label for the reject control. */
3679
+ rejectLabel: string;
3680
+ private _tickInterval;
3681
+ private _autoAcceptFired;
3682
+ protected firstUpdated(changed: PropertyValues): void;
3683
+ disconnectedCallback(): void;
3684
+ protected updated(changed: PropertyValues): void;
3685
+ private _isCountingDown;
3686
+ private _startTicker;
3687
+ private _stopTicker;
3688
+ private _maybeAutoAccept;
3689
+ private _accept;
3690
+ private _reservedUntilMs;
3691
+ private _countdownPercent;
3692
+ private _handleReject;
3693
+ private _handleClick;
3694
+ protected render(): unknown;
3695
+ private _renderLeading;
3696
+ private _renderAvailableAction;
3697
+ }
3698
+ }
3699
+ declare module "components/channel-tile/index" {
3700
+ import ZnChannelTile from "components/channel-tile/channel-tile.component";
3701
+ export * from "components/channel-tile/channel-tile.component";
3702
+ export default ZnChannelTile;
3703
+ global {
3704
+ interface HTMLElementTagNameMap {
3705
+ 'zn-channel-tile': ZnChannelTile;
3706
+ }
3707
+ }
3708
+ }
3612
3709
  declare module "components/chart/builders" {
3613
3710
  import type { EChartsOption } from 'echarts';
3614
3711
  export type ChartType = 'area' | 'bar' | 'line' | 'sankey';
@@ -8346,6 +8443,28 @@ declare module "events/zn-reorder" {
8346
8443
  }
8347
8444
  }
8348
8445
  }
8446
+ declare module "events/zn-accept" {
8447
+ export type ZnAcceptEvent = CustomEvent<{
8448
+ fid: string;
8449
+ acceptUri: string;
8450
+ }>;
8451
+ global {
8452
+ interface GlobalEventHandlersEventMap {
8453
+ 'zn-accept': ZnAcceptEvent;
8454
+ }
8455
+ }
8456
+ }
8457
+ declare module "events/zn-reject" {
8458
+ export type ZnRejectEvent = CustomEvent<{
8459
+ fid: string;
8460
+ variant: string;
8461
+ }>;
8462
+ global {
8463
+ interface GlobalEventHandlersEventMap {
8464
+ 'zn-reject': ZnRejectEvent;
8465
+ }
8466
+ }
8467
+ }
8349
8468
  declare module "events/events" {
8350
8469
  export type { ZnAfterHideEvent } from "events/zn-after-hide";
8351
8470
  export type { ZnAfterShowEvent } from "events/zn-after-show";
@@ -8359,6 +8478,8 @@ declare module "events/events" {
8359
8478
  export type { ZnSearchChangeEvent } from "events/zn-search-change";
8360
8479
  export type { ZnLanguageChangeEvent } from "events/zn-language-change";
8361
8480
  export type { ZnReorderEvent } from "events/zn-reorder";
8481
+ export type { ZnAcceptEvent } from "events/zn-accept";
8482
+ export type { ZnRejectEvent } from "events/zn-reject";
8362
8483
  }
8363
8484
  declare module "zinc" {
8364
8485
  export { default as Button } from "components/button/index";
@@ -8386,6 +8507,7 @@ declare module "zinc" {
8386
8507
  export { default as Tile } from "components/tile/index";
8387
8508
  export { default as TileGroup } from "components/tile-group/index";
8388
8509
  export { default as TileProperty } from "components/tile-property/index";
8510
+ export { default as ChannelTile } from "components/channel-tile/index";
8389
8511
  export { default as Chart } from "components/chart/index";
8390
8512
  export { default as SimpleChart } from "components/simple-chart/index";
8391
8513
  export { default as Header } from "components/header/index";