@wssto2/vue-core 0.16.0 → 0.17.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/CHANGELOG.md +20 -0
- package/README.md +4 -3
- package/bin/architecture/engine.mjs +3 -0
- package/bin/architecture/permissions.mjs +56 -0
- package/bin/architecture/rules.mjs +17 -0
- package/bin/commands/check-architecture.mjs +19 -0
- package/bin/config.mjs +2 -0
- package/dist/{AccessGate.vue_vue_type_script_setup_true_lang-BH3f0hda.js → AccessGate.vue_vue_type_script_setup_true_lang-Bg8JFAOT.js} +1 -1
- package/dist/{ActionRow.vue_vue_type_script_setup_true_lang-DybAIOHS.js → ActionRow.vue_vue_type_script_setup_true_lang-B5IMNnTf.js} +4 -4
- package/dist/{Activity-DOUuIkZR.js → Activity-CiYn5E6A.js} +7 -7
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-d_dPurWG.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-oXWQTfBs.js} +1 -1
- package/dist/{Changes-BfcbVgmu.js → Changes-Cy8STpLX.js} +3 -3
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-B5hSkJ2N.js → CollectionPage.vue_vue_type_script_setup_true_lang-Dr6nFNBB.js} +6 -6
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-DbRS37n3.js → DataTable.vue_vue_type_script_setup_true_lang-D372wlxR.js} +1 -1
- package/dist/{DateField.vue_vue_type_script_setup_true_lang-DzCvYHAf.js → DateField.vue_vue_type_script_setup_true_lang-D0KcfW8R.js} +17 -16
- package/dist/{DeadLetters-CuMvfXH8.js → DeadLetters-DhJkMpd_.js} +4 -4
- package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-dsO1m9Mm.js → FormGroup.vue_vue_type_script_setup_true_lang-lvAuBG-0.js} +2 -2
- package/dist/FormRow.vue_vue_type_script_setup_true_lang-CpgNVQF4.js +160 -0
- package/dist/{FormView.vue_vue_type_script_setup_true_lang-Bq_Qa4py.js → FormView.vue_vue_type_script_setup_true_lang-D01Jr4UU.js} +5 -5
- package/dist/{General-B5vcSEhP.js → General-CwTPC5UP.js} +10 -10
- package/dist/{IncidentRecord-wmStcEag.js → IncidentRecord-hXEGuLGg.js} +13 -13
- package/dist/{IncidentsList-CFx5tsxP.js → IncidentsList-C41VyDwK.js} +6 -6
- package/dist/{NewRolePage-CZxAp7LR.js → NewRolePage-BYYZJkK7.js} +3 -3
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-U-_kcnGr.js → NumberField.vue_vue_type_script_setup_true_lang-BhNZgEW6.js} +7 -6
- package/dist/{PersonAccess.vue_vue_type_script_setup_true_lang-BPDh9s2m.js → PersonAccess.vue_vue_type_script_setup_true_lang-mYFuG-Y3.js} +56 -56
- package/dist/{ProfilePage-B-T8kBcc.js → ProfilePage-DGEsIycR.js} +13 -13
- package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-Bt5mT19g.js → RecordHeader.vue_vue_type_script_setup_true_lang-B3BnYg1x.js} +1 -1
- package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-DOiFuJnH.js → ResourcePage.vue_vue_type_script_setup_true_lang-1iZtj3rh.js} +1 -1
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-CqSsNPCw.js → RoleEditor.vue_vue_type_script_setup_true_lang-BslSDDiM.js} +9 -9
- package/dist/{RolePage-zcUWpuDE.js → RolePage-C08ZUqw1.js} +9 -9
- package/dist/{RolesPage-C7_zWw-c.js → RolesPage-FOuY1VKg.js} +10 -10
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-BlCx9dVL.js → SectionNavigator.vue_vue_type_script_setup_true_lang-DCTFxfPB.js} +2 -2
- package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-zv_AxpBn.js → SegmentedField.vue_vue_type_script_setup_true_lang-CLR6EvzO.js} +13 -12
- package/dist/{SelectField.vue_vue_type_script_setup_true_lang-CLkoPbGm.js → SelectField.vue_vue_type_script_setup_true_lang-D5xYofdb.js} +10 -9
- package/dist/{ServiceAccountDialog.vue_vue_type_script_setup_true_lang-C2D_D5Hi.js → ServiceAccountDialog.vue_vue_type_script_setup_true_lang-CDr4WNIb.js} +9 -9
- package/dist/{ServiceAccountRecord-BYxpHzTR.js → ServiceAccountRecord-kWwIQGZb.js} +12 -12
- package/dist/{ServiceAccountsList-BUuK-RUj.js → ServiceAccountsList-CKy9_YHP.js} +8 -8
- package/dist/{Sessions-Cm-Kilwl.js → Sessions-BDc8gdYH.js} +4 -4
- package/dist/{SettingsPage-Bavl0K-F.js → SettingsPage-t-8kmFVT.js} +13 -13
- package/dist/{SignIn-SfEhFiyM.js → SignIn-CqtkvtCZ.js} +7 -7
- package/dist/{SignInPage-BU0n2ehq.js → SignInPage-DcdNKZIb.js} +4 -4
- package/dist/{SignIns-Ahbn5cO6.js → SignIns-D4-nGu0B.js} +3 -3
- package/dist/{SwitchField.vue_vue_type_script_setup_true_lang-Ds4q0bbl.js → SwitchField.vue_vue_type_script_setup_true_lang-CLtcuofe.js} +15 -14
- package/dist/{TextField.vue_vue_type_script_setup_true_lang-CWIeeZRE.js → TextField.vue_vue_type_script_setup_true_lang-CVGh-p3J.js} +7 -6
- package/dist/{TextareaField.vue_vue_type_script_setup_true_lang-D2j4s96s.js → TextareaField.vue_vue_type_script_setup_true_lang-YxUlNHSk.js} +6 -5
- package/dist/{TimeField.vue_vue_type_script_setup_true_lang-C1mLvOkc.js → TimeField.vue_vue_type_script_setup_true_lang-DHNC_MLt.js} +30 -29
- package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-jCXYFLtq.js → Timestamp.vue_vue_type_script_setup_true_lang-d_KuxWjH.js} +1 -1
- package/dist/{UserRecord-3pCKMHkq.js → UserRecord-CwZCr9Im.js} +10 -10
- package/dist/{UsersList-vw3aDpvo.js → UsersList-Cn19sFgv.js} +4 -4
- package/dist/access/index.js +4 -4
- package/dist/app/application.d.ts +2 -0
- package/dist/app/index.js +2 -2
- package/dist/app/validate.d.ts +3 -1
- package/dist/{application-CHPpOssP.js → application-CDSweJb9.js} +144 -142
- package/dist/collection/authors.d.ts +27 -0
- package/dist/collection/index.d.ts +2 -0
- package/dist/collection/index.js +81 -76
- package/dist/config/index.d.ts +42 -0
- package/dist/config/index.js +12 -3
- package/dist/content/Panel.vue.d.ts +1 -1
- package/dist/content/index.js +2 -2
- package/dist/{contributions-9CPT-Z5v.js → contributions-B0x5x5xD.js} +1 -1
- package/dist/form/CommandDialog.vue.d.ts +1 -1
- package/dist/form/DateField.vue.d.ts +1 -1
- package/dist/form/DateTimeField.vue.d.ts +1 -1
- package/dist/form/FileField.vue.d.ts +1 -1
- package/dist/form/FormRow.vue.d.ts +2 -2
- package/dist/form/I18nField.vue.d.ts +2 -2
- package/dist/form/TextField.vue.d.ts +1 -1
- package/dist/form/TextareaField.vue.d.ts +2 -2
- package/dist/form/date/value.d.ts +21 -0
- package/dist/form/index.d.ts +1 -0
- package/dist/form/index.js +745 -715
- package/dist/format/format.d.ts +8 -2
- package/dist/format/index.js +1 -1
- package/dist/format-C_HXlOYQ.js +136 -0
- package/dist/{guards-6fJxfUtk.js → guards-CNJ0ATVC.js} +1 -1
- package/dist/i18n/index.d.ts +14 -2
- package/dist/i18n/index.js +84 -73
- package/dist/i18n/messages.d.ts +10 -1
- package/dist/i18n/runtime.d.ts +3 -1
- package/dist/identity/index.js +3 -3
- package/dist/identity/profile/EmailChangeDialog.vue.d.ts +2 -2
- package/dist/identity/users/list.d.ts +1 -1
- package/dist/incidents/index.js +1 -1
- package/dist/{index-D9_xqF5g.js → index-1HS7O2-e.js} +9 -9
- package/dist/{index-nByFc1eL.js → index-BA2w8uwD.js} +86 -86
- package/dist/{index-Ct7W_gYE.js → index-SLJWm40T.js} +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/modal/DiscardChangesModal.vue.d.ts +2 -2
- package/dist/modal/Modal.vue.d.ts +2 -2
- package/dist/modal/Sheet.vue.d.ts +2 -2
- package/dist/modules/identity/routes.d.ts +1 -1
- package/dist/modules/identity/schemas.d.ts +2 -2
- package/dist/{navigation-DMJ6akat.js → navigation-d-JAPBGA.js} +1 -1
- package/dist/{neighbors-BpypL3Wb.js → neighbors-Dg_LU9ry.js} +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/onboarding/index.js +1 -1
- package/dist/options-mOOX6JSS.js +214 -0
- package/dist/overlay/AlertDialog.vue.d.ts +3 -3
- package/dist/overlay/Menu.vue.d.ts +2 -2
- package/dist/overlay/PhotoViewer.vue.d.ts +2 -2
- package/dist/overlay/Popover.vue.d.ts +2 -2
- package/dist/page/SectionNavigator.vue.d.ts +1 -1
- package/dist/page/SectionPanel.vue.d.ts +1 -1
- package/dist/page/index.js +3 -3
- package/dist/phone/index.js +57 -56
- package/dist/platform/index.d.ts +10 -1
- package/dist/platform/index.js +16 -15
- package/dist/platform/platform.d.ts +4 -2
- package/dist/{platform-ORzRR3Tw.js → platform-DU9QFts8.js} +7 -6
- package/dist/playwright/config.d.ts +33 -0
- package/dist/playwright/index.d.ts +2 -0
- package/dist/playwright/index.js +192 -171
- package/dist/resource/index.js +1 -1
- package/dist/router/index.js +3 -3
- package/dist/{rowLayout-QKfNHsML.js → rowLayout-PIuD7MGo.js} +2 -2
- package/dist/{sections-CSpJN0Z7.js → sections-BpiRLntE.js} +1 -1
- package/dist/{serverMessages-Ce8-MK4e.js → serverMessages-C_KkDvpT.js} +1 -1
- package/dist/shell/index.js +4 -4
- package/dist/state/NextStepPanel.vue.d.ts +63 -0
- package/dist/state/PhaseTiles.vue.d.ts +20 -0
- package/dist/state/PhaseTrack.vue.d.ts +48 -0
- package/dist/state/RequirementList.vue.d.ts +10 -0
- package/dist/state/TodoRow.vue.d.ts +52 -0
- package/dist/state/index.d.ts +9 -0
- package/dist/state/index.js +731 -126
- package/dist/state/phaseStep.d.ts +7 -0
- package/dist/state/phaseTile.d.ts +10 -0
- package/dist/state/requirementItem.d.ts +16 -0
- package/dist/state/todoRow.d.ts +8 -0
- package/dist/{state-QDaxntgR.js → state-z1iPF1DT.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{suggestions-q_v3M7G6.js → suggestions-DeMgs_ki.js} +1 -1
- package/dist/testing/format.d.ts +1 -1
- package/dist/testing/index.js +31 -31
- package/dist/{useCommand-DAMgQ5NE.js → useCommand-DQKvro1n.js} +2 -2
- package/dist/{useGroupSheet-B-Hs4gNO.js → useGroupSheet-CRw3MUmX.js} +3 -3
- package/dist/{usePreferences-BfMXVbSO.js → usePreferences-DB29UTFD.js} +1 -1
- package/dist/{useRecordDialog-QPKFH1Ww.js → useRecordDialog-0azHxxvm.js} +1 -1
- package/dist/{useResourceForm-Oa6bk3NI.js → useResourceForm-zVuWerSn.js} +1 -1
- package/dist/{useTypedEntry-CITij2C_.js → useTypedEntry-BsMV66Yc.js} +46 -45
- package/package.json +1 -1
- package/dist/format-Cp1h0vsC.js +0 -125
- package/dist/options-B48UiYsG.js +0 -368
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useI18n as l } from "vue-i18n";
|
|
2
2
|
import { a as d } from "./error-CD7x0Jrz.js";
|
|
3
|
-
import { u as m } from "./format-
|
|
3
|
+
import { u as m } from "./format-C_HXlOYQ.js";
|
|
4
4
|
import { u as p } from "./describeError-B-NMa--w.js";
|
|
5
5
|
const v = /* @__PURE__ */ new Set(["min", "max", "min_value", "max_value", "between", "in", "not_in"]);
|
|
6
6
|
function _({ t: u, te: s }, { prefixes: c = ["validation_errors"] } = {}) {
|
package/dist/shell/index.js
CHANGED
|
@@ -3,12 +3,12 @@ import { useI18n as K } from "vue-i18n";
|
|
|
3
3
|
import { _ as Ne } from "../Avatar.vue_vue_type_script_setup_true_lang-BPj_fkJR.js";
|
|
4
4
|
import { _ as q, u as st, c as lt } from "../Icon.vue_vue_type_script_lang-BhhsFYwp.js";
|
|
5
5
|
import { _ as rt } from "../Popover.vue_vue_type_script_setup_true_lang-BK8HL_V0.js";
|
|
6
|
-
import { u as qe, S as J } from "../contributions-
|
|
6
|
+
import { u as qe, S as J } from "../contributions-B0x5x5xD.js";
|
|
7
7
|
import { u as it } from "../environment-Dva-SG8D.js";
|
|
8
8
|
import { _ as ct } from "../CountryFlag.vue_vue_type_script_setup_true_lang-Kry_vPPZ.js";
|
|
9
9
|
import { l as Ae } from "../languageName-CItV_SOv.js";
|
|
10
10
|
import { t as Be } from "../toast-CqSDTWRX.js";
|
|
11
|
-
import { u as de, h as Ce } from "../platform-
|
|
11
|
+
import { u as de, h as Ce } from "../platform-DU9QFts8.js";
|
|
12
12
|
import { a as ut, _ as $e, h as Ee } from "../AccountMenuItem.vue_vue_type_script_setup_true_lang-BIYgaihv.js";
|
|
13
13
|
import { _ as dt } from "../Sheet.vue_vue_type_script_setup_true_lang-BG8HUNfs.js";
|
|
14
14
|
import { _ as ft } from "../LeaveGuardRoot.vue_vue_type_script_setup_true_lang-CrGrjrlO.js";
|
|
@@ -17,7 +17,7 @@ import { _ as pt } from "../BottomDock.vue_vue_type_script_setup_true_lang-CjN7x
|
|
|
17
17
|
import { b as je } from "../chrome-kMBKIB1N.js";
|
|
18
18
|
import { p as Ke, A as vt } from "../access-DmAceEo5.js";
|
|
19
19
|
import { RouterLink as Ve, useRoute as ht, useRouter as ge } from "vue-router";
|
|
20
|
-
import { u as bt } from "../navigation-
|
|
20
|
+
import { u as bt } from "../navigation-d-JAPBGA.js";
|
|
21
21
|
import { u as gt } from "../leaveGuard-Cc8yeLxM.js";
|
|
22
22
|
import { u as yt, S as xt } from "../dialogStack-DbO4IiAq.js";
|
|
23
23
|
import { a as oe } from "../mediaQuery-CygcXmFW.js";
|
|
@@ -31,7 +31,7 @@ import { _ as De } from "../Highlight.vue_vue_type_script_setup_true_lang-DZGBmw
|
|
|
31
31
|
import { _ as Lt } from "../SearchInput.vue_vue_type_script_setup_true_lang-w4eAqyZ9.js";
|
|
32
32
|
import { _ as Ct } from "../Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
|
|
33
33
|
import { _ as Et } from "../StatusLine.vue_vue_type_script_setup_true_lang-DsdQmLq6.js";
|
|
34
|
-
import { u as Tt } from "../usePreferences-
|
|
34
|
+
import { u as Tt } from "../usePreferences-DB29UTFD.js";
|
|
35
35
|
import { p as Mt } from "../preferences-hYhrw8Uy.js";
|
|
36
36
|
import { _ as At } from "../BottomDockPortal.vue_vue_type_script_setup_true_lang-DmwR-2SP.js";
|
|
37
37
|
const Dt = ["aria-expanded", "aria-controls"], zt = { class: "flex-1 whitespace-nowrap" }, It = { class: "truncate" }, Ot = ["id"], We = /* @__PURE__ */ O({
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NextStepPanel — a workflow record's one "Što dalje?" box (VEHICLE_WORKFLOW_PLAN W2, decision
|
|
3
|
+
* D2; prototype `UvPreparationADesktop` and the appraisal's `AppraisalResultDesktop`): what the
|
|
4
|
+
* next step does, one primary action, and — when it cannot be taken — why, right under it.
|
|
5
|
+
*
|
|
6
|
+
* <next-step-panel :body="t('…activate_body')" :action="{ label: t('…activate') , disabled }"
|
|
7
|
+
* :reason="blockedReason" :note="t('core.next_step.menu_hint', { action })" @act="open" />
|
|
8
|
+
*
|
|
9
|
+
* - A disabled action always says why (`reason`, D2); it is never hidden.
|
|
10
|
+
* - `handoff` (D3): the step is someone else's. The panel names them instead of offering an
|
|
11
|
+
* action the user may not take; pass no `action` then.
|
|
12
|
+
* - The default slot replaces or follows the action (the appraisal's two buttons).
|
|
13
|
+
* - `note`: a quiet line under a separator ("„Vrati u preuzimanje” je u izborniku ⋯.").
|
|
14
|
+
*
|
|
15
|
+
* The feature owns the wording, the policies and what the action opens.
|
|
16
|
+
*/
|
|
17
|
+
type __VLS_Props = {
|
|
18
|
+
title?: string;
|
|
19
|
+
body?: string;
|
|
20
|
+
action?: {
|
|
21
|
+
label: string;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
processing?: boolean;
|
|
24
|
+
testId?: string;
|
|
25
|
+
};
|
|
26
|
+
reason?: string;
|
|
27
|
+
handoff?: {
|
|
28
|
+
name: string;
|
|
29
|
+
text: string;
|
|
30
|
+
};
|
|
31
|
+
note?: string;
|
|
32
|
+
};
|
|
33
|
+
declare var __VLS_13: {};
|
|
34
|
+
type __VLS_Slots = {} & {
|
|
35
|
+
default?: (props: typeof __VLS_13) => any;
|
|
36
|
+
};
|
|
37
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
|
+
act: () => any;
|
|
39
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
40
|
+
onAct?: (() => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
body: string;
|
|
43
|
+
title: string;
|
|
44
|
+
action: {
|
|
45
|
+
label: string;
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
processing?: boolean;
|
|
48
|
+
testId?: string;
|
|
49
|
+
};
|
|
50
|
+
reason: string;
|
|
51
|
+
handoff: {
|
|
52
|
+
name: string;
|
|
53
|
+
text: string;
|
|
54
|
+
};
|
|
55
|
+
note: string;
|
|
56
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
57
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
58
|
+
export default _default;
|
|
59
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
60
|
+
new (): {
|
|
61
|
+
$slots: S;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { PhaseTile } from "./phaseTile";
|
|
2
|
+
/**
|
|
3
|
+
* PhaseTiles — where a workflow record stands among its phases (VEHICLE_WORKFLOW_PLAN W2,
|
|
4
|
+
* variant A; prototype `UvPreparationADesktop`, `UvPreparationAPhone`).
|
|
5
|
+
*
|
|
6
|
+
* | Width | Presentation |
|
|
7
|
+
* |---|---|
|
|
8
|
+
* | ≥ 64rem | One tile per phase: ✓ or its number, the label, a one-line state under it (a date, what is missing); the current phase tinted |
|
|
9
|
+
* | < 64rem | A card: a segmented bar, "Faza 3 od 6", the current phase and its state; tapping it lists every phase in a sheet |
|
|
10
|
+
*
|
|
11
|
+
* Tiles are status, not navigation: only a tile with `to` is a link (the appraisal a vehicle
|
|
12
|
+
* came from). The steps' look matches SectionNavigator's `steps` variant.
|
|
13
|
+
*/
|
|
14
|
+
type __VLS_Props = {
|
|
15
|
+
/** Accessible name of the list ("Faze vozila"). */
|
|
16
|
+
label: string;
|
|
17
|
+
phases: PhaseTile[];
|
|
18
|
+
};
|
|
19
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { PhaseStep } from "./phaseStep";
|
|
2
|
+
/**
|
|
3
|
+
* PhaseTrack — where a record stands in its process (Emerald Native, plan
|
|
4
|
+
* phase F; prototype `phaseTrack` / `leadTimelineCard`).
|
|
5
|
+
*
|
|
6
|
+
* <phase-track :title="t('…phase')" :steps="steps" :current-step="1" compact-on-mobile />
|
|
7
|
+
*
|
|
8
|
+
* Desktop: a grouped card with a horizontal track — done steps are filled
|
|
9
|
+
* control-on circles with a check, the current step is a ring in the tint (or
|
|
10
|
+
* the phase's status tone), later steps are hollow. `orientation="vertical"` is
|
|
11
|
+
* the timeline card, and what a horizontal track becomes on a phone. Below
|
|
12
|
+
* 1024px with `compactOnMobile`: one summary row
|
|
13
|
+
* ("Korak 2 od 5 · Priprema") with a segmented bar that opens the vertical
|
|
14
|
+
* timeline in a sheet.
|
|
15
|
+
*/
|
|
16
|
+
export type PhaseTone = "tint" | "info" | "warning" | "danger" | "neutral";
|
|
17
|
+
type __VLS_Props = {
|
|
18
|
+
steps: PhaseStep[];
|
|
19
|
+
/** 0-based index of the current step; `steps.length` or more means all done. */
|
|
20
|
+
currentStep: number;
|
|
21
|
+
/** Card header ("Faza vozila"); the step counter sits next to it. */
|
|
22
|
+
title?: string;
|
|
23
|
+
/** Colour of the current step: the tint, or the phase's status tone (lead phases). */
|
|
24
|
+
currentTone?: PhaseTone;
|
|
25
|
+
orientation?: "horizontal" | "vertical";
|
|
26
|
+
/** Below 1024px, a summary row + segmented bar that opens the timeline in a sheet. */
|
|
27
|
+
compactOnMobile?: boolean;
|
|
28
|
+
/** Colours the final step once every step is done (e.g. bought / rejected). */
|
|
29
|
+
outcome?: "success" | "danger" | null;
|
|
30
|
+
};
|
|
31
|
+
declare var __VLS_19: {};
|
|
32
|
+
type __VLS_Slots = {} & {
|
|
33
|
+
'header-trailing'?: (props: typeof __VLS_19) => any;
|
|
34
|
+
};
|
|
35
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
36
|
+
title: string;
|
|
37
|
+
outcome: "success" | "danger" | null;
|
|
38
|
+
currentTone: PhaseTone;
|
|
39
|
+
orientation: "horizontal" | "vertical";
|
|
40
|
+
compactOnMobile: boolean;
|
|
41
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RequirementItem } from "./requirementItem";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
items: RequirementItem[];
|
|
4
|
+
/** Group header ("Nedostaju sljedeći podaci:"). */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** Row text shown when every item is met. */
|
|
7
|
+
summaryWhenMet?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { TodoRowAction, TodoRowState } from "./todoRow";
|
|
2
|
+
import type { RouteLocationRaw } from "vue-router";
|
|
3
|
+
/**
|
|
4
|
+
* TodoRow — one to-do of a workflow record (VEHICLE_WORKFLOW_PLAN W2, variant A; prototype
|
|
5
|
+
* `UvPreparationADesktop`): its state as the leading mark, the label, a one-line state under
|
|
6
|
+
* it, and either a drill-in to the screen that does it (`to`), one trailing action that
|
|
7
|
+
* opens a sheet ("Ispuni", "Preuzmi"), or a control in the `trailing` slot that does it in
|
|
8
|
+
* place (a location picker). Rows go in a `FormGroup`.
|
|
9
|
+
*
|
|
10
|
+
* | state | Mark |
|
|
11
|
+
* |---|---|
|
|
12
|
+
* | `done` | filled check |
|
|
13
|
+
* | `missing` | red cross — or, with `step`, the current step's tinted number; a row that does not block the next phase (`blocking: false`) gets an amber ring and plain text instead |
|
|
14
|
+
* | `waiting` | dashed circle (with `step`, its number): it waits for an earlier row |
|
|
15
|
+
* | `optional` | dashed circle: nothing there, and nothing expects it |
|
|
16
|
+
*/
|
|
17
|
+
type __VLS_Props = {
|
|
18
|
+
state: TodoRowState;
|
|
19
|
+
label: string;
|
|
20
|
+
sub?: string;
|
|
21
|
+
/** The row's step in an ordered group ("Put do kupca · korak 2 od 3"). */
|
|
22
|
+
step?: number;
|
|
23
|
+
to?: RouteLocationRaw;
|
|
24
|
+
/** A trailing action instead of the drill-in; the row itself stays plain. */
|
|
25
|
+
action?: TodoRowAction;
|
|
26
|
+
/** A trailing action beside the drill-in: the row still opens `to`, this does not navigate. */
|
|
27
|
+
print?: TodoRowAction;
|
|
28
|
+
/** A quiet trailing value (a count, an amount). */
|
|
29
|
+
value?: string;
|
|
30
|
+
/** Whether a missing row stands before the next phase; a tracked one is not an error. */
|
|
31
|
+
blocking?: boolean;
|
|
32
|
+
};
|
|
33
|
+
declare var __VLS_14: {};
|
|
34
|
+
type __VLS_Slots = {} & {
|
|
35
|
+
trailing?: (props: typeof __VLS_14) => any;
|
|
36
|
+
};
|
|
37
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
38
|
+
to: RouteLocationRaw;
|
|
39
|
+
sub: string;
|
|
40
|
+
value: string;
|
|
41
|
+
step: number;
|
|
42
|
+
action: TodoRowAction;
|
|
43
|
+
print: TodoRowAction;
|
|
44
|
+
blocking: boolean;
|
|
45
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
package/dist/state/index.d.ts
CHANGED
|
@@ -16,3 +16,12 @@ export { default as BackgroundTaskCapsule } from "./BackgroundTaskCapsule.vue";
|
|
|
16
16
|
export { backgroundTasksKey, createBackgroundTasks, installBackgroundTasks, useBackgroundTasks } from "./backgroundTasks";
|
|
17
17
|
export type { BackgroundTask, BackgroundTasks, BackgroundTaskSpec, BackgroundTaskStatus } from "./backgroundTasks";
|
|
18
18
|
export { useCountUp } from "./useCountUp";
|
|
19
|
+
export { default as NextStepPanel } from "./NextStepPanel.vue";
|
|
20
|
+
export { default as PhaseTiles } from "./PhaseTiles.vue";
|
|
21
|
+
export { default as PhaseTrack, type PhaseTone } from "./PhaseTrack.vue";
|
|
22
|
+
export { default as RequirementList } from "./RequirementList.vue";
|
|
23
|
+
export { default as TodoRow } from "./TodoRow.vue";
|
|
24
|
+
export type { PhaseStep } from "./phaseStep";
|
|
25
|
+
export type { PhaseTile } from "./phaseTile";
|
|
26
|
+
export type { RequirementItem } from "./requirementItem";
|
|
27
|
+
export type { TodoRowAction, TodoRowState } from "./todoRow";
|