@simplysm/angular 14.0.17 → 14.0.19

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.
@@ -1 +1 @@
1
- {"version":3,"file":"sd-topbar.control.d.ts","sourceRoot":"","sources":["../../../../src/ui/navigation/topbar/sd-topbar.control.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;;AAKpF,qBA6Da,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAEvC;IAEH,gBAAgB,6EAAsC;IAEtD,UAAU,0CAER;IAEF,mBAAmB,IAAI,IAAI;IAO3B,SAAS,CAAC,QAAQ,CAAC,WAAW,oXAAe;yCAlBlC,eAAe;2CAAf,eAAe;CAmB3B"}
1
+ {"version":3,"file":"sd-topbar.control.d.ts","sourceRoot":"","sources":["../../../../src/ui/navigation/topbar/sd-topbar.control.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;;AAKpF,qBA8Da,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAEvC;IAEH,gBAAgB,6EAAsC;IAEtD,UAAU,0CAER;IAEF,mBAAmB,IAAI,IAAI;IAO3B,SAAS,CAAC,QAAQ,CAAC,WAAW,oXAAe;yCAlBlC,eAAe;2CAAf,eAAe;CAmB3B"}
@@ -37,7 +37,7 @@ export class SdTopbarControl {
37
37
  i0.ɵɵprojection(1);
38
38
  } if (rf & 2) {
39
39
  i0.ɵɵconditional(ctx.hasSidebar() ? 0 : -1);
40
- } }, dependencies: [SdButtonControl, NgIcon], styles: ["sd-topbar {\n min-height: var(--topbar-height);\n overflow-x: auto;\n overflow-y: hidden;\n user-select: none;\n background: var(--control-color);\n color: var(--text-trans-default);\n border-bottom: 1px solid var(--border-color-lighter);\n padding-left: var(--gap-sm);\n}\nsd-topbar > h1 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h2 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h3 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h4 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h5 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h6 {\n padding-right: var(--gap-xl);\n}\nsd-topbar::-webkit-scrollbar-track {\n background-color: var(--trans-light);\n}\nsd-topbar::-webkit-scrollbar-corner {\n background-color: var(--trans-light);\n}\nsd-topbar::-webkit-scrollbar {\n width: var(--gap-sm);\n height: var(--gap-sm);\n background-color: transparent;\n}\nsd-topbar::-webkit-scrollbar-thumb {\n background-color: var(--trans-default);\n}"], encapsulation: 2, changeDetection: 0 });
40
+ } }, dependencies: [SdButtonControl, NgIcon], styles: ["sd-topbar {\n height: var(--topbar-height);\n overflow-x: auto;\n overflow-y: hidden;\n user-select: none;\n background: var(--control-color);\n color: var(--text-trans-default);\n border-bottom: 1px solid var(--border-color-lighter);\n padding-left: var(--gap-sm);\n}\nsd-topbar > h1 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h2 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h3 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h4 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h5 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h6 {\n padding-right: var(--gap-xl);\n}\nsd-topbar::-webkit-scrollbar-track {\n background-color: var(--trans-light);\n}\nsd-topbar::-webkit-scrollbar-corner {\n background-color: var(--trans-light);\n}\nsd-topbar::-webkit-scrollbar {\n width: var(--gap-sm);\n height: var(--gap-sm);\n background-color: transparent;\n}\nsd-topbar::-webkit-scrollbar-thumb {\n background-color: var(--trans-default);\n}"], encapsulation: 2, changeDetection: 0 });
41
41
  }
