@ctzy-web-client/plugin-component-vue 1.0.7 → 1.0.9
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/package.json +3 -3
- package/src/advance-select/advance-operation.vue +2 -1
- package/src/advance-select/advance-option.vue +2 -1
- package/src/advance-select/advance-select.vue +2 -1
- package/src/advance-select/events-helpers.js +2 -1
- package/src/advance-select/index.js +1 -0
- package/src/advance-select/use-advance-option.js +2 -1
- package/src/advance-select/use-advance-select.js +1 -0
- package/src/application-slot/application-slot.js +2 -1
- package/src/application-slot/breadcrumb-item.vue +1 -0
- package/src/application-slot/header-tools-item.vue +1 -0
- package/src/application-slot/index.js +1 -0
- package/src/breadcrumb-select/breadcrumb-select.vue +2 -1
- package/src/breadcrumb-select/index.js +1 -0
- package/src/components.js +1 -0
- package/src/contextmenu/contextmenu-item.vue +2 -1
- package/src/contextmenu/contextmenu.vue +2 -1
- package/src/contextmenu/index.js +1 -0
- package/src/contextmenu/use-contextmenu.js +2 -1
- package/src/data-form/data-form-item.vue +2 -1
- package/src/data-form/data-form.vue +2 -1
- package/src/data-form/dynamic-component.js +1 -0
- package/src/data-form/form-components/Blots/AtBlot.js +1 -0
- package/src/data-form/form-components/bwa-date-picker.vue +1 -0
- package/src/data-form/form-components/bwa-date-time-picker.vue +1 -0
- package/src/data-form/form-components/bwa-input-float.vue +1 -0
- package/src/data-form/form-components/bwa-input-integer.vue +1 -0
- package/src/data-form/form-components/bwa-input.vue +1 -0
- package/src/data-form/form-components/bwa-multi-select.vue +1 -0
- package/src/data-form/form-components/bwa-rich-text-tinymce.vue +3 -2
- package/src/data-form/form-components/bwa-rich-text.vue +2 -1
- package/src/data-form/form-components/bwa-select.vue +1 -0
- package/src/data-form/form-components/bwa-textarea.vue +1 -0
- package/src/data-form/form-components/bwa-upload.vue +2 -1
- package/src/data-form/form-components/bwa-user-multi-select.vue +1 -0
- package/src/data-form/form-components/bwa-user-select.vue +2 -1
- package/src/data-form/index.js +1 -0
- package/src/data-table/data-column-view.vue +2 -1
- package/src/data-table/data-table-card.vue +2 -1
- package/src/data-table/data-table-column.vue +2 -1
- package/src/data-table/data-table.vue +2 -1
- package/src/data-table/dynamic-component.js +1 -0
- package/src/data-table/index.js +1 -0
- package/src/data-table/use-datatable-drag.js +1 -0
- package/src/datatable-settings/datatable-settings.vue +2 -1
- package/src/datatable-settings/index.js +1 -0
- package/src/date-range/date-picker.vue +2 -1
- package/src/date-range/date-range.vue +4 -3
- package/src/date-range/index.js +1 -0
- package/src/drag-list/constants.js +1 -0
- package/src/drag-list/drag-item.vue +2 -1
- package/src/drag-list/drag-list.vue +2 -1
- package/src/drag-list/index.js +1 -0
- package/src/drag-list/use-drag-list.js +1 -0
- package/src/dragable/constants.js +1 -0
- package/src/dragable/dragable-item.vue +2 -1
- package/src/dragable/dragable-operation.vue +2 -1
- package/src/dragable/dragable.vue +2 -1
- package/src/dragable/index.js +1 -0
- package/src/dragable/use-dragable.js +1 -0
- package/src/filter-panel/conditions/condition.js +1 -0
- package/src/filter-panel/conditions/date-range-condition.vue +1 -0
- package/src/filter-panel/conditions/department-condition/department-condition.vue +2 -1
- package/src/filter-panel/conditions/department-condition/department-node.vue +2 -1
- package/src/filter-panel/conditions/index.js +1 -0
- package/src/filter-panel/conditions/input-condition.vue +2 -1
- package/src/filter-panel/conditions/multi-user-condition.vue +2 -1
- package/src/filter-panel/conditions/multiple-menu-condition.vue +1 -0
- package/src/filter-panel/conditions/single-menu-condition.vue +2 -1
- package/src/filter-panel/conditions/single-user-condition.vue +2 -1
- package/src/filter-panel/filter-panel-item.vue +2 -1
- package/src/filter-panel/filter-panel.vue +2 -1
- package/src/filter-panel/index.js +1 -0
- package/src/filter-panel/use-filter-panel-item.js +2 -1
- package/src/filter-panel/use-filter-panel.js +2 -1
- package/src/hooks/use-data/index.js +3 -2
- package/src/index.js +1 -0
- package/src/layout/index.js +1 -0
- package/src/layout/layout.vue +2 -1
- package/src/make-installer.js +2 -1
- package/src/math/Rectangle.js +1 -0
- package/src/menu/index.js +1 -0
- package/src/menu/menu-item.vue +2 -1
- package/src/menu/menu.vue +2 -1
- package/src/panel/index.js +1 -0
- package/src/panel/panel.vue +2 -1
- package/src/panel-tabs/index.js +1 -0
- package/src/panel-tabs/panel-tabs.js +2 -1
- package/src/pct-filter-panel/index.js +1 -0
- package/src/pct-filter-panel/pct-compents/index.js +1 -0
- package/src/pct-filter-panel/pct-compents/pct-Input-condition.vue +2 -1
- package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +2 -1
- package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +3 -2
- package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.vue +3 -2
- package/src/pct-filter-panel/pct-filter-panel-item.vue +2 -1
- package/src/pct-filter-panel/pct-filter-panel.vue +2 -1
- package/src/pct-filter-panel/use-filter-panel-item.js +2 -1
- package/src/pct-filter-panel/use-filter-panel.js +3 -2
- package/src/plugins.js +1 -0
- package/src/progress/index.js +1 -0
- package/src/progress/progress-item.vue +2 -1
- package/src/progress/progress.vue +2 -1
- package/src/progress/use-progress.js +1 -0
- package/src/utils/db.js +1 -0
- package/src/utils.js +1 -0
- package/src/where-filter-panel/use-where-filter-panel.js +2 -1
- package/src/where-filter-panel/where-filter-panel.vue +1 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +0 -9
- package/es/advance-select/advance-operation.mjs +0 -43
- package/es/advance-select/advance-option.mjs +0 -125
- package/es/advance-select/advance-select.mjs +0 -359
- package/es/advance-select/events-helpers.mjs +0 -29
- package/es/advance-select/index.mjs +0 -13
- package/es/advance-select/use-advance-option.mjs +0 -43
- package/es/advance-select/use-advance-select.mjs +0 -117
- package/es/application-slot/application-slot.mjs +0 -51
- package/es/application-slot/breadcrumb-item.mjs +0 -23
- package/es/application-slot/header-tools-item.mjs +0 -23
- package/es/application-slot/index.mjs +0 -16
- package/es/breadcrumb-select/breadcrumb-select.mjs +0 -155
- package/es/breadcrumb-select/index.mjs +0 -6
- package/es/components.mjs +0 -22
- package/es/contextmenu/contextmenu-item.mjs +0 -21
- package/es/contextmenu/contextmenu.mjs +0 -64
- package/es/contextmenu/index.mjs +0 -10
- package/es/contextmenu/use-contextmenu.mjs +0 -85
- package/es/data-form/data-form-item.mjs +0 -53
- package/es/data-form/data-form.mjs +0 -175
- package/es/data-form/dynamic-component.mjs +0 -23
- package/es/data-form/form-components/Blots/AtBlot.mjs +0 -25
- package/es/data-form/form-components/bwa-date-picker.mjs +0 -45
- package/es/data-form/form-components/bwa-date-time-picker.mjs +0 -50
- package/es/data-form/form-components/bwa-input-float.mjs +0 -43
- package/es/data-form/form-components/bwa-input-integer.mjs +0 -56
- package/es/data-form/form-components/bwa-input.mjs +0 -38
- package/es/data-form/form-components/bwa-multi-select.mjs +0 -35
- package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +0 -234
- package/es/data-form/form-components/bwa-rich-text.mjs +0 -325
- package/es/data-form/form-components/bwa-select.mjs +0 -76
- package/es/data-form/form-components/bwa-textarea.mjs +0 -33
- package/es/data-form/form-components/bwa-upload.mjs +0 -159
- package/es/data-form/form-components/bwa-user-multi-select.mjs +0 -30
- package/es/data-form/form-components/bwa-user-select.mjs +0 -69
- package/es/data-form/index.mjs +0 -34
- package/es/data-table/data-column-view.mjs +0 -131
- package/es/data-table/data-table-card.mjs +0 -118
- package/es/data-table/data-table-column.mjs +0 -56
- package/es/data-table/data-table.mjs +0 -369
- package/es/data-table/dynamic-component.mjs +0 -48
- package/es/data-table/index.mjs +0 -13
- package/es/data-table/use-datatable-drag.mjs +0 -110
- package/es/datatable-settings/datatable-settings.mjs +0 -309
- package/es/datatable-settings/index.mjs +0 -6
- package/es/date-range/date-picker.mjs +0 -128
- package/es/date-range/date-range.mjs +0 -176
- package/es/date-range/index.mjs +0 -6
- package/es/drag-list/constants.mjs +0 -3
- package/es/drag-list/drag-item.mjs +0 -49
- package/es/drag-list/drag-list.mjs +0 -56
- package/es/drag-list/index.mjs +0 -6
- package/es/drag-list/use-drag-list.mjs +0 -154
- package/es/dragable/constants.mjs +0 -4
- package/es/dragable/dragable-item.mjs +0 -25
- package/es/dragable/dragable-operation.mjs +0 -32
- package/es/dragable/dragable.mjs +0 -31
- package/es/dragable/index.mjs +0 -15
- package/es/dragable/use-dragable.mjs +0 -134
- package/es/filter-panel/conditions/condition.mjs +0 -30
- package/es/filter-panel/conditions/date-range-condition.mjs +0 -46
- package/es/filter-panel/conditions/department-condition/department-condition.mjs +0 -81
- package/es/filter-panel/conditions/department-condition/department-node.mjs +0 -74
- package/es/filter-panel/conditions/index.mjs +0 -21
- package/es/filter-panel/conditions/input-condition.mjs +0 -83
- package/es/filter-panel/conditions/multi-user-condition.mjs +0 -64
- package/es/filter-panel/conditions/multiple-menu-condition.mjs +0 -41
- package/es/filter-panel/conditions/single-menu-condition.mjs +0 -68
- package/es/filter-panel/conditions/single-user-condition.mjs +0 -64
- package/es/filter-panel/filter-panel-item.mjs +0 -47
- package/es/filter-panel/filter-panel.mjs +0 -180
- package/es/filter-panel/index.mjs +0 -15
- package/es/filter-panel/use-filter-panel-item.mjs +0 -52
- package/es/filter-panel/use-filter-panel.mjs +0 -135
- package/es/hooks/use-data/index.mjs +0 -152
- package/es/index.mjs +0 -27
- package/es/layout/index.mjs +0 -6
- package/es/layout/layout.mjs +0 -86
- package/es/make-installer.mjs +0 -34
- package/es/math/Rectangle.mjs +0 -25
- package/es/menu/index.mjs +0 -6
- package/es/menu/menu-item.mjs +0 -75
- package/es/menu/menu.mjs +0 -60
- package/es/node_modules/.pnpm/@vueuse_core@9.6.0_vue@3.2.41/node_modules/@vueuse/core/index.mjs +0 -6372
- package/es/node_modules/.pnpm/@vueuse_shared@9.6.0_vue@3.2.41/node_modules/@vueuse/shared/index.mjs +0 -1517
- package/es/panel/index.mjs +0 -6
- package/es/panel/panel.mjs +0 -55
- package/es/panel-tabs/index.mjs +0 -6
- package/es/panel-tabs/panel-tabs.mjs +0 -66
- package/es/pct-filter-panel/index.mjs +0 -10
- package/es/pct-filter-panel/pct-compents/index.mjs +0 -10
- package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +0 -71
- package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +0 -74
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +0 -186
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +0 -147
- package/es/pct-filter-panel/pct-filter-panel-item.mjs +0 -48
- package/es/pct-filter-panel/pct-filter-panel.mjs +0 -251
- package/es/pct-filter-panel/use-filter-panel-item.mjs +0 -56
- package/es/pct-filter-panel/use-filter-panel.mjs +0 -127
- package/es/plugins.mjs +0 -5
- package/es/progress/index.mjs +0 -10
- package/es/progress/progress-item.mjs +0 -68
- package/es/progress/progress.mjs +0 -74
- package/es/progress/use-progress.mjs +0 -46
- package/es/utils/db.mjs +0 -9
- package/es/utils.mjs +0 -99
- package/es/where-filter-panel/index.mjs +0 -1
- package/es/where-filter-panel/use-where-filter-panel.mjs +0 -18
- package/es/where-filter-panel/where-filter-panel.mjs +0 -17
- package/lib/_virtual/_plugin-vue_export-helper.js +0 -13
- package/lib/advance-select/advance-operation.js +0 -47
- package/lib/advance-select/advance-option.js +0 -129
- package/lib/advance-select/advance-select.js +0 -363
- package/lib/advance-select/events-helpers.js +0 -33
- package/lib/advance-select/index.js +0 -20
- package/lib/advance-select/use-advance-option.js +0 -47
- package/lib/advance-select/use-advance-select.js +0 -122
- package/lib/application-slot/application-slot.js +0 -55
- package/lib/application-slot/breadcrumb-item.js +0 -27
- package/lib/application-slot/header-tools-item.js +0 -27
- package/lib/application-slot/index.js +0 -23
- package/lib/breadcrumb-select/breadcrumb-select.js +0 -159
- package/lib/breadcrumb-select/index.js +0 -11
- package/lib/components.js +0 -26
- package/lib/contextmenu/contextmenu-item.js +0 -25
- package/lib/contextmenu/contextmenu.js +0 -68
- package/lib/contextmenu/index.js +0 -16
- package/lib/contextmenu/use-contextmenu.js +0 -89
- package/lib/data-form/data-form-item.js +0 -57
- package/lib/data-form/data-form.js +0 -179
- package/lib/data-form/dynamic-component.js +0 -27
- package/lib/data-form/form-components/Blots/AtBlot.js +0 -31
- package/lib/data-form/form-components/bwa-date-picker.js +0 -49
- package/lib/data-form/form-components/bwa-date-time-picker.js +0 -54
- package/lib/data-form/form-components/bwa-input-float.js +0 -47
- package/lib/data-form/form-components/bwa-input-integer.js +0 -60
- package/lib/data-form/form-components/bwa-input.js +0 -42
- package/lib/data-form/form-components/bwa-multi-select.js +0 -39
- package/lib/data-form/form-components/bwa-rich-text-tinymce.js +0 -242
- package/lib/data-form/form-components/bwa-rich-text.js +0 -333
- package/lib/data-form/form-components/bwa-select.js +0 -80
- package/lib/data-form/form-components/bwa-textarea.js +0 -37
- package/lib/data-form/form-components/bwa-upload.js +0 -163
- package/lib/data-form/form-components/bwa-user-multi-select.js +0 -34
- package/lib/data-form/form-components/bwa-user-select.js +0 -73
- package/lib/data-form/index.js +0 -40
- package/lib/data-table/data-column-view.js +0 -135
- package/lib/data-table/data-table-card.js +0 -122
- package/lib/data-table/data-table-column.js +0 -60
- package/lib/data-table/data-table.js +0 -373
- package/lib/data-table/dynamic-component.js +0 -56
- package/lib/data-table/index.js +0 -20
- package/lib/data-table/use-datatable-drag.js +0 -114
- package/lib/datatable-settings/datatable-settings.js +0 -313
- package/lib/datatable-settings/index.js +0 -11
- package/lib/date-range/date-picker.js +0 -136
- package/lib/date-range/date-range.js +0 -180
- package/lib/date-range/index.js +0 -11
- package/lib/drag-list/constants.js +0 -7
- package/lib/drag-list/drag-item.js +0 -53
- package/lib/drag-list/drag-list.js +0 -60
- package/lib/drag-list/index.js +0 -11
- package/lib/drag-list/use-drag-list.js +0 -158
- package/lib/dragable/constants.js +0 -9
- package/lib/dragable/dragable-item.js +0 -29
- package/lib/dragable/dragable-operation.js +0 -36
- package/lib/dragable/dragable.js +0 -35
- package/lib/dragable/index.js +0 -22
- package/lib/dragable/use-dragable.js +0 -138
- package/lib/filter-panel/conditions/condition.js +0 -34
- package/lib/filter-panel/conditions/date-range-condition.js +0 -50
- package/lib/filter-panel/conditions/department-condition/department-condition.js +0 -85
- package/lib/filter-panel/conditions/department-condition/department-node.js +0 -78
- package/lib/filter-panel/conditions/index.js +0 -26
- package/lib/filter-panel/conditions/input-condition.js +0 -87
- package/lib/filter-panel/conditions/multi-user-condition.js +0 -68
- package/lib/filter-panel/conditions/multiple-menu-condition.js +0 -45
- package/lib/filter-panel/conditions/single-menu-condition.js +0 -72
- package/lib/filter-panel/conditions/single-user-condition.js +0 -68
- package/lib/filter-panel/filter-panel-item.js +0 -51
- package/lib/filter-panel/filter-panel.js +0 -184
- package/lib/filter-panel/index.js +0 -20
- package/lib/filter-panel/use-filter-panel-item.js +0 -56
- package/lib/filter-panel/use-filter-panel.js +0 -139
- package/lib/hooks/use-data/index.js +0 -157
- package/lib/index.js +0 -60
- package/lib/layout/index.js +0 -11
- package/lib/layout/layout.js +0 -90
- package/lib/make-installer.js +0 -62
- package/lib/math/Rectangle.js +0 -29
- package/lib/menu/index.js +0 -11
- package/lib/menu/menu-item.js +0 -79
- package/lib/menu/menu.js +0 -64
- package/lib/node_modules/.pnpm/@vueuse_core@9.6.0_vue@3.2.41/node_modules/@vueuse/core/index.js +0 -6635
- package/lib/node_modules/.pnpm/@vueuse_shared@9.6.0_vue@3.2.41/node_modules/@vueuse/shared/index.js +0 -1628
- package/lib/panel/index.js +0 -11
- package/lib/panel/panel.js +0 -59
- package/lib/panel-tabs/index.js +0 -11
- package/lib/panel-tabs/panel-tabs.js +0 -70
- package/lib/pct-filter-panel/index.js +0 -14
- package/lib/pct-filter-panel/pct-compents/index.js +0 -16
- package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +0 -75
- package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +0 -78
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +0 -190
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +0 -151
- package/lib/pct-filter-panel/pct-filter-panel-item.js +0 -52
- package/lib/pct-filter-panel/pct-filter-panel.js +0 -255
- package/lib/pct-filter-panel/use-filter-panel-item.js +0 -60
- package/lib/pct-filter-panel/use-filter-panel.js +0 -131
- package/lib/plugins.js +0 -9
- package/lib/progress/index.js +0 -16
- package/lib/progress/progress-item.js +0 -72
- package/lib/progress/progress.js +0 -78
- package/lib/progress/use-progress.js +0 -51
- package/lib/utils/db.js +0 -17
- package/lib/utils.js +0 -110
- package/lib/where-filter-panel/index.js +0 -2
- package/lib/where-filter-panel/use-where-filter-panel.js +0 -22
- package/lib/where-filter-panel/where-filter-panel.js +0 -21
- package/style/advance-select.css +0 -1
- package/style/breadcrumb-select.css +0 -1
- package/style/common.css +0 -1
- package/style/contextmenu.css +0 -1
- package/style/data-form.css +0 -1
- package/style/data-table.css +0 -1
- package/style/datatable-settings.css +0 -1
- package/style/date-range.css +0 -1
- package/style/department-condition.css +0 -1
- package/style/drag-list.css +0 -1
- package/style/dragable.css +0 -1
- package/style/filter-panel.css +0 -1
- package/style/index.css +0 -1
- package/style/input-condition.css +0 -1
- package/style/layout.css +0 -1
- package/style/menu.css +0 -1
- package/style/panel-tabs.css +0 -1
- package/style/panel.css +0 -1
- package/style/pct-filter-panel.css +0 -1
- package/style/progress.css +0 -1
- package/style/rich-text.css +0 -1
- package/style/var.css +0 -1
- /package/style/{src/advance-select.scss → advance-select.scss} +0 -0
- /package/style/{src/breadcrumb-select.scss → breadcrumb-select.scss} +0 -0
- /package/style/{src/common → common}/var.scss +0 -0
- /package/style/{src/common.scss → common.scss} +0 -0
- /package/style/{src/contextmenu.scss → contextmenu.scss} +0 -0
- /package/style/{src/data-form.scss → data-form.scss} +0 -0
- /package/style/{src/data-table.scss → data-table.scss} +0 -0
- /package/style/{src/datatable-settings.scss → datatable-settings.scss} +0 -0
- /package/style/{src/date-range.scss → date-range.scss} +0 -0
- /package/style/{src/department-condition.scss → department-condition.scss} +0 -0
- /package/style/{src/drag-list.scss → drag-list.scss} +0 -0
- /package/style/{src/dragable.scss → dragable.scss} +0 -0
- /package/style/{src/filter-panel.scss → filter-panel.scss} +0 -0
- /package/style/{src/index.scss → index.scss} +0 -0
- /package/style/{src/input-condition.scss → input-condition.scss} +0 -0
- /package/style/{src/layout.scss → layout.scss} +0 -0
- /package/style/{src/menu.scss → menu.scss} +0 -0
- /package/style/{src/mixins → mixins}/_var.scss +0 -0
- /package/style/{src/mixins → mixins}/config.scss +0 -0
- /package/style/{src/mixins → mixins}/function.scss +0 -0
- /package/style/{src/mixins → mixins}/mixins.scss +0 -0
- /package/style/{src/panel-tabs.scss → panel-tabs.scss} +0 -0
- /package/style/{src/panel.scss → panel.scss} +0 -0
- /package/style/{src/pct-filter-panel.scss → pct-filter-panel.scss} +0 -0
- /package/style/{src/progress.scss → progress.scss} +0 -0
- /package/style/{src/rich-text.scss → rich-text.scss} +0 -0
- /package/style/{src/theme → theme}/theme.scss +0 -0
- /package/style/{src/theme → theme}/var.scss +0 -0
- /package/style/{src/var.scss → var.scss} +0 -0
|
@@ -1,363 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var rxjs = require('rxjs');
|
|
7
|
-
var webBaseClientVue = require('web-base-client-vue');
|
|
8
|
-
var index = require('../hooks/use-data/index.js');
|
|
9
|
-
var advanceOperation = require('./advance-operation.js');
|
|
10
|
-
var advanceOption = require('./advance-option.js');
|
|
11
|
-
var useAdvanceSelect = require('./use-advance-select.js');
|
|
12
|
-
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
13
|
-
|
|
14
|
-
const __default__ = vue.defineComponent({
|
|
15
|
-
name: "BwaAdvanceSelect"
|
|
16
|
-
});
|
|
17
|
-
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
18
|
-
props: {
|
|
19
|
-
...index.dataProps,
|
|
20
|
-
options: {
|
|
21
|
-
type: Array
|
|
22
|
-
},
|
|
23
|
-
modelValue: {
|
|
24
|
-
type: [Array, String, Number, Boolean]
|
|
25
|
-
},
|
|
26
|
-
listHeight: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: "300px"
|
|
29
|
-
},
|
|
30
|
-
width: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: "240px"
|
|
33
|
-
},
|
|
34
|
-
multiple: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: true
|
|
37
|
-
},
|
|
38
|
-
multipleLimit: {
|
|
39
|
-
type: Number,
|
|
40
|
-
default: 0
|
|
41
|
-
},
|
|
42
|
-
required: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: false
|
|
45
|
-
},
|
|
46
|
-
showSearch: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: true
|
|
49
|
-
},
|
|
50
|
-
searchPlaceholder: {
|
|
51
|
-
type: String,
|
|
52
|
-
default: ""
|
|
53
|
-
},
|
|
54
|
-
showSelection: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
default: true
|
|
57
|
-
},
|
|
58
|
-
showSelectIcon: {
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: true
|
|
61
|
-
},
|
|
62
|
-
closeAfterSelection: {
|
|
63
|
-
typoe: Boolean,
|
|
64
|
-
default: false
|
|
65
|
-
},
|
|
66
|
-
loading: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: false
|
|
69
|
-
},
|
|
70
|
-
virtualRef: null,
|
|
71
|
-
virtualTriggering: {
|
|
72
|
-
type: Boolean,
|
|
73
|
-
default: false
|
|
74
|
-
},
|
|
75
|
-
source: "",
|
|
76
|
-
borderRadius: {
|
|
77
|
-
type: String,
|
|
78
|
-
default: "0px"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
emits: ["update:modelValue", "search", "visible-change"],
|
|
82
|
-
setup(__props, { expose, emit }) {
|
|
83
|
-
const props = __props;
|
|
84
|
-
const debounceDelay = webBaseClientVue.useGlobalConfig("debounceDelay", 500);
|
|
85
|
-
const filterPanelItem = vue.inject(webBaseClientVue.filterPanelItemKey, null);
|
|
86
|
-
const { listHeight, width, showSearch, showSelection, multiple, modelValue, borderRadius } = vue.toRefs(props);
|
|
87
|
-
const slots = vue.useSlots();
|
|
88
|
-
const ns = webBaseClientVue.useNamespace("advance");
|
|
89
|
-
const states = useAdvanceSelect.useAdvanceSelectStates(props);
|
|
90
|
-
const {
|
|
91
|
-
options: optionInstances,
|
|
92
|
-
optionsCount,
|
|
93
|
-
search,
|
|
94
|
-
isShowPopper,
|
|
95
|
-
selected
|
|
96
|
-
} = vue.toRefs(states);
|
|
97
|
-
const column = vue.computed(() => {
|
|
98
|
-
var _a;
|
|
99
|
-
return (_a = filterPanelItem == null ? void 0 : filterPanelItem.column) != null ? _a : null;
|
|
100
|
-
});
|
|
101
|
-
const {
|
|
102
|
-
selectedLabel,
|
|
103
|
-
onOptionCreate,
|
|
104
|
-
onOptionDestroy,
|
|
105
|
-
handleClearClick,
|
|
106
|
-
handleOptionSelect,
|
|
107
|
-
hidePoppper
|
|
108
|
-
} = useAdvanceSelect.useAdvanceSelect(props, states, {
|
|
109
|
-
emit
|
|
110
|
-
});
|
|
111
|
-
const disabled = vue.computed(() => !vue.unref(isShowPopper));
|
|
112
|
-
const { data: itfData, loading: dataLoading } = index.useData(disabled, search);
|
|
113
|
-
const loading = vue.computed(() => props.loading || vue.unref(dataLoading));
|
|
114
|
-
const data = vue.computed(() => props.options || vue.unref(itfData));
|
|
115
|
-
if (multiple.value && !Array.isArray(modelValue.value)) {
|
|
116
|
-
emit("update:modelValue", []);
|
|
117
|
-
}
|
|
118
|
-
if (!multiple.value && Array.isArray(modelValue.value)) {
|
|
119
|
-
emit("update:modelValue", "");
|
|
120
|
-
}
|
|
121
|
-
vue.watch(isShowPopper, (isShowPopper2) => {
|
|
122
|
-
emit("visible-change", isShowPopper2);
|
|
123
|
-
});
|
|
124
|
-
const subscription = new rxjs.Observable(
|
|
125
|
-
(observer) => vue.watch(search, observer.next.bind(observer))
|
|
126
|
-
).pipe(rxjs.debounceTime(vue.unref(debounceDelay))).subscribe(emit.bind(null, "search"));
|
|
127
|
-
vue.onBeforeUnmount(subscription.unsubscribe.bind(subscription));
|
|
128
|
-
vue.provide(
|
|
129
|
-
webBaseClientVue.advanceSelectKey,
|
|
130
|
-
vue.reactive({
|
|
131
|
-
props,
|
|
132
|
-
options: optionInstances,
|
|
133
|
-
selected,
|
|
134
|
-
onOptionCreate,
|
|
135
|
-
onOptionDestroy,
|
|
136
|
-
handleOptionSelect,
|
|
137
|
-
hidePoppper,
|
|
138
|
-
select: vue.getCurrentInstance()
|
|
139
|
-
})
|
|
140
|
-
);
|
|
141
|
-
const popperStyle = vue.reactive({
|
|
142
|
-
padding: "0",
|
|
143
|
-
borderRadius,
|
|
144
|
-
width,
|
|
145
|
-
border: "none",
|
|
146
|
-
boxShadow: `0 3px 12px 0 rgb(0 0 0 / 12%), 0 0.5px 1.5px 0 rgb(0 0 0 / 8%)`
|
|
147
|
-
});
|
|
148
|
-
expose({
|
|
149
|
-
handleClearClick
|
|
150
|
-
});
|
|
151
|
-
return (_ctx, _cache) => {
|
|
152
|
-
const _component_CaretBottom = vue.resolveComponent("CaretBottom");
|
|
153
|
-
const _component_ElIcon = vue.resolveComponent("ElIcon");
|
|
154
|
-
const _component_ElInput = vue.resolveComponent("ElInput");
|
|
155
|
-
const _component_ElButton = vue.resolveComponent("ElButton");
|
|
156
|
-
const _component_ElScrollbar = vue.resolveComponent("ElScrollbar");
|
|
157
|
-
const _component_ElTooltip = vue.resolveComponent("ElTooltip");
|
|
158
|
-
const _directive_loading = vue.resolveDirective("loading");
|
|
159
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
160
|
-
class: vue.normalizeClass(vue.unref(ns).b("select")),
|
|
161
|
-
"data-prefix": "el",
|
|
162
|
-
ref: "selectWrapper"
|
|
163
|
-
}, [
|
|
164
|
-
vue.createVNode(_component_ElTooltip, {
|
|
165
|
-
class: vue.normalizeClass(vue.unref(ns).be("select", "tooltip")),
|
|
166
|
-
effect: "light",
|
|
167
|
-
trigger: "click",
|
|
168
|
-
placement: "bottom-start",
|
|
169
|
-
"show-arrow": false,
|
|
170
|
-
"append-to": ".bwa-application",
|
|
171
|
-
"popper-style": popperStyle,
|
|
172
|
-
"popper-class": vue.unref(ns).be("select", "popper"),
|
|
173
|
-
persistent: true,
|
|
174
|
-
visible: vue.unref(isShowPopper),
|
|
175
|
-
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => vue.isRef(isShowPopper) ? isShowPopper.value = $event : null),
|
|
176
|
-
"virtual-ref": __props.virtualRef,
|
|
177
|
-
"virtual-triggering": __props.virtualTriggering
|
|
178
|
-
}, {
|
|
179
|
-
default: vue.withCtx(() => [
|
|
180
|
-
vue.renderSlot(_ctx.$slots, "reference", {
|
|
181
|
-
label: vue.unref(selectedLabel),
|
|
182
|
-
column: vue.unref(column)
|
|
183
|
-
}, () => [
|
|
184
|
-
__props.source ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
185
|
-
key: 0,
|
|
186
|
-
class: vue.normalizeClass([
|
|
187
|
-
vue.unref(ns).be("select", "pct-reference"),
|
|
188
|
-
vue.unref(ns).is("active", vue.unref(isShowPopper))
|
|
189
|
-
])
|
|
190
|
-
}, [
|
|
191
|
-
vue.renderSlot(_ctx.$slots, "reference-content", {
|
|
192
|
-
label: vue.unref(selectedLabel),
|
|
193
|
-
column: vue.unref(column),
|
|
194
|
-
selected: vue.unref(selected)
|
|
195
|
-
}, () => [
|
|
196
|
-
vue.renderSlot(_ctx.$slots, "label", {}, () => [
|
|
197
|
-
vue.unref(column) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
198
|
-
key: 0,
|
|
199
|
-
class: vue.normalizeClass(vue.unref(ns).be("select", "label"))
|
|
200
|
-
}, vue.toDisplayString(vue.unref(column).title), 3)) : vue.createCommentVNode("v-if", true)
|
|
201
|
-
]),
|
|
202
|
-
vue.renderSlot(_ctx.$slots, "value", { selected: vue.unref(selected) }, () => [
|
|
203
|
-
vue.unref(multiple) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
204
|
-
key: 0,
|
|
205
|
-
class: vue.normalizeClass(vue.unref(ns).be("select", "content"))
|
|
206
|
-
}, vue.toDisplayString(vue.unref(selectedLabel).length ? vue.unref(selectedLabel).join(",") : "\u5168\u90E8"), 3)) : (vue.openBlock(), vue.createElementBlock("span", {
|
|
207
|
-
key: 1,
|
|
208
|
-
class: vue.normalizeClass(vue.unref(ns).be("select", "content"))
|
|
209
|
-
}, vue.toDisplayString(vue.unref(selectedLabel) ? vue.unref(selectedLabel) : "\u5168\u90E8"), 3))
|
|
210
|
-
]),
|
|
211
|
-
__props.showSelectIcon ? (vue.openBlock(), vue.createBlock(_component_ElIcon, {
|
|
212
|
-
key: 0,
|
|
213
|
-
class: vue.normalizeClass(vue.unref(ns).be("select", "caret"))
|
|
214
|
-
}, {
|
|
215
|
-
default: vue.withCtx(() => [
|
|
216
|
-
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
217
|
-
vue.createVNode(_component_CaretBottom)
|
|
218
|
-
])
|
|
219
|
-
]),
|
|
220
|
-
_: 3
|
|
221
|
-
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
222
|
-
])
|
|
223
|
-
], 2)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
224
|
-
key: 1,
|
|
225
|
-
class: vue.normalizeClass([
|
|
226
|
-
vue.unref(ns).be("select", "reference"),
|
|
227
|
-
vue.unref(ns).is("active", vue.unref(isShowPopper))
|
|
228
|
-
])
|
|
229
|
-
}, [
|
|
230
|
-
vue.renderSlot(_ctx.$slots, "reference-content", {
|
|
231
|
-
label: vue.unref(selectedLabel),
|
|
232
|
-
column: vue.unref(column),
|
|
233
|
-
selected: vue.unref(selected)
|
|
234
|
-
}, () => [
|
|
235
|
-
vue.renderSlot(_ctx.$slots, "label", {}, () => [
|
|
236
|
-
vue.unref(column) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
237
|
-
key: 0,
|
|
238
|
-
class: vue.normalizeClass(vue.unref(ns).be("select", "label"))
|
|
239
|
-
}, vue.toDisplayString(vue.unref(column).title), 3)) : vue.createCommentVNode("v-if", true)
|
|
240
|
-
]),
|
|
241
|
-
vue.renderSlot(_ctx.$slots, "value", { selected: vue.unref(selected) }, () => [
|
|
242
|
-
vue.unref(multiple) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
243
|
-
key: 0,
|
|
244
|
-
class: vue.normalizeClass(vue.unref(ns).be("select", "content"))
|
|
245
|
-
}, vue.toDisplayString(vue.unref(selectedLabel).length ? vue.unref(selectedLabel).join(",") : "\u5168\u90E8"), 3)) : (vue.openBlock(), vue.createElementBlock("span", {
|
|
246
|
-
key: 1,
|
|
247
|
-
class: vue.normalizeClass(vue.unref(ns).be("select", "content"))
|
|
248
|
-
}, vue.toDisplayString(vue.unref(selectedLabel) ? vue.unref(selectedLabel) : "\u5168\u90E8"), 3))
|
|
249
|
-
])
|
|
250
|
-
]),
|
|
251
|
-
__props.showSelectIcon ? (vue.openBlock(), vue.createBlock(_component_ElIcon, {
|
|
252
|
-
key: 0,
|
|
253
|
-
class: vue.normalizeClass(vue.unref(ns).be("select", "caret"))
|
|
254
|
-
}, {
|
|
255
|
-
default: vue.withCtx(() => [
|
|
256
|
-
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
257
|
-
vue.createVNode(_component_CaretBottom)
|
|
258
|
-
])
|
|
259
|
-
]),
|
|
260
|
-
_: 3
|
|
261
|
-
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
262
|
-
], 2))
|
|
263
|
-
])
|
|
264
|
-
]),
|
|
265
|
-
content: vue.withCtx(() => [
|
|
266
|
-
vue.createElementVNode("div", {
|
|
267
|
-
class: vue.normalizeClass([vue.unref(ns).be("select", "content"), vue.unref(ns).is("single", !vue.unref(multiple))]),
|
|
268
|
-
style: { "margin": "6px" }
|
|
269
|
-
}, [
|
|
270
|
-
vue.renderSlot(_ctx.$slots, "contentTop"),
|
|
271
|
-
vue.unref(showSearch) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
272
|
-
key: 0,
|
|
273
|
-
class: vue.normalizeClass(vue.unref(ns).be("select", "input-wrapper"))
|
|
274
|
-
}, [
|
|
275
|
-
vue.createVNode(_component_ElInput, {
|
|
276
|
-
modelValue: vue.unref(search),
|
|
277
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(search) ? search.value = $event : null),
|
|
278
|
-
class: vue.normalizeClass(vue.unref(ns).be("select", "input")),
|
|
279
|
-
placeholder: __props.searchPlaceholder,
|
|
280
|
-
type: "text",
|
|
281
|
-
"prefix-icon": "Search",
|
|
282
|
-
clearable: ""
|
|
283
|
-
}, null, 8, ["modelValue", "class", "placeholder"])
|
|
284
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
|
285
|
-
vue.createElementVNode("div", {
|
|
286
|
-
class: vue.normalizeClass(vue.unref(ns).be("select", "operation-wrapper"))
|
|
287
|
-
}, [
|
|
288
|
-
vue.unref(multiple) || !__props.required ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
289
|
-
vue.unref(showSelection) ? (vue.openBlock(), vue.createBlock(advanceOperation["default"], {
|
|
290
|
-
key: 0,
|
|
291
|
-
class: vue.normalizeClass(vue.unref(ns).be("select", "selection-wrapper")),
|
|
292
|
-
type: "selection",
|
|
293
|
-
border: true
|
|
294
|
-
}, {
|
|
295
|
-
default: vue.withCtx(() => [
|
|
296
|
-
vue.unref(multiple) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
297
|
-
key: 0,
|
|
298
|
-
class: vue.normalizeClass([
|
|
299
|
-
vue.unref(ns).be("select", "selection"),
|
|
300
|
-
vue.unref(ns).is("has-selected", !!vue.unref(selected).length)
|
|
301
|
-
])
|
|
302
|
-
}, " \u5DF2\u9009" + vue.toDisplayString(vue.unref(selected).length) + "\u9879 ", 3)) : vue.createCommentVNode("v-if", true),
|
|
303
|
-
!__props.required ? (vue.openBlock(), vue.createBlock(_component_ElButton, {
|
|
304
|
-
key: 1,
|
|
305
|
-
link: "",
|
|
306
|
-
type: "primary",
|
|
307
|
-
class: vue.normalizeClass(vue.unref(ns).be("select", "clear")),
|
|
308
|
-
onClick: vue.unref(handleClearClick)
|
|
309
|
-
}, {
|
|
310
|
-
default: vue.withCtx(() => [
|
|
311
|
-
vue.createTextVNode(" \u6E05\u9664\u9009\u9879 ")
|
|
312
|
-
]),
|
|
313
|
-
_: 1
|
|
314
|
-
}, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true)
|
|
315
|
-
]),
|
|
316
|
-
_: 1
|
|
317
|
-
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
318
|
-
], 64)) : vue.createCommentVNode("v-if", true),
|
|
319
|
-
vue.renderSlot(_ctx.$slots, "operation")
|
|
320
|
-
], 2),
|
|
321
|
-
vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
322
|
-
class: vue.normalizeClass(vue.unref(ns).be("select", "list"))
|
|
323
|
-
}, [
|
|
324
|
-
vue.createVNode(_component_ElScrollbar, { "max-height": vue.unref(listHeight) }, {
|
|
325
|
-
default: vue.withCtx(() => [
|
|
326
|
-
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
327
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(data), (item) => {
|
|
328
|
-
return vue.openBlock(), vue.createBlock(advanceOption["default"], {
|
|
329
|
-
key: item.value,
|
|
330
|
-
value: item.value,
|
|
331
|
-
label: item.label
|
|
332
|
-
}, null, 8, ["value", "label"]);
|
|
333
|
-
}), 128))
|
|
334
|
-
])
|
|
335
|
-
]),
|
|
336
|
-
_: 3
|
|
337
|
-
}, 8, ["max-height"]),
|
|
338
|
-
!vue.unref(optionsCount) ? vue.renderSlot(_ctx.$slots, "empy", { key: 0 }, () => [
|
|
339
|
-
vue.createElementVNode("div", {
|
|
340
|
-
class: vue.normalizeClass(vue.unref(ns).be("select", "empty"))
|
|
341
|
-
}, "\u672A\u5339\u914D\u5230\u76F8\u5173\u6761\u76EE", 2)
|
|
342
|
-
]) : vue.createCommentVNode("v-if", true)
|
|
343
|
-
], 2)), [
|
|
344
|
-
[_directive_loading, vue.unref(loading)]
|
|
345
|
-
]),
|
|
346
|
-
vue.unref(slots).contentBottom ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
347
|
-
key: 1,
|
|
348
|
-
class: vue.normalizeClass(vue.unref(ns).be("select", "bottom")),
|
|
349
|
-
style: vue.normalizeStyle({ "boxShadow": __props.source ? "none" : "", "padding": __props.source ? "0" : "4px 0px" })
|
|
350
|
-
}, [
|
|
351
|
-
vue.renderSlot(_ctx.$slots, "contentBottom")
|
|
352
|
-
], 6)) : vue.createCommentVNode("v-if", true)
|
|
353
|
-
], 2)
|
|
354
|
-
]),
|
|
355
|
-
_: 3
|
|
356
|
-
}, 8, ["class", "popper-style", "popper-class", "visible", "virtual-ref", "virtual-triggering"])
|
|
357
|
-
], 2);
|
|
358
|
-
};
|
|
359
|
-
}
|
|
360
|
-
});
|
|
361
|
-
var AdvanceSelect = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "advance-select.vue"]]);
|
|
362
|
-
|
|
363
|
-
exports["default"] = AdvanceSelect;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var webBaseClientVue = require('web-base-client-vue');
|
|
7
|
-
var index = require('element-plus/es/utils/index');
|
|
8
|
-
var util = require('element-plus/es/components/table/src/util');
|
|
9
|
-
|
|
10
|
-
function useEvent(ns) {
|
|
11
|
-
const {
|
|
12
|
-
select: advanceSelect
|
|
13
|
-
} = vue.inject(webBaseClientVue.advanceSelectKey, {});
|
|
14
|
-
const handleOptionMouseEnter = (event, tooltipEffect) => {
|
|
15
|
-
const content = event.target.querySelector("." + ns.be("option", "content"));
|
|
16
|
-
const range = document.createRange();
|
|
17
|
-
range.setStart(content, 0);
|
|
18
|
-
range.setEnd(content, content.childNodes.length);
|
|
19
|
-
const rangeWidth = range.getBoundingClientRect().width;
|
|
20
|
-
const padding = (Number.parseInt(index.getStyle(content, "paddingLeft"), 10) || 0) + Number.parseInt(index.getStyle(content, "paddingRight"), 10) || 0;
|
|
21
|
-
if (rangeWidth + padding > content.offsetWidth || content.scrollWidth > content.offsetWidth) {
|
|
22
|
-
util.createTablePopper(advanceSelect == null ? void 0 : advanceSelect.refs.selectWrapper, content, content.innerText || content.textContent, {
|
|
23
|
-
placement: "top",
|
|
24
|
-
strategy: "fixed"
|
|
25
|
-
}, "dark");
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
return {
|
|
29
|
-
handleOptionMouseEnter
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
exports.useEvent = useEvent;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var install = require('element-plus/es/utils/vue/install');
|
|
6
|
-
var advanceSelect = require('./advance-select.js');
|
|
7
|
-
var advanceOption = require('./advance-option.js');
|
|
8
|
-
var advanceOperation = require('./advance-operation.js');
|
|
9
|
-
|
|
10
|
-
const BwaAdvanceSelect = install.withInstall(advanceSelect["default"], {
|
|
11
|
-
AdvanceOption: advanceOption["default"],
|
|
12
|
-
AdvanceOperation: advanceOperation["default"]
|
|
13
|
-
});
|
|
14
|
-
const BwaAdvanceOption = install.withInstall(advanceOption["default"]);
|
|
15
|
-
const BwaAdvanceOperation = install.withInstall(advanceOperation["default"]);
|
|
16
|
-
|
|
17
|
-
exports.BwaAdvanceOperation = BwaAdvanceOperation;
|
|
18
|
-
exports.BwaAdvanceOption = BwaAdvanceOption;
|
|
19
|
-
exports.BwaAdvanceSelect = BwaAdvanceSelect;
|
|
20
|
-
exports["default"] = BwaAdvanceSelect;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var webBaseClientVue = require('web-base-client-vue');
|
|
7
|
-
|
|
8
|
-
const useAdvanceOption = (props) => {
|
|
9
|
-
const advanceSelect = vue.inject(webBaseClientVue.advanceSelectKey);
|
|
10
|
-
const instance = vue.getCurrentInstance();
|
|
11
|
-
const currentLabel = vue.computed(() => props.label || props.value);
|
|
12
|
-
const showSelectIcon = vue.computed(() => {
|
|
13
|
-
var _a, _b;
|
|
14
|
-
return (_b = (_a = advanceSelect == null ? void 0 : advanceSelect.props) == null ? void 0 : _a.showSelectIcon) != null ? _b : true;
|
|
15
|
-
});
|
|
16
|
-
const itemSelected = vue.computed(() => {
|
|
17
|
-
if (!advanceSelect.props.multiple) {
|
|
18
|
-
return advanceSelect.props.modelValue === props.value || advanceSelect.props.modelValue === props.value + "";
|
|
19
|
-
} else {
|
|
20
|
-
return (advanceSelect.props.modelValue || []).includes(props.value);
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const source = vue.computed(() => {
|
|
24
|
-
return advanceSelect.props.source;
|
|
25
|
-
});
|
|
26
|
-
vue.watch(() => props.value, (val, oldVal) => {
|
|
27
|
-
if (!Object.is(val, oldVal)) {
|
|
28
|
-
advanceSelect.onOptionDestroy(oldVal, instance.proxy);
|
|
29
|
-
advanceSelect.onOptionCreate(instance.proxy);
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
vue.onMounted(() => {
|
|
33
|
-
advanceSelect.onOptionCreate(instance.proxy);
|
|
34
|
-
});
|
|
35
|
-
vue.onUnmounted(() => {
|
|
36
|
-
advanceSelect.onOptionDestroy(props.value, instance.proxy);
|
|
37
|
-
});
|
|
38
|
-
return {
|
|
39
|
-
advanceSelect,
|
|
40
|
-
itemSelected,
|
|
41
|
-
currentLabel,
|
|
42
|
-
showSelectIcon,
|
|
43
|
-
source
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
exports.useAdvanceOption = useAdvanceOption;
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
require('lodash');
|
|
7
|
-
|
|
8
|
-
const useAdvanceSelectStates = (props) => {
|
|
9
|
-
return vue.reactive({
|
|
10
|
-
options: /* @__PURE__ */ new Map(),
|
|
11
|
-
cachedOptions: /* @__PURE__ */ new Map(),
|
|
12
|
-
optionsCount: 0,
|
|
13
|
-
selected: props.multiple ? [] : {},
|
|
14
|
-
search: "",
|
|
15
|
-
isShowPopper: false
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
const useAdvanceSelect = (props, states, ctx) => {
|
|
19
|
-
const cachedOptions = vue.computed(() => Array.from(states.cachedOptions.values()));
|
|
20
|
-
vue.watch(vue.computed(() => states.isShowPopper), (isShowPopper) => {
|
|
21
|
-
if (!isShowPopper) {
|
|
22
|
-
states.search = "";
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
vue.watch(() => props.modelValue, () => {
|
|
26
|
-
setSelected();
|
|
27
|
-
}, {
|
|
28
|
-
flush: "post",
|
|
29
|
-
deep: true
|
|
30
|
-
});
|
|
31
|
-
const selectedLabel = vue.computed(() => {
|
|
32
|
-
return props.multiple ? states.selected.map((selected) => selected.label) : states.selected.label || props.modelValue;
|
|
33
|
-
});
|
|
34
|
-
const getOption = (value) => {
|
|
35
|
-
let option = null;
|
|
36
|
-
for (const item of cachedOptions.value) {
|
|
37
|
-
if (item.value === value) {
|
|
38
|
-
option = {
|
|
39
|
-
value,
|
|
40
|
-
label: item.currentLabel
|
|
41
|
-
};
|
|
42
|
-
break;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
if (option) {
|
|
46
|
-
return option;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
value,
|
|
50
|
-
label: value
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
const setSelected = () => {
|
|
54
|
-
if (!props.multiple) {
|
|
55
|
-
const option = getOption(props.modelValue);
|
|
56
|
-
states.selected = option;
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
const result = [];
|
|
60
|
-
if (Array.isArray(props.modelValue)) {
|
|
61
|
-
props.modelValue.forEach((value) => {
|
|
62
|
-
result.push(getOption(value));
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
states.selected = result;
|
|
66
|
-
};
|
|
67
|
-
const onOptionCreate = (option) => {
|
|
68
|
-
states.optionsCount++;
|
|
69
|
-
states.options.set(option.value, option);
|
|
70
|
-
states.cachedOptions.set(option.value, option);
|
|
71
|
-
};
|
|
72
|
-
const onOptionDestroy = (key, option) => {
|
|
73
|
-
if (states.options.get(key) === option) {
|
|
74
|
-
states.optionsCount--;
|
|
75
|
-
states.options.delete(key);
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
const handleClearClick = () => {
|
|
79
|
-
ctx.emit("update:modelValue", props.multiple ? [] : "");
|
|
80
|
-
if (props.closeAfterSelection) {
|
|
81
|
-
states.isShowPopper = false;
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
const handleOptionSelect = (option) => {
|
|
85
|
-
if (props.multiple) {
|
|
86
|
-
const value = (props.modelValue || []).slice();
|
|
87
|
-
const optionIndex = value.indexOf(option.value);
|
|
88
|
-
if (optionIndex > -1) {
|
|
89
|
-
if (props.required && value.length === 1) {
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
value.splice(optionIndex, 1);
|
|
93
|
-
} else if (props.multipleLimit <= 0 || value.length < props.multipleLimit) {
|
|
94
|
-
value.push(option.value);
|
|
95
|
-
}
|
|
96
|
-
ctx.emit("update:modelValue", value);
|
|
97
|
-
if (props.closeAfterSelection) {
|
|
98
|
-
states.isShowPopper = false;
|
|
99
|
-
}
|
|
100
|
-
} else {
|
|
101
|
-
ctx.emit("update:modelValue", option.value);
|
|
102
|
-
states.isShowPopper = false;
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
const hidePoppper = () => {
|
|
106
|
-
states.isShowPopper = false;
|
|
107
|
-
};
|
|
108
|
-
vue.watch(vue.computed(() => states.options.entries()), () => {
|
|
109
|
-
setSelected();
|
|
110
|
-
});
|
|
111
|
-
return {
|
|
112
|
-
selectedLabel,
|
|
113
|
-
onOptionCreate,
|
|
114
|
-
onOptionDestroy,
|
|
115
|
-
handleClearClick,
|
|
116
|
-
handleOptionSelect,
|
|
117
|
-
hidePoppper
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
exports.useAdvanceSelect = useAdvanceSelect;
|
|
122
|
-
exports.useAdvanceSelectStates = useAdvanceSelectStates;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var webBaseClientVue = require('web-base-client-vue');
|
|
7
|
-
|
|
8
|
-
let uuid = 1;
|
|
9
|
-
const ApplicationSlot = {
|
|
10
|
-
name: "BwaApplicationSlot",
|
|
11
|
-
props: {
|
|
12
|
-
type: String
|
|
13
|
-
},
|
|
14
|
-
setup(props) {
|
|
15
|
-
let currentUuid = uuid++;
|
|
16
|
-
const slots = vue.useSlots();
|
|
17
|
-
const application = webBaseClientVue.useGlobalConfig(webBaseClientVue.applicationKey);
|
|
18
|
-
const scope = vue.effectScope();
|
|
19
|
-
let container = null;
|
|
20
|
-
vue.onMounted(() => {
|
|
21
|
-
container = document.createElement("div");
|
|
22
|
-
scope.run(() => {
|
|
23
|
-
vue.effect(() => {
|
|
24
|
-
var _a;
|
|
25
|
-
const vnodes = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
26
|
-
let _vnodes = [...vnodes];
|
|
27
|
-
for (let i = 0; i < _vnodes.length; i++) {
|
|
28
|
-
const vnode2 = _vnodes[i];
|
|
29
|
-
vnode2.appContext = ApplicationSlot._context;
|
|
30
|
-
if (Array.isArray(vnode2.children)) {
|
|
31
|
-
_vnodes = _vnodes.concat(vnode2.children);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
const vnode = vue.h(vue.Fragment, vnodes);
|
|
35
|
-
vnode.appContext = ApplicationSlot._context;
|
|
36
|
-
vue.render(vnode, container);
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
application.value.addApplicationSlot(props.type, currentUuid, container);
|
|
40
|
-
});
|
|
41
|
-
vue.onBeforeUnmount(() => {
|
|
42
|
-
application.value.removeApplicationSlot(props.type, currentUuid);
|
|
43
|
-
vue.render(null, container);
|
|
44
|
-
container = null;
|
|
45
|
-
scope.stop();
|
|
46
|
-
});
|
|
47
|
-
return () => vue.h("i", {
|
|
48
|
-
style: {
|
|
49
|
-
display: "none"
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
exports["default"] = ApplicationSlot;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var applicationSlot = require('./application-slot.js');
|
|
7
|
-
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
8
|
-
|
|
9
|
-
const __default__ = vue.defineComponent({
|
|
10
|
-
name: "BwaBreadcrumbItem"
|
|
11
|
-
});
|
|
12
|
-
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
13
|
-
setup(__props) {
|
|
14
|
-
;
|
|
15
|
-
return (_ctx, _cache) => {
|
|
16
|
-
return vue.openBlock(), vue.createBlock(vue.unref(applicationSlot["default"]), { type: "breadcrumbItem" }, {
|
|
17
|
-
default: vue.withCtx(() => [
|
|
18
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
19
|
-
]),
|
|
20
|
-
_: 3
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
var BreadcrumbItem = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "breadcrumb-item.vue"]]);
|
|
26
|
-
|
|
27
|
-
exports["default"] = BreadcrumbItem;
|