@vmscloud/moz-ui-gantt-vue 0.0.0-stage → 0.1.0

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/index.cjs ADDED
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const vue = require("vue");
4
+ const mozUiGanttCore = require("@vmscloud/moz-ui-gantt-core");
5
+ const MozGantt = vue.defineComponent({
6
+ name: "MozGantt",
7
+ props: { options: { type: Object, required: true } },
8
+ emits: {
9
+ initialized: (_value) => true,
10
+ search: (_value) => true,
11
+ zoom: (_value) => true,
12
+ taskClick: (_value) => true
13
+ },
14
+ setup(props, { emit, expose }) {
15
+ const host = vue.shallowRef();
16
+ let core = null;
17
+ vue.onMounted(() => {
18
+ if (!host.value) return;
19
+ core = new mozUiGanttCore.MozGantt(host.value, props.options);
20
+ core.on("search", (state) => emit("search", state));
21
+ core.on("zoom", (state) => emit("zoom", state));
22
+ core.on("taskClick", (state) => emit("taskClick", state));
23
+ emit("initialized", core);
24
+ });
25
+ vue.watch(() => props.options, (options) => core == null ? void 0 : core.update(options));
26
+ vue.onBeforeUnmount(() => {
27
+ core == null ? void 0 : core.destroy();
28
+ core = null;
29
+ });
30
+ expose({ getGantt: () => core });
31
+ return () => vue.h("div", { ref: host, style: { height: "100%", minHeight: "180px" } });
32
+ }
33
+ });
34
+ exports.MozGantt = MozGantt;
@@ -0,0 +1,35 @@
1
+ import { PropType } from 'vue';
2
+ import { MozGantt as GanttCore, GanttOptions, GanttEvents } from '@vmscloud/moz-ui-gantt-core';
3
+ export type * from '@vmscloud/moz-ui-gantt-core';
4
+ export interface MozGanttExposed {
5
+ getGantt(): GanttCore | null;
6
+ }
7
+ export declare const MozGantt: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
8
+ options: {
9
+ type: PropType<GanttOptions>;
10
+ required: true;
11
+ };
12
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
13
+ [key: string]: any;
14
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ initialized: (_value: GanttCore) => true;
16
+ search: (_value: GanttEvents["search"]) => true;
17
+ zoom: (_value: GanttEvents["zoom"]) => true;
18
+ taskClick: (_value: GanttEvents["taskClick"]) => true;
19
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
20
+ options: {
21
+ type: PropType<GanttOptions>;
22
+ required: true;
23
+ };
24
+ }>> & Readonly<{
25
+ onSearch?: ((_value: import('@vmscloud/moz-ui-gantt-core').SearchState | null) => any) | undefined;
26
+ onZoom?: ((_value: {
27
+ pxPerTick: number;
28
+ }) => any) | undefined;
29
+ onTaskClick?: ((_value: {
30
+ id: import('@vmscloud/moz-ui-gantt-core').GanttRowId;
31
+ row: import('@vmscloud/moz-ui-gantt-core').GanttRow;
32
+ event: MouseEvent;
33
+ }) => any) | undefined;
34
+ onInitialized?: ((_value: GanttCore) => any) | undefined;
35
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
package/dist/index.js ADDED
@@ -0,0 +1,34 @@
1
+ import { defineComponent, shallowRef, onMounted, watch, onBeforeUnmount, h } from "vue";
2
+ import { MozGantt as MozGantt$1 } from "@vmscloud/moz-ui-gantt-core";
3
+ const MozGantt = defineComponent({
4
+ name: "MozGantt",
5
+ props: { options: { type: Object, required: true } },
6
+ emits: {
7
+ initialized: (_value) => true,
8
+ search: (_value) => true,
9
+ zoom: (_value) => true,
10
+ taskClick: (_value) => true
11
+ },
12
+ setup(props, { emit, expose }) {
13
+ const host = shallowRef();
14
+ let core = null;
15
+ onMounted(() => {
16
+ if (!host.value) return;
17
+ core = new MozGantt$1(host.value, props.options);
18
+ core.on("search", (state) => emit("search", state));
19
+ core.on("zoom", (state) => emit("zoom", state));
20
+ core.on("taskClick", (state) => emit("taskClick", state));
21
+ emit("initialized", core);
22
+ });
23
+ watch(() => props.options, (options) => core == null ? void 0 : core.update(options));
24
+ onBeforeUnmount(() => {
25
+ core == null ? void 0 : core.destroy();
26
+ core = null;
27
+ });
28
+ expose({ getGantt: () => core });
29
+ return () => h("div", { ref: host, style: { height: "100%", minHeight: "180px" } });
30
+ }
31
+ });
32
+ export {
33
+ MozGantt
34
+ };
package/dist/style.css ADDED
@@ -0,0 +1,747 @@
1
+ @charset "UTF-8";
2
+ /* moz color tokens — override in :root */
3
+ @layer moz {
4
+ :root {
5
+ /* ── 기본 팔레트 ── */
6
+ --moz-color-accent: #4568e0;
7
+ --moz-color-accent-strong: #3450b5;
8
+ --moz-color-accent-subtle: #e2e7fa;
9
+ --moz-color-danger: #d84a4b;
10
+ --moz-color-warning: #fa9e23;
11
+ --moz-color-success: #357e63;
12
+ --moz-color-info: #2f86d6;
13
+ --moz-color-surface: #ffffff;
14
+ --moz-color-on-accent: #ffffff;
15
+ --moz-color-on-status: #ffffff;
16
+ --moz-color-on-warning: var(--moz-color-text);
17
+ --moz-color-surface-subtle: #f4f4f9;
18
+ --moz-color-surface-muted: #f8f8fd;
19
+ --moz-color-neutral-subtle: #eef1f8;
20
+ --moz-color-segment-track: #dde1ed;
21
+ --moz-color-segment-hover: rgb(255 255 255 / 24%);
22
+ --moz-color-switch-track-off: #dae1f9;
23
+ --moz-color-switch-track-disabled-off: #dde1ed;
24
+ --moz-color-switch-track-disabled-on: #aeb7ca;
25
+ --moz-color-icon-button-foreground: #949eb8;
26
+ --moz-color-icon-button-hover: #f4f6fd;
27
+ --moz-color-icon-button-pressed: #ecf0fc;
28
+ --moz-color-icon-button-focus: #f8f8f8;
29
+ --moz-color-icon-button-weak: #ecf0fc;
30
+ --moz-color-icon-button-weak-interaction: #dae1f9;
31
+ --moz-color-button-outline-hover: #f4f6fd;
32
+ --moz-color-button-outline-pressed: #ecf0fc;
33
+ --moz-color-chip-selected: #ecf0fc;
34
+ --moz-color-chip-selected-hover: #f4f6fd;
35
+ --moz-color-chip-hover: #f7f9fd;
36
+ --moz-color-chip-border-disabled: #cbd2e1;
37
+ --moz-color-chip-close: #949eb8;
38
+ --moz-color-calendar-day-hover: #f4f6fd;
39
+ --moz-color-calendar-day-pressed: #ecf0fc;
40
+ --moz-color-context-menu-item-hover: #f4f6fd;
41
+ --moz-color-context-menu-arrow: #949eb8;
42
+ --moz-color-context-menu-arrow-disabled: #dde1ed;
43
+ --moz-color-calendar-nav-icon: #949eb8;
44
+ --moz-color-date-input-icon: #949eb8;
45
+ --moz-color-multi-select-search-icon: #949eb8;
46
+ --moz-color-notification-dot: #f58f8d;
47
+ --moz-color-notification-content: #f7f9fd;
48
+ --moz-color-notification-time: #949eb8;
49
+ --moz-color-time-picker-icon: #949eb8;
50
+ --moz-color-time-picker-option-hover: #f4f6fd;
51
+ --moz-color-time-picker-footer: #ecf0fc;
52
+ --moz-color-toast-info: #397bea;
53
+ --moz-color-border: #dde1ed;
54
+ --moz-color-border-marker: #cbd2e1;
55
+ --moz-color-border-marker-interaction: #949eb8;
56
+ --moz-color-border-subtle: #eef1f8;
57
+ --moz-color-text: #2d3752;
58
+ --moz-color-text-strong: #1d2340;
59
+ --moz-color-text-secondary: #646e8b;
60
+ --moz-color-breadcrumb-ancestor: #555f77;
61
+ --moz-color-breadcrumb-separator: #949eb8;
62
+ --moz-color-badge-line-warning-surface: #fff2e8;
63
+ --moz-color-badge-line-warning: #eb7114;
64
+ --moz-color-tab-close: #949EB8;
65
+ --moz-color-text-subtle: #aeb7ca;
66
+ --moz-color-text-muted: #cbd2e1;
67
+ --moz-color-disabled: #f7f9fd;
68
+ /* 반전 표면 — 툴팁처럼 본문과 배경/전경이 뒤집힌 떠 있는 조각 */
69
+ --moz-color-inverse-surface: var(--moz-color-text);
70
+ --moz-color-tooltip-surface: #555f77;
71
+ --moz-color-inverse-text: var(--moz-color-surface);
72
+ /* ── 파생(알파) — 위 solid 토큰을 따라간다 ── */
73
+ --moz-color-accent-ring: color-mix(in srgb, var(--moz-color-accent) 12%, transparent);
74
+ --moz-color-accent-ring-strong: color-mix(in srgb, var(--moz-color-accent) 30%, transparent);
75
+ --moz-color-accent-soft: color-mix(in srgb, var(--moz-color-accent) 16%, transparent);
76
+ --moz-color-accent-ghost: color-mix(in srgb, var(--moz-color-accent) 9%, transparent);
77
+ --moz-color-danger-ring: color-mix(in srgb, var(--moz-color-danger) 12%, transparent);
78
+ --moz-color-danger-ghost: color-mix(in srgb, var(--moz-color-danger) 13%, transparent);
79
+ --moz-color-muted-soft: color-mix(in srgb, var(--moz-color-text-subtle) 16%, transparent);
80
+ --moz-color-info-soft: color-mix(in srgb, var(--moz-color-info) 16%, transparent);
81
+ --moz-color-success-soft: color-mix(in srgb, var(--moz-color-success) 16%, transparent);
82
+ --moz-color-warning-soft: color-mix(in srgb, var(--moz-color-warning) 16%, transparent);
83
+ --moz-color-danger-soft: color-mix(in srgb, var(--moz-color-danger) 16%, transparent);
84
+ --moz-color-accent-edge: color-mix(in srgb, var(--moz-color-accent) 32%, transparent);
85
+ --moz-color-info-edge: color-mix(in srgb, var(--moz-color-info) 32%, transparent);
86
+ --moz-color-success-edge: color-mix(in srgb, var(--moz-color-success) 32%, transparent);
87
+ --moz-color-warning-edge: color-mix(in srgb, var(--moz-color-warning) 32%, transparent);
88
+ --moz-color-danger-edge: color-mix(in srgb, var(--moz-color-danger) 32%, transparent);
89
+ /* ── 그림자·스크림 ── */
90
+ --moz-color-shadow: rgb(57 55 122 / 0.1);
91
+ --moz-color-shadow-weak: rgb(0 0 0 / 0.05);
92
+ --moz-color-scrim: rgb(0 0 0 / 0.3);
93
+ --moz-color-scrim-strong: rgb(66 72 83 / 0.5);
94
+ }
95
+ }
96
+ /* moz radius tokens — override in :root */
97
+ @layer moz {
98
+ :root {
99
+ /* 소형 마커 — 체크박스, 칩 내부 요소 */
100
+ --moz-radius-xs: 2px;
101
+ --moz-radius-marker: 4px;
102
+ /* 컨트롤 박스 — 버튼·입력·셀렉트·탭·브레드크럼 (가장 많이 쓰이는 값) */
103
+ --moz-radius-control: 8px;
104
+ --moz-radius-button-large: 10px;
105
+ --moz-radius-text-button: 6px;
106
+ --moz-radius-icon-button: 6px;
107
+ --moz-radius-segment-item: 6px;
108
+ /* 보조 표면 — 캘린더 컨테이너, 슬라이더 트랙, 세그먼트 그룹 */
109
+ --moz-radius-surface: 6px;
110
+ --moz-radius-badge: 6px;
111
+ --moz-radius-textarea: 10px;
112
+ --moz-radius-select-panel: 12px;
113
+ --moz-radius-calendar-day: 10px;
114
+ --moz-radius-calendar-panel: 16px;
115
+ --moz-radius-calendar-option: 10px;
116
+ --moz-shadow-small: 0 2px 6px #00000014;
117
+ --moz-radius-popup: 16px;
118
+ --moz-shadow-medium: 0 4px 12px #0000001F;
119
+ /* 떠 있는 패널 — 팝업·대화상자 */
120
+ --moz-radius-panel: 10px;
121
+ /* 칩 — 태그 아이템처럼 컨트롤보다 작은 조각 (panel 과 기본값은 같지만 역할이 다르다:
122
+ 소비자가 panel 을 카드값으로 올려도 태그까지 알약이 되지 않도록 분리해 둔다) */
123
+ --moz-radius-chip: 10px;
124
+ --moz-radius-radio-group-edge: 4px;
125
+ --moz-radius-select-filter: 4px;
126
+ /* 알약 — 토글, 토스트, 라디오 도트, 슬라이더 핸들 */
127
+ --moz-radius-pill: 999px;
128
+ /* 원 — 아바타 */
129
+ --moz-radius-circle: 50%;
130
+ --moz-font-family: 'Pretendard', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif;
131
+ }
132
+ }
133
+ /**
134
+ * Button 스타일 — 기존 클래스 계약 유지. Action Button Figma 1687:12847 / 1966:380 기준.
135
+ *
136
+ * 소비자는 이 파일을 import 하거나, 통째로 교체/override 한다.
137
+ * - scoped 제거 → 전역 `.moz-button` 클래스 (DOM 단순화 + 커스터마이징 용이)
138
+ * - Button.vue 의 `v-bind(width)` 는 `var(--moz-btn-loading-width)` 로 대체 (코어가 주입)
139
+ */
140
+ @layer moz {
141
+ @keyframes moz-spin {
142
+ to {
143
+ transform: rotate(360deg);
144
+ }
145
+ }
146
+ .moz-circle-loader {
147
+ display: flex;
148
+ justify-content: center;
149
+ align-items: center;
150
+ width: 14px;
151
+ height: 14px;
152
+ color: var(--moz-color-surface);
153
+ animation: moz-spin 1s linear infinite;
154
+ }
155
+ .moz-button {
156
+ display: flex;
157
+ justify-content: center;
158
+ align-items: center;
159
+ text-align: center;
160
+ height: 30px;
161
+ border: 1px solid var(--moz-color-accent);
162
+ border-radius: var(--moz-radius-control);
163
+ background-color: var(--moz-color-surface);
164
+ font-size: 0.875rem;
165
+ padding: 0 14px;
166
+ gap: 8px;
167
+ }
168
+ .moz-button .text {
169
+ text-overflow: ellipsis;
170
+ white-space: nowrap;
171
+ overflow: hidden;
172
+ user-select: none;
173
+ display: flex;
174
+ justify-content: center;
175
+ align-items: center;
176
+ font-size: 0.875rem;
177
+ line-height: normal;
178
+ }
179
+ .moz-button:disabled {
180
+ cursor: not-allowed;
181
+ }
182
+ .moz-button:focus {
183
+ border-color: var(--moz-color-accent);
184
+ box-shadow: 0 0 0 3px var(--moz-color-accent-ring);
185
+ }
186
+ .moz-button:focus:not(.moz-no-interaction-button) {
187
+ outline: 2px solid transparent;
188
+ }
189
+ .moz-button.loading {
190
+ width: var(--moz-btn-loading-width);
191
+ position: relative;
192
+ }
193
+ .moz-button.loading > .spinner {
194
+ font-size: 0;
195
+ }
196
+ .moz-button.loading > .spinner {
197
+ position: absolute;
198
+ left: 50%;
199
+ top: 50%;
200
+ transform: translate(-50%, -50%);
201
+ pointer-events: none;
202
+ }
203
+ .moz-button.loading > :not(.spinner) {
204
+ opacity: 0;
205
+ }
206
+ .moz-button.moz-default-button {
207
+ box-sizing: border-box;
208
+ height: 32px;
209
+ background-color: var(--moz-color-accent);
210
+ color: var(--moz-color-on-accent);
211
+ border-color: var(--moz-color-accent);
212
+ padding: 0 12px;
213
+ font-weight: 400;
214
+ }
215
+ .moz-button.moz-default-button .text {
216
+ line-height: 20px;
217
+ }
218
+ .moz-button.moz-default-button:hover:not(:disabled), .moz-button.moz-default-button:active:not(:disabled), .moz-button.moz-default-button.loading {
219
+ background-color: var(--moz-color-accent-strong);
220
+ border-color: var(--moz-color-accent-strong);
221
+ }
222
+ .moz-button.moz-default-button:focus {
223
+ box-shadow: 0 0 0 4px var(--moz-color-accent-ring);
224
+ }
225
+ .moz-button.moz-default-button:disabled:not(.loading) {
226
+ background-color: var(--moz-color-disabled);
227
+ border-color: var(--moz-color-disabled);
228
+ color: var(--moz-color-text-muted);
229
+ }
230
+ .moz-button.moz-default-button:disabled:not(.loading) .mozart-icons::before {
231
+ color: var(--moz-color-text-muted);
232
+ }
233
+ .moz-button.moz-icon-text-button {
234
+ padding: 0 12px;
235
+ }
236
+ .moz-button.moz-default-button.moz-action-button-large {
237
+ height: 40px;
238
+ border-radius: var(--moz-radius-button-large);
239
+ padding: 0 24px;
240
+ font-size: 1rem;
241
+ }
242
+ .moz-button.moz-default-button.moz-action-button-large > .text {
243
+ font-size: inherit;
244
+ line-height: 22px;
245
+ }
246
+ .moz-button.moz-default-button.moz-action-button-small {
247
+ height: 28px;
248
+ border-radius: var(--moz-radius-control);
249
+ padding: 0 12px;
250
+ font-size: 0.8125rem;
251
+ }
252
+ .moz-button.moz-default-button.moz-action-button-small > .text {
253
+ font-size: inherit;
254
+ line-height: 18px;
255
+ }
256
+ .moz-button.moz-text-button {
257
+ box-sizing: border-box;
258
+ height: 24px;
259
+ min-width: unset;
260
+ background-color: transparent;
261
+ color: var(--moz-color-accent);
262
+ border-color: transparent;
263
+ border-width: 0;
264
+ gap: 5px;
265
+ padding: 0 6px;
266
+ font-size: 0.8125rem;
267
+ }
268
+ .moz-button.moz-text-button .text {
269
+ font-size: inherit;
270
+ line-height: 18px;
271
+ font-weight: 400;
272
+ }
273
+ .moz-button.moz-text-button:hover:not(:disabled), .moz-button.moz-text-button:active:not(:disabled) {
274
+ color: var(--moz-color-accent-strong);
275
+ }
276
+ .moz-button.moz-text-button:hover:not(:disabled) {
277
+ border-radius: var(--moz-radius-text-button);
278
+ }
279
+ .moz-button.moz-text-button:disabled {
280
+ color: var(--moz-color-text-muted);
281
+ }
282
+ .moz-button.moz-text-button:disabled:hover {
283
+ background-color: transparent;
284
+ cursor: not-allowed;
285
+ }
286
+ .moz-button.moz-text-button[data-size=medium] {
287
+ height: 24px;
288
+ padding: 0 6px;
289
+ font-size: 0.875rem;
290
+ }
291
+ .moz-button.moz-text-button[data-size=medium] .text {
292
+ font-size: inherit;
293
+ line-height: 20px;
294
+ }
295
+ .moz-button.moz-text-button[data-size=small] {
296
+ height: 24px;
297
+ padding: 0 6px;
298
+ font-size: 0.8125rem;
299
+ }
300
+ .moz-button.moz-text-button[data-size=small] .text {
301
+ font-size: inherit;
302
+ line-height: 18px;
303
+ }
304
+ .moz-button.moz-icon-button {
305
+ display: flex;
306
+ justify-content: center;
307
+ align-items: center;
308
+ padding: 0;
309
+ background-color: transparent;
310
+ color: var(--moz-color-surface);
311
+ min-width: 26px;
312
+ min-height: 26px;
313
+ width: 26px;
314
+ height: 26px;
315
+ border-color: transparent;
316
+ font-weight: 300;
317
+ }
318
+ .moz-button.moz-icon-button.small {
319
+ min-width: 20px;
320
+ min-height: 20px;
321
+ width: 20px;
322
+ height: 20px;
323
+ }
324
+ .moz-button.moz-icon-button:hover {
325
+ background-color: var(--moz-color-muted-soft);
326
+ }
327
+ .moz-button.moz-icon-button:disabled {
328
+ background-color: transparent;
329
+ color: var(--moz-color-surface);
330
+ }
331
+ .moz-button.moz-icon-button:not(.moz-no-interaction-button) {
332
+ box-sizing: border-box;
333
+ }
334
+ .moz-button.moz-icon-button:not(.moz-no-interaction-button):not(.moz-icon-accent-button) {
335
+ border-width: 0;
336
+ border-radius: var(--moz-radius-icon-button);
337
+ }
338
+ .moz-button.moz-icon-button:not(.moz-no-interaction-button):not(.moz-icon-accent-button):not(:disabled) {
339
+ color: var(--moz-color-icon-button-foreground);
340
+ }
341
+ .moz-button.moz-icon-button:not(.moz-no-interaction-button):not(.moz-icon-accent-button):not(:disabled):focus {
342
+ background-color: var(--moz-color-icon-button-focus);
343
+ }
344
+ .moz-button.moz-icon-button:not(.moz-no-interaction-button):not(.moz-icon-accent-button):not(:disabled):hover {
345
+ background-color: var(--moz-color-icon-button-hover);
346
+ }
347
+ .moz-button.moz-icon-button:not(.moz-no-interaction-button):not(.moz-icon-accent-button):not(:disabled):active {
348
+ background-color: var(--moz-color-icon-button-pressed);
349
+ }
350
+ .moz-button.moz-icon-button:not(.moz-no-interaction-button):not(.moz-icon-accent-button):not(.small) {
351
+ min-width: 24px;
352
+ min-height: 24px;
353
+ width: 24px;
354
+ height: 24px;
355
+ }
356
+ .moz-button.moz-icon-button:not(.moz-no-interaction-button):focus:not(:disabled) {
357
+ box-shadow: 0 0 0 4px var(--moz-color-accent-ring);
358
+ }
359
+ .moz-button.moz-icon-button:not(.moz-no-interaction-button):disabled {
360
+ color: var(--moz-color-text-muted);
361
+ }
362
+ .moz-button.moz-icon-button.moz-icon-accent-button {
363
+ background-color: var(--moz-color-accent);
364
+ }
365
+ .moz-button.moz-icon-button.moz-icon-accent-button:not(.small) {
366
+ min-width: 32px;
367
+ min-height: 32px;
368
+ width: 32px;
369
+ height: 32px;
370
+ }
371
+ .moz-button.moz-icon-button.moz-icon-accent-button:hover:not(:disabled) {
372
+ background-color: var(--moz-color-accent-strong);
373
+ color: var(--moz-color-surface);
374
+ }
375
+ .moz-button.moz-icon-button.moz-icon-accent-button:not(.moz-no-interaction-button):not(:disabled) {
376
+ background-color: var(--moz-color-icon-button-weak);
377
+ border-color: var(--moz-color-icon-button-weak);
378
+ color: var(--moz-color-accent);
379
+ }
380
+ .moz-button.moz-icon-button.moz-icon-accent-button:not(.moz-no-interaction-button):not(:disabled):hover, .moz-button.moz-icon-button.moz-icon-accent-button:not(.moz-no-interaction-button):not(:disabled):active {
381
+ background-color: var(--moz-color-icon-button-weak-interaction);
382
+ border-color: var(--moz-color-icon-button-weak-interaction);
383
+ }
384
+ .moz-button.moz-icon-button.moz-icon-accent-button:disabled {
385
+ background-color: var(--moz-color-disabled);
386
+ border-color: var(--moz-color-disabled);
387
+ color: var(--moz-color-text-muted);
388
+ }
389
+ .moz-button.moz-outline-icon-button {
390
+ box-sizing: border-box;
391
+ width: 32px;
392
+ min-width: 32px;
393
+ height: 32px;
394
+ min-height: 32px;
395
+ padding: 0;
396
+ border-radius: var(--moz-radius-control);
397
+ border-color: var(--moz-color-border);
398
+ background-color: transparent;
399
+ color: var(--moz-color-text-secondary);
400
+ font-size: 14px;
401
+ }
402
+ .moz-button.moz-outline-icon-button:focus:not(:disabled) {
403
+ border-color: var(--moz-color-border);
404
+ background-color: var(--moz-color-icon-button-focus);
405
+ box-shadow: 0 0 0 4px var(--moz-color-accent-ring);
406
+ }
407
+ .moz-button.moz-outline-icon-button:hover:not(:disabled) {
408
+ background-color: var(--moz-color-icon-button-hover);
409
+ }
410
+ .moz-button.moz-outline-icon-button:active:not(:disabled) {
411
+ background-color: var(--moz-color-icon-button-pressed);
412
+ }
413
+ .moz-button.moz-outline-icon-button:disabled {
414
+ background-color: transparent;
415
+ border-color: var(--moz-color-border);
416
+ color: var(--moz-color-text-secondary);
417
+ }
418
+ .moz-button.moz-outline-button {
419
+ box-sizing: border-box;
420
+ height: 32px;
421
+ padding: 0 16px;
422
+ background-color: var(--moz-color-surface);
423
+ border-color: var(--moz-color-border);
424
+ color: var(--moz-color-accent);
425
+ font-weight: 400;
426
+ }
427
+ .moz-button.moz-outline-button .text {
428
+ line-height: 20px;
429
+ }
430
+ .moz-button.moz-outline-button:hover:not(:disabled) {
431
+ background-color: var(--moz-color-button-outline-hover);
432
+ }
433
+ .moz-button.moz-outline-button:active:not(:disabled) {
434
+ background-color: var(--moz-color-button-outline-pressed);
435
+ }
436
+ .moz-button.moz-outline-button:focus:not(:disabled) {
437
+ border-color: var(--moz-color-border);
438
+ box-shadow: 0 0 0 4px var(--moz-color-accent-ring);
439
+ }
440
+ .moz-button.moz-outline-button:disabled {
441
+ background-color: transparent;
442
+ border-color: var(--moz-color-border-subtle);
443
+ color: var(--moz-color-text-muted);
444
+ }
445
+ .moz-button.moz-no-interaction-button:hover {
446
+ background-color: transparent;
447
+ }
448
+ .moz-button.moz-no-interaction-button:focus {
449
+ box-shadow: none;
450
+ }
451
+ }
452
+ /**
453
+ * Input 스타일 — 기존 클래스 계약 유지. Text field Figma 241:4446 기준.
454
+ * password 모드(type="password", PasswordInput 래퍼 포함)도 같은 규칙을 쓴다.
455
+ */
456
+ @layer moz {
457
+ .moz-input-wrapper {
458
+ display: flex;
459
+ flex-direction: column;
460
+ position: relative;
461
+ }
462
+ .moz-input-wrapper .input-wrapper {
463
+ display: flex;
464
+ flex-direction: column;
465
+ gap: 4px;
466
+ height: 100%;
467
+ }
468
+ .moz-input-wrapper .input-label {
469
+ display: flex;
470
+ align-items: center;
471
+ }
472
+ .moz-input-wrapper .input-label.input-label-disabled, .moz-input-wrapper .input-label.input-label-read-only {
473
+ font-family: var(--moz-font-family);
474
+ line-height: 16px;
475
+ }
476
+ .moz-input-wrapper .input-label.input-label-disabled {
477
+ color: var(--moz-color-text-muted);
478
+ }
479
+ .moz-input-wrapper .moz-input {
480
+ height: 2rem;
481
+ padding: 0 0.75rem;
482
+ border: 1px solid var(--moz-color-border);
483
+ border-radius: var(--moz-radius-control);
484
+ background-color: var(--moz-color-surface);
485
+ box-sizing: border-box;
486
+ color: var(--moz-color-text);
487
+ font-size: 0.8125rem;
488
+ line-height: 1.125rem;
489
+ font-family: inherit;
490
+ text-overflow: ellipsis;
491
+ white-space: nowrap;
492
+ overflow: hidden;
493
+ }
494
+ .moz-input-wrapper .moz-input:where(:not(.disabled)) {
495
+ font-family: var(--moz-font-family);
496
+ font-weight: 400;
497
+ }
498
+ .moz-input-wrapper .moz-input.is-filled:where(:not(.disabled):not(.read-only):not(:focus)) {
499
+ border-color: var(--moz-color-accent);
500
+ }
501
+ .moz-input-wrapper .moz-input:hover:where(:not(.disabled):not(.read-only):not(:focus)) {
502
+ border-color: var(--moz-color-accent);
503
+ }
504
+ .moz-input-wrapper .moz-input:focus {
505
+ border-color: var(--moz-color-border);
506
+ box-shadow: 0 0 0 4px var(--moz-color-accent-ring);
507
+ outline: none;
508
+ }
509
+ .moz-input-wrapper .moz-input::placeholder {
510
+ color: var(--moz-color-text-subtle);
511
+ font-size: 0.8125rem;
512
+ }
513
+ .moz-input-wrapper .moz-input.has-inside-message {
514
+ padding-right: 50%;
515
+ }
516
+ .moz-input-wrapper .moz-input.has-invalid-icon {
517
+ padding-right: 1.875rem;
518
+ }
519
+ .moz-input-wrapper .moz-input.disabled {
520
+ user-select: none;
521
+ color: var(--moz-color-text-muted);
522
+ border: 1px solid var(--moz-color-border);
523
+ background: var(--moz-color-disabled);
524
+ cursor: not-allowed;
525
+ }
526
+ .moz-input-wrapper .moz-input.disabled::placeholder {
527
+ color: var(--moz-color-text-muted);
528
+ }
529
+ .moz-input-wrapper .moz-input.disabled:hover {
530
+ border: 1px solid var(--moz-color-border);
531
+ }
532
+ .moz-input-wrapper .moz-input.read-only {
533
+ user-select: none;
534
+ border: 1px solid var(--moz-color-border-subtle);
535
+ background: var(--moz-color-surface);
536
+ cursor: not-allowed;
537
+ }
538
+ .moz-input-wrapper .moz-input.read-only::placeholder {
539
+ color: var(--moz-color-text-muted);
540
+ }
541
+ .moz-input-wrapper.is-invalid .moz-input {
542
+ border-color: var(--moz-color-danger);
543
+ box-shadow: none;
544
+ }
545
+ .moz-input-wrapper.is-invalid .moz-input:focus {
546
+ box-shadow: 0 0 0 4px var(--moz-color-danger-ring);
547
+ }
548
+ .moz-input-wrapper .moz-input-invalid-message {
549
+ color: var(--moz-color-danger);
550
+ font-size: 0.75rem;
551
+ line-height: 1rem;
552
+ font-weight: 400;
553
+ cursor: default;
554
+ }
555
+ .moz-input-wrapper .moz-input-invalid-message.position-outside {
556
+ position: absolute;
557
+ bottom: calc((1rem + 4px) * -1);
558
+ font-family: var(--moz-font-family);
559
+ left: 0;
560
+ max-width: 100%;
561
+ overflow: hidden;
562
+ text-overflow: ellipsis;
563
+ white-space: nowrap;
564
+ }
565
+ .moz-input-wrapper .moz-input-invalid-message.position-inside {
566
+ position: absolute;
567
+ top: 50%;
568
+ right: 2px;
569
+ transform: translateY(-50%);
570
+ white-space: nowrap;
571
+ padding: 0 2px;
572
+ pointer-events: auto;
573
+ max-width: 50%;
574
+ overflow: hidden;
575
+ text-overflow: ellipsis;
576
+ z-index: 1;
577
+ }
578
+ .moz-input-wrapper .moz-input-invalid-icon-v2 {
579
+ position: absolute;
580
+ bottom: 0;
581
+ right: 0;
582
+ width: 1.875rem;
583
+ height: 1.875rem;
584
+ display: flex;
585
+ align-items: center;
586
+ justify-content: center;
587
+ cursor: pointer;
588
+ z-index: 1;
589
+ }
590
+ .moz-input-wrapper .moz-password-input-wrapper {
591
+ position: relative;
592
+ display: flex;
593
+ flex-direction: column;
594
+ }
595
+ .moz-input-wrapper .moz-input.has-password-toggle {
596
+ padding-right: 2.25rem;
597
+ }
598
+ .moz-input-wrapper .moz-input.has-password-toggle::-ms-reveal, .moz-input-wrapper .moz-input.has-password-toggle::-ms-clear {
599
+ display: none;
600
+ }
601
+ .moz-input-wrapper .moz-input.has-password-toggle.has-invalid-icon {
602
+ padding-right: 3.875rem;
603
+ }
604
+ .moz-input-wrapper .moz-input.has-password-toggle.has-inside-message {
605
+ padding-right: 50%;
606
+ }
607
+ .moz-input-wrapper .icon-container.password-icon {
608
+ position: absolute;
609
+ top: 50%;
610
+ right: 8px;
611
+ z-index: 1;
612
+ transform: translateY(-50%);
613
+ display: flex;
614
+ width: 24px;
615
+ height: 24px;
616
+ align-items: center;
617
+ justify-content: center;
618
+ padding: 0;
619
+ border: none;
620
+ border-radius: var(--moz-radius-control);
621
+ background: transparent;
622
+ outline: none;
623
+ cursor: pointer;
624
+ }
625
+ .moz-input-wrapper .icon-container.password-icon:focus-visible {
626
+ box-shadow: 0 0 0 4px var(--moz-color-accent-ring);
627
+ }
628
+ .moz-input-wrapper .icon-container.password-icon:disabled {
629
+ cursor: not-allowed;
630
+ }
631
+ .moz-input-wrapper.is-password .moz-input-invalid-icon-v2 {
632
+ right: 2rem;
633
+ }
634
+ .moz-input-wrapper.is-password .moz-input-invalid-message.position-inside {
635
+ right: 2.25rem;
636
+ }
637
+ }
638
+ .moz-gantt {
639
+ --gantt-border: var(--color-border-300, #d5dce7);
640
+ --gantt-surface: var(--color-background, #fff);
641
+ --gantt-header: var(--color-background-secondary, #f1f4f9);
642
+ display: flex;
643
+ flex-direction: column;
644
+ height: 100%;
645
+ min-height: 180px;
646
+ overflow: hidden;
647
+ position: relative;
648
+ font: 13px var(--moz-font-family, sans-serif);
649
+ color: var(--color-text, #263248);
650
+ background: var(--gantt-surface);
651
+ border: 1px solid var(--gantt-border);
652
+ border-radius: var(--moz-radius-control, 8px);
653
+ }
654
+
655
+ .moz-gantt-toolbar {
656
+ display: flex;
657
+ align-items: center;
658
+ gap: 8px;
659
+ padding: 8px;
660
+ flex-wrap: wrap;
661
+ border-bottom: 1px solid var(--gantt-border);
662
+ }
663
+
664
+ .moz-gantt-toolbar[hidden] {
665
+ display: none;
666
+ }
667
+
668
+ .moz-gantt-viewport {
669
+ flex: 1;
670
+ min-height: 0;
671
+ }
672
+
673
+ .moz-gantt-viewport:focus-visible {
674
+ outline: 2px solid var(--color-accent, #2563eb);
675
+ outline-offset: -2px;
676
+ }
677
+
678
+ .moz-gantt-status {
679
+ padding: 6px 10px;
680
+ border-top: 1px solid var(--gantt-border);
681
+ font-size: 12px;
682
+ overflow: hidden;
683
+ text-overflow: ellipsis;
684
+ white-space: nowrap;
685
+ }
686
+
687
+ .moz-gantt .pv-pane {
688
+ position: absolute;
689
+ contain: strict;
690
+ overflow: hidden;
691
+ }
692
+
693
+ .moz-gantt .pv-pane-tl, .moz-gantt .pv-pane-ch {
694
+ background: var(--gantt-header);
695
+ }
696
+
697
+ .moz-gantt .pv-pane-rh {
698
+ border-right: 1px solid var(--gantt-border);
699
+ bottom: 0;
700
+ }
701
+
702
+ .moz-gantt .pv-pane-body {
703
+ background: var(--gantt-surface);
704
+ right: 0;
705
+ bottom: 0;
706
+ }
707
+
708
+ .moz-gantt .pv-pane-ch {
709
+ right: 0;
710
+ }
711
+
712
+ .moz-gantt .pv-th, .moz-gantt .pv-rh, .moz-gantt .pv-th-corner {
713
+ box-sizing: border-box;
714
+ overflow: hidden;
715
+ display: flex;
716
+ border-right: 1px solid var(--gantt-border);
717
+ border-bottom: 1px solid var(--gantt-border);
718
+ }
719
+
720
+ .moz-gantt .pv-header-cell-inner {
721
+ width: 100%;
722
+ min-width: 0;
723
+ display: flex;
724
+ align-items: center;
725
+ justify-content: center;
726
+ padding: 4px 8px;
727
+ box-sizing: border-box;
728
+ }
729
+
730
+ .moz-gantt .pv-rh > .pv-header-cell-inner {
731
+ justify-content: flex-start;
732
+ }
733
+
734
+ .moz-gantt .pv-header-cell-text, .moz-gantt .pv-rh-text {
735
+ min-width: 0;
736
+ white-space: nowrap;
737
+ overflow: hidden;
738
+ text-overflow: ellipsis;
739
+ }
740
+
741
+ .moz-gantt .pv-row-header-resize-handle:hover {
742
+ background: var(--gantt-border);
743
+ }
744
+
745
+ .moz-gantt .pv-rh-collapser {
746
+ cursor: pointer;
747
+ }
package/package.json CHANGED
@@ -1,6 +1,59 @@
1
1
  {
2
2
  "name": "@vmscloud/moz-ui-gantt-vue",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Planner-based Canvas Gantt vue: viewing, search and zoom",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": [
8
+ "*.css",
9
+ "*.scss"
10
+ ],
11
+ "main": "./dist/index.cjs",
12
+ "module": "./dist/index.js",
13
+ "types": "./dist/index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/index.js",
18
+ "require": "./dist/index.cjs"
19
+ },
20
+ "./style.css": "./dist/style.css",
21
+ "./package.json": "./package.json"
22
+ },
23
+ "files": [
24
+ "dist/*.js",
25
+ "dist/*.cjs",
26
+ "dist/*.css",
27
+ "dist/**/*.d.ts"
28
+ ],
29
+ "scripts": {
30
+ "build:lib": "vite build --config vite.config.lib.ts",
31
+ "typecheck": "vue-tsc --noEmit",
32
+ "test": "vitest run",
33
+ "build:example": "vite build --config vite.config.demo.ts",
34
+ "dev": "vite --config vite.config.demo.ts"
35
+ },
36
+ "dependencies": {
37
+ "@vmscloud/moz-ui-gantt-core": "^0.1.0"
38
+ },
39
+ "devDependencies": {
40
+ "typescript": "^5.3.3",
41
+ "vite": "^6.3.3",
42
+ "vite-plugin-dts": "^4.0.3",
43
+ "vitest": "^3.0.9",
44
+ "jsdom": "^27.4.0",
45
+ "sass": "^1.77.0",
46
+ "@types/node": "^20.11.5",
47
+ "vue": "^3.4.14",
48
+ "@vitejs/plugin-vue": "^5.2.0",
49
+ "vue-tsc": "^2.2.8",
50
+ "@vue/test-utils": "^2.4.6"
51
+ },
52
+ "publishConfig": {
53
+ "access": "public",
54
+ "registry": "https://registry.npmjs.org"
55
+ },
56
+ "peerDependencies": {
57
+ "vue": ">=3.4.0"
58
+ }
59
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.