@taiga-ui/addon-doc 3.59.0 → 3.60.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-components.umd.js +153 -7
- package/bundles/taiga-ui-addon-doc-components.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-services.umd.js +584 -438
- package/bundles/taiga-ui-addon-doc-services.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-utils.umd.js +152 -6
- package/bundles/taiga-ui-addon-doc-utils.umd.js.map +1 -1
- package/esm2015/components/main/main.component.js +1 -1
- package/esm2015/tokens/pages.js +1 -1
- package/fesm2015/taiga-ui-addon-doc-components.js +1 -1
- package/fesm2015/taiga-ui-addon-doc-components.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-tokens.js.map +1 -1
- package/package.json +5 -5
- package/tokens/pages.d.ts +4 -2
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
}]
|
|
123
123
|
}] });
|
|
124
124
|
|
|
125
|
-
|
|
125
|
+
/******************************************************************************
|
|
126
126
|
Copyright (c) Microsoft Corporation.
|
|
127
127
|
|
|
128
128
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
137
137
|
PERFORMANCE OF THIS SOFTWARE.
|
|
138
138
|
***************************************************************************** */
|
|
139
|
-
/* global Reflect, Promise */
|
|
139
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
140
140
|
var extendStatics = function (d, b) {
|
|
141
141
|
extendStatics = Object.setPrototypeOf ||
|
|
142
142
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -189,6 +189,64 @@
|
|
|
189
189
|
function __param(paramIndex, decorator) {
|
|
190
190
|
return function (target, key) { decorator(target, key, paramIndex); };
|
|
191
191
|
}
|
|
192
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
193
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function")
|
|
194
|
+
throw new TypeError("Function expected"); return f; }
|
|
195
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
196
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
197
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
198
|
+
var _, done = false;
|
|
199
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
200
|
+
var context = {};
|
|
201
|
+
for (var p in contextIn)
|
|
202
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
|
203
|
+
for (var p in contextIn.access)
|
|
204
|
+
context.access[p] = contextIn.access[p];
|
|
205
|
+
context.addInitializer = function (f) { if (done)
|
|
206
|
+
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
207
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
208
|
+
if (kind === "accessor") {
|
|
209
|
+
if (result === void 0)
|
|
210
|
+
continue;
|
|
211
|
+
if (result === null || typeof result !== "object")
|
|
212
|
+
throw new TypeError("Object expected");
|
|
213
|
+
if (_ = accept(result.get))
|
|
214
|
+
descriptor.get = _;
|
|
215
|
+
if (_ = accept(result.set))
|
|
216
|
+
descriptor.set = _;
|
|
217
|
+
if (_ = accept(result.init))
|
|
218
|
+
initializers.unshift(_);
|
|
219
|
+
}
|
|
220
|
+
else if (_ = accept(result)) {
|
|
221
|
+
if (kind === "field")
|
|
222
|
+
initializers.unshift(_);
|
|
223
|
+
else
|
|
224
|
+
descriptor[key] = _;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
if (target)
|
|
228
|
+
Object.defineProperty(target, contextIn.name, descriptor);
|
|
229
|
+
done = true;
|
|
230
|
+
}
|
|
231
|
+
;
|
|
232
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
233
|
+
var useValue = arguments.length > 2;
|
|
234
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
235
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
236
|
+
}
|
|
237
|
+
return useValue ? value : void 0;
|
|
238
|
+
}
|
|
239
|
+
;
|
|
240
|
+
function __propKey(x) {
|
|
241
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
242
|
+
}
|
|
243
|
+
;
|
|
244
|
+
function __setFunctionName(f, name, prefix) {
|
|
245
|
+
if (typeof name === "symbol")
|
|
246
|
+
name = name.description ? "[".concat(name.description, "]") : "";
|
|
247
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
248
|
+
}
|
|
249
|
+
;
|
|
192
250
|
function __metadata(metadataKey, metadataValue) {
|
|
193
251
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
194
252
|
return Reflect.metadata(metadataKey, metadataValue);
|
|
@@ -220,7 +278,7 @@
|
|
|
220
278
|
function step(op) {
|
|
221
279
|
if (f)
|
|
222
280
|
throw new TypeError("Generator is already executing.");
|
|
223
|
-
while (_)
|
|
281
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
224
282
|
try {
|
|
225
283
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
226
284
|
return t;
|
|
@@ -284,7 +342,11 @@
|
|
|
284
342
|
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
285
343
|
if (k2 === undefined)
|
|
286
344
|
k2 = k;
|
|
287
|
-
Object.
|
|
345
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
346
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
347
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
348
|
+
}
|
|
349
|
+
Object.defineProperty(o, k2, desc);
|
|
288
350
|
}) : (function (o, m, k, k2) {
|
|
289
351
|
if (k2 === undefined)
|
|
290
352
|
k2 = k;
|
|
@@ -357,7 +419,7 @@
|
|
|
357
419
|
ar[i] = from[i];
|
|
358
420
|
}
|
|
359
421
|
}
|
|
360
|
-
return to.concat(ar || from);
|
|
422
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
361
423
|
}
|
|
362
424
|
function __await(v) {
|
|
363
425
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -384,7 +446,7 @@
|
|
|
384
446
|
function __asyncDelegator(o) {
|
|
385
447
|
var i, p;
|
|
386
448
|
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
387
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done:
|
|
449
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
388
450
|
}
|
|
389
451
|
function __asyncValues(o) {
|
|
390
452
|
if (!Symbol.asyncIterator)
|
|
@@ -439,6 +501,90 @@
|
|
|
439
501
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
440
502
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
441
503
|
}
|
|
504
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
505
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
506
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
507
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
508
|
+
}
|
|
509
|
+
function __addDisposableResource(env, value, async) {
|
|
510
|
+
if (value !== null && value !== void 0) {
|
|
511
|
+
if (typeof value !== "object" && typeof value !== "function")
|
|
512
|
+
throw new TypeError("Object expected.");
|
|
513
|
+
var dispose;
|
|
514
|
+
if (async) {
|
|
515
|
+
if (!Symbol.asyncDispose)
|
|
516
|
+
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
517
|
+
dispose = value[Symbol.asyncDispose];
|
|
518
|
+
}
|
|
519
|
+
if (dispose === void 0) {
|
|
520
|
+
if (!Symbol.dispose)
|
|
521
|
+
throw new TypeError("Symbol.dispose is not defined.");
|
|
522
|
+
dispose = value[Symbol.dispose];
|
|
523
|
+
}
|
|
524
|
+
if (typeof dispose !== "function")
|
|
525
|
+
throw new TypeError("Object not disposable.");
|
|
526
|
+
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
527
|
+
}
|
|
528
|
+
else if (async) {
|
|
529
|
+
env.stack.push({ async: true });
|
|
530
|
+
}
|
|
531
|
+
return value;
|
|
532
|
+
}
|
|
533
|
+
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
534
|
+
var e = new Error(message);
|
|
535
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
536
|
+
};
|
|
537
|
+
function __disposeResources(env) {
|
|
538
|
+
function fail(e) {
|
|
539
|
+
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
540
|
+
env.hasError = true;
|
|
541
|
+
}
|
|
542
|
+
function next() {
|
|
543
|
+
while (env.stack.length) {
|
|
544
|
+
var rec = env.stack.pop();
|
|
545
|
+
try {
|
|
546
|
+
var result = rec.dispose && rec.dispose.call(rec.value);
|
|
547
|
+
if (rec.async)
|
|
548
|
+
return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
|
|
549
|
+
}
|
|
550
|
+
catch (e) {
|
|
551
|
+
fail(e);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
if (env.hasError)
|
|
555
|
+
throw env.error;
|
|
556
|
+
}
|
|
557
|
+
return next();
|
|
558
|
+
}
|
|
559
|
+
var tslib_es6 = {
|
|
560
|
+
__extends: __extends,
|
|
561
|
+
__assign: __assign,
|
|
562
|
+
__rest: __rest,
|
|
563
|
+
__decorate: __decorate,
|
|
564
|
+
__param: __param,
|
|
565
|
+
__metadata: __metadata,
|
|
566
|
+
__awaiter: __awaiter,
|
|
567
|
+
__generator: __generator,
|
|
568
|
+
__createBinding: __createBinding,
|
|
569
|
+
__exportStar: __exportStar,
|
|
570
|
+
__values: __values,
|
|
571
|
+
__read: __read,
|
|
572
|
+
__spread: __spread,
|
|
573
|
+
__spreadArrays: __spreadArrays,
|
|
574
|
+
__spreadArray: __spreadArray,
|
|
575
|
+
__await: __await,
|
|
576
|
+
__asyncGenerator: __asyncGenerator,
|
|
577
|
+
__asyncDelegator: __asyncDelegator,
|
|
578
|
+
__asyncValues: __asyncValues,
|
|
579
|
+
__makeTemplateObject: __makeTemplateObject,
|
|
580
|
+
__importStar: __importStar,
|
|
581
|
+
__importDefault: __importDefault,
|
|
582
|
+
__classPrivateFieldGet: __classPrivateFieldGet,
|
|
583
|
+
__classPrivateFieldSet: __classPrivateFieldSet,
|
|
584
|
+
__classPrivateFieldIn: __classPrivateFieldIn,
|
|
585
|
+
__addDisposableResource: __addDisposableResource,
|
|
586
|
+
__disposeResources: __disposeResources,
|
|
587
|
+
};
|
|
442
588
|
|
|
443
589
|
var COPIED_TIMEOUT = 1500;
|
|
444
590
|
var TuiDocCopyComponent = /** @class */ (function () {
|
|
@@ -2272,7 +2418,7 @@
|
|
|
2272
2418
|
useExisting: i0.forwardRef(function () { return TuiDocMainComponent; }),
|
|
2273
2419
|
},
|
|
2274
2420
|
i6.TuiSwipeService,
|
|
2275
|
-
], ngImport: i0__namespace, template: "<tui-theme-night *ngIf=\"theme.isDefaultTheme && night.useDefaultNightTheme && (night$ | async)\"></tui-theme-night>\n<tui-root>\n <div class=\"tui-doc-page\">\n <tui-doc-navigation class=\"tui-doc-navigation\">\n <ng-content select=\"tuiDocNavigation\"></ng-content>\n </tui-doc-navigation>\n <div class=\"tui-doc-content\">\n <router-outlet class=\"tui-doc-outlet\"></router-outlet>\n </div>\n </div>\n <header tuiDocHeader>\n <ng-content select=\"tuiDocHeader\"></ng-content>\n <button\n appearance=\"secondary\"\n shape=\"rounded\"\n size=\"s\"\n tuiIconButton\n tuiMode=\"onLight\"\n type=\"button\"\n class=\"tui-doc-night-mode-switch\"\n [icon]=\"icon\"\n (click)=\"night.toggle()\"\n ></button>\n </header>\n <ng-container ngProjectAs=\"tuiOverContent\">\n <ng-content select=\"tuiOverContent\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverDialogs\">\n <ng-content select=\"tuiOverDialogs\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverAlerts\">\n <ng-content select=\"tuiOverAlerts\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverPortals\">\n <ng-content select=\"tuiOverPortals\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverHints\">\n <ng-content select=\"tuiOverHints\"></ng-content>\n </ng-container>\n</tui-root>\n", styles: ["
|
|
2421
|
+
], ngImport: i0__namespace, template: "<tui-theme-night *ngIf=\"theme.isDefaultTheme && night.useDefaultNightTheme && (night$ | async)\"></tui-theme-night>\n<tui-root>\n <div class=\"tui-doc-page\">\n <tui-doc-navigation class=\"tui-doc-navigation\">\n <ng-content select=\"tuiDocNavigation\"></ng-content>\n </tui-doc-navigation>\n <div class=\"tui-doc-content\">\n <router-outlet class=\"tui-doc-outlet\"></router-outlet>\n </div>\n </div>\n <header tuiDocHeader>\n <ng-content select=\"tuiDocHeader\"></ng-content>\n <button\n appearance=\"secondary\"\n shape=\"rounded\"\n size=\"s\"\n tuiIconButton\n tuiMode=\"onLight\"\n type=\"button\"\n class=\"tui-doc-night-mode-switch\"\n [icon]=\"icon\"\n (click)=\"night.toggle()\"\n ></button>\n </header>\n <ng-container ngProjectAs=\"tuiOverContent\">\n <ng-content select=\"tuiOverContent\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverDialogs\">\n <ng-content select=\"tuiOverDialogs\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverAlerts\">\n <ng-content select=\"tuiOverAlerts\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverPortals\">\n <ng-content select=\"tuiOverPortals\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverHints\">\n <ng-content select=\"tuiOverHints\"></ng-content>\n </ng-container>\n</tui-root>\n", styles: ["@keyframes tuiShaking{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-.3125rem)}20%,40%,60%,80%{transform:translate(.3125rem)}}html,body{scroll-padding-top:4rem;background:var(--tui-base-01);height:auto}tui-root>tui-scroll-controls>.t-bar_vertical{top:4rem!important}tui-doc-main{display:block}code:not(pre code):not(.hljs):not([class*=\"language-\"]){transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:inline-flex;background:var(--tui-base-02);color:var(--tui-text-02);vertical-align:middle;align-items:center;border-radius:.25rem;font-weight:500;outline:1px solid var(--tui-base-04);font-size:.75rem;padding:0 .3125rem;margin:.125rem .1875rem;text-wrap:wrap}tui-notification code:not(pre code):not(.hljs):not([class*=\"language-\"]){mix-blend-mode:luminosity}a code:not(pre code):not(.hljs):not([class*=\"language-\"]){color:var(--tui-link)}button:focus code,a:focus code{background:var(--tui-base-01)}.tui-doc-page{isolation:isolate;padding-top:4rem}tui-doc-navigation.tui-doc-navigation{position:fixed;top:4rem;bottom:0;width:16.25rem;border-right:1px solid var(--tui-base-03)}@media screen and (max-width: 47.9625em){tui-doc-navigation.tui-doc-navigation{display:none}}.tui-doc-content{margin-left:16.25rem}@media screen and (max-width: 47.9625em){.tui-doc-content{margin-left:0}}.tui-doc-outlet+*{display:block}.tui-doc-night-mode-switch{margin-left:1rem}.tui-doc-night-mode-switch tui-svg{color:var(--tui-text-02)}tui-doc-code .hljs-tag{background:none}tui-doc-code .hljs{display:block;overflow-x:auto;padding:.5em;color:var(--tui-text-01);background-color:var(--tui-clear)}tui-doc-code .hljs.hljs-line-numbers{background:transparent}tui-doc-code .hljs-subst,tui-doc-code .hljs-title{font-weight:normal;color:var(--tui-text-01)}tui-doc-code .hljs-property{color:var(--tui-support-14)}tui-doc-code .hljs-comment,tui-doc-code .hljs-quote{color:var(--tui-text-02);font-style:italic}tui-doc-code .hljs-meta{color:#e38162}tui-doc-code .hljs-section,tui-doc-code .hljs-name,tui-doc-code .hljs-literal,tui-doc-code .hljs-keyword,tui-doc-code .hljs-selector-tag,tui-doc-code .hljs-type,tui-doc-code .hljs-selector-id,tui-doc-code .hljs-selector-class{font-weight:bold;color:var(--tui-link)}tui-doc-code .hljs-attr{color:var(--tui-link)}tui-doc-code .hljs-attribute,tui-doc-code .hljs-number,tui-doc-code .hljs-regexp,tui-doc-code .hljs-link,tui-doc-code .hljs-built_in{font-weight:bold;color:var(--tui-support-06)}tui-doc-code .hljs-number,tui-doc-code .hljs-regexp,tui-doc-code .hljs-link{font-weight:normal}tui-doc-code .hljs-string{color:var(--tui-positive);font-weight:bold}tui-doc-code .hljs-symbol,tui-doc-code .hljs-bullet,tui-doc-code .hljs-formula{color:var(--tui-text-01);background:var(--tui-base-02);font-style:italic}tui-doc-code .hljs-doctag{text-decoration:underline}tui-doc-code .hljs-variable,tui-doc-code .hljs-template-variable{color:var(--tui-link-hover)}tui-doc-code [data-mode=onDark] .hljs-variable,tui-doc-code [data-mode=onDark] .hljs-template-variable{color:var(--tui-warning-fill)}tui-doc-code .hljs-addition{background:var(--tui-success-bg)}tui-doc-code .hljs-deletion{background:var(--tui-error-bg)}tui-doc-code .hljs-emphasis{font-style:italic}tui-doc-code .hljs-strong{font-weight:bold}tui-doc-code .hljs .hljs-line-numbers{padding:0}tui-doc-code .hljs-ln-numbers{vertical-align:top;opacity:.3;text-align:right;padding-right:1em!important}\n"], components: [{ type: i2__namespace.TuiThemeNightComponent, selector: "tui-theme-night" }, { type: i2__namespace.TuiRootComponent, selector: "tui-root" }, { type: TuiDocNavigationComponent, selector: "tui-doc-navigation" }, { type: TuiDocHeaderComponent, selector: "header[tuiDocHeader]" }, { type: i2__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate"], exportAs: ["outlet"] }, { type: i2__namespace.TuiModeDirective, selector: "[tuiMode]", inputs: ["tuiMode"] }], pipes: { "async": i4__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.Default, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
2276
2422
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiDocMainComponent, decorators: [{
|
|
2277
2423
|
type: i0.Component,
|
|
2278
2424
|
args: [{
|