@flextudio/scenario 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/LICENSE +202 -0
- package/README.md +260 -0
- package/bin/flex-scenario.mjs +895 -0
- package/commands/flex-spec.md +28 -0
- package/contract-data/README.md +267 -0
- package/contract-data/examples/README.md +147 -0
- package/contract-data/examples/basic/basic-list-detail.json +2521 -0
- package/contract-data/examples/basic/delivery-address-popup.json +2175 -0
- package/contract-data/examples/basic/fixedtop-floating-form.json +1524 -0
- package/contract-data/examples/basic/search-period-popup.json +1524 -0
- package/contract-data/examples/design/booking-wizard-3step.json +1335 -0
- package/contract-data/examples/design/list-detail-form-3step.json +1516 -0
- package/contract-data/examples/design/list-filter-2step.json +1365 -0
- package/contract-data/examples/design/list-filter-detail-3step.json +1570 -0
- package/contract-data/examples/design/result-entry-wizard-4step.json +1861 -0
- package/contract-data/examples/intent/mock-employee-list.json +54 -0
- package/contract-data/examples/intent/script-cart-flow.json +96 -0
- package/contract-data/examples/intent/script-dialog-confirm.json +61 -0
- package/contract-data/runtime/v1/collection/README.md +119 -0
- package/contract-data/runtime/v1/collection/_c.md +205 -0
- package/contract-data/runtime/v1/collection/category.md +165 -0
- package/contract-data/runtime/v1/collection/collection.md +135 -0
- package/contract-data/runtime/v1/collection/lifecycle.md +140 -0
- package/contract-data/runtime/v1/collection/naming.md +174 -0
- package/contract-data/runtime/v1/collection/sector.md +176 -0
- package/contract-data/runtime/v1/collection/status.md +114 -0
- package/contract-data/runtime/v1/intent-system/INTENT.md +552 -0
- package/contract-data/runtime/v1/intent-system/README.md +118 -0
- package/contract-data/runtime/v1/intent-system/intent.schema.json +164 -0
- package/contract-data/runtime/v1/intent-system/kinds/_base.mjs +137 -0
- package/contract-data/runtime/v1/intent-system/kinds/clearCategory.mjs +35 -0
- package/contract-data/runtime/v1/intent-system/kinds/copyStepValues.mjs +100 -0
- package/contract-data/runtime/v1/intent-system/kinds/deleteActive.mjs +45 -0
- package/contract-data/runtime/v1/intent-system/kinds/dialog.mjs +127 -0
- package/contract-data/runtime/v1/intent-system/kinds/reloadGroup.mjs +28 -0
- package/contract-data/runtime/v1/intent-system/kinds/updateActive.mjs +74 -0
- package/contract-data/runtime/v1/intent-system/materialize.mjs +495 -0
- package/contract-data/runtime/v1/script/README.md +37 -0
- package/contract-data/runtime/v1/script/current_step.md +112 -0
- package/contract-data/runtime/v1/script/f_collection.md +142 -0
- package/contract-data/runtime/v1/script/f_content.md +133 -0
- package/contract-data/runtime/v1/script/f_messagebox.md +132 -0
- package/contract-data/runtime/v1/script/scenario-gen-rules.md +264 -0
- package/contract-data/schema/v1/SKELETON-SHELL.md +120 -0
- package/contract-data/schema/v1/bottom-buttons.md +155 -0
- package/contract-data/schema/v1/bottom-buttons.schema.json +134 -0
- package/contract-data/schema/v1/control/_base.schema.json +1296 -0
- package/contract-data/schema/v1/control/button.md +147 -0
- package/contract-data/schema/v1/control/button.schema.json +55 -0
- package/contract-data/schema/v1/control/calendar-navigator.md +143 -0
- package/contract-data/schema/v1/control/calendar-navigator.schema.json +164 -0
- package/contract-data/schema/v1/control/calendar.md +128 -0
- package/contract-data/schema/v1/control/calendar.schema.json +18 -0
- package/contract-data/schema/v1/control/check-box.md +117 -0
- package/contract-data/schema/v1/control/check-box.schema.json +41 -0
- package/contract-data/schema/v1/control/combo.md +293 -0
- package/contract-data/schema/v1/control/combo.schema.json +23 -0
- package/contract-data/schema/v1/control/embed.md +211 -0
- package/contract-data/schema/v1/control/embed.schema.json +30 -0
- package/contract-data/schema/v1/control/image-box.md +237 -0
- package/contract-data/schema/v1/control/image-box.schema.json +49 -0
- package/contract-data/schema/v1/control/input-date.md +175 -0
- package/contract-data/schema/v1/control/input-date.schema.json +27 -0
- package/contract-data/schema/v1/control/input-file.md +192 -0
- package/contract-data/schema/v1/control/input-file.schema.json +139 -0
- package/contract-data/schema/v1/control/input-mask.md +89 -0
- package/contract-data/schema/v1/control/input-mask.schema.json +45 -0
- package/contract-data/schema/v1/control/input-number.md +55 -0
- package/contract-data/schema/v1/control/input-number.schema.json +24 -0
- package/contract-data/schema/v1/control/input-text.md +73 -0
- package/contract-data/schema/v1/control/input-text.schema.json +24 -0
- package/contract-data/schema/v1/control/label.md +127 -0
- package/contract-data/schema/v1/control/label.schema.json +113 -0
- package/contract-data/schema/v1/control/multi-input-box.md +51 -0
- package/contract-data/schema/v1/control/multi-input-box.schema.json +19 -0
- package/contract-data/schema/v1/control/other.schema.json +24 -0
- package/contract-data/schema/v1/control/radio-box.md +150 -0
- package/contract-data/schema/v1/control/radio-box.schema.json +87 -0
- package/contract-data/schema/v1/control/search.md +163 -0
- package/contract-data/schema/v1/control/search.schema.json +23 -0
- package/contract-data/schema/v1/control/tab.md +240 -0
- package/contract-data/schema/v1/control/tab.schema.json +112 -0
- package/contract-data/schema/v1/control/tree.md +278 -0
- package/contract-data/schema/v1/control/tree.schema.json +83 -0
- package/contract-data/schema/v1/control.md +264 -0
- package/contract-data/schema/v1/control.schema.json +30 -0
- package/contract-data/schema/v1/data-objects.md +278 -0
- package/contract-data/schema/v1/data-objects.schema.json +161 -0
- package/contract-data/schema/v1/data-sources.md +215 -0
- package/contract-data/schema/v1/data-sources.schema.json +184 -0
- package/contract-data/schema/v1/design-system/DESIGN.md +282 -0
- package/contract-data/schema/v1/design-system/README.md +235 -0
- package/contract-data/schema/v1/design-system/design.schema.json +496 -0
- package/contract-data/schema/v1/design-system/error-mapping.mjs +132 -0
- package/contract-data/schema/v1/design-system/materialize.mjs +1435 -0
- package/contract-data/schema/v1/design-system/tests/_base.additional-meta.test.mjs +98 -0
- package/contract-data/schema/v1/design-system/tests/_base.materialize.test.mjs +596 -0
- package/contract-data/schema/v1/design-system/tests/checklist.test.mjs +135 -0
- package/contract-data/schema/v1/design-system/tests/design.schema.test.mjs +487 -0
- package/contract-data/schema/v1/design-system/tests/error-mapping.test.mjs +244 -0
- package/contract-data/schema/v1/design-system/tests/materialize.test.mjs +1093 -0
- package/contract-data/schema/v1/design-system/tests/move-step.test.mjs +119 -0
- package/contract-data/schema/v1/design-system/tests/override.integration.test.mjs +116 -0
- package/contract-data/schema/v1/design-system/tokens.json +76 -0
- package/contract-data/schema/v1/events.md +467 -0
- package/contract-data/schema/v1/events.schema.json +272 -0
- package/contract-data/schema/v1/group.md +146 -0
- package/contract-data/schema/v1/group.schema.json +133 -0
- package/contract-data/schema/v1/mockup-data.md +186 -0
- package/contract-data/schema/v1/naming-objects.schema.json +133 -0
- package/contract-data/schema/v1/node.md +32 -0
- package/contract-data/schema/v1/node.schema.json +24 -0
- package/contract-data/schema/v1/patterns/_base.additional-meta.mjs +135 -0
- package/contract-data/schema/v1/patterns/_base.controls.mjs +759 -0
- package/contract-data/schema/v1/patterns/_base.icon.mjs +61 -0
- package/contract-data/schema/v1/patterns/_base.id.mjs +15 -0
- package/contract-data/schema/v1/patterns/_base.materialize.mjs +1181 -0
- package/contract-data/schema/v1/patterns/_base.style.mjs +312 -0
- package/contract-data/schema/v1/patterns/atom/badge.materialize.mjs +68 -0
- package/contract-data/schema/v1/patterns/atom/badge.schema.json +44 -0
- package/contract-data/schema/v1/patterns/atom/button.materialize.mjs +91 -0
- package/contract-data/schema/v1/patterns/atom/button.schema.json +70 -0
- package/contract-data/schema/v1/patterns/atom/checkbox.materialize.mjs +40 -0
- package/contract-data/schema/v1/patterns/atom/checkbox.schema.json +39 -0
- package/contract-data/schema/v1/patterns/atom/segmented-radio.materialize.mjs +67 -0
- package/contract-data/schema/v1/patterns/atom/segmented-radio.schema.json +49 -0
- package/contract-data/schema/v1/patterns/atom/switch.materialize.mjs +58 -0
- package/contract-data/schema/v1/patterns/atom/switch.schema.json +27 -0
- package/contract-data/schema/v1/patterns/molecule/checklist.materialize.mjs +130 -0
- package/contract-data/schema/v1/patterns/molecule/checklist.schema.json +63 -0
- package/contract-data/schema/v1/patterns/molecule/input-action.materialize.mjs +356 -0
- package/contract-data/schema/v1/patterns/molecule/input-action.schema.json +251 -0
- package/contract-data/schema/v1/patterns/molecule/input-button.materialize.mjs +183 -0
- package/contract-data/schema/v1/patterns/molecule/input-button.schema.json +141 -0
- package/contract-data/schema/v1/patterns/molecule/input-pair.materialize.mjs +254 -0
- package/contract-data/schema/v1/patterns/molecule/input-pair.schema.json +210 -0
- package/contract-data/schema/v1/scenario.md +112 -0
- package/contract-data/schema/v1/scenario.schema.json +161 -0
- package/contract-data/schema/v1/service/CustomSystem.md +139 -0
- package/contract-data/schema/v1/service/CustomSystem.schema.json +41 -0
- package/contract-data/schema/v1/service/Firestore.md +125 -0
- package/contract-data/schema/v1/service/Firestore.schema.json +28 -0
- package/contract-data/schema/v1/service/FlexAutoQuery.md +128 -0
- package/contract-data/schema/v1/service/FlexAutoQuery.schema.json +35 -0
- package/contract-data/schema/v1/service/FlexSQL.md +96 -0
- package/contract-data/schema/v1/service/FlexSQL.schema.json +33 -0
- package/contract-data/schema/v1/service/Flextudio API.md +161 -0
- package/contract-data/schema/v1/service/Flextudio API.schema.json +115 -0
- package/contract-data/schema/v1/service/Flextudio.md +87 -0
- package/contract-data/schema/v1/service/Flextudio.schema.json +26 -0
- package/contract-data/schema/v1/service/GoogleSheet.md +71 -0
- package/contract-data/schema/v1/service/GoogleSheet.schema.json +31 -0
- package/contract-data/schema/v1/service/README.md +127 -0
- package/contract-data/schema/v1/service/_base.schema.json +31 -0
- package/contract-data/schema/v1/service/ksystem.md +76 -0
- package/contract-data/schema/v1/service/ksystem.schema.json +36 -0
- package/contract-data/schema/v1/service-binding.md +228 -0
- package/contract-data/schema/v1/service-binding.schema.json +51 -0
- package/contract-data/schema/v1/step.md +546 -0
- package/contract-data/schema/v1/step.schema.json +258 -0
- package/contract-data/schema/v1/style-objects.md +183 -0
- package/contract-data/schema/v1/style-objects.schema.json +155 -0
- package/contract-data/spec/catalog.json +406 -0
- package/contract-data/spec/rules.md +400 -0
- package/node_modules/@flextudio/contract-core/contract.mjs +367 -0
- package/node_modules/@flextudio/contract-core/index.mjs +16 -0
- package/node_modules/@flextudio/contract-core/package.json +21 -0
- package/node_modules/@flextudio/contract-core/paths.mjs +72 -0
- package/node_modules/@flextudio/contract-core/schemas.mjs +474 -0
- package/node_modules/@flextudio/contract-core/validators.mjs +2471 -0
- package/node_modules/ajv/.runkit_example.js +23 -0
- package/node_modules/ajv/LICENSE +22 -0
- package/node_modules/ajv/README.md +207 -0
- package/node_modules/ajv/dist/2019.d.ts +19 -0
- package/node_modules/ajv/dist/2019.js +61 -0
- package/node_modules/ajv/dist/2019.js.map +1 -0
- package/node_modules/ajv/dist/2020.d.ts +19 -0
- package/node_modules/ajv/dist/2020.js +55 -0
- package/node_modules/ajv/dist/2020.js.map +1 -0
- package/node_modules/ajv/dist/ajv.d.ts +18 -0
- package/node_modules/ajv/dist/ajv.js +50 -0
- package/node_modules/ajv/dist/ajv.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
- package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
- package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/node_modules/ajv/dist/compile/errors.js +123 -0
- package/node_modules/ajv/dist/compile/errors.js.map +1 -0
- package/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/node_modules/ajv/dist/compile/index.js +242 -0
- package/node_modules/ajv/dist/compile/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
- package/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/node_modules/ajv/dist/compile/names.js +28 -0
- package/node_modules/ajv/dist/compile/names.js.map +1 -0
- package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
- package/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
- package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
- package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/node_modules/ajv/dist/compile/rules.js +26 -0
- package/node_modules/ajv/dist/compile/rules.js.map +1 -0
- package/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/node_modules/ajv/dist/compile/util.js +178 -0
- package/node_modules/ajv/dist/compile/util.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
- package/node_modules/ajv/dist/core.d.ts +174 -0
- package/node_modules/ajv/dist/core.js +618 -0
- package/node_modules/ajv/dist/core.js.map +1 -0
- package/node_modules/ajv/dist/jtd.d.ts +47 -0
- package/node_modules/ajv/dist/jtd.js +72 -0
- package/node_modules/ajv/dist/jtd.js.map +1 -0
- package/node_modules/ajv/dist/refs/data.json +13 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
- package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
- package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
- package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
- package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
- package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
- package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
- package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
- package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
- package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/node_modules/ajv/dist/standalone/index.js +90 -0
- package/node_modules/ajv/dist/standalone/index.js.map +1 -0
- package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
- package/node_modules/ajv/dist/types/index.d.ts +183 -0
- package/node_modules/ajv/dist/types/index.js +3 -0
- package/node_modules/ajv/dist/types/index.js.map +1 -0
- package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
- package/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
- package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
- package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
- package/node_modules/ajv/lib/2019.ts +81 -0
- package/node_modules/ajv/lib/2020.ts +75 -0
- package/node_modules/ajv/lib/ajv.ts +70 -0
- package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
- package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
- package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/node_modules/ajv/lib/compile/index.ts +324 -0
- package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
- package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/node_modules/ajv/lib/compile/names.ts +27 -0
- package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
- package/node_modules/ajv/lib/compile/resolve.ts +149 -0
- package/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/node_modules/ajv/lib/compile/util.ts +213 -0
- package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
- package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
- package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/node_modules/ajv/lib/core.ts +892 -0
- package/node_modules/ajv/lib/jtd.ts +132 -0
- package/node_modules/ajv/lib/refs/data.json +13 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
- package/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/node_modules/ajv/lib/standalone/index.ts +100 -0
- package/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/node_modules/ajv/lib/types/index.ts +244 -0
- package/node_modules/ajv/lib/types/json-schema.ts +187 -0
- package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
- package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
- package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
- package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
- package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
- package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/node_modules/ajv/package.json +126 -0
- package/node_modules/fast-deep-equal/LICENSE +21 -0
- package/node_modules/fast-deep-equal/README.md +96 -0
- package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/node_modules/fast-deep-equal/index.d.ts +4 -0
- package/node_modules/fast-deep-equal/index.js +46 -0
- package/node_modules/fast-deep-equal/package.json +61 -0
- package/node_modules/fast-deep-equal/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/react.js +53 -0
- package/node_modules/fast-uri/.gitattributes +2 -0
- package/node_modules/fast-uri/.github/dependabot.yml +13 -0
- package/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
- package/node_modules/fast-uri/LICENSE +30 -0
- package/node_modules/fast-uri/README.md +152 -0
- package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
- package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/node_modules/fast-uri/benchmark/package.json +17 -0
- package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/node_modules/fast-uri/eslint.config.js +6 -0
- package/node_modules/fast-uri/index.js +406 -0
- package/node_modules/fast-uri/lib/schemes.js +267 -0
- package/node_modules/fast-uri/lib/utils.js +443 -0
- package/node_modules/fast-uri/package.json +68 -0
- package/node_modules/fast-uri/test/ajv.test.js +43 -0
- package/node_modules/fast-uri/test/equal.test.js +117 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
- package/node_modules/fast-uri/test/parse.test.js +323 -0
- package/node_modules/fast-uri/test/resolve.test.js +87 -0
- package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/node_modules/fast-uri/test/security-normalization.test.js +39 -0
- package/node_modules/fast-uri/test/security.test.js +133 -0
- package/node_modules/fast-uri/test/serialize.test.js +151 -0
- package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
- package/node_modules/fast-uri/test/uri-js.test.js +912 -0
- package/node_modules/fast-uri/test/util.test.js +38 -0
- package/node_modules/fast-uri/tsconfig.json +9 -0
- package/node_modules/fast-uri/types/index.d.ts +60 -0
- package/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
- package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
- package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
- package/node_modules/json-schema-traverse/LICENSE +21 -0
- package/node_modules/json-schema-traverse/README.md +95 -0
- package/node_modules/json-schema-traverse/index.d.ts +40 -0
- package/node_modules/json-schema-traverse/index.js +93 -0
- package/node_modules/json-schema-traverse/package.json +43 -0
- package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
- package/node_modules/require-from-string/index.js +34 -0
- package/node_modules/require-from-string/license +21 -0
- package/node_modules/require-from-string/package.json +28 -0
- package/node_modules/require-from-string/readme.md +56 -0
- package/package.json +51 -0
- package/scripts/api-call.mjs +59 -0
- package/scripts/auth.mjs +262 -0
- package/scripts/build-skill-payload.mjs +338 -0
- package/scripts/cleanup.mjs +166 -0
- package/scripts/install-paths.mjs +146 -0
- package/scripts/postinstall.mjs +218 -0
- package/scripts/postpack.mjs +43 -0
- package/scripts/prepack.mjs +222 -0
- package/scripts/tty-menu.mjs +100 -0
- package/skill/README.md +55 -0
- package/skill/SKILL.md +138 -0
- package/skill/catalog.json +406 -0
- package/skill/design-rules.md +282 -0
- package/skill/design-system.md +235 -0
- package/skill/docs/SKELETON-SHELL.md +120 -0
- package/skill/docs/bottom-buttons.md +155 -0
- package/skill/docs/control/button.md +147 -0
- package/skill/docs/control/calendar-navigator.md +143 -0
- package/skill/docs/control/calendar.md +128 -0
- package/skill/docs/control/check-box.md +117 -0
- package/skill/docs/control/combo.md +293 -0
- package/skill/docs/control/embed.md +211 -0
- package/skill/docs/control/image-box.md +237 -0
- package/skill/docs/control/input-date.md +175 -0
- package/skill/docs/control/input-file.md +192 -0
- package/skill/docs/control/input-mask.md +89 -0
- package/skill/docs/control/input-number.md +55 -0
- package/skill/docs/control/input-text.md +73 -0
- package/skill/docs/control/label.md +127 -0
- package/skill/docs/control/multi-input-box.md +51 -0
- package/skill/docs/control/radio-box.md +150 -0
- package/skill/docs/control/search.md +163 -0
- package/skill/docs/control/tab.md +240 -0
- package/skill/docs/control/tree.md +278 -0
- package/skill/docs/control.md +264 -0
- package/skill/docs/data-objects.md +278 -0
- package/skill/docs/data-sources.md +215 -0
- package/skill/docs/events.md +467 -0
- package/skill/docs/group.md +146 -0
- package/skill/docs/index.json +125 -0
- package/skill/docs/mockup-data.md +186 -0
- package/skill/docs/node.md +32 -0
- package/skill/docs/scenario.md +112 -0
- package/skill/docs/service/CustomSystem.md +139 -0
- package/skill/docs/service/Firestore.md +125 -0
- package/skill/docs/service/FlexAutoQuery.md +128 -0
- package/skill/docs/service/FlexSQL.md +96 -0
- package/skill/docs/service/Flextudio API.md +161 -0
- package/skill/docs/service/Flextudio.md +87 -0
- package/skill/docs/service/GoogleSheet.md +71 -0
- package/skill/docs/service/README.md +127 -0
- package/skill/docs/service/ksystem.md +76 -0
- package/skill/docs/service-binding.md +228 -0
- package/skill/docs/step.md +546 -0
- package/skill/docs/style-objects.md +183 -0
- package/skill/examples/README.md +147 -0
- package/skill/examples/basic/basic-list-detail.json +2521 -0
- package/skill/examples/basic/delivery-address-popup.json +2175 -0
- package/skill/examples/basic/fixedtop-floating-form.json +1524 -0
- package/skill/examples/basic/search-period-popup.json +1524 -0
- package/skill/examples/design/booking-wizard-3step.json +1335 -0
- package/skill/examples/design/list-detail-form-3step.json +1516 -0
- package/skill/examples/design/list-filter-2step.json +1365 -0
- package/skill/examples/design/list-filter-detail-3step.json +1570 -0
- package/skill/examples/design/result-entry-wizard-4step.json +1861 -0
- package/skill/examples/index.json +150 -0
- package/skill/examples/intent/mock-employee-list.json +54 -0
- package/skill/examples/intent/script-cart-flow.json +96 -0
- package/skill/examples/intent/script-dialog-confirm.json +61 -0
- package/skill/intent-rules.md +552 -0
- package/skill/intent-system.md +118 -0
- package/skill/patterns/atom/badge.json +103 -0
- package/skill/patterns/atom/button.json +111 -0
- package/skill/patterns/atom/checkbox.json +70 -0
- package/skill/patterns/atom/segmented-radio.json +92 -0
- package/skill/patterns/atom/switch.json +57 -0
- package/skill/patterns/index.json +471 -0
- package/skill/patterns/molecule/checklist.json +107 -0
- package/skill/patterns/molecule/input-action.json +355 -0
- package/skill/patterns/molecule/input-button.json +212 -0
- package/skill/patterns/molecule/input-pair.json +284 -0
- package/skill/references/build-sequence.md +55 -0
- package/skill/references/patterns-cheatsheet.md +87 -0
- package/skill/references/spec-evolve/README.md +43 -0
- package/skill/references/spec-evolve/conventions.md +92 -0
- package/skill/references/spec-evolve/data-connection.md +102 -0
- package/skill/references/spec-evolve/intake.md +41 -0
- package/skill/references/spec-evolve/key-roles.md +44 -0
- package/skill/references/spec-evolve/lint.md +27 -0
- package/skill/references/spec-evolve/mockup.md +50 -0
- package/skill/references/spec-evolve/query-screens.md +66 -0
- package/skill/references/spec-evolve/routing.md +43 -0
- package/skill/references/spec-evolve/spec-format.md +76 -0
- package/skill/references/spec-evolve/templates/master-detail.spec.md +97 -0
- package/skill/references/spec-evolve/templates/query-screen.spec.md +96 -0
- package/skill/references/spec-evolve/templates/static-prototype.spec.md +54 -0
- package/skill/references/spec-evolve/templates-index.json +26 -0
- package/skill/rules.md +400 -0
- package/skill/schemas/bottom-buttons.schema.json +134 -0
- package/skill/schemas/control/_base.schema.json +1296 -0
- package/skill/schemas/control/button.schema.json +55 -0
- package/skill/schemas/control/calendar-navigator.schema.json +164 -0
- package/skill/schemas/control/calendar.schema.json +18 -0
- package/skill/schemas/control/check-box.schema.json +41 -0
- package/skill/schemas/control/combo.schema.json +23 -0
- package/skill/schemas/control/embed.schema.json +30 -0
- package/skill/schemas/control/image-box.schema.json +49 -0
- package/skill/schemas/control/input-date.schema.json +27 -0
- package/skill/schemas/control/input-file.schema.json +139 -0
- package/skill/schemas/control/input-mask.schema.json +45 -0
- package/skill/schemas/control/input-number.schema.json +24 -0
- package/skill/schemas/control/input-text.schema.json +24 -0
- package/skill/schemas/control/label.schema.json +113 -0
- package/skill/schemas/control/multi-input-box.schema.json +19 -0
- package/skill/schemas/control/other.schema.json +24 -0
- package/skill/schemas/control/radio-box.schema.json +87 -0
- package/skill/schemas/control/search.schema.json +23 -0
- package/skill/schemas/control/tab.schema.json +112 -0
- package/skill/schemas/control/tree.schema.json +83 -0
- package/skill/schemas/control.schema.json +30 -0
- package/skill/schemas/data-objects.schema.json +161 -0
- package/skill/schemas/data-sources.schema.json +184 -0
- package/skill/schemas/design-system/design.schema.json +496 -0
- package/skill/schemas/events.schema.json +272 -0
- package/skill/schemas/group.schema.json +133 -0
- package/skill/schemas/index.json +362 -0
- package/skill/schemas/naming-objects.schema.json +133 -0
- package/skill/schemas/node.schema.json +24 -0
- package/skill/schemas/patterns/atom/badge.schema.json +44 -0
- package/skill/schemas/patterns/atom/button.schema.json +70 -0
- package/skill/schemas/patterns/atom/checkbox.schema.json +39 -0
- package/skill/schemas/patterns/atom/segmented-radio.schema.json +49 -0
- package/skill/schemas/patterns/atom/switch.schema.json +27 -0
- package/skill/schemas/patterns/molecule/checklist.schema.json +63 -0
- package/skill/schemas/patterns/molecule/input-action.schema.json +251 -0
- package/skill/schemas/patterns/molecule/input-button.schema.json +141 -0
- package/skill/schemas/patterns/molecule/input-pair.schema.json +210 -0
- package/skill/schemas/scenario.schema.json +161 -0
- package/skill/schemas/service/CustomSystem.schema.json +41 -0
- package/skill/schemas/service/Firestore.schema.json +28 -0
- package/skill/schemas/service/FlexAutoQuery.schema.json +35 -0
- package/skill/schemas/service/FlexSQL.schema.json +33 -0
- package/skill/schemas/service/Flextudio API.schema.json +115 -0
- package/skill/schemas/service/Flextudio.schema.json +26 -0
- package/skill/schemas/service/GoogleSheet.schema.json +31 -0
- package/skill/schemas/service/_base.schema.json +31 -0
- package/skill/schemas/service/ksystem.schema.json +36 -0
- package/skill/schemas/service-binding.schema.json +51 -0
- package/skill/schemas/step.schema.json +258 -0
- package/skill/schemas/style-objects.schema.json +155 -0
- package/skill/skill-guides/README.md +50 -0
- package/skill/skill-guides/control-options.md +126 -0
- package/skill/skill-guides/events.md +61 -0
- package/skill/skill-guides/failure-discipline.md +95 -0
- package/skill/skill-guides/index.json +40 -0
- package/skill/skill-guides/prompt-interview.md +92 -0
- package/skill/skill-guides/scripts.md +169 -0
- package/skill/skill-guides/step-navigation.md +98 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# Button
|
|
2
|
+
|
|
3
|
+
액션 트리거 전용 컨트롤. **입력 없음**. `ButtonName`(텍스트) + `ImageStyle`(아이콘) 단독 또는 조합으로 표현.
|
|
4
|
+
|
|
5
|
+
## 스키마
|
|
6
|
+
|
|
7
|
+
`control/button.schema.json` — `controlBase` + 분기 키 (`ControlType="Button"`, `ButtonName`, `ButtonValueCKey`, `ButtonValue`, `ImageStyle`, `UseClickEvent`).
|
|
8
|
+
|
|
9
|
+
## 표시 모드
|
|
10
|
+
|
|
11
|
+
| 구성 | 의미 |
|
|
12
|
+
|---|---|
|
|
13
|
+
| `ButtonName` 만 | 텍스트 버튼 |
|
|
14
|
+
| `ImageStyle.UseImage=true` + `ButtonName=""` | 아이콘 전용 버튼 |
|
|
15
|
+
| `ButtonName` + `ImageStyle.UseImage=true` | 아이콘 + 텍스트 |
|
|
16
|
+
|
|
17
|
+
## 예시 — 텍스트 버튼 + 클릭 이벤트
|
|
18
|
+
|
|
19
|
+
```jsonc
|
|
20
|
+
{
|
|
21
|
+
"ControlType": "Button",
|
|
22
|
+
"ControlStyle": "styleRectangleMain",
|
|
23
|
+
"ControlDefaultName": "BtnSubmit",
|
|
24
|
+
"ControlName2": "BtnSubmit",
|
|
25
|
+
"Caption": "BtnSubmit",
|
|
26
|
+
"Id": "f_20",
|
|
27
|
+
"ButtonName": "{{확인}}",
|
|
28
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
29
|
+
"Height": { "SizeValue": "44", "SizeUnit": "px", "MatchText": false },
|
|
30
|
+
"UseClickEvent": true,
|
|
31
|
+
"Events": { "Click": "SUBMIT_E" },
|
|
32
|
+
"isColumnCtrl": false
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## 예시 — 아이콘 전용 버튼
|
|
37
|
+
|
|
38
|
+
```jsonc
|
|
39
|
+
{
|
|
40
|
+
"ControlType": "Button",
|
|
41
|
+
"ControlStyle": "styleCircleBackPoint",
|
|
42
|
+
"ControlDefaultName": "BtnSearch",
|
|
43
|
+
"ControlName2": "BtnSearch",
|
|
44
|
+
"Caption": "BtnSearch",
|
|
45
|
+
"Id": "f_21",
|
|
46
|
+
"ButtonName": "",
|
|
47
|
+
"Width": { "SizeValue": "38", "SizeUnit": "px", "MatchText": false },
|
|
48
|
+
"Height": { "SizeValue": "38", "SizeUnit": "px", "MatchText": false },
|
|
49
|
+
"ImageStyle": {
|
|
50
|
+
"UseImage": true,
|
|
51
|
+
"IsLineIcon": true,
|
|
52
|
+
"Img": "B_000_017",
|
|
53
|
+
"ImageColor": "var(--colorWhite)",
|
|
54
|
+
"ImageSize": "18"
|
|
55
|
+
},
|
|
56
|
+
"BgStyle": { "UseBackground": true, "BgColor": "var(--colorMain)" },
|
|
57
|
+
"BorderStyle": { "Useborder": true, "BorderSize": "0", "SizeSet": "All", "BorderRadius": "6", "RadiusSet": "All" },
|
|
58
|
+
"UseClickEvent": true,
|
|
59
|
+
"Events": { "Click": "STEP1_Query_E" },
|
|
60
|
+
"UseFixedSize": true,
|
|
61
|
+
"isColumnCtrl": false
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## 예시 — 값 저장 버튼 (`ButtonValueCKey` + `ButtonValue`)
|
|
66
|
+
|
|
67
|
+
```jsonc
|
|
68
|
+
{
|
|
69
|
+
"ControlType": "Button",
|
|
70
|
+
"ControlDefaultName": "BtnAgreeY",
|
|
71
|
+
"ControlName2": "BtnAgreeY",
|
|
72
|
+
"Caption": "BtnAgreeY",
|
|
73
|
+
"Id": "f_22",
|
|
74
|
+
"ButtonName": "{{동의}}",
|
|
75
|
+
"ButtonValueCKey": "AgreeFlag",
|
|
76
|
+
"ButtonValue": "Y",
|
|
77
|
+
"UseClickEvent": false,
|
|
78
|
+
"isColumnCtrl": false
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
→ 클릭 시 카테고리의 `AgreeFlag` ckey 에 `"Y"` 가 저장. `UseClickEvent` 없이도 동작 (이벤트는 추가 핸들러 실행용).
|
|
83
|
+
|
|
84
|
+
## `ButtonName` 바인딩 표현식
|
|
85
|
+
|
|
86
|
+
Label `labeltext` 와 동일 규약. `Load.sector` 사용 불가.
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
"ButtonName": "{=FieldName}" // 직접 바인딩
|
|
90
|
+
"ButtonName": "{=$FieldName}" // 천단위 콤마 자동
|
|
91
|
+
"ButtonName": "{{삭제}} ({=Count})" // i18n + 바인딩
|
|
92
|
+
"ButtonName": "{% return f.numFormat('{=Price}').format() %}" // JS 실행
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## 데이터 바인딩 — `ButtonValueCKey` + `ButtonValue`
|
|
96
|
+
|
|
97
|
+
| 키 | 타입 | 의미 |
|
|
98
|
+
|---|---|---|
|
|
99
|
+
| `ButtonValueCKey` | string | 클릭 시 값을 저장할 **카테고리 필드명** (ckey). 빈 문자열=저장 안 함. |
|
|
100
|
+
| `ButtonValue` | string | 클릭 시 `ButtonValueCKey` 에 저장될 **정적 값**. 표현식/바인딩 미지원. |
|
|
101
|
+
|
|
102
|
+
**동작**: 사용자가 버튼을 누르면 카테고리의 `ButtonValueCKey` 필드값이 `ButtonValue` 로 set 된다. 이후 다른 컨트롤이 같은 ckey 를 읽으면 새 값을 받는다.
|
|
103
|
+
|
|
104
|
+
**대표 패턴** — Y/N 토글 한 쌍:
|
|
105
|
+
```jsonc
|
|
106
|
+
{ "ButtonName": "{{동의}}", "ButtonValueCKey": "AgreeFlag", "ButtonValue": "Y" }
|
|
107
|
+
{ "ButtonName": "{{비동의}}", "ButtonValueCKey": "AgreeFlag", "ButtonValue": "N" }
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**전제조건**: 상위 Group 계층 어딘가에 `UseDataConnection: true` + `DataConnection` 필요 (다른 ckey 바인딩 컨트롤과 동일 규칙).
|
|
111
|
+
|
|
112
|
+
## 클릭 이벤트
|
|
113
|
+
|
|
114
|
+
| 모드 | 키 | 비고 |
|
|
115
|
+
|---|---|---|
|
|
116
|
+
| 이벤트 | `UseClickEvent: true` + `Events: { Click: "EVENT_NAME" }` | 핸들러 호출 |
|
|
117
|
+
| 값 저장 | `ButtonValueCKey` + `ButtonValue` | 이벤트 핸들러 없이도 작동 |
|
|
118
|
+
|
|
119
|
+
`Events` 는 `_base.schema.json#/$defs/buttonEvents` 가 적용 — `Click` 핸들러만.
|
|
120
|
+
|
|
121
|
+
## Caption 규칙
|
|
122
|
+
|
|
123
|
+
Button 의 `Caption` 은 **내부명** (=`ControlDefaultName`). 화면 표시 텍스트는 항상 `ButtonName` 이 결정.
|
|
124
|
+
|
|
125
|
+
## BottomButton 과의 차이
|
|
126
|
+
|
|
127
|
+
`Step.BottomButtons[]` 의 항목과는 **별개 컨트롤**.
|
|
128
|
+
|
|
129
|
+
| 위치 | 키 | 비고 |
|
|
130
|
+
|---|---|---|
|
|
131
|
+
| `Step.Contents[…].Controls[…]` | `ControlType: "Button"` | 본 스키마 적용 — Step 이동 미지원 |
|
|
132
|
+
| `Step.BottomButtons[…]` | `ButtonName` 등 (ControlType 없음) | [bottom-buttons.schema.json](../bottom-buttons.schema.json) 적용 — Step 이동 지원 |
|
|
133
|
+
|
|
134
|
+
같은 `ButtonName` 키를 쓰지만 컨텍스트와 스키마가 다르므로 혼동 금지. **Step 이동 버튼은 BottomButton 으로**.
|
|
135
|
+
|
|
136
|
+
## ControlKey 상태 (제한)
|
|
137
|
+
|
|
138
|
+
Button 은 일부 상태가 미지원 — [control.md §ControlKey 상태](../control.md#controlkey-상태-제한) 표 참조. **`Required` 미지원** (입력 컨트롤 아님 — property-data.js `button()` 의 `status.hideItem(CONTROL_KEY.REQUIRED)`). `Hide` / `Disabled` / `ReadOnly` 는 지원.
|
|
139
|
+
|
|
140
|
+
## 함정
|
|
141
|
+
|
|
142
|
+
- `ButtonName` 안에서 `Load.sector` 사용 불가 — `{=Field}` 만.
|
|
143
|
+
- 아이콘 전용 버튼은 `ButtonName: ""` + `ImageStyle.UseImage: true`. `ButtonName` 키 자체를 빼지 말 것 (운영 메타 컨벤션).
|
|
144
|
+
- `UseClickEvent=true` 이면 `Events.Click` 필수.
|
|
145
|
+
- `ButtonValueCKey` 사용 시 상위 Group 계층 어딘가에 `UseDataConnection: true` + `DataConnection` 필요.
|
|
146
|
+
- `ButtonValue` 는 **정적 문자열만** — `{=Field}` / `{{i18n}}` 같은 표현식 미지원.
|
|
147
|
+
- BottomButton 과 스키마/위치가 다름. `Step.BottomButtons[]` 는 별도 스키마.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://flextudio.local/meta-contract/v1/control/button.schema.json",
|
|
4
|
+
"title": "Button",
|
|
5
|
+
"description": "액션 트리거 전용 컨트롤. 입력 없음. ButtonName(텍스트) + ImageStyle(아이콘) 단독 또는 조합. UseClickEvent 로 Events.Click 핸들러만 지원. ButtonValueCKey + ButtonValue 로 클릭 시 카테고리 필드에 값 저장 가능. Step 이동 미지원 — Label.UseMove 또는 BottomButton 사용.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": ["Id", "ControlType"],
|
|
9
|
+
"allOf": [
|
|
10
|
+
{ "$ref": "_base.schema.json#/$defs/controlBase" },
|
|
11
|
+
{
|
|
12
|
+
"properties": {
|
|
13
|
+
"ControlType": { "const": "Button" },
|
|
14
|
+
"ButtonName": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "버튼에 표시할 텍스트. 빈 문자열 가능 (아이콘 전용 버튼). `{{i18n}}` / `{=Field}` / `{=$Field}`(콤마) / `{% JS %}` 사용 가능. Load.sector 사용 불가."
|
|
17
|
+
},
|
|
18
|
+
"ButtonValueCKey": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"default": "",
|
|
21
|
+
"description": "클릭 시 값을 저장할 카테고리 필드명 (ckey 바인딩). 빈 문자열=저장 안 함. ButtonValue 와 함께 사용 — 클릭하면 이 ckey 에 ButtonValue 가 set. 사용 시 상위 Group 계층에 UseDataConnection + DataConnection 필요 (다른 ckey 바인딩 컨트롤과 동일)."
|
|
22
|
+
},
|
|
23
|
+
"ButtonValue": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"default": "",
|
|
26
|
+
"description": "클릭 시 ButtonValueCKey 에 저장할 값. 문자열. ButtonValueCKey 가 비어 있으면 의미 없음. 정적 값만 — 표현식/바인딩 미지원."
|
|
27
|
+
},
|
|
28
|
+
"ImageStyle": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": true,
|
|
31
|
+
"description": "아이콘 버튼용 이미지 스타일. ButtonName='' 와 조합 시 아이콘 전용, ButtonName 과 함께 두면 아이콘+텍스트 버튼."
|
|
32
|
+
},
|
|
33
|
+
"UseClickEvent": {
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"default": false,
|
|
36
|
+
"description": "클릭 이벤트 사용. true 일 때 Events.Click 핸들러 명 필수."
|
|
37
|
+
},
|
|
38
|
+
"Events": { "$ref": "_base.schema.json#/$defs/buttonEvents" }
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"$comment": "UseClickEvent=true 면 Events.Click 필요.",
|
|
43
|
+
"if": {
|
|
44
|
+
"properties": { "UseClickEvent": { "const": true } },
|
|
45
|
+
"required": ["UseClickEvent"]
|
|
46
|
+
},
|
|
47
|
+
"then": {
|
|
48
|
+
"required": ["Events"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"Events": { "required": ["Click"] }
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# CalendarNavigator
|
|
2
|
+
|
|
3
|
+
> 공식 가이드: <https://docs.flextudio.com/flextudio/scenario/component/control/calendarnavigator>
|
|
4
|
+
|
|
5
|
+
캘린더 네비게이터 — 월·주·일 단위로 날짜 범위를 이동하면서 선택한 날짜를 컬렉션에 바인딩한다. 사용 형태는 두 가지.
|
|
6
|
+
|
|
7
|
+
| 형태 | UseTimeTable | 위치 |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| **TimeTable 내부 자식** | `true` | `TimeTable.CalendarNavigator.Controls[*]` |
|
|
10
|
+
| **독립 컨트롤** | `false` | Group 직접 자식 (래퍼 그룹은 `UseDataConnection: true` 필수) |
|
|
11
|
+
|
|
12
|
+
## 스키마
|
|
13
|
+
|
|
14
|
+
`control/calendar-navigator.schema.json` — `controlBase` 위에 분기 키.
|
|
15
|
+
|
|
16
|
+
## 핵심 속성
|
|
17
|
+
|
|
18
|
+
| 속성 | 값 | 설명 |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| `ControlStyle` | `""` / `"None"` / `"StyleBack"` / `"StyleHalf"` / `"StyleAlignLeft"` | 공식 4종 스타일. |
|
|
21
|
+
| `NavigatorType` | `"Month"` / `"WeekPeriod"` / `"Day"` | **공식 3종.** 월/주/일 단위. (`Custom` 은 공식 가이드 미표기 — **AI 생성 사용 금지.** 운영 메타에 보일 수는 있으나 신규 생성 시 enum 차단.) |
|
|
22
|
+
| `UseDaySelector` | `true` / `false` | 주간 날짜 선택 바(스와이프 지원). **boolean strict** — 문자열 `"true"`/`"false"` 금지. 값에 따라 바인딩 키가 갈림: `true` → `SingleDate.Ckeys`, `false` → `StartDate.Ckeys` + `EndDate.Ckeys`. |
|
|
23
|
+
| `UseTimeTable` | `true` / `false` | 독립 사용 시 `false`. |
|
|
24
|
+
| `NavigatorDateFormat` | 공식 10종 (아래) | 헤더 날짜 표시 포맷. |
|
|
25
|
+
| `SingleDate.Ckeys` | 배열 | Day 모드 또는 `UseDaySelector=true` 의 단일 날짜 바인딩. |
|
|
26
|
+
| `StartDate.Ckeys` / `EndDate.Ckeys` | 배열 | WeekPeriod / Month 모드의 기간 바인딩 (스키마 if/then 으로 두 키 동시 필수). |
|
|
27
|
+
| `DefaultValue` | string | 초기 날짜값 (미지정 시 오늘). |
|
|
28
|
+
|
|
29
|
+
### NavigatorDateFormat — 공식 10종
|
|
30
|
+
|
|
31
|
+
| 값 | 분류 | 비고 |
|
|
32
|
+
|---|---|---|
|
|
33
|
+
| `YYYY.MM.DD` / `YYYY/MM/DD` / `YYYY-MM-DD` / `YYYY년MM월DD일` | 일 단위 | Day / WeekPeriod / Month 모두 가능. |
|
|
34
|
+
| `YYYY-MM-W` | 주 단위 | **`NavigatorType: "WeekPeriod"` 전용** (스키마 if/then 차단). |
|
|
35
|
+
| `YYYY.MM` / `YYYY/MM` / `YYYY-MM` / `YYYY년MM월` | 월 단위 | 보통 Month 모드와 짝. |
|
|
36
|
+
| `YYYY년` | 년 단위 | |
|
|
37
|
+
| `""` | — | 런타임 기본 포맷. |
|
|
38
|
+
|
|
39
|
+
## 빈 객체라도 필수인 속성 (런타임 규약)
|
|
40
|
+
|
|
41
|
+
- `Events`
|
|
42
|
+
- `DayArea`
|
|
43
|
+
- `DaySetting`
|
|
44
|
+
- `SelectDay`
|
|
45
|
+
- `UseEvents`
|
|
46
|
+
|
|
47
|
+
스키마에서 `required` 로 강제. 누락 시 런타임 에러.
|
|
48
|
+
|
|
49
|
+
## 이벤트
|
|
50
|
+
|
|
51
|
+
`Events.CalendarNaviEventsOrder` 로 등록. 등록한 이벤트명에 동명 핸들러 필수 (if/then).
|
|
52
|
+
|
|
53
|
+
| 이벤트 | 발생 시점 |
|
|
54
|
+
|---|---|
|
|
55
|
+
| `ClickPrevNextBtn` | 이전/다음 버튼 클릭. |
|
|
56
|
+
| `OnChangeSwipe` | DaySelector 스와이프로 주 변경. |
|
|
57
|
+
| `SelectDay` | DaySelector 에서 날짜 클릭. |
|
|
58
|
+
|
|
59
|
+
## 예시 — 독립 컨트롤 (WeekPeriod)
|
|
60
|
+
|
|
61
|
+
```jsonc
|
|
62
|
+
{
|
|
63
|
+
"ContentsName": "calNavWrap",
|
|
64
|
+
"ContentsType": "Group",
|
|
65
|
+
"UseDataConnection": true,
|
|
66
|
+
"DataConnection": {
|
|
67
|
+
"TargetType": "category",
|
|
68
|
+
"DataUsage": "default",
|
|
69
|
+
"CategoryName": "CtgCalNav",
|
|
70
|
+
"UseNewSector": true,
|
|
71
|
+
"OnlyIfNoSector": true
|
|
72
|
+
},
|
|
73
|
+
"Id": "f_70",
|
|
74
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
75
|
+
"Height": { "MatchText": true, "SizeValue": "" },
|
|
76
|
+
"Contents": [{
|
|
77
|
+
"ControlType": "CalendarNavigator",
|
|
78
|
+
"ControlDefaultName": "CalNav1",
|
|
79
|
+
"ControlName2": "CalNav1",
|
|
80
|
+
"Caption": "CalNav1",
|
|
81
|
+
"Id": "f_71",
|
|
82
|
+
"NavigatorType": "WeekPeriod",
|
|
83
|
+
"UseDaySelector": true,
|
|
84
|
+
"UseTimeTable": false,
|
|
85
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
86
|
+
"Height": { "MatchText": true, "SizeValue": "" },
|
|
87
|
+
"SingleDate": { "Ckeys": ["SelectDate"] },
|
|
88
|
+
"StartDate": { "Ckeys": ["StartDate"] },
|
|
89
|
+
"EndDate": { "Ckeys": ["EndDate"] },
|
|
90
|
+
"Events": {
|
|
91
|
+
"CalendarNaviEventsOrder": ["ClickPrevNextBtn", "SelectDay"],
|
|
92
|
+
"ClickPrevNextBtn": "NavChange_E",
|
|
93
|
+
"SelectDay": "DaySelect_E"
|
|
94
|
+
},
|
|
95
|
+
"DayArea": {},
|
|
96
|
+
"DaySetting": {},
|
|
97
|
+
"SelectDay": {},
|
|
98
|
+
"UseEvents": true,
|
|
99
|
+
"isColumnCtrl": false
|
|
100
|
+
}]
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## 예시 — TimeTable 내부 자식
|
|
105
|
+
|
|
106
|
+
```jsonc
|
|
107
|
+
{
|
|
108
|
+
"ControlType": "TimeTable",
|
|
109
|
+
"UseCalendarNavigator": true,
|
|
110
|
+
"CalendarNavigator": {
|
|
111
|
+
"Controls": [{
|
|
112
|
+
"ControlType": "CalendarNavigator",
|
|
113
|
+
"UseDaySelector": true,
|
|
114
|
+
"UseTimeTable": true,
|
|
115
|
+
"NavigatorType": "Month",
|
|
116
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
117
|
+
"Height": { "MatchText": true, "SizeValue": "" },
|
|
118
|
+
"Events": { "CalendarNaviEventsOrder": [] },
|
|
119
|
+
"DayArea": {},
|
|
120
|
+
"DaySetting": {},
|
|
121
|
+
"SelectDay": {},
|
|
122
|
+
"SingleDate": { "Ckeys": ["SelectDate"] },
|
|
123
|
+
"UseEvents": false,
|
|
124
|
+
"Id": "f_72"
|
|
125
|
+
}]
|
|
126
|
+
},
|
|
127
|
+
"...": "..."
|
|
128
|
+
}
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## 데이터 바인딩
|
|
132
|
+
|
|
133
|
+
- 독립 사용 시 **반드시 래퍼 Group 에 `UseDataConnection: true`** + `DataConnection.CategoryName` 설정. `SingleDate/StartDate/EndDate.Ckeys` 가 그 카테고리의 섹터에 자동 저장.
|
|
134
|
+
- TimeTable 내부 사용 시 TimeTable 의 래퍼 Group 카테고리를 공유 (별도 카테고리 불필요).
|
|
135
|
+
|
|
136
|
+
## 함정
|
|
137
|
+
|
|
138
|
+
- 빈 객체라도 `Events`, `DayArea`, `DaySetting`, `SelectDay`, `UseEvents` 누락 시 런타임 에러.
|
|
139
|
+
- 독립 사용 시 `UseTimeTable: false` 명시 — 누락 시 TimeTable 컨텍스트로 오인.
|
|
140
|
+
- WeekPeriod / Month 모드에서 `StartDate.Ckeys` 또는 `EndDate.Ckeys` 누락 → 기간 필터 동작 안 함 (스키마 if/then 으로 차단).
|
|
141
|
+
- 날짜 변경 핸들러(`SelectDay`/`ClickPrevNextBtn`)에서 리스트 reload 시 래퍼 Group Id 사용 — 컨트롤 자체 reload 불가.
|
|
142
|
+
- **`NavigatorType: "Custom"` 사용 금지** — 공식 가이드 미표기. AI 생성 메타에는 절대 등장 금지 (스키마 enum 으로 차단).
|
|
143
|
+
- `NavigatorDateFormat: "YYYY-MM-W"` 는 반드시 `NavigatorType: "WeekPeriod"` 와 짝 (스키마 if/then 으로 차단).
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://flextudio.local/meta-contract/v1/control/calendar-navigator.schema.json",
|
|
4
|
+
"title": "CalendarNavigator",
|
|
5
|
+
"description": "캘린더 네비게이터. 월/주/일 단위로 날짜 범위를 이동·선택. (1) TimeTable 내부 자식 (UseTimeTable=true), (2) 독립 컨트롤 (UseTimeTable=false) 두 가지 사용 형태. 독립 사용 시 래퍼 Group 에 UseDataConnection:true 필수. Events / DayArea / DaySetting / SelectDay / UseEvents 는 빈 객체/기본값이라도 반드시 존재해야 한다 (런타임 규약).",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": ["Id", "ControlType"],
|
|
9
|
+
"allOf": [
|
|
10
|
+
{ "$ref": "_base.schema.json#/$defs/controlBase" },
|
|
11
|
+
{
|
|
12
|
+
"properties": {
|
|
13
|
+
"ControlType": { "const": "CalendarNavigator" },
|
|
14
|
+
"ControlStyle": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"enum": ["", "None", "StyleBack", "StyleHalf", "StyleAlignLeft"],
|
|
17
|
+
"description": "공식 4종. ''/'None'=기본 / 'StyleBack'=뒤 배경형 / 'StyleHalf'=절반 표시 / 'StyleAlignLeft'=좌측 정렬."
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
"NavigatorType": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": ["Month", "WeekPeriod", "Day"],
|
|
23
|
+
"description": "공식 3종 — Month=월 단위 / WeekPeriod=주 단위 / Day=일 단위. (운영 메타에 'Custom' 이 있을 수 있으나 AI 생성에서는 사용 금지 — 공식 가이드 미표기.)"
|
|
24
|
+
},
|
|
25
|
+
"NavigatorDateFormat": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"enum": [
|
|
28
|
+
"",
|
|
29
|
+
"YYYY.MM.DD", "YYYY/MM/DD", "YYYY-MM-DD", "YYYY년MM월DD일",
|
|
30
|
+
"YYYY-MM-W",
|
|
31
|
+
"YYYY.MM", "YYYY/MM", "YYYY-MM", "YYYY년MM월",
|
|
32
|
+
"YYYY년"
|
|
33
|
+
],
|
|
34
|
+
"description": "헤더 날짜 표시 포맷 (공식 10종). 'YYYY-MM-W' 는 NavigatorType='WeekPeriod' (주 단위) 전용. ''=런타임 기본."
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
"UseDaySelector": {
|
|
38
|
+
"type": "boolean",
|
|
39
|
+
"default": false,
|
|
40
|
+
"description": "true=주간 날짜 선택 바 표시 (스와이프 지원). **boolean strict** — true/false 만. 문자열 \"true\"/\"false\" 금지 (JS truthy 함정). 이 값에 따라 바인딩 키가 갈림 — true → SingleDate.Ckeys, false → StartDate.Ckeys + EndDate.Ckeys (studio-panel-cat.js 진실원본)."
|
|
41
|
+
},
|
|
42
|
+
"UseTimeTable": {
|
|
43
|
+
"type": "boolean",
|
|
44
|
+
"default": false,
|
|
45
|
+
"description": "true=TimeTable 내부에 종속. false=독립 컨트롤로 사용."
|
|
46
|
+
},
|
|
47
|
+
"UseDataConnection": { "type": "boolean", "default": false },
|
|
48
|
+
"UseDaySetting": { "type": "boolean", "default": false },
|
|
49
|
+
"UseDayArea": { "type": "boolean", "default": false },
|
|
50
|
+
|
|
51
|
+
"SingleDate": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": true,
|
|
54
|
+
"description": "Day 모드 또는 UseDaySelector=true 일 때 단일 날짜 바인딩.",
|
|
55
|
+
"properties": {
|
|
56
|
+
"Ckeys": { "$ref": "../naming-objects.schema.json#/$defs/ckeysArray" }
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"StartDate": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"additionalProperties": true,
|
|
62
|
+
"description": "WeekPeriod / Month 모드에서 기간 시작일 바인딩.",
|
|
63
|
+
"properties": {
|
|
64
|
+
"Ckeys": { "$ref": "../naming-objects.schema.json#/$defs/ckeysArray" }
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"EndDate": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"additionalProperties": true,
|
|
70
|
+
"description": "WeekPeriod / Month 모드에서 기간 종료일 바인딩.",
|
|
71
|
+
"properties": {
|
|
72
|
+
"Ckeys": { "$ref": "../naming-objects.schema.json#/$defs/ckeysArray" }
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
"DayArea": { "type": "object", "default": {}, "additionalProperties": true, "description": "필수(빈 객체 허용). 일자별 영역 표시 정의." },
|
|
77
|
+
"DaySetting": { "type": "object", "default": {}, "additionalProperties": true, "description": "필수(빈 객체 허용). 일자별 부가 설정." },
|
|
78
|
+
"SelectDay": { "type": "object", "default": {}, "additionalProperties": true, "description": "필수(빈 객체 허용). 선택 일자 디자인." },
|
|
79
|
+
|
|
80
|
+
"DayDsKey": { "type": "string", "description": "DayArea/DaySetting 의 DataSource 키 (선택)." },
|
|
81
|
+
"TypeDsKey": { "type": "string", "description": "Day 타입 분류용 DataSource 키 (선택)." },
|
|
82
|
+
|
|
83
|
+
"UseEvents": { "type": "boolean", "default": false, "description": "필수(false 라도 키 존재). Events 핸들러 사용 여부." },
|
|
84
|
+
"Events": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"default": {},
|
|
87
|
+
"additionalProperties": true,
|
|
88
|
+
"description": "필수(빈 객체라도). CalendarNaviEventsOrder 로 등록.",
|
|
89
|
+
"properties": {
|
|
90
|
+
"CalendarNaviEventsOrder": {
|
|
91
|
+
"type": "array",
|
|
92
|
+
"items": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"enum": ["ClickPrevNextBtn", "OnChangeSwipe", "SelectDay"]
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"ClickPrevNextBtn": { "type": "string", "description": "이전/다음 버튼 클릭." },
|
|
98
|
+
"OnChangeSwipe": { "type": "string", "description": "DaySelector 스와이프로 주 변경." },
|
|
99
|
+
"SelectDay": { "type": "string", "description": "DaySelector 에서 날짜 클릭." }
|
|
100
|
+
},
|
|
101
|
+
"allOf": [
|
|
102
|
+
{ "if": { "properties": { "CalendarNaviEventsOrder": { "type": "array", "contains": { "const": "ClickPrevNextBtn" } } }, "required": ["CalendarNaviEventsOrder"] }, "then": { "required": ["ClickPrevNextBtn"] } },
|
|
103
|
+
{ "if": { "properties": { "CalendarNaviEventsOrder": { "type": "array", "contains": { "const": "OnChangeSwipe" } } }, "required": ["CalendarNaviEventsOrder"] }, "then": { "required": ["OnChangeSwipe"] } },
|
|
104
|
+
{ "if": { "properties": { "CalendarNaviEventsOrder": { "type": "array", "contains": { "const": "SelectDay" } } }, "required": ["CalendarNaviEventsOrder"] }, "then": { "required": ["SelectDay"] } }
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"required": ["DayArea", "DaySetting", "SelectDay", "Events", "UseEvents"]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"$comment": "NavigatorType='Day' 또는 UseDaySelector=true → SingleDate 권장(검증은 후검증). NavigatorType='WeekPeriod'|'Month' → StartDate + EndDate 필수, 각각의 Ckeys (1개 이상) 도 필수. 런타임이 dlgJson.StartDate.Ckeys / dlgJson.EndDate.Ckeys 로 직접 접근하므로 빈 객체 {} 는 TypeError.",
|
|
112
|
+
"if": {
|
|
113
|
+
"properties": { "NavigatorType": { "enum": ["WeekPeriod", "Month"] } },
|
|
114
|
+
"required": ["NavigatorType"]
|
|
115
|
+
},
|
|
116
|
+
"then": {
|
|
117
|
+
"required": ["StartDate", "EndDate"],
|
|
118
|
+
"properties": {
|
|
119
|
+
"StartDate": {
|
|
120
|
+
"required": ["Ckeys"],
|
|
121
|
+
"properties": {
|
|
122
|
+
"Ckeys": { "minItems": 1 }
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"EndDate": {
|
|
126
|
+
"required": ["Ckeys"],
|
|
127
|
+
"properties": {
|
|
128
|
+
"Ckeys": { "minItems": 1 }
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"$comment": "NavigatorType='Day' 면 SingleDate + SingleDate.Ckeys (1개 이상) 필수. 런타임이 dlgJson.SingleDate.Ckeys 로 직접 접근.",
|
|
136
|
+
"if": {
|
|
137
|
+
"properties": { "NavigatorType": { "const": "Day" } },
|
|
138
|
+
"required": ["NavigatorType"]
|
|
139
|
+
},
|
|
140
|
+
"then": {
|
|
141
|
+
"required": ["SingleDate"],
|
|
142
|
+
"properties": {
|
|
143
|
+
"SingleDate": {
|
|
144
|
+
"required": ["Ckeys"],
|
|
145
|
+
"properties": {
|
|
146
|
+
"Ckeys": { "minItems": 1 }
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"$comment": "NavigatorDateFormat='YYYY-MM-W' 는 NavigatorType='WeekPeriod' 전용 (공식 가이드).",
|
|
154
|
+
"if": {
|
|
155
|
+
"properties": { "NavigatorDateFormat": { "const": "YYYY-MM-W" } },
|
|
156
|
+
"required": ["NavigatorDateFormat"]
|
|
157
|
+
},
|
|
158
|
+
"then": {
|
|
159
|
+
"properties": { "NavigatorType": { "const": "WeekPeriod" } },
|
|
160
|
+
"required": ["NavigatorType"]
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Calendar
|
|
2
|
+
|
|
3
|
+
> 공식 가이드(DatePicker): <https://docs.flextudio.com/flextudio/scenario/component/control/datepicker>
|
|
4
|
+
|
|
5
|
+
캘린더 컨트롤. 두 가지 사용 형태가 있고, **둘 다 v1 명시 분기**다.
|
|
6
|
+
|
|
7
|
+
| 형태 | 위치 | 비고 |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| **InputDate 자식** | `InputDate.Dialog.Layouts[*].Controls[*]` | 다이얼로그 picker. `CalendarType` / `SelectType` 은 InputDate 본체가 아니라 자식 Calendar 에 위치. |
|
|
10
|
+
| **단독** | Group 직접 자식 (`Step.Contents[…].Controls[…]`) | 인라인 캘린더. Group 안에 Control 로 그대로 배치 — OtherControl 이 아닌 `control/calendar.schema.json` 분기 사용. |
|
|
11
|
+
|
|
12
|
+
본체 정의는 `_base.schema.json#/$defs/calendarControl` 에 있고, 단독·자식 양쪽이 동일 분기를 공유한다 — InputDate 의 자식으로는 `dialogLayout` 의 if/then 으로, 단독으로는 `control/calendar.schema.json` 으로 적용.
|
|
13
|
+
|
|
14
|
+
## 스키마
|
|
15
|
+
|
|
16
|
+
`control/calendar.schema.json` — `controlBase` + `calendarControl` 의 합. `ControlType="Calendar"` const.
|
|
17
|
+
|
|
18
|
+
## CalendarType / SelectType 매트릭스
|
|
19
|
+
|
|
20
|
+
| CalendarType | DateFormat 짝 | SelectType | Ckeys 위치 |
|
|
21
|
+
|---|---|---|---|
|
|
22
|
+
| `dayCalendar` | `""` / `YYYY-MM-DD` / `YYYY.MM.DD` / `YYYY/MM/DD` | `SingleDate` 또는 `FromTo` | SingleDate.Ckeys 또는 StartDate.Ckeys + EndDate.Ckeys |
|
|
23
|
+
| `monthCalendar` | `""` 또는 `YYYY-MM` | `SingleDate` 만 | SingleDate.Ckeys |
|
|
24
|
+
| `yearCalendar` | `""` (기본) | `SingleDate` 만 | SingleDate.Ckeys |
|
|
25
|
+
|
|
26
|
+
스키마 if/then + `[date]` cross-check 강제:
|
|
27
|
+
|
|
28
|
+
- `SelectType="SingleDate"` → `SingleDate` **객체는 항상 필수**. `SingleDate.Ckeys` 는 **조상(또는 자기) Group 이 `UseDataConnection:true` 인 데이터연결 컨텍스트에서만 1개 이상 필수** — 비연결(프로토타이핑) 캘린더면 `"Ckeys": []` 허용. (단 `Ckeys` 키 자체는 항상 둘 것 — `SingleDate: {}` 빈 객체는 런타임 `dlgJson.SingleDate.Ckeys` 접근 시 TypeError.)
|
|
29
|
+
- `SelectType="FromTo"` → `StartDate` + `EndDate` **객체 모두 항상 필수**. 각 `Ckeys` 도 동일 규칙 — 데이터연결 컨텍스트면 1개 이상, 비연결이면 `[]`.
|
|
30
|
+
- `CalendarType ∈ {monthCalendar, yearCalendar}` → `SelectType` 은 `SingleDate` 만.
|
|
31
|
+
|
|
32
|
+
> ★ **빈 객체 금지** (`[date]` cross-check) — `SingleDate: {}` / `StartDate: {}` / `EndDate: {}` 처럼 `Ckeys` 누락된 빈 객체는 런타임 `dlgJson.SingleDate.Ckeys` / `dlgJson.StartDate.Ckeys` / `dlgJson.EndDate.Ckeys` 접근 시 TypeError 를 일으킨다. 분기 키 객체는 항상 `Ckeys: ["..."]` 와 함께 채울 것.
|
|
33
|
+
|
|
34
|
+
## 예시 — InputDate 자식 (가장 일반)
|
|
35
|
+
|
|
36
|
+
```jsonc
|
|
37
|
+
{
|
|
38
|
+
"ControlType": "InputDate",
|
|
39
|
+
"DateFormat": "YYYY-MM-DD",
|
|
40
|
+
"Dialog": {
|
|
41
|
+
"Layouts": [{
|
|
42
|
+
"ContentsType": "Layout",
|
|
43
|
+
"Controls": [{
|
|
44
|
+
"ControlType": "Calendar",
|
|
45
|
+
"CalendarType": "dayCalendar",
|
|
46
|
+
"SelectType": "SingleDate",
|
|
47
|
+
"SingleDate": { "Ckeys": ["AppDate"] },
|
|
48
|
+
"Id": "f_35"
|
|
49
|
+
}]
|
|
50
|
+
}]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## 예시 — 단독 (인라인 캘린더)
|
|
56
|
+
|
|
57
|
+
Group `Controls[]` 에 직접 배치. 운영 메타에서는 최소 6키만으로도 등장 (`Width`/`Height`/`isColumnCtrl` 생략 형태).
|
|
58
|
+
|
|
59
|
+
```jsonc
|
|
60
|
+
{
|
|
61
|
+
"ControlType": "Calendar",
|
|
62
|
+
"CalendarType": "dayCalendar",
|
|
63
|
+
"SelectType": "SingleDate",
|
|
64
|
+
"SingleDate": { "Ckeys": [] },
|
|
65
|
+
"ControlName2": "Calendar1",
|
|
66
|
+
"Caption": "Calendar1",
|
|
67
|
+
"Id": "f_4128"
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
AI 생성 시에는 controlBase 권장 키 (`ControlDefaultName`/`ControlName2`/`Width`/`Height`) 까지 채워 다음과 같이:
|
|
72
|
+
|
|
73
|
+
```jsonc
|
|
74
|
+
{
|
|
75
|
+
"ControlType": "Calendar",
|
|
76
|
+
"CalendarType": "dayCalendar",
|
|
77
|
+
"SelectType": "SingleDate",
|
|
78
|
+
"SingleDate": { "Ckeys": ["SelectDate"] },
|
|
79
|
+
"ControlDefaultName": "Calendar1",
|
|
80
|
+
"ControlName2": "Calendar1",
|
|
81
|
+
"Caption": "Calendar1",
|
|
82
|
+
"Id": "f_60",
|
|
83
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
84
|
+
"Height": { "MatchText": true, "SizeValue": "" },
|
|
85
|
+
"isColumnCtrl": false
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## 예시 — FromTo (기간 선택, dayCalendar 전용)
|
|
90
|
+
|
|
91
|
+
```jsonc
|
|
92
|
+
{
|
|
93
|
+
"ControlType": "Calendar",
|
|
94
|
+
"CalendarType": "dayCalendar",
|
|
95
|
+
"SelectType": "FromTo",
|
|
96
|
+
"StartDate": { "Ckeys": ["FromDate"] },
|
|
97
|
+
"EndDate": { "Ckeys": ["ToDate"] },
|
|
98
|
+
"Id": "f_61"
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## 데이터 바인딩
|
|
103
|
+
|
|
104
|
+
`SingleDate.Ckeys` / `StartDate.Ckeys` / `EndDate.Ckeys` 는 **상위 Group 계층 어딘가에** `UseDataConnection: true` + `DataConnection` 이 있어야 동작 (직접 부모 아닌 조상 Group 도 OK).
|
|
105
|
+
|
|
106
|
+
## 이벤트
|
|
107
|
+
|
|
108
|
+
`Events` 는 `_base.schema.json#/$defs/dateEvents` 가 적용. `DateOrder` enum: `DialogClose` 만.
|
|
109
|
+
|
|
110
|
+
```jsonc
|
|
111
|
+
{
|
|
112
|
+
"ControlType": "Calendar",
|
|
113
|
+
"UseEvents": true,
|
|
114
|
+
"Events": {
|
|
115
|
+
"DateOrder": ["DialogClose"],
|
|
116
|
+
"DialogClose": "ON_DATE_SELECTED"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
> InputDate 본체에 `UseEvents`/`Events` 두면 안 됨 — 자식 Calendar 안에 둔다.
|
|
122
|
+
|
|
123
|
+
## 함정
|
|
124
|
+
|
|
125
|
+
- **`CalendarType` 위치** — InputDate 본체가 아니라 자식 Calendar.
|
|
126
|
+
- `monthCalendar` 면 `DateFormat` 은 `""` 또는 `"YYYY-MM"` 만 (validate.mjs cross-check).
|
|
127
|
+
- `FromTo` 는 `dayCalendar` 전용 — 월/년 picker 에서는 if/then 차단.
|
|
128
|
+
- `Id` 는 시나리오 전체 유일성 검증 대상.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://flextudio.local/meta-contract/v1/control/calendar.schema.json",
|
|
4
|
+
"title": "Calendar",
|
|
5
|
+
"description": "캘린더 (날짜 선택). 일반적으로 InputDate.Dialog.Layouts[*].Controls[*] 위치에 자식으로 배치되며, 단독 컨트롤로도 사용 가능. CalendarType / SelectType 으로 일·월·년 picker 와 단일·기간 모드를 분기. 정의 본체는 _base.schema.json#/$defs/calendarControl 을 그대로 차용한다.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": ["Id", "ControlType"],
|
|
9
|
+
"allOf": [
|
|
10
|
+
{ "$ref": "_base.schema.json#/$defs/controlBase" },
|
|
11
|
+
{ "$ref": "_base.schema.json#/$defs/calendarControl" },
|
|
12
|
+
{
|
|
13
|
+
"properties": {
|
|
14
|
+
"ControlType": { "const": "Calendar" }
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|