42
42
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SdTopbarControl, [{
43
43
  type: Component,
@@ -53,7 +53,8 @@ export class SdTopbarControl {
53
53
  <ng-icon [svg]="tablerMenu2" />
54
54
  </sd-button>
55
55
  }
56
+
56
57
  <ng-content />
57
- `, styles: ["sd-topbar {\n min-height: var(--topbar-height);\n overflow-x: auto;\n overflow-y: hidden;\n user-select: none;\n background: var(--control-color);\n color: var(--text-trans-default);\n border-bottom: 1px solid var(--border-color-lighter);\n padding-left: var(--gap-sm);\n}\nsd-topbar > h1 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h2 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h3 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h4 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h5 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h6 {\n padding-right: var(--gap-xl);\n}\nsd-topbar::-webkit-scrollbar-track {\n background-color: var(--trans-light);\n}\nsd-topbar::-webkit-scrollbar-corner {\n background-color: var(--trans-light);\n}\nsd-topbar::-webkit-scrollbar {\n width: var(--gap-sm);\n height: var(--gap-sm);\n background-color: transparent;\n}\nsd-topbar::-webkit-scrollbar-thumb {\n background-color: var(--trans-default);\n}"] }]
58
+ `, styles: ["sd-topbar {\n height: var(--topbar-height);\n overflow-x: auto;\n overflow-y: hidden;\n user-select: none;\n background: var(--control-color);\n color: var(--text-trans-default);\n border-bottom: 1px solid var(--border-color-lighter);\n padding-left: var(--gap-sm);\n}\nsd-topbar > h1 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h2 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h3 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h4 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h5 {\n padding-right: var(--gap-xl);\n}\nsd-topbar > h6 {\n padding-right: var(--gap-xl);\n}\nsd-topbar::-webkit-scrollbar-track {\n background-color: var(--trans-light);\n}\nsd-topbar::-webkit-scrollbar-corner {\n background-color: var(--trans-light);\n}\nsd-topbar::-webkit-scrollbar {\n width: var(--gap-sm);\n height: var(--gap-sm);\n background-color: transparent;\n}\nsd-topbar::-webkit-scrollbar-thumb {\n background-color: var(--trans-default);\n}"] }]
58
59
  }], null, { sidebarContainer: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarContainer", required: false }] }] }); })();
59
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdTopbarControl, { className: "SdTopbarControl", filePath: "packages/angular/src/ui/navigation/topbar/sd-topbar.control.ts", lineNumber: 75, forbidOrphanRendering: true }); })();
60
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdTopbarControl, { className: "SdTopbarControl", filePath: "packages/angular/src/ui/navigation/topbar/sd-topbar.control.ts", lineNumber: 76, forbidOrphanRendering: true }); })();
@@ -1 +1 @@
1
- {"version":3,"file":"sd-modal.control.d.ts","sourceRoot":"","sources":["../../../../src/ui/overlay/modal/sd-modal.control.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,WAAW,EAEjB,MAAM,eAAe,CAAC;AAKvB,OAAO,wBAAwB,CAAC;;AAEhC,qBA0Ca,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmC;IAC1D,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAwD;IACxF,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAsD;IACpF,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsB;IAElD,IAAI,+CAAgB;IACpB,GAAG,0DAAwC;IAC3C,KAAK,8CAAa;IAClB,UAAU,+CAAgB;IAC1B,eAAe,+CAAgB;IAC/B,kBAAkB,+CAAe;IACjC,mBAAmB,+CAAe;IAClC,KAAK,+CAAgB;IACrB,IAAI,+CAAgB;IACpB,SAAS,+CAAgB;IACzB,OAAO,+CAAgB;IACvB,QAAQ,gFAA8D;IACtE,WAAW,0DAAwC;IACnD,UAAU,0DAAwC;IAClD,QAAQ,0DAAwC;IAChD,OAAO,0DAAwC;IAC/C,WAAW,0DAAwC;IACnD,sBAAsB,+CAAgB;IACtC,YAAY,oEAAkD;IAE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rB,IAAI,+CAAgB;IACpB,SAAS,+CAAgB;IACzB,OAAO,+CAAgB;IACvB,QAAQ,gFAA8D;IACtE,WAAW,0DAAwC;IACnD,UAAU,0DAAwC;IAClD,QAAQ,0DAAwC;IAChD,OAAO,0DAAwC;IAC/C,WAAW,0DAAwC;IACnD,sBAAsB,+CAAgB;IACtC,YAAY,oEAAkD;IAE9D,YAAY,iDAAkB;IAE9B,OAAO,CAAC,UAAU,CAEJ;IAEd,OAAO,CAAC,YAAY,CAUN;IAEd,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAA8B;IACnE,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAa;;IA6DhD,iBAAiB,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAwBvD,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAwB1C,eAAe,IAAI,IAAI;IAKvB,kBAAkB,IAAI,IAAI;IAI1B,eAAe,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAS3C,aAAa,IAAI,IAAI;IAIrB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,cAAc;IAuBtB,OAAO,CAAC,oBAAoB;IAa5B,OAAO,CAAC,aAAa;IAgBrB,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,YAAY;IA4CpB,OAAO,CAAC,UAAU;YAcJ,WAAW;YAgBX,cAAc;yCA1TjB,cAAc;2CAAd,cAAc;CA0U1B"}
@@ -98,6 +98,10 @@ export class SdModalControl {
98
98
  _onDocumentMouseMove;
99
99
  _onDocumentMouseUp;
100
100
  constructor() {
101
+ // data-sd-init: 첫 렌더 후 설정하여 CSS transition 트리거 허용
102
+ effect(() => {
103
+ this._elRef.nativeElement.setAttribute("data-sd-init", "");
104
+ });
101
105
  // widthPx/heightPx를 dialog 스타일에 적용
102
106
  effect(() => {
103
107
  const dialogEl = this._getDialogEl();
@@ -385,23 +389,16 @@ export class SdModalControl {
385
389
  i0.ɵɵconditional(!ctx.hideHeader() ? 2 : -1);
386
390
  i0.ɵɵadvance(3);
387
391
  i0.ɵɵconditional(ctx.resizable() ? 5 : -1);
388
- } }, dependencies: [NgTemplateOutlet], encapsulation: 2, changeDetection: 0 });
392
+ } }, dependencies: [NgTemplateOutlet], styles: ["sd-modal {\n display: block;\n position: fixed;\n z-index: var(--z-index-modal);\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n padding-top: calc(var(--topbar-height) + var(--gap-sm));\n opacity: 0;\n transition: opacity var(--animation-duration) ease-in-out;\n pointer-events: none;\n}\nsd-modal > ._backdrop {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: var(--trans-default);\n}\nsd-modal > ._dialog {\n position: relative;\n display: flex;\n flex-direction: column;\n margin: 0 auto;\n width: fit-content;\n min-width: 200px;\n background: var(--control-color);\n overflow: hidden;\n box-shadow: 0 calc(16 * var(--elevation-size)) calc(16 * 4 * var(--elevation-size)) var(--trans-lighter), 0 var(--elevation-size) var(--elevation-size) var(--trans-lighter);\n border-radius: var(--border-radius-default);\n transform: translateY(-25px);\n transition: transform var(--animation-duration) ease-in-out;\n}\nsd-modal > ._dialog:focus {\n outline: none;\n}\nsd-modal > ._dialog > ._header {\n display: flex;\n align-items: center;\n user-select: none;\n border-bottom: 1px solid var(--theme-gray-lightest);\n}\nsd-modal > ._dialog > ._header > ._title {\n flex: 1;\n padding: var(--gap-sm) var(--gap-default);\n}\nsd-modal > ._dialog > ._header > ._close-btn {\n padding: var(--gap-sm) var(--gap-default);\n border: none;\n background: transparent;\n cursor: pointer;\n font-size: inherit;\n color: inherit;\n}\nsd-modal > ._dialog > ._header > ._close-btn:hover {\n background: var(--trans-lightest);\n}\nsd-modal > ._dialog > ._content {\n flex: 1;\n overflow: auto;\n}\nsd-modal > ._dialog > ._resize-handle {\n position: absolute;\n}\nsd-modal > ._dialog > ._resize-handle._resize-left {\n top: 0;\n left: 0;\n width: var(--gap-sm);\n height: 100%;\n cursor: ew-resize;\n}\nsd-modal > ._dialog > ._resize-handle._resize-right {\n top: 0;\n right: 0;\n width: var(--gap-sm);\n height: 100%;\n cursor: ew-resize;\n}\nsd-modal > ._dialog > ._resize-handle._resize-top {\n top: 0;\n left: 0;\n width: 100%;\n height: var(--gap-sm);\n cursor: ns-resize;\n}\nsd-modal > ._dialog > ._resize-handle._resize-top-right {\n right: 0;\n top: 0;\n width: var(--gap-sm);\n height: var(--gap-sm);\n z-index: 1;\n cursor: nesw-resize;\n}\nsd-modal > ._dialog > ._resize-handle._resize-top-left {\n left: 0;\n top: 0;\n width: var(--gap-sm);\n height: var(--gap-sm);\n cursor: nwse-resize;\n z-index: 1;\n}\nsd-modal > ._dialog > ._resize-handle._resize-bottom {\n bottom: 0;\n left: 0;\n width: 100%;\n height: var(--gap-sm);\n cursor: ns-resize;\n}\nsd-modal > ._dialog > ._resize-handle._resize-bottom-right {\n right: 0;\n bottom: 0;\n width: var(--gap-sm);\n height: var(--gap-sm);\n z-index: 1;\n cursor: nwse-resize;\n}\nsd-modal > ._dialog > ._resize-handle._resize-bottom-left {\n left: 0;\n bottom: 0;\n width: var(--gap-sm);\n height: var(--gap-sm);\n cursor: nesw-resize;\n z-index: 1;\n}\nsd-modal[data-sd-open][data-sd-init] {\n opacity: 1;\n pointer-events: auto;\n}\nsd-modal[data-sd-open][data-sd-init] > ._dialog {\n transform: none;\n}\nsd-modal[data-sd-float] {\n pointer-events: none;\n}\nsd-modal[data-sd-float] > ._backdrop {\n display: none;\n}\nsd-modal[data-sd-float] > ._dialog {\n pointer-events: auto;\n opacity: 0;\n box-shadow: 0 calc(4 * var(--elevation-size)) calc(4 * 4 * var(--elevation-size)) var(--trans-lighter), 0 var(--elevation-size) var(--elevation-size) var(--trans-lighter);\n border: 1px solid var(--theme-gray-lighter);\n}\nsd-modal[data-sd-float] > ._dialog:focus {\n box-shadow: 0 calc(16 * var(--elevation-size)) calc(16 * 4 * var(--elevation-size)) var(--trans-lighter), 0 var(--elevation-size) var(--elevation-size) var(--trans-lighter);\n}\nsd-modal[data-sd-float][data-sd-open][data-sd-init] {\n pointer-events: none;\n}\nsd-modal[data-sd-float][data-sd-open][data-sd-init] > ._dialog {\n pointer-events: auto;\n opacity: 1;\n}\nsd-modal[data-sd-position=bottom-right] > ._dialog {\n position: absolute;\n right: calc(var(--gap-xxl) * 2);\n bottom: var(--gap-xxl);\n}\nsd-modal[data-sd-position=top-right] > ._dialog {\n position: absolute;\n right: var(--gap-xxl);\n top: var(--gap-xxl);\n}\nsd-modal[data-sd-fill] {\n padding-top: 0;\n}\nsd-modal[data-sd-fill] > ._dialog {\n width: 100%;\n height: 100%;\n border: none;\n border-radius: 0;\n}\nsd-modal[data-sd-fill] > ._dialog > ._header {\n background: transparent;\n color: var(--text-trans-lighter);\n}"], encapsulation: 2, changeDetection: 0 });
389
393
  }
