@taiga-ui/addon-doc 2.50.0 → 2.51.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.
- package/bundles/taiga-ui-addon-doc.umd.js +44 -2
- package/bundles/taiga-ui-addon-doc.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc.umd.min.js +1 -1
- package/bundles/taiga-ui-addon-doc.umd.min.js.map +1 -1
- package/components/documentation/documentation.component.d.ts +1 -0
- package/directives/scroll-into-view/scroll-into-view.directive.d.ts +6 -0
- package/directives/scroll-into-view/scroll-into-view.module.d.ts +6 -0
- package/esm2015/components/documentation/documentation.component.js +5 -2
- package/esm2015/components/navigation/navigation.module.js +3 -2
- package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +20 -3
- package/esm2015/directives/scroll-into-view/scroll-into-view.module.js +19 -3
- package/esm5/components/documentation/documentation.component.js +5 -2
- package/esm5/components/navigation/navigation.module.js +3 -2
- package/esm5/directives/scroll-into-view/scroll-into-view.directive.js +23 -3
- package/esm5/directives/scroll-into-view/scroll-into-view.module.js +20 -2
- package/fesm2015/taiga-ui-addon-doc.js +40 -5
- package/fesm2015/taiga-ui-addon-doc.js.map +1 -1
- package/fesm5/taiga-ui-addon-doc.js +44 -4
- package/fesm5/taiga-ui-addon-doc.js.map +1 -1
- package/package.json +5 -5
- package/taiga-ui-addon-doc.metadata.json +1 -1
|
@@ -955,6 +955,9 @@
|
|
|
955
955
|
TuiDocDocumentationComponent.prototype.isOptional = function (name) {
|
|
956
956
|
return name.includes('?');
|
|
957
957
|
};
|
|
958
|
+
TuiDocDocumentationComponent.prototype.isPrimitivePolymorpheusContent = function (value) {
|
|
959
|
+
return typeof value === 'string' || typeof value === 'number';
|
|
960
|
+
};
|
|
958
961
|
TuiDocDocumentationComponent.prototype.showCleaner = function (type) {
|
|
959
962
|
return type.includes('null');
|
|
960
963
|
};
|
|
@@ -983,7 +986,7 @@
|
|
|
983
986
|
TuiDocDocumentationComponent = __decorate([
|
|
984
987
|
core.Component({
|
|
985
988
|
selector: 'tui-doc-documentation',
|
|
986
|
-
template: "<h1\n *ngIf=\"heading\"\n class=\"t-heading\"\n>\n {{ heading }}\n</h1>\n<ng-content></ng-content>\n<table class=\"t-table\">\n <tr class=\"t-row t-row_header\">\n <th class=\"t-th t-cell t-cell_prop\">{{ texts[2] }}</th>\n <th class=\"t-th\">{{ type }}</th>\n <th\n *ngIf=\"showValues && !isAPI\"\n class=\"t-th t-cell t-cell_value\"\n >\n {{ texts[3] }}\n </th>\n </tr>\n <tr\n *ngFor=\"let propertyConnector of propertiesConnectors\"\n class=\"t-row\"\n [class.t-deprecated]=\"propertyConnector.documentationPropertyDeprecated\"\n >\n <td class=\"t-cell\">\n <div\n automation-id=\"tui-documentation__property-name\"\n class=\"t-property\"\n >\n {{ stripOptional(propertyConnector.attrName) }}\n <tui-badge\n *ngIf=\"isOptional(propertyConnector.attrName)\"\n size=\"s\"\n value=\"Optional\"\n ></tui-badge>\n </div>\n <span\n *ngIf=\"propertyConnector.documentationPropertyDeprecated\"\n class=\"t-deprecated-label\"\n >\n deprecated\n </span>\n <ng-container\n *ngTemplateOutlet=\"propertyConnector.template\"\n ></ng-container>\n </td>\n <td class=\"t-cell\">\n <span class=\"type\">\n {{ propertyConnector.documentationPropertyType }}\n <tui-tooltip\n *ngIf=\"showContentTooltip(propertyConnector.documentationPropertyType)\"\n [describeId]=\"propertyConnector.attrName\"\n [content]=\"content\"\n >\n <ng-template #content>\n {{ texts[4] }}\n <a\n tuiLink\n tuiMode=\"onDark\"\n target=\"_blank\"\n href=\"https://github.com/tinkoff/ng-polymorpheus\"\n >\n <code>ng-polymorpheus</code>\n </a>\n </ng-template>\n </tui-tooltip>\n </span>\n </td>\n <td\n *ngIf=\"showValues\"\n class=\"t-cell\"\n >\n <ng-container\n *ngIf=\"propertyConnector.shouldShowValues; else elseEmitter\"\n >\n <tui-select\n *ngIf=\"propertyConnector.hasItems; else noItems\"\n tuiTextfieldSize=\"m\"\n tuiDropdownLimitWidth=\"min\"\n [tuiTextfieldCleaner]=\"showCleaner(propertyConnector.documentationPropertyType)\"\n [tuiTextfieldLabelOutside]=\"true\"\n [nativeId]=\"propertyConnector.attrName\"\n [valueContent]=\"selectContent\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n >\n <code class=\"t-exception\">null</code>\n <tui-data-list-wrapper\n *tuiDataList\n [items]=\"propertyConnector.documentationPropertyValues\"\n [itemContent]=\"selectContent\"\n ></tui-data-list-wrapper>\n </tui-select>\n <ng-template\n #selectContent\n let-data\n >\n <code>{{ inspectAny(data) }}</code>\n </ng-template>\n\n <ng-template #noItems>\n <ng-container\n [ngSwitch]=\"propertyConnector.documentationPropertyType\"\n >\n <tui-toggle\n *ngSwitchCase=\"'boolean'\"\n size=\"l\"\n [nativeId]=\"propertyConnector.attrName\"\n [showIcons]=\"true\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-toggle>\n\n <tui-primitive-textfield\n *ngSwitchCase=\"'string'\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiTextfieldCleaner]=\"true\"\n [value]=\"propertyConnector.documentationPropertyValue || ''\"\n (valueChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-primitive-textfield>\n\n <div\n *ngSwitchCase=\"'color'\"\n tuiGroup\n >\n <tui-primitive-textfield\n tuiTextfieldType=\"text\"\n tuiTextfieldSize=\"m\"\n [attr.id]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiInputOpacity]=\"getOpacity(propertyConnector.documentationPropertyValue)\"\n [value]=\"getColor(propertyConnector.documentationPropertyValue)\"\n (valueChange)=\"onColorChange(propertyConnector, $event)\"\n ></tui-primitive-textfield>\n <tui-input-count\n tuiTextfieldSize=\"m\"\n [max]=\"100\"\n [ngModel]=\"getOpacity(propertyConnector.documentationPropertyValue)\"\n (ngModelChange)=\"onOpacityChange(propertyConnector, $event)\"\n >\n Opacity\n </tui-input-count>\n </div>\n\n <tui-input-count\n *ngSwitchCase=\"'number'\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-input-count>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <ng-template #elseEmitter>\n <tui-notification\n class=\"t-output\"\n [@emitEvent]=\"propertyConnector.emits$ | async\"\n >\n Emit!\n </tui-notification>\n </ng-template>\n </td>\n </tr>\n</table>\n",
|
|
989
|
+
template: "<h1\n *ngIf=\"heading\"\n class=\"t-heading\"\n>\n {{ heading }}\n</h1>\n<ng-content></ng-content>\n<table class=\"t-table\">\n <tr class=\"t-row t-row_header\">\n <th class=\"t-th t-cell t-cell_prop\">{{ texts[2] }}</th>\n <th class=\"t-th\">{{ type }}</th>\n <th\n *ngIf=\"showValues && !isAPI\"\n class=\"t-th t-cell t-cell_value\"\n >\n {{ texts[3] }}\n </th>\n </tr>\n <tr\n *ngFor=\"let propertyConnector of propertiesConnectors\"\n class=\"t-row\"\n [class.t-deprecated]=\"propertyConnector.documentationPropertyDeprecated\"\n >\n <td class=\"t-cell\">\n <div\n automation-id=\"tui-documentation__property-name\"\n class=\"t-property\"\n >\n {{ stripOptional(propertyConnector.attrName) }}\n <tui-badge\n *ngIf=\"isOptional(propertyConnector.attrName)\"\n size=\"s\"\n value=\"Optional\"\n ></tui-badge>\n </div>\n <span\n *ngIf=\"propertyConnector.documentationPropertyDeprecated\"\n class=\"t-deprecated-label\"\n >\n deprecated\n </span>\n <ng-container\n *ngTemplateOutlet=\"propertyConnector.template\"\n ></ng-container>\n </td>\n <td class=\"t-cell\">\n <span class=\"type\">\n {{ propertyConnector.documentationPropertyType }}\n <tui-tooltip\n *ngIf=\"showContentTooltip(propertyConnector.documentationPropertyType)\"\n [describeId]=\"propertyConnector.attrName\"\n [content]=\"content\"\n >\n <ng-template #content>\n {{ texts[4] }}\n <a\n tuiLink\n tuiMode=\"onDark\"\n target=\"_blank\"\n href=\"https://github.com/tinkoff/ng-polymorpheus\"\n >\n <code>ng-polymorpheus</code>\n </a>\n </ng-template>\n </tui-tooltip>\n </span>\n </td>\n <td\n *ngIf=\"showValues\"\n class=\"t-cell\"\n >\n <ng-container\n *ngIf=\"propertyConnector.shouldShowValues; else elseEmitter\"\n >\n <tui-select\n *ngIf=\"propertyConnector.hasItems; else noItems\"\n tuiTextfieldSize=\"m\"\n tuiDropdownLimitWidth=\"min\"\n [tuiTextfieldCleaner]=\"showCleaner(propertyConnector.documentationPropertyType)\"\n [tuiTextfieldLabelOutside]=\"true\"\n [nativeId]=\"propertyConnector.attrName\"\n [valueContent]=\"selectContent\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n >\n <code class=\"t-exception\">null</code>\n <tui-data-list-wrapper\n *tuiDataList\n [items]=\"propertyConnector.documentationPropertyValues\"\n [itemContent]=\"selectContent\"\n ></tui-data-list-wrapper>\n </tui-select>\n <ng-template\n #selectContent\n let-data\n >\n <code>{{ inspectAny(data) }}</code>\n </ng-template>\n\n <ng-template #noItems>\n <ng-container\n [ngSwitch]=\"propertyConnector.documentationPropertyType\"\n >\n <tui-toggle\n *ngSwitchCase=\"'boolean'\"\n size=\"l\"\n [nativeId]=\"propertyConnector.attrName\"\n [showIcons]=\"true\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-toggle>\n\n <tui-primitive-textfield\n *ngSwitchCase=\"'string'\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiTextfieldCleaner]=\"true\"\n [value]=\"propertyConnector.documentationPropertyValue || ''\"\n (valueChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-primitive-textfield>\n\n <div\n *ngSwitchCase=\"'color'\"\n tuiGroup\n >\n <tui-primitive-textfield\n tuiTextfieldType=\"text\"\n tuiTextfieldSize=\"m\"\n [attr.id]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiInputOpacity]=\"getOpacity(propertyConnector.documentationPropertyValue)\"\n [value]=\"getColor(propertyConnector.documentationPropertyValue)\"\n (valueChange)=\"onColorChange(propertyConnector, $event)\"\n ></tui-primitive-textfield>\n <tui-input-count\n tuiTextfieldSize=\"m\"\n [max]=\"100\"\n [ngModel]=\"getOpacity(propertyConnector.documentationPropertyValue)\"\n (ngModelChange)=\"onOpacityChange(propertyConnector, $event)\"\n >\n Opacity\n </tui-input-count>\n </div>\n\n <tui-input-count\n *ngSwitchCase=\"'number'\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-input-count>\n\n <ng-container *ngSwitchCase=\"'PolymorpheusContent'\">\n <tui-primitive-textfield\n *ngIf=\"isPrimitivePolymorpheusContent(propertyConnector.documentationPropertyValue)\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiTextfieldCleaner]=\"true\"\n [value]=\"propertyConnector.documentationPropertyValue.toString()\"\n (valueChange)=\"propertyConnector.onValueChange($event)\"\n >\n Default content\n </tui-primitive-textfield>\n </ng-container>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <ng-template #elseEmitter>\n <tui-notification\n class=\"t-output\"\n [@emitEvent]=\"propertyConnector.emits$ | async\"\n >\n Emit!\n </tui-notification>\n </ng-template>\n </td>\n </tr>\n</table>\n",
|
|
987
990
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
988
991
|
animations: [
|
|
989
992
|
animations.trigger('emitEvent', [
|
|
@@ -1331,6 +1334,10 @@
|
|
|
1331
1334
|
return TuiDocMainComponent;
|
|
1332
1335
|
}());
|
|
1333
1336
|
|
|
1337
|
+
/**
|
|
1338
|
+
* @deprecated: use {@link TuiScrollIntoViewLinkDirective}
|
|
1339
|
+
* TODO: remove in v3.0
|
|
1340
|
+
*/
|
|
1334
1341
|
var ScrollIntoViewDirective = /** @class */ (function () {
|
|
1335
1342
|
function ScrollIntoViewDirective(destroy$, _a) {
|
|
1336
1343
|
var nativeElement = _a.nativeElement;
|
|
@@ -1359,14 +1366,34 @@
|
|
|
1359
1366
|
core.Directive({
|
|
1360
1367
|
selector: '[scrollIntoView]',
|
|
1361
1368
|
providers: [cdk.TuiDestroyService],
|
|
1362
|
-
})
|
|
1369
|
+
})
|
|
1370
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1371
|
+
,
|
|
1363
1372
|
__param(0, core.Inject(cdk.TuiDestroyService)),
|
|
1364
1373
|
__param(1, core.Inject(core.ElementRef))
|
|
1365
1374
|
], ScrollIntoViewDirective);
|
|
1366
1375
|
return ScrollIntoViewDirective;
|
|
1367
1376
|
}());
|
|
1377
|
+
var TuiScrollIntoViewLinkDirective = /** @class */ (function (_super) {
|
|
1378
|
+
__extends(TuiScrollIntoViewLinkDirective, _super);
|
|
1379
|
+
function TuiScrollIntoViewLinkDirective() {
|
|
1380
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1381
|
+
}
|
|
1382
|
+
TuiScrollIntoViewLinkDirective = __decorate([
|
|
1383
|
+
core.Directive({
|
|
1384
|
+
selector: '[tuiScrollIntoViewLink]',
|
|
1385
|
+
providers: [cdk.TuiDestroyService],
|
|
1386
|
+
})
|
|
1387
|
+
], TuiScrollIntoViewLinkDirective);
|
|
1388
|
+
return TuiScrollIntoViewLinkDirective;
|
|
1389
|
+
}(ScrollIntoViewDirective));
|
|
1368
1390
|
|
|
1391
|
+
/**
|
|
1392
|
+
* @deprecated: use {@link TuiScrollIntoViewLinkModule}
|
|
1393
|
+
* TODO: remove in v3.0
|
|
1394
|
+
*/
|
|
1369
1395
|
var ScrollIntoViewModule = /** @class */ (function () {
|
|
1396
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1370
1397
|
function ScrollIntoViewModule() {
|
|
1371
1398
|
}
|
|
1372
1399
|
ScrollIntoViewModule = __decorate([
|
|
@@ -1374,9 +1401,21 @@
|
|
|
1374
1401
|
declarations: [ScrollIntoViewDirective],
|
|
1375
1402
|
exports: [ScrollIntoViewDirective],
|
|
1376
1403
|
})
|
|
1404
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1377
1405
|
], ScrollIntoViewModule);
|
|
1378
1406
|
return ScrollIntoViewModule;
|
|
1379
1407
|
}());
|
|
1408
|
+
var TuiScrollIntoViewLinkModule = /** @class */ (function () {
|
|
1409
|
+
function TuiScrollIntoViewLinkModule() {
|
|
1410
|
+
}
|
|
1411
|
+
TuiScrollIntoViewLinkModule = __decorate([
|
|
1412
|
+
core.NgModule({
|
|
1413
|
+
declarations: [TuiScrollIntoViewLinkDirective],
|
|
1414
|
+
exports: [TuiScrollIntoViewLinkDirective],
|
|
1415
|
+
})
|
|
1416
|
+
], TuiScrollIntoViewLinkModule);
|
|
1417
|
+
return TuiScrollIntoViewLinkModule;
|
|
1418
|
+
}());
|
|
1380
1419
|
|
|
1381
1420
|
var MAP = {
|
|
1382
1421
|
а: 'f',
|
|
@@ -1671,6 +1710,7 @@
|
|
|
1671
1710
|
forms.FormsModule,
|
|
1672
1711
|
router.RouterModule,
|
|
1673
1712
|
ScrollIntoViewModule,
|
|
1713
|
+
TuiScrollIntoViewLinkModule,
|
|
1674
1714
|
core$1.TuiButtonModule,
|
|
1675
1715
|
core$1.TuiPrimitiveTextfieldModule,
|
|
1676
1716
|
core$1.TuiTextfieldControllerModule,
|
|
@@ -2154,6 +2194,8 @@
|
|
|
2154
2194
|
exports.TuiDocPageComponent = TuiDocPageComponent;
|
|
2155
2195
|
exports.TuiDocPageModule = TuiDocPageModule;
|
|
2156
2196
|
exports.TuiDocPageTabConnectorDirective = TuiDocPageTabConnectorDirective;
|
|
2197
|
+
exports.TuiScrollIntoViewLinkDirective = TuiScrollIntoViewLinkDirective;
|
|
2198
|
+
exports.TuiScrollIntoViewLinkModule = TuiScrollIntoViewLinkModule;
|
|
2157
2199
|
exports.coerceValue = coerceValue;
|
|
2158
2200
|
exports.generateRoutes = generateRoutes;
|
|
2159
2201
|
exports.rawLoad = rawLoad;
|