@sd-angular/core 19.0.0-beta.75 → 19.0.0-beta.77
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/assets/scss/sd-core.scss +3 -2
- package/components/modal/src/modal.component.d.ts +3 -1
- package/fesm2022/sd-angular-core-components-import-excel.mjs +1 -1
- package/fesm2022/sd-angular-core-components-import-excel.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-modal.mjs +9 -4
- package/fesm2022/sd-angular-core-components-modal.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-preview.mjs +1 -1
- package/fesm2022/sd-angular-core-components-preview.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-table.mjs +2 -2
- package/fesm2022/sd-angular-core-components-table.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-upload-file.mjs +1 -1
- package/fesm2022/sd-angular-core-components-upload-file.mjs.map +1 -1
- package/fesm2022/sd-angular-core-components-workflow.mjs +9 -9
- package/fesm2022/sd-angular-core-components-workflow.mjs.map +1 -1
- package/fesm2022/sd-angular-core-services-confirm.mjs +4 -0
- package/fesm2022/sd-angular-core-services-confirm.mjs.map +1 -1
- package/package.json +43 -43
- package/sd-angular-core-19.0.0-beta.77.tgz +0 -0
- package/services/confirm/src/lib/confirm.service.d.ts +4 -0
- package/sd-angular-core-19.0.0-beta.75.tgz +0 -0
|
@@ -65,6 +65,7 @@ class SdConfirmService {
|
|
|
65
65
|
confirm = (message, option = {}) => {
|
|
66
66
|
const dialogRef = this.dialog.open(DialogConfirmComponent, {
|
|
67
67
|
width: option?.width || '400px',
|
|
68
|
+
disableClose: option?.disableBackdropClose ?? true,
|
|
68
69
|
data: {
|
|
69
70
|
title: option?.title || 'Xác nhận',
|
|
70
71
|
message,
|
|
@@ -90,6 +91,7 @@ class SdConfirmService {
|
|
|
90
91
|
withInput = (message, option) => {
|
|
91
92
|
const dialogRef = this.dialog.open(DialogConfirmComponent, {
|
|
92
93
|
width: '400px',
|
|
94
|
+
disableClose: option?.disableBackdropClose ?? true,
|
|
93
95
|
data: {
|
|
94
96
|
title: option?.title || 'Xác nhận',
|
|
95
97
|
message,
|
|
@@ -120,6 +122,7 @@ class SdConfirmService {
|
|
|
120
122
|
withRadio = (message, option) => {
|
|
121
123
|
const dialogRef = this.dialog.open(DialogConfirmComponent, {
|
|
122
124
|
width: '400px',
|
|
125
|
+
disableClose: option?.disableBackdropClose ?? true,
|
|
123
126
|
data: {
|
|
124
127
|
title: option?.title || 'Xác nhận',
|
|
125
128
|
message,
|
|
@@ -153,6 +156,7 @@ class SdConfirmService {
|
|
|
153
156
|
withDate = (message, option) => {
|
|
154
157
|
const dialogRef = this.dialog.open(DialogConfirmComponent, {
|
|
155
158
|
width: '400px',
|
|
159
|
+
disableClose: option?.disableBackdropClose ?? true,
|
|
156
160
|
data: {
|
|
157
161
|
title: option?.title || 'Xác nhận',
|
|
158
162
|
message,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-angular-core-services-confirm.mjs","sources":["../../../projects/sd-angular/services/confirm/src/lib/components/dialog-confirm/dialog-confirm.component.ts","../../../projects/sd-angular/services/confirm/src/lib/components/dialog-confirm/dialog-confirm.component.html","../../../projects/sd-angular/services/confirm/src/lib/confirm.service.ts","../../../projects/sd-angular/services/confirm/src/public-api.ts","../../../projects/sd-angular/services/confirm/sd-angular-core-services-confirm.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\r\nimport { Component, Inject } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { SdButton } from '@sd-angular/core/components/button';\r\nimport { SdDate } from '@sd-angular/core/forms/date';\r\nimport { SdRadio } from '@sd-angular/core/forms/radio';\r\nimport { SdTextarea } from '@sd-angular/core/forms/textarea';\r\nimport { SdColor } from '@sd-angular/core/utilities/models';\r\nimport * as uuid from 'uuid';\r\n\r\nexport interface DialogData {\r\n icon?: string;\r\n title?: string;\r\n message?: string;\r\n yesTitle?: string;\r\n noTitle?: string;\r\n yesButtonColor?: SdColor;\r\n noButtonColor?: SdColor;\r\n input?: {\r\n placeholder?: string;\r\n minlength?: number;\r\n maxlength?: number;\r\n required?: boolean;\r\n defaultValue?: string;\r\n };\r\n date?: {\r\n required?: boolean;\r\n placeholder?: string;\r\n defaultValue?: string | Date;\r\n min?: string | Date;\r\n max?: string | Date;\r\n };\r\n radio?: {\r\n required?: boolean;\r\n defaultValue?: string | number;\r\n items: any[];\r\n valueField: string;\r\n displayField: string;\r\n display?: 'row' | 'column';\r\n };\r\n}\r\n\r\n@Component({\r\n selector: 'sd-dialog-confirm',\r\n templateUrl: 'dialog-confirm.component.html',\r\n styleUrls: ['./dialog-confirm.component.scss'],\r\n imports: [CommonModule, FormsModule, MatDialogModule, MatIconModule, SdButton, SdDate, SdRadio, SdTextarea],\r\n})\r\nexport class DialogConfirmComponent {\r\n value: any;\r\n required = false;\r\n id = `I${uuid.v4()}`;\r\n constructor(\r\n public dialogRef: MatDialogRef<DialogConfirmComponent>,\r\n @Inject(MAT_DIALOG_DATA) public data: DialogData\r\n ) {\r\n if (data?.input) {\r\n this.value = data?.input?.defaultValue ?? '';\r\n this.required = data?.input?.required || false;\r\n }\r\n if (data?.date) {\r\n this.value = data?.date?.defaultValue ?? '';\r\n this.required = data?.date?.required || false;\r\n }\r\n if (data?.radio) {\r\n this.value = data?.radio?.defaultValue ?? '';\r\n this.required = data?.radio?.required || false;\r\n }\r\n }\r\n\r\n onCancel = () => {\r\n this.dialogRef.close({ action: 'CANCEL', value: null });\r\n };\r\n\r\n onAccept = () => {\r\n // Always return an object with action and value for consistency\r\n if (this.data?.radio || this.data?.input || this.data?.date) {\r\n this.dialogRef.close({ action: 'ACCEPT', value: this.value });\r\n } else {\r\n this.dialogRef.close({ action: 'ACCEPT', value: null });\r\n }\r\n };\r\n}\r\n","<div mat-dialog-title class=\"\">\r\n @if (data.icon) {\r\n <mat-icon>\r\n {{ data.icon }}\r\n </mat-icon>\r\n }\r\n <span class=\"T24M\" [innerHtml]=\"data.title || 'Confirm'\"></span>\r\n</div>\r\n<div mat-dialog-content>\r\n <div class=\"T14R mb-4\" [innerHtml]=\"data.message\"></div>\r\n @if (data.input) {\r\n <sd-textarea [placeholder]=\"data.input.placeholder\" [(model)]=\"value\" [rows]=\"5\" [maxlength]=\"data.input.maxlength!\" />\r\n }\r\n @if (data.date) {\r\n <sd-date\r\n [placeholder]=\"data.date.placeholder\"\r\n [(model)]=\"value\"\r\n type=\"date\"\r\n [min]=\"data.date.min!\"\r\n [max]=\"data.date.max!\"\r\n [required]=\"data.date.required\">\r\n </sd-date>\r\n }\r\n @if (data.radio) {\r\n <sd-radio\r\n [items]=\"data.radio.items\"\r\n [valueField]=\"data.radio.valueField\"\r\n [displayField]=\"data.radio.displayField\"\r\n [display]=\"data.radio.display || 'column'\"\r\n [(model)]=\"value\"\r\n [required]=\"data.radio.required\">\r\n </sd-radio>\r\n }\r\n</div>\r\n<div mat-dialog-actions align=\"end\">\r\n @if (data.noTitle) {\r\n <sd-button [color]=\"data.noButtonColor || 'secondary'\" [title]=\"data.noTitle\" (click)=\"onCancel()\"></sd-button>\r\n }\r\n @if (data.yesTitle) {\r\n <sd-button\r\n class=\"ml-8\"\r\n type=\"fill\"\r\n [color]=\"data.yesButtonColor || 'primary'\"\r\n [disabled]=\"required && !value\"\r\n cdkFocusInitial\r\n [title]=\"data.yesTitle\"\r\n (click)=\"onAccept()\"></sd-button>\r\n }\r\n</div>\r\n","import { Injectable } from '@angular/core';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { DialogConfirmComponent } from './components/dialog-confirm/dialog-confirm.component';\r\nimport { SdColor } from '@sd-angular/core/utilities/models';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class SdConfirmService {\r\n constructor(private dialog: MatDialog) {}\r\n\r\n confirm = (\r\n message: string,\r\n option: {\r\n title?: string;\r\n yesTitle?: string;\r\n noTitle?: string;\r\n yesButtonColor?: SdColor;\r\n noButtonColor?: SdColor;\r\n width?: string;\r\n } = {}\r\n ) => {\r\n const dialogRef = this.dialog.open(DialogConfirmComponent, {\r\n width: option?.width || '400px',\r\n data: {\r\n title: option?.title || 'Xác nhận',\r\n message,\r\n yesTitle: option?.yesTitle || 'Đồng ý',\r\n noTitle: option?.noTitle || 'Hủy bỏ',\r\n noButtonColor: option?.noButtonColor || 'secondary',\r\n yesButtonColor: option?.yesButtonColor || 'primary',\r\n },\r\n });\r\n return new Promise((resolve, reject) => {\r\n dialogRef.afterClosed().subscribe(result => {\r\n if (result) {\r\n if (result.action === 'CANCEL') {\r\n reject(result.action);\r\n } else if (result.action === 'ACCEPT') {\r\n resolve(result.value);\r\n }\r\n }\r\n });\r\n });\r\n };\r\n\r\n withInput = (\r\n message?: string,\r\n option?: {\r\n title?: string;\r\n yesTitle?: string;\r\n noTitle?: string;\r\n required?: boolean;\r\n maxlength?: number;\r\n yesButtonColor?: SdColor;\r\n noButtonColor?: SdColor;\r\n defaultValue?: string;\r\n }\r\n ): Promise<string> => {\r\n const dialogRef = this.dialog.open(DialogConfirmComponent, {\r\n width: '400px',\r\n data: {\r\n title: option?.title || 'Xác nhận',\r\n message,\r\n yesTitle: option?.yesTitle || 'Có',\r\n noTitle: option?.noTitle || 'Không',\r\n noButtonColor: option?.noButtonColor || 'secondary',\r\n yesButtonColor: option?.yesButtonColor || 'primary',\r\n input: {\r\n maxlength: option?.maxlength || 255,\r\n required: option?.required,\r\n defaultValue: option?.defaultValue || '',\r\n },\r\n },\r\n });\r\n return new Promise((resolve, reject) => {\r\n dialogRef.afterClosed().subscribe(result => {\r\n if (result) {\r\n if (result.action === 'CANCEL') {\r\n reject(result.action);\r\n } else if (result.action === 'ACCEPT') {\r\n resolve(result.value);\r\n }\r\n }\r\n });\r\n });\r\n };\r\n\r\n withRadio = (\r\n message?: string,\r\n option?: {\r\n title?: string;\r\n yesTitle?: string;\r\n noTitle?: string;\r\n required?: boolean;\r\n yesButtonColor?: SdColor;\r\n noButtonColor?: SdColor;\r\n defaultValue?: string | number;\r\n items: any[];\r\n valueField: string;\r\n displayField: string;\r\n display?: 'row' | 'column';\r\n }\r\n ): Promise<string> => {\r\n const dialogRef = this.dialog.open(DialogConfirmComponent, {\r\n width: '400px',\r\n data: {\r\n title: option?.title || 'Xác nhận',\r\n message,\r\n yesTitle: option?.yesTitle || 'Có',\r\n noTitle: option?.noTitle || 'Không',\r\n noButtonColor: option?.noButtonColor || 'secondary',\r\n yesButtonColor: option?.yesButtonColor || 'primary',\r\n radio: {\r\n items: option?.items || [],\r\n valueField: option?.valueField || 'value',\r\n displayField: option?.displayField || 'label',\r\n display: option?.display || 'row',\r\n required: option?.required,\r\n defaultValue: option?.defaultValue,\r\n },\r\n },\r\n });\r\n return new Promise((resolve, reject) => {\r\n dialogRef.afterClosed().subscribe(result => {\r\n if (result) {\r\n if (result.action === 'CANCEL') {\r\n reject(result.action);\r\n } else if (result.action === 'ACCEPT') {\r\n resolve(result.value);\r\n }\r\n }\r\n });\r\n });\r\n };\r\n\r\n withDate = (\r\n message?: string,\r\n option?: {\r\n title?: string;\r\n\r\n yesTitle?: string;\r\n noTitle?: string;\r\n required?: boolean;\r\n yesButtonColor?: SdColor;\r\n noButtonColor?: SdColor;\r\n defaultValue?: string | Date;\r\n placeholder?: string;\r\n }\r\n ): Promise<string> => {\r\n const dialogRef = this.dialog.open(DialogConfirmComponent, {\r\n width: '400px',\r\n data: {\r\n title: option?.title || 'Xác nhận',\r\n message,\r\n yesTitle: option?.yesTitle || 'Có',\r\n noTitle: option?.noTitle || 'Không',\r\n noButtonColor: option?.noButtonColor || 'secondary',\r\n yesButtonColor: option?.yesButtonColor || 'primary',\r\n date: {\r\n placeholder: option?.placeholder,\r\n required: option?.required,\r\n defaultValue: option?.defaultValue || '',\r\n },\r\n },\r\n });\r\n return new Promise((resolve, reject) => {\r\n dialogRef.afterClosed().subscribe(result => {\r\n if (result) {\r\n if (result.action === 'CANCEL') {\r\n reject(result.action);\r\n } else if (result.action === 'ACCEPT') {\r\n resolve(result.value);\r\n }\r\n }\r\n });\r\n });\r\n };\r\n}\r\n","/*\n * Public API Surface of superdev-angular-core\n */\n\nexport * from './lib/components/dialog-confirm/dialog-confirm.component';\nexport * from './lib/confirm.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MAmDa,sBAAsB,CAAA;AAKxB,IAAA,SAAA;AACyB,IAAA,IAAA;AALlC,IAAA,KAAK;IACL,QAAQ,GAAG,KAAK;AAChB,IAAA,EAAE,GAAG,CAAA,CAAA,EAAI,IAAI,CAAC,EAAE,EAAE,EAAE;IACpB,WAAA,CACS,SAA+C,EACtB,IAAgB,EAAA;QADzC,IAAA,CAAA,SAAS,GAAT,SAAS;QACgB,IAAA,CAAA,IAAI,GAAJ,IAAI;AAEpC,QAAA,IAAI,IAAI,EAAE,KAAK,EAAE;YACf,IAAI,CAAC,KAAK,GAAG,IAAI,EAAE,KAAK,EAAE,YAAY,IAAI,EAAE;YAC5C,IAAI,CAAC,QAAQ,GAAG,IAAI,EAAE,KAAK,EAAE,QAAQ,IAAI,KAAK;QAChD;AACA,QAAA,IAAI,IAAI,EAAE,IAAI,EAAE;YACd,IAAI,CAAC,KAAK,GAAG,IAAI,EAAE,IAAI,EAAE,YAAY,IAAI,EAAE;YAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,IAAI,KAAK;QAC/C;AACA,QAAA,IAAI,IAAI,EAAE,KAAK,EAAE;YACf,IAAI,CAAC,KAAK,GAAG,IAAI,EAAE,KAAK,EAAE,YAAY,IAAI,EAAE;YAC5C,IAAI,CAAC,QAAQ,GAAG,IAAI,EAAE,KAAK,EAAE,QAAQ,IAAI,KAAK;QAChD;IACF;IAEA,QAAQ,GAAG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AE;AACV,oBAAA,IAAI,MAAM,CAAC,MAAM,KAAK,QAAQ,EAAE;AAC9B,wBAAA,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;oBACvB;AAAO,yBAAA,IAAI,MAAM,CAAC,MAAM,KAAK,QAAQ,EAAE;AACrC,wBAAA,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;oBACvB;gBACF;AACF,YAAA,CAAC,CAAC;AACJ,QAAA,CAAC,CAAC;AACJ,IAAA,CAAC;wGAzKU,gBAAgB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,SAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,cAFf,MAAM,EAAA,CAAA;;4FAEP,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;ACPD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sd-angular-core-services-confirm.mjs","sources":["../../../projects/sd-angular/services/confirm/src/lib/components/dialog-confirm/dialog-confirm.component.ts","../../../projects/sd-angular/services/confirm/src/lib/components/dialog-confirm/dialog-confirm.component.html","../../../projects/sd-angular/services/confirm/src/lib/confirm.service.ts","../../../projects/sd-angular/services/confirm/src/public-api.ts","../../../projects/sd-angular/services/confirm/sd-angular-core-services-confirm.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\r\nimport { Component, Inject } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { SdButton } from '@sd-angular/core/components/button';\r\nimport { SdDate } from '@sd-angular/core/forms/date';\r\nimport { SdRadio } from '@sd-angular/core/forms/radio';\r\nimport { SdTextarea } from '@sd-angular/core/forms/textarea';\r\nimport { SdColor } from '@sd-angular/core/utilities/models';\r\nimport * as uuid from 'uuid';\r\n\r\nexport interface DialogData {\r\n icon?: string;\r\n title?: string;\r\n message?: string;\r\n yesTitle?: string;\r\n noTitle?: string;\r\n yesButtonColor?: SdColor;\r\n noButtonColor?: SdColor;\r\n input?: {\r\n placeholder?: string;\r\n minlength?: number;\r\n maxlength?: number;\r\n required?: boolean;\r\n defaultValue?: string;\r\n };\r\n date?: {\r\n required?: boolean;\r\n placeholder?: string;\r\n defaultValue?: string | Date;\r\n min?: string | Date;\r\n max?: string | Date;\r\n };\r\n radio?: {\r\n required?: boolean;\r\n defaultValue?: string | number;\r\n items: any[];\r\n valueField: string;\r\n displayField: string;\r\n display?: 'row' | 'column';\r\n };\r\n}\r\n\r\n@Component({\r\n selector: 'sd-dialog-confirm',\r\n templateUrl: 'dialog-confirm.component.html',\r\n styleUrls: ['./dialog-confirm.component.scss'],\r\n imports: [CommonModule, FormsModule, MatDialogModule, MatIconModule, SdButton, SdDate, SdRadio, SdTextarea],\r\n})\r\nexport class DialogConfirmComponent {\r\n value: any;\r\n required = false;\r\n id = `I${uuid.v4()}`;\r\n constructor(\r\n public dialogRef: MatDialogRef<DialogConfirmComponent>,\r\n @Inject(MAT_DIALOG_DATA) public data: DialogData\r\n ) {\r\n if (data?.input) {\r\n this.value = data?.input?.defaultValue ?? '';\r\n this.required = data?.input?.required || false;\r\n }\r\n if (data?.date) {\r\n this.value = data?.date?.defaultValue ?? '';\r\n this.required = data?.date?.required || false;\r\n }\r\n if (data?.radio) {\r\n this.value = data?.radio?.defaultValue ?? '';\r\n this.required = data?.radio?.required || false;\r\n }\r\n }\r\n\r\n onCancel = () => {\r\n this.dialogRef.close({ action: 'CANCEL', value: null });\r\n };\r\n\r\n onAccept = () => {\r\n // Always return an object with action and value for consistency\r\n if (this.data?.radio || this.data?.input || this.data?.date) {\r\n this.dialogRef.close({ action: 'ACCEPT', value: this.value });\r\n } else {\r\n this.dialogRef.close({ action: 'ACCEPT', value: null });\r\n }\r\n };\r\n}\r\n","<div mat-dialog-title class=\"\">\r\n @if (data.icon) {\r\n <mat-icon>\r\n {{ data.icon }}\r\n </mat-icon>\r\n }\r\n <span class=\"T24M\" [innerHtml]=\"data.title || 'Confirm'\"></span>\r\n</div>\r\n<div mat-dialog-content>\r\n <div class=\"T14R mb-4\" [innerHtml]=\"data.message\"></div>\r\n @if (data.input) {\r\n <sd-textarea [placeholder]=\"data.input.placeholder\" [(model)]=\"value\" [rows]=\"5\" [maxlength]=\"data.input.maxlength!\" />\r\n }\r\n @if (data.date) {\r\n <sd-date\r\n [placeholder]=\"data.date.placeholder\"\r\n [(model)]=\"value\"\r\n type=\"date\"\r\n [min]=\"data.date.min!\"\r\n [max]=\"data.date.max!\"\r\n [required]=\"data.date.required\">\r\n </sd-date>\r\n }\r\n @if (data.radio) {\r\n <sd-radio\r\n [items]=\"data.radio.items\"\r\n [valueField]=\"data.radio.valueField\"\r\n [displayField]=\"data.radio.displayField\"\r\n [display]=\"data.radio.display || 'column'\"\r\n [(model)]=\"value\"\r\n [required]=\"data.radio.required\">\r\n </sd-radio>\r\n }\r\n</div>\r\n<div mat-dialog-actions align=\"end\">\r\n @if (data.noTitle) {\r\n <sd-button [color]=\"data.noButtonColor || 'secondary'\" [title]=\"data.noTitle\" (click)=\"onCancel()\"></sd-button>\r\n }\r\n @if (data.yesTitle) {\r\n <sd-button\r\n class=\"ml-8\"\r\n type=\"fill\"\r\n [color]=\"data.yesButtonColor || 'primary'\"\r\n [disabled]=\"required && !value\"\r\n cdkFocusInitial\r\n [title]=\"data.yesTitle\"\r\n (click)=\"onAccept()\"></sd-button>\r\n }\r\n</div>\r\n","import { Injectable } from '@angular/core';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { DialogConfirmComponent } from './components/dialog-confirm/dialog-confirm.component';\r\nimport { SdColor } from '@sd-angular/core/utilities/models';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class SdConfirmService {\r\n constructor(private dialog: MatDialog) {}\r\n\r\n confirm = (\r\n message: string,\r\n option: {\r\n title?: string;\r\n yesTitle?: string;\r\n noTitle?: string;\r\n yesButtonColor?: SdColor;\r\n noButtonColor?: SdColor;\r\n width?: string;\r\n disableBackdropClose?: boolean;\r\n } = {}\r\n ) => {\r\n const dialogRef = this.dialog.open(DialogConfirmComponent, {\r\n width: option?.width || '400px',\r\n disableClose: option?.disableBackdropClose ?? true,\r\n data: {\r\n title: option?.title || 'Xác nhận',\r\n message,\r\n yesTitle: option?.yesTitle || 'Đồng ý',\r\n noTitle: option?.noTitle || 'Hủy bỏ',\r\n noButtonColor: option?.noButtonColor || 'secondary',\r\n yesButtonColor: option?.yesButtonColor || 'primary',\r\n },\r\n });\r\n return new Promise((resolve, reject) => {\r\n dialogRef.afterClosed().subscribe(result => {\r\n if (result) {\r\n if (result.action === 'CANCEL') {\r\n reject(result.action);\r\n } else if (result.action === 'ACCEPT') {\r\n resolve(result.value);\r\n }\r\n }\r\n });\r\n });\r\n };\r\n\r\n withInput = (\r\n message?: string,\r\n option?: {\r\n title?: string;\r\n yesTitle?: string;\r\n noTitle?: string;\r\n required?: boolean;\r\n maxlength?: number;\r\n yesButtonColor?: SdColor;\r\n noButtonColor?: SdColor;\r\n defaultValue?: string;\r\n disableBackdropClose?: boolean;\r\n }\r\n ): Promise<string> => {\r\n const dialogRef = this.dialog.open(DialogConfirmComponent, {\r\n width: '400px',\r\n disableClose: option?.disableBackdropClose ?? true,\r\n data: {\r\n title: option?.title || 'Xác nhận',\r\n message,\r\n yesTitle: option?.yesTitle || 'Có',\r\n noTitle: option?.noTitle || 'Không',\r\n noButtonColor: option?.noButtonColor || 'secondary',\r\n yesButtonColor: option?.yesButtonColor || 'primary',\r\n input: {\r\n maxlength: option?.maxlength || 255,\r\n required: option?.required,\r\n defaultValue: option?.defaultValue || '',\r\n },\r\n },\r\n });\r\n return new Promise((resolve, reject) => {\r\n dialogRef.afterClosed().subscribe(result => {\r\n if (result) {\r\n if (result.action === 'CANCEL') {\r\n reject(result.action);\r\n } else if (result.action === 'ACCEPT') {\r\n resolve(result.value);\r\n }\r\n }\r\n });\r\n });\r\n };\r\n\r\n withRadio = (\r\n message?: string,\r\n option?: {\r\n title?: string;\r\n yesTitle?: string;\r\n noTitle?: string;\r\n required?: boolean;\r\n yesButtonColor?: SdColor;\r\n noButtonColor?: SdColor;\r\n defaultValue?: string | number;\r\n items: any[];\r\n valueField: string;\r\n displayField: string;\r\n display?: 'row' | 'column';\r\n disableBackdropClose?: boolean;\r\n }\r\n ): Promise<string> => {\r\n const dialogRef = this.dialog.open(DialogConfirmComponent, {\r\n width: '400px',\r\n disableClose: option?.disableBackdropClose ?? true,\r\n data: {\r\n title: option?.title || 'Xác nhận',\r\n message,\r\n yesTitle: option?.yesTitle || 'Có',\r\n noTitle: option?.noTitle || 'Không',\r\n noButtonColor: option?.noButtonColor || 'secondary',\r\n yesButtonColor: option?.yesButtonColor || 'primary',\r\n radio: {\r\n items: option?.items || [],\r\n valueField: option?.valueField || 'value',\r\n displayField: option?.displayField || 'label',\r\n display: option?.display || 'row',\r\n required: option?.required,\r\n defaultValue: option?.defaultValue,\r\n },\r\n },\r\n });\r\n return new Promise((resolve, reject) => {\r\n dialogRef.afterClosed().subscribe(result => {\r\n if (result) {\r\n if (result.action === 'CANCEL') {\r\n reject(result.action);\r\n } else if (result.action === 'ACCEPT') {\r\n resolve(result.value);\r\n }\r\n }\r\n });\r\n });\r\n };\r\n\r\n withDate = (\r\n message?: string,\r\n option?: {\r\n title?: string;\r\n\r\n yesTitle?: string;\r\n noTitle?: string;\r\n required?: boolean;\r\n yesButtonColor?: SdColor;\r\n noButtonColor?: SdColor;\r\n defaultValue?: string | Date;\r\n placeholder?: string;\r\n disableBackdropClose?: boolean;\r\n }\r\n ): Promise<string> => {\r\n const dialogRef = this.dialog.open(DialogConfirmComponent, {\r\n width: '400px',\r\n disableClose: option?.disableBackdropClose ?? true,\r\n data: {\r\n title: option?.title || 'Xác nhận',\r\n message,\r\n yesTitle: option?.yesTitle || 'Có',\r\n noTitle: option?.noTitle || 'Không',\r\n noButtonColor: option?.noButtonColor || 'secondary',\r\n yesButtonColor: option?.yesButtonColor || 'primary',\r\n date: {\r\n placeholder: option?.placeholder,\r\n required: option?.required,\r\n defaultValue: option?.defaultValue || '',\r\n },\r\n },\r\n });\r\n return new Promise((resolve, reject) => {\r\n dialogRef.afterClosed().subscribe(result => {\r\n if (result) {\r\n if (result.action === 'CANCEL') {\r\n reject(result.action);\r\n } else if (result.action === 'ACCEPT') {\r\n resolve(result.value);\r\n }\r\n }\r\n });\r\n });\r\n };\r\n}\r\n","/*\n * Public API Surface of superdev-angular-core\n */\n\nexport * from './lib/components/dialog-confirm/dialog-confirm.component';\nexport * from './lib/confirm.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MAmDa,sBAAsB,CAAA;AAKxB,IAAA,SAAA;AACyB,IAAA,IAAA;AALlC,IAAA,KAAK;IACL,QAAQ,GAAG,KAAK;AAChB,IAAA,EAAE,GAAG,CAAA,CAAA,EAAI,IAAI,CAAC,EAAE,EAAE,EAAE;IACpB,WAAA,CACS,SAA+C,EACtB,IAAgB,EAAA;QADzC,IAAA,CAAA,SAAS,GAAT,SAAS;QACgB,IAAA,CAAA,IAAI,GAAJ,IAAI;AAEpC,QAAA,IAAI,IAAI,EAAE,KAAK,EAAE;YACf,IAAI,CAAC,KAAK,GAAG,IAAI,EAAE,KAAK,EAAE,YAAY,IAAI,EAAE;YAC5C,IAAI,CAAC,QAAQ,GAAG,IAAI,EAAE,KAAK,EAAE,QAAQ,IAAI,KAAK;QAChD;A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A,gBAAgB,cAFf,MAAM,EAAA,CAAA;;4FAEP,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;ACPD;;AAEG;;ACFH;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sd-angular/core",
|
|
3
|
-
"version": "19.0.0-beta.
|
|
3
|
+
"version": "19.0.0-beta.77",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^19.0.0 || ^20.0.0 || ^21.0.0",
|
|
6
6
|
"@angular/core": "^19.0.0 || ^20.0.0 || ^21.0.0",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"types": "./index.d.ts",
|
|
32
32
|
"default": "./fesm2022/sd-angular-core.mjs"
|
|
33
33
|
},
|
|
34
|
-
"./configurations": {
|
|
35
|
-
"types": "./configurations/index.d.ts",
|
|
36
|
-
"default": "./fesm2022/sd-angular-core-configurations.mjs"
|
|
37
|
-
},
|
|
38
34
|
"./components": {
|
|
39
35
|
"types": "./components/index.d.ts",
|
|
40
36
|
"default": "./fesm2022/sd-angular-core-components.mjs"
|
|
41
37
|
},
|
|
38
|
+
"./configurations": {
|
|
39
|
+
"types": "./configurations/index.d.ts",
|
|
40
|
+
"default": "./fesm2022/sd-angular-core-configurations.mjs"
|
|
41
|
+
},
|
|
42
42
|
"./directives": {
|
|
43
43
|
"types": "./directives/index.d.ts",
|
|
44
44
|
"default": "./fesm2022/sd-angular-core-directives.mjs"
|
|
@@ -91,6 +91,10 @@
|
|
|
91
91
|
"types": "./components/base/index.d.ts",
|
|
92
92
|
"default": "./fesm2022/sd-angular-core-components-base.mjs"
|
|
93
93
|
},
|
|
94
|
+
"./components/button": {
|
|
95
|
+
"types": "./components/button/index.d.ts",
|
|
96
|
+
"default": "./fesm2022/sd-angular-core-components-button.mjs"
|
|
97
|
+
},
|
|
94
98
|
"./components/chart": {
|
|
95
99
|
"types": "./components/chart/index.d.ts",
|
|
96
100
|
"default": "./fesm2022/sd-angular-core-components-chart.mjs"
|
|
@@ -99,10 +103,6 @@
|
|
|
99
103
|
"types": "./components/code-editor/index.d.ts",
|
|
100
104
|
"default": "./fesm2022/sd-angular-core-components-code-editor.mjs"
|
|
101
105
|
},
|
|
102
|
-
"./components/button": {
|
|
103
|
-
"types": "./components/button/index.d.ts",
|
|
104
|
-
"default": "./fesm2022/sd-angular-core-components-button.mjs"
|
|
105
|
-
},
|
|
106
106
|
"./components/document-builder": {
|
|
107
107
|
"types": "./components/document-builder/index.d.ts",
|
|
108
108
|
"default": "./fesm2022/sd-angular-core-components-document-builder.mjs"
|
|
@@ -115,21 +115,13 @@
|
|
|
115
115
|
"types": "./components/history/index.d.ts",
|
|
116
116
|
"default": "./fesm2022/sd-angular-core-components-history.mjs"
|
|
117
117
|
},
|
|
118
|
-
"./components/modal": {
|
|
119
|
-
"types": "./components/modal/index.d.ts",
|
|
120
|
-
"default": "./fesm2022/sd-angular-core-components-modal.mjs"
|
|
121
|
-
},
|
|
122
118
|
"./components/mini-editor": {
|
|
123
119
|
"types": "./components/mini-editor/index.d.ts",
|
|
124
120
|
"default": "./fesm2022/sd-angular-core-components-mini-editor.mjs"
|
|
125
121
|
},
|
|
126
|
-
"./components/
|
|
127
|
-
"types": "./components/
|
|
128
|
-
"default": "./fesm2022/sd-angular-core-components-
|
|
129
|
-
},
|
|
130
|
-
"./components/query-builder": {
|
|
131
|
-
"types": "./components/query-builder/index.d.ts",
|
|
132
|
-
"default": "./fesm2022/sd-angular-core-components-query-builder.mjs"
|
|
122
|
+
"./components/modal": {
|
|
123
|
+
"types": "./components/modal/index.d.ts",
|
|
124
|
+
"default": "./fesm2022/sd-angular-core-components-modal.mjs"
|
|
133
125
|
},
|
|
134
126
|
"./components/preview": {
|
|
135
127
|
"types": "./components/preview/index.d.ts",
|
|
@@ -139,6 +131,14 @@
|
|
|
139
131
|
"types": "./components/section/index.d.ts",
|
|
140
132
|
"default": "./fesm2022/sd-angular-core-components-section.mjs"
|
|
141
133
|
},
|
|
134
|
+
"./components/query-builder": {
|
|
135
|
+
"types": "./components/query-builder/index.d.ts",
|
|
136
|
+
"default": "./fesm2022/sd-angular-core-components-query-builder.mjs"
|
|
137
|
+
},
|
|
138
|
+
"./components/quick-action": {
|
|
139
|
+
"types": "./components/quick-action/index.d.ts",
|
|
140
|
+
"default": "./fesm2022/sd-angular-core-components-quick-action.mjs"
|
|
141
|
+
},
|
|
142
142
|
"./components/side-drawer": {
|
|
143
143
|
"types": "./components/side-drawer/index.d.ts",
|
|
144
144
|
"default": "./fesm2022/sd-angular-core-components-side-drawer.mjs"
|
|
@@ -151,18 +151,18 @@
|
|
|
151
151
|
"types": "./components/table/index.d.ts",
|
|
152
152
|
"default": "./fesm2022/sd-angular-core-components-table.mjs"
|
|
153
153
|
},
|
|
154
|
-
"./components/
|
|
155
|
-
"types": "./components/
|
|
156
|
-
"default": "./fesm2022/sd-angular-core-components-
|
|
157
|
-
},
|
|
158
|
-
"./forms/autocomplete": {
|
|
159
|
-
"types": "./forms/autocomplete/index.d.ts",
|
|
160
|
-
"default": "./fesm2022/sd-angular-core-forms-autocomplete.mjs"
|
|
154
|
+
"./components/upload-file": {
|
|
155
|
+
"types": "./components/upload-file/index.d.ts",
|
|
156
|
+
"default": "./fesm2022/sd-angular-core-components-upload-file.mjs"
|
|
161
157
|
},
|
|
162
158
|
"./components/workflow": {
|
|
163
159
|
"types": "./components/workflow/index.d.ts",
|
|
164
160
|
"default": "./fesm2022/sd-angular-core-components-workflow.mjs"
|
|
165
161
|
},
|
|
162
|
+
"./forms/autocomplete": {
|
|
163
|
+
"types": "./forms/autocomplete/index.d.ts",
|
|
164
|
+
"default": "./fesm2022/sd-angular-core-forms-autocomplete.mjs"
|
|
165
|
+
},
|
|
166
166
|
"./forms/checkbox": {
|
|
167
167
|
"types": "./forms/checkbox/index.d.ts",
|
|
168
168
|
"default": "./fesm2022/sd-angular-core-forms-checkbox.mjs"
|
|
@@ -175,14 +175,14 @@
|
|
|
175
175
|
"types": "./forms/chip-calendar/index.d.ts",
|
|
176
176
|
"default": "./fesm2022/sd-angular-core-forms-chip-calendar.mjs"
|
|
177
177
|
},
|
|
178
|
-
"./forms/date": {
|
|
179
|
-
"types": "./forms/date/index.d.ts",
|
|
180
|
-
"default": "./fesm2022/sd-angular-core-forms-date.mjs"
|
|
181
|
-
},
|
|
182
178
|
"./forms/date-range": {
|
|
183
179
|
"types": "./forms/date-range/index.d.ts",
|
|
184
180
|
"default": "./fesm2022/sd-angular-core-forms-date-range.mjs"
|
|
185
181
|
},
|
|
182
|
+
"./forms/date": {
|
|
183
|
+
"types": "./forms/date/index.d.ts",
|
|
184
|
+
"default": "./fesm2022/sd-angular-core-forms-date.mjs"
|
|
185
|
+
},
|
|
186
186
|
"./forms/datetime": {
|
|
187
187
|
"types": "./forms/datetime/index.d.ts",
|
|
188
188
|
"default": "./fesm2022/sd-angular-core-forms-datetime.mjs"
|
|
@@ -191,10 +191,6 @@
|
|
|
191
191
|
"types": "./forms/directives/index.d.ts",
|
|
192
192
|
"default": "./fesm2022/sd-angular-core-forms-directives.mjs"
|
|
193
193
|
},
|
|
194
|
-
"./forms/input": {
|
|
195
|
-
"types": "./forms/input/index.d.ts",
|
|
196
|
-
"default": "./fesm2022/sd-angular-core-forms-input.mjs"
|
|
197
|
-
},
|
|
198
194
|
"./forms/input-number": {
|
|
199
195
|
"types": "./forms/input-number/index.d.ts",
|
|
200
196
|
"default": "./fesm2022/sd-angular-core-forms-input-number.mjs"
|
|
@@ -203,10 +199,18 @@
|
|
|
203
199
|
"types": "./forms/label/index.d.ts",
|
|
204
200
|
"default": "./fesm2022/sd-angular-core-forms-label.mjs"
|
|
205
201
|
},
|
|
202
|
+
"./forms/input": {
|
|
203
|
+
"types": "./forms/input/index.d.ts",
|
|
204
|
+
"default": "./fesm2022/sd-angular-core-forms-input.mjs"
|
|
205
|
+
},
|
|
206
206
|
"./forms/models": {
|
|
207
207
|
"types": "./forms/models/index.d.ts",
|
|
208
208
|
"default": "./fesm2022/sd-angular-core-forms-models.mjs"
|
|
209
209
|
},
|
|
210
|
+
"./components/view": {
|
|
211
|
+
"types": "./components/view/index.d.ts",
|
|
212
|
+
"default": "./fesm2022/sd-angular-core-components-view.mjs"
|
|
213
|
+
},
|
|
210
214
|
"./forms/radio": {
|
|
211
215
|
"types": "./forms/radio/index.d.ts",
|
|
212
216
|
"default": "./fesm2022/sd-angular-core-forms-radio.mjs"
|
|
@@ -227,10 +231,6 @@
|
|
|
227
231
|
"types": "./modules/auth/index.d.ts",
|
|
228
232
|
"default": "./fesm2022/sd-angular-core-modules-auth.mjs"
|
|
229
233
|
},
|
|
230
|
-
"./modules/layout": {
|
|
231
|
-
"types": "./modules/layout/index.d.ts",
|
|
232
|
-
"default": "./fesm2022/sd-angular-core-modules-layout.mjs"
|
|
233
|
-
},
|
|
234
234
|
"./modules/keycloak": {
|
|
235
235
|
"types": "./modules/keycloak/index.d.ts",
|
|
236
236
|
"default": "./fesm2022/sd-angular-core-modules-keycloak.mjs"
|
|
@@ -239,6 +239,10 @@
|
|
|
239
239
|
"types": "./modules/permission/index.d.ts",
|
|
240
240
|
"default": "./fesm2022/sd-angular-core-modules-permission.mjs"
|
|
241
241
|
},
|
|
242
|
+
"./modules/layout": {
|
|
243
|
+
"types": "./modules/layout/index.d.ts",
|
|
244
|
+
"default": "./fesm2022/sd-angular-core-modules-layout.mjs"
|
|
245
|
+
},
|
|
242
246
|
"./services/api": {
|
|
243
247
|
"types": "./services/api/index.d.ts",
|
|
244
248
|
"default": "./fesm2022/sd-angular-core-services-api.mjs"
|
|
@@ -286,10 +290,6 @@
|
|
|
286
290
|
"./utilities/models": {
|
|
287
291
|
"types": "./utilities/models/index.d.ts",
|
|
288
292
|
"default": "./fesm2022/sd-angular-core-utilities-models.mjs"
|
|
289
|
-
},
|
|
290
|
-
"./components/upload-file": {
|
|
291
|
-
"types": "./components/upload-file/index.d.ts",
|
|
292
|
-
"default": "./fesm2022/sd-angular-core-components-upload-file.mjs"
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
}
|
|
Binary file
|
|
@@ -11,6 +11,7 @@ export declare class SdConfirmService {
|
|
|
11
11
|
yesButtonColor?: SdColor;
|
|
12
12
|
noButtonColor?: SdColor;
|
|
13
13
|
width?: string;
|
|
14
|
+
disableBackdropClose?: boolean;
|
|
14
15
|
}) => Promise<unknown>;
|
|
15
16
|
withInput: (message?: string, option?: {
|
|
16
17
|
title?: string;
|
|
@@ -21,6 +22,7 @@ export declare class SdConfirmService {
|
|
|
21
22
|
yesButtonColor?: SdColor;
|
|
22
23
|
noButtonColor?: SdColor;
|
|
23
24
|
defaultValue?: string;
|
|
25
|
+
disableBackdropClose?: boolean;
|
|
24
26
|
}) => Promise<string>;
|
|
25
27
|
withRadio: (message?: string, option?: {
|
|
26
28
|
title?: string;
|
|
@@ -34,6 +36,7 @@ export declare class SdConfirmService {
|
|
|
34
36
|
valueField: string;
|
|
35
37
|
displayField: string;
|
|
36
38
|
display?: "row" | "column";
|
|
39
|
+
disableBackdropClose?: boolean;
|
|
37
40
|
}) => Promise<string>;
|
|
38
41
|
withDate: (message?: string, option?: {
|
|
39
42
|
title?: string;
|
|
@@ -44,6 +47,7 @@ export declare class SdConfirmService {
|
|
|
44
47
|
noButtonColor?: SdColor;
|
|
45
48
|
defaultValue?: string | Date;
|
|
46
49
|
placeholder?: string;
|
|
50
|
+
disableBackdropClose?: boolean;
|
|
47
51
|
}) => Promise<string>;
|
|
48
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdConfirmService, never>;
|
|
49
53
|
static ɵprov: i0.ɵɵInjectableDeclaration<SdConfirmService>;
|
|
Binary file
|