@taiga-ui/kit 3.86.0 → 3.87.0-canary.95b57e0
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-kit-components-accordion.umd.js +771 -625
- package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-action.umd.js +598 -452
- package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.js +640 -494
- package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +563 -417
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js +747 -601
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js +725 -579
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-carousel.umd.js +825 -679
- package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +645 -499
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +585 -439
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.js +608 -462
- package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.js +834 -688
- package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +656 -510
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-elastic-container.umd.js +587 -441
- package/bundles/taiga-ui-kit-components-elastic-container.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-files.umd.js +806 -660
- package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-filter.umd.js +607 -461
- package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-copy.umd.js +706 -560
- package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.js +809 -663
- package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-multi.umd.js +828 -682
- package/bundles/taiga-ui-kit-components-input-date-multi.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js +973 -827
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js +1042 -896
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.js +959 -813
- package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-files.umd.js +975 -829
- package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-inline.umd.js +612 -466
- package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js +755 -609
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month.umd.js +788 -642
- package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.js +942 -796
- package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.js +720 -574
- package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +811 -665
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.js +913 -767
- package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.js +796 -650
- package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.js +737 -591
- package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.js +1109 -963
- package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.js +1023 -877
- package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-year.umd.js +705 -559
- package/bundles/taiga-ui-kit-components-input-year.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input.umd.js +661 -515
- package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-items-with-more.umd.js +689 -543
- package/bundles/taiga-ui-kit-components-items-with-more.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js +742 -596
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +544 -398
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.js +1340 -1194
- package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.js +810 -664
- package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +152 -6
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.js +199 -32
- package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-push.umd.js +152 -6
- package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-block.umd.js +645 -499
- package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +616 -470
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-list.umd.js +628 -482
- package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.js +689 -543
- package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-range.umd.js +811 -665
- package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-rating.umd.js +646 -500
- package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-routable-dialog.umd.js +586 -440
- package/bundles/taiga-ui-kit-components-routable-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.js +933 -787
- package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.js +943 -797
- package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.js +764 -618
- package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.js +152 -6
- package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-textarea.umd.js +969 -820
- package/bundles/taiga-ui-kit-components-textarea.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tiles.umd.js +839 -693
- package/bundles/taiga-ui-kit-components-tiles.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.js +711 -565
- package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-constants.umd.js +152 -6
- package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js +637 -491
- package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +605 -459
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js +540 -394
- package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js +693 -547
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +616 -470
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js +524 -378
- package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-mask.umd.js +152 -6
- package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-math.umd.js +152 -6
- package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +152 -6
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
- package/components/progress/index.d.ts +1 -0
- package/components/progress/progress-bar/progress-bar.component.d.ts +6 -4
- package/components/progress/progress-circle/progress-circle.component.d.ts +3 -1
- package/components/progress/progress.options.d.ts +9 -0
- package/esm2015/components/checkbox-block/checkbox-block.component.js +1 -1
- package/esm2015/components/progress/index.js +2 -1
- package/esm2015/components/progress/progress-bar/progress-bar.component.js +11 -5
- package/esm2015/components/progress/progress-circle/progress-circle.component.js +10 -5
- package/esm2015/components/progress/progress.options.js +10 -0
- package/esm2015/components/radio-block/radio-block.component.js +1 -1
- package/esm2015/components/textarea/deprecated.js +7 -4
- package/esm2015/components/textarea/textarea.component.js +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox-block.js +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-progress.js +28 -10
- package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-block.js +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-textarea.js +7 -4
- package/fesm2015/taiga-ui-kit-components-textarea.js.map +1 -1
- package/package.json +42 -42
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('rxjs'), require('@ng-web-apis/common'), require('rxjs/operators')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/progress', ['exports', '@angular/common', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core', 'rxjs', '@ng-web-apis/common', 'rxjs/operators'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = global["taiga-ui"].kit.components || {}, global["taiga-ui"].kit.components.progress = {}), global.ng.common, global.ng.core, global.i1
|
|
5
|
-
})(this, (function (exports, i1$2, i0, i1
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = global["taiga-ui"].kit.components || {}, global["taiga-ui"].kit.components.progress = {}), global.ng.common, global.ng.core, global.i1, global.core, global.rxjs, global.common, global.rxjs.operators));
|
|
5
|
+
})(this, (function (exports, i1$2, i0, i1, core, i1$1, common, operators) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -24,18 +24,29 @@
|
|
|
24
24
|
|
|
25
25
|
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
26
26
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
27
|
-
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1
|
|
28
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
27
|
+
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1);
|
|
28
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
|
|
29
|
+
|
|
30
|
+
var TUI_PROGRESS_DEFAULT_OPTIONS = {
|
|
31
|
+
color: null,
|
|
32
|
+
size: 'm',
|
|
33
|
+
};
|
|
34
|
+
var TUI_PROGRESS_OPTIONS = i1.tuiCreateToken(TUI_PROGRESS_DEFAULT_OPTIONS);
|
|
35
|
+
function tuiProgressOptionsProvider(options) {
|
|
36
|
+
return i1.tuiProvideOptions(TUI_PROGRESS_OPTIONS, options, TUI_PROGRESS_DEFAULT_OPTIONS);
|
|
37
|
+
}
|
|
29
38
|
|
|
30
39
|
var TuiProgressBarComponent = /** @class */ (function () {
|
|
31
|
-
function TuiProgressBarComponent(mode
|
|
40
|
+
function TuiProgressBarComponent(mode$, options) {
|
|
32
41
|
this.mode$ = mode$;
|
|
33
|
-
this.
|
|
42
|
+
this.options = options;
|
|
43
|
+
this.color = this.options.color;
|
|
44
|
+
this.size = this.options.size;
|
|
34
45
|
}
|
|
35
46
|
return TuiProgressBarComponent;
|
|
36
47
|
}());
|
|
37
|
-
TuiProgressBarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiProgressBarComponent, deps: [{ token: core.TUI_MODE }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
38
|
-
TuiProgressBarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiProgressBarComponent, selector: "progress[tuiProgressBar]", inputs: { color: "color", size: "size" }, host: { listeners: { "$.data-mode.attr": "mode$" }, properties: { "style.--tui-progress-color": "this.color", "attr.data-size": "this.size" } }, providers: [core.MODE_PROVIDER], ngImport: i0__namespace, template: '', isInline: true, styles: ["@keyframes tuiIndeterminateAnimation{50%{background-position:left}}:host{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;display:block;width:100%;height:var(--t-height);color:var(--tui-primary);background:var(--tui-clear);-webkit-clip-path:inset(0 round var(--tui-radius-xs));clip-path:inset(0 round var(--tui-radius-xs));overflow:hidden}:host::-webkit-progress-value{-webkit-transition:width var(--tui-duration) linear;transition:width var(--tui-duration) linear}:host::-webkit-progress-value{background:var(--tui-progress-color, currentColor)}:host::-moz-progress-bar{background:var(--tui-progress-color, currentColor)}:host[data-mode=onDark]{--tui-clear: var(--tui-clear-inverse)}:host[data-size=m]{--t-height: 1.5rem}:host[data-size=s]{--t-height: .5rem}:host[data-size=s]::-webkit-progress-value{border-radius:var(--tui-radius-xs)}:host[data-size=s]::-moz-progress-bar{border-radius:var(--tui-radius-xs)}:host[new]{-webkit-clip-path:inset(0 .5px round var(--tui-radius-m));clip-path:inset(0 .5px round var(--tui-radius-m));border-radius:1rem}:host[new]::-webkit-progress-value{border-radius:inherit}:host[new]::-moz-progress-bar{border-radius:inherit}:host[new][data-size=xs]{--t-height: .25rem}:host[new][data-size=s]{--t-height: .5rem}:host[new][data-size=m]{--t-height: .75rem}:host[new][data-size=l]{--t-height: 1rem}:host[new][data-size=xl]{--t-height: 1.25rem}:host[new][data-size=xxl]{--t-height: 1.5rem}:host:indeterminate{background:linear-gradient(to right,var(--tui-clear) 0 45%,var(--tui-progress-color, currentColor) 45% 55%,var(--tui-clear) 55% 100%) right;background-size:225%;animation:tuiIndeterminateAnimation 3s infinite ease-in-out}:host:indeterminate::-webkit-progress-value{background:transparent}:host:indeterminate::-moz-progress-bar{background:transparent}:host::-webkit-progress-inner-element{border-radius:inherit}:host::-webkit-progress-bar{background:transparent;border-radius:inherit}:host-context(label[tuiProgressLabel]):not(:first-child){position:absolute;top:0;left:0;width:100%;height:100%;background:transparent}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
48
|
+
TuiProgressBarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiProgressBarComponent, deps: [{ token: core.TUI_MODE }, { token: TUI_PROGRESS_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
49
|
+
TuiProgressBarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiProgressBarComponent, selector: "progress[tuiProgressBar]", inputs: { color: "color", size: "size" }, host: { listeners: { "$.data-mode.attr": "mode$" }, properties: { "style.--tui-progress-color": "this.color", "attr.data-size": "this.size" } }, providers: [core.MODE_PROVIDER], ngImport: i0__namespace, template: '', isInline: true, styles: ["@keyframes tuiIndeterminateAnimation{50%{background-position:left}}:host{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;display:block;width:100%;height:var(--t-height);color:var(--tui-primary);background:var(--tui-clear);-webkit-clip-path:inset(0 round var(--tui-radius-xs));clip-path:inset(0 round var(--tui-radius-xs));overflow:hidden;flex-shrink:0}:host::-webkit-progress-value{-webkit-transition:width var(--tui-duration) linear;transition:width var(--tui-duration) linear}:host::-webkit-progress-value{background:var(--tui-progress-color, currentColor)}:host::-moz-progress-bar{background:var(--tui-progress-color, currentColor)}:host[data-mode=onDark]{--tui-clear: var(--tui-clear-inverse)}:host[data-size=xxs]{--t-height: .125rem}:host[data-size=m]{--t-height: 1.5rem}:host[data-size=s]{--t-height: .5rem}:host[data-size=s]::-webkit-progress-value{border-radius:var(--tui-radius-xs)}:host[data-size=s]::-moz-progress-bar{border-radius:var(--tui-radius-xs)}:host[new]{-webkit-clip-path:inset(0 .5px round var(--tui-radius-m));clip-path:inset(0 .5px round var(--tui-radius-m));border-radius:1rem}:host[new]::-webkit-progress-value{border-radius:inherit}:host[new]::-moz-progress-bar{border-radius:inherit}:host[new][data-size=xs]{--t-height: .25rem}:host[new][data-size=s]{--t-height: .5rem}:host[new][data-size=m]{--t-height: .75rem}:host[new][data-size=l]{--t-height: 1rem}:host[new][data-size=xl]{--t-height: 1.25rem}:host[new][data-size=xxl]{--t-height: 1.5rem}:host:indeterminate{background:linear-gradient(to right,var(--tui-clear) 0 45%,var(--tui-progress-color, currentColor) 45% 55%,var(--tui-clear) 55% 100%) right;background-size:225%;animation:tuiIndeterminateAnimation 3s infinite ease-in-out}:host:indeterminate::-webkit-progress-value{background:transparent}:host:indeterminate::-moz-progress-bar{background:transparent}:host::-webkit-progress-inner-element{border-radius:inherit}:host::-webkit-progress-bar{background:transparent;border-radius:inherit}:host-context(label[tuiProgressLabel]):not(:first-child){position:absolute;top:0;left:0;width:100%;height:100%;background:transparent}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
39
50
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiProgressBarComponent, decorators: [{
|
|
40
51
|
type: i0.Component,
|
|
41
52
|
args: [{
|
|
@@ -52,6 +63,9 @@
|
|
|
52
63
|
return [{ type: i1__namespace.Observable, decorators: [{
|
|
53
64
|
type: i0.Inject,
|
|
54
65
|
args: [core.TUI_MODE]
|
|
66
|
+
}] }, { type: undefined, decorators: [{
|
|
67
|
+
type: i0.Inject,
|
|
68
|
+
args: [TUI_PROGRESS_OPTIONS]
|
|
55
69
|
}] }];
|
|
56
70
|
}, propDecorators: { color: [{
|
|
57
71
|
type: i0.Input
|
|
@@ -65,7 +79,7 @@
|
|
|
65
79
|
args: ['attr.data-size']
|
|
66
80
|
}] } });
|
|
67
81
|
|
|
68
|
-
|
|
82
|
+
/******************************************************************************
|
|
69
83
|
Copyright (c) Microsoft Corporation.
|
|
70
84
|
|
|
71
85
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -79,7 +93,7 @@
|
|
|
79
93
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
80
94
|
PERFORMANCE OF THIS SOFTWARE.
|
|
81
95
|
***************************************************************************** */
|
|
82
|
-
/* global Reflect, Promise */
|
|
96
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
83
97
|
var extendStatics = function (d, b) {
|
|
84
98
|
extendStatics = Object.setPrototypeOf ||
|
|
85
99
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -132,6 +146,64 @@
|
|
|
132
146
|
function __param(paramIndex, decorator) {
|
|
133
147
|
return function (target, key) { decorator(target, key, paramIndex); };
|
|
134
148
|
}
|
|
149
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
150
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function")
|
|
151
|
+
throw new TypeError("Function expected"); return f; }
|
|
152
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
153
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
154
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
155
|
+
var _, done = false;
|
|
156
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
157
|
+
var context = {};
|
|
158
|
+
for (var p in contextIn)
|
|
159
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
|
160
|
+
for (var p in contextIn.access)
|
|
161
|
+
context.access[p] = contextIn.access[p];
|
|
162
|
+
context.addInitializer = function (f) { if (done)
|
|
163
|
+
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
164
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
165
|
+
if (kind === "accessor") {
|
|
166
|
+
if (result === void 0)
|
|
167
|
+
continue;
|
|
168
|
+
if (result === null || typeof result !== "object")
|
|
169
|
+
throw new TypeError("Object expected");
|
|
170
|
+
if (_ = accept(result.get))
|
|
171
|
+
descriptor.get = _;
|
|
172
|
+
if (_ = accept(result.set))
|
|
173
|
+
descriptor.set = _;
|
|
174
|
+
if (_ = accept(result.init))
|
|
175
|
+
initializers.unshift(_);
|
|
176
|
+
}
|
|
177
|
+
else if (_ = accept(result)) {
|
|
178
|
+
if (kind === "field")
|
|
179
|
+
initializers.unshift(_);
|
|
180
|
+
else
|
|
181
|
+
descriptor[key] = _;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
if (target)
|
|
185
|
+
Object.defineProperty(target, contextIn.name, descriptor);
|
|
186
|
+
done = true;
|
|
187
|
+
}
|
|
188
|
+
;
|
|
189
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
190
|
+
var useValue = arguments.length > 2;
|
|
191
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
192
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
193
|
+
}
|
|
194
|
+
return useValue ? value : void 0;
|
|
195
|
+
}
|
|
196
|
+
;
|
|
197
|
+
function __propKey(x) {
|
|
198
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
199
|
+
}
|
|
200
|
+
;
|
|
201
|
+
function __setFunctionName(f, name, prefix) {
|
|
202
|
+
if (typeof name === "symbol")
|
|
203
|
+
name = name.description ? "[".concat(name.description, "]") : "";
|
|
204
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
205
|
+
}
|
|
206
|
+
;
|
|
135
207
|
function __metadata(metadataKey, metadataValue) {
|
|
136
208
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
137
209
|
return Reflect.metadata(metadataKey, metadataValue);
|
|
@@ -163,7 +235,7 @@
|
|
|
163
235
|
function step(op) {
|
|
164
236
|
if (f)
|
|
165
237
|
throw new TypeError("Generator is already executing.");
|
|
166
|
-
while (_)
|
|
238
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
167
239
|
try {
|
|
168
240
|
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)
|
|
169
241
|
return t;
|
|
@@ -227,7 +299,11 @@
|
|
|
227
299
|
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
228
300
|
if (k2 === undefined)
|
|
229
301
|
k2 = k;
|
|
230
|
-
Object.
|
|
302
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
303
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
304
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
305
|
+
}
|
|
306
|
+
Object.defineProperty(o, k2, desc);
|
|
231
307
|
}) : (function (o, m, k, k2) {
|
|
232
308
|
if (k2 === undefined)
|
|
233
309
|
k2 = k;
|
|
@@ -300,7 +376,7 @@
|
|
|
300
376
|
ar[i] = from[i];
|
|
301
377
|
}
|
|
302
378
|
}
|
|
303
|
-
return to.concat(ar || from);
|
|
379
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
304
380
|
}
|
|
305
381
|
function __await(v) {
|
|
306
382
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -327,7 +403,7 @@
|
|
|
327
403
|
function __asyncDelegator(o) {
|
|
328
404
|
var i, p;
|
|
329
405
|
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
330
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done:
|
|
406
|
+
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; }
|
|
331
407
|
}
|
|
332
408
|
function __asyncValues(o) {
|
|
333
409
|
if (!Symbol.asyncIterator)
|
|
@@ -382,6 +458,90 @@
|
|
|
382
458
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
383
459
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
384
460
|
}
|
|
461
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
462
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
463
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
464
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
465
|
+
}
|
|
466
|
+
function __addDisposableResource(env, value, async) {
|
|
467
|
+
if (value !== null && value !== void 0) {
|
|
468
|
+
if (typeof value !== "object" && typeof value !== "function")
|
|
469
|
+
throw new TypeError("Object expected.");
|
|
470
|
+
var dispose;
|
|
471
|
+
if (async) {
|
|
472
|
+
if (!Symbol.asyncDispose)
|
|
473
|
+
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
474
|
+
dispose = value[Symbol.asyncDispose];
|
|
475
|
+
}
|
|
476
|
+
if (dispose === void 0) {
|
|
477
|
+
if (!Symbol.dispose)
|
|
478
|
+
throw new TypeError("Symbol.dispose is not defined.");
|
|
479
|
+
dispose = value[Symbol.dispose];
|
|
480
|
+
}
|
|
481
|
+
if (typeof dispose !== "function")
|
|
482
|
+
throw new TypeError("Object not disposable.");
|
|
483
|
+
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
484
|
+
}
|
|
485
|
+
else if (async) {
|
|
486
|
+
env.stack.push({ async: true });
|
|
487
|
+
}
|
|
488
|
+
return value;
|
|
489
|
+
}
|
|
490
|
+
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
491
|
+
var e = new Error(message);
|
|
492
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
493
|
+
};
|
|
494
|
+
function __disposeResources(env) {
|
|
495
|
+
function fail(e) {
|
|
496
|
+
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
497
|
+
env.hasError = true;
|
|
498
|
+
}
|
|
499
|
+
function next() {
|
|
500
|
+
while (env.stack.length) {
|
|
501
|
+
var rec = env.stack.pop();
|
|
502
|
+
try {
|
|
503
|
+
var result = rec.dispose && rec.dispose.call(rec.value);
|
|
504
|
+
if (rec.async)
|
|
505
|
+
return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
|
|
506
|
+
}
|
|
507
|
+
catch (e) {
|
|
508
|
+
fail(e);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
if (env.hasError)
|
|
512
|
+
throw env.error;
|
|
513
|
+
}
|
|
514
|
+
return next();
|
|
515
|
+
}
|
|
516
|
+
var tslib_es6 = {
|
|
517
|
+
__extends: __extends,
|
|
518
|
+
__assign: __assign,
|
|
519
|
+
__rest: __rest,
|
|
520
|
+
__decorate: __decorate,
|
|
521
|
+
__param: __param,
|
|
522
|
+
__metadata: __metadata,
|
|
523
|
+
__awaiter: __awaiter,
|
|
524
|
+
__generator: __generator,
|
|
525
|
+
__createBinding: __createBinding,
|
|
526
|
+
__exportStar: __exportStar,
|
|
527
|
+
__values: __values,
|
|
528
|
+
__read: __read,
|
|
529
|
+
__spread: __spread,
|
|
530
|
+
__spreadArrays: __spreadArrays,
|
|
531
|
+
__spreadArray: __spreadArray,
|
|
532
|
+
__await: __await,
|
|
533
|
+
__asyncGenerator: __asyncGenerator,
|
|
534
|
+
__asyncDelegator: __asyncDelegator,
|
|
535
|
+
__asyncValues: __asyncValues,
|
|
536
|
+
__makeTemplateObject: __makeTemplateObject,
|
|
537
|
+
__importStar: __importStar,
|
|
538
|
+
__importDefault: __importDefault,
|
|
539
|
+
__classPrivateFieldGet: __classPrivateFieldGet,
|
|
540
|
+
__classPrivateFieldSet: __classPrivateFieldSet,
|
|
541
|
+
__classPrivateFieldIn: __classPrivateFieldIn,
|
|
542
|
+
__addDisposableResource: __addDisposableResource,
|
|
543
|
+
__disposeResources: __disposeResources,
|
|
544
|
+
};
|
|
385
545
|
|
|
386
546
|
function calculateColorSegments(colors, progressWidth) {
|
|
387
547
|
var segmentWidth = Math.ceil(progressWidth / colors.length);
|
|
@@ -394,8 +554,8 @@
|
|
|
394
554
|
this.resize$ = resize$;
|
|
395
555
|
this.userAgent = userAgent;
|
|
396
556
|
// TODO: drop support of legacy Edge (EdgeHTML) in v4.x
|
|
397
|
-
this.isOldBrowsers = i1
|
|
398
|
-
this.colors$ = new i1.BehaviorSubject([]);
|
|
557
|
+
this.isOldBrowsers = i1.tuiIsEdgeOlderThan(i1.CHROMIUM_EDGE_START_VERSION, this.userAgent);
|
|
558
|
+
this.colors$ = new i1$1.BehaviorSubject([]);
|
|
399
559
|
}
|
|
400
560
|
Object.defineProperty(TuiProgressColorSegmentsDirective.prototype, "colors", {
|
|
401
561
|
set: function (colors) {
|
|
@@ -407,7 +567,7 @@
|
|
|
407
567
|
Object.defineProperty(TuiProgressColorSegmentsDirective.prototype, "calcSegments$", {
|
|
408
568
|
get: function () {
|
|
409
569
|
var _this = this;
|
|
410
|
-
return i1.combineLatest([
|
|
570
|
+
return i1$1.combineLatest([
|
|
411
571
|
this.colors$,
|
|
412
572
|
this.resize$.pipe(operators.map(function () { return _this.el.nativeElement.offsetWidth; }), operators.distinctUntilChanged()),
|
|
413
573
|
]).pipe(operators.map(function (_a) {
|
|
@@ -420,16 +580,16 @@
|
|
|
420
580
|
});
|
|
421
581
|
return TuiProgressColorSegmentsDirective;
|
|
422
582
|
}());
|
|
423
|
-
TuiProgressColorSegmentsDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiProgressColorSegmentsDirective, deps: [{ token: i0.ElementRef }, { token: i1
|
|
424
|
-
TuiProgressColorSegmentsDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiProgressColorSegmentsDirective, selector: "progress[tuiProgressBar][tuiProgressColorSegments]", inputs: { colors: ["tuiProgressColorSegments", "colors"] }, host: { listeners: { "$.style.--tui-progress-color": "0" }, properties: { "$.style.--tui-progress-color": "calcSegments$" } }, providers: [i1
|
|
583
|
+
TuiProgressColorSegmentsDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiProgressColorSegmentsDirective, deps: [{ token: i0.ElementRef }, { token: i1.TuiResizeService }, { token: common.USER_AGENT }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
584
|
+
TuiProgressColorSegmentsDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiProgressColorSegmentsDirective, selector: "progress[tuiProgressBar][tuiProgressColorSegments]", inputs: { colors: ["tuiProgressColorSegments", "colors"] }, host: { listeners: { "$.style.--tui-progress-color": "0" }, properties: { "$.style.--tui-progress-color": "calcSegments$" } }, providers: [i1.TuiDestroyService, i1.TuiResizeService], ngImport: i0__namespace });
|
|
425
585
|
__decorate([
|
|
426
|
-
i1
|
|
586
|
+
i1.tuiPure
|
|
427
587
|
], TuiProgressColorSegmentsDirective.prototype, "calcSegments$", null);
|
|
428
588
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiProgressColorSegmentsDirective, decorators: [{
|
|
429
589
|
type: i0.Directive,
|
|
430
590
|
args: [{
|
|
431
591
|
selector: 'progress[tuiProgressBar][tuiProgressColorSegments]',
|
|
432
|
-
providers: [i1
|
|
592
|
+
providers: [i1.TuiDestroyService, i1.TuiResizeService],
|
|
433
593
|
host: {
|
|
434
594
|
'[$.style.--tui-progress-color]': 'calcSegments$',
|
|
435
595
|
'($.style.--tui-progress-color)': '0',
|
|
@@ -441,7 +601,7 @@
|
|
|
441
601
|
args: [i0.ElementRef]
|
|
442
602
|
}] }, { type: i1__namespace.Observable, decorators: [{
|
|
443
603
|
type: i0.Inject,
|
|
444
|
-
args: [i1
|
|
604
|
+
args: [i1.TuiResizeService]
|
|
445
605
|
}] }, { type: undefined, decorators: [{
|
|
446
606
|
type: i0.Inject,
|
|
447
607
|
args: [common.USER_AGENT]
|
|
@@ -452,16 +612,17 @@
|
|
|
452
612
|
}], calcSegments$: [] } });
|
|
453
613
|
|
|
454
614
|
var TuiProgressCircleComponent = /** @class */ (function () {
|
|
455
|
-
function TuiProgressCircleComponent(userAgent, win, el, mode
|
|
615
|
+
function TuiProgressCircleComponent(userAgent, win, el, mode$, options) {
|
|
456
616
|
this.userAgent = userAgent;
|
|
457
617
|
this.win = win;
|
|
458
618
|
this.el = el;
|
|
459
619
|
this.mode$ = mode$;
|
|
620
|
+
this.options = options;
|
|
460
621
|
this.value = 0;
|
|
461
622
|
this.max = 1;
|
|
462
|
-
this.color =
|
|
463
|
-
this.size =
|
|
464
|
-
this.animationDelay$ = i1.of(true).pipe(operators.delay(0));
|
|
623
|
+
this.color = this.options.color;
|
|
624
|
+
this.size = this.options.size;
|
|
625
|
+
this.animationDelay$ = i1$1.of(true).pipe(operators.delay(0));
|
|
465
626
|
}
|
|
466
627
|
Object.defineProperty(TuiProgressCircleComponent.prototype, "progressRatio", {
|
|
467
628
|
get: function () {
|
|
@@ -474,7 +635,7 @@
|
|
|
474
635
|
Object.defineProperty(TuiProgressCircleComponent.prototype, "oldEdgeRadiusFallback", {
|
|
475
636
|
// TODO: drop support of legacy Edge (EdgeHTML) in v4.x
|
|
476
637
|
get: function () {
|
|
477
|
-
if (!i1
|
|
638
|
+
if (!i1.tuiIsEdgeOlderThan(i1.CHROMIUM_EDGE_START_VERSION, this.userAgent)) {
|
|
478
639
|
return null;
|
|
479
640
|
}
|
|
480
641
|
var strokeWidth = parseInt(this.win.getComputedStyle(this.progressCircle.nativeElement).strokeWidth, 10);
|
|
@@ -485,7 +646,7 @@
|
|
|
485
646
|
});
|
|
486
647
|
return TuiProgressCircleComponent;
|
|
487
648
|
}());
|
|
488
|
-
TuiProgressCircleComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiProgressCircleComponent, deps: [{ token: common.USER_AGENT }, { token: common.WINDOW }, { token: i0.ElementRef }, { token: core.TUI_MODE }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
649
|
+
TuiProgressCircleComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiProgressCircleComponent, deps: [{ token: common.USER_AGENT }, { token: common.WINDOW }, { token: i0.ElementRef }, { token: core.TUI_MODE }, { token: TUI_PROGRESS_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
489
650
|
TuiProgressCircleComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiProgressCircleComponent, selector: "tui-progress-circle", inputs: { value: "value", max: "max", color: "color", size: "size" }, host: { listeners: { "$.data-mode.attr": "mode$" }, properties: { "style.--tui-progress-color": "this.color", "attr.data-size": "this.size", "style.--progress-ratio": "this.progressRatio" } }, providers: [core.MODE_PROVIDER], viewQueries: [{ propertyName: "progressCircle", first: true, predicate: ["progressCircle"], descendants: true, static: true }], ngImport: i0__namespace, template: "<progress\n class=\"t-hidden-progress\"\n [max]=\"max\"\n [value]=\"value\"\n></progress>\n\n<svg\n aria-hidden=\"true\"\n height=\"100%\"\n width=\"100%\"\n class=\"t-svg\"\n>\n <circle\n cx=\"50%\"\n cy=\"50%\"\n class=\"t-track\"\n [attr.r]=\"oldEdgeRadiusFallback\"\n ></circle>\n\n <circle\n #progressCircle\n cx=\"50%\"\n cy=\"50%\"\n class=\"t-progress\"\n [attr.r]=\"oldEdgeRadiusFallback\"\n [class.t-progress_filled]=\"animationDelay$ | async\"\n ></circle>\n</svg>\n", styles: [":host{position:relative;display:block;color:var(--tui-primary);transform:rotate(-90deg);transform-origin:center;font-size:1rem;width:var(--t-diameter);height:var(--t-diameter)}:host[data-mode=onDark]{--tui-clear: var(--tui-clear-inverse)}:host[data-size=s]{--t-diameter: 2em;--t-track-stroke: .5em;--t-progress-stroke: .5em}:host[data-size=m]{--t-diameter: 3em;--t-track-stroke: .375em;--t-progress-stroke: .375em}:host[data-size=l]{--t-diameter: 4em;--t-track-stroke: .375em;--t-progress-stroke: .375em}:host[data-size=xl]{--t-diameter: 7em;--t-track-stroke: .375em;--t-progress-stroke: .375em}:host[new]{--t-track-stroke: var(--tui-thickness, .375em);--t-progress-stroke: var(--tui-thickness, .375em)}:host[new][data-size=xxs]{--t-diameter: 2rem}:host[new][data-size=xs]{--t-diameter: 2.5rem}:host[new][data-size=s]{--t-diameter: 3.5rem}:host[new][data-size=m]{--t-diameter: 4rem}:host[new][data-size=l]{--t-diameter: 5rem}:host[new][data-size=xl]{--t-diameter: 6rem}:host[new][data-size=xxl]{--t-diameter: 8rem}.t-track{fill:transparent;stroke:var(--tui-clear);stroke-width:var(--t-track-stroke);r:calc((var(--t-diameter) - var(--t-track-stroke)) / 2)}.t-progress{fill:transparent;stroke:var(--tui-progress-color, currentColor);stroke-linecap:round;stroke-width:var(--t-progress-stroke);stroke-dasharray:calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2));stroke-dashoffset:calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2));r:calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)}.t-progress_filled{transition:stroke-dashoffset var(--tui-duration) linear;stroke-dashoffset:calc(calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)) - var(--progress-ratio) * calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)))}.t-hidden-progress{position:absolute;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0}.t-svg{overflow:unset}\n"], pipes: { "async": i1__namespace$1.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
490
651
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiProgressCircleComponent, decorators: [{
|
|
491
652
|
type: i0.Component,
|
|
@@ -512,6 +673,9 @@
|
|
|
512
673
|
}] }, { type: i1__namespace.Observable, decorators: [{
|
|
513
674
|
type: i0.Inject,
|
|
514
675
|
args: [core.TUI_MODE]
|
|
676
|
+
}] }, { type: undefined, decorators: [{
|
|
677
|
+
type: i0.Inject,
|
|
678
|
+
args: [TUI_PROGRESS_OPTIONS]
|
|
515
679
|
}] }];
|
|
516
680
|
}, propDecorators: { progressCircle: [{
|
|
517
681
|
type: i0.ViewChild,
|
|
@@ -566,7 +730,7 @@
|
|
|
566
730
|
}
|
|
567
731
|
TuiProgressSegmentedComponent.prototype.getActiveColor = function (index) {
|
|
568
732
|
if (index === void 0) { index = 0; }
|
|
569
|
-
return i1
|
|
733
|
+
return i1.tuiIsString(this.colors)
|
|
570
734
|
? this.colors
|
|
571
735
|
: this.colors[index] || this.colors[this.colors.length - 1];
|
|
572
736
|
};
|
|
@@ -614,16 +778,16 @@
|
|
|
614
778
|
TuiProgressColorSegmentsDirective,
|
|
615
779
|
TuiProgressCircleComponent,
|
|
616
780
|
TuiProgressLabelComponent,
|
|
617
|
-
TuiProgressSegmentedComponent], imports: [i1$2.CommonModule, i1
|
|
781
|
+
TuiProgressSegmentedComponent], imports: [i1$2.CommonModule, i1.TuiRepeatTimesModule], exports: [TuiProgressBarComponent,
|
|
618
782
|
TuiProgressCircleComponent,
|
|
619
783
|
TuiProgressColorSegmentsDirective,
|
|
620
784
|
TuiProgressLabelComponent,
|
|
621
785
|
TuiProgressSegmentedComponent] });
|
|
622
|
-
TuiProgressModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiProgressModule, imports: [[i1$2.CommonModule, i1
|
|
786
|
+
TuiProgressModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiProgressModule, imports: [[i1$2.CommonModule, i1.TuiRepeatTimesModule]] });
|
|
623
787
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiProgressModule, decorators: [{
|
|
624
788
|
type: i0.NgModule,
|
|
625
789
|
args: [{
|
|
626
|
-
imports: [i1$2.CommonModule, i1
|
|
790
|
+
imports: [i1$2.CommonModule, i1.TuiRepeatTimesModule],
|
|
627
791
|
declarations: [
|
|
628
792
|
TuiProgressBarComponent,
|
|
629
793
|
TuiProgressColorSegmentsDirective,
|
|
@@ -645,12 +809,15 @@
|
|
|
645
809
|
* Generated bundle index. Do not edit.
|
|
646
810
|
*/
|
|
647
811
|
|
|
812
|
+
exports.TUI_PROGRESS_DEFAULT_OPTIONS = TUI_PROGRESS_DEFAULT_OPTIONS;
|
|
813
|
+
exports.TUI_PROGRESS_OPTIONS = TUI_PROGRESS_OPTIONS;
|
|
648
814
|
exports.TuiProgressBarComponent = TuiProgressBarComponent;
|
|
649
815
|
exports.TuiProgressCircleComponent = TuiProgressCircleComponent;
|
|
650
816
|
exports.TuiProgressColorSegmentsDirective = TuiProgressColorSegmentsDirective;
|
|
651
817
|
exports.TuiProgressLabelComponent = TuiProgressLabelComponent;
|
|
652
818
|
exports.TuiProgressModule = TuiProgressModule;
|
|
653
819
|
exports.TuiProgressSegmentedComponent = TuiProgressSegmentedComponent;
|
|
820
|
+
exports.tuiProgressOptionsProvider = tuiProgressOptionsProvider;
|
|
654
821
|
|
|
655
822
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
656
823
|
|