390
394
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SdModalControl, [{
391
395
  type: Component,
392
- args: [{
393
- selector: "sd-modal",
394
- changeDetection: ChangeDetectionStrategy.OnPush,
395
- encapsulation: ViewEncapsulation.None,
396
- standalone: true,
397
- imports: [NgTemplateOutlet],
398
- host: {
396
+ args: [{ selector: "sd-modal", changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, imports: [NgTemplateOutlet], host: {
399
397
  "[attr.data-sd-open]": "open() || undefined",
400
398
  "[attr.data-sd-float]": "float() || undefined",
401
399
  "[attr.data-sd-fill]": "fill() || undefined",
402
400
  "[attr.data-sd-position]": "position() || undefined",
403
- },
404
- template: `
401
+ }, template: `
405
402
  <div class="_backdrop" (mousedown)="onBackdropClick()"></div>
406
403
  <div class="_dialog" tabindex="-1"
407
404
  (keydown)="onDialogKeydown($event)"
@@ -429,7 +426,6 @@ export class SdModalControl {
429
426
  <div class="_resize-handle _resize-bottom-right" data-resize-dir="bottom-right" (mousedown)="onResizeMouseDown($event, 'bottom-right')"></div>
430
427
  }
431
428
  </div>
432
- `,
433
- }]
429
+ `, styles: ["sd-modal {\n display: block;\n position: fixed;\n z-index: var(--z-index-modal);\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n padding-top: calc(var(--topbar-height) + var(--gap-sm));\n opacity: 0;\n transition: opacity var(--animation-duration) ease-in-out;\n pointer-events: none;\n}\nsd-modal > ._backdrop {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: var(--trans-default);\n}\nsd-modal > ._dialog {\n position: relative;\n display: flex;\n flex-direction: column;\n margin: 0 auto;\n width: fit-content;\n min-width: 200px;\n background: var(--control-color);\n overflow: hidden;\n box-shadow: 0 calc(16 * var(--elevation-size)) calc(16 * 4 * var(--elevation-size)) var(--trans-lighter), 0 var(--elevation-size) var(--elevation-size) var(--trans-lighter);\n border-radius: var(--border-radius-default);\n transform: translateY(-25px);\n transition: transform var(--animation-duration) ease-in-out;\n}\nsd-modal > ._dialog:focus {\n outline: none;\n}\nsd-modal > ._dialog > ._header {\n display: flex;\n align-items: center;\n user-select: none;\n border-bottom: 1px solid var(--theme-gray-lightest);\n}\nsd-modal > ._dialog > ._header > ._title {\n flex: 1;\n padding: var(--gap-sm) var(--gap-default);\n}\nsd-modal > ._dialog > ._header > ._close-btn {\n padding: var(--gap-sm) var(--gap-default);\n border: none;\n background: transparent;\n cursor: pointer;\n font-size: inherit;\n color: inherit;\n}\nsd-modal > ._dialog > ._header > ._close-btn:hover {\n background: var(--trans-lightest);\n}\nsd-modal > ._dialog > ._content {\n flex: 1;\n overflow: auto;\n}\nsd-modal > ._dialog > ._resize-handle {\n position: absolute;\n}\nsd-modal > ._dialog > ._resize-handle._resize-left {\n top: 0;\n left: 0;\n width: var(--gap-sm);\n height: 100%;\n cursor: ew-resize;\n}\nsd-modal > ._dialog > ._resize-handle._resize-right {\n top: 0;\n right: 0;\n width: var(--gap-sm);\n height: 100%;\n cursor: ew-resize;\n}\nsd-modal > ._dialog > ._resize-handle._resize-top {\n top: 0;\n left: 0;\n width: 100%;\n height: var(--gap-sm);\n cursor: ns-resize;\n}\nsd-modal > ._dialog > ._resize-handle._resize-top-right {\n right: 0;\n top: 0;\n width: var(--gap-sm);\n height: var(--gap-sm);\n z-index: 1;\n cursor: nesw-resize;\n}\nsd-modal > ._dialog > ._resize-handle._resize-top-left {\n left: 0;\n top: 0;\n width: var(--gap-sm);\n height: var(--gap-sm);\n cursor: nwse-resize;\n z-index: 1;\n}\nsd-modal > ._dialog > ._resize-handle._resize-bottom {\n bottom: 0;\n left: 0;\n width: 100%;\n height: var(--gap-sm);\n cursor: ns-resize;\n}\nsd-modal > ._dialog > ._resize-handle._resize-bottom-right {\n right: 0;\n bottom: 0;\n width: var(--gap-sm);\n height: var(--gap-sm);\n z-index: 1;\n cursor: nwse-resize;\n}\nsd-modal > ._dialog > ._resize-handle._resize-bottom-left {\n left: 0;\n bottom: 0;\n width: var(--gap-sm);\n height: var(--gap-sm);\n cursor: nesw-resize;\n z-index: 1;\n}\nsd-modal[data-sd-open][data-sd-init] {\n opacity: 1;\n pointer-events: auto;\n}\nsd-modal[data-sd-open][data-sd-init] > ._dialog {\n transform: none;\n}\nsd-modal[data-sd-float] {\n pointer-events: none;\n}\nsd-modal[data-sd-float] > ._backdrop {\n display: none;\n}\nsd-modal[data-sd-float] > ._dialog {\n pointer-events: auto;\n opacity: 0;\n box-shadow: 0 calc(4 * var(--elevation-size)) calc(4 * 4 * var(--elevation-size)) var(--trans-lighter), 0 var(--elevation-size) var(--elevation-size) var(--trans-lighter);\n border: 1px solid var(--theme-gray-lighter);\n}\nsd-modal[data-sd-float] > ._dialog:focus {\n box-shadow: 0 calc(16 * var(--elevation-size)) calc(16 * 4 * var(--elevation-size)) var(--trans-lighter), 0 var(--elevation-size) var(--elevation-size) var(--trans-lighter);\n}\nsd-modal[data-sd-float][data-sd-open][data-sd-init] {\n pointer-events: none;\n}\nsd-modal[data-sd-float][data-sd-open][data-sd-init] > ._dialog {\n pointer-events: auto;\n opacity: 1;\n}\nsd-modal[data-sd-position=bottom-right] > ._dialog {\n position: absolute;\n right: calc(var(--gap-xxl) * 2);\n bottom: var(--gap-xxl);\n}\nsd-modal[data-sd-position=top-right] > ._dialog {\n position: absolute;\n right: var(--gap-xxl);\n top: var(--gap-xxl);\n}\nsd-modal[data-sd-fill] {\n padding-top: 0;\n}\nsd-modal[data-sd-fill] > ._dialog {\n width: 100%;\n height: 100%;\n border: none;\n border-radius: 0;\n}\nsd-modal[data-sd-fill] > ._dialog > ._header {\n background: transparent;\n color: var(--text-trans-lighter);\n}"] }]
434
430
  }], () => [], { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], hideHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideHeader", required: false }] }], hideCloseButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideCloseButton", required: false }] }], useCloseByBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "useCloseByBackdrop", required: false }] }], useCloseByEscapeKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "useCloseByEscapeKey", required: false }] }], float: [{ type: i0.Input, args: [{ isSignal: true, alias: "float", required: false }] }], fill: [{ type: i0.Input, args: [{ isSignal: true, alias: "fill", required: false }] }], resizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizable", required: false }] }], movable: [{ type: i0.Input, args: [{ isSignal: true, alias: "movable", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], minHeightPx: [{ type: i0.Input, args: [{ isSignal: true, alias: "minHeightPx", required: false }] }], minWidthPx: [{ type: i0.Input, args: [{ isSignal: true, alias: "minWidthPx", required: false }] }], heightPx: [{ type: i0.Input, args: [{ isSignal: true, alias: "heightPx", required: false }] }], widthPx: [{ type: i0.Input, args: [{ isSignal: true, alias: "widthPx", required: false }] }], headerStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerStyle", required: false }] }], noFirstControlFocusing: [{ type: i0.Input, args: [{ isSignal: true, alias: "noFirstControlFocusing", required: false }] }], actionTplRef: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionTplRef", required: false }] }], closeRequest: [{ type: i0.Output, args: ["closeRequest"] }] }); })();
