From 377b7cddc4b39ae75e659cbfa9632b4c5ef28f48 Mon Sep 17 00:00:00 2001 From: Anang Yusman Date: Thu, 9 Jan 2025 04:01:32 +0800 Subject: [PATCH] feat:detail konten, detail task --- .../agenda-setting/calender-view.tsx | 14 +- .../content/audio/components/columns.tsx | 2 +- .../content/image/components/table-image.tsx | 32 +- components/form/content/audio-detail-form.tsx | 71 +- components/form/content/audio-form.tsx | 52 +- components/form/content/audio-update-form.tsx | 73 +- components/form/content/image-form.tsx | 40 +- components/form/content/teks-detail-form.tsx | 38 +- components/form/content/teks-form.tsx | 40 +- components/form/content/video-form.tsx | 50 +- components/form/task/task-detail-form.tsx | 170 +- package-lock.json | 13068 +--------------- package.json | 5 +- .../ckeditor5-alignment/src/alignment.d.ts | 6 +- .../src/alignmentcommand.d.ts | 4 +- .../src/alignmentediting.d.ts | 2 +- .../ckeditor5-alignment/src/alignmentui.d.ts | 4 +- .../ckeditor5-alignment/src/augmentation.d.ts | 2 +- .../ckeditor5-alignment/src/index.d.ts | 12 +- .../src/augmentation.d.ts | 2 +- .../ckeditor5-autoformat/src/index.d.ts | 4 +- .../src/augmentation.d.ts | 2 +- .../ckeditor5-basic-styles/src/bold.d.ts | 4 +- .../ckeditor5-basic-styles/src/code.d.ts | 6 +- .../src/code/codeui.d.ts | 2 +- .../ckeditor5-basic-styles/src/index.d.ts | 46 +- .../ckeditor5-basic-styles/src/italic.d.ts | 4 +- .../src/strikethrough.d.ts | 4 +- .../ckeditor5-basic-styles/src/subscript.d.ts | 4 +- .../src/superscript.d.ts | 4 +- .../ckeditor5-basic-styles/src/underline.d.ts | 4 +- .../src/augmentation.d.ts | 2 +- .../ckeditor5-block-quote/src/blockquote.d.ts | 4 +- .../src/blockquoteui.d.ts | 2 +- .../ckeditor5-block-quote/src/index.d.ts | 10 +- .../ckeditor5-clipboard/src/augmentation.d.ts | 2 +- .../ckeditor5-clipboard/src/clipboard.d.ts | 8 +- .../src/clipboardpipeline.d.ts | 2 +- .../ckeditor5-clipboard/src/dragdrop.d.ts | 8 +- .../ckeditor5-clipboard/src/index.d.ts | 20 +- .../src/pasteplaintext.d.ts | 2 +- .../src/augmentation.d.ts | 2 +- .../src/cloudservices.d.ts | 6 +- .../src/cloudservicescore.d.ts | 6 +- .../ckeditor5-cloud-services/src/index.d.ts | 14 +- .../src/token/token.d.ts | 2 +- .../src/uploadgateway/fileuploader.d.ts | 2 +- .../src/uploadgateway/uploadgateway.d.ts | 4 +- .../src/augmentation.d.ts | 2 +- .../ckeditor5-code-block/src/codeblock.d.ts | 6 +- .../src/codeblockcommand.d.ts | 2 +- .../src/codeblockediting.d.ts | 4 +- .../ckeditor5-code-block/src/codeblockui.d.ts | 4 +- .../src/indentcodeblockcommand.d.ts | 2 +- .../ckeditor5-code-block/src/index.d.ts | 16 +- .../src/outdentcodeblockcommand.d.ts | 2 +- .../ckeditor5-core/src/accessibility.d.ts | 2 +- .../@ckeditor/ckeditor5-core/src/command.d.ts | 2 +- .../ckeditor5-core/src/commandcollection.d.ts | 2 +- .../@ckeditor/ckeditor5-core/src/context.d.ts | 8 +- .../ckeditor5-core/src/contextplugin.d.ts | 10 +- .../src/editingkeystrokehandler.d.ts | 2 +- .../ckeditor5-core/src/editor/editor.d.ts | 14 +- .../src/editor/editorconfig.d.ts | 6 +- .../src/editor/utils/attachtoform.d.ts | 4 +- .../src/editor/utils/dataapimixin.d.ts | 2 +- .../src/editor/utils/elementapimixin.d.ts | 2 +- .../src/editor/utils/securesourceelement.d.ts | 2 +- .../@ckeditor/ckeditor5-core/src/index.d.ts | 36 +- .../ckeditor5-core/src/multicommand.d.ts | 2 +- .../ckeditor5-core/src/pendingactions.d.ts | 2 +- .../@ckeditor/ckeditor5-core/src/plugin.d.ts | 2 +- .../ckeditor5-core/src/plugincollection.d.ts | 2 +- .../src/classiceditor.d.ts | 2 +- .../src/classiceditorui.d.ts | 2 +- .../src/classiceditoruiview.d.ts | 2 +- .../ckeditor5-editor-classic/src/index.d.ts | 2 +- .../src/controller/datacontroller.d.ts | 30 +- .../src/controller/editingcontroller.d.ts | 14 +- .../src/conversion/conversion.d.ts | 12 +- .../src/conversion/downcastdispatcher.d.ts | 26 +- .../src/conversion/downcasthelpers.d.ts | 34 +- .../src/conversion/mapper.d.ts | 18 +- .../src/conversion/modelconsumable.d.ts | 10 +- .../src/conversion/upcastdispatcher.d.ts | 24 +- .../src/conversion/upcasthelpers.d.ts | 18 +- .../src/conversion/viewconsumable.d.ts | 10 +- .../src/dataprocessor/dataprocessor.d.ts | 4 +- .../src/dataprocessor/htmldataprocessor.d.ts | 12 +- .../@ckeditor/ckeditor5-engine/src/index.d.ts | 212 +- .../ckeditor5-engine/src/model/batch.d.ts | 2 +- .../ckeditor5-engine/src/model/differ.d.ts | 14 +- .../ckeditor5-engine/src/model/document.d.ts | 16 +- .../src/model/documentfragment.d.ts | 8 +- .../src/model/documentselection.d.ts | 16 +- .../ckeditor5-engine/src/model/element.d.ts | 4 +- .../ckeditor5-engine/src/model/history.d.ts | 2 +- .../ckeditor5-engine/src/model/item.d.ts | 4 +- .../src/model/liveposition.d.ts | 8 +- .../ckeditor5-engine/src/model/liverange.d.ts | 10 +- .../src/model/markercollection.d.ts | 8 +- .../ckeditor5-engine/src/model/model.d.ts | 28 +- .../ckeditor5-engine/src/model/node.d.ts | 8 +- .../ckeditor5-engine/src/model/nodelist.d.ts | 2 +- .../model/operation/attributeoperation.d.ts | 8 +- .../src/model/operation/insertoperation.d.ts | 12 +- .../src/model/operation/markeroperation.d.ts | 10 +- .../src/model/operation/mergeoperation.d.ts | 10 +- .../src/model/operation/moveoperation.d.ts | 8 +- .../src/model/operation/nooperation.d.ts | 4 +- .../src/model/operation/operation.d.ts | 6 +- .../src/model/operation/operationfactory.d.ts | 4 +- .../src/model/operation/renameoperation.d.ts | 8 +- .../operation/rootattributeoperation.d.ts | 8 +- .../src/model/operation/rootoperation.d.ts | 6 +- .../src/model/operation/splitoperation.d.ts | 10 +- .../src/model/operation/transform.d.ts | 4 +- .../src/model/operation/utils.d.ts | 12 +- .../ckeditor5-engine/src/model/position.d.ts | 26 +- .../ckeditor5-engine/src/model/range.d.ts | 24 +- .../src/model/rootelement.d.ts | 4 +- .../ckeditor5-engine/src/model/schema.d.ts | 18 +- .../ckeditor5-engine/src/model/selection.d.ts | 14 +- .../ckeditor5-engine/src/model/text.d.ts | 2 +- .../ckeditor5-engine/src/model/textproxy.d.ts | 10 +- .../src/model/treewalker.d.ts | 6 +- .../src/model/typecheckable.d.ts | 26 +- .../ckeditor5-engine/src/model/writer.d.ts | 24 +- .../src/view/attributeelement.d.ts | 6 +- .../src/view/containerelement.d.ts | 6 +- .../ckeditor5-engine/src/view/document.d.ts | 8 +- .../src/view/documentfragment.d.ts | 8 +- .../src/view/documentselection.d.ts | 16 +- .../src/view/domconverter.d.ts | 26 +- .../src/view/downcastwriter.d.ts | 34 +- .../src/view/editableelement.d.ts | 8 +- .../ckeditor5-engine/src/view/element.d.ts | 10 +- .../src/view/emptyelement.d.ts | 8 +- .../ckeditor5-engine/src/view/item.d.ts | 4 +- .../ckeditor5-engine/src/view/matcher.d.ts | 2 +- .../ckeditor5-engine/src/view/node.d.ts | 8 +- .../src/view/observer/arrowkeysobserver.d.ts | 8 +- .../view/observer/bubblingemittermixin.d.ts | 4 +- .../src/view/observer/bubblingeventinfo.d.ts | 6 +- .../src/view/observer/clickobserver.d.ts | 6 +- .../view/observer/compositionobserver.d.ts | 6 +- .../src/view/observer/domeventdata.d.ts | 6 +- .../src/view/observer/domeventobserver.d.ts | 2 +- .../view/observer/fakeselectionobserver.d.ts | 4 +- .../src/view/observer/focusobserver.d.ts | 6 +- .../src/view/observer/inputobserver.d.ts | 8 +- .../src/view/observer/keyobserver.d.ts | 4 +- .../src/view/observer/mouseobserver.d.ts | 4 +- .../src/view/observer/mutationobserver.d.ts | 8 +- .../src/view/observer/observer.d.ts | 4 +- .../src/view/observer/selectionobserver.d.ts | 14 +- .../src/view/observer/tabobserver.d.ts | 8 +- .../src/view/placeholder.d.ts | 10 +- .../ckeditor5-engine/src/view/position.d.ts | 12 +- .../ckeditor5-engine/src/view/range.d.ts | 14 +- .../ckeditor5-engine/src/view/rawelement.d.ts | 10 +- .../ckeditor5-engine/src/view/renderer.d.ts | 12 +- .../src/view/rooteditableelement.d.ts | 4 +- .../ckeditor5-engine/src/view/selection.d.ts | 16 +- .../src/view/styles/background.d.ts | 2 +- .../src/view/styles/border.d.ts | 2 +- .../src/view/styles/margin.d.ts | 2 +- .../src/view/styles/padding.d.ts | 2 +- .../src/view/styles/utils.d.ts | 2 +- .../ckeditor5-engine/src/view/text.d.ts | 4 +- .../ckeditor5-engine/src/view/textproxy.d.ts | 12 +- .../ckeditor5-engine/src/view/treewalker.d.ts | 6 +- .../src/view/typecheckable.d.ts | 32 +- .../ckeditor5-engine/src/view/uielement.d.ts | 12 +- .../src/view/upcastwriter.d.ts | 18 +- .../ckeditor5-engine/src/view/view.d.ts | 42 +- .../ckeditor5-enter/src/augmentation.d.ts | 2 +- .../@ckeditor/ckeditor5-enter/src/index.d.ts | 12 +- .../src/augmentation.d.ts | 2 +- .../ckeditor5-essentials/src/index.d.ts | 4 +- .../ckeditor5-font/src/augmentation.d.ts | 2 +- .../@ckeditor/ckeditor5-font/src/font.d.ts | 10 +- .../src/fontbackgroundcolor.d.ts | 6 +- .../fontbackgroundcolorcommand.d.ts | 4 +- .../fontbackgroundcolorediting.d.ts | 2 +- .../fontbackgroundcolorui.d.ts | 4 +- .../ckeditor5-font/src/fontcolor.d.ts | 6 +- .../src/fontcolor/fontcolorcommand.d.ts | 4 +- .../src/fontcolor/fontcolorediting.d.ts | 2 +- .../src/fontcolor/fontcolorui.d.ts | 4 +- .../ckeditor5-font/src/fontcommand.d.ts | 4 +- .../ckeditor5-font/src/fontconfig.d.ts | 4 +- .../ckeditor5-font/src/fontfamily.d.ts | 6 +- .../src/fontfamily/fontfamilycommand.d.ts | 4 +- .../src/fontfamily/fontfamilyediting.d.ts | 2 +- .../src/fontfamily/fontfamilyui.d.ts | 2 +- .../ckeditor5-font/src/fontsize.d.ts | 8 +- .../src/fontsize/fontsizecommand.d.ts | 4 +- .../src/fontsize/fontsizeediting.d.ts | 2 +- .../src/fontsize/fontsizeui.d.ts | 4 +- .../@ckeditor/ckeditor5-font/src/index.d.ts | 40 +- .../ckeditor5-font/src/ui/colorui.d.ts | 4 +- .../@ckeditor/ckeditor5-font/src/utils.d.ts | 8 +- .../ckeditor5-heading/src/augmentation.d.ts | 2 +- .../ckeditor5-heading/src/heading.d.ts | 6 +- .../ckeditor5-heading/src/headingui.d.ts | 2 +- .../ckeditor5-heading/src/index.d.ts | 18 +- .../ckeditor5-image/src/augmentation.d.ts | 2 +- .../ckeditor5-image/src/autoimage.d.ts | 2 +- .../@ckeditor/ckeditor5-image/src/image.d.ts | 6 +- .../src/image/imageblockediting.d.ts | 8 +- .../src/image/imageediting.d.ts | 2 +- .../src/image/imageinlineediting.d.ts | 8 +- .../src/image/imageplaceholder.d.ts | 4 +- .../ckeditor5-image/src/imageblock.d.ts | 8 +- .../ckeditor5-image/src/imagecaption.d.ts | 6 +- .../src/imagecaption/imagecaptionediting.d.ts | 4 +- .../src/imagecaption/imagecaptionui.d.ts | 2 +- .../src/imagecaption/imagecaptionutils.d.ts | 2 +- .../ckeditor5-image/src/imageinline.d.ts | 8 +- .../ckeditor5-image/src/imageinsert.d.ts | 6 +- .../src/imageinsert/imageinsertui.d.ts | 2 +- .../src/imageinsert/imageinsertviaurlui.d.ts | 2 +- .../src/imageinsertviaurl.d.ts | 4 +- .../ckeditor5-image/src/imageresize.d.ts | 8 +- .../src/imageresize/imageresizebuttons.d.ts | 2 +- .../src/imageresize/imageresizeediting.d.ts | 2 +- .../src/imageresize/imageresizehandles.d.ts | 2 +- .../src/imagesizeattributes.d.ts | 2 +- .../ckeditor5-image/src/imagestyle.d.ts | 4 +- .../src/imagestyle/imagestylecommand.d.ts | 2 +- .../src/imagestyle/imagestyleediting.d.ts | 4 +- .../src/imagestyle/imagestyleui.d.ts | 4 +- .../src/imagetextalternative.d.ts | 4 +- .../imagetextalternativeediting.d.ts | 2 +- .../ckeditor5-image/src/imagetoolbar.d.ts | 2 +- .../ckeditor5-image/src/imageupload.d.ts | 6 +- .../src/imageupload/imageuploadediting.d.ts | 2 +- .../src/imageupload/imageuploadprogress.d.ts | 6 +- .../@ckeditor/ckeditor5-image/src/index.d.ts | 82 +- .../ckeditor5-image/src/pictureediting.d.ts | 4 +- .../ckeditor5-indent/src/augmentation.d.ts | 2 +- .../ckeditor5-indent/src/indent.d.ts | 4 +- .../src/indentblockcommand.d.ts | 2 +- .../@ckeditor/ckeditor5-indent/src/index.d.ts | 14 +- .../ckeditor5-link/src/augmentation.d.ts | 2 +- .../ckeditor5-link/src/autolink.d.ts | 2 +- .../@ckeditor/ckeditor5-link/src/index.d.ts | 22 +- .../@ckeditor/ckeditor5-link/src/link.d.ts | 6 +- .../ckeditor5-link/src/linkcommand.d.ts | 4 +- .../ckeditor5-link/src/linkediting.d.ts | 2 +- .../ckeditor5-link/src/linkimage.d.ts | 6 +- .../ckeditor5-link/src/linkimageediting.d.ts | 2 +- .../ckeditor5-link/src/linkimageui.d.ts | 4 +- .../@ckeditor/ckeditor5-link/src/linkui.d.ts | 4 +- .../src/ui/linkactionsview.d.ts | 4 +- .../ckeditor5-link/src/ui/linkformview.d.ts | 4 +- .../@ckeditor/ckeditor5-link/src/utils.d.ts | 2 +- .../src/utils/automaticdecorators.d.ts | 2 +- .../src/utils/manualdecorator.d.ts | 2 +- .../ckeditor5-list/src/augmentation.d.ts | 2 +- .../ckeditor5-list/src/documentlist.d.ts | 2 +- .../src/documentlistproperties.d.ts | 2 +- .../@ckeditor/ckeditor5-list/src/index.d.ts | 74 +- .../ckeditor5-list/src/legacylist.d.ts | 4 +- .../src/legacylist/legacylistediting.d.ts | 4 +- .../src/legacylistproperties.d.ts | 4 +- .../legacylistpropertiesediting.d.ts | 2 +- .../ckeditor5-list/src/legacytodolist.d.ts | 6 +- .../legacytodolist/legacytodolistediting.d.ts | 2 +- .../@ckeditor/ckeditor5-list/src/list.d.ts | 2 +- .../ckeditor5-list/src/list/listediting.d.ts | 8 +- .../ckeditor5-list/src/list/utils/model.d.ts | 2 +- .../ckeditor5-list/src/listproperties.d.ts | 4 +- .../listproperties/listpropertiesediting.d.ts | 2 +- .../src/listproperties/listpropertiesui.d.ts | 2 +- .../ckeditor5-list/src/tododocumentlist.d.ts | 2 +- .../ckeditor5-list/src/todolist.d.ts | 6 +- .../src/augmentation.d.ts | 2 +- .../ckeditor5-media-embed/src/index.d.ts | 16 +- .../ckeditor5-media-embed/src/mediaembed.d.ts | 8 +- .../src/mediaembedediting.d.ts | 4 +- .../src/mediaembedtoolbar.d.ts | 2 +- .../src/mediaembedui.d.ts | 2 +- .../src/mediaregistry.d.ts | 4 +- .../ckeditor5-media-embed/src/utils.d.ts | 2 +- .../ckeditor5-paragraph/src/augmentation.d.ts | 2 +- .../ckeditor5-paragraph/src/index.d.ts | 10 +- .../src/paragraphbuttonui.d.ts | 2 +- .../src/augmentation.d.ts | 2 +- .../src/index.d.ts | 10 +- .../src/normalizer.d.ts | 2 +- .../src/normalizers/mswordnormalizer.d.ts | 2 +- .../src/augmentation.d.ts | 2 +- .../ckeditor5-select-all/src/index.d.ts | 10 +- .../ckeditor5-select-all/src/selectall.d.ts | 4 +- .../src/augmentation.d.ts | 2 +- .../ckeditor5-source-editing/src/index.d.ts | 6 +- .../src/sourceediting.d.ts | 4 +- .../ckeditor5-table/src/augmentation.d.ts | 2 +- .../@ckeditor/ckeditor5-table/src/index.d.ts | 106 +- .../ckeditor5-table/src/plaintableoutput.d.ts | 2 +- .../@ckeditor/ckeditor5-table/src/table.d.ts | 14 +- .../ckeditor5-table/src/tablecaption.d.ts | 6 +- .../src/tablecellproperties.d.ts | 4 +- .../tablecellbackgroundcolorcommand.d.ts | 2 +- .../commands/tablecellbordercolorcommand.d.ts | 2 +- .../commands/tablecellborderstylecommand.d.ts | 2 +- .../commands/tablecellborderwidthcommand.d.ts | 2 +- .../commands/tablecellheightcommand.d.ts | 2 +- .../tablecellhorizontalalignmentcommand.d.ts | 2 +- .../commands/tablecellpaddingcommand.d.ts | 2 +- .../tablecellverticalalignmentcommand.d.ts | 2 +- .../tablecellpropertiesediting.d.ts | 4 +- .../tablecellpropertiesui.d.ts | 2 +- .../ui/tablecellpropertiesview.d.ts | 10 +- .../commands/tablecellwidthcommand.d.ts | 2 +- .../tablecellwidth/tablecellwidthediting.d.ts | 2 +- .../ckeditor5-table/src/tableclipboard.d.ts | 6 +- .../src/tablecolumnresize.d.ts | 6 +- .../tablecolumnresizeediting.d.ts | 4 +- .../ckeditor5-table/src/tableediting.d.ts | 4 +- .../ckeditor5-table/src/tablekeyboard.d.ts | 4 +- .../ckeditor5-table/src/tablemouse.d.ts | 4 +- .../ckeditor5-table/src/tableproperties.d.ts | 4 +- .../commands/tablealignmentcommand.d.ts | 2 +- .../commands/tablebackgroundcolorcommand.d.ts | 2 +- .../commands/tablebordercolorcommand.d.ts | 2 +- .../commands/tableborderstylecommand.d.ts | 2 +- .../commands/tableborderwidthcommand.d.ts | 2 +- .../commands/tableheightcommand.d.ts | 2 +- .../commands/tablewidthcommand.d.ts | 2 +- .../tablepropertiesediting.d.ts | 2 +- .../tableproperties/tablepropertiesui.d.ts | 2 +- .../ui/tablepropertiesview.d.ts | 10 +- .../ckeditor5-table/src/tableselection.d.ts | 4 +- .../ckeditor5-table/src/tableutils.d.ts | 2 +- .../src/ui/colorinputview.d.ts | 2 +- .../ckeditor5-typing/src/augmentation.d.ts | 2 +- .../ckeditor5-typing/src/deletecommand.d.ts | 2 +- .../@ckeditor/ckeditor5-typing/src/index.d.ts | 34 +- .../src/inserttextcommand.d.ts | 2 +- .../ckeditor5-typing/src/typing.d.ts | 4 +- .../ckeditor5-ui/src/arialiveannouncer.d.ts | 6 +- .../ckeditor5-ui/src/augmentation.d.ts | 2 +- .../src/autocomplete/autocompleteview.d.ts | 8 +- .../bindings/addkeyboardhandlingforgrid.d.ts | 2 +- .../bindings/csstransitiondisablermixin.d.ts | 2 +- .../src/bindings/draggableviewmixin.d.ts | 2 +- .../bindings/injectcsstransitiondisabler.d.ts | 2 +- .../src/bindings/submithandler.d.ts | 2 +- .../ckeditor5-ui/src/button/buttonlabel.d.ts | 2 +- .../src/button/buttonlabelview.d.ts | 4 +- .../ckeditor5-ui/src/button/buttonview.d.ts | 12 +- .../src/button/filedialogbuttonview.d.ts | 2 +- .../src/button/switchbuttonview.d.ts | 6 +- .../src/collapsible/collapsibleview.d.ts | 10 +- .../src/colorgrid/colorgridview.d.ts | 10 +- .../src/colorgrid/colortileview.d.ts | 2 +- .../src/colorpicker/colorpickerview.d.ts | 8 +- .../colorselector/colorgridsfragmentview.d.ts | 12 +- .../colorpickerfragmentview.d.ts | 12 +- .../src/colorselector/colorselectorview.d.ts | 16 +- .../documentcolorcollection.d.ts | 2 +- .../ckeditor5-ui/src/componentfactory.d.ts | 2 +- .../ckeditor5-ui/src/dialog/dialog.d.ts | 6 +- .../src/dialog/dialogactionsview.d.ts | 12 +- .../src/dialog/dialogcontentview.d.ts | 4 +- .../ckeditor5-ui/src/dialog/dialogview.d.ts | 18 +- .../src/dropdown/button/dropdownbutton.d.ts | 4 +- .../dropdown/button/dropdownbuttonview.d.ts | 6 +- .../src/dropdown/button/splitbuttonview.d.ts | 14 +- .../src/dropdown/dropdownpanelview.d.ts | 6 +- .../src/dropdown/dropdownview.d.ts | 14 +- .../ckeditor5-ui/src/dropdown/utils.d.ts | 18 +- .../src/editableui/editableuiview.d.ts | 2 +- .../inline/inlineeditableuiview.d.ts | 2 +- .../accessibilityhelp/accessibilityhelp.d.ts | 6 +- .../accessibilityhelpcontentview.d.ts | 2 +- .../src/editorui/bodycollection.d.ts | 4 +- .../src/editorui/boxed/boxededitoruiview.d.ts | 4 +- .../ckeditor5-ui/src/editorui/editorui.d.ts | 12 +- .../src/editorui/editoruiview.d.ts | 8 +- .../ckeditor5-ui/src/focuscycler.d.ts | 4 +- .../src/formheader/formheaderview.d.ts | 8 +- .../highlightedtext/highlightedtextview.d.ts | 4 +- .../ckeditor5-ui/src/icon/iconview.d.ts | 4 +- .../ckeditor5-ui/src/iframe/iframeview.d.ts | 2 +- .../@ckeditor/ckeditor5-ui/src/index.d.ts | 152 +- .../ckeditor5-ui/src/input/inputbase.d.ts | 2 +- .../ckeditor5-ui/src/input/inputview.d.ts | 4 +- .../src/inputnumber/inputnumberview.d.ts | 2 +- .../src/inputtext/inputtextview.d.ts | 2 +- .../ckeditor5-ui/src/label/labelview.d.ts | 4 +- .../src/labeledfield/labeledfieldview.d.ts | 10 +- .../ckeditor5-ui/src/labeledfield/utils.d.ts | 10 +- .../src/list/listitemgroupview.d.ts | 8 +- .../ckeditor5-ui/src/list/listitemview.d.ts | 6 +- .../src/list/listseparatorview.d.ts | 2 +- .../ckeditor5-ui/src/list/listview.d.ts | 16 +- .../src/menubar/menubarmenubuttonview.d.ts | 6 +- .../menubarmenulistitembuttonview.d.ts | 4 +- ...nubarmenulistitemfiledialogbuttonview.d.ts | 4 +- .../src/menubar/menubarmenulistitemview.d.ts | 6 +- .../src/menubar/menubarmenulistview.d.ts | 2 +- .../src/menubar/menubarmenupanelview.d.ts | 8 +- .../src/menubar/menubarmenuview.d.ts | 10 +- .../ckeditor5-ui/src/menubar/menubarview.d.ts | 12 +- .../ckeditor5-ui/src/menubar/utils.d.ts | 6 +- .../src/panel/balloon/balloonpanelview.d.ts | 6 +- .../src/panel/balloon/contextualballoon.d.ts | 12 +- .../src/panel/sticky/stickypanelview.d.ts | 6 +- .../ckeditor5-ui/src/search/filteredview.d.ts | 2 +- .../src/search/searchinfoview.d.ts | 4 +- .../src/search/searchresultsview.d.ts | 6 +- .../src/search/text/searchtextqueryview.d.ts | 8 +- .../src/search/text/searchtextview.d.ts | 18 +- .../ckeditor5-ui/src/spinner/spinnerview.d.ts | 4 +- .../@ckeditor/ckeditor5-ui/src/template.d.ts | 4 +- .../src/textarea/textareaview.d.ts | 6 +- .../src/toolbar/balloon/balloontoolbar.d.ts | 4 +- .../src/toolbar/block/blockbuttonview.d.ts | 4 +- .../src/toolbar/block/blocktoolbar.d.ts | 6 +- .../src/toolbar/toolbarlinebreakview.d.ts | 2 +- .../src/toolbar/toolbarseparatorview.d.ts | 2 +- .../ckeditor5-ui/src/toolbar/toolbarview.d.ts | 12 +- .../ckeditor5-ui/src/tooltipmanager.d.ts | 6 +- .../@ckeditor/ckeditor5-ui/src/view.d.ts | 6 +- .../ckeditor5-ui/src/viewcollection.d.ts | 2 +- .../ckeditor5-undo/src/augmentation.d.ts | 2 +- .../@ckeditor/ckeditor5-undo/src/index.d.ts | 12 +- .../ckeditor5-undo/src/redocommand.d.ts | 2 +- .../@ckeditor/ckeditor5-undo/src/undo.d.ts | 4 +- .../ckeditor5-undo/src/undocommand.d.ts | 2 +- .../@ckeditor/ckeditor5-core/src/index.d.ts | 36 +- .../@ckeditor/ckeditor5-utils/src/index.d.ts | 114 +- .../src/adapters/base64uploadadapter.d.ts | 2 +- .../src/adapters/simpleuploadadapter.d.ts | 2 +- .../ckeditor5-upload/src/augmentation.d.ts | 2 +- .../@ckeditor/ckeditor5-upload/src/index.d.ts | 10 +- .../ckeditor5-utils/src/collection.d.ts | 4 +- .../@ckeditor/ckeditor5-utils/src/diff.d.ts | 2 +- .../ckeditor5-utils/src/difftochanges.d.ts | 2 +- .../ckeditor5-utils/src/dom/emittermixin.d.ts | 6 +- .../ckeditor5-utils/src/dom/position.d.ts | 2 +- .../ckeditor5-utils/src/emittermixin.d.ts | 8 +- .../ckeditor5-utils/src/fastdiff.d.ts | 4 +- .../ckeditor5-utils/src/focustracker.d.ts | 8 +- .../@ckeditor/ckeditor5-utils/src/index.d.ts | 114 +- .../src/inserttopriorityarray.d.ts | 2 +- .../ckeditor5-utils/src/keyboard.d.ts | 2 +- .../ckeditor5-utils/src/keystrokehandler.d.ts | 6 +- .../@ckeditor/ckeditor5-utils/src/locale.d.ts | 6 +- .../ckeditor5-utils/src/observablemixin.d.ts | 4 +- .../src/translation-service.d.ts | 4 +- .../ckeditor5-watchdog/src/augmentation.d.ts | 2 +- .../src/contextwatchdog.d.ts | 4 +- .../src/editorwatchdog.d.ts | 2 +- .../ckeditor5-watchdog/src/index.d.ts | 8 +- .../@ckeditor/ckeditor5-watchdog/src/index.js | 8 +- .../ckeditor5-watchdog/src/watchdog.d.ts | 4 +- .../ckeditor5-widget/src/augmentation.d.ts | 2 +- .../@ckeditor/ckeditor5-widget/src/index.d.ts | 12 +- .../ckeditor5-widget/src/widget.d.ts | 4 +- .../ckeditor5-widget/src/widgetresize.d.ts | 4 +- .../src/widgetresize/resizer.d.ts | 4 +- .../src/widgetresize/resizerstate.d.ts | 2 +- .../widgettypearound/widgettypearound.d.ts | 2 +- 468 files changed, 2453 insertions(+), 14938 deletions(-) diff --git a/app/[locale]/(protected)/contributor/agenda-setting/calender-view.tsx b/app/[locale]/(protected)/contributor/agenda-setting/calender-view.tsx index 851d9a9b..00ba5260 100644 --- a/app/[locale]/(protected)/contributor/agenda-setting/calender-view.tsx +++ b/app/[locale]/(protected)/contributor/agenda-setting/calender-view.tsx @@ -244,21 +244,23 @@ const CalendarView = ({ categories }: CalendarViewProps) => { return ( <> -

{title}

-

Create By: {createdByName}

+

{title}

+

+ Create By: {createdByName} +

); }; const handleClassName = (arg: EventContentArg) => { if (arg.event.extendedProps.calendar === "mabes") { - return "primary"; + return "bg-yellow-500 border-none"; } else if (arg.event.extendedProps.calendar === "polda") { - return "success"; + return "bg-blue-400 border-none"; } else if (arg.event.extendedProps.calendar === "polres") { - return "destructive"; + return "bg-slate-400 border-none"; } else if (arg.event.extendedProps.calendar === "international") { - return "info"; + return "bg-green-400 border-none"; } else { return "primary"; } diff --git a/app/[locale]/(protected)/contributor/content/audio/components/columns.tsx b/app/[locale]/(protected)/contributor/content/audio/components/columns.tsx index 0141d66d..01386b47 100644 --- a/app/[locale]/(protected)/contributor/content/audio/components/columns.tsx +++ b/app/[locale]/(protected)/contributor/content/audio/components/columns.tsx @@ -153,7 +153,7 @@ const columns: ColumnDef[] = [ View - + Edit diff --git a/app/[locale]/(protected)/contributor/content/image/components/table-image.tsx b/app/[locale]/(protected)/contributor/content/image/components/table-image.tsx index 0e0c52e7..95f2522f 100644 --- a/app/[locale]/(protected)/contributor/content/image/components/table-image.tsx +++ b/app/[locale]/(protected)/contributor/content/image/components/table-image.tsx @@ -26,6 +26,7 @@ import { } from "@/components/ui/table"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { + ChevronDown, ChevronLeft, ChevronRight, Eye, @@ -39,6 +40,7 @@ import { import { cn, getCookiesDecrypt } from "@/lib/utils"; import { DropdownMenu, + DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, @@ -176,7 +178,7 @@ const TableImage = () => { /> -
+
{ } className="max-w-sm " /> +
+ + + + + + {table + .getAllColumns() + .filter((column) => column.getCanHide()) + .map((column) => { + return ( + + column.toggleVisibility(!!value) + } + > + {column.id} + + ); + })} + + +
diff --git a/components/form/content/audio-detail-form.tsx b/components/form/content/audio-detail-form.tsx index ecd07ab4..952611d6 100644 --- a/components/form/content/audio-detail-form.tsx +++ b/components/form/content/audio-detail-form.tsx @@ -55,6 +55,7 @@ import { getCookiesDecrypt } from "@/lib/utils"; import { Icon } from "@iconify/react/dist/iconify.js"; import { error } from "@/lib/swal"; import dynamic from "next/dynamic"; +import ReactAudioPlayer from "react-audio-player"; const imageSchema = z.object({ title: z.string().min(1, { message: "Judul diperlukan" }), @@ -137,6 +138,7 @@ export default function FormAudioDetail() { const [files, setFiles] = useState([]); const [rejectedFiles, setRejectedFiles] = useState([]); const [isMabesApprover, setIsMabesApprover] = useState(false); + const [audioPlaying, setAudioPlaying] = useState(null); let fileTypeId = "4"; @@ -336,6 +338,14 @@ export default function FormAudioDetail() { return false; }; + const handleAudioPlayPause = (audioSrc: string) => { + if (audioPlaying === audioSrc) { + setAudioPlaying(null); // Pause if the same audio is clicked + } else { + setAudioPlaying(audioSrc); // Play the new audio + } + }; + const submitApprovalSuccesss = () => { MySwal.fire({ title: "Sukses", @@ -427,30 +437,23 @@ export default function FormAudioDetail() { className="w-full" > {detailThumb?.map((data: any) => { - const isAudio = - data.endsWith(".webm") || - data.endsWith(".mp3") || - data.endsWith(".ogg"); return ( - {isAudio ? ( - ); })} -
+ + {/*
{detailThumb?.map((data: any) => { - const isAudio = - data.endsWith(".webm") || - data.endsWith(".mp3") || - data.endsWith(".ogg"); return ( - {isAudio ? ( - ); })} -
+
*/} diff --git a/components/form/content/audio-form.tsx b/components/form/content/audio-form.tsx index 32e3c1bc..4e1983d9 100644 --- a/components/form/content/audio-form.tsx +++ b/components/form/content/audio-form.tsx @@ -53,15 +53,6 @@ import { error, loading } from "@/config/swal"; import { Item } from "@radix-ui/react-dropdown-menu"; import dynamic from "next/dynamic"; -const imageSchema = z.object({ - title: z.string().min(1, { message: "Judul diperlukan" }), - description: z - .string() - .min(2, { message: "Narasi Penugasan harus lebih dari 2 karakter." }), - creatorName: z.string().min(1, { message: "Creator diperlukan" }), - // tags: z.string().min(1, { message: "Judul diperlukan" }), -}); - interface FileWithPreview extends File { preview: string; } @@ -87,7 +78,7 @@ export default function FormAudio() { const MySwal = withReactContent(Swal); const router = useRouter(); const editor = useRef(null); - type ImageSchema = z.infer; + type AudioSchema = z.infer; const [selectedFiles, setSelectedFiles] = useState([]); const taskId = Cookies.get("taskId"); @@ -155,13 +146,28 @@ export default function FormAudio() { }, }); + const audioSchema = z.object({ + title: z.string().min(1, { message: "Judul diperlukan" }), + description: z + .string() + .min(2, { message: "Narasi Penugasan harus lebih dari 2 karakter." }) + .or( + z.literal(articleBody || "").refine((val) => val.length > 0, { + message: "Deskripsi diperlukan.", + }) + ), + creatorName: z.string().min(1, { message: "Creator diperlukan" }), + // tags: z.string().min(1, { message: "Judul diperlukan" }), + }); + const { control, handleSubmit, + getValues, setValue, formState: { errors }, - } = useForm({ - resolver: zodResolver(imageSchema), + } = useForm({ + resolver: zodResolver(audioSchema), }); const doGenerateMainKeyword = async () => { @@ -424,15 +430,21 @@ export default function FormAudio() { } }; - const save = async (data: ImageSchema) => { + const save = async (data: AudioSchema) => { loading(); const finalTags = tags.join(", "); const finalTitle = isSwitchOn ? title : data.title; + const finalDescription = articleBody || data.description; + if (!finalDescription.trim()) { + MySwal.fire("Error", "Deskripsi tidak boleh kosong.", "error"); + return; + } + const requestData = { ...data, title: finalTitle, - description: data.description, - htmlDescription: data.description, + description: finalDescription, + htmlDescription: finalDescription, fileTypeId, categoryId: selectedCategory, subCategoryId: selectedCategory, @@ -489,7 +501,7 @@ export default function FormAudio() { // MySwal.fire("Sukses", "Data berhasil disimpan.", "success"); }; - const onSubmit = (data: ImageSchema) => { + const onSubmit = (data: AudioSchema) => { MySwal.fire({ title: "Simpan Data", text: "Apakah Anda yakin ingin menyimpan data ini?", @@ -651,6 +663,13 @@ export default function FormAudio() { setFiles([]); }; + useEffect(() => { + // Jika input title kosong, isi dengan hasil generate title + if (!getValues("title") && title) { + setValue("title", title); + } + }, [title, getValues, setValue]); + return (
@@ -871,6 +890,7 @@ export default function FormAudio() { color="primary" onClick={handleGenerateArtikel} size="sm" + type="button" > Generate Article diff --git a/components/form/content/audio-update-form.tsx b/components/form/content/audio-update-form.tsx index f104309e..af65d77a 100644 --- a/components/form/content/audio-update-form.tsx +++ b/components/form/content/audio-update-form.tsx @@ -31,6 +31,9 @@ import { import { detailMedia } from "@/service/curated-content/curated-content"; import { Badge } from "@/components/ui/badge"; import { MailIcon } from "lucide-react"; +import { Swiper, SwiperSlide } from "swiper/react"; +import ReactAudioPlayer from "react-audio-player"; +import { FreeMode, Navigation, Thumbs } from "swiper/modules"; const imageSchema = z.object({ title: z.string().min(1, { message: "Judul diperlukan" }), @@ -81,7 +84,8 @@ export default function FormAudioUpdate() { const [detail, setDetail] = useState(); const [refresh, setRefresh] = useState(false); const [selectedPublishers, setSelectedPublishers] = useState([]); - + const [detailThumb, setDetailThumb] = useState([]); + const [thumbsSwiper, setThumbsSwiper] = useState(null); const [selectedTarget, setSelectedTarget] = useState(""); const [unitSelection, setUnitSelection] = useState({ allUnit: false, @@ -190,7 +194,13 @@ export default function FormAudioUpdate() { setSelectedTarget(matchingCategory.name); } - setSelectedTarget(details.categoryId); // Untuk dropdown + setSelectedTarget(details.categoryId); + + const filesData = details.files || []; + const fileUrls = filesData.map((file: { secondaryUrl: string }) => + file.secondaryUrl ? file.secondaryUrl : "default-image.jpg" + ); + setDetailThumb(fileUrls); } } initState(); @@ -251,7 +261,7 @@ export default function FormAudioUpdate() {
-

Form Konten Foto

+

Form Konten Audio

{/* Input Title */}
@@ -319,6 +329,63 @@ export default function FormAudioUpdate() {

)}
+ +
+ + {detailThumb?.map((data: any) => { + return ( + +
+ + {/* */} +
+
+ ); + })} +
+ + {/*
+ + {detailThumb?.map((data: any) => { + return ( + +
+ + +
+
+ ); + })} +
+
*/} +
diff --git a/components/form/content/image-form.tsx b/components/form/content/image-form.tsx index 8a172700..a9736127 100644 --- a/components/form/content/image-form.tsx +++ b/components/form/content/image-form.tsx @@ -55,15 +55,6 @@ import { data } from "jquery"; import { options } from "@fullcalendar/core/preact.js"; import dynamic from "next/dynamic"; -const imageSchema = z.object({ - title: z.string().min(1, { message: "Judul diperlukan" }), - description: z - .string() - .min(2, { message: "Narasi Penugasan harus lebih dari 2 karakter." }), - creatorName: z.string().min(1, { message: "Creator diperlukan" }), - // tags: z.string().min(1, { message: "Judul diperlukan" }), -}); - interface FileWithPreview extends File { preview: string; } @@ -161,9 +152,24 @@ export default function FormImage() { }, }); + const imageSchema = z.object({ + title: z.string().min(1, { message: "Judul diperlukan" }), + description: z + .string() + .min(2, { message: "Narasi Penugasan harus lebih dari 2 karakter." }) + .or( + z.literal(articleBody || "").refine((val) => val.length > 0, { + message: "Deskripsi diperlukan.", + }) + ), + creatorName: z.string().min(1, { message: "Creator diperlukan" }), + // tags: z.string().min(1, { message: "Judul diperlukan" }), + }); + const { control, handleSubmit, + getValues, setValue, formState: { errors }, } = useForm({ @@ -434,11 +440,16 @@ export default function FormImage() { loading(); const finalTags = tags.join(", "); const finalTitle = isSwitchOn ? title : data.title; + const finalDescription = articleBody || data.description; + if (!finalDescription.trim()) { + MySwal.fire("Error", "Deskripsi tidak boleh kosong.", "error"); + return; + } const requestData = { ...data, title: finalTitle, - description: data.description, - htmlDescription: data.description, + description: finalDescription, + htmlDescription: finalDescription, fileTypeId, categoryId: selectedCategory, subCategoryId: selectedCategory, @@ -662,6 +673,13 @@ export default function FormImage() { setFiles([]); }; + useEffect(() => { + // Jika input title kosong, isi dengan hasil generate title + if (!getValues("title") && title) { + setValue("title", title); + } + }, [title, getValues, setValue]); + return (
diff --git a/components/form/content/teks-detail-form.tsx b/components/form/content/teks-detail-form.tsx index b85527b5..9e26a5e3 100644 --- a/components/form/content/teks-detail-form.tsx +++ b/components/form/content/teks-detail-form.tsx @@ -243,9 +243,11 @@ export default function FormTeksDetail() { setSelectedTarget(details.categoryId); // Untuk dropdown const filesData = details.files || []; - const fileUrls = filesData.map((file: { url: string }) => - file.url ? file.url : "default-image.jpg" - ); + const fileUrls = filesData.map((file: any) => ({ + url: file.secondaryUrl || "default-image.jpg", + format: file.format, + fileName: file.fileName, + })); setDetailThumb(fileUrls); } } @@ -427,30 +429,42 @@ export default function FormTeksDetail() { navigation={false} className="w-full" > - {detailThumb?.map((data: any) => ( - + {detailThumb?.map((data: any, index: number) => ( + {[".jpg", ".jpeg", ".png", ".webp"].includes( data.format ) ? ( + // Menampilkan gambar {data.fileName} - ) : [".pdf", ".docx", ".txt"].includes(data.format) ? ( + ) : data.format === ".pdf" ? ( + // Menampilkan PDF menggunakan iframe