@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,237 @@
|
|
|
1
|
+
# ImageBox
|
|
2
|
+
|
|
3
|
+
이미지 표시/업로드 컨트롤. `ImageBoxType` 으로 두 모드 분기.
|
|
4
|
+
|
|
5
|
+
## 스키마
|
|
6
|
+
|
|
7
|
+
`control/image-box.schema.json` — `controlBase` + 분기 키 (`ControlType="ImageBox"`, `ImageBoxType`, `ViewGroup`, `EditGroup`).
|
|
8
|
+
|
|
9
|
+
## ImageBoxType (제한)
|
|
10
|
+
|
|
11
|
+
| 값 | 동작 | 필수 프로퍼티 |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| `"View"` | 읽기 전용 표시 | `ViewGroup` |
|
|
14
|
+
| `"Edit"` | 업로드/촬영 + 표시 | `ViewGroup` (placeholder) + `EditGroup` (FlexFile 저장) |
|
|
15
|
+
|
|
16
|
+
> **원리**: Edit 업로드 → 파일키가 `EditGroup.FlexKey.ckey` 컬렉션 필드에 저장. View 에서 동일 `ImageSrcType: "FlexFile"` + 동일 `FlexKey`/`ckey` 값으로 표시.
|
|
17
|
+
|
|
18
|
+
## ImageSrcType (ViewGroup.ImageSrcType)
|
|
19
|
+
|
|
20
|
+
| 값 | 키 | 의미 |
|
|
21
|
+
|---|---|---|
|
|
22
|
+
| `"FlexFile"` | `FlexKey` + `ckey` | Edit 업로드 이미지 표시 (둘은 같은 값) |
|
|
23
|
+
| `"Url"` | `ImageUrl` | 외부 URL. `{=ImageField}` 바인딩 가능 |
|
|
24
|
+
| `"Base64"` | `ImageUrl` | Base64 인코딩 인라인 |
|
|
25
|
+
| `"Upload"` | — | **Edit 모드 전용** — `ViewGroup` 의 업로드 placeholder. `EditGroup` 와 짝 |
|
|
26
|
+
|
|
27
|
+
## 시나리오 생성 시 (AI 생성 스켈레톤)
|
|
28
|
+
|
|
29
|
+
**AI 가 시나리오를 생성할 때는 데이터 바인딩 메타(`ViewGroup` / `EditGroup`)를 생략해도 된다.** FlexFile 키 / 카테고리 필드명 / SharedTarget 등은 스튜디오 또는 사용자가 사후 설정한다.
|
|
30
|
+
|
|
31
|
+
```jsonc
|
|
32
|
+
// AI 생성 — View 스켈레톤 (데이터 미설정)
|
|
33
|
+
{
|
|
34
|
+
"ControlType": "ImageBox",
|
|
35
|
+
"ImageBoxType": "View",
|
|
36
|
+
"ControlDefaultName": "ImgView1",
|
|
37
|
+
"ControlName2": "ImgView1",
|
|
38
|
+
"Caption": "ImgView1",
|
|
39
|
+
"Id": "f_41",
|
|
40
|
+
"Width": { "SizeValue": "80", "SizeUnit": "px" },
|
|
41
|
+
"Height": { "SizeValue": "80", "SizeUnit": "px" },
|
|
42
|
+
"isColumnCtrl": false
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```jsonc
|
|
47
|
+
// AI 생성 — Edit 스켈레톤 (데이터 미설정)
|
|
48
|
+
{
|
|
49
|
+
"ControlType": "ImageBox",
|
|
50
|
+
"ImageBoxType": "Edit",
|
|
51
|
+
"ControlDefaultName": "ImgUpload1",
|
|
52
|
+
"ControlName2": "ImgUpload1",
|
|
53
|
+
"Caption": "ImgUpload1",
|
|
54
|
+
"Id": "f_42",
|
|
55
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
56
|
+
"Height": { "SizeValue": "200", "SizeUnit": "px" },
|
|
57
|
+
"isColumnCtrl": false
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
> **원칙**: AI 는 `ImageBoxType` 만 결정하고 데이터 메타는 두지 않는다. 다만 `ViewGroup` / `EditGroup` 을 **굳이 작성한다면** 아래 정식 예시처럼 **유효한 형태로** (ImageSrcType 별 필수 키를 채워서) 작성해야 한다 — 빈 객체 / 누락 키는 schema 차단.
|
|
62
|
+
|
|
63
|
+
## 예시 — View 모드 (FlexFile)
|
|
64
|
+
|
|
65
|
+
```jsonc
|
|
66
|
+
{
|
|
67
|
+
"ControlType": "ImageBox",
|
|
68
|
+
"ImageBoxType": "View",
|
|
69
|
+
"ViewGroup": {
|
|
70
|
+
"ImageSrcType": "FlexFile",
|
|
71
|
+
"SharedTarget": "tenant",
|
|
72
|
+
"FlexKey": "PhotoUrl",
|
|
73
|
+
"ckey": "PhotoUrl"
|
|
74
|
+
},
|
|
75
|
+
"Width": { "SizeValue": "80", "SizeUnit": "px" },
|
|
76
|
+
"Height": { "SizeValue": "80", "SizeUnit": "px" },
|
|
77
|
+
"ControlDefaultName": "ImgView",
|
|
78
|
+
"ControlName2": "ImgView",
|
|
79
|
+
"Caption": "ImgView",
|
|
80
|
+
"Id": "f_41",
|
|
81
|
+
"isColumnCtrl": false
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## 예시 — View 모드 (Url)
|
|
86
|
+
|
|
87
|
+
```jsonc
|
|
88
|
+
{
|
|
89
|
+
"ControlType": "ImageBox",
|
|
90
|
+
"ImageBoxType": "View",
|
|
91
|
+
"ViewGroup": {
|
|
92
|
+
"ImageSrcType": "Url",
|
|
93
|
+
"ImageUrl": "{=ImageField}"
|
|
94
|
+
},
|
|
95
|
+
"ControlDefaultName": "ImgUrl",
|
|
96
|
+
"ControlName2": "ImgUrl",
|
|
97
|
+
"Caption": "ImgUrl",
|
|
98
|
+
"Id": "f_42",
|
|
99
|
+
"isColumnCtrl": false
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## 예시 — Edit 모드
|
|
104
|
+
|
|
105
|
+
```jsonc
|
|
106
|
+
{
|
|
107
|
+
"ControlType": "ImageBox",
|
|
108
|
+
"ImageBoxType": "Edit",
|
|
109
|
+
"ViewGroup": {
|
|
110
|
+
"ImageSrcType": "Upload"
|
|
111
|
+
},
|
|
112
|
+
"EditGroup": {
|
|
113
|
+
"ImageSrcType": "FlexFile",
|
|
114
|
+
"SharedTarget": "tenant",
|
|
115
|
+
"FlexKey": { "ckey": "PhotoUrl", "Name": "" },
|
|
116
|
+
"Module": "FlexFile"
|
|
117
|
+
},
|
|
118
|
+
"UseCondition": "false",
|
|
119
|
+
"UseMultiData": "false",
|
|
120
|
+
"UseEvents": "false",
|
|
121
|
+
"Events": {},
|
|
122
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
123
|
+
"Height": { "SizeValue": "200", "SizeUnit": "px" },
|
|
124
|
+
"ControlDefaultName": "ImgUpload",
|
|
125
|
+
"ControlName2": "ImgUpload",
|
|
126
|
+
"Caption": "ImgUpload",
|
|
127
|
+
"Id": "f_43",
|
|
128
|
+
"isColumnCtrl": false
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
> **Edit 모드 필수**: `ViewGroup`(`ImageSrcType: "Upload"`) + `EditGroup`(FlexFile 저장) 둘 다. `UseCondition`/`UseMultiData`/`UseEvents`/`Events` 함께 작성하는 것이 실 샘플 패턴 (값은 문자열 `"false"` 도 통과).
|
|
133
|
+
|
|
134
|
+
## 이벤트 (제한)
|
|
135
|
+
|
|
136
|
+
`Events` 는 `_base.schema.json#/$defs/imageBoxEvents` 적용. `ImageEventOrder` 에 `Click` 만. EventOrder ↔ 핸들러 일치 강제.
|
|
137
|
+
|
|
138
|
+
```jsonc
|
|
139
|
+
{
|
|
140
|
+
"UseEvents": true,
|
|
141
|
+
"Events": {
|
|
142
|
+
"ImageEventOrder": ["Click"],
|
|
143
|
+
"Click": "ON_IMAGE_CLICK_E"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## FlexKey 형태
|
|
149
|
+
|
|
150
|
+
| 모드 | 형태 | 비고 |
|
|
151
|
+
|---|---|---|
|
|
152
|
+
| `View` | string (필드명) | `ckey` 와 동일 값으로 동시에 작성 |
|
|
153
|
+
| `Edit.EditGroup` | `{ "ckey": "...", "Name": "" }` | `ckey` 가 저장 대상 필드명 |
|
|
154
|
+
|
|
155
|
+
## SharedTarget
|
|
156
|
+
|
|
157
|
+
`"tenant"` (테넌트 공유, 일반) / `"user"` (사용자 전용) / `"global"` (전역 공유). 실 샘플 대부분 `"tenant"`.
|
|
158
|
+
|
|
159
|
+
## `UseDefaultValue` — 기본(폴백) 이미지
|
|
160
|
+
|
|
161
|
+
`UseDefaultValue` 는 **단일 boolean 키**(`engine const K.USE_DEFAULTVALUE='UseDefaultValue'`) 지만 `ImageBoxType` 별로 의미가 다르다. property-data.js 가 두 개의 UI 토글(`createUseDefault` / `createUseDefaultView`)로 노출하지만 둘 다 같은 키에 기록.
|
|
162
|
+
|
|
163
|
+
| ImageBoxType | 토글 UI 위치 | UseDefaultValue=true 효과 | 추가 키 |
|
|
164
|
+
|---|---|---|---|
|
|
165
|
+
| `Edit` | `createUseDefault` (id `UseDefault`) — Edit 그룹 안 | EditGroup 업로드 실패/미설정 시 `ViewGroup` 의 이미지를 placeholder 로 표시 ([imagebox.js:42-45](public/engine/control/imagebox.js#L42)) | `ViewGroup` (기존) |
|
|
166
|
+
| `View` | `createUseDefaultView` (id `UseDefaultView`) — View 그룹 안 | `ViewGroup` 의 FlexFile/Base64 로드가 비어있을 때 `DefaultViewGroup` 의 이미지를 fallback 으로 표시 | `DefaultViewGroup` 추가 |
|
|
167
|
+
|
|
168
|
+
> **View 모드의 토글 표시 조건** (property-data.js line 11780): `ViewGroup.ImageSrcType ∈ { "FlexFile", "Base64" }` 일 때만 스튜디오 프로퍼티 패널에 노출. `Url` 일 때는 표시 안 됨 (URL 은 외부 리소스라 fallback 의미 약함).
|
|
169
|
+
|
|
170
|
+
### `DefaultViewGroup` 형태
|
|
171
|
+
|
|
172
|
+
`ViewGroup` 과 **완전히 동일한 shape** — `_base.schema.json#/$defs/imageBoxViewGroup` 그대로 재사용. 즉 `ImageSrcType` 분기에 따라 `FlexKey`/`ckey`/`ImageUrl` 등이 같은 규약으로 채워진다.
|
|
173
|
+
|
|
174
|
+
```jsonc
|
|
175
|
+
// View 모드 + UseDefaultValue=true (운영 메타 예 — AI 생성에는 두지 말 것)
|
|
176
|
+
{
|
|
177
|
+
"ControlType": "ImageBox",
|
|
178
|
+
"ImageBoxType": "View",
|
|
179
|
+
"ViewGroup": {
|
|
180
|
+
"ImageSrcType": "FlexFile",
|
|
181
|
+
"SharedTarget": "tenant",
|
|
182
|
+
"FlexKey": "PhotoUrl",
|
|
183
|
+
"ckey": "PhotoUrl"
|
|
184
|
+
},
|
|
185
|
+
"UseDefaultValue": true,
|
|
186
|
+
"DefaultViewGroup": {
|
|
187
|
+
"ImageSrcType": "Url",
|
|
188
|
+
"ImageUrl": "/imagesCommon/avatar-placeholder.png"
|
|
189
|
+
},
|
|
190
|
+
"Id": "f_60"
|
|
191
|
+
}
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
→ `_collections` 에서 `PhotoUrl` 이 비어있거나 FlexFile 다운로드가 실패하면 `DefaultViewGroup` 의 placeholder URL 이 대신 표시.
|
|
195
|
+
|
|
196
|
+
### Edit 모드 — `UseDefaultValue=true` 만 두는 케이스
|
|
197
|
+
|
|
198
|
+
```jsonc
|
|
199
|
+
{
|
|
200
|
+
"ControlType": "ImageBox",
|
|
201
|
+
"ImageBoxType": "Edit",
|
|
202
|
+
"ViewGroup": {
|
|
203
|
+
"ImageSrcType": "Url",
|
|
204
|
+
"ImageUrl": "/imagesCommon/upload-placeholder.png"
|
|
205
|
+
},
|
|
206
|
+
"EditGroup": {
|
|
207
|
+
"ImageSrcType": "FlexFile",
|
|
208
|
+
"FlexKey": { "ckey": "PhotoUrl", "Name": "" },
|
|
209
|
+
"Module": "FlexFile"
|
|
210
|
+
},
|
|
211
|
+
"UseDefaultValue": true,
|
|
212
|
+
"Id": "f_61"
|
|
213
|
+
}
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
→ 업로드 전에는 `ViewGroup` 의 placeholder URL 이 보이고, 업로드 후에는 그 자리에 업로드한 이미지가 표시. Edit 모드에서는 `DefaultViewGroup` 을 두지 않는다 — `ViewGroup` 자체가 placeholder 역할.
|
|
217
|
+
|
|
218
|
+
### ★ AI 생성 정책
|
|
219
|
+
|
|
220
|
+
- `UseDefaultValue` 는 **boolean strict** (CHECKBOX 진실원본). 문자열 `"true"`/`"false"` 금지.
|
|
221
|
+
- `DefaultViewGroup` 은 **AI 생성 시 미포함** — 운영에서 placeholder 이미지를 정한 다음 사용자가 수동 설정. AI 가 굳이 placeholder 경로를 추측하지 않는다. ([control.md §AI 샘플 생성 금지 키](../control.md#ai-critical) 단일 진실원본 표 등재 — `AI_GEN_STRICT=1` 시 validate.mjs `[ai-gen]` 태그 차단.)
|
|
222
|
+
- AI 생성 스켈레톤 단계에서는 둘 다 생략 권장. ImageBoxType 만 결정.
|
|
223
|
+
|
|
224
|
+
## Edit ↔ View 연동
|
|
225
|
+
|
|
226
|
+
- Edit 업로드 시 → `EditGroup.FlexKey.ckey` 컬렉션 필드에 파일키 저장.
|
|
227
|
+
- View 에서 표시할 때 → `ImageSrcType: "FlexFile"` + 같은 `FlexKey`/`ckey` 값.
|
|
228
|
+
- View 에서 `ImageSrcType: "Url"` 로 두면 FlexFile 파일키는 표시 못 함 — 외부 URL 만.
|
|
229
|
+
|
|
230
|
+
## 함정
|
|
231
|
+
|
|
232
|
+
- `ControlName2` 누락 = 런타임 에러. `ControlDefaultName` 과 같은 값.
|
|
233
|
+
- `isColumnCtrl: false` 항상 명시 (Sheet 컬럼 모드는 OtherControl).
|
|
234
|
+
- AI 생성 단계에서는 `ViewGroup` / `EditGroup` 을 생략해도 schema 통과 (스켈레톤). 운영에 투입하려면 사후 설정 필수.
|
|
235
|
+
- Edit 모드 운영 시 `ViewGroup` 누락 → 업로드 후 표시 영역 비어 있음. `ImageSrcType: "Upload"` 로 placeholder 명시.
|
|
236
|
+
- Edit 모드 `EditGroup.FlexKey` 는 **객체** (`{ ckey, Name }`), View 모드 `FlexKey` 는 **string**. 혼동 주의.
|
|
237
|
+
- `Ckeys` 미사용 — 데이터 바인딩은 `ViewGroup.ckey` / `EditGroup.FlexKey.ckey` 로 처리 (별도 `Ckeys` 배열은 두지 않는다).
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# InputDate
|
|
2
|
+
|
|
3
|
+
날짜 입력 + 캘린더 다이얼로그. **자식 트리 보유** — 리프 아님.
|
|
4
|
+
|
|
5
|
+
## 스키마
|
|
6
|
+
|
|
7
|
+
`control/input-date.schema.json` — `controlBase` + `inputBase` + 분기 키 (`ControlType="InputDate"`, `DateFormat`, `Dialog`).
|
|
8
|
+
|
|
9
|
+
## 예시 (단일 일자, dayCalendar)
|
|
10
|
+
|
|
11
|
+
```jsonc
|
|
12
|
+
{
|
|
13
|
+
"ControlType": "InputDate",
|
|
14
|
+
"DateFormat": "YYYY-MM-DD",
|
|
15
|
+
"DisplayValue": "",
|
|
16
|
+
"Ckeys": ["AppDate"],
|
|
17
|
+
"ControlDefaultName": "InputDate1",
|
|
18
|
+
"ControlName2": "InputDate1",
|
|
19
|
+
"Caption": "{{날짜}}",
|
|
20
|
+
"Placeholder": "{{날짜 선택}}",
|
|
21
|
+
"Id": "f_34",
|
|
22
|
+
"isColumnCtrl": false,
|
|
23
|
+
"Dialog": {
|
|
24
|
+
"Layouts": [{
|
|
25
|
+
"ContentsType": "Layout",
|
|
26
|
+
"Controls": [{
|
|
27
|
+
"ControlType": "Calendar",
|
|
28
|
+
"CalendarType": "dayCalendar",
|
|
29
|
+
"SelectType": "SingleDate",
|
|
30
|
+
"SingleDate": { "Ckeys": ["AppDate"] },
|
|
31
|
+
"Id": "f_35"
|
|
32
|
+
}]
|
|
33
|
+
}]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## InputDate 본체 제한값
|
|
39
|
+
|
|
40
|
+
### `DateFormat` (제한)
|
|
41
|
+
|
|
42
|
+
스키마 enum 으로 강제. 빈 문자열 `""` 은 런타임 기본 포맷.
|
|
43
|
+
|
|
44
|
+
| 값 | 표시 | 짝 CalendarType |
|
|
45
|
+
|---|---|---|
|
|
46
|
+
| `""` | 런타임 기본 | (모든 타입) |
|
|
47
|
+
| `YYYY-MM-DD` | 2026-05-06 | `dayCalendar` |
|
|
48
|
+
| `YYYY.MM.DD` | 2026.05.06 | `dayCalendar` |
|
|
49
|
+
| `YYYY/MM/DD` | 2026/05/06 | `dayCalendar` |
|
|
50
|
+
| `YYYY-MM` | 2026-05 | `monthCalendar` |
|
|
51
|
+
|
|
52
|
+
> **CalendarType 정합 cross-check (validate.mjs 후검증):**
|
|
53
|
+
> - `DateFormat: "YYYY-MM"` 면 자식 Calendar 의 `CalendarType` 은 반드시 `monthCalendar`.
|
|
54
|
+
> - `CalendarType: "monthCalendar"` 면 `DateFormat` 은 `""` 또는 `"YYYY-MM"` 만.
|
|
55
|
+
|
|
56
|
+
## 자식 Calendar 컨트롤 (`Dialog.Layouts[*].Controls[*]`)
|
|
57
|
+
|
|
58
|
+
`Dialog.Layouts[*].Controls[*]` 의 Calendar 컨트롤이 실제 캘린더 UI. **`CalendarType` / `SelectType` 은 InputDate 본체가 아니라 여기에 위치**.
|
|
59
|
+
|
|
60
|
+
### 키 / 제한값
|
|
61
|
+
|
|
62
|
+
| 키 | 비고 |
|
|
63
|
+
|---|---|
|
|
64
|
+
| `ControlType` | `"Calendar"` (const 고정) |
|
|
65
|
+
| `CalendarType` | enum: `"dayCalendar"` / `"monthCalendar"` / `"yearCalendar"` |
|
|
66
|
+
| `SelectType` | enum: `"SingleDate"` / `"FromTo"` |
|
|
67
|
+
| `SingleDate.Ckeys` | `SelectType="SingleDate"` — 객체 자체는 항상 필수, `Ckeys` 는 조상 Group `UseDataConnection:true` 면 1개 이상·비연결이면 `[]` |
|
|
68
|
+
| `StartDate.Ckeys` | `SelectType="FromTo"` — 객체 항상 필수, `Ckeys` 는 데이터연결 컨텍스트면 1개 이상·비연결이면 `[]` |
|
|
69
|
+
| `EndDate.Ckeys` | `SelectType="FromTo"` — 객체 항상 필수, `Ckeys` 는 데이터연결 컨텍스트면 1개 이상·비연결이면 `[]` |
|
|
70
|
+
| `Id` | `^f_[1-9][0-9]*$` — 시나리오 전체 유일 |
|
|
71
|
+
|
|
72
|
+
### 스키마 if/then 강제
|
|
73
|
+
|
|
74
|
+
- `SelectType="SingleDate"` → `SingleDate` **객체는 항상 필수**. `SingleDate.Ckeys` 는 **조상 Group `UseDataConnection:true` 인 데이터연결 컨텍스트에서만 1개 이상 필수**, 비연결(프로토타이핑)이면 `"Ckeys": []` 허용 (`Ckeys` 키 자체는 항상 둘 것).
|
|
75
|
+
- `SelectType="FromTo"` → `StartDate` + `EndDate` **객체 모두 항상 필수**. 각 `Ckeys` 도 동일 규칙 — 데이터연결 컨텍스트면 1개 이상, 비연결이면 `[]`.
|
|
76
|
+
- `CalendarType ∈ {monthCalendar, yearCalendar}` → `SelectType` 은 `SingleDate` 만 허용 (`FromTo` 는 `dayCalendar` 전용).
|
|
77
|
+
|
|
78
|
+
> ★ **빈 객체 금지** (`[date]` cross-check) — `SingleDate: {}` / `StartDate: {}` / `EndDate: {}` 처럼 `Ckeys` 누락된 빈 객체는 런타임 `dlgJson.SingleDate.Ckeys` / `dlgJson.StartDate.Ckeys` / `dlgJson.EndDate.Ckeys` 접근 시 TypeError. 분기 키 객체는 항상 `Ckeys: ["..."]` 와 함께 채울 것.
|
|
79
|
+
|
|
80
|
+
## CalendarType별 분기 요약
|
|
81
|
+
|
|
82
|
+
| CalendarType | DateFormat | SelectType | Ckeys 위치 | 용도 |
|
|
83
|
+
|---|---|---|---|---|
|
|
84
|
+
| `dayCalendar` | `""` / `YYYY-MM-DD` / `YYYY.MM.DD` / `YYYY/MM/DD` | `SingleDate` 또는 `FromTo` | SingleDate.Ckeys 또는 StartDate.Ckeys + EndDate.Ckeys | 일 picker / 기간 picker |
|
|
85
|
+
| `monthCalendar` | `""` 또는 `YYYY-MM` | `SingleDate` 만 | SingleDate.Ckeys | 월 picker |
|
|
86
|
+
| `yearCalendar` | `""` (기본) | `SingleDate` 만 | SingleDate.Ckeys | 년 picker |
|
|
87
|
+
|
|
88
|
+
### 예시 — monthCalendar (단일 월 선택)
|
|
89
|
+
|
|
90
|
+
```jsonc
|
|
91
|
+
{
|
|
92
|
+
"ControlType": "InputDate",
|
|
93
|
+
"DateFormat": "YYYY-MM",
|
|
94
|
+
"Ckeys": ["AppMonth"],
|
|
95
|
+
"Dialog": {
|
|
96
|
+
"Layouts": [{
|
|
97
|
+
"ContentsType": "Layout",
|
|
98
|
+
"Controls": [{
|
|
99
|
+
"ControlType": "Calendar",
|
|
100
|
+
"CalendarType": "monthCalendar",
|
|
101
|
+
"SelectType": "SingleDate",
|
|
102
|
+
"SingleDate": { "Ckeys": ["AppMonth"] },
|
|
103
|
+
"Id": "f_36"
|
|
104
|
+
}]
|
|
105
|
+
}]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### 예시 — dayCalendar + FromTo (기간 선택)
|
|
111
|
+
|
|
112
|
+
```jsonc
|
|
113
|
+
{
|
|
114
|
+
"ControlType": "InputDate",
|
|
115
|
+
"DateFormat": "YYYY-MM-DD",
|
|
116
|
+
"Dialog": {
|
|
117
|
+
"Layouts": [{
|
|
118
|
+
"ContentsType": "Layout",
|
|
119
|
+
"Controls": [{
|
|
120
|
+
"ControlType": "Calendar",
|
|
121
|
+
"CalendarType": "dayCalendar",
|
|
122
|
+
"SelectType": "FromTo",
|
|
123
|
+
"StartDate": { "Ckeys": ["FromDate"] },
|
|
124
|
+
"EndDate": { "Ckeys": ["ToDate"] },
|
|
125
|
+
"Id": "f_37"
|
|
126
|
+
}]
|
|
127
|
+
}]
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
> InputDate 본체의 `Ckeys` 는 `SingleDate` 모드에서만 의미있음. `FromTo` 모드는 자식 Calendar 의 `StartDate.Ckeys` + `EndDate.Ckeys` 가 실 바인딩 키.
|
|
133
|
+
|
|
134
|
+
## 데이터 바인딩
|
|
135
|
+
|
|
136
|
+
`SingleDate.Ckeys` / `StartDate.Ckeys` / `EndDate.Ckeys` 는 **상위 Group 계층 어딘가에** `UseDataConnection: true` + `DataConnection` 이 있어야 동작 (직접 부모가 아닌 조상 Group 도 OK).
|
|
137
|
+
|
|
138
|
+
InputDate 본체의 `Ckeys` 와 자식 Calendar 의 `SingleDate.Ckeys` 는 같은 필드명을 권장 (서로 동기화).
|
|
139
|
+
|
|
140
|
+
## DisplayType / DisplayValue (InputDate 본체)
|
|
141
|
+
|
|
142
|
+
InputDate 의 표시는 본질적으로 자식 Calendar 의 `Ckeys` + 본체 `DateFormat` 이 결정 — 본체 `DisplayValue` 는 **빈 문자열 `""`** 두는 패턴이 대다수 (DateFormat 기반 자동 표시).
|
|
143
|
+
|
|
144
|
+
| 키 | 일반 패턴 |
|
|
145
|
+
|---|---|
|
|
146
|
+
| `DisplayType` | 생략 (default `"CtrlDisplayCkey"`). |
|
|
147
|
+
| `DisplayValue` | `""` 빈 문자열 — 런타임 기본 (DateFormat 적용). |
|
|
148
|
+
| `CtrlDisplayCkey` | 생략. (자식 Calendar 의 `SingleDate.Ckeys` 가 표시 필드 역할.) |
|
|
149
|
+
|
|
150
|
+
선택값을 다른 표현식으로 가공하고 싶으면 `DisplayType: "DisplayValue"` + `DisplayValue: "{=Field}"` 로 명시. inputBase 의 DisplayType 두 모드는 [combo.md DisplayType 섹션](combo.md) 참조.
|
|
151
|
+
|
|
152
|
+
## 이벤트 (제한)
|
|
153
|
+
|
|
154
|
+
**InputDate 본체가 아니라 자식 Calendar (`Dialog.Layouts[0].Controls[0]`) 안에 둠.** 본체에 `UseEvents`/`Events` 두면 validate.mjs `[event]` cross-check 로 차단.
|
|
155
|
+
|
|
156
|
+
`Events` 는 `_base.schema.json#/$defs/dateEvents` 가 적용. `DateOrder` enum: `DialogClose` 만.
|
|
157
|
+
|
|
158
|
+
```jsonc
|
|
159
|
+
{
|
|
160
|
+
"ControlType": "Calendar",
|
|
161
|
+
"UseEvents": true,
|
|
162
|
+
"Events": {
|
|
163
|
+
"DateOrder": ["DialogClose"],
|
|
164
|
+
"DialogClose": "ON_DATE_SELECTED"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
## 함정
|
|
170
|
+
|
|
171
|
+
- **`CalendarType` 위치** — 본체가 아니라 자식 Calendar 컨트롤. 본체에 두면 무시됨.
|
|
172
|
+
- `monthCalendar` 면 `DateFormat: "YYYY-MM"` 으로 맞춰야 일관됨 (validate.mjs 후검증으로 차단).
|
|
173
|
+
- `FromTo` 모드는 `dayCalendar` 에서만 사용. 월/년 picker 에는 의미없음 — schema if/then 으로 차단.
|
|
174
|
+
- 자식 Calendar 의 `Id` 도 시나리오 전체 유일성 검증 대상.
|
|
175
|
+
- `Ckeys` 와 `SingleDate.Ckeys` 가 다르면 양쪽이 서로 다른 필드를 가리키게 되어 동기화 실패 — 같은 값 권장.
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
# InputFile
|
|
2
|
+
|
|
3
|
+
파일 첨부 컨트롤. `Module` 값으로 저장 백엔드를 결정하고 그에 맞는 `Attributes` shape 를 사용한다.
|
|
4
|
+
|
|
5
|
+
## 스키마
|
|
6
|
+
|
|
7
|
+
`control/input-file.schema.json` — `controlBase` + 분기 키 (`ControlType="InputFile"`, `Module`, `Title`, `Description`, `Limit`, `AllowExtensions`, `UseClickdownload`, `Attributes`, `UseEvents`, `Events`).
|
|
8
|
+
|
|
9
|
+
## 필수 / 핵심 속성
|
|
10
|
+
|
|
11
|
+
| 속성 | 필수 | 설명 |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| `ControlType` | ★ | const `"InputFile"`. |
|
|
14
|
+
| `Module` | ★ | 저장 백엔드 식별 — 5종 enum. 기본 `"FlexFile"`. |
|
|
15
|
+
| `Attributes` | (Module 별 분기) | 모듈별 백엔드 옵션. shape 가 `Module` 값에 의존. |
|
|
16
|
+
| `Title` | | 컨트롤 제목 (식별/문서용). |
|
|
17
|
+
| `Description` | | 컨트롤 설명 텍스트. |
|
|
18
|
+
| `Limit` | | 업로드 제한 (개수). `0`/미설정=런타임 기본. |
|
|
19
|
+
| `AllowExtensions` | | 허용 확장자 화이트리스트 (string 배열, 소문자+숫자만). 일부 모듈만 노출 (아래 표). |
|
|
20
|
+
| `UseClickdownload` | | **소문자 'd' 표기** 주의 — `'UseClickdownload'` (engine const). HostingFolder 외 모듈에서 노출. |
|
|
21
|
+
| `UseEvents` / `Events` | | KsystemPayPDF 외 모듈에서 사용 가능. |
|
|
22
|
+
|
|
23
|
+
## Module 5종 (engine const `FILE_MODULE`)
|
|
24
|
+
|
|
25
|
+
| 값 | 워크스페이스 가시성 | Attributes 핵심 키 |
|
|
26
|
+
|---|---|---|
|
|
27
|
+
| `"FlexFile"` | 모든 ws | `UseCategory`(기본 true) / `CategoryName` 또는 `InnerCKey` / `FlexKey.ckey` / `SharedTarget` / `Directory` |
|
|
28
|
+
| `"KsystemFile"` | 모든 ws | `UseCategory`(기본 false) / `Ckeys` / `Const` / `InnerCKey` 또는 `CategoryName` |
|
|
29
|
+
| `"KsystemPayPDF"` | 모든 ws | `Ckeys` / `Const` (이벤트 미지원) |
|
|
30
|
+
| `"HostingFolder"` | flex / okong / hallim / bhidev | `UseCategory`(기본 true) / `CategoryName` / `FlexKey.ckey` / `FileName` / `FolderRoute` |
|
|
31
|
+
| `"ServerkitFile"` | flex / okong / hallim / bhidev | `UseCategory`(기본 true) / `CategoryName` / `FlexKey.ckey` / `FileName` / `FolderRoute` |
|
|
32
|
+
|
|
33
|
+
> Module 전환 시 스튜디오가 `Attributes` 를 해당 모듈의 `FILEATTR` 기본형으로 초기화 + `UseEvents`/`Events` 도 리셋.
|
|
34
|
+
|
|
35
|
+
## 모듈별 옵션 가시성
|
|
36
|
+
|
|
37
|
+
| 옵션 | FlexFile | KsystemFile | KsystemPayPDF | HostingFolder | ServerkitFile |
|
|
38
|
+
|---|:---:|:---:|:---:|:---:|:---:|
|
|
39
|
+
| `AllowExtensions` | ✓ | — | — | ✓ | ✓ |
|
|
40
|
+
| `UseClickdownload` | ✓ | ✓ | ✓ | — | ✓ |
|
|
41
|
+
| `UseEvents` / `Events` | ✓ | ✓ | — | ✓ | ✓ |
|
|
42
|
+
| `Limit` | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
43
|
+
|
|
44
|
+
## `AllowExtensions` 규칙
|
|
45
|
+
|
|
46
|
+
런타임 검증 — `/^[a-z0-9]+$/` 정규식 통과해야 하고, 차단 리스트에 없어야 함. 잘못된 값은 자동 필터링.
|
|
47
|
+
|
|
48
|
+
**차단 확장자**: `exe`, `msi`, `bat`, `cmd`, `com`, `ps1`, `vbs`, `js`, `jar`, `sh`, `apk`, `dmg`, `docm`, `xlsm`, `pptm`
|
|
49
|
+
|
|
50
|
+
```jsonc
|
|
51
|
+
"AllowExtensions": ["jpg", "png", "pdf", "docx"] // OK
|
|
52
|
+
"AllowExtensions": ["JPG", "EXE"] // 런타임 필터링 — JPG 는 소문자로, EXE 는 차단 리스트라 제거됨
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## `UseClickdownload` — 키 표기 함정
|
|
56
|
+
|
|
57
|
+
```jsonc
|
|
58
|
+
"UseClickdownload": true // ✓ 진실원본 (engine const K.FILE.USE_CLICK_DOWNLOAD)
|
|
59
|
+
"UseClickDownload": true // ✗ 잘못된 표기 — 대문자 'D' 쓰지 말 것
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
소문자 'd' 가 정상. boolean strict — 문자열 `"true"`/`"false"` 금지.
|
|
63
|
+
|
|
64
|
+
## 예시 — Module='FlexFile' (가장 일반)
|
|
65
|
+
|
|
66
|
+
```jsonc
|
|
67
|
+
{
|
|
68
|
+
"ControlType": "InputFile",
|
|
69
|
+
"Id": "f_42",
|
|
70
|
+
"ControlDefaultName": "InputFile1",
|
|
71
|
+
"ControlName2": "InputFile1",
|
|
72
|
+
"Caption": "InputFile1",
|
|
73
|
+
"Title": "사진 첨부",
|
|
74
|
+
"Description": "지원 형식: jpg, png. 최대 5장.",
|
|
75
|
+
"Module": "FlexFile",
|
|
76
|
+
"Limit": 5,
|
|
77
|
+
"AllowExtensions": ["jpg", "jpeg", "png"],
|
|
78
|
+
"UseClickdownload": true,
|
|
79
|
+
"Attributes": {
|
|
80
|
+
"UseCategory": true,
|
|
81
|
+
"CategoryName": "CtgPhotos",
|
|
82
|
+
"FlexKey": { "ckey": "PhotoKey" },
|
|
83
|
+
"SharedTarget": "tenant"
|
|
84
|
+
},
|
|
85
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
86
|
+
"Height": { "MatchText": true, "SizeValue": "" },
|
|
87
|
+
"isColumnCtrl": false
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## 예시 — Module='KsystemFile'
|
|
92
|
+
|
|
93
|
+
```jsonc
|
|
94
|
+
{
|
|
95
|
+
"ControlType": "InputFile",
|
|
96
|
+
"Id": "f_43",
|
|
97
|
+
"ControlDefaultName": "KsysFile1",
|
|
98
|
+
"ControlName2": "KsysFile1",
|
|
99
|
+
"Caption": "KsysFile1",
|
|
100
|
+
"Module": "KsystemFile",
|
|
101
|
+
"Limit": 1,
|
|
102
|
+
"Attributes": {
|
|
103
|
+
"Ckeys": ["FileSeq"],
|
|
104
|
+
"Const": "DOC_MODULE_X",
|
|
105
|
+
"UseCategory": false,
|
|
106
|
+
"InnerCKey": "FileBlock"
|
|
107
|
+
},
|
|
108
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
109
|
+
"Height": { "MatchText": true, "SizeValue": "" },
|
|
110
|
+
"isColumnCtrl": false
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## 예시 — Module='HostingFolder'
|
|
115
|
+
|
|
116
|
+
```jsonc
|
|
117
|
+
{
|
|
118
|
+
"ControlType": "InputFile",
|
|
119
|
+
"Id": "f_44",
|
|
120
|
+
"ControlDefaultName": "Hosting1",
|
|
121
|
+
"ControlName2": "Hosting1",
|
|
122
|
+
"Caption": "Hosting1",
|
|
123
|
+
"Module": "HostingFolder",
|
|
124
|
+
"AllowExtensions": ["pdf"],
|
|
125
|
+
"Attributes": {
|
|
126
|
+
"UseCategory": true,
|
|
127
|
+
"CategoryName": "CtgDocs",
|
|
128
|
+
"FlexKey": { "ckey": "DocKey" },
|
|
129
|
+
"FileName": "DocFileName",
|
|
130
|
+
"FolderRoute":"contracts/2026/"
|
|
131
|
+
},
|
|
132
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
133
|
+
"Height": { "MatchText": true, "SizeValue": "" },
|
|
134
|
+
"isColumnCtrl": false
|
|
135
|
+
}
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
> `FolderRoute` 는 스튜디오가 입력 시 선행/후행 슬래시를 자동 정규화해 `"foo/bar/"` 형태로 저장. 메타에 박을 때도 같은 형태 권장.
|
|
139
|
+
|
|
140
|
+
## `Attributes` 키 의미
|
|
141
|
+
|
|
142
|
+
| 키 | 적용 모듈 | 의미 |
|
|
143
|
+
|---|---|---|
|
|
144
|
+
| `UseCategory` | FlexFile / KsystemFile / HostingFolder / ServerkitFile | true=별도 카테고리 누적 / false=InnerCKey 단일 |
|
|
145
|
+
| `CategoryName` | UseCategory=true 일 때 | `scenario.Panel.Category` 에 정의된 카테고리명 |
|
|
146
|
+
| `InnerCKey` | UseCategory=false 일 때 | 부모 섹터의 InnerBlock 키 |
|
|
147
|
+
| `Ckeys` | KsystemFile / KsystemPayPDF | 파일 시퀀스 저장 컬렉션 필드들 |
|
|
148
|
+
| `Const` | KsystemFile / KsystemPayPDF | 백엔드 상수 식별자 |
|
|
149
|
+
| `FlexKey` | FlexFile / HostingFolder / ServerkitFile | `{ ckey: '...' }` — 파일키 저장 필드명 |
|
|
150
|
+
| `SharedTarget` | FlexFile | `"user"` (사용자 전용) / `"tenant"` (테넌트 공유, 기본) |
|
|
151
|
+
| `Directory` | FlexFile (선택) | 저장 경로 디렉토리 |
|
|
152
|
+
| `FileName` | HostingFolder / ServerkitFile | 저장 파일명 컬렉션 필드명 |
|
|
153
|
+
| `FolderRoute` | HostingFolder / ServerkitFile | 저장 폴더 경로 (`"foo/bar/"` 형태) |
|
|
154
|
+
|
|
155
|
+
## 이벤트
|
|
156
|
+
|
|
157
|
+
`Events` 는 `_base.schema.json#/$defs/inputFileEvents` 적용. `InputFileOrder` 에 등록한 이벤트마다 동명 핸들러 필수 (if/then).
|
|
158
|
+
|
|
159
|
+
| 이벤트 | 발화 | 비고 |
|
|
160
|
+
|---|---|---|
|
|
161
|
+
| `change` | 파일 추가/제거 | `EVENT_CHANGE='change'` (소문자) |
|
|
162
|
+
| `Click` | 컨트롤 클릭 | `EVENT_CLICK='Click'` (대문자 C) |
|
|
163
|
+
| `upload` | 업로드 완료 | `EVENT_UPLOAD='upload'` (소문자) |
|
|
164
|
+
|
|
165
|
+
```jsonc
|
|
166
|
+
{
|
|
167
|
+
"UseEvents": true,
|
|
168
|
+
"Events": {
|
|
169
|
+
"InputFileOrder": ["change", "upload"],
|
|
170
|
+
"change": "ON_FILE_CHANGE_E",
|
|
171
|
+
"upload": "ON_FILE_UPLOAD_E"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
> Module='KsystemPayPDF' 에서는 스튜디오 프로퍼티 패널이 Event 섹션을 노출하지 않는다 — UseEvents/Events 두지 말 것.
|
|
177
|
+
|
|
178
|
+
## 데이터 바인딩
|
|
179
|
+
|
|
180
|
+
- `Attributes.FlexKey.ckey` (FlexFile / HostingFolder / ServerkitFile) 또는 `Attributes.Ckeys` (Ksystem 계열) 사용 시 **상위 Group 계층 어딘가에** `UseDataConnection: true` + `DataConnection` 필요.
|
|
181
|
+
- `Attributes.UseCategory: true` 면 첨부 메타가 `Attributes.CategoryName` 카테고리 섹터들로 추가/삭제됨 — `scenario.Panel.Category` 에 사전 등록 필요.
|
|
182
|
+
|
|
183
|
+
## 함정
|
|
184
|
+
|
|
185
|
+
- `ControlName2` 누락 = 런타임 에러. `ControlDefaultName` 과 같은 값.
|
|
186
|
+
- `isColumnCtrl: false` 항상 명시.
|
|
187
|
+
- **`UseClickdownload` 표기** — 소문자 'd' (`UseClickDownload` 아님). 대문자로 쓰면 런타임이 인식 못 함.
|
|
188
|
+
- `AllowExtensions` 값은 모두 소문자 알파벳/숫자만 — 대문자/특수문자 들어가면 런타임이 필터링.
|
|
189
|
+
- Module 전환 시 `Attributes` 가 새 모듈의 기본형으로 자동 초기화되므로 이전 모듈 키가 남아있으면 운영 메타. AI 생성 시에는 Module 에 맞는 키만 채울 것.
|
|
190
|
+
- `Module='KsystemPayPDF'` 는 `UseEvents`/`Events` 두지 말 것 (프로퍼티 패널 비노출).
|
|
191
|
+
- `Attributes.UseCategory: true` 인데 `CategoryName` 빠뜨리면 schema if/then 차단.
|
|
192
|
+
- `Attributes.FlexKey` 는 **객체** `{ ckey: '...' }` — string 으로 두지 말 것 (ImageBox.EditGroup.FlexKey 와 동일 형태).
|