@rt-tools/ui-kit-v2 0.39.2 → 0.41.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.
@@ -395,7 +395,15 @@ var RtDataTableCellComponent = class RtDataTableCellComponent {
395
395
  const icon = this.icon();
396
396
  return icon && !this.kitIcon() ? icon.glyph : null;
397
397
  }, ...ngDevMode ? [{ debugName: "glyph" }] : /* istanbul ignore next */ []);
398
- this.glyphMods = computed(() => ({ filled: this.icon()?.outlined !== true }), ...ngDevMode ? [{ debugName: "glyphMods" }] : /* istanbul ignore next */ []);
398
+ this.iconSize = computed(() => {
399
+ const size = this.icon()?.size;
400
+ return size === "sm" || size === "md" ? size : "lg";
401
+ }, ...ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []);
402
+ this.glyphMods = computed(() => ({
403
+ filled: this.icon()?.outlined !== true,
404
+ sm: this.iconSize() === "sm",
405
+ md: this.iconSize() === "md"
406
+ }), ...ngDevMode ? [{ debugName: "glyphMods" }] : /* istanbul ignore next */ []);
399
407
  this.iconContext = computed(() => {
400
408
  const icon = this.icon();
401
409
  return icon ? {
@@ -494,8 +502,8 @@ var RtDataTableCellComponent = class RtDataTableCellComponent {
494
502
  classAttribute: "rt-data-table-cell"
495
503
  },
496
504
  ngImport: i0,
497
- template: "<ng-container rtBlock=\"rt-data-table-cell\">\n <ng-template #iconTpl>\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"iconContext()\" />\n } @else if (kitIcon(); as name) {\n <rt-icon size=\"lg\" [name]=\"name\" [fill]=\"icon()?.outlined !== true\" [style]=\"iconStyle()\" />\n } @else if (glyph(); as name) {\n <span rtElem=\"glyph\" aria-hidden=\"true\" qa-dataid=\"data-table-cell-glyph\" [rtMod]=\"glyphMods()\" [style]=\"iconStyle()\">\n {{ name }}\n </span>\n }\n </ng-template>\n\n @if (icon()?.placement === 'left') {\n <span rtElem=\"prefix\" qa-dataid=\"data-table-cell-prefix\"><ng-container [ngTemplateOutlet]=\"iconTpl\" /></span>\n }\n\n <div rtElem=\"title\" [rtMod]=\"titleMods()\">\n <div rtElem=\"text\" qa-dataid=\"data-table-cell-text\" [rtTooltip]=\"hint()\">{{ value() | emptyToDash }}</div>\n </div>\n\n @if (icon()?.placement === 'right') {\n <span rtElem=\"suffix\" qa-dataid=\"data-table-cell-suffix\"><ng-container [ngTemplateOutlet]=\"iconTpl\" /></span>\n }\n\n @if (copyable()) {\n <rt-icon-button\n rtElem=\"copy-button\"\n rtDataTableStopRowClick\n qa-dataid=\"data-table-cell-copy\"\n size=\"sm\"\n [rtMod]=\"copyMods()\"\n [icon]=\"copyIcon()\"\n [ariaLabel]=\"copyLabel()\"\n [tooltip]=\"narrow() ? '' : copyLabel()\"\n (clicked)=\"onCopy()\" />\n }\n</ng-container>\n",
498
- styles: ["@charset \"UTF-8\";@layer rt-kit.components{.rt-data-table-cell{--rt-data-table-cell-transition-duration: var(--rt-duration-fast);--rt-data-table-cell-glyph-size: var(--rt-size-6);position:relative;display:flex;width:100%;height:100%;align-items:center;gap:var(--rt-space-sm)}.rt-data-table-cell__glyph{display:inline-block;overflow:hidden;width:var(--rt-data-table-cell-glyph-size);font-family:Material Symbols Outlined,sans-serif;font-feature-settings:\"liga\";font-size:var(--rt-data-table-cell-glyph-size);font-style:normal;font-weight:var(--rt-font-weight-regular);letter-spacing:normal;line-height:1;text-transform:none;white-space:nowrap}.rt-data-table-cell__glyph--filled{font-variation-settings:\"FILL\" 1}.rt-data-table-cell__prefix,.rt-data-table-cell__suffix{display:inline-flex;min-width:fit-content;flex:0 0 auto}.rt-data-table-cell__title{display:table;width:100%;table-layout:fixed}.rt-data-table-cell__title--align--left{text-align:left}.rt-data-table-cell__title--align--center{text-align:center}.rt-data-table-cell__title--align--right{text-align:right}.rt-data-table-cell__text{overflow:hidden;width:100%;padding:var(--rt-space-sm) var(--rt-space-sm) var(--rt-space-sm) 0;text-overflow:ellipsis;white-space:nowrap}.rt-data-table-cell__copy-button{position:absolute;transition:visibility var(--rt-data-table-cell-transition-duration) linear;visibility:hidden}@media(hover:none){.rt-data-table-cell__copy-button{visibility:visible}}.rt-data-table-cell__copy-button{--rt-icon-button-color: var(--rt-list-copy-button-color)}.rt-data-table-cell__copy-button .rt-icon-button{--rt-icon-button-size-step: var(--rt-list-copy-button-size);--rt-icon-button-radius: var(--rt-list-copy-button-radius);--rt-icon-button-color-hover: var(--rt-color-text-primary);--rt-icon-button-color-bg-hover: var(--rt-list-copy-button-bg-hover);background-color:var(--rt-list-copy-button-bg)}.rt-data-table-cell__copy-button--position--left{left:var(--rt-space-xs)}.rt-data-table-cell__copy-button--position--right{right:var(--rt-space-xs)}.rt-data-table-cell__copy-button--complete{cursor:not-allowed}.rt-data-table-cell__copy-button--visible{visibility:visible}}\n"],
505
+ template: "<ng-container rtBlock=\"rt-data-table-cell\">\n <ng-template #iconTpl>\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"iconContext()\" />\n } @else if (kitIcon(); as name) {\n <rt-icon [size]=\"iconSize()\" [name]=\"name\" [fill]=\"icon()?.outlined !== true\" [style]=\"iconStyle()\" />\n } @else if (glyph(); as name) {\n <span rtElem=\"glyph\" aria-hidden=\"true\" qa-dataid=\"data-table-cell-glyph\" [rtMod]=\"glyphMods()\" [style]=\"iconStyle()\">\n {{ name }}\n </span>\n }\n </ng-template>\n\n @if (icon()?.placement === 'left') {\n <span rtElem=\"prefix\" qa-dataid=\"data-table-cell-prefix\"><ng-container [ngTemplateOutlet]=\"iconTpl\" /></span>\n }\n\n <div rtElem=\"title\" [rtMod]=\"titleMods()\">\n <div rtElem=\"text\" qa-dataid=\"data-table-cell-text\" [rtTooltip]=\"hint()\">{{ value() | emptyToDash }}</div>\n </div>\n\n @if (icon()?.placement === 'right') {\n <span rtElem=\"suffix\" qa-dataid=\"data-table-cell-suffix\"><ng-container [ngTemplateOutlet]=\"iconTpl\" /></span>\n }\n\n @if (copyable()) {\n <rt-icon-button\n rtElem=\"copy-button\"\n rtDataTableStopRowClick\n qa-dataid=\"data-table-cell-copy\"\n size=\"sm\"\n [rtMod]=\"copyMods()\"\n [icon]=\"copyIcon()\"\n [ariaLabel]=\"copyLabel()\"\n [tooltip]=\"narrow() ? '' : copyLabel()\"\n (clicked)=\"onCopy()\" />\n }\n</ng-container>\n",
506
+ styles: ["@charset \"UTF-8\";@layer rt-kit.components{.rt-data-table-cell{--rt-data-table-cell-transition-duration: var(--rt-duration-fast);--rt-data-table-cell-glyph-size: var(--rt-size-6);--rt-icon-step-sm: var(--rt-size-4);--rt-icon-step-md: var(--rt-size-5);--rt-icon-step-lg: var(--rt-size-6);position:relative;display:flex;width:100%;height:100%;align-items:center;gap:var(--rt-space-sm)}.rt-data-table-cell__glyph{display:inline-block;overflow:hidden;width:var(--rt-data-table-cell-glyph-size);font-family:Material Symbols Outlined,sans-serif;font-feature-settings:\"liga\";font-size:var(--rt-data-table-cell-glyph-size);font-style:normal;font-weight:var(--rt-font-weight-regular);letter-spacing:normal;line-height:1;text-transform:none;white-space:nowrap}.rt-data-table-cell__glyph--filled{font-variation-settings:\"FILL\" 1}.rt-data-table-cell__glyph--sm{--rt-data-table-cell-glyph-size: var(--rt-icon-step-sm)}.rt-data-table-cell__glyph--md{--rt-data-table-cell-glyph-size: var(--rt-icon-step-md)}.rt-data-table-cell__prefix,.rt-data-table-cell__suffix{display:inline-flex;min-width:fit-content;flex:0 0 auto}.rt-data-table-cell__title{display:table;width:100%;table-layout:fixed}.rt-data-table-cell__title--align--left{text-align:left}.rt-data-table-cell__title--align--center{text-align:center}.rt-data-table-cell__title--align--right{text-align:right}.rt-data-table-cell__text{overflow:hidden;width:100%;padding:var(--rt-space-sm) var(--rt-space-sm) var(--rt-space-sm) 0;text-overflow:ellipsis;white-space:nowrap}.rt-data-table-cell__copy-button{position:absolute;transition:visibility var(--rt-data-table-cell-transition-duration) linear;visibility:hidden}@media(hover:none){.rt-data-table-cell__copy-button{visibility:visible}}.rt-data-table-cell__copy-button{--rt-icon-button-color: var(--rt-list-copy-button-color)}.rt-data-table-cell__copy-button .rt-icon-button{--rt-icon-button-size-step: var(--rt-list-copy-button-size);--rt-icon-button-radius: var(--rt-list-copy-button-radius);--rt-icon-button-color-hover: var(--rt-color-text-primary);--rt-icon-button-color-bg-hover: var(--rt-list-copy-button-bg-hover);background-color:var(--rt-list-copy-button-bg)}.rt-data-table-cell__copy-button--position--left{left:var(--rt-space-xs)}.rt-data-table-cell__copy-button--position--right{right:var(--rt-space-xs)}.rt-data-table-cell__copy-button--complete{cursor:not-allowed}.rt-data-table-cell__copy-button--visible{visibility:visible}}\n"],
499
507
  dependencies: [
500
508
  {
501
509
  kind: "component",
@@ -625,8 +633,8 @@ i0.ɵɵngDeclareClassMetadata({
625
633
  "(mouseenter)": "onMouseEnter()",
626
634
  "(mouseleave)": "hovered.set(false)"
627
635
  },
628
- template: "<ng-container rtBlock=\"rt-data-table-cell\">\n <ng-template #iconTpl>\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"iconContext()\" />\n } @else if (kitIcon(); as name) {\n <rt-icon size=\"lg\" [name]=\"name\" [fill]=\"icon()?.outlined !== true\" [style]=\"iconStyle()\" />\n } @else if (glyph(); as name) {\n <span rtElem=\"glyph\" aria-hidden=\"true\" qa-dataid=\"data-table-cell-glyph\" [rtMod]=\"glyphMods()\" [style]=\"iconStyle()\">\n {{ name }}\n </span>\n }\n </ng-template>\n\n @if (icon()?.placement === 'left') {\n <span rtElem=\"prefix\" qa-dataid=\"data-table-cell-prefix\"><ng-container [ngTemplateOutlet]=\"iconTpl\" /></span>\n }\n\n <div rtElem=\"title\" [rtMod]=\"titleMods()\">\n <div rtElem=\"text\" qa-dataid=\"data-table-cell-text\" [rtTooltip]=\"hint()\">{{ value() | emptyToDash }}</div>\n </div>\n\n @if (icon()?.placement === 'right') {\n <span rtElem=\"suffix\" qa-dataid=\"data-table-cell-suffix\"><ng-container [ngTemplateOutlet]=\"iconTpl\" /></span>\n }\n\n @if (copyable()) {\n <rt-icon-button\n rtElem=\"copy-button\"\n rtDataTableStopRowClick\n qa-dataid=\"data-table-cell-copy\"\n size=\"sm\"\n [rtMod]=\"copyMods()\"\n [icon]=\"copyIcon()\"\n [ariaLabel]=\"copyLabel()\"\n [tooltip]=\"narrow() ? '' : copyLabel()\"\n (clicked)=\"onCopy()\" />\n }\n</ng-container>\n",
629
- styles: ["@charset \"UTF-8\";@layer rt-kit.components{.rt-data-table-cell{--rt-data-table-cell-transition-duration: var(--rt-duration-fast);--rt-data-table-cell-glyph-size: var(--rt-size-6);position:relative;display:flex;width:100%;height:100%;align-items:center;gap:var(--rt-space-sm)}.rt-data-table-cell__glyph{display:inline-block;overflow:hidden;width:var(--rt-data-table-cell-glyph-size);font-family:Material Symbols Outlined,sans-serif;font-feature-settings:\"liga\";font-size:var(--rt-data-table-cell-glyph-size);font-style:normal;font-weight:var(--rt-font-weight-regular);letter-spacing:normal;line-height:1;text-transform:none;white-space:nowrap}.rt-data-table-cell__glyph--filled{font-variation-settings:\"FILL\" 1}.rt-data-table-cell__prefix,.rt-data-table-cell__suffix{display:inline-flex;min-width:fit-content;flex:0 0 auto}.rt-data-table-cell__title{display:table;width:100%;table-layout:fixed}.rt-data-table-cell__title--align--left{text-align:left}.rt-data-table-cell__title--align--center{text-align:center}.rt-data-table-cell__title--align--right{text-align:right}.rt-data-table-cell__text{overflow:hidden;width:100%;padding:var(--rt-space-sm) var(--rt-space-sm) var(--rt-space-sm) 0;text-overflow:ellipsis;white-space:nowrap}.rt-data-table-cell__copy-button{position:absolute;transition:visibility var(--rt-data-table-cell-transition-duration) linear;visibility:hidden}@media(hover:none){.rt-data-table-cell__copy-button{visibility:visible}}.rt-data-table-cell__copy-button{--rt-icon-button-color: var(--rt-list-copy-button-color)}.rt-data-table-cell__copy-button .rt-icon-button{--rt-icon-button-size-step: var(--rt-list-copy-button-size);--rt-icon-button-radius: var(--rt-list-copy-button-radius);--rt-icon-button-color-hover: var(--rt-color-text-primary);--rt-icon-button-color-bg-hover: var(--rt-list-copy-button-bg-hover);background-color:var(--rt-list-copy-button-bg)}.rt-data-table-cell__copy-button--position--left{left:var(--rt-space-xs)}.rt-data-table-cell__copy-button--position--right{right:var(--rt-space-xs)}.rt-data-table-cell__copy-button--complete{cursor:not-allowed}.rt-data-table-cell__copy-button--visible{visibility:visible}}\n"]
636
+ template: "<ng-container rtBlock=\"rt-data-table-cell\">\n <ng-template #iconTpl>\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"iconContext()\" />\n } @else if (kitIcon(); as name) {\n <rt-icon [size]=\"iconSize()\" [name]=\"name\" [fill]=\"icon()?.outlined !== true\" [style]=\"iconStyle()\" />\n } @else if (glyph(); as name) {\n <span rtElem=\"glyph\" aria-hidden=\"true\" qa-dataid=\"data-table-cell-glyph\" [rtMod]=\"glyphMods()\" [style]=\"iconStyle()\">\n {{ name }}\n </span>\n }\n </ng-template>\n\n @if (icon()?.placement === 'left') {\n <span rtElem=\"prefix\" qa-dataid=\"data-table-cell-prefix\"><ng-container [ngTemplateOutlet]=\"iconTpl\" /></span>\n }\n\n <div rtElem=\"title\" [rtMod]=\"titleMods()\">\n <div rtElem=\"text\" qa-dataid=\"data-table-cell-text\" [rtTooltip]=\"hint()\">{{ value() | emptyToDash }}</div>\n </div>\n\n @if (icon()?.placement === 'right') {\n <span rtElem=\"suffix\" qa-dataid=\"data-table-cell-suffix\"><ng-container [ngTemplateOutlet]=\"iconTpl\" /></span>\n }\n\n @if (copyable()) {\n <rt-icon-button\n rtElem=\"copy-button\"\n rtDataTableStopRowClick\n qa-dataid=\"data-table-cell-copy\"\n size=\"sm\"\n [rtMod]=\"copyMods()\"\n [icon]=\"copyIcon()\"\n [ariaLabel]=\"copyLabel()\"\n [tooltip]=\"narrow() ? '' : copyLabel()\"\n (clicked)=\"onCopy()\" />\n }\n</ng-container>\n",
637
+ styles: ["@charset \"UTF-8\";@layer rt-kit.components{.rt-data-table-cell{--rt-data-table-cell-transition-duration: var(--rt-duration-fast);--rt-data-table-cell-glyph-size: var(--rt-size-6);--rt-icon-step-sm: var(--rt-size-4);--rt-icon-step-md: var(--rt-size-5);--rt-icon-step-lg: var(--rt-size-6);position:relative;display:flex;width:100%;height:100%;align-items:center;gap:var(--rt-space-sm)}.rt-data-table-cell__glyph{display:inline-block;overflow:hidden;width:var(--rt-data-table-cell-glyph-size);font-family:Material Symbols Outlined,sans-serif;font-feature-settings:\"liga\";font-size:var(--rt-data-table-cell-glyph-size);font-style:normal;font-weight:var(--rt-font-weight-regular);letter-spacing:normal;line-height:1;text-transform:none;white-space:nowrap}.rt-data-table-cell__glyph--filled{font-variation-settings:\"FILL\" 1}.rt-data-table-cell__glyph--sm{--rt-data-table-cell-glyph-size: var(--rt-icon-step-sm)}.rt-data-table-cell__glyph--md{--rt-data-table-cell-glyph-size: var(--rt-icon-step-md)}.rt-data-table-cell__prefix,.rt-data-table-cell__suffix{display:inline-flex;min-width:fit-content;flex:0 0 auto}.rt-data-table-cell__title{display:table;width:100%;table-layout:fixed}.rt-data-table-cell__title--align--left{text-align:left}.rt-data-table-cell__title--align--center{text-align:center}.rt-data-table-cell__title--align--right{text-align:right}.rt-data-table-cell__text{overflow:hidden;width:100%;padding:var(--rt-space-sm) var(--rt-space-sm) var(--rt-space-sm) 0;text-overflow:ellipsis;white-space:nowrap}.rt-data-table-cell__copy-button{position:absolute;transition:visibility var(--rt-data-table-cell-transition-duration) linear;visibility:hidden}@media(hover:none){.rt-data-table-cell__copy-button{visibility:visible}}.rt-data-table-cell__copy-button{--rt-icon-button-color: var(--rt-list-copy-button-color)}.rt-data-table-cell__copy-button .rt-icon-button{--rt-icon-button-size-step: var(--rt-list-copy-button-size);--rt-icon-button-radius: var(--rt-list-copy-button-radius);--rt-icon-button-color-hover: var(--rt-color-text-primary);--rt-icon-button-color-bg-hover: var(--rt-list-copy-button-bg-hover);background-color:var(--rt-list-copy-button-bg)}.rt-data-table-cell__copy-button--position--left{left:var(--rt-space-xs)}.rt-data-table-cell__copy-button--position--right{right:var(--rt-space-xs)}.rt-data-table-cell__copy-button--complete{cursor:not-allowed}.rt-data-table-cell__copy-button--visible{visibility:visible}}\n"]
630
638
  }]
631
639
  }],
632
640
  ctorParameters: () => [],