435
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdModalControl, { className: "SdModalControl", filePath: "packages/angular/src/ui/overlay/modal/sd-modal.control.ts", lineNumber: 62, forbidOrphanRendering: true }); })();
431
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdModalControl, { className: "SdModalControl", filePath: "packages/angular/src/ui/overlay/modal/sd-modal.control.ts", lineNumber: 280, forbidOrphanRendering: true }); })();
@@ -1 +1 @@
1
- {"version":3,"file":"sd-modal.provider.d.ts","sourceRoot":"","sources":["../../../../src/ui/overlay/modal/sd-modal.provider.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,gBAAgB,EACrB,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,KAAK,IAAI,EACV,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,4CAA4C,CAAC;AAEpD,OAAO,wBAAwB,CAAC;;AAEhC;;GAEG;AACH,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAC7B,KAAK,EAAE,gBAAgB,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IAChC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACxC;AAED,KAAK,mBAAmB,GAAG,aAAa,GAAG,OAAO,GAAG,cAAc,GAAG,sBAAsB,CAAC;AAC7F,KAAK,oBAAoB,CAAC,CAAC,IAAI,CAA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,CAAC,EAAE,MAAM,CAAC;IACrB,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED;;GAEG;AACH,qBACa,wBAAwB,CAAC,CAAC,SAAS,QAAQ,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC;IAC3E,cAAc,8CAA0B;IACxC,gBAAgB,wDAAoC;IACpD,aAAa,EAAE,MAAM,OAAO,CAAc;yCAH/B,wBAAwB;6CAAxB,wBAAwB;CAIpC;AAED;;GAEG;AACH,qBACa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA0B;IAClD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA+B;IAC5D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoB;IAE9C,UAAU,iDAAa;IAEjB,SAAS,CAAC,CAAC,SAAS,QAAQ,CAAC,GAAG,CAAC,EACrC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,EACtB,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IAmJzD,OAAO,CAAC,aAAa;yCA7JV,eAAe;6CAAf,eAAe;CAwK3B"}
@@ -110,23 +110,35 @@ export class SdModalProvider {
110
110
  const cleanup = (result) => {
111
111
  closeSub?.unsubscribe();
112
112
  closeRequestSub?.unsubscribe();
113
- // DOM에서 제거
113
+ // 닫힘 애니메이션 트리거: open(false) → CSS transition 시작
114
+ modalRef.instance.open.set(false);
114
115
  const modalEl = modalRef.location.nativeElement;
115
- if (modalEl.parentNode !== null) {
116
- modalEl.parentNode.removeChild(modalEl);
116
+ const doDestroy = () => {
117
+ // DOM에서 제거
118
+ if (modalEl.parentNode !== null) {
119
+ modalEl.parentNode.removeChild(modalEl);
120
+ }
121
+ // 뷰 분리 + 파괴
122
+ this._appRef.detachView(modalRef.hostView);
123
+ this._appRef.detachView(contentRef.hostView);
124
+ modalRef.destroy();
125
+ contentRef.destroy();
126
+ // modalCount 감소
127
+ this.modalCount.update((v) => v - 1);
128
+ // 포커스 복귀
129
+ if (prevActiveEl !== null && prevActiveEl.isConnected) {
130
+ prevActiveEl.focus();
131
+ }
132
+ resolve(result);
133
+ };
134
+ // transition duration 확인 후 대기 또는 즉시 destroy
135
+ const duration = parseFloat(getComputedStyle(modalEl).transitionDuration || "0");
136
+ if (duration > 0) {
137
+ modalEl.addEventListener("transitionend", doDestroy, { once: true });
117
138
  }
118
- // 뷰 분리 + 파괴
119
- this._appRef.detachView(modalRef.hostView);
120
- this._appRef.detachView(contentRef.hostView);
121
- modalRef.destroy();
122
- contentRef.destroy();
123
- // modalCount 감소
124
- this.modalCount.update((v) => v - 1);
125
- // 포커스 복귀
126
- if (prevActiveEl !== null && prevActiveEl.isConnected) {
127
- prevActiveEl.focus();
139
+ else {
140
+ doDestroy();
128
141
  }
129
- resolve(result);
130
142
  };
131
143
  // 10. close output 구독 (컨텐츠 컴포넌트가 직접 close.emit 호출)
132
144
  closeSub = outputToObservable(contentRef.instance.close).subscribe((result) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplysm/angular",
3
- "version": "14.0.17",
3
+ "version": "14.0.19",
4
4
  "description": "심플리즘 패키지 - Angular",
5
5
  "author": "심플리즘",
6
6
  "license": "Apache-2.0",
@@ -50,10 +50,10 @@
50
50
  "jspdf": "^4.2.1",
51
51
  "rxjs": "^7.8.2",
52
52
  "tabbable": "^6.4.0",
53
- "@simplysm/core-common": "14.0.17",
54
- "@simplysm/core-browser": "14.0.17",
55
- "@simplysm/service-client": "14.0.17",
56
- "@simplysm/service-common": "14.0.17"
53
+ "@simplysm/core-common": "14.0.19",
54
+ "@simplysm/core-browser": "14.0.19",
55
+ "@simplysm/service-client": "14.0.19",
56
+ "@simplysm/service-common": "14.0.19"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@angular/compiler": "^21.2.7",
@@ -30,12 +30,13 @@ import { tablerMenu2 } from "@ng-icons/tabler-icons";
30
30
  <ng-icon [svg]="tablerMenu2" />
31
31
  </sd-button>
32
32
  }
33
+
33
34
  <ng-content />
34
35
  `,
35
36
  styles: [
36
37
  /* language=SCSS */ `
37
38
  sd-topbar {
38
- min-height: var(--topbar-height);
39
+ height: var(--topbar-height);
39
40
  overflow-x: auto;
40
41
  overflow-y: hidden;
41
42
  user-select: none;
@@ -58,6 +58,224 @@ import "@simplysm/core-browser";
58
58
  }
59
59
  </div>
60
60
  `,
61
+ styles: [
62
+ /* language=SCSS */ `
63
+ @use "../../../../scss/commons/mixins";
64
+
65
+ sd-modal {
66
+ display: block;
67
+ position: fixed;
68
+ z-index: var(--z-index-modal);
69
+ top: 0;
70
+ left: 0;
71
+ width: 100%;
72
+ height: 100%;
73
+ padding-top: calc(var(--topbar-height) + var(--gap-sm));
74
+ opacity: 0;
75
+ transition: opacity var(--animation-duration) ease-in-out;
76
+ pointer-events: none;
77
+
78
+ > ._backdrop {
79
+ position: fixed;
80
+ top: 0;
81
+ left: 0;
82
+ width: 100%;
83
+ height: 100%;
84
+ background: var(--trans-default);
85
+ }
86
+
87
+ > ._dialog {
88
+ position: relative;
89
+ display: flex;
90
+ flex-direction: column;
91
+ margin: 0 auto;
92
+ width: fit-content;
93
+ min-width: 200px;
94
+ background: var(--control-color);
95
+ overflow: hidden;
96
+ @include mixins.elevation(16);
97
+ border-radius: var(--border-radius-default);
98
+ transform: translateY(-25px);
99
+ transition: transform var(--animation-duration) ease-in-out;
100
+
101
+ &:focus {
102
+ outline: none;
103
+ }
104
+
105
+ > ._header {
106
+ display: flex;
107
+ align-items: center;
108
+ user-select: none;
109
+ border-bottom: 1px solid var(--theme-gray-lightest);
110
+
111
+ > ._title {
112
+ flex: 1;
113
+ padding: var(--gap-sm) var(--gap-default);
114
+ }
115
+
116
+ > ._close-btn {
117
+ padding: var(--gap-sm) var(--gap-default);
118
+ border: none;
119
+ background: transparent;
120
+ cursor: pointer;
121
+ font-size: inherit;
122
+ color: inherit;
123
+
124
+ &:hover {
125
+ background: var(--trans-lightest);
126
+ }
127
+ }
128
+ }
129
+
130
+ > ._content {
131
+ flex: 1;
132
+ overflow: auto;
133
+ }
134
+
135
+ > ._resize-handle {
136
+ position: absolute;
137
+
138
+ &._resize-left {
139
+ top: 0;
140
+ left: 0;
141
+ width: var(--gap-sm);
142
+ height: 100%;
143
+ cursor: ew-resize;
144
+ }
145
+
146
+ &._resize-right {
147
+ top: 0;
148
+ right: 0;
149
+ width: var(--gap-sm);
150
+ height: 100%;
151
+ cursor: ew-resize;
152
+ }
153
+
154
+ &._resize-top {
155
+ top: 0;
156
+ left: 0;
157
+ width: 100%;
158
+ height: var(--gap-sm);
159
+ cursor: ns-resize;
160
+ }
161
+
162
+ &._resize-top-right {
163
+ right: 0;
164
+ top: 0;
165
+ width: var(--gap-sm);
166
+ height: var(--gap-sm);
167
+ z-index: 1;
168
+ cursor: nesw-resize;
169
+ }
170
+
171
+ &._resize-top-left {
172
+ left: 0;
173
+ top: 0;
174
+ width: var(--gap-sm);
175
+ height: var(--gap-sm);
176
+ cursor: nwse-resize;
177
+ z-index: 1;
178
+ }
179
+
180
+ &._resize-bottom {
181
+ bottom: 0;
182
+ left: 0;
183
+ width: 100%;
184
+ height: var(--gap-sm);
185
+ cursor: ns-resize;
186
+ }
187
+
188
+ &._resize-bottom-right {
189
+ right: 0;
190
+ bottom: 0;
191
+ width: var(--gap-sm);
192
+ height: var(--gap-sm);
193
+ z-index: 1;
194
+ cursor: nwse-resize;
195
+ }
196
+
197
+ &._resize-bottom-left {
198
+ left: 0;
199
+ bottom: 0;
200
+ width: var(--gap-sm);
201
+ height: var(--gap-sm);
202
+ cursor: nesw-resize;
203
+ z-index: 1;
204
+ }
205
+ }
206
+ }
207
+
208
+ &[data-sd-open][data-sd-init] {
209
+ opacity: 1;
210
+ pointer-events: auto;
211
+
212
+ > ._dialog {
213
+ transform: none;
214
+ }
215
+ }
216
+
217
+ &[data-sd-float] {
218
+ pointer-events: none;
219
+
220
+ > ._backdrop {
221
+ display: none;
222
+ }
223
+
224
+ > ._dialog {
225
+ pointer-events: auto;
226
+ opacity: 0;
227
+ @include mixins.elevation(4);
228
+ border: 1px solid var(--theme-gray-lighter);
229
+
230
+ &:focus {
231
+ @include mixins.elevation(16);
232
+ }
233
+ }
234
+
235
+ &[data-sd-open][data-sd-init] {
236
+ pointer-events: none;
237
+
238
+ > ._dialog {
239
+ pointer-events: auto;
240
+ opacity: 1;
241
+ }
242
+ }
243
+ }
244
+
245
+ &[data-sd-position="bottom-right"] {
246
+ > ._dialog {
247
+ position: absolute;
248
+ right: calc(var(--gap-xxl) * 2);
249
+ bottom: var(--gap-xxl);
250
+ }
251
+ }
252
+
253
+ &[data-sd-position="top-right"] {
254
+ > ._dialog {
255
+ position: absolute;
256
+ right: var(--gap-xxl);
257
+ top: var(--gap-xxl);
258
+ }
259
+ }
260
+
261
+ &[data-sd-fill] {
262
+ padding-top: 0;
263
+
264
+ > ._dialog {
265
+ width: 100%;
266
+ height: 100%;
267
+ border: none;
268
+ border-radius: 0;
269
+
270
+ > ._header {
271
+ background: transparent;
272
+ color: var(--text-trans-lighter);
273
+ }
274
+ }
275
+ }
276
+ }
277
+ `,
278
+ ],
61
279
  })
62
280
  export class SdModalControl {
63
281
  private readonly _elRef = inject(ElementRef<HTMLElement>);
@@ -107,6 +325,11 @@ export class SdModalControl {
107
325
  private readonly _onDocumentMouseUp: () => void;
108
326
 
109
327
  constructor() {
328
+ // data-sd-init: 첫 렌더 후 설정하여 CSS transition 트리거 허용
329
+ effect(() => {
330
+ this._elRef.nativeElement.setAttribute("data-sd-init", "");
331
+ });
332
+
110
333
  // widthPx/heightPx를 dialog 스타일에 적용
111
334
  effect(() => {
112
335
  const dialogEl = this._getDialogEl();
@@ -192,27 +192,41 @@ export class SdModalProvider {
192
192
  closeSub?.unsubscribe();
193
193
  closeRequestSub?.unsubscribe();
194
194
 
195
- // DOM에서 제거
195
+ // 닫힘 애니메이션 트리거: open(false) → CSS transition 시작
196
+ modalRef.instance.open.set(false);
197
+
196
198
  const modalEl = modalRef.location.nativeElement as HTMLElement;
197
- if (modalEl.parentNode !== null) {
198
- modalEl.parentNode.removeChild(modalEl);
199
- }
200
199
 
201
- // 분리 + 파괴
202
- this._appRef.detachView(modalRef.hostView);
203
- this._appRef.detachView(contentRef.hostView);
204
- modalRef.destroy();
205
- contentRef.destroy();
200
+ const doDestroy = () => {
201
+ // DOM에서 제거
202
+ if (modalEl.parentNode !== null) {
203
+ modalEl.parentNode.removeChild(modalEl);
204
+ }
206
205
 
207
- // modalCount 감소
208
- this.modalCount.update((v) => v - 1);
206
+ // 분리 + 파괴
207
+ this._appRef.detachView(modalRef.hostView);
208
+ this._appRef.detachView(contentRef.hostView);
209
+ modalRef.destroy();
210
+ contentRef.destroy();
209
211
 
210
- // 포커스 복귀
211
- if (prevActiveEl !== null && prevActiveEl.isConnected) {
212
- prevActiveEl.focus();
213
- }
212
+ // modalCount 감소
213
+ this.modalCount.update((v) => v - 1);
214
214
 
215
- resolve(result);
215
+ // 포커스 복귀
216
+ if (prevActiveEl !== null && prevActiveEl.isConnected) {
217
+ prevActiveEl.focus();
218
+ }
219
+
220
+ resolve(result);
221
+ };
222
+
223
+ // transition duration 확인 후 대기 또는 즉시 destroy
224
+ const duration = parseFloat(getComputedStyle(modalEl).transitionDuration || "0");
225
+ if (duration > 0) {
226
+ modalEl.addEventListener("transitionend", doDestroy, { once: true });
227
+ } else {
228
+ doDestroy();
229
+ }
216
230
  };
217
231
 
218
232
  // 10. close output 구독 (컨텐츠 컴포넌트가 직접 close.emit 호출)