@sdcorejs/angular 19.0.3 → 19.0.4
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/components/button/src/button.component.d.ts +1 -2
- package/components/form-generic/src/components/form-builder/form-builder.component.d.ts +1 -2
- package/components/form-generic/src/components/form-render/form-render.component.d.ts +1 -2
- package/components/form-generic/src/components/sd-feel-expression/sd-feel-expression.component.d.ts +1 -2
- package/components/query-builder/index.d.ts +2 -0
- package/components/query-builder/src/query-builder.component.d.ts +98 -22
- package/components/query-builder/src/query-builder.model.d.ts +118 -0
- package/components/query-builder/src/query-builder.serializer.d.ts +32 -0
- package/components/section/src/section.component.d.ts +1 -2
- package/components/side-drawer/src/side-drawer.component.d.ts +1 -2
- package/components/stepper/src/stepper.component.d.ts +1 -2
- package/components/tab/src/tab-group.component.d.ts +1 -2
- package/components/table/src/table.component.d.ts +1 -2
- package/components/upload-file/src/upload-file.component.d.ts +2 -0
- package/fesm2022/sdcorejs-angular-components-button.mjs +2 -4
- package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs +6 -10
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs +5 -5
- package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-builder.mjs +669 -57
- package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-section.mjs +2 -4
- package/fesm2022/sdcorejs-angular-components-section.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +2 -4
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-stepper.mjs +2 -4
- package/fesm2022/sdcorejs-angular-components-stepper.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tab.mjs +2 -4
- package/fesm2022/sdcorejs-angular-components-tab.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +2 -4
- package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs +15 -4
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs +7 -2
- package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs +9 -3
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-input.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-notify.mjs +26 -8
- package/fesm2022/sdcorejs-angular-services-notify.mjs.map +1 -1
- package/package.json +1 -1
- package/services/notify/src/components/toast/toast.component.d.ts +12 -1
- package/services/notify/src/notify.model.d.ts +17 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { SdBaseSecureComponent } from '@sdcorejs/angular/components/base';
|
|
3
2
|
import { Color } from '@sdcorejs/utils/models';
|
|
4
3
|
import { MaterialIconFontSet } from '@sdcorejs/angular/utilities/models';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export type SdButtonType = 'fill' | 'light' | 'outline' | 'link';
|
|
7
6
|
export type SdButtonSize = 'sm' | 'md' | 'lg';
|
|
8
7
|
export type SdButtonHtmlType = 'button' | 'submit' | 'reset';
|
|
9
|
-
export declare class SdButton
|
|
8
|
+
export declare class SdButton implements OnInit, OnDestroy {
|
|
10
9
|
#private;
|
|
11
10
|
private el;
|
|
12
11
|
autoIdInput: import("@angular/core").InputSignal<string | null | undefined>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CdkDragDrop, CdkDragMove } from '@angular/cdk/drag-drop';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { SdBaseSecureComponent } from '@sdcorejs/angular/components/base';
|
|
4
3
|
import { SdModal } from '@sdcorejs/angular/components/modal';
|
|
5
4
|
import { FormBuilderComponent, FormBuilderComponentGroup, SdFormGenericComponent, SdFormGenericGroup, SdFormGenericVariable } from '../../models';
|
|
6
5
|
import { SdFormGenericValidation } from '../../models/form-generic-validation.model';
|
|
@@ -12,7 +11,7 @@ interface DragDropRowItem {
|
|
|
12
11
|
items: (SdFormGenericComponent | SdFormGenericGroup)[];
|
|
13
12
|
rowIndex?: number;
|
|
14
13
|
}
|
|
15
|
-
export declare class SdFormBuilder
|
|
14
|
+
export declare class SdFormBuilder {
|
|
16
15
|
#private;
|
|
17
16
|
readonly popupViewJSON: import("@angular/core").Signal<SdModal | undefined>;
|
|
18
17
|
readonly popupConfigureVariables: import("@angular/core").Signal<SdModal | undefined>;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, OnDestroy, QueryList } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { SdBaseSecureComponent } from '@sdcorejs/angular/components/base';
|
|
4
3
|
import { Subject } from 'rxjs';
|
|
5
4
|
import { ISdFormGenericConfiguration } from '../../configurations';
|
|
6
5
|
import { SdFormRenderConfiguration } from '../../models';
|
|
7
6
|
import { SdFormGenericValidation } from '../../models/form-generic-validation.model';
|
|
8
7
|
import { LibItemComponent } from './components';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class SdFormRender
|
|
9
|
+
export declare class SdFormRender implements OnDestroy, AfterViewInit {
|
|
11
10
|
#private;
|
|
12
11
|
private ref;
|
|
13
12
|
private formGenericConfiguration;
|
package/components/form-generic/src/components/sd-feel-expression/sd-feel-expression.component.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { SdBaseSecureComponent } from '@sdcorejs/angular/components/base';
|
|
4
3
|
import { SdModal } from '@sdcorejs/angular/components/modal';
|
|
5
4
|
import { Attribute, SdFormGenericComponent, SdFormGenericExpression, SdFormGenericGroup } from '../../models';
|
|
6
5
|
import { ExpressionFeelPipe } from '../../pipes';
|
|
7
6
|
import { FormGenericService } from '../../services';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class SdFeelExpression
|
|
8
|
+
export declare class SdFeelExpression {
|
|
10
9
|
#private;
|
|
11
10
|
private ref;
|
|
12
11
|
private expressionFeelPipe;
|
|
@@ -1,26 +1,102 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Filter, Operator } from '@sdcorejs/utils/models';
|
|
2
|
+
import { isQbGroup, QbDateMode, QbGroup, QbRule, QbToken, SdQueryBuilderField, SdQueryBuilderFieldOption } from './query-builder.model';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
rules: (QueryRule | QueryGroup)[];
|
|
11
|
-
isOpen?: boolean;
|
|
12
|
-
}
|
|
4
|
+
/**
|
|
5
|
+
* Visual filter / rule builder. Compose nested AND / OR groups of
|
|
6
|
+
* `field operator value` conditions; emits the canonical `Filter` (root is a
|
|
7
|
+
* `FilterAndOr` tree) via `[(value)]`, plus a flat `[(filters)]` mirror of the
|
|
8
|
+
* root group's direct children. `mode="view"` renders a read-only SQL-ish raw
|
|
9
|
+
* string with highlighted operators + values.
|
|
10
|
+
*/
|
|
13
11
|
export declare class SdQueryBuilder {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
#private;
|
|
13
|
+
/** Filterable fields — each declares a `type` that drives the operator set + value editor. */
|
|
14
|
+
readonly fields: import("@angular/core").InputSignal<SdQueryBuilderField[]>;
|
|
15
|
+
/** `'edit'` (default) = interactive tree · `'view'` = read-only raw-query string. */
|
|
16
|
+
readonly mode: import("@angular/core").InputSignal<"edit" | "view">;
|
|
17
|
+
/** Disable all editing controls. */
|
|
18
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
19
|
+
/** Prefix for `data-autoid` on inner controls (E2E selectors). */
|
|
20
|
+
readonly autoId: import("@angular/core").InputSignal<string | undefined>;
|
|
21
|
+
/** Canonical output — the root `FilterAndOr` tree, or `null` when empty. `[(value)]`. */
|
|
22
|
+
readonly value: import("@angular/core").ModelSignal<Filter | null>;
|
|
23
|
+
/** Convenience mirror — the root group's direct children. `[(filters)]`. */
|
|
24
|
+
readonly filters: import("@angular/core").ModelSignal<Filter[]>;
|
|
25
|
+
/** Root group's logical connector. `[(rootLogic)]`. */
|
|
26
|
+
readonly rootLogic: import("@angular/core").ModelSignal<"AND" | "OR">;
|
|
27
|
+
readonly tree: import("@angular/core").Signal<QbGroup>;
|
|
28
|
+
/** `field.key` → field, for fast lookup from a rule. */
|
|
29
|
+
readonly fieldByKey: import("@angular/core").Signal<Record<string, SdQueryBuilderField>>;
|
|
30
|
+
/** Stable option list for the date-mode select. */
|
|
31
|
+
readonly dateModes: readonly {
|
|
32
|
+
value: QbDateMode;
|
|
33
|
+
display: string;
|
|
34
|
+
}[];
|
|
35
|
+
/** Stable combined unit×direction option list for the relative select. */
|
|
36
|
+
readonly relativeUnitOptions: readonly {
|
|
37
|
+
value: string;
|
|
38
|
+
display: string;
|
|
39
|
+
}[];
|
|
40
|
+
/** View-mode token stream — recomputed from the emitted value. */
|
|
41
|
+
readonly tokens: import("@angular/core").Signal<QbToken[]>;
|
|
42
|
+
readonly isView: import("@angular/core").Signal<boolean>;
|
|
43
|
+
/** Expose the type-guard to the template. */
|
|
44
|
+
readonly isGroup: typeof isQbGroup;
|
|
45
|
+
constructor();
|
|
46
|
+
/** Switch a group's AND/OR connector and re-emit. No-op when disabled or unchanged. */
|
|
47
|
+
setGroupLogic(group: QbGroup, logic: 'AND' | 'OR'): void;
|
|
48
|
+
/** Open this group's "+" menu (closing any other open one). UI-only — does not emit. */
|
|
49
|
+
toggleDropdown(group: QbGroup, event: Event): void;
|
|
50
|
+
closeAllDropdowns(): void;
|
|
51
|
+
/** Append a blank rule to `group`. */
|
|
52
|
+
addRule(group: QbGroup): void;
|
|
53
|
+
/** Append a nested sub-group (seeded with one blank rule) to `group`. */
|
|
54
|
+
addGroup(group: QbGroup): void;
|
|
55
|
+
/** Remove the child at `index` from `parent` (a rule or a whole sub-group). */
|
|
56
|
+
removeNode(parent: QbGroup, index: number): void;
|
|
57
|
+
/**
|
|
58
|
+
* Point `rule` at a new field. Resets operator to the field's default and the value
|
|
59
|
+
* to that operator's empty shape — the old operator/value rarely fit the new type.
|
|
60
|
+
*
|
|
61
|
+
* @param rule - the rule being edited.
|
|
62
|
+
* @param key - the chosen field key (from the field picker). Swap-only: a null / undefined
|
|
63
|
+
* key is a no-op — the field can be changed but never cleared (issue #2).
|
|
64
|
+
*/
|
|
65
|
+
setField(rule: QbRule, key: any): void;
|
|
66
|
+
/** Change `rule`'s operator and reshape its value to fit the new operator (array / range / none). */
|
|
67
|
+
setOperator(rule: QbRule, op: Operator | undefined): void;
|
|
68
|
+
/** Set a single-value rule's value (coercing numeric fields to `number`). */
|
|
69
|
+
setScalar(rule: QbRule, raw: any): void;
|
|
70
|
+
/** Set the lower bound of a BETWEEN rule's `{ from, to }` value. */
|
|
71
|
+
setBetweenFrom(rule: QbRule, raw: any): void;
|
|
72
|
+
/** Set the upper bound of a BETWEEN rule's `{ from, to }` value. */
|
|
73
|
+
setBetweenTo(rule: QbRule, raw: any): void;
|
|
74
|
+
/** The field metadata for a rule's current `field` key (or undefined if unset). */
|
|
75
|
+
fieldOf(rule: QbRule): SdQueryBuilderField | undefined;
|
|
76
|
+
/** Operators allowed for a rule, derived from its field's type / override. */
|
|
77
|
+
allowedOperators(rule: QbRule): Operator[];
|
|
78
|
+
/** Whether to render the operator picker — hidden when only one operator is allowed. */
|
|
79
|
+
showOperatorSelector(rule: QbRule): boolean;
|
|
80
|
+
/** True for NULL / NOT_NULL — the template then renders no value editor. */
|
|
81
|
+
isNoData(op: Operator | undefined): boolean;
|
|
82
|
+
/** True for IN / NOT_IN — the template then renders a multi-select value editor. */
|
|
83
|
+
isMulti(op: Operator | undefined): boolean;
|
|
84
|
+
/** `[true/false]` option list for a boolean field's value select (stable reference). */
|
|
85
|
+
booleanItems(field: SdQueryBuilderField): SdQueryBuilderFieldOption[];
|
|
86
|
+
/** Current date-value mode of a rule, derived from its value (no separate state). */
|
|
87
|
+
dateMode(rule: QbRule): QbDateMode;
|
|
88
|
+
/** Switch a date/datetime rule's value mode, reseeding the value for the new mode. */
|
|
89
|
+
setDateMode(rule: QbRule, mode: QbDateMode): void;
|
|
90
|
+
/** Read the offset amount of a relative rule (default 1). */
|
|
91
|
+
relativeAmount(rule: QbRule): number;
|
|
92
|
+
/** Set the offset amount (clamped to an integer >= 1). */
|
|
93
|
+
setRelativeAmount(rule: QbRule, raw: any): void;
|
|
94
|
+
/** Read the `'unit:direction'` token of a relative rule (default `'day:previous'`). */
|
|
95
|
+
relativeUnitDirValue(rule: QbRule): string;
|
|
96
|
+
/** Set the offset unit + direction from a `'unit:direction'` token. */
|
|
97
|
+
setRelativeUnitDir(rule: QbRule, token: string): void;
|
|
98
|
+
/** Build a `data-autoid` for an inner control under this builder's `autoId` prefix. */
|
|
99
|
+
autoIdFor(suffix: string): string;
|
|
24
100
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdQueryBuilder, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryBuilder, "sd-query-builder", never, { "
|
|
101
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryBuilder, "sd-query-builder", never, { "fields": { "alias": "fields"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "filters": { "alias": "filters"; "required": false; "isSignal": true; }; "rootLogic": { "alias": "rootLogic"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "filters": "filtersChange"; "rootLogic": "rootLogicChange"; }, never, never, true, never>;
|
|
26
102
|
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Operator } from '@sdcorejs/utils/models';
|
|
2
|
+
/** Field kinds the builder understands. Drives the operator set + value editor. */
|
|
3
|
+
export type SdQueryBuilderFieldType = 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'values';
|
|
4
|
+
/** One option for a `values`-type field (enum / lookup). */
|
|
5
|
+
export interface SdQueryBuilderFieldOption {
|
|
6
|
+
/** Stored value (sent inside the `Filter`). */
|
|
7
|
+
value: any;
|
|
8
|
+
/** Human-readable label shown in the select + view-mode string. */
|
|
9
|
+
display: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* One filterable field. `key` matches `Filter.field` (dot-notation allowed);
|
|
13
|
+
* `label` is what the view-mode raw string renders (field token = label).
|
|
14
|
+
*/
|
|
15
|
+
export interface SdQueryBuilderField {
|
|
16
|
+
/** Dot-notation field path — written to `Filter.field`. */
|
|
17
|
+
key: string;
|
|
18
|
+
/** Human label — shown in the field picker AND as the view-mode field token. */
|
|
19
|
+
label: string;
|
|
20
|
+
/** Field type — picks the default operator set + value editor control. */
|
|
21
|
+
type: SdQueryBuilderFieldType;
|
|
22
|
+
/** Override the allowed operator set (otherwise `QB_OPERATORS_BY_TYPE[type]`). */
|
|
23
|
+
operators?: Operator[];
|
|
24
|
+
/** Override the starting operator (otherwise `QB_DEFAULT_OPERATOR_BY_TYPE[type]`). */
|
|
25
|
+
defaultOperator?: Operator;
|
|
26
|
+
/** Options for `type: 'values'` — the select list + display-label lookup. */
|
|
27
|
+
values?: SdQueryBuilderFieldOption[];
|
|
28
|
+
/** Label for the `true` branch of a boolean field (default `'Có'`). */
|
|
29
|
+
trueLabel?: string;
|
|
30
|
+
/** Label for the `false` branch of a boolean field (default `'Không'`). */
|
|
31
|
+
falseLabel?: string;
|
|
32
|
+
/** Lower bound for number / date value editors. */
|
|
33
|
+
min?: number | string;
|
|
34
|
+
/** Upper bound for number / date value editors. */
|
|
35
|
+
max?: number | string;
|
|
36
|
+
}
|
|
37
|
+
export type QbNode = QbGroup | QbRule;
|
|
38
|
+
/** A logical group of nodes joined by AND / OR. Maps to `FilterAndOr`. */
|
|
39
|
+
export interface QbGroup {
|
|
40
|
+
id: string;
|
|
41
|
+
kind: 'group';
|
|
42
|
+
logic: 'AND' | 'OR';
|
|
43
|
+
children: QbNode[];
|
|
44
|
+
/** UI-only: whether this group's "+" dropdown is open. */
|
|
45
|
+
open?: boolean;
|
|
46
|
+
}
|
|
47
|
+
/** A single `field operator value` condition. Maps to a leaf `Filter`. */
|
|
48
|
+
export interface QbRule {
|
|
49
|
+
id: string;
|
|
50
|
+
kind: 'rule';
|
|
51
|
+
field?: string;
|
|
52
|
+
operator?: Operator;
|
|
53
|
+
/** Single value, `{ from, to }` for BETWEEN, or an array for IN / NOT_IN. */
|
|
54
|
+
value?: any;
|
|
55
|
+
}
|
|
56
|
+
/** Type guard — narrows a `QbNode` to a `QbGroup`. */
|
|
57
|
+
export declare function isQbGroup(node: QbNode): node is QbGroup;
|
|
58
|
+
export type QbTokenKind = 'field' | 'op' | 'value' | 'logic' | 'paren' | 'plain';
|
|
59
|
+
/** One piece of the rendered raw query string, tagged for highlight styling. */
|
|
60
|
+
export interface QbToken {
|
|
61
|
+
text: string;
|
|
62
|
+
kind: QbTokenKind;
|
|
63
|
+
}
|
|
64
|
+
/** Allowed operators per field type — used when `field.operators` is not set. */
|
|
65
|
+
export declare const QB_OPERATORS_BY_TYPE: Record<SdQueryBuilderFieldType, Operator[]>;
|
|
66
|
+
/** Default operator when a rule is first created for a field. */
|
|
67
|
+
export declare const QB_DEFAULT_OPERATOR_BY_TYPE: Record<SdQueryBuilderFieldType, Operator>;
|
|
68
|
+
/** Operators with no value payload — the value editor is hidden for these. */
|
|
69
|
+
export declare const QB_NO_DATA_OPERATORS: Operator[];
|
|
70
|
+
/** Operators whose value is an array — the value editor offers multi-select. */
|
|
71
|
+
export declare const QB_MULTI_OPERATORS: Operator[];
|
|
72
|
+
/** Operators allowed for `field` — explicit override wins, else the per-type set. */
|
|
73
|
+
export declare function qbAllowedOperators(field: SdQueryBuilderField | undefined): Operator[];
|
|
74
|
+
/** Starting operator for a new rule on `field` — falls back to the per-type default. */
|
|
75
|
+
export declare function qbDefaultOperator(field: SdQueryBuilderField | undefined): Operator | undefined;
|
|
76
|
+
/** True when `op` is NULL / NOT_NULL (no value editor). */
|
|
77
|
+
export declare function qbIsNoDataOperator(op: Operator | undefined): boolean;
|
|
78
|
+
/** True when `op` is IN / NOT_IN (array value). */
|
|
79
|
+
export declare function qbIsMultiOperator(op: Operator | undefined): boolean;
|
|
80
|
+
/** Next stable node id with the given prefix. */
|
|
81
|
+
export declare function qbId(prefix?: string): string;
|
|
82
|
+
/** Build a fresh rule node (optionally pre-filled). */
|
|
83
|
+
export declare function qbNewRule(field?: string, operator?: Operator, value?: any): QbRule;
|
|
84
|
+
/** Build a fresh group node. */
|
|
85
|
+
export declare function qbNewGroup(logic?: 'AND' | 'OR', children?: QbNode[]): QbGroup;
|
|
86
|
+
/** Offset unit for a relative date. */
|
|
87
|
+
export type SdQbRelativeUnit = 'day' | 'week' | 'month';
|
|
88
|
+
/** Offset direction for a relative date. */
|
|
89
|
+
export type SdQbRelativeDirection = 'previous' | 'next';
|
|
90
|
+
/** A relative (resolved-at-query-time) date value stored in `Filter.data`. */
|
|
91
|
+
export interface SdQbRelativeDate {
|
|
92
|
+
/** `'now'` = current moment / today · `'offset'` = now ± amount × unit. */
|
|
93
|
+
rel: 'now' | 'offset';
|
|
94
|
+
/** Offset unit — only for `rel: 'offset'`. */
|
|
95
|
+
unit?: SdQbRelativeUnit;
|
|
96
|
+
/** Offset magnitude (>= 1) — only for `rel: 'offset'`. */
|
|
97
|
+
amount?: number;
|
|
98
|
+
/** Offset direction — only for `rel: 'offset'`. */
|
|
99
|
+
direction?: SdQbRelativeDirection;
|
|
100
|
+
}
|
|
101
|
+
/** Date value editor mode for a date/datetime rule (derived from the rule value). */
|
|
102
|
+
export type QbDateMode = 'absolute' | 'now' | 'relative';
|
|
103
|
+
/** Type guard — narrows an arbitrary value to a relative-date spec. */
|
|
104
|
+
export declare function qbIsRelativeDate(v: any): v is SdQbRelativeDate;
|
|
105
|
+
/** Starting relative value when a rule first switches to "relative" mode. */
|
|
106
|
+
export declare function qbDefaultRelative(): SdQbRelativeDate;
|
|
107
|
+
/** Stable option list for the date-mode select (module ref — never reallocated). */
|
|
108
|
+
export declare const QB_DATE_MODES: ReadonlyArray<{
|
|
109
|
+
value: QbDateMode;
|
|
110
|
+
display: string;
|
|
111
|
+
}>;
|
|
112
|
+
/** Stable combined direction×unit option list (token `'unit:direction'`). */
|
|
113
|
+
export declare const QB_RELATIVE_UNIT_OPTIONS: ReadonlyArray<{
|
|
114
|
+
value: string;
|
|
115
|
+
display: string;
|
|
116
|
+
}>;
|
|
117
|
+
/** Shared empty option array — stable ref for fallbacks (avoids per-call allocation). */
|
|
118
|
+
export declare const QB_EMPTY_OPTIONS: SdQueryBuilderFieldOption[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Filter } from '@sdcorejs/utils/models';
|
|
2
|
+
import { QbGroup, QbToken, SdQueryBuilderField } from './query-builder.model';
|
|
3
|
+
/**
|
|
4
|
+
* Map the internal builder tree to the public `Filter` (the root is always a
|
|
5
|
+
* `FilterAndOr`). Rules missing field / operator / value — and empty nested
|
|
6
|
+
* groups — are dropped so the result is always a valid `Filter`.
|
|
7
|
+
*
|
|
8
|
+
* @param group - the editable tree's root group.
|
|
9
|
+
* @returns the canonical nested `Filter`, or `null` when no complete rule survives.
|
|
10
|
+
*/
|
|
11
|
+
export declare function treeToFilter(group: QbGroup): Filter | null;
|
|
12
|
+
/**
|
|
13
|
+
* Inverse of {@link treeToFilter} — rebuild the editable tree from a `Filter` so a
|
|
14
|
+
* consumer can seed `[value]`. A non-group (bare) filter is wrapped in an AND root;
|
|
15
|
+
* `null` yields an empty AND root.
|
|
16
|
+
*
|
|
17
|
+
* @param filter - a `Filter` (group or leaf), or `null` / `undefined` for an empty tree.
|
|
18
|
+
* @returns a fresh root `QbGroup` mirroring the filter's structure.
|
|
19
|
+
*/
|
|
20
|
+
export declare function filterToTree(filter: Filter | null | undefined): QbGroup;
|
|
21
|
+
/**
|
|
22
|
+
* Render a `Filter` to a SQL-ish token stream for view mode. Field tokens use the
|
|
23
|
+
* matching field's `label`; operators map to SQL syntax (`= != like between is null …`);
|
|
24
|
+
* `and` / `or` are lowercase; nested multi-child groups are wrapped in parentheses.
|
|
25
|
+
* Returns a token stream (not a string) so the template can wrap each piece in a
|
|
26
|
+
* highlight `<span>` keyed by `QbToken.kind`.
|
|
27
|
+
*
|
|
28
|
+
* @param filter - the `Filter` to render, or `null` / `undefined`.
|
|
29
|
+
* @param fields - field metadata, used to resolve each field key to its display label + value formatting.
|
|
30
|
+
* @returns the ordered tokens, or `[]` when `filter` is empty.
|
|
31
|
+
*/
|
|
32
|
+
export declare function filterToTokens(filter: Filter | null | undefined, fields: SdQueryBuilderField[]): QbToken[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { SdBaseSecureComponent } from '@sdcorejs/angular/components/base';
|
|
2
1
|
import { Color } from '@sdcorejs/utils/models';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SdSection
|
|
3
|
+
export declare class SdSection {
|
|
5
4
|
#private;
|
|
6
5
|
title: import("@angular/core").InputSignal<string | null | undefined>;
|
|
7
6
|
subTitle: import("@angular/core").InputSignal<string | null | undefined>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { CdkPortal } from '@angular/cdk/portal';
|
|
2
|
-
import { SdBaseSecureComponent } from '@sdcorejs/angular/components/base';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SdSideDrawer
|
|
4
|
+
export declare class SdSideDrawer {
|
|
6
5
|
#private;
|
|
7
6
|
id: string;
|
|
8
7
|
portal: import("@angular/core").Signal<CdkPortal>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { StepperSelectionEvent } from '@angular/cdk/stepper';
|
|
2
2
|
import { MatStepper } from '@angular/material/stepper';
|
|
3
|
-
import { SdBaseSecureComponent } from '@sdcorejs/angular/components/base';
|
|
4
3
|
import { Color } from '@sdcorejs/utils/models';
|
|
5
4
|
import { SdStep } from './step.component';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class SdStepper
|
|
6
|
+
export declare class SdStepper {
|
|
8
7
|
steps: import("@angular/core").Signal<readonly SdStep[]>;
|
|
9
8
|
selectedIndex: import("@angular/core").ModelSignal<number>;
|
|
10
9
|
linear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MatTabGroup } from '@angular/material/tabs';
|
|
2
|
-
import { SdBaseSecureComponent } from '@sdcorejs/angular/components/base';
|
|
3
2
|
import { Color } from '@sdcorejs/utils/models';
|
|
4
3
|
import { SdTab } from './tab.component';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
@@ -7,7 +6,7 @@ export interface SdTabClosedEvent {
|
|
|
7
6
|
index: number;
|
|
8
7
|
tab: SdTab;
|
|
9
8
|
}
|
|
10
|
-
export declare class SdTabGroup
|
|
9
|
+
export declare class SdTabGroup {
|
|
11
10
|
tabs: import("@angular/core").Signal<readonly SdTab[]>;
|
|
12
11
|
selectedIndex: import("@angular/core").ModelSignal<number>;
|
|
13
12
|
variant: import("@angular/core").InputSignal<"line" | "pills" | "segmented">;
|
|
@@ -13,7 +13,6 @@ import { SdTableColumn } from './models/table-column.model';
|
|
|
13
13
|
import { SdTableOption } from './models/table-option.model';
|
|
14
14
|
import { SdTableFilterRequest, TableFilterRegister } from './services/table-filter/table-filter.model';
|
|
15
15
|
import { CdkDrag, CdkDragDrop, CdkDropList } from '@angular/cdk/drag-drop';
|
|
16
|
-
import { SdBaseSecureComponent } from '@sdcorejs/angular/components/base';
|
|
17
16
|
import { SdQuickAction } from '@sdcorejs/angular/components/quick-action';
|
|
18
17
|
import { SdScrollDirective } from '@sdcorejs/angular/directives';
|
|
19
18
|
import { Operator } from '@sdcorejs/utils/models';
|
|
@@ -35,7 +34,7 @@ export declare class MatPaginatorIntlCro extends MatPaginatorIntl {
|
|
|
35
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatPaginatorIntlCro, never>;
|
|
36
35
|
static ɵprov: i0.ɵɵInjectableDeclaration<MatPaginatorIntlCro>;
|
|
37
36
|
}
|
|
38
|
-
export declare class SdTable<T = unknown>
|
|
37
|
+
export declare class SdTable<T = unknown> implements OnInit, AfterViewInit, OnDestroy {
|
|
39
38
|
#private;
|
|
40
39
|
autoIdInput: import("@angular/core").InputSignal<string | null | undefined>;
|
|
41
40
|
autoId: import("@angular/core").Signal<string | undefined>;
|
|
@@ -11,6 +11,8 @@ export declare class SdUploadFile<TArgs = any> {
|
|
|
11
11
|
#private;
|
|
12
12
|
readonly id: string;
|
|
13
13
|
readonly formControl: SdFormControl;
|
|
14
|
+
/** Hiển thị message "vui lòng upload": không disabled + đã touched + còn lỗi required. */
|
|
15
|
+
readonly showRequiredError: import("@angular/core").Signal<boolean>;
|
|
14
16
|
readonly previewFiles: import("@angular/core").WritableSignal<PreviewFile[]>;
|
|
15
17
|
readonly selectedFile: import("@angular/core").WritableSignal<PreviewFile | null | undefined>;
|
|
16
18
|
readonly previewFileComponent: import("@angular/core").Signal<PreviewComponent | undefined>;
|
|
@@ -10,13 +10,12 @@ import * as i4 from '@angular/material/progress-spinner';
|
|
|
10
10
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
11
11
|
import * as i5 from '@angular/material/tooltip';
|
|
12
12
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
13
|
-
import { SdBaseSecureComponent } from '@sdcorejs/angular/components/base';
|
|
14
13
|
import { DefaultMaterialIconFontSet } from '@sdcorejs/angular/utilities/models';
|
|
15
14
|
import { Subject, Subscription } from 'rxjs';
|
|
16
15
|
import { throttleTime, filter } from 'rxjs/operators';
|
|
17
16
|
|
|
18
17
|
/* eslint-disable @angular-eslint/no-input-rename */
|
|
19
|
-
class SdButton
|
|
18
|
+
class SdButton {
|
|
20
19
|
// ==========================================
|
|
21
20
|
// 1. INJECTS
|
|
22
21
|
// ==========================================
|
|
@@ -67,7 +66,6 @@ class SdButton extends SdBaseSecureComponent {
|
|
|
67
66
|
#clickSubject = new Subject();
|
|
68
67
|
#subscription = new Subscription();
|
|
69
68
|
constructor() {
|
|
70
|
-
super();
|
|
71
69
|
// Kỹ thuật Đánh chặn sự kiện (Capture Phase)
|
|
72
70
|
// Tóm sống mọi sự kiện click ngay khi nó vừa chạm vào component
|
|
73
71
|
this.el.nativeElement.addEventListener('click', (event) => {
|
|
@@ -98,7 +96,7 @@ class SdButton extends SdBaseSecureComponent {
|
|
|
98
96
|
this.#subscription.unsubscribe();
|
|
99
97
|
}
|
|
100
98
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
101
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: SdButton, isStandalone: true, selector: "sd-button", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fontSet: { classPropertyName: "fontSet", publicName: "fontSet", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, prefixIcon: { classPropertyName: "prefixIcon", publicName: "prefixIcon", isSignal: true, isRequired: false, transformFunction: null }, suffixIcon: { classPropertyName: "suffixIcon", publicName: "suffixIcon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, block: { classPropertyName: "block", publicName: "block", isSignal: true, isRequired: false, transformFunction: null }, htmlType: { classPropertyName: "htmlType", publicName: "htmlType", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click" }, host: { properties: { "class.sd-disabled": "disabled()", "class.sd-loading": "loading()", "class.sd-block": "block()", "attr.disabled": "disabled() ? \"true\" : null" } }, usesInheritance: true, ngImport: i0, template: "@let btnType = type();\n@let btnLoad = loading();\n@let btnTitle = title();\n@let pIcon = prefixIcon();\n@let sIcon = suffixIcon();\n@let fSet = fontSet();\n@let hType = htmlType();\n@let _disabled = disabled();\n@let _color = color();\n@let _autoId = autoId();\n@let _width = width();\n@let _tooltip = tooltip();\n\n@if (btnType === 'fill') {\n <button\n mat-flat-button\n class=\"c-button c-fill\"\n [type]=\"hType\"\n [ngClass]=\"buttonClasses()\"\n [disabled]=\"_disabled\"\n [color]=\"_color\"\n [attr.data-autoId]=\"_autoId\"\n [attr.data-disabled]=\"_disabled ? 'true' : 'false'\"\n [attr.data-loading]=\"btnLoad ? 'true' : 'false'\"\n [style.width]=\"_width\"\n [matTooltip]=\"_tooltip || ''\"\n matTooltipPosition=\"above\"\n (click)=\"onInternalClick($event)\">\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n </button>\n} @else if (btnType === 'light') {\n <button\n mat-flat-button\n class=\"c-button c-light\"\n [type]=\"hType\"\n [ngClass]=\"buttonClasses()\"\n [disabled]=\"_disabled\"\n [color]=\"_color\"\n [attr.data-autoId]=\"_autoId\"\n [attr.data-disabled]=\"_disabled ? 'true' : 'false'\"\n [attr.data-loading]=\"btnLoad ? 'true' : 'false'\"\n [style.width]=\"_width\"\n [matTooltip]=\"_tooltip || ''\"\n matTooltipPosition=\"above\"\n (click)=\"onInternalClick($event)\">\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n </button>\n} @else if (btnType === 'outline') {\n <button\n mat-stroked-button\n class=\"c-button c-outline\"\n [type]=\"hType\"\n [ngClass]=\"buttonClasses()\"\n [disabled]=\"_disabled\"\n [color]=\"_color\"\n [attr.data-autoId]=\"_autoId\"\n [attr.data-disabled]=\"_disabled ? 'true' : 'false'\"\n [attr.data-loading]=\"btnLoad ? 'true' : 'false'\"\n [style.width]=\"_width\"\n [matTooltip]=\"_tooltip || ''\"\n matTooltipPosition=\"above\"\n (click)=\"onInternalClick($event)\">\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n </button>\n} @else if (btnType === 'link') {\n <button\n mat-button\n class=\"c-button c-link\"\n [type]=\"hType\"\n [ngClass]=\"buttonClasses()\"\n [disabled]=\"_disabled\"\n [color]=\"_color\"\n [attr.data-autoId]=\"_autoId\"\n [attr.data-disabled]=\"_disabled ? 'true' : 'false'\"\n [attr.data-loading]=\"btnLoad ? 'true' : 'false'\"\n [style.width]=\"_width\"\n [matTooltip]=\"_tooltip || ''\"\n matTooltipPosition=\"above\"\n (click)=\"onInternalClick($event)\">\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n </button>\n}\n\n<ng-template #contentTpl>\n <div class=\"c-button-content-wrapper\">\n @if (btnLoad) {\n <mat-spinner mode=\"indeterminate\" diameter=\"18\" strokeWidth=\"2\" class=\"c-spinner\"></mat-spinner>\n } @else if (pIcon) {\n <mat-icon [fontSet]=\"fSet\" class=\"c-icon-prefix\">{{ pIcon }}</mat-icon>\n }\n\n @if (btnTitle) {\n <span class=\"c-title\" [class.ml-8]=\"btnLoad || pIcon\" [class.mr-8]=\"sIcon && !btnLoad\">\n {{ btnTitle }}\n </span>\n }\n\n @if (sIcon && !btnLoad) {\n <mat-icon [fontSet]=\"fSet\" class=\"c-icon-suffix\">{{ sIcon }}</mat-icon>\n }\n\n @if (!btnTitle && !pIcon && !btnLoad && sIcon) {\n <mat-icon [fontSet]=\"fSet\">{{ sIcon }}</mat-icon>\n }\n </div>\n</ng-template>\n", styles: [".text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-light{color:var(--sd-light)!important}.bg-light{background:var(--sd-light)!important}.border-light{border-color:var(--sd-light)!important}.text-dark{color:var(--sd-dark)!important}.bg-dark{background:var(--sd-dark)!important}.border-dark{border-color:var(--sd-dark)!important}.text-black500{color:var(--sd-black500)!important}.bg-black500{background:var(--sd-black500)!important}.border-black500{border-color:var(--sd-black500)!important}.text-black400{color:var(--sd-black400)!important}.bg-black400{background:var(--sd-black400)!important}.border-black400{border-color:var(--sd-black400)!important}.text-black300{color:var(--sd-black300)!important}.bg-black300{background:var(--sd-black300)!important}.border-black300{border-color:var(--sd-black300)!important}.text-black200{color:var(--sd-black200)!important}.bg-black200{background:var(--sd-black200)!important}.border-black200{border-color:var(--sd-black200)!important}.text-black100{color:var(--sd-black100)!important}.bg-black100{background:var(--sd-black100)!important}.border-black100{border-color:var(--sd-black100)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}:host{display:inline-block;pointer-events:auto}:host.sd-disabled{cursor:not-allowed}:host.sd-loading{cursor:wait}:host.sd-block{display:block;width:100%}:host.sd-block button{width:100%}:host ::ng-deep button.c-button{pointer-events:auto;min-width:auto;white-space:nowrap}:host ::ng-deep button.c-button .mat-button-wrapper,:host ::ng-deep button.c-button .mdc-button__label{display:flex;align-items:center;justify-content:center;width:100%;min-width:0}:host ::ng-deep button.c-button[disabled],:host ::ng-deep button.c-button.mat-button-disabled{pointer-events:none;color:#a6a6a6!important;background-color:#e9e9e9!important}:host ::ng-deep button.c-button.c-square{min-width:auto!important;padding:0!important}:host ::ng-deep button.c-button.c-sm{font-size:14px!important;height:32px;line-height:20px!important;padding:2px 12px!important;font-weight:400}:host ::ng-deep button.c-button.c-sm mat-icon{height:16px!important;width:16px!important;font-size:16px!important}:host ::ng-deep button.c-button.c-sm.c-square{width:32px!important;min-width:auto!important;padding:0!important}:host ::ng-deep button.c-button.c-md{font-size:16px;height:40px;line-height:20px;padding:2px 16px!important;font-weight:400}:host ::ng-deep button.c-button.c-md mat-icon{height:20px!important;width:20px!important;font-size:20px!important}:host ::ng-deep button.c-button.c-md.c-square{width:40px!important;min-width:auto!important;padding:0!important}:host ::ng-deep button.c-button.c-lg{font-size:16px!important;line-height:20px!important;padding:2px 16px!important;height:48px}:host ::ng-deep button.c-button.c-lg.c-square{width:48px!important;min-width:auto!important;padding:0!important}:host ::ng-deep button.c-button:focus{outline:none}:host ::ng-deep button.c-button.c-disabled{opacity:.5}:host ::ng-deep button.c-button.c-block{width:100%!important}:host ::ng-deep button.c-button.c-fill.mat-mdc-unelevated-button.mat-primary{background-color:var(--sd-primary);color:#fff}:host ::ng-deep button.c-button.c-fill.mat-mdc-unelevated-button.mat-info{background-color:var(--sd-info);color:#fff}:host ::ng-deep button.c-button.c-fill.mat-mdc-unelevated-button.mat-success{background-color:var(--sd-success);color:#fff}:host ::ng-deep button.c-button.c-fill.mat-mdc-unelevated-button.mat-warning{background-color:var(--sd-warning);color:#fff}:host ::ng-deep button.c-button.c-fill.mat-mdc-unelevated-button.mat-error{background-color:var(--sd-error);color:#fff}:host ::ng-deep button.c-button.c-fill.mat-mdc-unelevated-button.mat-secondary{background-color:#000!important;color:#fff}:host ::ng-deep button.c-button.c-fill .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:#fff!important}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-primary{background-color:var(--sd-primary-light);color:var(--sd-primary)}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-primary .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-primary)!important}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-info{background-color:var(--sd-info-light);color:var(--sd-info)}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-info .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-info)!important}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-success{background-color:var(--sd-success-light);color:var(--sd-success)}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-success .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-success)!important}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-warning{background-color:var(--sd-warning-light);color:var(--sd-warning)}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-warning .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-warning)!important}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-error{background-color:var(--sd-error-light);color:var(--sd-error)}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-error .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-error)!important}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-secondary{background-color:var(--sd-secondary-light);color:#000!important}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-secondary .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:#000!important}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button{border-color:#d3d3d3}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-primary{color:var(--sd-primary)}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-primary .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-primary)!important}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-info{color:var(--sd-info)}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-info .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-info)!important}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-success{color:var(--sd-success)}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-success .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-success)!important}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-warning{color:var(--sd-warning)}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-warning .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-warning)!important}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-error{color:var(--sd-error)}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-error .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-error)!important}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-secondary{color:#000!important}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-secondary .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:#000!important}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-button-disabled{background:transparent!important}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-primary{color:var(--sd-primary)}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-primary .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-primary)!important}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-info{color:var(--sd-info)}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-info .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-info)!important}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-success{color:var(--sd-success)}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-success .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-success)!important}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-warning{color:var(--sd-warning)}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-warning .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-warning)!important}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-error{color:var(--sd-error)}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-error .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-error)!important}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-secondary{color:#000!important}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-secondary .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:#000!important}:host ::ng-deep .c-button-content-wrapper{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;pointer-events:none}:host ::ng-deep .c-title{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host ::ng-deep .c-spinner{display:inline-block}:host.sd-loading ::ng-deep button.c-button{pointer-events:none;opacity:.85}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
99
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: SdButton, isStandalone: true, selector: "sd-button", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fontSet: { classPropertyName: "fontSet", publicName: "fontSet", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, prefixIcon: { classPropertyName: "prefixIcon", publicName: "prefixIcon", isSignal: true, isRequired: false, transformFunction: null }, suffixIcon: { classPropertyName: "suffixIcon", publicName: "suffixIcon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, block: { classPropertyName: "block", publicName: "block", isSignal: true, isRequired: false, transformFunction: null }, htmlType: { classPropertyName: "htmlType", publicName: "htmlType", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click" }, host: { properties: { "class.sd-disabled": "disabled()", "class.sd-loading": "loading()", "class.sd-block": "block()", "attr.disabled": "disabled() ? \"true\" : null" } }, ngImport: i0, template: "@let btnType = type();\n@let btnLoad = loading();\n@let btnTitle = title();\n@let pIcon = prefixIcon();\n@let sIcon = suffixIcon();\n@let fSet = fontSet();\n@let hType = htmlType();\n@let _disabled = disabled();\n@let _color = color();\n@let _autoId = autoId();\n@let _width = width();\n@let _tooltip = tooltip();\n\n@if (btnType === 'fill') {\n <button\n mat-flat-button\n class=\"c-button c-fill\"\n [type]=\"hType\"\n [ngClass]=\"buttonClasses()\"\n [disabled]=\"_disabled\"\n [color]=\"_color\"\n [attr.data-autoId]=\"_autoId\"\n [attr.data-disabled]=\"_disabled ? 'true' : 'false'\"\n [attr.data-loading]=\"btnLoad ? 'true' : 'false'\"\n [style.width]=\"_width\"\n [matTooltip]=\"_tooltip || ''\"\n matTooltipPosition=\"above\"\n (click)=\"onInternalClick($event)\">\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n </button>\n} @else if (btnType === 'light') {\n <button\n mat-flat-button\n class=\"c-button c-light\"\n [type]=\"hType\"\n [ngClass]=\"buttonClasses()\"\n [disabled]=\"_disabled\"\n [color]=\"_color\"\n [attr.data-autoId]=\"_autoId\"\n [attr.data-disabled]=\"_disabled ? 'true' : 'false'\"\n [attr.data-loading]=\"btnLoad ? 'true' : 'false'\"\n [style.width]=\"_width\"\n [matTooltip]=\"_tooltip || ''\"\n matTooltipPosition=\"above\"\n (click)=\"onInternalClick($event)\">\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n </button>\n} @else if (btnType === 'outline') {\n <button\n mat-stroked-button\n class=\"c-button c-outline\"\n [type]=\"hType\"\n [ngClass]=\"buttonClasses()\"\n [disabled]=\"_disabled\"\n [color]=\"_color\"\n [attr.data-autoId]=\"_autoId\"\n [attr.data-disabled]=\"_disabled ? 'true' : 'false'\"\n [attr.data-loading]=\"btnLoad ? 'true' : 'false'\"\n [style.width]=\"_width\"\n [matTooltip]=\"_tooltip || ''\"\n matTooltipPosition=\"above\"\n (click)=\"onInternalClick($event)\">\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n </button>\n} @else if (btnType === 'link') {\n <button\n mat-button\n class=\"c-button c-link\"\n [type]=\"hType\"\n [ngClass]=\"buttonClasses()\"\n [disabled]=\"_disabled\"\n [color]=\"_color\"\n [attr.data-autoId]=\"_autoId\"\n [attr.data-disabled]=\"_disabled ? 'true' : 'false'\"\n [attr.data-loading]=\"btnLoad ? 'true' : 'false'\"\n [style.width]=\"_width\"\n [matTooltip]=\"_tooltip || ''\"\n matTooltipPosition=\"above\"\n (click)=\"onInternalClick($event)\">\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n </button>\n}\n\n<ng-template #contentTpl>\n <div class=\"c-button-content-wrapper\">\n @if (btnLoad) {\n <mat-spinner mode=\"indeterminate\" diameter=\"18\" strokeWidth=\"2\" class=\"c-spinner\"></mat-spinner>\n } @else if (pIcon) {\n <mat-icon [fontSet]=\"fSet\" class=\"c-icon-prefix\">{{ pIcon }}</mat-icon>\n }\n\n @if (btnTitle) {\n <span class=\"c-title\" [class.ml-8]=\"btnLoad || pIcon\" [class.mr-8]=\"sIcon && !btnLoad\">\n {{ btnTitle }}\n </span>\n }\n\n @if (sIcon && !btnLoad) {\n <mat-icon [fontSet]=\"fSet\" class=\"c-icon-suffix\">{{ sIcon }}</mat-icon>\n }\n\n @if (!btnTitle && !pIcon && !btnLoad && sIcon) {\n <mat-icon [fontSet]=\"fSet\">{{ sIcon }}</mat-icon>\n }\n </div>\n</ng-template>\n", styles: [".text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-light{color:var(--sd-light)!important}.bg-light{background:var(--sd-light)!important}.border-light{border-color:var(--sd-light)!important}.text-dark{color:var(--sd-dark)!important}.bg-dark{background:var(--sd-dark)!important}.border-dark{border-color:var(--sd-dark)!important}.text-black500{color:var(--sd-black500)!important}.bg-black500{background:var(--sd-black500)!important}.border-black500{border-color:var(--sd-black500)!important}.text-black400{color:var(--sd-black400)!important}.bg-black400{background:var(--sd-black400)!important}.border-black400{border-color:var(--sd-black400)!important}.text-black300{color:var(--sd-black300)!important}.bg-black300{background:var(--sd-black300)!important}.border-black300{border-color:var(--sd-black300)!important}.text-black200{color:var(--sd-black200)!important}.bg-black200{background:var(--sd-black200)!important}.border-black200{border-color:var(--sd-black200)!important}.text-black100{color:var(--sd-black100)!important}.bg-black100{background:var(--sd-black100)!important}.border-black100{border-color:var(--sd-black100)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}:host{display:inline-block;pointer-events:auto}:host.sd-disabled{cursor:not-allowed}:host.sd-loading{cursor:wait}:host.sd-block{display:block;width:100%}:host.sd-block button{width:100%}:host ::ng-deep button.c-button{pointer-events:auto;min-width:auto;white-space:nowrap}:host ::ng-deep button.c-button .mat-button-wrapper,:host ::ng-deep button.c-button .mdc-button__label{display:flex;align-items:center;justify-content:center;width:100%;min-width:0}:host ::ng-deep button.c-button[disabled],:host ::ng-deep button.c-button.mat-button-disabled{pointer-events:none;color:#a6a6a6!important;background-color:#e9e9e9!important}:host ::ng-deep button.c-button.c-square{min-width:auto!important;padding:0!important}:host ::ng-deep button.c-button.c-sm{font-size:14px!important;height:32px;line-height:20px!important;padding:2px 12px!important;font-weight:400}:host ::ng-deep button.c-button.c-sm mat-icon{height:16px!important;width:16px!important;font-size:16px!important}:host ::ng-deep button.c-button.c-sm.c-square{width:32px!important;min-width:auto!important;padding:0!important}:host ::ng-deep button.c-button.c-md{font-size:16px;height:40px;line-height:20px;padding:2px 16px!important;font-weight:400}:host ::ng-deep button.c-button.c-md mat-icon{height:20px!important;width:20px!important;font-size:20px!important}:host ::ng-deep button.c-button.c-md.c-square{width:40px!important;min-width:auto!important;padding:0!important}:host ::ng-deep button.c-button.c-lg{font-size:16px!important;line-height:20px!important;padding:2px 16px!important;height:48px}:host ::ng-deep button.c-button.c-lg.c-square{width:48px!important;min-width:auto!important;padding:0!important}:host ::ng-deep button.c-button:focus{outline:none}:host ::ng-deep button.c-button.c-disabled{opacity:.5}:host ::ng-deep button.c-button.c-block{width:100%!important}:host ::ng-deep button.c-button.c-fill.mat-mdc-unelevated-button.mat-primary{background-color:var(--sd-primary);color:#fff}:host ::ng-deep button.c-button.c-fill.mat-mdc-unelevated-button.mat-info{background-color:var(--sd-info);color:#fff}:host ::ng-deep button.c-button.c-fill.mat-mdc-unelevated-button.mat-success{background-color:var(--sd-success);color:#fff}:host ::ng-deep button.c-button.c-fill.mat-mdc-unelevated-button.mat-warning{background-color:var(--sd-warning);color:#fff}:host ::ng-deep button.c-button.c-fill.mat-mdc-unelevated-button.mat-error{background-color:var(--sd-error);color:#fff}:host ::ng-deep button.c-button.c-fill.mat-mdc-unelevated-button.mat-secondary{background-color:#000!important;color:#fff}:host ::ng-deep button.c-button.c-fill .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:#fff!important}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-primary{background-color:var(--sd-primary-light);color:var(--sd-primary)}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-primary .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-primary)!important}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-info{background-color:var(--sd-info-light);color:var(--sd-info)}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-info .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-info)!important}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-success{background-color:var(--sd-success-light);color:var(--sd-success)}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-success .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-success)!important}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-warning{background-color:var(--sd-warning-light);color:var(--sd-warning)}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-warning .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-warning)!important}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-error{background-color:var(--sd-error-light);color:var(--sd-error)}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-error .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-error)!important}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-secondary{background-color:var(--sd-secondary-light);color:#000!important}:host ::ng-deep button.c-button.c-light.mat-mdc-unelevated-button.mat-secondary .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:#000!important}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button{border-color:#d3d3d3}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-primary{color:var(--sd-primary)}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-primary .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-primary)!important}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-info{color:var(--sd-info)}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-info .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-info)!important}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-success{color:var(--sd-success)}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-success .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-success)!important}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-warning{color:var(--sd-warning)}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-warning .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-warning)!important}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-error{color:var(--sd-error)}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-error .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-error)!important}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-secondary{color:#000!important}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-secondary .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:#000!important}:host ::ng-deep button.c-button.c-outline.mat-mdc-outlined-button.mat-button-disabled{background:transparent!important}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-primary{color:var(--sd-primary)}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-primary .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-primary)!important}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-info{color:var(--sd-info)}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-info .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-info)!important}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-success{color:var(--sd-success)}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-success .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-success)!important}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-warning{color:var(--sd-warning)}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-warning .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-warning)!important}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-error{color:var(--sd-error)}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-error .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:var(--sd-error)!important}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-secondary{color:#000!important}:host ::ng-deep button.c-button.c-link.mat-mdc-button.mat-secondary .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic circle{stroke:#000!important}:host ::ng-deep .c-button-content-wrapper{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;pointer-events:none}:host ::ng-deep .c-title{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host ::ng-deep .c-spinner{display:inline-block}:host.sd-loading ::ng-deep button.c-button{pointer-events:none;opacity:.85}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
102
100
|
}
|
|
103
101
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdButton, decorators: [{
|
|
104
102
|
type: Component,
|