@simplysm/angular 14.0.85 → 14.0.87
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/dist/controls/pagination/sd-pagination.d.ts.map +1 -1
- package/dist/controls/pagination/sd-pagination.js +2 -0
- package/dist/controls/select/sd-select-item.js +1 -1
- package/dist/controls/select/sd-select.js +1 -1
- package/dist/core/app-structure/sd-app-structure.provider.d.ts +2 -3
- package/dist/core/app-structure/sd-app-structure.provider.d.ts.map +1 -1
- package/dist/core/app-structure/sd-app-structure.provider.js +5 -9
- package/dist/core/app-structure/sd-app-structure.utils.d.ts +2 -0
- package/dist/core/app-structure/sd-app-structure.utils.d.ts.map +1 -1
- package/dist/core/app-structure/sd-app-structure.utils.js +9 -1
- package/dist/core/busy/sd-busy-container.d.ts +1 -1
- package/dist/core/busy/sd-busy-container.d.ts.map +1 -1
- package/dist/core/busy/sd-busy-container.js +11 -11
- package/dist/core/busy/sd-busy.provider.d.ts.map +1 -1
- package/dist/core/busy/sd-busy.provider.js +3 -0
- package/dist/core/config/sd-system-config.provider.d.ts +4 -4
- package/dist/core/config/sd-system-config.provider.d.ts.map +1 -1
- package/dist/core/config/sd-system-config.provider.js +3 -0
- package/dist/core/error-handler/sd-global-error-handler.plugin.d.ts +1 -1
- package/dist/core/error-handler/sd-global-error-handler.plugin.d.ts.map +1 -1
- package/dist/core/file-dialog/sd-file-dialog.provider.d.ts.map +1 -1
- package/dist/core/file-dialog/sd-file-dialog.provider.js +4 -0
- package/dist/core/modal/sd-activated-modal.provider.d.ts +2 -1
- package/dist/core/modal/sd-activated-modal.provider.d.ts.map +1 -1
- package/dist/core/modal/sd-modal.d.ts.map +1 -1
- package/dist/core/modal/sd-modal.js +3 -3
- package/dist/core/modal/sd-modal.provider.d.ts.map +1 -1
- package/dist/core/modal/sd-modal.provider.js +8 -0
- package/dist/core/modal/sd-prompt-modal.d.ts +2 -2
- package/dist/core/modal/sd-prompt-modal.d.ts.map +1 -1
- package/dist/core/modal/sd-prompt-modal.js +32 -37
- package/dist/core/print/sd-print.provider.d.ts.map +1 -1
- package/dist/core/print/sd-print.provider.js +19 -6
- package/dist/core/provideSdAngular.d.ts.map +1 -1
- package/dist/core/provideSdAngular.js +4 -1
- package/dist/core/routing/injectViewTitleSignal.d.ts.map +1 -1
- package/dist/core/routing/injectViewTitleSignal.js +1 -6
- package/dist/core/shared-data/sd-shared-data.provider.d.ts +2 -1
- package/dist/core/shared-data/sd-shared-data.provider.d.ts.map +1 -1
- package/dist/core/shared-data/sd-shared-data.provider.js +3 -3
- package/dist/core/toast/sd-toast.provider.d.ts +1 -0
- package/dist/core/toast/sd-toast.provider.d.ts.map +1 -1
- package/dist/core/toast/sd-toast.provider.js +18 -4
- package/dist/data/crud/sd-base-container.d.ts.map +1 -1
- package/dist/data/crud/sd-base-container.js +56 -54
- package/dist/data/kanban/sd-kanban-lane.d.ts.map +1 -1
- package/dist/data/shared-data/sd-shared-data-select-button.d.ts +1 -2
- package/dist/data/shared-data/sd-shared-data-select-button.d.ts.map +1 -1
- package/dist/data/shared-data/sd-shared-data-select-button.js +18 -21
- package/dist/data/shared-data/sd-shared-data-select.d.ts +3 -2
- package/dist/data/shared-data/sd-shared-data-select.d.ts.map +1 -1
- package/dist/data/shared-data/sd-shared-data-select.js +10 -10
- package/dist/data/sheet/sd-sheet-config.modal.d.ts +3 -3
- package/dist/data/sheet/sd-sheet-config.modal.d.ts.map +1 -1
- package/dist/data/sheet/sd-sheet-config.modal.js +37 -34
- package/dist/data/sheet/sd-sheet.d.ts.map +1 -1
- package/dist/data/sheet/sd-sheet.js +5 -1
- package/dist/data/sheet/useSheetCellStyling.d.ts.map +1 -1
- package/dist/data/sheet/useSheetCellStyling.js +4 -22
- package/dist/data/state-preset/sd-state-preset.d.ts +10 -10
- package/dist/data/state-preset/sd-state-preset.d.ts.map +1 -1
- package/dist/data/state-preset/sd-state-preset.js +4 -4
- package/dist/features/address/sd-address-search.modal.js +1 -1
- package/dist/features/editor/sd-tiptap-editor.d.ts.map +1 -1
- package/dist/features/editor/sd-tiptap-editor.js +3 -2
- package/dist/features/theme/sd-theme-selector.d.ts +6 -8
- package/dist/features/theme/sd-theme-selector.d.ts.map +1 -1
- package/dist/features/theme/sd-theme-selector.js +54 -51
- package/dist/features/visual/sd-barcode.d.ts.map +1 -1
- package/dist/features/visual/sd-barcode.js +5 -10
- package/dist/layout/sidebar/sd-sidebar-user.d.ts.map +1 -1
- package/dist/layout/sidebar/sd-sidebar-user.js +26 -36
- package/package.json +28 -28
- package/src/controls/button/sd-modal-select-button.ts +1 -1
- package/src/controls/form/sd-form.ts +1 -1
- package/src/controls/input/sd-textfield-type-handlers.ts +2 -2
- package/src/controls/pagination/sd-pagination.ts +1 -0
- package/src/controls/select/sd-select-item.ts +1 -1
- package/src/controls/select/sd-select.ts +1 -1
- package/src/core/app-structure/sd-app-structure.provider.ts +7 -13
- package/src/core/app-structure/sd-app-structure.utils.ts +14 -2
- package/src/core/busy/sd-busy-container.ts +6 -13
- package/src/core/busy/sd-busy.provider.ts +4 -0
- package/src/core/config/injectSdSystemConfigResource.ts +1 -1
- package/src/core/config/sd-system-config.provider.ts +5 -3
- package/src/core/error-handler/sd-global-error-handler.plugin.ts +1 -1
- package/src/core/file-dialog/sd-file-dialog.provider.ts +5 -1
- package/src/core/modal/sd-activated-modal.provider.ts +2 -1
- package/src/core/modal/sd-modal.provider.ts +8 -0
- package/src/core/modal/sd-modal.ts +6 -3
- package/src/core/modal/sd-prompt-modal.ts +13 -23
- package/src/core/print/sd-print.provider.ts +21 -6
- package/src/core/provideSdAngular.ts +5 -1
- package/src/core/routing/injectViewTitleSignal.ts +1 -5
- package/src/core/shared-data/sd-shared-data.provider.ts +4 -4
- package/src/core/toast/sd-toast.provider.ts +35 -12
- package/src/data/crud/sd-base-container.ts +120 -118
- package/src/data/kanban/sd-kanban-lane.ts +2 -2
- package/src/data/shared-data/sd-shared-data-select-button.ts +15 -20
- package/src/data/shared-data/sd-shared-data-select-list.ts +4 -4
- package/src/data/shared-data/sd-shared-data-select.ts +10 -12
- package/src/data/sheet/sd-sheet-column.ts +1 -1
- package/src/data/sheet/sd-sheet-config.modal.ts +39 -35
- package/src/data/sheet/sd-sheet.ts +6 -1
- package/src/data/sheet/useSheetCellStyling.ts +3 -20
- package/src/data/state-preset/sd-state-preset.ts +11 -11
- package/src/features/address/sd-address-search.modal.ts +1 -1
- package/src/features/editor/sd-tiptap-editor.ts +3 -2
- package/src/features/theme/sd-theme-selector.ts +77 -75
- package/src/features/visual/sd-barcode.ts +5 -9
- package/src/features/visual/sd-calendar.ts +1 -1
- package/src/layout/sidebar/sd-sidebar-user.ts +3 -5
|
@@ -927,11 +927,16 @@ export class SdSheet<TItem> {
|
|
|
927
927
|
}
|
|
928
928
|
|
|
929
929
|
async onConfigButtonClick(): Promise<void> {
|
|
930
|
+
const key = this.key();
|
|
931
|
+
if (key == null) {
|
|
932
|
+
throw new Error("시트 설정을 사용하려면 'key'가 지정되어야 합니다.");
|
|
933
|
+
}
|
|
934
|
+
|
|
930
935
|
const result = await this._sdModal.showAsync({
|
|
931
936
|
title: "시트 설정",
|
|
932
937
|
type: SdSheetConfigModal,
|
|
933
938
|
inputs: {
|
|
934
|
-
sheetKey:
|
|
939
|
+
sheetKey: key,
|
|
935
940
|
controls: this._effectiveColumnControls(),
|
|
936
941
|
config: this._configResource.value(),
|
|
937
942
|
},
|
|
@@ -28,24 +28,7 @@ export function useSheetCellStyling<T>(options: {
|
|
|
28
28
|
return `left: ${leftValue}px`;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
const
|
|
32
|
-
const map = new Map<string, string | null>();
|
|
33
|
-
const defs = options.columnDefs();
|
|
34
|
-
for (let i = 0; i < defs.length; i++) {
|
|
35
|
-
const colDef = defs[i];
|
|
36
|
-
const parts: string[] = [];
|
|
37
|
-
const colStyle = getColDefStyle(colDef);
|
|
38
|
-
if (colStyle != null) parts.push(colStyle);
|
|
39
|
-
if (colDef.fixed) {
|
|
40
|
-
const fixedStyle = getFixedLeftStyle(i);
|
|
41
|
-
if (fixedStyle != null) parts.push(fixedStyle);
|
|
42
|
-
}
|
|
43
|
-
map.set(colDef.key, parts.length > 0 ? parts.join("; ") : null);
|
|
44
|
-
}
|
|
45
|
-
return map;
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
const dataColumnBaseStyles = computed(() => {
|
|
31
|
+
const columnBaseStyles = computed(() => {
|
|
49
32
|
const map = new Map<string, string | null>();
|
|
50
33
|
const defs = options.columnDefs();
|
|
51
34
|
for (let i = 0; i < defs.length; i++) {
|
|
@@ -65,14 +48,14 @@ export function useSheetCellStyling<T>(options: {
|
|
|
65
48
|
function getHeaderCellStyle(cell: SdSheetHeaderDef): string | null {
|
|
66
49
|
if (cell.colDef == null) return null;
|
|
67
50
|
const parts: string[] = [];
|
|
68
|
-
const baseStyle =
|
|
51
|
+
const baseStyle = columnBaseStyles().get(cell.colDef.key);
|
|
69
52
|
if (baseStyle != null) parts.push(baseStyle);
|
|
70
53
|
if (cell.colDef.headerStyle != null) parts.push(cell.colDef.headerStyle);
|
|
71
54
|
return parts.length > 0 ? parts.join("; ") : null;
|
|
72
55
|
}
|
|
73
56
|
|
|
74
57
|
function getCellStyle(item: T, colDef: SdSheetColumnDef): string | null {
|
|
75
|
-
const baseStyle =
|
|
58
|
+
const baseStyle = columnBaseStyles().get(colDef.key) ?? null;
|
|
76
59
|
const styleFn = options.getItemCellStyleFn();
|
|
77
60
|
const customStyle = styleFn != null ? styleFn(item, colDef.key) : undefined;
|
|
78
61
|
if (baseStyle != null && customStyle != null) return `${baseStyle}; ${customStyle}`;
|
|
@@ -17,9 +17,9 @@ import { NgIcon } from "@ng-icons/core";
|
|
|
17
17
|
import { tablerStar, tablerDeviceFloppy, tablerX } from "@ng-icons/tabler-icons";
|
|
18
18
|
import { obj } from "@simplysm/core-common";
|
|
19
19
|
|
|
20
|
-
export interface SdStatePresetDef {
|
|
20
|
+
export interface SdStatePresetDef<TState> {
|
|
21
21
|
name: string;
|
|
22
|
-
state:
|
|
22
|
+
state: TState;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
@Component({
|
|
@@ -112,19 +112,19 @@ export interface SdStatePresetDef {
|
|
|
112
112
|
"[attr.data-sd-size]": "size()",
|
|
113
113
|
},
|
|
114
114
|
})
|
|
115
|
-
export class SdStatePreset {
|
|
115
|
+
export class SdStatePreset<TState> {
|
|
116
116
|
private readonly _sdModal = inject(SdModalProvider);
|
|
117
117
|
private readonly _sdToast = inject(SdToastProvider);
|
|
118
118
|
|
|
119
119
|
key = input.required<string>();
|
|
120
|
-
state = model<
|
|
120
|
+
state = model.required<TState>();
|
|
121
121
|
size = input<"sm" | "lg">();
|
|
122
122
|
|
|
123
123
|
protected readonly tablerStar = tablerStar;
|
|
124
124
|
protected readonly tablerDeviceFloppy = tablerDeviceFloppy;
|
|
125
125
|
protected readonly tablerX = tablerX;
|
|
126
126
|
|
|
127
|
-
private readonly _configResource = injectSdSystemConfigResource<SdStatePresetDef[]>({
|
|
127
|
+
private readonly _configResource = injectSdSystemConfigResource<SdStatePresetDef<TState>[]>({
|
|
128
128
|
key: this.key,
|
|
129
129
|
});
|
|
130
130
|
|
|
@@ -149,31 +149,31 @@ export class SdStatePreset {
|
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
const newPreset: SdStatePresetDef = {
|
|
152
|
+
const newPreset: SdStatePresetDef<TState> = {
|
|
153
153
|
name,
|
|
154
154
|
state: obj.clone(this.state()),
|
|
155
155
|
};
|
|
156
156
|
|
|
157
157
|
this._configResource.set([...currentPresets, newPreset]);
|
|
158
|
-
this._sdToast.
|
|
158
|
+
this._sdToast.success(`현재 상태가 '${name}'에 저장되었습니다.`);
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
onPresetClick(preset: SdStatePresetDef): void {
|
|
161
|
+
onPresetClick(preset: SdStatePresetDef<TState>): void {
|
|
162
162
|
const currentState = this.state();
|
|
163
163
|
if (obj.equal(currentState, preset.state)) return;
|
|
164
164
|
this.state.set(obj.clone(preset.state));
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
onSaveClick(preset: SdStatePresetDef): void {
|
|
167
|
+
onSaveClick(preset: SdStatePresetDef<TState>): void {
|
|
168
168
|
const currentPresets = this._presets();
|
|
169
169
|
const updated = currentPresets.map((p) =>
|
|
170
170
|
p.name === preset.name ? { ...p, state: obj.clone(this.state()) } : p,
|
|
171
171
|
);
|
|
172
172
|
this._configResource.set(updated);
|
|
173
|
-
this._sdToast.
|
|
173
|
+
this._sdToast.success(`현재 상태가 ${preset.name}에 저장되었습니다.`);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
async onDeleteClick(preset: SdStatePresetDef): Promise<void> {
|
|
176
|
+
async onDeleteClick(preset: SdStatePresetDef<TState>): Promise<void> {
|
|
177
177
|
const confirmed = await this._sdModal.showAsync(
|
|
178
178
|
{
|
|
179
179
|
title: "프리셋 삭제",
|
|
@@ -151,7 +151,7 @@ export class SdAddressSearchModal implements SdModalContentDef<Address>, OnInit
|
|
|
151
151
|
this.close.emit({
|
|
152
152
|
postNumber: data.zonecode,
|
|
153
153
|
address: addr + extraAddr,
|
|
154
|
-
buildingName: data.buildingName,
|
|
154
|
+
buildingName: data.buildingName !== "" ? data.buildingName : undefined,
|
|
155
155
|
});
|
|
156
156
|
},
|
|
157
157
|
onresize: (size: { height: number }): void => {
|
|
@@ -323,8 +323,9 @@ export class SdTiptapEditor {
|
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
|
|
327
|
-
|
|
326
|
+
const validatorFn = this.validatorFn();
|
|
327
|
+
if (validatorFn != null) {
|
|
328
|
+
const message = validatorFn(this.value());
|
|
328
329
|
if (message != null) {
|
|
329
330
|
errorMessages.push(message);
|
|
330
331
|
}
|
|
@@ -1,75 +1,77 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectionStrategy,
|
|
3
|
-
Component,
|
|
4
|
-
computed,
|
|
5
|
-
inject,
|
|
6
|
-
ViewEncapsulation,
|
|
7
|
-
} from "@angular/core";
|
|
8
|
-
import { SdDropdown } from "../../controls/dropdown/sd-dropdown";
|
|
9
|
-
import { SdDropdownPopup } from "../../controls/dropdown/sd-dropdown-popup";
|
|
10
|
-
import { SdButton } from "../../controls/button/sd-button";
|
|
11
|
-
import { SdSwitch } from "../../controls/checkbox/sd-switch";
|
|
12
|
-
import { NgIcon } from "@ng-icons/core";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
@Component({
|
|
17
|
-
selector: "sd-theme-selector",
|
|
18
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
|
-
encapsulation: ViewEncapsulation.None,
|
|
20
|
-
standalone: true,
|
|
21
|
-
imports: [SdDropdown, SdDropdownPopup, SdButton, SdSwitch, NgIcon],
|
|
22
|
-
template: `
|
|
23
|
-
<sd-dropdown>
|
|
24
|
-
<sd-button [inline]="true" [theme]="'link-gray'">
|
|
25
|
-
<ng-icon [svg]="
|
|
26
|
-
</sd-button>
|
|
27
|
-
<sd-dropdown-popup>
|
|
28
|
-
<div class="p-default">
|
|
29
|
-
<div class="flex-row gap-sm cross-align-center">
|
|
30
|
-
<span>글자 크기</span>
|
|
31
|
-
<div class="flex-row gap-xs cross-align-center">
|
|
32
|
-
<sd-button
|
|
33
|
-
[inline]="true"
|
|
34
|
-
[theme]="'link-gray'"
|
|
35
|
-
[size]="'sm'"
|
|
36
|
-
[disabled]="isMinFontSize()"
|
|
37
|
-
(click)="
|
|
38
|
-
>
|
|
39
|
-
<ng-icon [svg]="
|
|
40
|
-
</sd-button>
|
|
41
|
-
<span>{{
|
|
42
|
-
<sd-button
|
|
43
|
-
[inline]="true"
|
|
44
|
-
[theme]="'link-gray'"
|
|
45
|
-
[size]="'sm'"
|
|
46
|
-
[disabled]="isMaxFontSize()"
|
|
47
|
-
(click)="
|
|
48
|
-
>
|
|
49
|
-
<ng-icon [svg]="
|
|
50
|
-
</sd-button>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
<div class="flex-row gap-sm cross-align-center">
|
|
54
|
-
<span>다크 모드</span>
|
|
55
|
-
<sd-switch [(value)]="
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
</sd-dropdown-popup>
|
|
59
|
-
</sd-dropdown>
|
|
60
|
-
`,
|
|
61
|
-
styles: [],
|
|
62
|
-
})
|
|
63
|
-
export class SdThemeSelector {
|
|
64
|
-
protected readonly
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
computed,
|
|
5
|
+
inject,
|
|
6
|
+
ViewEncapsulation,
|
|
7
|
+
} from "@angular/core";
|
|
8
|
+
import { SdDropdown } from "../../controls/dropdown/sd-dropdown";
|
|
9
|
+
import { SdDropdownPopup } from "../../controls/dropdown/sd-dropdown-popup";
|
|
10
|
+
import { SdButton } from "../../controls/button/sd-button";
|
|
11
|
+
import { SdSwitch } from "../../controls/checkbox/sd-switch";
|
|
12
|
+
import { NgIcon } from "@ng-icons/core";
|
|
13
|
+
import { SdThemeProvider } from "./sd-theme-provider";
|
|
14
|
+
import { tablerMinus, tablerPalette, tablerPlus } from "@ng-icons/tabler-icons";
|
|
15
|
+
|
|
16
|
+
@Component({
|
|
17
|
+
selector: "sd-theme-selector",
|
|
18
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
|
+
encapsulation: ViewEncapsulation.None,
|
|
20
|
+
standalone: true,
|
|
21
|
+
imports: [SdDropdown, SdDropdownPopup, SdButton, SdSwitch, NgIcon],
|
|
22
|
+
template: `
|
|
23
|
+
<sd-dropdown>
|
|
24
|
+
<sd-button [inline]="true" [theme]="'link-gray'">
|
|
25
|
+
<ng-icon [svg]="tablerPalette" />
|
|
26
|
+
</sd-button>
|
|
27
|
+
<sd-dropdown-popup>
|
|
28
|
+
<div class="p-default">
|
|
29
|
+
<div class="flex-row gap-sm cross-align-center">
|
|
30
|
+
<span>글자 크기</span>
|
|
31
|
+
<div class="flex-row gap-xs cross-align-center">
|
|
32
|
+
<sd-button
|
|
33
|
+
[inline]="true"
|
|
34
|
+
[theme]="'link-gray'"
|
|
35
|
+
[size]="'sm'"
|
|
36
|
+
[disabled]="isMinFontSize()"
|
|
37
|
+
(click)="_sdTheme.decreaseFontSize()"
|
|
38
|
+
>
|
|
39
|
+
<ng-icon [svg]="tablerMinus" />
|
|
40
|
+
</sd-button>
|
|
41
|
+
<span>{{ _sdTheme.fontSize() }}px</span>
|
|
42
|
+
<sd-button
|
|
43
|
+
[inline]="true"
|
|
44
|
+
[theme]="'link-gray'"
|
|
45
|
+
[size]="'sm'"
|
|
46
|
+
[disabled]="isMaxFontSize()"
|
|
47
|
+
(click)="_sdTheme.increaseFontSize()"
|
|
48
|
+
>
|
|
49
|
+
<ng-icon [svg]="tablerPlus" />
|
|
50
|
+
</sd-button>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="flex-row gap-sm cross-align-center">
|
|
54
|
+
<span>다크 모드</span>
|
|
55
|
+
<sd-switch [(value)]="_sdTheme.dark" />
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</sd-dropdown-popup>
|
|
59
|
+
</sd-dropdown>
|
|
60
|
+
`,
|
|
61
|
+
styles: [],
|
|
62
|
+
})
|
|
63
|
+
export class SdThemeSelector {
|
|
64
|
+
protected readonly _sdTheme = inject(SdThemeProvider);
|
|
65
|
+
|
|
66
|
+
isMinFontSize = computed(() => this._sdTheme.fontSize() <= this._sdTheme.fontSizePresets[0]);
|
|
67
|
+
|
|
68
|
+
isMaxFontSize = computed(
|
|
69
|
+
() =>
|
|
70
|
+
this._sdTheme.fontSize() >=
|
|
71
|
+
this._sdTheme.fontSizePresets[this._sdTheme.fontSizePresets.length - 1],
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
protected readonly tablerPlus = tablerPlus;
|
|
75
|
+
protected readonly tablerMinus = tablerMinus;
|
|
76
|
+
protected readonly tablerPalette = tablerPalette;
|
|
77
|
+
}
|
|
@@ -32,15 +32,11 @@ export class SdBarcode {
|
|
|
32
32
|
if (text == null || text === "") {
|
|
33
33
|
return "";
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return this._sanitizer.bypassSecurityTrustHtml(svg);
|
|
41
|
-
} catch {
|
|
42
|
-
return "";
|
|
43
|
-
}
|
|
35
|
+
const svg = bwipjs.toSVG({
|
|
36
|
+
bcid: this.type(),
|
|
37
|
+
text,
|
|
38
|
+
});
|
|
39
|
+
return this._sanitizer.bypassSecurityTrustHtml(svg);
|
|
44
40
|
});
|
|
45
41
|
}
|
|
46
42
|
|
|
@@ -134,7 +134,7 @@ export class SdCalendar<T> {
|
|
|
134
134
|
|
|
135
135
|
yearMonth = input(new DateOnly().setDay(1));
|
|
136
136
|
|
|
137
|
-
itemTplRef = contentChild.required<
|
|
137
|
+
itemTplRef = contentChild.required<SdItemOfTemplate<T>, TemplateRef<SdItemOfTemplateContext<T>>>(
|
|
138
138
|
SdItemOfTemplate,
|
|
139
139
|
{ read: TemplateRef },
|
|
140
140
|
);
|
|
@@ -21,17 +21,15 @@ import { SdListItem } from "../../controls/list/sd-list-item";
|
|
|
21
21
|
<div class="p-lg">
|
|
22
22
|
<ng-content />
|
|
23
23
|
</div>
|
|
24
|
-
@if (userMenu()
|
|
24
|
+
@if (userMenu(); as _userMenu) {
|
|
25
25
|
<div class="_menu-button" tabindex="0" (click)="onMenuOpenButtonClick()" (keydown.enter)="onMenuOpenButtonClick()" [sdRipple]="true">
|
|
26
|
-
{{
|
|
26
|
+
{{ _userMenu.title }}
|
|
27
27
|
<sd-collapse-icon [open]="menuOpen()" style="float: right;" [openRotate]="180" />
|
|
28
28
|
</div>
|
|
29
|
-
}
|
|
30
29
|
|
|
31
|
-
@if (userMenu()?.title) {
|
|
32
30
|
<sd-collapse [open]="menuOpen()">
|
|
33
31
|
<sd-list [inset]="true">
|
|
34
|
-
@for (menu of
|
|
32
|
+
@for (menu of _userMenu.menus; track menu.title) {
|
|
35
33
|
<sd-list-item (click)="menu.onClick()">
|
|
36
34
|
{{ menu.title }}
|
|
37
35
|
</sd-list-item>
|